/* MODE Property — โทนหรู (Knight Frank) · โครงบริษัทเดียว (Siam Real Estate) · การ์ด/ตัวกรอง (FazWaz) */
:root {
  --ink: #14181d; --ink-2: #3b4148; --muted: #6b7178; --line: #e4dfd6;
  --bg: #faf8f4; --surface: #ffffff; --sand: #f1ece3; --gold: #a8874f; --gold-2: #8a6d3b;
  --line-green: #06c755; --wa: #1fa855; --warn: #b4552d;
  --serif: "Cormorant Garamond", "Noto Serif Thai", Georgia, serif;
  --sans: "Inter", "Noto Sans Thai", system-ui, sans-serif;
  --r: 14px; --shadow: 0 10px 30px rgba(20, 24, 29, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2efe9; --ink-2: #d4cfc6; --muted: #a29d94; --line: #2e3237;
    --bg: #111417; --surface: #181c20; --sand: #1f2328; --gold: #c9a86a; --gold-2: #dcbf86;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #f2efe9; --ink-2: #d4cfc6; --muted: #a29d94; --line: #2e3237;
  --bg: #111417; --surface: #181c20; --sand: #1f2328; --gold: #c9a86a; --gold-2: #dcbf86;
  --shadow: 0 10px 30px rgba(0, 0, 0, .4); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: 1.6rem; margin-top: 2.2rem; }
h3 { font-size: 1.25rem; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { font-family: "Noto Serif Thai", var(--serif); line-height: 1.4; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: .28em; }
.brand-sub { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--gold); }
.nav-sell { color: var(--gold-2) !important; font-weight: 600; }
.top-act { display: flex; align-items: center; gap: 12px; }
.lang { text-decoration: none; font-size: .85rem; font-weight: 600; letter-spacing: .1em; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
@media (max-width: 720px) { .nav { display: none; } .top-act { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; color: #fff; border: 0; cursor: pointer; transition: transform .15s, filter .15s; min-height: 44px; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn.sm { padding: 8px 16px; min-height: 36px; font-size: .9rem; }
.btn-line { background: var(--line-green); }
.btn-wa { background: var(--wa); }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* gallery mosaic */
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); padding: 18px 0 12px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; border-radius: var(--r); overflow: hidden; }
.g { display: block; overflow: hidden; background: var(--sand); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g:hover img { transform: scale(1.04); }
.g0 { grid-row: span 2; }
.g-all { position: absolute; right: 16px; bottom: 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font: 600 .9rem var(--sans); cursor: pointer; box-shadow: var(--shadow); }
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 110px; margin-inline: -16px; border-radius: 0; }
  .g0 { grid-column: span 2; grid-row: auto; } .g3, .g4 { display: none; }
}

/* property layout */
.prop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin: 32px 0 64px; }
@media (max-width: 960px) { .prop-grid { grid-template-columns: 1fr; gap: 0; } .side { display: none; } }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.badge { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.badge.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge.warn { color: var(--warn); border-color: currentColor; }
.loc { color: var(--muted); margin: 0 0 6px; }
.price-m { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold-2); margin: 4px 0 18px; }
.price-m small, .price small { font: 500 .9rem var(--sans); color: var(--muted); }
@media (min-width: 961px) { .price-m { display: none; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 18px 0 0; }
.facts div { background: var(--surface); padding: 14px 16px; }
.facts dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1.05rem; }
.detail { color: var(--ink-2); white-space: normal; }
.map { height: 340px; border-radius: var(--r); border: 1px solid var(--line); background: var(--sand); z-index: 0; }
.map-note { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.side { position: relative; }
.card-c { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.card-c .price { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--gold-2); margin: 0; line-height: 1.1; }
.card-c .code { font-size: .8rem; letter-spacing: .1em; color: var(--muted); margin: 6px 0 20px; text-transform: uppercase; }
.card-c h3 { margin-bottom: 4px; }
.card-c .muted { font-size: .9rem; margin: 0 0 16px; }

/* mobile bottom bar */
.mbar { display: none; }
@media (max-width: 960px) {
  .mbar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 60; gap: 10px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
  .mbar-price { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--gold-2); white-space: nowrap; }
  .mbar-price small { display: none; }
  .mbar .cta { flex: 1; } .mbar .btn { padding: 10px; }
  body:has(.mbar) .foot { padding-bottom: 90px; }
}

/* hero + list cards */
.hero { background: linear-gradient(180deg, var(--sand), var(--bg)); padding: 64px 0 40px; }
.hero p { color: var(--ink-2); max-width: 640px; font-size: 1.08rem; }
.hero-sell .cta { max-width: 420px; margin-top: 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin: 32px 0 64px; }
.card { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .badge { position: absolute; left: 12px; top: 12px; }
.card-b { padding: 16px 18px 20px; }
.card-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--gold-2); margin: 0 0 4px; }
.card-b h3 { font-size: 1.15rem; margin-bottom: 2px; }
.card-f { font-size: .88rem; color: var(--ink-2); margin: 8px 0 0; }

/* consign */
.sell { padding-bottom: 64px; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.why div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.why h3 { color: var(--gold-2); }
.why p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; gap: 0; } }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 600; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding: 0 0 10px 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }
.remove { margin-top: 40px; background: var(--sand); border-radius: var(--r); padding: 24px; }
.remove .cta { max-width: 420px; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 20px; font-size: .92rem; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-in p { color: var(--muted); }
.foot-links, .foot-contact { display: flex; flex-direction: column; gap: 8px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--gold); }
.foot-copy { color: var(--muted); font-size: .8rem; margin-top: 24px; }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr; gap: 16px; } }

