/* ============================================================
   Ever Rise — Image-First Luxury Showcase (mockup v1)
   จากหลักฐาน research 2026-07-29 (everrise-research/00-SYNTHESIS.md):
   - รูปนำทุกอย่าง ตัวหนังสือเป็นผู้ช่วย
   - hero เข้ม (กลิ่น dark luxury) + เนื้อหาพื้นสว่างให้รูปเด่น
   - การ์ด/detail สูตรมาตรฐานที่คนไทยคุ้น (ราคาเด่น + ราคา/ตร.ม. + spec icons)
   - LINE-first conversion + sticky bar มือถือ
   ============================================================ */

:root {
  --navy: #0B1F37;        /* สีแบรนด์ (verify จากโลโก้ 3 ทาง) */
  --navy-deep: #071726;
  --gold: #CBB088;        /* ทองแบรนด์ — ใช้บนพื้นเข้มเท่านั้น */
  --gold-ink: #7A5C2E;    /* ทองที่อ่านได้บนพื้นสว่าง */
  --bg: #FFFFFF;
  --bg-warm: #F6F4F0;
  --ink: #16202E;
  --muted: #5B6472;
  --line: #E5E1D8;
  --line-green: #06C755;  /* สีทางการ LINE — คนไทยรู้จักทันที */
  --shadow: 0 1px 3px rgba(11,31,55,.07), 0 8px 28px rgba(11,31,55,.07);
  --f-display: 'Taviraj', serif;
  --f-body: 'Prompt', sans-serif;   /* ฟอนต์เดียวกับโปสเตอร์บริษัท */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; } /* แถบหัว sticky สูง 65 — กดลิงก์ #roi / EVA เลื่อนจอแล้วหัวกล่องไม่โดนบัง */
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;               /* ไทยต้องการ leading สูงกว่า latin */
  color: var(--ink);
  background: var(--bg);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.45; margin: 0; }

.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  font-size: 12.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-ink); margin: 0 0 10px;
}
.on-dark .eyebrow { color: var(--gold); }

/* ── HEADER ─────────────────────────────────────────────── */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hd__in { display: flex; align-items: center; gap: 28px; height: 64px; }
.hd__logo { flex: 0 0 auto; display: flex; align-items: center; }
.hd__logo img { height: 52px; width: auto; display: block; }
.hd__nav { display: flex; gap: 26px; margin-inline-start: auto; }
.hd__nav a { font-size: 14px; font-weight: 400; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.hd__nav a:hover { border-bottom-color: var(--gold); }
/* เมนูห้ามตกบรรทัด — วัดจริง 2026-09-26: กล่องหัวสูงสุด 1240px · ไทย 7 แท็บต้องใช้ ~1256px (ช่องไฟ 26) = ตกบรรทัดทุกขนาดจอ
   แก้: ไทยช่องไฟ 18 (ครบ 7 แท็บ = 1160px พอดี) · จอแคบลงซ่อนแท็บรอง (คู่มือ/FAQ มีท้ายเว็บ · เอเยนต์มีลิงก์ใน hero ไทย)
   ⛔ แท็บ "ชาวต่างชาติ" ต้องแสดงเสมอ · เพิ่มแท็บใหม่ = วัดใหม่ด้วย mobile-web-test/measure-nav.mjs */
.hd__nav a { white-space: nowrap; }
html[lang="th"] .hd__nav { gap: 18px; }
@media (max-width: 1239px) { html[lang="th"] .hd__opt { display: none; } }
@media (max-width: 1089px) { .hd__opt { display: none; } }
@media (max-width: 1059px) { html[lang="th"] .hd__agents { display: none; } }
.hd__lang { display: flex; gap: 4px; }
.hd__lang a {
  font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 99px;
  color: var(--muted); border: 1px solid var(--line);
  white-space: nowrap;   /* กัน 中文 ห่อเป็น 中/文 */
  display: inline-flex; align-items: center; gap: 6px;
}
/* ธงชาติเป็น SVG (ไม่ใช้ emoji — Windows ไม่มีกลิฟธง จะกลายเป็นตัวอักษร) */
.hd__lang .flag {
  width: 18px; height: 12px; border-radius: 2px; flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);   /* ขอบบางๆ กันธงขาวจมพื้นขาว */
}
.hd__line { white-space: nowrap; }
.hd__lang a.on { background: var(--navy); color: var(--gold); border-color: var(--navy); }
/* ปุ่มกดบนจอสัมผัสต้องสูง/กว้าง ≥40px (UI audit 2026-09-28: ภาษา 35 · ลูกศรรูป 34 · ซูมแผนที่ 30)
   แผนที่: leaflet.css โหลดทีหลัง style.css → ใช้ #pmap ให้ชนะ specificity */
#pmap .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
.hd__line {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--line-green); color: #fff;
  font-size: 13.5px; font-weight: 500; padding: 9px 16px; border-radius: 6px;
}
.hd__line:hover { filter: brightness(1.06); }

