/* baannanab.com — "เรื่องบ้าน ให้เป็นเรื่องกล้วยๆ" design (แบบ A ขาวสะอาด),
   chosen by โจ้ 2026-09-12 from three mockups. Apple-like: white, big type,
   lots of air, one accent = the logo's lime. Class names used by
   static/js/chat-widget.js and gallery.js are kept unchanged. */
:root {
    --bg: #ffffff;
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --line: #e5e5ea;
    --card: #ffffff;
    --soft: #f5f5f7;
    --accent: #a2ff00;        /* logo lime */
    --accent-ink: #2f7a00;    /* readable green for text */
    --btn: #1d1d1f;
    --btn-ink: #ffffff;
    --shadow: 0 8px 30px rgba(0, 0, 0, .06);
    --radius: 22px;
    /* aliases so older rules/components keep resolving */
    --color-primary: var(--accent-ink);
    --color-primary-dark: #1f5a00;
    --color-bg: var(--soft);
    --color-card: var(--card);
    --color-text: var(--ink);
    --color-muted: var(--muted);
    --color-border: var(--line);
    --hero-dark: var(--btn);
    --hero-gold: var(--accent);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
    margin: 0; overflow-x: hidden;
    font-family: "Inter", "Noto Sans Thai", -apple-system, "Segoe UI", "Sarabun", sans-serif;
    background: var(--bg); color: var(--ink); line-height: 1.45; letter-spacing: -.01em;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .container { padding: 0 18px; } }

