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

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;               /* ไทยต้องการ leading สูงกว่า latin */
  color: var(--ink);
  background: var(--bg);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.45; margin: 0; }

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

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

/* ── HEADER ─────────────────────────────────────────────── */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hd__in { display: flex; align-items: center; gap: 28px; height: 64px; }
.hd__logo img { height: 52px; width: auto; }
.hd__nav { display: flex; gap: 26px; margin-inline-start: auto; }
.hd__nav a { font-size: 14px; font-weight: 400; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.hd__nav a:hover { border-bottom-color: var(--gold); }
.hd__lang { display: flex; gap: 4px; }
.hd__lang a {
  font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 99px;
  color: var(--muted); border: 1px solid var(--line);
  white-space: nowrap;   /* กัน 中文 ห่อเป็น 中/文 */
}
.hd__line { white-space: nowrap; }
.hd__lang a.on { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.hd__line {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--line-green); color: #fff;
  font-size: 13.5px; font-weight: 500; padding: 9px 16px; border-radius: 6px;
}
.hd__line:hover { filter: brightness(1.06); }

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

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

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

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

/* ── FEATURED — full-width สลับซ้ายขวา (สูตร Sansiri Luxury) ── */
.feat { display: grid; grid-template-columns: 58% 1fr; gap: 0; margin-bottom: 56px; background: #fff; box-shadow: var(--shadow); border-radius: 10px; overflow: hidden; }
.feat:nth-child(even) .feat__img { order: 2; }
.feat__img { position: relative; min-height: 420px; }
.feat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat__body { padding: 44px 44px 40px; display: flex; flex-direction: column; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 500;
  padding: 4px 12px; border-radius: 99px; margin-inline-end: 6px;
}
.badge--new { background: rgba(11,31,55,.08); color: var(--navy); }
.badge--quota { background: rgba(122,92,46,.1); color: var(--gold-ink); }
.badge--sold { background: #8C3A2B; color: #fff; }
.feat__body h3 { font-size: 28px; color: var(--navy); margin: 14px 0 2px; }
.feat__area { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.price { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.feat__price { font-size: 30px; }
.feat__psm { font-size: 13.5px; color: var(--muted); font-weight: 300; margin-inline-start: 10px; }
.specs { display: flex; gap: 22px; margin: 18px 0 20px; padding: 14px 0; border-block: 1px solid var(--line); }
.specs div { font-size: 14px; color: var(--ink); }
.specs b { font-weight: 500; color: var(--navy); }
.feat__hl { font-size: 14.5px; color: var(--muted); margin: 0 0 26px; }
.feat__cta { margin-top: auto; }
.link-more { font-size: 14.5px; font-weight: 500; color: var(--gold-ink); border-bottom: 1px solid var(--gold-ink); padding-bottom: 2px; }
.link-more:hover { color: var(--navy); border-color: var(--navy); }

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

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

/* ── FOOTER ─────────────────────────────────────────────── */
.ft { background: var(--navy-deep); color: rgba(255,255,255,.82); padding: 56px 0 88px; }
.ft__in { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.ft__logo img { height: 68px; width: auto; }
.ft__contact { margin-inline-start: auto; text-align: right; font-size: 14.5px; }
.ft__contact a { color: #fff; border-bottom: 1px solid var(--gold); }
.ft__contact .gold { color: var(--gold); }
.ft__legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(203,176,136,.25); font-size: 12.5px; color: rgba(255,255,255,.5); }

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

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

.gal { display: grid; grid-template-columns: 1fr; gap: 10px; }
.gal__main { position: relative; aspect-ratio: 16 / 9; max-height: 62vh; width: 100%; overflow: hidden; border-radius: 10px; }
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__count { position: absolute; right: 14px; bottom: 14px; background: rgba(7,23,38,.65); color: #fff; font-size: 12.5px; padding: 5px 13px; border-radius: 99px; }
.gal__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gal__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 4 / 3; }
.gal__thumbs button.on { border-color: var(--gold); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.dhead { display: flex; gap: 32px; align-items: flex-start; padding-block: 30px 8px; flex-wrap: wrap; }
.dhead h1 { font-size: clamp(26px, 3.4vw, 40px); color: var(--navy); }
.dhead__area { color: var(--muted); margin: 6px 0 12px; }
.dhead__price { margin-inline-start: auto; text-align: right; }
.dhead__price .price { font-size: clamp(28px, 3.2vw, 38px); display: block; }
.dhead__price .psm { font-size: 13.5px; color: var(--muted); }

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

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

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

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

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

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

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

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

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .hd__nav { display: none; }
  .hero__in { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero__tag { margin-inline-start: 0; }
  .trust__in { grid-template-columns: 1fr; gap: 10px; padding-block: 20px; }
  .trust__item { justify-content: flex-start; }
  .feat { grid-template-columns: 1fr; }
  .feat:nth-child(even) .feat__img { order: 0; }
  .feat__img { min-height: 260px; aspect-ratio: 16/10; }
  .feat__body { padding: 26px 22px; }
  .sell { grid-template-columns: 1fr; }
  .dgrid { grid-template-columns: 1fr; }
  .enq { position: static; }
  .simgrid { grid-template-columns: 1fr; }
  .listgrid { grid-template-columns: 1fr; }
  .gal__thumbs { grid-template-columns: repeat(3, 1fr); }
  .ft { padding-bottom: 120px; }   /* เผื่อ sticky bar */
  .mbar { display: grid; }
  .ft__contact { margin-inline-start: 0; text-align: left; }
}

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

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

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

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

/* ── hero slideshow (Dew 07-30: ภาพวิ่ง กดไปหน้าทรัพย์ เรียงตามยอดวิว) ── */
.hero__img .hslide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 1.1s ease; }
.hero__img .hslide.on { opacity: 1; pointer-events: auto; }
.hero__img .hslide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { pointer-events: none; }
.hero__in { pointer-events: none; }
.hero__in a { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .hero__img .hslide { transition: none; } }

/* ── ฟีเจอร์ชุด research (Dew อนุมัติ 07-30) ── */
.cny { display: block; color: var(--gold-ink); font-weight: 500; margin-top: 2px; }
.loc-area { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.loc-note { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.calc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.calc__grid label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.calc__grid input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); width: 100%; }
.calc__grid input:focus { outline: 2px solid rgba(203,176,136,.55); outline-offset: 1px; }
.calc__res { background: var(--bg-warm); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 15px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc__res b { font-family: var(--f-display); font-size: 26px; color: var(--navy); font-variant-numeric: tabular-nums; }
.calc__res span { color: var(--muted); font-size: 13px; }
.calc__note { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.share { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.share .share__line { background: var(--line-green); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.share button { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; }
.share button:hover { border-color: var(--navy); }
.gal__main img { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(7,23,38,.94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lb__x { position: absolute; top: 18px; right: 22px; font-size: 22px; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 42px; line-height: 1; background: rgba(255,255,255,.08); border: 0; color: #fff; cursor: pointer; padding: 10px 16px; border-radius: 10px; }
.lb__nav:hover { background: rgba(255,255,255,.18); }
.lb__prev { left: 16px; } .lb__next { right: 16px; }
.lb__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; letter-spacing: .06em; }
@media (max-width: 640px) { .lb__nav { font-size: 30px; padding: 8px 12px; } }

/* ── แถบรับ Co-Agent (Dew สั่ง 07-30: "รับเอเจ้น ทุกทรัพย์") ── */
.agentband { background: var(--navy); color: #fff; border-top: 1px solid rgba(203,176,136,.35); }
.agentband__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 44px; flex-wrap: wrap; }
.agentband h2 { color: #fff; font-size: clamp(22px, 2.6vw, 32px); }
.agentband__sub { color: rgba(255,255,255,.82); font-size: 14.5px; margin: 8px 0 0; max-width: 62ch; }
.agentband .btn { flex: 0 0 auto; }
@media (max-width: 720px) { .agentband__in { flex-direction: column; align-items: flex-start; } }

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