/* พราว พร็อพเพอร์ตี้ — หน้าตาเว็บ (แบบอ้างอิง design/comps/แบบอ้างอิง.png)
   น้ำเงินกรมท่า = ความน่าเชื่อถือ · ขาวนวล = พื้นอ่าน · ทองอ่อน = ปุ่มและจุดเน้นเท่านั้น (ไม่เกิน ~10%)
   กฎเหล็ก: ไม่ล้นจอที่ 360px · ข้อความไทย line-height ≥ 1.6 · ช่องกรอก ≥ 16px · หัวเว็บไม่มี backdrop-filter/transform */

:root {
  --accent: #0F2A4A;
  --navy: #0F2A4A;
  --navy-2: #173a63;
  --gold: #C9A45C;
  --gold-2: #b48d45;
  --gold-soft: #f4ead6;
  --ink: #16202C;
  --muted: #5b6878;
  --paper: #F7F5F0;
  --card: #ffffff;
  --line: #e5e0d6;
  --radius: 14px;
  --font: 'IBM Plex Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --display: var(--font);
  --gap: clamp(56px, 7vw, 96px);
  --pad: clamp(16px, 4vw, 32px);
  --max: 1200px;
  --shadow: 0 1px 2px rgba(15, 42, 74, .06), 0 8px 24px -12px rgba(15, 42, 74, .18);
  --shadow-lg: 0 2px 4px rgba(15, 42, 74, .06), 0 20px 40px -16px rgba(15, 42, 74, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.7; -webkit-text-size-adjust: 100%; overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
small { font-size: 14px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.45; margin: 0; text-wrap: balance; font-weight: 700; color: var(--navy); }
p { margin: 0 0 1em; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.wrap { width: min(var(--max), 100% - var(--pad) * 2); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: fixed; left: 8px; top: -200px; background: #fff; padding: 10px 16px; min-height: 44px; z-index: 100; border-radius: 8px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 10px; border: 1.5px solid var(--navy);
  background: var(--navy); color: #fff; font: inherit; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1d1405; }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-glass:hover { background: #fff; color: var(--navy); }
.btn-line { background: #06C755; border-color: #06C755; color: #fff; }
.btn-sm { min-height: 44px; padding: 6px 14px; font-size: 15px; }
/* ลิงก์ข้อความทั่วไป — พื้นที่กดอย่างน้อย 44px ตามมาตรฐานมือถือ */
.foot ul a, .crumbs a, .a-toc a, .a-related a, .proj-links a, .area-row h2 a, .contact-list a, .foot-contact a {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.pcard h3 a { display: block; min-height: 44px; }
.foot ul { gap: 0; }
.crumbs { align-items: center; gap: 0 6px; margin-bottom: 4px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn-line svg, .fl-line svg { fill: currentColor; stroke: none; }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; text-decoration: none; min-height: 44px; }
.link-more svg { width: 18px; height: 18px; transition: transform .2s; }
.link-more:hover svg { transform: translateX(3px); }

/* ---------- แถบบน + หัวเว็บ ---------- */
.topbar { background: var(--navy); color: #dfe6ef; font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 44px; flex-wrap: wrap; }
.topbar .tb-right a { min-height: 44px; min-width: 44px; justify-content: center; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 16px; height: 16px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tb-right { margin-left: auto; gap: 16px !important; }
.lang { display: inline-flex; align-items: center; gap: 2px; }
.lang svg { margin-right: 4px; }
.lang a { padding: 2px 8px; border-radius: 6px; font-size: 14px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.topbar .lang a[aria-current] { background: none; color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.lang a[aria-current] { background: var(--gold); color: #1d1405; font-weight: 600; }

.nav { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.nav.scrolled { box-shadow: 0 6px 20px -12px rgba(15, 42, 74, .35); }
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; min-height: 48px; }
.logo-img { width: 44px; height: 44px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.4; }
.logo-text b { font-size: 20px; letter-spacing: .04em; font-weight: 700; }
.logo-text small { font-size: 14px; color: var(--muted); }
.menu { display: flex; gap: 4px; }
.menu a { padding: 8px 12px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 8px; color: var(--ink); position: relative; }
.menu a:hover { color: var(--navy); background: var(--paper); }
.menu a[aria-current]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

/* เมนูมือถืออยู่นอกหัวเว็บ — เต็มจอเสมอ */
.mnav { position: fixed; inset: 0; z-index: 90; background: var(--navy); color: #fff; padding: 20px var(--pad) 32px;
  display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav-head { display: flex; justify-content: space-between; align-items: center; }
.mnav-head b { letter-spacing: .04em; font-size: 20px; }
.mnav-head button { background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.mnav-head svg { width: 28px; height: 28px; }
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a { color: #fff; text-decoration: none; font-size: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mnav nav a[aria-current] { color: var(--gold); }
.mnav .lang a { color: #fff; font-size: 16px; padding: 6px 12px; }
.mnav-cta { display: grid; gap: 10px; margin-top: auto; }
.mnav-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
body.nav-open { overflow: hidden; }

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-track { display: flex; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.hero-slide { position: relative; flex: 0 0 100%; min-height: clamp(460px, 70vh, 640px); display: flex; align-items: center; }
.hero-slide picture, .hero-slide picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-slide::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 28, 50, .82) 0%, rgba(10, 28, 50, .55) 45%, rgba(10, 28, 50, .08) 80%); }
.hero-body { position: relative; z-index: 1; padding-block: 56px 150px; }
.hero-title { font-size: clamp(32px, 5.4vw, 60px); color: #fff; max-width: 15ch; letter-spacing: -.01em; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: #e9eef5; max-width: 52ch; margin: 14px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero:not(.hero-home) .hero-body { padding-block: 72px; }
.hero-compact .hero-slide { min-height: 320px; }
.hero-split .hero-slide::after { background: linear-gradient(90deg, rgba(10, 28, 50, .9) 0 50%, rgba(10, 28, 50, .2)); }
.hero-dots { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: 132px; display: flex; gap: 8px; }
.hero:not(.hero-home) .hero-dots { bottom: 20px; }
.hero-dots { gap: 0; }
.hero-dots button { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.hero-dots button::before { content: ''; width: 10px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .55); transition: width .3s; }
.hero-dots button[aria-current="true"]::before { width: 28px; background: var(--gold); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--gold-2); letter-spacing: .02em; margin-bottom: 8px; }
.eyebrow-light { color: var(--gold); }

.hero-search { position: absolute; z-index: 3; left: 0; right: 0; bottom: 24px; }
.qsearch { background: #fff; color: var(--ink); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-lg); }
.qs-tabs { display: inline-flex; background: var(--paper); border-radius: 10px; padding: 4px; margin-bottom: 12px; }
.qs-tabs input, .seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; }
.qs-tabs label, .seg label { position: relative; }
.qs-tabs span, .seg span { display: block; padding: 6px 22px; border-radius: 8px; font-weight: 600; cursor: pointer; color: var(--muted); }
.qs-tabs input:checked + span, .seg input:checked + span { background: var(--navy); color: #fff; }
.qs-tabs input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--gold); }
.qs-fields { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: stretch; }
.qs-f { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; }
.qs-f svg { grid-row: span 2; color: var(--gold-2); }
.qs-f span { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.5; }
.qs-tabs input, .seg input, .chip input, .consent input { font-size: 16px; }
.qs-f select { border: 0; padding: 0; background: transparent; font: inherit; font-size: 16px; color: var(--muted); width: 100%; min-height: 28px; }
.qsearch .btn { min-height: 56px; padding-inline: 28px; }

/* ---------- แถบความเชื่อมั่น ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .sec-head { padding-top: 32px; margin-bottom: 0; }
.trust-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 24px 20px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.ticon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-2); flex: none; }
.ticon svg { width: 22px; height: 22px; }
.trust-item h3 { font-size: 17px; }
.trust-item p { margin: 2px 0 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding-block: var(--gap); }
.sec-tight { padding-block: calc(var(--gap) * .7); }
.sec-soft { background: #fff; }
.sec-navy { background: var(--navy); color: #e9eef5; }
.sec-navy h2 { color: #fff; }
.sec-navy .link-more { color: var(--gold); }
.sec-head { margin-bottom: 28px; max-width: 760px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.sec-head p { color: var(--muted); margin: 10px 0 0; font-size: 17px; }
.sec-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; flex-wrap: wrap; }
.page-hero { background: var(--navy); color: #e9eef5; padding-block: clamp(36px, 6vw, 64px); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(201, 164, 92, .35); }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4.2vw, 46px); position: relative; z-index: 1; }
.page-hero p { margin: 10px 0 0; max-width: 60ch; font-size: 17px; position: relative; z-index: 1; }
.page-hero .crumbs, .page-hero .crumbs a { color: #c4cfdc; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- การ์ดทรัพย์ ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pcard { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard-pic { position: relative; display: block; aspect-ratio: 4 / 3; background: #dfe5ec; overflow: hidden; }
.pcard-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard-pic img { transform: scale(1.04); }
.pcard-noimg { display: grid; place-items: center; height: 100%; color: #9aa7b6; }
.pcard-noimg svg { width: 48px; height: 48px; }
.badge { position: absolute; top: 12px; left: 12px; padding: 2px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; color: #fff; background: var(--navy); }
.badge-sale { background: var(--gold); color: #1d1405; }
.badge-rent { background: #1f6fb2; }
.badge-hold { left: auto; right: 12px; background: #b3412f; }
.d-tags .badge { position: static; }
.pcode { position: absolute; right: 10px; bottom: 10px; background: rgba(15, 42, 74, .85); color: #fff; font-size: 14px; padding: 2px 10px; border-radius: 6px; letter-spacing: .02em; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard h3 { font-size: 17px; line-height: 1.45; color: var(--ink); }
.pcard h3 a { text-decoration: none; }
.pcard h3 a::after { content: ''; position: absolute; inset: 0; }
.pcard { position: relative; }
.ploc { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }
.ploc svg { width: 16px; height: 16px; margin-top: 2px; }
.specs { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink); }
.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs svg { width: 18px; height: 18px; color: var(--gold-2); }
.specs small { color: var(--muted); font-size: 14px; }
.pprice { margin: auto 0 0; padding-top: 8px; font-size: 20px; font-weight: 700; color: var(--gold-2); }
.promo { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 14px; font-weight: 600; color: #8a2c1c; background: #fbe9e4; padding: 2px 10px; border-radius: 6px; position: relative; z-index: 1; }
.promo svg { width: 15px; height: 15px; }
.promo-lg { font-size: 15px; padding: 6px 12px; }
.pgrid-dark .pcard { box-shadow: none; }

/* ---------- ทำเล ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; color: #fff; text-decoration: none; background: var(--navy); }
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.area-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 28, 50, 0) 30%, rgba(10, 28, 50, .85)); }
.area-card:hover img { transform: scale(1.05); }
.area-body { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; }
.area-body b { font-size: 24px; line-height: 1.45; }
.area-body small { font-size: 14px; color: #e3e9f1; line-height: 1.5; }
.area-body em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; align-self: flex-start;
  background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 99px; }
.area-body em svg { width: 16px; height: 16px; }

/* ---------- ฝากขาย / ขั้นตอน ---------- */
.consign-band { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.consign-band img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.consign-band > div { padding: clamp(24px, 4vw, 48px); }
.consign-band h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 12px; }
.consign-band p { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 22px 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; position: relative; }
.sicon { grid-row: span 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: var(--navy); }
.sicon svg { width: 24px; height: 24px; }
.snum { color: var(--gold-2); font-weight: 700; font-size: 18px; line-height: 1.4; }
.steps b { color: var(--navy); line-height: 1.4; }
.steps small { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 2px; }
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -10px 0 24px; }
.type-chips a { color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .35); padding: 4px 16px; border-radius: 8px; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.type-chips a:hover { background: var(--gold); border-color: var(--gold); color: #1d1405; }

/* ---------- โครงการ / บทความ / ทีม ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.proj-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.proj-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.proj-card > span { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.proj-card b { color: var(--navy); font-size: 18px; }
.proj-card small { color: var(--muted); }
.proj-sum { font-size: 15px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-card em, .post em { font-style: normal; color: var(--navy); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; margin-top: 4px; }
.proj-card em svg, .post em svg { width: 16px; height: 16px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); padding-bottom: 16px; }
.post img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 8px; }
.post b, .post small, .post em { padding-inline: 16px; }
.post b { color: var(--navy); font-size: 18px; line-height: 1.45; }
.post small { color: var(--muted); font-size: 15px; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.agent { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 14px; border: 1px solid var(--line); }
.agent img, .agent-ph { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.agent-ph { display: grid; place-items: center; background: var(--paper); color: var(--navy); }
.agent b { display: block; color: var(--navy); font-size: 17px; }
.agent small { display: block; color: var(--muted); }
.agent-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- เกี่ยวกับ / รีวิว / คำถาม / ติดต่อ ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.about.pic-right .about-pic { order: 2; }
.about-pic img { border-radius: 18px; width: 100%; }
.about-text h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.about-text p { color: #333f4d; font-size: 17px; }
.prose p { font-size: 17px; }
.prose h2 { margin: 0 0 14px; font-size: clamp(24px, 2.6vw, 30px); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; background: var(--paper); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.stars { display: flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.7; }
.quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; color: var(--navy); }
.quote figcaption span span { font-size: 14px; color: var(--muted); }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--gold-2); }
.faq details[open] summary::after { content: '−'; }
.faq-a { padding: 0 20px 18px; margin: 0; color: #3b4755; }
.cta-band { padding-block: clamp(40px, 6vw, 72px); text-align: center; }
.cta-dark { background: var(--navy); color: #fff; }
.cta-dark h2 { color: #fff; }
.cta-soft { background: var(--gold-soft); }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 20px; }

.contact-sec { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #e9eef5; }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.contact-info h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.contact-info h3 { color: #fff; font-size: 17px; margin: 24px 0 8px; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { color: var(--gold); margin-top: 3px; }
.contact-list a { color: #fff; }
.hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; max-width: 360px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255, 255, 255, .15); padding: 4px 0; }
.closed { color: #ffb3a6; }
.map { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #e5e9ee; }
.map-wrap { margin-top: 28px; }

/* ---------- ฟอร์ม ---------- */
.lead { background: #fff; color: var(--ink); border-radius: 18px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; box-shadow: var(--shadow); }
.lead h2 { font-size: 20px; }
.lead label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; color: var(--navy); }
.lead input:not([type=checkbox]):not([type=radio]), .lead select, .lead textarea, .filters input:not([type=checkbox]):not([type=radio]), .filters select {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 14px; min-height: 48px; border-radius: 10px;
  border: 1px solid #cfd6df; background: #fff; color: var(--ink); }
.lead textarea { resize: vertical; }
.lead input:focus, .lead select:focus, .lead textarea:focus, .filters input:focus, .filters select:focus { outline: 3px solid rgba(201, 164, 92, .45); border-color: var(--gold-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-ref { margin: 0; background: var(--gold-soft); border-radius: 10px; padding: 8px 12px; font-size: 15px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lead-ref svg { width: 16px; height: 16px; color: var(--gold-2); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.msg { margin: 0; min-height: 1.6em; font-size: 15px; }
.msg.ok { color: #12784a; font-weight: 600; }
.msg.bad { color: #b3412f; font-weight: 600; }
.file label { display: flex; gap: 8px; align-items: center; }
.file input { padding: 10px !important; background: var(--paper) !important; border-style: dashed !important; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--ink) !important; font-size: 15px !important; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--navy); }

/* ---------- หน้ารวมทรัพย์ ---------- */
.filters { background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 14px; margin-bottom: 18px; }
.filters label > span, .filters legend { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.f-main { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.seg { display: inline-flex; background: var(--paper); border-radius: 10px; padding: 4px; align-self: end; min-height: 48px; }
.seg label { display: flex; }
.seg span { padding: 8px 16px; }
.f-more summary { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--navy); list-style: none; }
.f-more summary::-webkit-details-marker { display: none; }
.f-more[open] summary svg { transform: rotate(180deg); }
.f-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.amen { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.amen legend { margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 15px; cursor: pointer; background: #fff; }
.chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); }
.f-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: end; flex-wrap: wrap; }
.f-actions .sort { margin-right: auto; min-width: 200px; }
.count { color: var(--muted); margin: 0 0 16px; }
.count b { color: var(--navy); }
.empty { text-align: center; padding: 40px 16px; background: #fff; border-radius: var(--radius); }
.empty h2 { font-size: 22px; margin-bottom: 8px; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pager a, .pager b, .pager span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border-radius: 10px; text-decoration: none; }
.pager a { background: #fff; border: 1px solid var(--line); }
.pager b { background: var(--navy); color: #fff; }

/* ---------- หน้ารายละเอียดทรัพย์ ---------- */
.pgal { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-bottom: 28px; }
.pgal-main { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #dfe5ec; }
.pgal-main img { width: 100%; height: 100%; max-height: 560px; object-fit: contain; background: #1b2a3c; }
.pgal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(15, 42, 74, .85); color: #fff; padding: 4px 12px; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.pgal-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.pgal-thumbs a { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.pgal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pgal-thumbs .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 42, 74, .6); color: #fff; font-size: 22px; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.detail-main h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 12px 0 8px; }
.detail-main h2 { font-size: 22px; margin: 32px 0 12px; }
.d-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag { display: inline-flex; gap: 4px; padding: 2px 12px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.tag-code b { color: var(--navy); letter-spacing: .03em; }
.d-price { font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--gold-2); margin: 10px 0; }
.d-price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.detail .specs { gap: 10px; }
.detail .specs li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 16px; }
.ticks, .chips { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { color: var(--gold-2); margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; }
.chips li { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px 14px; font-size: 15px; }
.chips svg { width: 16px; height: 16px; color: var(--gold-2); }
.plan img { border-radius: var(--radius); background: #fff; }
.video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.video iframe { width: 100%; height: 100%; border: 0; }
.detail-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.side-card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.side-card h2 { font-size: 19px; margin-bottom: 10px; }
.side-card .lead { box-shadow: none; padding: 0; }
.side-card .agent { border: 0; padding: 0; }
.side-card .agent + .agent { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0; }
.side-card .row2 { grid-template-columns: 1fr; }
.near { margin-top: 56px; }
.d-sticky { display: none; }

/* ---------- ทำเลและโครงการ / ฝากขาย ---------- */
.areas-list { display: grid; gap: 28px; }
.area-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 4vw, 40px); align-items: center; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.area-row-pic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.area-row > div { padding: 24px 24px 24px 0; }
.area-row h2 a { text-decoration: none; }
.area-phones { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: -8px 0 6px; font-weight: 500; }
.area-phones svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.area-phones a { color: var(--navy); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.area-phones a:hover { text-decoration: underline; }
.foot ul.foot-area-team { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 6px; }
.foot-area-team li { display: block; }
.foot-area-team b { display: block; font-weight: 600; font-size: 14px; color: var(--gold); }
.foot-area-team .area-phones { margin: 0; font-weight: 400; gap: 0 8px; }
.foot-area-team .area-phones svg { margin-top: 0; }
.foot-area-team .area-phones a { color: inherit; }
.proj-links { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.proj-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: var(--paper); padding: 4px 12px; border-radius: 8px; font-size: 15px; }
.proj-links svg { width: 16px; height: 16px; color: var(--gold-2); }
.consign-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: start; }
.consign-steps { background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--shadow); position: sticky; top: 92px; display: grid; gap: 16px; }
.consign-steps h2 { font-size: 20px; }
.consign-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.consign-steps li { display: flex; gap: 12px; align-items: center; }
.consign-steps li span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 700; flex: none; }
.consign-form h2 { margin-top: 6px; }

/* ---------- แกลเลอรี / บทความ ---------- */
/* คลิปรีวิวทรัพย์ — คลิปแนวตั้งหรือแนวนอนก็ไม่ถูกครอป */
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.reel { margin: 0; }
.reel video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #0b1520; border-radius: 14px; }
.reel figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); }
@media (max-width: 767px) {
  .reels { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .reel { scroll-snap-align: start; }
}
.gal { columns: var(--cols, 3) 220px; column-gap: 12px; }
.gal a { display: block; break-inside: avoid; margin-bottom: 12px; border-radius: 12px; overflow: hidden; position: relative; }
.gal a span { position: absolute; left: 10px; bottom: 10px; background: rgba(15, 42, 74, .8); color: #fff; font-size: 14px; padding: 2px 10px; border-radius: 6px; }
.a-wrap { max-width: 780px; }
.a-wrap h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.a-meta { color: var(--muted); font-size: 15px; }
.a-cover img { border-radius: 16px; margin: 20px 0; }
.a-lead { font-size: 19px; color: #333f4d; }
.a-toc { background: #fff; border-radius: 12px; padding: 16px 20px; margin: 20px 0; border: 1px solid var(--line); }
.a-body { font-size: 17px; }
.a-body h2 { margin: 36px 0 12px; font-size: 26px; }
.a-body h3 { margin: 24px 0 8px; }
.a-body blockquote { border-left: 4px solid var(--gold); margin: 20px 0; padding: 4px 20px; background: #fff; border-radius: 0 12px 12px 0; }
.a-fig img { border-radius: 12px; }
.a-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.a-embed { background: #fff; border-radius: 12px; padding: 16px 20px; margin-top: 24px; }
.a-cta { background: var(--gold-soft); border-radius: 12px; padding: 20px; margin-top: 24px; text-align: center; }

/* ---------- ท้ายเว็บ / ปุ่มลอย ---------- */
.foot { background: #0a1f38; color: #c4cfdc; padding-top: 56px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; }
.foot h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: #e3e9f1; text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot-logo { display: block; color: #fff; font-size: 22px; letter-spacing: .05em; }
.foot-brand span { color: var(--gold); }
.foot-brand p { margin-top: 12px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { color: var(--gold); margin-top: 3px; width: 18px; height: 18px; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px 96px; font-size: 14px; }

.float-contact { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.fl { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px; border-radius: 99px; color: #fff; text-decoration: none; font-weight: 600; box-shadow: var(--shadow-lg); }
.fl-line { background: #06C755; }
.fl-call { background: var(--navy); }
.fl svg { width: 22px; height: 22px; }

/* ---------- กล่องดูรูป ---------- */
.light { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.light::backdrop { background: rgba(5, 14, 26, .9); }
.light img { max-width: 92vw; max-height: 86vh; border-radius: 8px; margin: auto; }
.light button { position: fixed; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-x { top: 16px; right: 16px; }
.lb-p { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-n { right: 12px; top: 50%; transform: translateY(-50%); }
.nf svg { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--gold-2); }
.nf h1 { font-size: 34px; margin-bottom: 8px; }
.nf .btn { margin: 6px; }

/* ---------- อนิเมชันตอนเลื่อนถึง (ครั้งเดียว) ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- จอแคบ ---------- */
@media (max-width: 1100px) {
  .menu { display: none; }
  .nav-toggle { display: block; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-main .seg { grid-column: 1 / -1; justify-self: start; }
  .f-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
  .qs-fields { grid-template-columns: 1fr 1fr; }
  .qsearch .btn { grid-column: 1 / -1; }
  .hero-search { position: relative; bottom: auto; margin-top: -96px; padding-bottom: 8px; }
  .hero-home .hero-body { padding-bottom: 120px; }
  .hero-home .hero-dots { bottom: 112px; }
  .hero-home { padding-bottom: 8px; background: var(--paper); }
  .hero-home .hero-track { background: var(--navy); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item { border-top: 1px solid var(--line); }
  .areas, .projects, .posts, .quotes { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .consign-band, .about, .contact, .area-row, .consign-grid, .detail-grid { grid-template-columns: 1fr; }
  .area-row > div { padding: 0 20px 24px; }
  .about.pic-right .about-pic { order: 0; }
  .detail-side, .consign-steps { position: static; }
  .pgal { grid-template-columns: 1fr; }
  .pgal-thumbs { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .d-sticky { display: flex; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; background: #fff; box-shadow: 0 -6px 20px -10px rgba(15, 42, 74, .35);
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; }
  .d-sticky span { display: flex; flex-direction: column; line-height: 1.45; }
  .d-sticky b { color: var(--gold-2); font-size: 18px; }
  .d-sticky small { color: var(--muted); }
  body:has(.d-sticky) .float-contact { bottom: 84px; }
}
@media (max-width: 767px) {
  .topbar .wrap > span:first-child, .topbar .tb-areas { display: none; }
  .topbar .wrap { gap: 8px; }
  .tb-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .nav .wrap { min-height: 64px; }
  .nav-cta { display: none; }
  .logo-text b { font-size: 17px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard-body { padding: 10px 12px 12px; }
  .pcard h3 { font-size: 15px; }
  .pprice { font-size: 17px; }
  .specs { font-size: 14px; gap: 4px 10px; }
  .specs small { display: none; }
  /* หน้าทรัพย์: ต้องเห็นป้ายกำกับ ไม่งั้นเลขชั้นกับเลขที่จอดรถดูเหมือนกัน (แก้ด่วน-641) */
  .detail .specs small { display: inline; font-size: 13px; }
  .pcode { font-size: 14px; padding: 0 8px; right: 6px; bottom: 6px; }
  .badge { top: 8px; left: 8px; font-size: 14px; padding: 1px 8px; }
  .trust-item p { font-size: 14px; }
  .areas { grid-template-columns: 1fr; }
  .projects, .posts, .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .f-actions .sort { min-width: 0; width: 100%; }
  .f-actions .btn { flex: 1; }
  .consign-band img { min-height: 200px; }
  .foot-grid { grid-template-columns: 1fr; }
  /* ปุ่มลอยล่างจอบนมือถือ: ไลน์ + โทร สูงไม่เกิน 60px */
  .float-contact { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px -12px rgba(15, 42, 74, .35); }
  .fl { flex: 1; justify-content: center; height: 44px; border-radius: 10px; box-shadow: none; }
  .fl + .fl { margin-left: 8px; }
  body:has(.d-sticky) .float-contact { display: none; }
  .foot-bottom { padding-bottom: 88px; }
}
@media (max-width: 479px) {
  .qs-fields { grid-template-columns: 1fr; }
  .f-main { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 16px 12px; gap: 10px; }
  .trust-item h3 { font-size: 15px; }
  .trust-item p { font-size: 14px; }
  .ticon { width: 36px; height: 36px; }
  .gal { columns: 2; column-gap: 8px; }
  .gal a { margin-bottom: 8px; }
}