/* ── HERO ───────────────────────────────────────────────── */
/* 66vh (เดิม 88vh): แถวทรัพย์ #feat ต้องโผล่ในจอแรกทั้งคอมและมือถือ — Dew #647 */
.hero { position: relative; min-height: 66vh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,23,38,.52) 0%, rgba(7,23,38,.18) 42%, rgba(7,23,38,0) 62%),
    linear-gradient(180deg, rgba(7,23,38,.28) 0%, rgba(7,23,38,.05) 38%, rgba(7,23,38,.82) 100%);
}
.hero__in { width: 100%; padding-bottom: 64px; display: flex; align-items: flex-end; gap: 32px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 500; color: #fff; max-width: 20ch; text-shadow: 0 2px 22px rgba(7,23,38,.45); }
.hero__sub { font-size: clamp(15px, 1.4vw, 18px); font-weight: 300; color: rgba(255,255,255,.92); max-width: 46ch; margin: 14px 0 26px; text-shadow: 0 1px 14px rgba(7,23,38,.5); }
.hero .eyebrow { text-shadow: 0 1px 10px rgba(7,23,38,.6); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-size: 15px; font-weight: 500;
  padding: 13px 26px; border-radius: 6px; border: 1px solid transparent; cursor: pointer;
}
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { filter: brightness(1.05); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--line { background: var(--line-green); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); }

/* การ์ดเล็กมุม hero — บอกว่ารูปคือทรัพย์จริงตัวไหน */
.hero__tag {
  margin-inline-start: auto; flex: 0 0 auto;
  background: rgba(7,23,38,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(203,176,136,.4); border-radius: 8px;
  padding: 14px 18px; font-size: 13px;
}
.hero__tag b { display: block; font-family: var(--f-display); font-size: 17px; font-weight: 500; }
.hero__tag span { color: var(--gold); font-weight: 500; }

/* ── TRUST STRIP ────────────────────────────────────────── */
.trust { background: var(--bg-warm); border-bottom: 1px solid var(--line); }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 26px; }
.trust__item { display: flex; align-items: baseline; gap: 12px; justify-content: center; color: inherit; text-decoration: none; }
a.trust__item:hover .trust__label { color: var(--navy); text-decoration: underline; }
.trust__num { font-family: var(--f-display); font-size: 30px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.trust__label { font-size: 14px; color: var(--muted); }

/* ── SECTIONS ───────────────────────────────────────────── */
.sect { padding-block: 84px; }
.sect--warm { background: var(--bg-warm); }
.sect__head { margin-bottom: 44px; }
.sect__head h2 { font-size: clamp(26px, 3vw, 38px); color: var(--navy); }
.sect__head p { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }

/* ── แถวทรัพย์ใต้ hero (#feat) — Dew #647: คนเลื่อนหน้าแรกแค่ ~31% → ทรัพย์ต้องอยู่บนสุด ──
   คอม = 4 คอลัมน์ 2 แถว · ≤960 = ปัดข้าง (เห็นใบถัดไปโผล่ ชวนปัด) */
.homes { padding-block: 28px 40px; }
.homes__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.homes__head h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--navy); }
.homes__head .link-more { white-space: nowrap; }
.homes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.homes__grid .scard { display: block; }
.homes__grid .scard__body { padding: 14px 16px 16px; }
.homes__grid .scard__body h3 { font-size: 16px; }
.homes__grid .scard__price { font-size: 18px; }
.homes__all { display: none; text-align: center; margin: 22px 0 0; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 500;
  padding: 4px 12px; border-radius: 99px; margin-inline-end: 6px;
}
.badge--new { background: rgba(11,31,55,.08); color: var(--navy); }
.badge--quota { background: #0B1F37; color: #fff; }
.badge--sold { background: #8C3A2B; color: #fff; }
.badge--airbnb { background: #1F6F5C; color: #fff; }
.lair { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--navy); cursor: pointer; padding: 6px 12px; border: 1px solid #1F6F5C; border-radius: 99px; user-select: none; }
.lair input { accent-color: #1F6F5C; }
.lair.on { background: #1F6F5C; color: #fff; }
.price { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.specs { display: flex; gap: 22px; margin: 18px 0 20px; padding: 14px 0; border-block: 1px solid var(--line); }
.specs div { font-size: 14px; color: var(--ink); }
.specs b { font-weight: 500; color: var(--navy); }
.link-more { font-size: 14.5px; font-weight: 500; color: var(--gold-ink); border-bottom: 1px solid var(--gold-ink); padding-bottom: 2px; }
.link-more:hover { color: var(--navy); border-color: var(--navy); }

/* ── BEFORE / AFTER (ช่องว่างตลาด — ไม่มีใครทำ) ─────────── */
.ba-sect { background: var(--navy); color: #fff; }
.ba-sect .sect__head h2 { color: #fff; }
.ba-sect .sect__head p { color: rgba(255,255,255,.75); }
.ba {
  position: relative; aspect-ratio: 16 / 9; max-height: 640px; width: 100%;
  overflow: hidden; border-radius: 10px; border: 1px solid rgba(203,176,136,.35);
  user-select: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 50%); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: var(--gold); pointer-events: none;
}
.ba__handle::after {
  content: "⟨ ⟩"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--gold); color: var(--navy-deep);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: -1px;
}
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba__tag { position: absolute; top: 16px; font-size: 12.5px; font-weight: 500; padding: 5px 14px; border-radius: 99px; background: rgba(7,23,38,.65); color: #fff; }
.ba__tag--b { left: 16px; }
.ba__tag--a { right: 16px; color: var(--navy-deep); background: var(--gold); }
.ba__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.8); }
.ba__cap b { color: var(--gold); font-weight: 500; }

/* ── SELL TO US (lead magnet ที่ทุก portal พิสูจน์) ───────── */
.sell { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.sell h2 { font-size: clamp(26px, 3vw, 36px); color: var(--navy); }
.sell p { color: var(--muted); }
.sell__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.sell__points { display: grid; gap: 14px; }
.sell__point { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; font-size: 14.5px; }
.sell__point b { color: var(--navy); font-weight: 500; }

/* ── FOOTER ─────────────────────────────────────────────── */
.ft { background: var(--navy-deep); color: rgba(255,255,255,.82); padding: 56px 0 88px; }
.ft__in { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.ft__logo img { height: 68px; width: auto; }
.ft__contact { margin-inline-start: auto; text-align: right; font-size: 14.5px; }
.ft__contact a { color: #fff; border-bottom: 1px solid var(--gold); }
.ft__contact .gold { color: var(--gold); }
.ft__ver { margin-top: 6px; font-size: 11px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }   /* .32 = 2.9:1 ไม่ผ่าน WCAG (Impeccable #922) */
.ft__legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(203,176,136,.25); font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ── STICKY MOBILE BAR (โทร | LINE) ─────────────────────── */
.mbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1.4fr;
  box-shadow: 0 -2px 12px rgba(11,31,55,.18);
}
.mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 8px; font-size: 15px; font-weight: 500; }
.mbar__tel { background: var(--navy); color: #fff; }
.mbar__line { background: var(--line-green); color: #fff; }

/* ── DETAIL PAGE ────────────────────────────────────────── */
.crumb { font-size: 13px; color: var(--muted); padding-block: 14px; }
.crumb a:hover { color: var(--navy); }

/* minmax(0,1fr) ไม่ใช่ 1fr — 1fr ยอมให้แถบรูปย่อดันคอลัมน์กว้างเกินจอ (eh-6912 30 รูป = หน้ากว้าง 474px บนมือถือ 390 · audit 2026-09-27) */
.gal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.gal__main { position: relative; aspect-ratio: 16 / 9; max-height: 62vh; width: 100%; overflow: hidden; border-radius: 10px; }
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__count { position: absolute; right: 14px; bottom: 14px; background: rgba(7,23,38,.65); color: #fff; font-size: 12.5px; padding: 5px 13px; border-radius: 99px; }
.gal__thumbwrap { position: relative; }
.gal__thumbs { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.gal__thumbs button { flex: 0 0 calc((100% - 50px) / 6); padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 4 / 3; }
.gal__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(11,31,55,.82); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: background .15s; }
.gal__arrow:hover { background: rgba(11,31,55,1); }
.gal__arrow--prev { left: 4px; } .gal__arrow--next { right: 4px; }
.gal__arrow[hidden] { display: none; }
.gal__thumbs button.on { border-color: var(--gold); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
/* โปสเตอร์/แปลนแนวตั้ง ห้ามครอปหัว/ราคา/เบอร์ — facebook-master ตรวจเจอ 2026-10-08 */
.gal__main img.is-p, .gal__thumbs button[data-p] img { object-fit: contain; background: #f3efe8; }
/* คลิปทรัพย์แนวตั้ง 9:16 — กรอบสูงขึ้นตอนเล่นคลิป ไม่ครอปภาพ (เจ้านาย 2026-11-03 หน้าทรัพย์ขึ้นวิดีโอก่อน) */
.gal__main.is-v { aspect-ratio: auto; height: min(78vh, 720px); max-height: none; background: #0B1F37; cursor: default; }
.gal__main video { width: 100%; height: 100%; object-fit: contain; display: block; }
.gal__main [hidden] { display: none; }
.gal__main.is-v .gal__count { display: none; }
.gal__unmute { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); border: 0; border-radius: 99px; padding: 8px 16px; background: rgba(7,23,38,.78); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.gal__vthumb { position: relative; }
.gal__vthumb span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(7,23,38,.45); color: #fff; font-size: 13px; font-weight: 600; }

.dhead { display: flex; gap: 32px; align-items: flex-start; padding-block: 30px 8px; flex-wrap: wrap; }
.dhead h1 { font-size: clamp(26px, 3.4vw, 40px); color: var(--navy); }
/* ป้ายสถานะ (ติดจอง/ขายแล้ว) อยู่ข้างชื่อทรัพย์เลย — Dew 2026-08-12 "ย้ายมาอยู่ข้างๆ ชื่อ ดูง่ายๆ" */
.dhead__name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dhead__name h1 { margin: 0; }
.dhead__badges { margin: 10px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.dhead__area { color: var(--muted); margin: 6px 0 12px; }
.dhead__price { margin-inline-start: auto; text-align: right; }
.dhead__price .price { font-size: clamp(28px, 3.2vw, 38px); display: block; }
.dhead__price .psm { display: block; font-size: 13.5px; color: var(--muted); }
.dhead__price .psm--sqm { margin-top: 6px; }

.dgrid { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; padding-block: 26px 70px; }
.dmain > section { margin-bottom: 44px; }
.dmain h2 { font-size: 24px; color: var(--navy); margin-bottom: 14px; }
.dmain p { color: var(--ink); }

.legal { max-width: 760px; margin-inline: auto; padding: 56px 24px 100px; }
.legal h1 { font-size: clamp(26px, 3vw, 34px); color: var(--navy); margin-bottom: 6px; }
.legal .legal__updated { font-size: 13px; color: var(--muted); margin-bottom: 34px; }
.legal h2 { font-size: 19px; color: var(--navy); margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink); font-weight: 300; line-height: 1.75; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal li { margin-bottom: 6px; }

.ledger { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ledger tr { border-bottom: 1px solid var(--line); }
.ledger td { padding: 11px 0; }
.ledger td:first-child { color: var(--muted); width: 42%; }
.ledger td:last-child { font-weight: 400; color: var(--ink); }

.loclist { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.loclist li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.loclist b { font-weight: 400; color: var(--muted); }
.map-ph {
  margin-top: 16px; aspect-ratio: 21 / 9; border-radius: 10px;
  background: repeating-linear-gradient(45deg, var(--bg-warm), var(--bg-warm) 14px, #EFECE5 14px, #EFECE5 28px);
  display: grid; place-items: center; color: var(--muted); font-size: 13.5px; border: 1px dashed var(--line);
}

.enq { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; box-shadow: var(--shadow); }
.enq h3 { font-size: 19px; color: var(--navy); margin-bottom: 4px; }
.enq__sub { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.enq .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.enq__or { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0; }
.enq input, .enq select {
  width: 100%; font-family: var(--f-body); font-size: 14px; font-weight: 300;
  padding: 11px 14px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg-warm); color: var(--ink);
}
.enq__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.55; color: var(--muted); margin: 2px 0 12px; cursor: pointer; }
.enq__consent input { width: auto; margin: 2px 0 0; flex-shrink: 0; }
.enq__consent a { color: var(--navy); text-decoration: underline; }
.enq__agent { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.enq__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--f-display); font-size: 17px; }

.simgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.scard { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.scard__img { aspect-ratio: 4 / 3; position: relative; }
.scard__img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.scard__badges { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.scard__badges .badge { margin-inline-end: 0; }
.scard__body { padding: 18px 20px 20px; }
.scard__body h3 { font-size: 18px; color: var(--navy); }
.scard__area { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.scard__price { font-size: 20px; }
.scard__specs { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ── LIST PAGE ──────────────────────────────────────────── */
.lhead { padding-block: 40px 26px; }
.lhead h1 { font-size: clamp(28px, 3.4vw, 42px); color: var(--navy); }
.lfilter { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.lfilter button {
  font-family: var(--f-body); font-size: 13.5px; font-weight: 400; cursor: pointer;
  padding: 8px 18px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--muted);
}
.lfilter button.on { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.listgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 70px; }
.scard__psm { font-size: 12.5px; color: var(--muted); margin-inline-start: 8px; font-weight: 300; }

/* Typographic band — ทรัพย์ที่ยังไม่มีรูป (ห้ามการ์ดเทาว่าง) */
.tband {
  position: absolute; inset: 0; background: var(--navy);
  display: grid; place-content: center; gap: 6px; text-align: center;
}
.scard__img .tband { position: absolute; }
.tband--hero { position: relative; aspect-ratio: 16/9; max-height: 46vh; border-radius: 10px; overflow: hidden; }
.tband__code { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3.5vw, 52px); color: var(--gold); letter-spacing: .02em; }
.tband__note { font-size: 12.5px; color: rgba(203,176,136,.85); }

/* Sell side (ภาพบรรยากาศ + points) */
.sell__side { display: grid; gap: 14px; }
.sell__img { border-radius: 10px; box-shadow: var(--shadow); aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.sell__side.no-img .sell__img { display: none; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .hd__nav { display: none; }
  /* มือถือ: ปุ่ม LINE ในหัวซ้ำแถบล่าง (มี "ทัก LINE") = ซ่อน · โลโก้มุมซ้ายบนต้องโชว์+กดได้เสมอ */
  .hd__line { display: none; }
  .hd__in { gap: 12px; }
  .hd__logo img { height: 44px; }
  .hd__lang { margin-inline-start: auto; }
  .hd__lang a { min-height: 40px; }
  .hero__in { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero__tag { margin-inline-start: 0; }
  .trust__in { grid-template-columns: 1fr; gap: 10px; padding-block: 20px; }
  .trust__item { justify-content: flex-start; }
  .homes { padding-block: 26px 30px; }
  .homes__head { margin-bottom: 14px; }
  .homes__head .link-more { display: none; }
  .homes__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; }
  .homes__grid .scard { scroll-snap-align: start; }
  .homes__all { display: block; }
  .sell { grid-template-columns: 1fr; }
  .dgrid { grid-template-columns: minmax(0, 1fr); }
  /* มือถือ: ดันกล่องติดต่อ+เครื่องมือเอเยนต์ (โหลดรูป/copy) ขึ้นมาหลังแกลเลอรี ไม่งั้นจมท้ายสุดหาไม่เจอ */
  .enq { position: static; order: -1; }
  .simgrid { grid-template-columns: 1fr; }
  .listgrid { grid-template-columns: 1fr; }
  .gal__thumbs button { flex-basis: calc((100% - 20px) / 3); }
  .ft { padding-bottom: 170px; }   /* เผื่อ sticky bar + ปุ่มลอย EVA ที่ลอยเหนือ bar (120 เดิมบังลิงก์ท้ายเว็บ · audit 2026-09-27) */
  .mbar { display: grid; }
  .ft__contact { margin-inline-start: 0; text-align: left; }
}

/* ขายตามสภาพ — ทรัพย์ที่ยังไม่รีโนเวท (ห้ามติด badge รีโนเวทใหม่) */
.badge--asis { background: rgba(140,58,43,.12); color: #8C3A2B; }

/* ติดจอง — Dew ยืนยันสถานะจริง */
.badge--rsv { background: #7A5C2E; color: #fff; }

/* ── ค้นหา + กรอง หน้ารวมทรัพย์ (Dew 07-29) ── */
.lsearch { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.lsearch input[type=search] { flex: 1 1 280px; min-width: 0; padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; background: #fff; color: var(--ink, #16202c); }
.lsearch input[type=search]:focus, .lsearch select:focus { outline: 2px solid rgba(203,176,136,.55); outline-offset: 1px; }
.lsearch select { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; background: #fff; color: var(--ink, #16202c); }
.lcount { font-size: 13px; color: var(--muted); margin-inline-start: auto; }
.lnores { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.lnores p { margin: 0; }
/* ค้นรหัสจากโพสต์แล้วไม่เจอ = ทางออกไป LINE (log ก.ย. 13 รหัสที่ลูกค้าค้นไม่อยู่บนเว็บ) */
.lnores__line { margin-top: 10px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lnores__line .btn { padding: 8px 18px; font-size: 14px; }
.lnores button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 16px; cursor: pointer; font: inherit; font-size: 13px; margin-inline-start: 6px; }
.lnores button:hover { border-color: var(--navy); }

/* ── แผนที่หมุดทรัพย์ (Dew 07-29) ── */
.pmapsec { margin-top: 52px; }
.pmapsec h2 { color: var(--navy); }
.pmap__sub { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
#pmap { height: 480px; border-radius: 12px; border: 1px solid var(--line); background: #edeef0; }
@media (max-width: 640px) { #pmap { height: 380px; } }
.pmap-pop { font-size: 13px; line-height: 1.7; }
.pmap-pop a { color: var(--navy); text-decoration: none; }
.pmap-pop a:hover b { text-decoration: underline; }

/* ── hero slideshow (Dew 07-30: ภาพวิ่ง กดไปหน้าทรัพย์ เรียงตามยอดวิว) ── */
.hero__img .hslide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1.1s ease; }
.hero__img .hslide.on { opacity: 1; pointer-events: auto; }
.hero__img .hslide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { pointer-events: none; }
.hero__in { pointer-events: none; }
.hero__in a { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .hero__img .hslide { transition: none; } }
.hero__tagpre { font-style: normal; }
/* มือถือ: รูปห้องอยู่บนสุดไม่มีอะไรทับ ข้อความย้ายลงพื้นน้ำเงินใต้รูป · ชื่อ+ราคาเหลือแถบเล็กมุมรูป
   (เจ้านาย 26 ต.ค. "ข้อความทำให้ห้องดูไม่เด่น แดกพื้นที่เยอะไป") */
@media (max-width: 640px) {
  .hero { display: block; min-height: 0; background: var(--navy-deep); }
  .hero::after { display: none; }
  .hero__img { position: relative; inset: auto; z-index: auto; aspect-ratio: 16 / 10; }
  .hero__in { padding-block: 16px 22px; gap: 0; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: 26px; line-height: 1.25; text-shadow: none; }
  .hero__sub { font-size: 14px; margin: 8px 0 14px; text-shadow: none; }
  .hero__ctas { flex-wrap: nowrap; gap: 10px; }
  .hero__ctas .btn { flex: 1; justify-content: center; padding: 11px 12px; font-size: 14px; }
  .hero__tag {
    position: absolute; left: 12px; top: calc(62.5vw - 44px); max-width: calc(100% - 24px);
    padding: 6px 12px; border-radius: 999px; font-size: 12.5px; line-height: 1.35;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .hero__tagpre { display: none; }
  .hero__tag b { display: inline; font-family: var(--f-body); font-size: 12.5px; margin-right: 6px; }
}

/* ── ฟีเจอร์ชุด research (Dew อนุมัติ 07-30) ── */
.cny, .usd { display: block; color: var(--gold-ink); font-weight: 500; margin-top: 2px; }
.loc-area { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.loc-note { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.calc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.calc__grid label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.calc__grid input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); width: 100%; }
.calc__grid input:focus { outline: 2px solid rgba(203,176,136,.55); outline-offset: 1px; }
.calc__res { background: var(--bg-warm); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 15px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc__res b { font-family: var(--f-display); font-size: 26px; color: var(--navy); font-variant-numeric: tabular-nums; }
.calc__res span { color: var(--muted); font-size: 13px; }
.calc__note { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }

/* ── ROI ค่าเช่า (#1500) ── */
.roi-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 12px; border: 1px solid rgba(122,92,46,.35); border-radius: 999px; font-size: 13.5px; color: var(--gold-ink); background: #fbf8f2; white-space: nowrap; }
.roi-chip b { font-weight: 500; font-variant-numeric: tabular-nums; }
.roi-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.roi__sub { color: var(--muted); font-size: 13.5px; margin: -6px 0 16px; }
.roi__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.roi__card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 16px; box-shadow: var(--shadow); overflow: hidden; }
.roi__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--gold); }
.roi__k { margin: 0; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; color: var(--gold-ink); }
.roi__pct { margin: 2px 0 6px; font-family: var(--f-display); font-size: 44px; line-height: 1.15; color: var(--navy); font-variant-numeric: tabular-nums; }
.roi__pct small { font-size: 24px; margin-left: 2px; }
.roi__pct span { font-family: var(--f-body); font-size: 14px; color: var(--muted); margin-left: 6px; }
.roi__calc { margin: 0; font-size: 14px; color: var(--ink); }
.roi__math { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; background: var(--bg-warm); border-radius: 8px; padding: 6px 10px; }
.roi__src { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.roi__note { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; line-height: 1.7; }
@media (max-width: 640px) { .roi__pct { font-size: 40px; } .roi__grid { grid-template-columns: 1fr; } }
.share { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.share .share__line { background: var(--line-green); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.share button { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; }
.share button:hover { border-color: var(--navy); }
.gal__main img { cursor: zoom-in; }
/* ภาพเต็มจอ: ทับทุกอย่างรวมปุ่ม EVA (z 2147483000) · แถบซ้าย/ขวาสุดเต็มความสูง = ที่เดียวที่แตะแล้วเปลี่ยนรูป (เจ้านาย 19 พ.ย.) */
.lb { position: fixed; inset: 0; z-index: 2147483600; background: rgba(7,23,38,.97); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lb__x { position: absolute; top: 18px; right: 22px; z-index: 2; font-size: 22px; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.lb__nav { position: absolute; top: 0; bottom: 0; z-index: 1; width: 18%; min-width: 56px; max-width: 160px; display: flex; align-items: center; font-size: 42px; line-height: 1; background: none; border: 0; color: #fff; cursor: pointer; padding: 0 16px; -webkit-tap-highlight-color: transparent; }
.lb__nav:hover { background: rgba(255,255,255,.06); }
.lb__prev { left: 0; justify-content: flex-start; } .lb__next { right: 0; justify-content: flex-end; }
.lb__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; letter-spacing: .06em; }
@media (max-width: 640px) { .lb img { max-width: 100vw; } .lb__nav { font-size: 30px; padding: 0 10px; text-shadow: 0 1px 4px rgba(0,0,0,.7); } }

/* ── แถบรับเอเจนต์ (Dew สั่ง 07-30: "รับเอเจนต์ ทุกทรัพย์") ── */
.agentband { background: var(--navy); color: #fff; border-top: 1px solid rgba(203,176,136,.35); }
.agentband__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 44px; flex-wrap: wrap; }
.agentband h2 { color: var(--gold); font-size: clamp(22px, 2.6vw, 32px); }
.agentband__sub { color: rgba(255,255,255,.82); font-size: 14.5px; margin: 8px 0 0; max-width: 62ch; }
.agentband .btn { flex: 0 0 auto; }
@media (max-width: 720px) { .agentband__in { flex-direction: column; align-items: flex-start; } }
/* ข้อความทองรับเอเจนต์ ใน hero (แทนบรรทัด sub · Dew 2026-08-10) */
.hero__agent { color: var(--gold); font-weight: 500; }
.hero__agent b { font-weight: 700; }
.hero__agent a { color: var(--gold); text-decoration: none; border-bottom: 1.5px solid var(--gold); white-space: nowrap; margin-left: 6px; font-weight: 600; }
.hero__agent a:hover { opacity: .82; }

/* ── ทรัพย์ขายแล้ว — portfolio โชว์ท้ายลิสต์ (research addon #6) ── */
.scard--sold .scard__img img { filter: saturate(.35) brightness(.94); }
.scard--sold .scard__price { color: var(--muted); }

/* ── ผลงานที่ขายแล้ว (Dew 07-30 — font เลขห้องใหญ่ตามสั่ง) ── */
.soldstrip { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 18px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.soldstrip::-webkit-scrollbar { height: 8px; }
.soldstrip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.soldcard { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); scroll-snap-align: start; display: block; }
.soldcard__img { position: relative; aspect-ratio: 4 / 3; background: var(--bg-warm); }
.soldcard__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.soldcard__img .badge--sold { position: absolute; top: 10px; left: 10px; }
.soldcard__band { width: 100%; height: 100%; background: var(--navy); display: grid; place-items: center; padding: 18px; }
.soldcard__band span { font-family: var(--f-display); font-size: 21px; color: var(--gold); text-align: center; line-height: 1.5; }
.soldcard__body { padding: 14px 18px 18px; }
.soldcard__body h3 { font-size: 16.5px; color: var(--navy); }
.soldcard__room { font-family: var(--f-display); font-size: 22px; font-weight: 600; color: var(--navy); margin: 2px 0 0; }
.soldcard__price { font-size: 14.5px; color: var(--muted); margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.soldcard__more { font-size: 13px; font-weight: 500; color: var(--gold-ink); margin: 8px 0 0; }
@media (max-width: 640px) { .soldstrip { grid-auto-columns: 78vw; } }

/* ── เครื่องมือเอเจนต์ (Dew 07-30) ── */
/* จัดเป็นสแต็กแนวตั้งสะอาด — เดิม flex-row-wrap แล้วปุ่มห่อบรรทัดมั่ว ดูโล่ง (Dew 08-04) */
.share.agtools { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 14px; padding-top: 14px; }
.agtools > span { font-weight: 600; color: var(--navy); }
.agtools .agtools__dl, .agtools > button { width: 100%; justify-content: center; text-align: center; }
.agtools .agtools__dl { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--gold-ink); color: var(--gold-ink); background: #fff; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.agtools .agtools__dl:hover { background: rgba(122,92,46,.07); }
.agtools .agtools__dl[hidden] { display: none; }
.enq__or { margin: 6px 0 10px; }

/* ── /agents/ page (Dew 08-04) ── */
.hero--agent { min-height: 78vh; }
.arew { margin-inline-start: auto; flex: 0 0 auto; background: rgba(7,23,38,.55); backdrop-filter: blur(8px); border: 1px solid rgba(203,176,136,.42); border-radius: 10px; padding: 20px 24px; min-width: 220px; }
.arew__l { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.arew__big { font-family: var(--f-display); font-weight: 600; font-size: 42px; line-height: 1; color: #fff; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.arew__big small { font-size: .5em; color: var(--gold); font-family: var(--f-body); font-weight: 500; }
.arew__cap { font-family: var(--f-body); font-size: 15px; letter-spacing: .02em; color: var(--gold); font-weight: 500; margin-top: 1px; }
.arew__g { display: flex; align-items: center; gap: 11px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(203,176,136,.28); }
.arew__g img { width: 58px; height: 42px; flex: none; border-radius: 6px; object-fit: cover; border: 1px solid rgba(203,176,136,.45); }
.arew__g b { font-family: var(--f-display); font-size: 17px; color: #fff; font-weight: 500; }
.arew__fine { margin-top: 12px; font-size: 11px; color: rgba(255,255,255,.62); }
@media (max-width: 760px) { .arew { margin-inline-start: 0; margin-top: 20px; } }
.ainvite { background: var(--bg-warm); border-bottom: 1px solid var(--line); }
.ainvite__in { display: flex; align-items: center; gap: 18px; padding-block: 22px; }
.ainvite__ic { width: 44px; height: 44px; flex: none; border-radius: 8px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 20px; }
.ainvite b { font-family: var(--f-display); font-size: clamp(18px, 2.2vw, 22px); font-weight: 500; color: var(--navy); display: block; }
.ainvite span { font-size: 14px; color: var(--muted); }
.awhy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.awhy__c { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; box-shadow: var(--shadow); }
.awhy__c h3 { font-size: 17px; color: var(--navy); margin: 0 0 6px; }
.awhy__c p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .awhy { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .awhy { grid-template-columns: 1fr; } }
.actool { text-align: center; }
.actool .sect__head { margin-bottom: 24px; }
.actool .sect__head p { margin-inline: auto; }
.actool__all { margin-top: 18px; font-size: 14px; }
.atool { max-width: 560px; margin: 0 auto; text-align: left; }
.atool__sel { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.atool__sel:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(203,176,136,.22); }
.atool__act { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.atool__act[hidden] { display: none; }
.atool__btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-align: center; }
.atool__btn:hover { border-color: var(--navy); }
.atool__dl { border-color: var(--gold-ink); color: var(--gold-ink); }
.atool__dl:hover { background: rgba(122,92,46,.07); border-color: var(--gold-ink); }
.atool__fb { background: #1877F2; border-color: #1877F2; color: #fff; }
.atool__fb:hover { background: #145dbf; border-color: #145dbf; }
.atool__more { border: 0; color: var(--muted); grid-column: 1 / -1; padding-top: 4px; }
.atool__hint { margin-top: 12px; font-size: 13px; color: var(--gold-ink); background: var(--bg-warm); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; line-height: 1.55; }
.atool__hint[hidden] { display: none; }
@media (max-width: 520px) { .atool__act { grid-template-columns: 1fr; } }
.agtools__fb { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: #1877F2; color: #fff; border: 1px solid #1877F2; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.agtools__fb:hover { background: #145dbf; }
.agtools__hint { font-size: 12px; color: var(--gold-ink); margin: 2px 0 0; line-height: 1.5; }
.agtools__hint[hidden] { display: none; }
.acta { background: var(--navy); }
.acta__in { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.acta h2 { color: #fff; }
.acta p { color: rgba(255,255,255,.8); margin: 8px 0 0; }
.acta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── หน้า /press/ — ข่าว/การรับรองจากสื่อ (BAM × อรสิริน) · ล้อ token เว็บ ── */
.prs-hero { background: var(--navy); color: #fff; padding: clamp(48px,7vw,84px) 0 clamp(40px,6vw,64px); }
.prs-eyebrow { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; font-weight: 500; }
.prs-hero h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px,4.4vw,50px); line-height: 1.18; color: #fff; margin: 0 0 22px; max-width: 17ch; }
.prs-hero h1 em { font-style: normal; color: var(--gold); }
.prs-lede { font-size: clamp(15px,1.5vw,18px); line-height: 1.75; color: rgba(255,255,255,.82); max-width: 62ch; margin: 0 0 30px; }
.prs-quote { margin: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); max-width: 56ch; }
.prs-quote q { display: block; font-family: var(--f-display); font-size: clamp(17px,2vw,23px); line-height: 1.4; color: #fff; }
.prs-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 13px; color: rgba(255,255,255,.6); }

.prs-strip { background: var(--bg-warm); border-bottom: 1px solid var(--line); }
.prs-strip .wrap { display: grid; grid-template-columns: repeat(4,1fr); }
.prs-stat { padding: 30px 22px; text-align: center; border-inline-start: 1px solid var(--line); }
.prs-stat:first-child { border-inline-start: 0; }
.prs-n { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(30px,4vw,44px); color: var(--gold-ink); line-height: 1; }
.prs-k { display: block; margin-top: 9px; font-size: 13px; color: var(--muted); line-height: 1.4; }

.prs-sec { padding: clamp(44px,6vw,68px) 0; }
.prs-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.prs-head h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px,2.6vw,30px); color: var(--navy); margin: 0; }
.prs-tag { font-size: 12px; color: var(--gold-ink); background: #F3ECDF; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }

.prs-mandate { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.prs-mandate > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; }
.prs-mandate h3 { font-family: var(--f-display); font-weight: 600; font-size: 18px; color: var(--navy); margin: 0 0 10px; }
.prs-mandate p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0; }

.prs-news { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; }
.prs-card { display: flex; flex-direction: column; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 18px 18px 16px; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.prs-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11,31,55,.1); border-color: #D8CDB4; }
.prs-verified { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #2F9E5B; }
.prs-outlet { font-family: var(--f-display); font-weight: 600; font-size: 18px; color: var(--navy); }
.prs-kind { font-size: 12.5px; color: var(--muted); }
.prs-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--gold-ink); }

.prs-facts { margin: 0; border-top: 1px solid var(--line); }
.prs-facts > div { display: grid; grid-template-columns: minmax(180px,32%) 1fr; gap: 20px; padding: 15px 4px; border-bottom: 1px solid var(--line); }
.prs-facts dt { margin: 0; font-size: 13.5px; color: var(--gold-ink); font-weight: 500; }
.prs-facts dd { margin: 0; font-size: 14.5px; color: var(--navy); line-height: 1.55; }

.prs-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; padding-top: 8px; max-width: 72ch; }

@media (max-width: 780px) {
  .prs-strip .wrap { grid-template-columns: repeat(2,1fr); }
  .prs-stat:nth-child(3) { border-inline-start: 0; }
  .prs-mandate { grid-template-columns: 1fr; }
  .prs-facts > div { grid-template-columns: 1fr; gap: 4px; padding: 13px 4px; }
  .prs-facts dt { color: var(--muted); }
}

/* ── /foreigners/ คู่มือผู้ซื้อชาวต่างชาติ (2026-09-26) · ใช้โครง .legal + token เดิม ── */
.fg { max-width: 860px; }
.fg .eyebrow { margin-bottom: 6px; }
.fg__lead { font-size: 17px; color: var(--muted); margin: 6px 0 8px; font-weight: 300; }
.fg h3 { font-size: 16px; color: var(--navy); margin: 22px 0 8px; font-weight: 500; }
.fg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fg-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; box-shadow: var(--shadow); }
.fg-card__h { font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.fg-card p { margin: 0; font-size: 14.5px; }
.fg-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fg-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 6px 0; }
.fg-table th, .fg-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); line-height: 1.6; font-weight: 300; color: var(--ink); }
.fg-table thead th { background: var(--navy); color: #fff; font-weight: 500; }
.fg-table tbody th { color: var(--navy); font-weight: 500; width: 22%; }
.fg-units { max-width: 560px; }
.fg-units tbody th { width: auto; }
.fg-note { font-size: 14px; color: var(--muted) !important; }
.fg-conv { background: var(--bg-warm); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 14px 0 6px; }
.fg-conv__h { font-weight: 500 !important; color: var(--navy) !important; margin: 0 0 10px; }
.fg-conv__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fg-conv__f { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.fg-conv__f:focus-within { border-color: var(--gold-ink); box-shadow: 0 0 0 2px rgba(203,176,136,.35); }
.fg-conv__f input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 10px 12px; color: var(--ink); background: transparent; }
.fg-conv__f span { display: flex; align-items: center; justify-content: center; min-width: 84px; padding: 0 12px; font-size: 14px; color: var(--muted); background: var(--bg-warm); border-inline-start: 1px solid var(--line); white-space: nowrap; }
/* ลูกศร +/- ของช่องตัวเลขกินที่จนตัวเลขโดนตัดบนมือถือ (เห็นจากภาพจริง 390px) — ซ่อน */
.fg-conv__f input { -moz-appearance: textfield; appearance: textfield; }
.fg-conv__f input::-webkit-outer-spin-button, .fg-conv__f input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fg-conv__thai { margin: 12px 0 0 !important; color: var(--gold-ink) !important; font-weight: 400 !important; }
@media (max-width: 720px) { .fg-conv__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fg-conv__grid { grid-template-columns: 1fr; } }
.fg-steps { counter-reset: fg; list-style: none; padding: 0 !important; }
.fg-steps li { counter-increment: fg; position: relative; padding: 0 0 14px 46px; }
.fg-steps li::before { content: counter(fg); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 500; font-size: 14px; }
.fg-steps b { display: block; color: var(--navy); font-weight: 500; }
.fg-steps span { display: block; }
.fg-cta { margin-top: 36px; padding: 22px 24px; border-radius: 12px; background: var(--navy); }
.fg-cta h2 { color: #fff; margin: 0 0 14px; }
.fg-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.fg-disc { margin-top: 18px; }
.fg-hint { margin: 12px 0 0; font-size: 14px; }
.fg-hint a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.fgband { background: var(--bg-warm); border-bottom: 1px solid var(--line); }
.fgband__in { padding-block: 12px; font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.fgband__in b { color: var(--navy); font-weight: 500; }
.fgband__in a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .fg-cards { grid-template-columns: 1fr; }
  .fg-table { font-size: 14px; }
  .fg-table tbody th { width: 30%; }
}
