/* BeachTeak — หน้าตาเว็บตามดีไซน์ (โทนครีม ทอง หรูหรา เรียบ)
   สีแบรนด์จากลูกค้า: Primary #1F1F1D · Accent #B89B65 · Background #F7F5F0 · Text #333333 · White #FFFFFF */

:root {
  --ink: #1F1F1D;
  --ink-2: #2a2a27;
  --gold: #B89B65;
  --gold-deep: #9c8150;
  --gold-soft: #e9dfcb;
  --cream: #F7F5F0;
  --sand: #EFE8DC;
  --text: #333333;
  --muted: #6d6a63;
  --line: #e4ddcf;
  --white: #FFFFFF;
  --ok: #2f7a55;
  --bad: #b5432f;
  --serif: 'Noto Serif', 'Noto Serif Thai', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Noto Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --r: 10px;
  --r-lg: 14px;
  --shadow: 0 18px 50px rgba(31, 31, 29, .10), 0 2px 8px rgba(31, 31, 29, .05);
  --shadow-sm: 0 6px 20px rgba(31, 31, 29, .08);
  --hdr: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body.lang-th { font-family: 'Noto Sans Thai', 'Inter', sans-serif; line-height: 1.75; }
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.005em; }
.lang-th h1, .lang-th h2, .lang-th h3, .lang-th h4 { line-height: 1.4; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { width: 100%; max-width: 1380px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.help { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.lang-th .eyebrow { letter-spacing: .04em; font-size: 13px; }
.eyebrow-light { color: #e7d3a8; }
.eyebrow-sm { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 6px; font-weight: 600; }
.lang-th .eyebrow-sm { text-transform: none; letter-spacing: 0; }
.display { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.12; }
.h-xl { font-size: clamp(30px, 3.6vw, 44px); }
.lede { color: var(--muted); font-size: 17px; max-width: 640px; }

/* ---------- ปุ่ม ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 6px;
  border: 1px solid transparent; font: 600 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.lang-th .btn { letter-spacing: .01em; text-transform: none; font-size: 15px; }
.btn .i { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 12.5px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-wa { background: #25D366; color: #fff; }
.btn-line { background: #06C755; color: #fff; }
.btn-social { background: #fff; border-color: var(--line); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 15px; min-height: 52px; }
.btn-fb { background: #1877F2; color: #fff; border-color: #1877F2; }
.i { width: 20px; height: 20px; flex: none; }
.i-brand { width: 20px; height: 20px; flex: none; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; color: var(--gold-deep); font-size: 14px; cursor: pointer; text-decoration: none; }
.link-btn .i { width: 16px; height: 16px; }
.link-btn:hover { color: var(--ink); }
.arrow-link { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
.arrow-link .i { color: var(--gold); transition: transform .25s var(--ease); }
.arrow-link:hover .i { transform: translateX(4px); }

/* ---------- หัวเว็บ ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hdr.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(31, 31, 29, .05); }
.hdr-row { display: flex; align-items: center; gap: 24px; height: var(--hdr); }
.logo img { height: 46px; width: auto; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; font: 600 13px/1 var(--sans); letter-spacing: .08em;
  text-transform: uppercase; text-decoration: none; color: var(--ink); border-radius: 6px; }
.lang-th .nav-item > a { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; }
.nav-item > a .i { width: 14px; height: 14px; opacity: .6; }
.nav-item > a:hover, .nav-item > a[aria-current] { color: var(--gold-deep); }
.dd { position: absolute; top: 100%; left: 0; min-width: 250px; list-style: none; margin: 0; padding: 10px; background: #fff; border-radius: var(--r);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; }
.has-dd:hover .dd, .has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: none; }
.dd a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 6px; text-decoration: none; font-size: 14.5px; }
.dd a:hover { background: var(--cream); color: var(--gold-deep); }
.dd .dd-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.dd .dd-all a { font-weight: 600; color: var(--gold-deep); }
.dd .i { width: 16px; height: 16px; }
.hdr-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { padding: 4px 10px; border-radius: 999px; font: 600 12px/1.2 var(--sans); text-decoration: none; color: var(--muted); }
.lang a[aria-current] { background: var(--ink); color: #fff; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--cream); }
.icon-btn i { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #fff;
  font: 600 11px/18px var(--sans); font-style: normal; }
.menu-btn { display: none; }
.nav-mobile-extra { display: none; }

/* ---------- แบนเนอร์หน้าแรก + ค้นหา ---------- */
.rehero { position: relative; color: #fff; padding-bottom: 0; }
.rehero-media { position: absolute; inset: 0 0 70px; overflow: hidden; background: var(--ink); }
.rehero-media img, .rehero-media video { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.rehero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 18, 14, .62) 0%, rgba(20, 18, 14, .28) 48%, rgba(20, 18, 14, .05) 100%),
  linear-gradient(0deg, rgba(20, 18, 14, .35), transparent 40%); }
.rehero-body { position: relative; padding-top: clamp(80px, 13vh, 130px); padding-bottom: 120px; min-height: min(78vh, 760px); }
.rehero-body .display { color: #fff; max-width: 21ch; margin-bottom: 22px; }
.rehero-sub { max-width: 520px; font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, .92); margin-bottom: 28px; }
.rehero-note { display: inline-block; padding-top: 24px; border-top: 2px solid var(--gold); font: 600 12px/1.4 var(--sans); letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.lang-th .rehero-note { letter-spacing: .03em; font-size: 13.5px; }
.rehero-search { position: relative; z-index: 2; margin-top: -120px; }
.finder { background: #fff; color: var(--text); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px 22px 22px; }
.finder .eyebrow { margin-bottom: 12px; }
.finder-row { display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; gap: 0; align-items: stretch; }
.finder-field { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 4px 22px; border-left: 1px solid var(--line); min-width: 0; }
.finder-field span { font: 600 11.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lang-th .finder-field span { text-transform: none; letter-spacing: 0; font-size: 13px; }
.finder-field select { border: 0; background: transparent; padding: 4px 22px 4px 0; font-size: 16px; color: var(--ink); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1F1D' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 16px; width: 100%; text-overflow: ellipsis; }
.finder .btn { min-height: 56px; padding: 0 34px; margin-left: 12px; }
.seg { display: inline-flex; gap: 6px; padding-right: 18px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .seg button { display: inline-flex; align-items: center; justify-content: center; min-width: 82px; min-height: 52px; padding: 0 18px; border-radius: 6px;
  background: var(--cream); color: var(--ink); font-weight: 600; cursor: pointer; border: 0; transition: background .18s, color .18s; }
.seg input:checked + span, .seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.seg-sm span, .seg-sm button { min-height: 42px; min-width: 0; padding: 0 12px; font-size: 14px; line-height: 1.25; }
.seg-full { display: grid; grid-template-columns: 1fr 1fr; width: 100%; padding: 0; margin: 4px 0 16px; }
.idsearch { display: flex; align-items: center; margin-top: 14px; background: var(--sand); border-radius: 8px; }
.idsearch input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 15px 18px; font-size: 16px; color: var(--ink); }
.idsearch input::placeholder { color: var(--muted); }
.idsearch button { display: inline-flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 0 18px; color: var(--ink); font-size: 14px; cursor: pointer; }
.idsearch button:hover .i { transform: translateX(3px); }
.idsearch .i { transition: transform .2s var(--ease); }
.id404 { max-width: 520px; margin-top: 24px; }

/* แบนเนอร์มาตรฐาน */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero-track { display: flex; }
.hero-slide { position: relative; flex: 0 0 100%; min-height: min(70vh, 640px); display: flex; align-items: flex-end; }
.hero-slide picture, .hero-slide > picture img, .hero-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 60%); }
.hero-body { position: relative; z-index: 1; padding-bottom: 56px; }
.hero-body .display { color: #fff; }
.hero-sub { max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .9); }
.hero-compact .hero-slide { min-height: 360px; }
.hero-dots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; padding: 0; }
.hero-dots button[aria-current="true"] { background: #fff; }

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding: clamp(64px, 8vw, 104px) 0; }
.sec-tight { padding: 48px 0 72px; }
.sec-cream { background: var(--cream); }
.sec-sand { background: var(--sand); }
.sec-head { margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.sec-head .lede { margin: 0; }
.sec-head.center { text-align: center; }
.sec-head.center .lede { margin: 0 auto; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.intro { padding-bottom: 0; }
.intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.intro-row .h-xl { margin-bottom: 10px; }
.intro-row .lede { margin: 0; }

/* ทรัพย์เด่น (ภาพใหญ่ + การ์ด) */
.showcase { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.showcase-main { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: var(--sand); }
.showcase-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.showcase-main:hover img { transform: scale(1.025); }
.showcase-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.showcase-thumbs a { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--sand); }
.showcase-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.showcase-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 30px 28px; }
.showcase-card h3 { font-size: 26px; margin-bottom: 8px; }
.showcase-card .price { padding: 22px 0; margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.showcase-facts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.showcase-facts li { display: flex; align-items: baseline; gap: 18px; }
.showcase-facts b { min-width: 42px; font-size: 19px; color: var(--ink); }
.showcase-facts span { color: var(--muted); }
.tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 4px; background: var(--ink); color: #fff;
  font: 600 11.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.lang-th .tag { text-transform: none; letter-spacing: 0; font-size: 13px; }
.tag-white { position: absolute; left: 20px; top: 20px; background: #fff; color: var(--ink); padding: 9px 16px; }
.tag-warn { background: var(--gold); }

.price { margin: 0; color: var(--ink); font: 600 18px/1.3 var(--sans); }
.price small { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.price-lg { font-size: 28px; }
.price-xl { font-size: 26px; letter-spacing: .01em; }

/* การ์ดทรัพย์ */
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.pcard-pic { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.pcard-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard-pic img { transform: scale(1.03); }
.pcard-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); }
.pcard .tags { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; }
.fav { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; transition: transform .2s var(--ease), color .2s; }
.fav:hover { transform: scale(1.08); }
.fav[aria-pressed="true"] { color: #c0392b; }
.fav[aria-pressed="true"] .i path, [data-fav][aria-pressed="true"] .i path { fill: currentColor; }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; flex: 1; }
.pcard h3 { font-size: 19px; line-height: 1.35; margin: 0 0 4px; }
.pcard h3 a { text-decoration: none; }
.pcard h3 a:hover { color: var(--gold-deep); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .i { width: 18px; height: 18px; color: var(--gold-deep); }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.code { font: 600 12.5px/1 var(--sans); letter-spacing: .08em; color: var(--muted); }
[data-compare][aria-pressed="true"] { color: var(--ink); font-weight: 600; }

/* ทำเล */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.places-all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.place { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); }
.place img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.place:hover img { transform: scale(1.04); }
.place::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .62), transparent 55%); }
.place-blank { position: absolute; inset: 0; background: linear-gradient(135deg, var(--gold-deep), var(--ink)); }
.place-txt { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; }
.place-txt b { font: 400 30px/1.15 var(--serif); }
.place-txt span { font-size: 14.5px; opacity: .92; }
.place-txt em { font-style: normal; font-size: 13px; opacity: .8; margin-top: 4px; }
.also { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 26px 0 0; color: var(--muted); font-size: 15px; }
.also span { margin-right: 6px; }
.also a { color: var(--muted); text-decoration: none; }
.also a::before { content: '·'; margin: 0 10px 0 4px; }
.also a:hover { color: var(--ink); }

/* บริการ */
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc-item { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
a.svc-item:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.svc-no { display: block; font: 400 15px/1 var(--serif); color: var(--gold-deep); padding-bottom: 12px; width: 32px; border-bottom: 2px solid var(--gold); margin-bottom: 8px; }
.svc-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.svc-title b { font: 400 22px/1.3 var(--serif); color: var(--ink); }
.svc-title .i { color: var(--gold); transition: transform .25s var(--ease); }
a.svc-item:hover .svc-title .i { transform: translateX(4px); }
.svc-detail { color: var(--muted); font-size: 15px; }
.svc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.svc-card { background: #fff; border-radius: var(--r); padding: 18px; }
.svc-card img { border-radius: 8px; margin-bottom: 12px; }

/* รูปครึ่ง + ข้อความพื้นเข้ม */
.duo { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.duo-pic { position: relative; overflow: hidden; background: var(--sand); }
.duo-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duo-txt { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 88px) clamp(28px, 5vw, 80px); }
.duo-dark .duo-txt { background: #232321; color: rgba(255, 255, 255, .86); }
.duo-dark h2 { color: #fff; }
.duo-light .duo-txt { background: var(--sand); }
.duo-rev .duo-pic { order: 2; }
.duo-txt p { max-width: 460px; font-size: 16.5px; line-height: 1.75; }
.duo-txt hr { width: 100%; max-width: 420px; border: 0; border-top: 1px solid rgba(255, 255, 255, .2); margin: 18px 0 22px; }
.duo-light hr { border-top-color: var(--line); }
.duo-dark .arrow-link { color: #e7d3a8; }

/* แบนเนอร์ภาพเต็ม */
.banner { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.banner-bg { position: absolute; inset: 0; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 12, 8, .72), rgba(10, 12, 8, .2) 70%); }
.banner-body { position: relative; z-index: 1; padding-top: clamp(72px, 10vw, 120px); padding-bottom: clamp(72px, 10vw, 120px); }
.banner .display { color: #fff; font-size: clamp(32px, 4.4vw, 52px); max-width: 15ch; }
.banner-sub { font-size: 18px; color: rgba(255, 255, 255, .9); margin-bottom: 28px; }

/* จุดเด่น / รายการ */
.feat { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; }
.feat-item { background: #fff; border-radius: var(--r); padding: 26px; }
.feat-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cream); color: var(--gold-deep); margin-bottom: 14px; }
.feat-item h3 { font-size: 21px; }
.feat-item p { color: var(--muted); margin: 0; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.point { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; }
.point h3 { font-size: 21px; margin-top: 4px; }
.point p { color: var(--muted); margin-bottom: .6em; }
.point p:last-child { margin-bottom: 0; }
.point-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cream); color: var(--gold-deep); margin-bottom: 10px; }
.point-ic .i { width: 18px; height: 18px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-rev .split-pic { order: 2; }
.split-pic img, .split-pic video { border-radius: var(--r); }

.masonry { columns: var(--cols, 3) 240px; column-gap: 16px; }
.masonry figure { break-inside: avoid; margin: 0 0 16px; }
.masonry img { border-radius: 8px; width: 100%; }
.masonry figcaption { font-size: 14px; color: var(--muted); padding-top: 8px; }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote { margin: 0; background: #fff; border-radius: var(--r); padding: 28px; }
.quote blockquote { margin: 0 0 18px; font: 400 19px/1.6 var(--serif); color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote figcaption span { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.quote figcaption b { color: var(--ink); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; font: 400 19px/1.45 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--gold); transition: transform .25s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq-a { padding: 0 0 20px; color: var(--muted); }

.cta-band { background: var(--ink); color: #fff; padding: 56px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band p { margin: 0; font: 400 clamp(22px, 2.6vw, 30px)/1.35 var(--serif); }
.cta-soft { background: var(--sand); color: var(--ink); }

/* ---------- หน้ารอง / ค้นหา ---------- */
.page-top { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); background: var(--cream); }
.page-top h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 12px; }
.page-top-img { color: #fff; padding: clamp(96px, 14vw, 170px) 0 clamp(40px, 6vw, 64px); background: var(--ink); overflow: hidden; }
.page-top-img h1 { color: #fff; }
.page-top-img .lede, .page-top-img .crumbs, .page-top-img .crumbs a { color: rgba(255, 255, 255, .88); }
.page-top-bg { position: absolute; inset: 0; }
.page-top-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-top-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .15)); }
.page-top-img .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

.search-wrap { padding: 8px 0 80px; }
.filters { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 18px 20px; margin-top: -8px; }
.filters-main { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 14px; align-items: end; }
.ff { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ff > span { font: 600 11.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lang-th .ff > span { text-transform: none; letter-spacing: 0; font-size: 13px; }
.ff select, .ff input, .fld input, .fld select, .fld textarea, .acct-phone input {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 16px; color: var(--ink); }
.ff select:focus, .ff input:focus, .fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 155, 101, .18); }
.price-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.dual { position: relative; height: 22px; margin-top: 2px; }
.dual input[type=range] { position: absolute; inset: 0; width: 100%; min-height: 0; padding: 0; border: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.dual input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: pointer; }
.dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; cursor: pointer; }
.dual::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line); }
.filters-main .btn { min-height: 46px; }
.filters-more { margin-top: 12px; }
.filters-more summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--gold-deep); list-style: none; }
.filters-more summary::-webkit-details-marker { display: none; }
.filters-extra { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.amen { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.amen legend { font: 600 11.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.chk { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; }
.chk input { accent-color: var(--gold); width: 16px; height: 16px; }
.chk:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.filters-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 28px 0 20px; }
.results-bar p { margin: 0; }
.results-tools { display: flex; align-items: center; gap: 12px; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { min-height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; background: #fff; font-size: 15px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 40px; font-size: 14px; color: var(--muted); }
.pager a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--ink); }
.pager a[rel=next] { justify-self: end; }
.empty { background: #fff; border-radius: var(--r); padding: 48px 28px; text-align: center; }
.empty h2 { font-size: 26px; }
.empty p { color: var(--muted); max-width: 560px; margin: 0 auto 20px; }
.loc-intro { max-width: 820px; margin-top: 56px; color: var(--muted); }

/* ---------- หน้ารายละเอียดทรัพย์ ---------- */
.prop { padding: 28px 0 80px; }
.prop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.prop-head h1 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 8px; }
.prop-price-m { display: none !important; }
.prop-place { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 0; }
.prop-place .i { color: var(--gold); width: 18px; height: 18px; }
.prop-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  cursor: pointer; font-size: 14px; color: var(--ink); transition: border-color .2s, background .2s; }
.tool:hover { border-color: var(--gold); }
.tool .i { width: 18px; height: 18px; }
.tool[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }
.gallery { position: relative; display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; border-radius: var(--r-lg); overflow: hidden; }
.gallery.g-1 { grid-template-columns: 1fr; grid-template-rows: 480px; }
.gallery.g-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 480px; }
.gallery.g-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 235px 235px; }
.gallery.g-4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 235px 235px; }
.g-item { display: block; overflow: hidden; background: var(--sand); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img { transform: scale(1.03); }
.g-main { grid-row: 1 / -1; }
.gallery.g-4 .g-item:nth-child(4) { grid-column: 2 / -1; }
.g-all { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; background: #fff; padding: 10px 14px; font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: var(--shadow-sm); }
.prop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 48px; margin-top: 36px; align-items: start; }
.prop-sec { padding: 0 0 32px; margin: 0 0 32px; border-bottom: 1px solid var(--line); }
.prop-sec:last-child { border-bottom: 0; }
.prop-sec h2 { font-size: 26px; margin-bottom: 18px; }
.factlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.factlist li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.factlist .i { color: var(--gold-deep); width: 20px; height: 20px; }
.factlist span { color: var(--muted); font-size: 15px; }
.factlist b { font-weight: 600; color: var(--ink); text-align: right; }
.prose p { font-size: 16.5px; line-height: 1.8; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.4em; }
.prose h3 { font-size: 21px; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 22px; line-height: 1.8; }
.prose a { color: var(--gold-deep); }
.ticks, .amen-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.ticks li, .amen-list li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i, .amen-list .i { color: var(--gold); margin-top: 3px; width: 18px; height: 18px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.minimap { height: 360px; border-radius: var(--r); overflow: hidden; background: var(--sand); }
.prop-side { position: sticky; top: calc(var(--hdr) + 20px); }
.side-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px; }
.side-card .price-lg { margin-bottom: 8px; }
.code-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 10px 0 16px; }
.code-line b { color: var(--ink); letter-spacing: .06em; }
.side-contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.side-contacts .btn { padding: 0 8px; font-size: 12.5px; letter-spacing: .04em; min-height: 46px; }
.lang-th .side-contacts .btn { font-size: 14px; }

/* ฟอร์ม */
.lead { display: grid; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld label { font-size: 14px; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.fld label .i { width: 18px; height: 18px; color: var(--gold-deep); }
.fld textarea { min-height: 96px; resize: vertical; }
.fld input[type=file] { padding: 10px; background: var(--cream); }
.fld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld-tight { gap: 10px; }
.fld.has-error input, .fld.has-error textarea { border-color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { margin: 0; font-size: 14.5px; min-height: 1em; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); }
.consign { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(22px, 4vw, 36px); }
.notice { background: var(--gold-soft); border-radius: 8px; padding: 12px 16px; }

/* ติดต่อ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 17px; }
.contact-list .i, .contact-list .i-brand { color: var(--gold-deep); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold-deep); }
.contact-form { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(22px, 3vw, 32px); }
.contact-map { margin-top: 40px; }
.gmap { width: 100%; height: 380px; border: 0; border-radius: var(--r); }
.hours { list-style: none; padding: 0; margin: 0; max-width: 360px; }
.hours li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* ---------- แผนที่ ---------- */
.is-map .ftr, .is-map .floats { display: none; }
.mapsearch { display: flex; flex-direction: column; height: calc(100vh - var(--hdr)); height: calc(100dvh - var(--hdr)); }
.map-top { background: var(--cream); padding: 14px 0; border-bottom: 1px solid var(--line); }
.map-title { font-size: 22px; margin: 0 0 10px; }
.map-filter-btn { display: none !important; }
.map-top .filters { box-shadow: none; padding: 12px 14px; margin: 0; }
.map-body { flex: 1; display: grid; grid-template-columns: 430px 1fr; min-height: 0; }
.map-list { overflow-y: auto; padding: 16px; background: var(--cream); border-right: 1px solid var(--line); }
.map-count { margin: 0 0 12px; font-size: 14.5px; color: var(--muted); }
.map-cards { display: grid; gap: 14px; }
.mcard { display: grid; grid-template-columns: 130px 1fr; gap: 12px; background: #fff; border-radius: var(--r); overflow: hidden; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.mcard:hover, .mcard.is-on { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.mcard img { width: 130px; height: 100%; min-height: 108px; object-fit: cover; background: var(--sand); }
.mcard div { padding: 10px 10px 10px 0; display: flex; flex-direction: column; gap: 3px; }
.mcard b { font: 400 16px/1.35 var(--serif); color: var(--ink); }
.mcard span { font-size: 13px; color: var(--muted); }
.mcard .price { font-size: 15px; }
.map-canvas { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: #e8e4dc; }
/* โทนแผนที่ให้เข้ากับเว็บ (ครีม อุ่น) */
.leaflet-tile-pane { filter: saturate(.55) sepia(.14) brightness(1.03) contrast(.96); }
.map-tools { position: absolute; top: 14px; right: 14px; z-index: 500; display: flex; gap: 8px; }
.map-tools .btn.is-on { background: var(--ink); color: #fff; }
.map-hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 500; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 14px; max-width: 80%; text-align: center; }
.pin { display: grid; place-items: center; }
.pin span { display: inline-block; padding: 5px 9px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 12px/1 var(--sans); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); white-space: nowrap; }
.pin.is-on span { background: var(--gold); }
.marker-cluster div { background: var(--gold) !important; color: #fff; font: 600 13px/30px var(--sans) !important; }
.marker-cluster { background: rgba(184, 155, 101, .35) !important; }
.leaflet-popup-content { margin: 0 !important; width: 240px !important; }
.leaflet-popup-content-wrapper { padding: 0; border-radius: 10px; overflow: hidden; }
.mpop img { width: 100%; height: 130px; object-fit: cover; }
.mpop div { padding: 10px 12px 12px; font-family: var(--sans); }
.mpop b { display: block; font: 400 16px/1.35 var(--serif); color: var(--ink); margin-bottom: 4px; }
.mpop a { color: var(--gold-deep); font-weight: 600; }

/* ---------- เปรียบเทียบ / บัญชี ---------- */
.cmp-scroll { overflow-x: auto; }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; }
.cmp thead th { width: 28%; }
.cmp tbody th { width: 16%; color: var(--muted); font-weight: 500; }
.cmp-pic img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; width: 100%; }
.cmp-name { display: block; margin: 10px 0 4px; font: 400 18px/1.35 var(--serif); text-decoration: none; color: var(--ink); }
.cmp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: #fff; padding: 12px 0; }
.cmp-bar .wrap-wide { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cmp-bar span { font-size: 14px; }
.account h2 { font-size: 28px; margin-top: 40px; }
.acct-login { display: grid; gap: 12px; max-width: 420px; }
.acct-who { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acct-who div { display: flex; flex-direction: column; }
.acct-who span { color: var(--muted); font-size: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--sand) center / cover no-repeat; }
.acct-phone { display: flex; align-items: flex-end; gap: 10px; margin-top: 16px; max-width: 520px; }
.acct-phone label { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* ---------- บทความ ---------- */
.a-wrap { max-width: 800px; }
.a-wrap h1 { font-size: clamp(32px, 4.2vw, 48px); }
.a-meta { color: var(--muted); font-size: 14px; }
.a-cover { margin: 24px 0; }
.a-cover img { border-radius: var(--r); width: 100%; }
.a-lead { font: 400 21px/1.6 var(--serif); color: var(--ink); }
.a-toc { background: #fff; border-radius: var(--r); padding: 20px 24px; margin: 28px 0; }
.a-toc ol { margin: 10px 0 0; padding-left: 20px; }
.a-toc a { color: var(--gold-deep); }
.a-fig { margin: 28px 0; }
.a-fig img { border-radius: var(--r); }
.a-fig figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.callout { background: var(--gold-soft); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 24px 0; }
.callout p { margin: 0; font-size: 17px; }
.callout cite { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); font-style: normal; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.table-wrap { overflow-x: auto; margin: 24px 0; }
.table-wrap table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.table-wrap th, .table-wrap td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.table-wrap th { background: var(--sand); font-weight: 600; }
.a-btn { margin: 24px 0; }
.a-gallery { margin: 24px 0; }
.a-prop { margin: 28px 0; max-width: 460px; }
.a-prop-off { background: #fff; border-radius: 8px; padding: 14px 18px; color: var(--muted); }
.a-embed { margin-top: 48px; }
.a-related ul { padding-left: 20px; }
.a-cta { margin-top: 48px; padding: 28px; background: var(--ink); color: #fff; border-radius: var(--r); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post { background: #fff; border-radius: var(--r); overflow: hidden; }
.post-pic { display: block; aspect-ratio: 16 / 9; background: var(--sand); }
.post-pic img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 20px; }
.post h2 { font-size: 21px; }
.post h2 a { text-decoration: none; }
.post p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- ท้ายเว็บ ---------- */
.ftr { background: #1c1c1a; color: rgba(255, 255, 255, .72); padding: 56px 0 28px; font-size: 15px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .14); }
.ftr-name { font: 400 40px/1.1 var(--serif); color: #fff; margin: 0 0 10px; }
.ftr-tag { font: 400 17px/1.4 var(--serif); color: var(--gold); }
.ftr-h { font: 600 12.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.lang-th .ftr-h { letter-spacing: 0; text-transform: none; font-size: 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr-stay { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; font-size: 14px; }
.ftr-stay b { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.social a:hover { border-color: var(--gold); color: var(--gold); }
.ftr-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px; }
.ftr-bottom p { margin: 0; }
.ftr-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- ปุ่มลอยติดต่อ ---------- */
.floats { position: fixed; right: 20px; bottom: 22px; z-index: 45; display: flex; flex-direction: column; gap: 10px; }
.fb { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  transition: transform .2s var(--ease); }
.fb:hover { transform: translateY(-2px) scale(1.04); }
.fb span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fb .i-brand, .fb .i { width: 28px; height: 28px; }
.fb-line { background: #06C755; }
.fb-wa { background: #25D366; }
.fb-call { background: var(--ink); }
.cookie { position: fixed; left: 20px; bottom: 22px; z-index: 46; max-width: 440px; display: flex; align-items: center; gap: 14px; background: #fff;
  border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; font-size: 14px; }
.cookie p { margin: 0; }
.cookie a { color: var(--gold-deep); }

/* ---------- กล่องดูรูป / QR ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(15, 15, 13, .94); display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.lb[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; font-size: 14px; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lb-stage img { max-height: calc(100vh - 140px); width: auto; object-fit: contain; border-radius: 6px; }
.lb button { background: none; border: 0; color: #fff; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .12) !important; display: grid; place-items: center; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.modal { position: fixed; inset: 0; z-index: 95; background: rgba(15, 15, 13, .6); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: var(--r-lg); padding: 26px; max-width: 360px; width: 100%; text-align: center; position: relative; }
.modal-box canvas, .modal-box img { margin: 12px auto; }
.modal-x { position: absolute; right: 10px; top: 10px; border: 0; background: none; cursor: pointer; padding: 6px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 99; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 6px; font-size: 14px;
  box-shadow: var(--shadow); animation: toast 2.6s var(--ease) forwards; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* ---------- เคลื่อนไหวตอนเลื่อนถึง (เล่นครั้งเดียว) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- จอแคบ ---------- */
@media (max-width: 1180px) {
  .nav-item > a { padding: 10px 8px; letter-spacing: .05em; }
  .hdr-tools .lang { display: none; }
  .nav-mobile-extra .lang { display: inline-flex; }
}
@media (max-width: 1023px) {
  :root { --hdr: 66px; }
  .logo img { height: 38px; }
  .menu-btn { display: inline-grid; }
  .hdr-cta { display: none; }
  /* เมนูมือถือ: เลื่อนลงจากหัวเว็บ (ไม่เลื่อนจากขวา เพราะจะทำให้หน้ากว้างเกินจอ) */
  .nav { position: fixed; inset: var(--hdr) 0 0 0; z-index: 60; display: block; background: #fff; overflow-y: auto; padding: 12px 24px 40px;
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item > a { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 15px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .lang-th .nav-item > a { font-size: 17px; }
  .dd { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 4px 0 10px 8px; display: none; min-width: 0; }
  .has-dd.is-open .dd { display: block; }
  .has-dd:hover .dd { display: none; }
  .has-dd.is-open:hover .dd { display: block; }
  .nav-mobile-extra { display: grid; gap: 16px; margin-top: 24px; justify-items: start; }
  .finder-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .finder-row .seg { grid-column: 1 / -1; padding: 0; }
  .finder-field { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
  .finder .btn { grid-column: 1 / -1; margin: 0; }
  .rehero-search { margin-top: -90px; }
  .showcase { grid-template-columns: 1fr; }
  .grid-cards, .places, .places-all, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters-main { grid-template-columns: 1fr 1fr; }
  .filters-main .seg { grid-column: 1 / -1; padding: 0; }
  .ff-price { grid-column: 1 / -1; }
  .filters-main .btn { grid-column: 1 / -1; }
  .filters-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prop-grid { grid-template-columns: 1fr; }
  .prop-side { position: static; }
  .duo { grid-template-columns: 1fr; }
  .duo-pic { aspect-ratio: 4 / 3; }
  .duo-rev .duo-pic { order: 0; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .mapsearch { height: auto; }
  .map-body { grid-template-columns: 1fr; }
  .map-canvas { height: 62vh; }
  .map-list { order: 2; border-right: 0; border-top: 1px solid var(--line); }
  .map-filter-btn { display: inline-flex !important; }
  .mapsearch .filters { display: none; }
  .mapsearch.show-filters .filters { display: block; }
  .map-title { display: flex; justify-content: space-between; align-items: center; margin: 0; }
  .contact-grid, .split { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .wrap, .wrap-wide { padding: 0 16px; }
  body { font-size: 16px; }
  .rehero-body { min-height: 0; padding-top: 64px; padding-bottom: 110px; }
  .rehero-media { inset: 0 0 60px; max-height: 70vh; }
  .rehero-body .display { font-size: 34px; }
  .rehero-sub { font-size: 16.5px; }
  .br-d { display: none; }
  .prop-price-m { display: block !important; margin: 4px 0 0; }
  .finder { padding: 16px; }
  .finder-row { grid-template-columns: 1fr; }
  .seg span { min-height: 46px; flex: 1; }
  .finder-row .seg { display: grid; grid-template-columns: 1fr 1fr; }
  .idsearch button span { display: none; }
  .intro-row, .sec-head-row, .prop-head { flex-direction: column; align-items: flex-start; }
  .grid-cards, .places, .places-all, .posts, .svc, .points, .feat { grid-template-columns: 1fr; }
  .places .place { aspect-ratio: 16 / 10; }
  .gallery, .gallery.g-2, .gallery.g-3, .gallery.g-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 110px; }
  .gallery.g-1 { grid-template-rows: 260px; }
  .g-main { grid-column: 1 / -1; grid-row: auto; }
  .gallery .g-item:nth-child(n+4) { display: none; }
  .gallery.g-4 .g-item:nth-child(4) { grid-column: auto; }
  .factlist, .ticks, .amen-list { grid-template-columns: 1fr; }
  .fld-2 { grid-template-columns: 1fr; }
  .fld-2.fld-tight { grid-template-columns: 1fr 1fr; }
  .filters-extra { grid-template-columns: 1fr 1fr; }
  .ftr-grid { grid-template-columns: 1fr; }
  .side-contacts { grid-template-columns: 1fr 1fr 1fr; }
  /* ปุ่มลอยมือถือ: แถบล่าง สูงไม่เกิน 60px และเว้นที่ท้ายหน้าไม่ให้ทับเนื้อหา */
  .floats { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 18px rgba(0, 0, 0, .08); }
  .fb { flex: 1; width: auto; height: 46px; border-radius: 6px; margin: 0 4px; box-shadow: none; display: flex; gap: 8px; }
  .fb span { position: static; width: auto; height: auto; clip: auto; font: 600 14px/1 var(--sans); }
  .fb .i-brand, .fb .i { width: 22px; height: 22px; }
  body:has(.floats) { padding-bottom: 62px; }
  .cookie { left: 12px; right: 12px; bottom: 72px; max-width: none; }
  .cmp-bar { bottom: 58px; }
  .lb-stage { padding: 0 8px; }
  .lb-nav { display: none !important; }
}

/* ---------- พื้นที่กดอย่างน้อย 44px (มาตรฐานการแตะบนมือถือ) ---------- */
.lang a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; min-width: 44px; }
.icon-btn { width: 44px; height: 44px; }
.logo { display: inline-flex; align-items: center; min-height: 48px; }
.tool { min-height: 44px; }
.filters-more summary { min-height: 44px; }
.leaflet-touch .leaflet-bar a { width: 44px !important; height: 44px !important; line-height: 44px !important; }
@media (max-width: 1023px) {
  .btn-sm { min-height: 44px; }
  .lang a { min-height: 44px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .crumbs { gap: 4px 8px; align-items: center; margin-bottom: 4px; }
  .crumbs > span { display: inline-flex; align-items: center; min-height: 44px; }
  .also a { display: inline-flex; align-items: center; min-height: 44px; }
  .arrow-link { min-height: 44px; }
  .ftr ul { gap: 0; }
  .ftr li a { display: inline-flex; align-items: center; min-height: 44px; }
  .ftr-legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .link-btn { min-height: 44px; }
  .pin span { padding: 9px 12px; }
}

/* ภาษาจีน: ฟอนต์ที่มีอักษรจีนจริง */
body.lang-zh { font-family: 'Inter', 'Noto Sans SC', sans-serif; line-height: 1.75; }
.lang-zh h1, .lang-zh h2, .lang-zh h3, .lang-zh h4, .lang-zh .svc-title b, .lang-zh .place-txt b { font-family: 'Noto Serif', 'Noto Serif SC', serif; }
.lang-zh .eyebrow, .lang-zh .btn, .lang-zh .nav-item > a, .lang-zh .tag { letter-spacing: .04em; }
.lang-ru .nav-item > a { letter-spacing: .03em; }
.lang a { padding: 4px 9px; }

/* ช่องค้นหาด้วยคำ (ในกล่องตัวกรอง และแถบใต้แบนเนอร์) */
.ff-kw { margin-bottom: 14px; }
.kw-box { position: relative; display: block; }
.kw-box .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.ff .kw-box input { padding-left: 40px; }
.idsearch > .i { margin-left: 16px; color: var(--muted); width: 18px; height: 18px; flex: none; }
.idsearch input { padding-left: 10px; }
.idsearch button { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.lang-th .idsearch button, .lang-zh .idsearch button { text-transform: none; letter-spacing: 0; font-size: 15px; }
@media (max-width: 719px) { .idsearch button span { display: inline; } }

/* เมนูมือถือ: backdrop-filter ของหัวเว็บทำให้แผงเมนู (position: fixed) ถูกขังอยู่ในหัวเว็บ เห็นแค่ BUY แถวเดียว
   → บนจอเล็กปิด backdrop-filter แล้วใช้พื้นขาวทึบแทน แผงเมนูจะเต็มจอ เลื่อนดูได้ครบทุกเมนู */
@media (max-width: 1023px) {
  .hdr { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav { height: calc(100dvh - var(--hdr)); overscroll-behavior: contain; padding-bottom: 96px; }
  .nav-mobile-extra .lang { flex-wrap: wrap; }
  body.menu-open .floats, body.menu-open .cookie { display: none; }
}

/* บัญชีลูกค้า: ฟอร์มอีเมล + ปุ่มโซเชียล */
.auth-form { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 8px 0; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }

/* เครื่องคำนวณสินเชื่อ */
.calc { margin-top: 20px; }
.calc h2 { font-size: 24px; margin-bottom: 8px; }
.calc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.calc-row label { color: var(--muted); font-size: 15px; }
.calc-row select, .calc-in input { min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 16px; padding: 0 10px; color: var(--ink); }
.calc-in { display: inline-flex; align-items: center; gap: 6px; }
.calc-in input { width: 150px; text-align: right; }
.calc-in input[data-c="rate"] { width: 80px; }
.calc-in b, .calc-pair b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.calc-pair { display: inline-flex; align-items: center; gap: 12px; }
.calc-out { text-align: center; padding: 18px 0 6px; }
.calc-out span { display: block; color: var(--muted); font-size: 15px; }
.calc-out b { display: block; font: 600 26px/1.3 var(--sans); color: var(--ink); margin-top: 4px; }

/* แผนที่ Google: ห้ามปรับสีภาพแผนที่ (นโยบาย Google) */
.g-tiles .leaflet-tile-pane { filter: none; }

.nav-item > a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1320px) { .lang-ru .nav-item > a { font-size: 12px; padding: 10px 6px; } }