/* ---------- nav ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand__mark { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--btn); color: var(--btn-ink); padding: 8px 16px; border-radius: 980px; font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 12px 22px; border-radius: 980px; font-weight: 700; font-size: 15px; border: none; cursor: pointer; font-family: inherit; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: #000; }
.btn-secondary { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: #ececf0; }
.btn-accent { background: var(--accent); color: #111; }
.btn-line { background: #06c755; color: #fff; }

/* ---------- homepage: hero ---------- */
.k-hero { text-align: center; padding: 84px 0 40px; }
.k-hero__eyebrow { font-size: 15px; font-weight: 600; color: var(--accent-ink); letter-spacing: .02em; margin: 0 0 14px; }
.k-hero h1 { font-size: 64px; line-height: 1.06; font-weight: 800; letter-spacing: -.035em; max-width: 900px; margin: 0 auto; }
.k-hero h1 em { font-style: normal; color: var(--accent-ink); }
.k-hero__sub { font-size: 22px; color: var(--muted); margin: 22px auto 0; max-width: 640px; }
.k-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 44px auto 0; max-width: 820px; }
.k-choose a { display: block; border-radius: 26px; padding: 30px 28px; text-align: left; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .15s; }
.k-choose a:hover { transform: translateY(-2px); }
.k-choose a.dark { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.k-choose .k { font-size: 13px; font-weight: 600; opacity: .7; }
.k-choose .t { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.k-choose .d { font-size: 15px; opacity: .78; margin-top: 8px; line-height: 1.45; padding-right: 48px; }
.k-choose .arrow { position: absolute; right: 24px; bottom: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #111; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
@media (max-width: 700px) {
    .k-hero { padding: 54px 0 28px; }
    .k-hero h1 { font-size: 42px; }
    .k-hero__sub { font-size: 17px; }
    .k-choose { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
    .k-choose .t { font-size: 26px; }
}

/* full-bleed photo strip */
.k-photo { margin: 56px 0 0; height: 520px; background: #1f3d2b center/cover no-repeat; position: relative; }
.k-photo__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 28px 40px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.65) 100%); color: #fff; text-align: center; }
.k-photo__cap b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.k-photo__cap span { font-size: 17px; opacity: .9; }
@media (max-width: 700px) { .k-photo { height: 300px; margin-top: 36px; } .k-photo__cap b { font-size: 24px; } .k-photo__cap span { font-size: 14px; } }

/* section headings */
.k-section { padding: 84px 0 30px; }
.k-section h2 { font-size: 44px; font-weight: 800; letter-spacing: -.035em; text-align: center; margin: 0; }
.k-section .sub { text-align: center; color: var(--muted); font-size: 19px; margin: 10px auto 0; max-width: 720px; }
@media (max-width: 700px) { .k-section { padding: 56px 0 10px; } .k-section h2 { font-size: 32px; } .k-section .sub { font-size: 16px; } }

/* 3 steps */
.k-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.k-path { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: var(--shadow); }
.k-path h3 { font-size: 22px; font-weight: 800; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.k-path h3 i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: inline-block; }
.k-step { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.k-step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--accent-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.k-step b { display: block; font-size: 17px; }
.k-step span { color: var(--muted); font-size: 14.5px; }
.k-step.you .n { background: var(--accent); color: #111; }
.k-path .foot { margin-top: 16px; font-size: 14px; color: var(--muted); }
.k-path .foot b { color: var(--accent-ink); }
@media (max-width: 700px) { .k-paths { grid-template-columns: 1fr; } }

/* why tiles */
.k-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.k-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.k-tile .big { font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: var(--accent-ink); line-height: 1; }
.k-tile h4 { font-size: 18px; font-weight: 700; margin: 12px 0 0; }
.k-tile p { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; line-height: 1.45; }
@media (max-width: 700px) { .k-tiles { grid-template-columns: 1fr; } }

/* ---------- filter bar (rooms section + results page) ---------- */
.filter-bar { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr auto; gap: 8px; margin: 26px 0 0; }
.filter-bar input, .filter-bar select { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); font: inherit; font-size: 14px; color: var(--ink); }
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--ink); background: #fff; }
.filter-bar .btn { padding: 11px 18px; font-size: 14px; }
.filter-bar--mobile { display: none; }
@media (max-width: 900px) { .filter-bar { grid-template-columns: 1fr 1fr; } .filter-bar input[name="q"] { grid-column: 1 / -1; } .filter-bar .btn { grid-column: 1 / -1; } }

/* rooms grid */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
@media (max-width: 900px) { .property-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .property-grid { grid-template-columns: 1fr; } }
.property-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
.property-card:hover { transform: translateY(-3px); }
.property-card__image { height: 210px; background: var(--soft) center/cover no-repeat; position: relative; display: flex; align-items: center; justify-content: center; }
.no-image { color: var(--muted); font-size: 14px; }
.badge { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 980px; background: var(--accent); color: #111; }
/* ขาย — โจ้ 2026-09-20: ให้เด่นเป็นสีแดงบนหน้าแรก */
.badge--for_sale { background: #e0201b; color: #fff; box-shadow: 0 2px 10px rgba(224,32,27,.35); }
.badge--reserved { background: #ffd23f; }
.badge--rented_sold { background: #d2d2d7; color: #333; }
.badge--pending { background: #d2d2d7; color: #333; }
.property-card__body { padding: 16px 18px 20px; }
.property-card__body h3 { margin: 0; font-size: 17px; font-weight: 700; }
.property-card__address, .property-card__specs { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.property-card__price { font-size: 20px; font-weight: 800; margin: 10px 0 0; color: var(--ink); }
.property-card__price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.property-card__go { display: block; margin-top: 14px; text-align: center; background: var(--btn); color: var(--btn-ink); border-radius: 980px; padding: 10px; font-weight: 600; font-size: 14px; }

.result-count { color: var(--muted); margin: 18px 0 0; font-size: 14px; }
.results-head { padding: 40px 0 0; }
.results-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.results-head p { color: var(--muted); margin: 6px 0 0; }

/* trust strip */
.k-trust { margin: 60px 0 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; justify-content: center; gap: 50px; color: var(--muted); font-size: 15px; }
.k-trust div { text-align: center; }
.k-trust b { color: var(--ink); font-weight: 800; font-size: 22px; display: block; }
@media (max-width: 700px) { .k-trust { flex-direction: column; gap: 16px; } }

/* closing band */
.k-band { margin: 70px 0 0; background: var(--btn); color: #fff; border-radius: 32px; padding: 54px 40px; text-align: center; }
.k-band h2 { font-size: 40px; font-weight: 800; letter-spacing: -.035em; margin: 0; }
.k-band p { font-size: 18px; opacity: .85; margin: 10px 0 0; }
.k-band__btns { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.k-band .btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.k-band .btn-white { background: #fff; color: #111; }
@media (max-width: 700px) { .k-band { padding: 40px 22px; border-radius: 24px; margin-top: 46px; } .k-band h2 { font-size: 32px; } }

/* empty states */
.empty-state { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
.empty-state--full { padding: 56px 16px 64px; line-height: 1.7; font-size: 16px; color: var(--muted); }
.empty-state--full a { color: var(--accent-ink); font-weight: 600; }
.empty-state--full .btn { display: inline-block; margin-top: 10px; }
.empty-state__title { font-size: 26px; font-weight: 800; color: var(--ink); margin: 0 0 8px; letter-spacing: -.02em; }
.off-market { background: #fff4f4; border: 1px solid #f2d0d0; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.off-market a { color: var(--accent-ink); font-weight: 600; margin: 0 4px; }

/* ---------- footer ---------- */
.site-footer { padding: 48px 0 70px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.8; }
.site-footer b { color: var(--ink); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- room detail ---------- */
.detail-topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px 0 0; flex-wrap: wrap; }
.detail-pager { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-topbar .btn { padding: 9px 16px; font-size: 13px; }
.detail-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; margin-top: 18px; padding-bottom: 60px; }
@media (max-width: 800px) { .detail-layout { grid-template-columns: 1fr; gap: 20px; } }
.detail-media { display: flex; flex-direction: column; gap: 10px; }
.detail-image { display: block; height: 420px; border-radius: var(--radius); background: var(--soft) center/cover no-repeat; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
@media (max-width: 800px) { .detail-image { height: 260px; } }
.detail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.detail-gallery__item { aspect-ratio: 1 / 1; border-radius: 12px; background: var(--soft) center/cover no-repeat; cursor: zoom-in; }
.detail-body h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.detail-address { color: var(--muted); margin: 0; }
.detail-price { font-size: 30px; font-weight: 800; margin: 18px 0; letter-spacing: -.03em; }
.detail-price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.detail-specs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.detail-specs li { background: var(--soft); border: 1px solid var(--line); padding: 7px 12px; border-radius: 980px; font-size: 13.5px; }
.detail-description h2 { font-size: 18px; margin: 0 0 6px; }
.detail-description p { color: var(--ink); }
.detail-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.detail-body .badge { position: static; display: inline-block; }
.detail-note { background: var(--soft); border-radius: 14px; padding: 12px 16px; font-size: 14px; color: var(--muted); margin-top: 18px; }

/* ---------- privacy ---------- */
.privacy-page { max-width: 720px; margin: 0 auto; padding: 40px 0 60px; }
.privacy-page h1 { font-size: 34px; letter-spacing: -.03em; margin: 0 0 4px; }
.privacy-updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.privacy-page h2 { font-size: 18px; margin: 28px 0 8px; }
.privacy-page p, .privacy-page li { color: var(--ink); }
.privacy-page ul { padding-left: 20px; margin: 0 0 12px; }
.privacy-page li { margin-bottom: 6px; }
.privacy-page a { color: var(--accent-ink); font-weight: 600; }

/* ---------- submit form (ฝากห้องให้เช่า) ---------- */
.submit-page { max-width: 760px; margin: 0 auto; padding: 44px 0 60px; }
.submit-page h1 { margin: 0 0 6px; font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.submit-intro { color: var(--muted); margin: 0 0 24px; font-size: 17px; }
.submit-steps { display: flex; gap: 10px; margin: 0 0 26px; flex-wrap: wrap; }
.submit-steps span { background: var(--soft); border: 1px solid var(--line); border-radius: 980px; padding: 8px 14px; font-size: 14px; }
.submit-steps span b { color: var(--accent-ink); }
.submit-alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-weight: 600; }
.submit-alert--success { background: #effbe0; color: var(--accent-ink); border: 1px solid #cdeea0; }
.submit-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
.submit-section h2 { font-size: 18px; margin: 0 0 16px; }
.submit-section--private h2 { color: var(--muted); }
.submit-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .submit-grid { grid-template-columns: 1fr 1fr; } }
.submit-field { margin-bottom: 14px; }
.submit-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.submit-form input[type="text"], .submit-form input[type="number"], .submit-form textarea, .submit-form select {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-family: inherit; background: var(--soft); color: var(--ink);
}
.submit-form input:focus, .submit-form textarea:focus, .submit-form select:focus { outline: none; border-color: var(--ink); background: #fff; }
.submit-field ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.submit-field ul li label { display: flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; }
.submit-field ul input[type="radio"] { width: auto; accent-color: var(--accent-ink); }
.submit-help { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.submit-note { background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 8px; }
.submit-btn { width: 100%; padding: 16px; font-size: 17px; }
.errorlist { color: #b0413e; list-style: none; padding: 0; margin: 4px 0 0; font-size: 13px; }

/* ---------- floating chat buttons ---------- */
.chat-fab-group { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 10; }
.chat-fab { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.18); border: none; }
.chat-fab--line { background: #06c755; }
.chat-fab--fb { background: #1877f2; }
.chat-fab--home { background: #fff; color: var(--ink); font-size: 1.3rem; border: 1px solid var(--line); }
.chat-fab--chat { background: var(--btn); border: 2px solid var(--accent); font-size: 1.4rem; cursor: pointer; }

/* ---------- chat widget panel (markup in base.html, logic in chat-widget.js) ---------- */
.chat-widget { position: fixed; bottom: 96px; right: 20px; z-index: 20; width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 140px)); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.22); display: flex; flex-direction: column; border: 1px solid var(--line); }
.chat-widget[hidden] { display: none; }
.chat-widget__header { background: var(--btn); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.chat-widget__header-actions { display: flex; align-items: center; gap: 4px; }
.chat-widget__close { background: none; border: none; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-widget__reset { background: none; border: none; color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .85; }
.chat-widget__reset:hover { opacity: 1; }
.chat-widget__messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--soft); }
.chat-widget__bubble { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: .92rem; line-height: 1.4; white-space: pre-wrap; }
.chat-widget__bubble--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.chat-widget__bubble--user { align-self: flex-end; background: var(--btn); color: #fff; }
.chat-widget__quick-replies { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; background: var(--soft); }
.chat-widget__quick-reply { border: 1px solid var(--ink); color: var(--ink); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .85rem; cursor: pointer; font-family: inherit; }
.chat-widget__quick-reply:hover { background: var(--ink); color: #fff; }
.chat-widget__cta { padding: 0 14px 8px; background: var(--soft); }
.chat-widget__cta-link { display: inline-block; font-size: .82rem; color: var(--accent-ink); text-decoration: underline; }
.chat-widget__input-row { display: flex; align-items: center; gap: 6px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-widget__input-row input[type="text"] { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: .9rem; font-family: inherit; }
.chat-widget__upload-btn { cursor: pointer; font-size: 1.3rem; padding: 4px; }
.chat-widget__send { background: var(--accent); color: #111; border: none; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: .85rem; cursor: pointer; font-family: inherit; }
.chat-widget__footer { display: flex; justify-content: center; gap: 18px; padding: 8px; font-size: .82rem; background: var(--soft); }
.chat-widget__footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
@media (max-width: 480px) { .chat-widget { right: 16px; bottom: 88px; } }

/* ---------- room photo lightbox (static/js/gallery.js) ---------- */
.bn-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.bn-lightbox[hidden] { display: none; }
.bn-lightbox__img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.bn-lightbox__close, .bn-lightbox__nav { position: absolute; border: none; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; font: inherit; line-height: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.bn-lightbox__close:hover, .bn-lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.bn-lightbox__close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 22px; }
.bn-lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 40px; padding-bottom: 6px; }
.bn-lightbox__nav--prev { left: 14px; }
.bn-lightbox__nav--next { right: 14px; }
.bn-lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; opacity: .85; }
body.bn-lightbox-open { overflow: hidden; }
@media (max-width: 600px) { .bn-lightbox__nav { width: 42px; height: 42px; font-size: 32px; } .bn-lightbox__img { max-width: 100vw; max-height: 80vh; border-radius: 0; } }

/* ฝากแบบกล้วยๆ (quick link submission) */
.submit-section--quick { border: 2px solid var(--accent); box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.submit-quick-lead { color: var(--muted); margin: 0 0 18px; font-size: 16px; line-height: 1.6; }
.submit-form input[type="url"] { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); font: inherit; }
.submit-form input[type="url"]:focus { outline: none; border-color: var(--ink); background: #fff; }
.submit-quick .submit-btn { background: var(--accent); color: #111; border-color: var(--accent); }
.submit-quick .submit-btn:hover { filter: brightness(.95); }
.submit-more { margin: 6px 0 40px; }
.submit-more summary { cursor: pointer; color: var(--muted); font-size: 15px; padding: 12px 0; list-style: none; }
.submit-more summary::before { content: "▸ "; }
.submit-more[open] summary::before { content: "▾ "; }
.submit-more summary::-webkit-details-marker { display: none; }
.submit-alert--error { background: #fff1f0; color: #b3261e; border: 1px solid #f5c2c0; }

/* /rooms/ — "อยากเช่า" landing (option A) */
.find-head { padding: 64px 0 8px; text-align: center; }
.find-head h1 { font-size: 46px; font-weight: 800; letter-spacing: -.035em; margin: 6px 0 0; }
.find-sub { color: var(--muted); font-size: 18px; margin: 12px auto 0; max-width: 640px; }
.find-rooms { padding: 26px 0 10px; }
.property-grid--big { grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 10px; }
.property-grid--big .property-card__image { height: 320px; }
.property-grid--big .property-card__body h3 { font-size: 20px; }
.property-grid--big .property-card__price { font-size: 26px; }
.find-want { padding: 40px 0 70px; }
.find-want__card { background: var(--card); border: 2px solid var(--accent); border-radius: 28px; padding: 34px 32px; max-width: 820px; margin: 0 auto; box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.find-want__card h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 0; text-align: center; }
.find-want__card .sub { text-align: center; color: var(--muted); margin: 8px 0 22px; font-size: 16px; }
.find-q { margin-bottom: 18px; }
.find-q__label { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 980px; border: 1px solid var(--line); background: var(--soft); font-size: 15px; font-weight: 600; transition: all .12s; }
.chips input:checked + span { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); }
.find-form input[type="text"] { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); font: inherit; }
.find-form input[type="text"]:focus { outline: none; border-color: var(--ink); background: #fff; }
.find-form .submit-grid { margin-top: 6px; }
.find-btn { background: var(--accent); color: #111; border-color: var(--accent); margin-top: 8px; }
.find-btn:hover { filter: brightness(.95); }
.find-form .submit-help { text-align: center; }
@media (max-width: 760px) {
  .find-head { padding: 40px 0 4px; }
  .find-head h1 { font-size: 34px; }
  .property-grid--big { grid-template-columns: 1fr; }
  .property-grid--big .property-card__image { height: 240px; }
  .find-want__card { padding: 24px 18px; border-radius: 22px; }
  .find-want__card h2 { font-size: 23px; }
}

.chat-fab--tel { background: #fff; color: #111; border: 1px solid var(--line); font-size: 22px; }

/* ---- motion layer (static/js/site-fx.js adds .fx to <html>) — no layout or colour changes ---- */
html.fx .k-section .container > h2, html.fx .s-section .container > h2, html.fx .k-tiles .k-tile { transition: transform .6s cubic-bezier(.2,.7,.3,1), opacity .6s ease, box-shadow .15s; }
html.fx .fx-pending { opacity: 0; transform: translateY(22px); }
html.fx .property-card:hover { transform: translateY(-3px); }
html.fx .property-card__image { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
html.fx .property-card:hover .property-card__image, html.fx .property-card:focus-visible .property-card__image { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { html.fx .fx-pending { opacity: 1; transform: none; } }

/* the two choice boxes land a beat after the headline (โจ้ 2026-09-18) */
@keyframes bn-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* หัวเรื่องหน้าแรก "เติม" ทีละบรรทัดจากซ้ายไปขวา (โจ้ 2026-09-20, อ้างอิง edolus.com)
   ใช้ mask เลื่อนแทนการหั่นตัวอักษร เพราะสระ/วรรณยุกต์ไทยอยู่คนละตัวกับพยัญชนะ
   ถ้าหั่นทีละตัวจะแตกกลางทาง · ถ้าเบราว์เซอร์ไม่เล่นอนิเมชัน ข้อความจะโชว์เต็มตามปกติ */
.k-hero h1 .k-line { display: block; }
html.fx .k-hero h1 .k-line {
  -webkit-mask-image: linear-gradient(90deg, #000 38%, rgba(0,0,0,0) 62%);
  mask-image: linear-gradient(90deg, #000 38%, rgba(0,0,0,0) 62%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: bn-fill 1.05s cubic-bezier(.42, 0, .3, 1) backwards;  /* โจ้ 2026-09-20: ทั้งประโยคจบที่ 1.5 วิ */
}
html.fx .k-hero h1 .k-line:nth-child(1) { animation-delay: .08s; }
html.fx .k-hero h1 .k-line:nth-child(2) { animation-delay: .45s; }
@keyframes bn-fill {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) { html.fx .k-hero h1 .k-line { animation: none; -webkit-mask-image: none; mask-image: none; } }

/* กล่องสองใบขึ้นทันทีที่ประโยคเติมเสร็จ (1.5s) ไม่หน่วงแล้ว (โจ้ 2026-09-20) */
html.fx .k-choose a { animation: bn-arrive .5s cubic-bezier(.2,.7,.3,1) 1.5s backwards; }  /* สองใบขึ้นพร้อมกัน (โจ้ 2026-09-20) */
@media (prefers-reduced-motion: reduce) { html.fx .k-choose a { animation: none; } }
html.fx .k-trust b { font-variant-numeric: tabular-nums; }  /* digits keep their width while counting */

/* ---------------------------------------------------------------------------
   ห้องขาย — ส่วนที่สองของหน้าแรก (โจ้เลือก "แบบ A" จากภาพจำลอง 2026-09-20)
   พื้นเทาอ่อนทั้งแถบเพื่อแยกสายตาจากส่วนเช่าที่เป็นพื้นขาว สีแดงใช้จุดเดียว
   ในหน้า คือป้าย "ขาย" กับหัวข้อเล็ก จะได้เด่นโดยไม่ตะโกน
   --------------------------------------------------------------------------- */
.s-section { background: var(--soft); padding: 76px 0 84px; margin-top: 14px; }
.s-section h2 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.s-section .sub { color: var(--muted); margin: 8px 0 26px; font-size: 17px; }
.s-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; color: #b3261e; margin-bottom: 14px; }
.s-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #e0201b; display: inline-block; }
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .s-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .s-grid { grid-template-columns: 1fr; } .s-section h2 { font-size: 30px; } .s-section { padding: 56px 0 62px; } }
.s-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.s-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(224, 32, 27, .14); }
.s-card__img { height: 200px; background: var(--soft) center/cover no-repeat; position: relative;
  display: flex; align-items: center; justify-content: center; }
.s-badge { position: absolute; top: 12px; left: 12px; background: #e0201b; color: #fff; font-size: 12px;
  font-weight: 800; padding: 5px 12px; border-radius: 999px; box-shadow: 0 2px 10px rgba(224, 32, 27, .4); }
.s-card__body { padding: 16px 18px 20px; }
.s-card__body h3 { margin: 0; font-size: 17px; font-weight: 700; }
.s-card__where { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.s-card__price { margin: 10px 0 0; display: flex; align-items: baseline; gap: 6px; }
.s-card__price b { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.s-card__price span { font-size: 13px; color: var(--muted); font-weight: 600; }
.s-card__sqm, .s-card__rent { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.s-card__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0 0; }
.s-card__facts li { background: var(--soft); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; color: #3a3a3c; font-weight: 600; }
.s-card__go { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: #b3261e; }
/* โจ้ 2026-09-20: ไม่เอากล่องดำ เอาเทาที่เข้มกว่าพื้นส่วนนี้นิดเดียวพอ */
.s-owner { margin-top: 26px; background: #e7e7ec; color: var(--ink); border-radius: var(--radius); padding: 26px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.s-owner h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.s-owner p { margin: 4px 0 0; color: #55555a; font-size: 14.5px; }
.s-owner .btn { font-weight: 800; }
/* โจ้ 2026-09-20: เมาส์เข้ามาในกล่องเทา ปุ่มเปลี่ยนจากดำเป็นเขียวสดของโลโก้
   และสีต้อง "ไล่" จากซ้ายไปขวาใน 0.1 วิ ไม่ใช่เปลี่ยนทั้งปุ่มพร้อมกัน —
   ทำด้วยพื้นหลังกว้างสองเท่า (เขียวครึ่งซ้าย ดำครึ่งขวา) แล้วเลื่อนตำแหน่ง */
.s-owner .btn-primary {
  background-image: linear-gradient(90deg, var(--accent) 0 48%, var(--btn) 52% 100%);
  background-size: 200% 100%; background-position: 100% 0; background-repeat: no-repeat;
  transition: background-position .1s linear, color .06s linear .04s;
}
.s-owner:hover .btn-primary, .s-owner:focus-within .btn-primary, .s-owner .btn-primary:hover {
  background-position: 0 0; color: var(--ink); }