/* photoswipe (popup) */
.pswp { --pswp-bg: #0b0d10; }
.pswp__counter { font-family: var(--sans); letter-spacing: .08em; }
.pswp-thumbs { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 6px; justify-content: center; padding: 0 12px; overflow-x: auto; z-index: 10; }
.pswp-thumbs button { flex: 0 0 auto; width: 64px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; opacity: .55; cursor: pointer; background: #222; }
.pswp-thumbs button.on { opacity: 1; border-color: var(--gold); }
.pswp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .pswp-thumbs { display: none; } }

/* 30 พ.ย. (2): ป้ายภาพจำลอง · ช่องทางติดต่อสำรอง · แผนที่ Google · หน้านโยบาย */
.g-render { position: absolute; left: 16px; top: 16px; background: rgba(0,0,0,.6); color: #fff; font-size: .78rem; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; }
.render-note { font-size: .85rem; color: var(--warn); margin: 8px 0 0; }
.cta-alt { font-size: .82rem; color: var(--muted); margin: 12px 0 0; line-height: 1.7; }
.cta-alt a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.cta-alt a:hover { color: var(--gold); }
.hero-sell .cta-alt { max-width: 520px; }
.map iframe { width: 100%; height: 100%; border: 0; border-radius: var(--r); }
.map-note a { color: var(--gold-2); }
.legal { max-width: 760px; }
.legal p { color: var(--ink-2); }
.brand-logo { height: 54px; width: auto; display: block; }
.brand.has-logo { flex-direction: row; align-items: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo { background: #f6f2ea; border-radius: 8px; padding: 3px 6px; } }
:root[data-theme="dark"] .brand-logo { background: #f6f2ea; border-radius: 8px; padding: 3px 6px; }
.foot .brand-logo { height: 56px; margin-bottom: 8px; }
.card-render { left: auto; right: 12px; top: 12px; }

/* ===== 1 ธ.ค. — แนว FazWaz: ตัวอักษร sans อ่านตัวเลขง่าย · กล่องข้อเท็จจริง · การ์ดราคา · ข้อมูลทรัพย์ · เกี่ยวกับเรา (คงโทนสีเดิม) ===== */
:root { --sans: "Geist", "Noto Sans Thai", "Inter", system-ui, sans-serif; --serif: var(--sans); --num: "Geist", "Inter", system-ui, sans-serif; }
body { font-family: var(--sans); font-size: 16px; }
h1, h2, h3, :lang(th) h1, :lang(th) h2, :lang(th) h3 { font-family: var(--sans); font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h2 { font-size: 1.3rem; }
.price, .price-m, .card-price, .mbar-price, .pc-price, .facts dd, .fbox b, .glance dd {
  font-family: var(--num); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.5px; color: var(--ink); font-weight: 650;
}
.crumbs b { color: var(--ink); font-weight: 600; }
.badges { align-items: center; }
.badge { font-size: .72rem; font-weight: 600; text-transform: none; letter-spacing: .02em; padding: 5px 11px; }
.badge.sale { background: #e9f7ef; color: #13794a; border-color: #bfe8d0; }
.badge.own { background: color-mix(in srgb, var(--gold) 14%, var(--surface)); color: var(--gold-2); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.upd { font-size: .8rem; color: var(--muted); }
.loc { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .92rem; }
.loc svg, .card-f svg, .fbox svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.summary { color: var(--ink-2); font-size: 1.02rem; margin: 4px 0 18px; }
.fboxes { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.fbox { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.fbox:first-child { border-left: 0; }
.fbox svg { color: var(--gold-2); width: 22px; height: 22px; margin-bottom: 6px; }
.fbox b { font-size: 1.35rem; line-height: 1.2; }
.fbox span { font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) { .fboxes { grid-template-columns: 1fr 1fr; } .fbox:nth-child(3) { border-left: 0; } .fbox:nth-child(n+3) { border-top: 1px solid var(--line); } }
.price-card { margin: 22px 0 6px; padding: 22px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 9%, var(--surface)), var(--surface)); }
.pc-label { margin: 0; font-size: .8rem; font-weight: 600; color: var(--gold-2); letter-spacing: .02em; }
.pc-price, .card-c .price { margin: 2px 0 0; font-size: clamp(2rem, 4.2vw, 2.6rem); line-height: 1.15; color: var(--ink); }
.pc-sub { margin: 4px 0 16px; font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.price-card .cta { max-width: 460px; }
@media (min-width: 961px) { .price-card { display: none; } }
.card-c .price { font-size: 2.1rem; }
.card-c .pc-sub { margin-bottom: 6px; }
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; border-top: 1px solid var(--line); }
.glance div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.glance dt { color: var(--muted); font-size: .92rem; }
.glance dd { margin: 0; text-align: right; font-weight: 600; letter-spacing: 0; font-size: .95rem; }
@media (max-width: 720px) { .glance { grid-template-columns: 1fr; } }
.detail { font-size: .98rem; line-height: 1.75; }
/* การ์ดรายการ */
.card-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.card-price { font-size: 1.35rem; margin: 0; }
.card-b h3 { font-size: 1rem; font-weight: 600; margin: 0; line-height: 1.4; }
.card-f { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 0; font-size: .88rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card-f span { display: inline-flex; align-items: center; gap: 5px; }
.card-b .loc { font-size: .85rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.tags span { font-size: .74rem; padding: 3px 9px; border-radius: 6px; background: var(--sand); color: var(--ink-2); }
.card-code { margin: 4px 0 0; font-size: .72rem; color: var(--muted); letter-spacing: .06em; }
.card-img .badge { left: 12px; top: 12px; }
/* เกี่ยวกับเรา + FAQ */
.about { margin: 48px 0 8px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.about h2 { margin-top: 0; }
.about p { color: var(--ink-2); margin: 0 0 12px; }
.prop .about { margin-top: 40px; }
.faq-home { margin: 32px 0 64px; }
