/* Grand Holdings public site — design B2 "แผนที่นำ (สว่าง)" (locked 2026-08-14).
   Light chrome over satellite imagery; mobile-first; no Bootstrap — this file
   is the whole system. The internal app's CSS never loads here. */

/* Review A1 (08-20): the font stack below named Anuphan since day one but no
   @font-face ever delivered it — every visitor silently read fallback Thonburi.
   Self-hosted variable woff2 (wght 400–700), thai + latin subsets, 54 KB total.
   Relative url() so the manifest storage rewrites it to the hashed name. */
@font-face {
  font-family: "Anuphan";
  src: url("../fonts/anuphan-thai.ea97b712cb92.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Anuphan";
  src: url("../fonts/anuphan-latin.bf9ef44f1c9d.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Looped Thai for the body (Boss 27 ก.ย. 2569, after the audience note): the
   readers are rural brokers and 50–70-year-olds. The Chulalongkorn/Typotheque
   perceptual study found looped Thai read faster and more accurately, and the
   effect is strongest in exactly that group — younger eyes cope with loopless,
   older ones do not. Sarabun is the looped face the Thai government adopted for
   documents and the Royal Gazette, so it is already what a deed-reading broker
   reads all day. Anuphan stays declared: it is the fallback and still carries
   nothing on its own. 400 + 600, thai + latin subsets, 43 KB total. */
@font-face {
  font-family: "Sarabun";
  src: url("../fonts/sarabun-thai-400.601de1ec47a2.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Sarabun";
  src: url("../fonts/sarabun-latin-400.7f63cdaece8c.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sarabun";
  src: url("../fonts/sarabun-thai-600.151eaf9cfc05.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Sarabun";
  src: url("../fonts/sarabun-latin-600.f3a7b7964f3a.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Brand layer "ตราแปลงที่ดิน" (Boss picked A-over-B, 08-22): Trirong carries
   listing titles + the wordmark only — everything else stays Anuphan. Bold-only
   subsets, 21 KB total. */
@font-face {
  font-family: "Trirong";
  src: url("../fonts/trirong-thai-700.be9a47937201.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Trirong";
  src: url("../fonts/trirong-latin-700.2087e2815e33.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #FAFAF7;
  --panel: #FFFFFF;
  --ink: #22281F;
  --ink-2: #5A6055;
  --ink-3: #8A8F84;
  --line: #E8E6DD;
  --green: #1F5B40;
  --green-soft: #EEF4EF;
  --line-brand: #06C755;   /* LINE green — CTA only */
  --shadow: 0 6px 24px -14px rgba(20, 30, 20, .2);
  --radius: 12px;
  /* identity layer — reserved for brand moments (seal, badges, footer, signs),
     never for body text or general UI */
  --brand-deep: #14382A;
  --brand-gold: #C9A227;      /* on dark grounds only */
  --brand-gold-ink: #96781A;  /* gold as text on light grounds (contrast) */
  --brand-paper: #F2EFE6;
  --font-display: "Trirong", "Sarabun", "Anuphan", "Thonburi", serif;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  background: var(--ground); color: var(--ink);
  font: 16px/1.65 "Sarabun", "Anuphan", "IBM Plex Sans Thai", "Thonburi", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
}
a { color: var(--green); }
img { max-width: 100%; }

/* ---------- nav ---------- */
.pub-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 250, 247, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.pub-nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pub-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.pub-seal { width: 32px; height: 32px; flex: none; color: var(--brand-deep); }
.pub-brand-tx { line-height: 1.15; }
.pub-brand-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17.5px; letter-spacing: -.005em; }
/* 10px, not 8.5px: the mobile suite's readability floor rejects anything under
   10px and this wordmark sits on EVERY public page, so all six were failing on
   main before this branch existed. Tracking trimmed a touch so the wider glyphs
   still sit under "Grand Holdings" rather than out past it. */
.pub-brand-sub { display: block; font-size: 10px; font-weight: 700; letter-spacing: .22em; color: var(--brand-gold-ink); }
.pub-nav-links { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.pub-nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 14.5px;
  padding: 10px 10px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap;
}
.pub-nav-links a.on { color: var(--green); font-weight: 700; }
.pub-nav-cta { margin-left: 4px; }

/* ---- A5 (Boss 09-03): phones get a second full-width row of section links.
   The single row held 410px of links in a 113px scroll window with no scroll
   hint — 3 of 5 destinations were invisible on every phone since launch. Boss's
   brief: nothing hidden behind icons, text BIGGER than today, for Buriram
   locals and the 60-year-old generation. Desktop keeps the single row. ---- */
/* a.-prefixed so it outranks .pub-btn-line's inline-flex (same class count,
   later order would lose) — without it the duplicate CTA shows on desktop */
a.pub-nav-cta-m { display: none; }
.pub-nav-row2 { display: none; }
@media (max-width: 860px) {
  .pub-nav-links { display: none; }
  /* Boss's logo-shrink, absorbed into A5: row 1 must hold brand + LINE + EN
     inside 360px. Sub stays 10px — the mobile suite's readability floor. */
  .pub-nav-inner { gap: 8px; }
  .pub-brand { gap: 7px; }
  .pub-brand .pub-seal { width: 26px; height: 26px; }
  .pub-brand-name { font-size: 15px; }
  .pub-brand-sub { letter-spacing: .16em; }
  a.pub-nav-cta-m {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    margin-left: auto; flex: none;
    background: var(--line-brand); color: #fff !important; border-radius: 8px;
    min-height: 44px; padding: 0 13px; font-weight: 700; font-size: 14px;
    text-decoration: none; white-space: nowrap;
  }
  a.pub-nav-contact-m { background: var(--green); }
  .pub-nav-row2 {
    display: flex; border-top: 1px solid var(--line); padding: 0 6px;
  }
  .pub-nav-row2 a {
    flex: 1; min-width: 0; text-align: center; color: var(--ink);
    text-decoration: none; font-size: 16px; font-weight: 600;
    padding: 12px 2px; min-height: 48px;
    display: flex; align-items: center; justify-content: center; white-space: nowrap;
  }
  .pub-nav-row2 a.on { color: var(--green); font-weight: 800; box-shadow: inset 0 -3px 0 var(--green); }
  /* English labels run longer than Thai ("Long-term lease" = 108px at 16px,
     the flex slot is 95px on a 393 phone) — the EN mobile pass (2026-09-20)
     caught both long labels clipping. Size the row for its longest label. */
  html[lang="en"] .pub-nav-row2 a { font-size: 13.5px; letter-spacing: -.01em; }
  html[lang="en"] .pub-nav-row2 a.on { font-weight: 700; }
}
/* the four Thai labels total ~330px — below ~360px the longest would clip,
   so the smallest phones trade 1px of size for the guarantee they all fit */
@media (max-width: 374px) { .pub-nav-row2 a { font-size: 15px; } }
@media (max-width: 374px) { html[lang="en"] .pub-nav-row2 a { font-size: 12.5px; } }
.pub-lang {
  flex: none; border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px;
  min-height: 44px; display: inline-flex; align-items: center; font-size: 13px;
  font-weight: 700; color: var(--green); text-decoration: none; background: var(--panel);
}

/* generated English summary (TH/EN toggle, 08-20) */
.pub-ensum {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 18px;
}
.pub-ensum h2 { font-size: 15px; font-weight: 800; margin: 0 0 8px; }
.pub-ensum ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.pub-ensum li { margin-bottom: 4px; }

/* ---------- buttons ---------- */
.pub-btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--line-brand); color: #fff !important; border-radius: 8px;
  min-height: 44px; padding: 0 18px; font-weight: 700; text-decoration: none; font-size: 15.5px;
}
.pub-btn-tel {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--ink); color: var(--ink); border-radius: 8px;
  min-height: 44px; padding: 0 18px; font-weight: 700; text-decoration: none; font-size: 15.5px;
}
.pub-btn-line:focus-visible, .pub-btn-tel:focus-visible, a:focus-visible {
  outline: 3px solid #7FB59B; outline-offset: 2px;
}

/* ---------- C2 landing hero (Boss 08-28): solid panel + plot mosaic --------
   Replaced the L4 photo-background hero: the headline no longer fights the
   photo for contrast, and the mosaic sells breadth (flagship + two stories +
   the map door) instead of one field. */
.pub-c2hero {
  display: flex; align-items: stretch; min-height: 440px;
  background: linear-gradient(160deg, #F6F4EC, #EFEEE3);
  border-bottom: 1px solid var(--line);
}
.pub-c2panel {
  position: relative; overflow: hidden; flex: 0 0 42%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 34px clamp(18px, 3.4vw, 46px);
}
/* brand seal watermark — big, quiet, cropped by the panel edge */
.pub-c2seal {
  position: absolute; top: -60px; right: -70px; width: 280px; height: 280px;
  opacity: .07; pointer-events: none;
}
.pub-c2kick { color: var(--green); font-weight: 700; letter-spacing: .08em; font-size: 13px; }
.pub-c2panel h1 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; line-height: 1.15; text-wrap: balance; margin-top: 4px; }
.pub-c2sub { margin: 8px 0 4px; color: var(--ink-2); font-size: 16px; }
.pub-c2doors { display: flex; flex-direction: column; gap: 11px; margin-top: 20px; max-width: 430px; }
.pub-c2door {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; text-decoration: none; color: var(--ink);
  box-shadow: 0 10px 24px -16px rgba(20, 30, 20, .45);
  display: flex; justify-content: space-between; align-items: center; min-height: 56px;
}
.pub-c2door:hover { border-color: var(--green); }
.pub-c2door b { font-size: 17.5px; }
.pub-c2door small { color: var(--green); font-weight: 700; white-space: nowrap; margin-left: 10px; }
.pub-c2count { font-size: 14px; color: var(--green); white-space: nowrap; }
.pub-c2prov { display: flex; gap: 8px; margin-top: 18px; }
.pub-c2prov span.on, .pub-c2prov a {
  border-radius: 100px; padding: 7px 16px; font-size: 13.5px; font-weight: 700;
  text-decoration: none; min-height: 38px; display: inline-flex; align-items: center;
}
.pub-c2prov span.on { background: var(--green); color: #fff; }
.pub-c2prov a { background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); }

.pub-c2mosaic {
  flex: 1; min-width: 0; padding: 8px; display: grid; gap: 8px;
  grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1.55fr 1fr;
}
.pub-c2tile {
  position: relative; border-radius: 12px; overflow: hidden; display: block;
  background: #DDE3D8;
}
.pub-c2big { grid-column: 1 / -1; }
.pub-c2tile img, .pub-c2tile picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.pub-c2tile img { object-fit: cover; }
/* supporting tiles: zoom toward the composite's center so the plot outline
   fills the small tile instead of drowning in context */
.pub-c2tile:not(.pub-c2big):not(.pub-c2map) img { transform: scale(1.55); }
/* big tile: keep the title chip clear of the area chip */
.pub-c2big .pub-c2cap { max-width: calc(100% - 110px); }
.pub-c2ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 42, 28, .10) 40%, rgba(10, 22, 14, .55)); }
.pub-c2cap {
  position: absolute; z-index: 2; left: 10px; bottom: 10px;
  background: rgba(255, 255, 255, .95); color: var(--green); border-radius: 100px;
  padding: 5px 14px; font-size: 13.5px; font-weight: 700;
  max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pub-c2area {
  position: absolute; z-index: 2; right: 10px; bottom: 10px;
  background: rgba(10, 22, 14, .72); color: #C9F5DA; border: 1px solid rgba(140, 235, 175, .5);
  border-radius: 100px; padding: 5px 14px; font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
/* map door: our own /map/ as the picture, tinted so its pill reads as THE way in */
.pub-c2mapov { background: linear-gradient(180deg, rgba(31, 91, 64, .18), rgba(16, 42, 28, .5)); }
.pub-c2map .pub-c2cap { left: 50%; bottom: 50%; transform: translate(-50%, 50%); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.pub-c2tile:hover .pub-c2cap { background: #fff; }

@media (max-width: 860px) {
  .pub-c2hero { flex-direction: column; min-height: 0; }
  .pub-c2panel { flex: 1 1 auto; padding: 30px 16px 24px; }
  .pub-c2seal { width: 200px; height: 200px; top: -50px; right: -55px; }
  .pub-c2doors { max-width: none; }
  .pub-c2mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 170px 110px 110px; }
  .pub-c2big { grid-column: 1 / -1; }
  .pub-c2map { grid-column: 1 / -1; }
}

/* ---------- home map strip ---------- */
.pub-mapstrip { position: relative; border-radius: 14px; overflow: hidden; height: 280px; box-shadow: var(--shadow); }
.pub-mapstrip #home-map { position: absolute; inset: 0; background: #C8D2C4; }
.pub-mapstrip-link {
  position: absolute; inset: 0; z-index: 1100; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 18px; text-decoration: none; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(10,20,12,.45));
}
.pub-mapstrip-link span {
  pointer-events: auto; background: #fff; color: var(--green); font-weight: 700;
  border-radius: 100px; padding: 11px 22px; min-height: 44px; display: inline-flex; align-items: center;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.4);
}

/* ---------- home hero ---------- */
.pub-hero { background: linear-gradient(180deg, #F2F5EF, var(--ground)); padding: 44px 16px 34px; text-align: center; }
.pub-hero h1 { font-size: clamp(26px, 5.5vw, 40px); font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.pub-hero .pub-tagline { color: var(--ink-2); margin-top: 8px; font-size: 17px; }
.pub-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; margin: 26px auto 0; }
@media (max-width: 480px) { .pub-doors { grid-template-columns: 1fr; } }
.pub-door {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  display: block; text-align: center;
}
.pub-door b { display: block; font-size: 19px; }
.pub-door small { color: var(--green); font-weight: 600; }

/* ---------- sections + card grid ---------- */
.pub-section { max-width: 1080px; margin: 0 auto; padding: 26px 16px; }
.pub-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
/* h1 on list pages, h2 on home strips — same visual rank either way (W1.2) */
.pub-section-head h2, .pub-section-head h1 { font-size: 21px; font-weight: 800; }
.pub-section-head a {
  font-size: 14.5px; font-weight: 600;
  min-height: 44px; display: inline-flex; align-items: center;   /* W1.4: was 70×24 */
}
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }

.pub-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.pub-card-img { height: 190px; background: var(--green-soft) center/cover no-repeat; position: relative; overflow: hidden; }
/* the card photo is a real <img> so it can lazy-load and choose a size —
   object-fit reproduces exactly what background-size:cover used to do */
.pub-card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-card-img .pub-badge {
  position: absolute; top: 10px; left: 10px; background: var(--brand-deep);
  color: var(--brand-paper); font-size: 13.5px; font-weight: 700; border-radius: 100px; padding: 4px 12px;
  box-shadow: inset 0 0 0 1px var(--brand-gold);
}
.pub-card-img .pub-badge.rent { background: rgba(255,255,255,.94); color: #8C5A17; box-shadow: none; }
.pub-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pub-card-title { font-weight: 700; font-size: 16px; line-height: 1.45; }
.pub-card-facts { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.pub-card-loc { color: var(--ink-3); font-size: 13.5px; }
.pub-card-near { color: var(--ink-2); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pub-card-near b { color: var(--green); font-weight: 700; }
/* Review A3 (08-20): the site's one conversion action was a bare text line —
   smaller visual weight than the landmark row above it. Now a real button
   (visually — the whole card is already the <a>, so no nested link). */
.pub-card-price {
  margin-top: auto; display: flex; align-items: center; justify-content: center;
  min-height: 42px; border-radius: 8px;
  background: var(--green); color: #fff; font-weight: 700; font-size: 14.5px;
}
.pub-card:hover .pub-card-price, .pub-card:focus-visible .pub-card-price { background: #17462F; }

/* ---------- filters ---------- */
.pub-filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.pub-filterbar a {
  border: 1px solid var(--line); background: var(--panel); border-radius: 100px;
  padding: 8px 16px; font-size: 14px; color: var(--ink-2); text-decoration: none; min-height: 40px;
  display: inline-flex; align-items: center;
}
.pub-filterbar a.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }

/* ---------- listing detail: map hero + floating title card ---------- */
.pub-lhero { position: relative; height: 52vh; min-height: 330px; background: #C8D2C4; }
.pub-lhero .pub-lmap { position: absolute; inset: 0; }
.pub-titlecard {
  position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 1100;
  max-width: 900px; margin: 0 auto;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px);
  border-radius: 14px; padding: 16px 18px; box-shadow: 0 10px 30px -12px rgba(20, 30, 20, .35);
}
.pub-titlecard h1 { font-size: clamp(19px, 4vw, 26px); font-weight: 800; line-height: 1.35; }
.pub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pub-chips span {
  background: var(--green-soft); color: var(--green); border-radius: 100px;
  padding: 4px 13px; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}
/* จุดสังเกต identifier line (F1, Boss 8 ก.ย.): where the land IS, in the one
   element on the hero everyone reads. The relation word is the gold part. */
.pub-ident {
  margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--ink);
}
.pub-ident b { color: var(--brand-gold-ink); font-weight: 700; }

/* Local-pin tags laid over the static hero. Positioned by JS from the
   composite's stored frame; a gold dot marks the spot, the tag hangs off it.
   Deliberately smaller and squarer than the white city pill: a different
   mark for a different job. */
.pub-herotags { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.lm-local { position: absolute; transform: translate(-50%, -50%); }
.lm-local .lm-dot {
  width: 11px; height: 11px; border-radius: 50%; background: var(--brand-gold);
  box-shadow: 0 0 0 2.5px #fff, 0 2px 8px rgba(0, 0, 0, .5);
}
.lm-local .lm-tag {
  position: absolute; left: 10px; top: -9px; width: max-content; max-width: 200px;
  background: rgba(255, 255, 255, .96); color: #22281F; border-left: 3px solid var(--brand-gold);
  font: 600 11.5px/1.25 "Sarabun", "Anuphan", "Thonburi", "Noto Sans Thai", system-ui, sans-serif;
  padding: 3px 8px 3px 7px; border-radius: 4px; white-space: nowrap;
  box-shadow: 0 3px 10px -4px rgba(0, 0, 0, .6);
}
.lm-local .lm-tag small { display: block; font-weight: 500; font-size: 10.5px; color: #5A6055; }
.lm-local.is-left .lm-tag { left: auto; right: 10px; }
.lm-local.is-low .lm-tag { top: auto; bottom: 8px; }
/* on the Leaflet map the same mark rides a divIcon; tags show from zoom 16 */
.pub-lmap .lm-local { transform: none; }
.pub-lmap .lm-local .lm-dot { transform: translate(-50%, -50%); }
.pub-lmap .lm-local .lm-tag { pointer-events: none; }
.pub-lmap:not(.show-local-tags) .lm-local .lm-tag { display: none; }

.pub-lbody { max-width: 980px; margin: 0 auto; padding: 24px 16px 40px; }
.pub-lbody h2 { font-size: 18px; font-weight: 800; margin: 28px 0 10px; }
.pub-datagrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pub-datagrid > div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; }
.pub-datagrid small { display: block; color: var(--ink-3); font-size: 12px; }
.pub-datagrid b { font-size: 17px; font-variant-numeric: tabular-nums; }

.pub-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-radius: var(--radius); overflow: hidden; }
.pub-photos a { display: block; position: relative; height: 200px; background: var(--green-soft) center/cover no-repeat; }
.pub-photos a:first-child:nth-last-child(odd) { grid-column: span 2; }
@media (max-width: 560px) { .pub-photos { grid-template-columns: 1fr; } .pub-photos a { grid-column: auto !important; height: 220px; } }
.pub-photo-note { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

/* เอกสารสิทธิ์ strip — masked deed first pages, bottom of the detail page.
   Portrait thumbnails in a horizontal scroller; the page body never scrolls
   sideways (mobile rule 6). */
.pub-deeds { display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.pub-deeds a { flex: none; width: 140px; text-decoration: none; color: var(--ink); }
.pub-deeds img {
  width: 140px; height: 198px; object-fit: cover; object-position: top;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); display: block;
}
.pub-deeds span { display: block; font-size: 12px; text-align: center; margin-top: 4px; color: var(--ink-2); }
.pub-photocap {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  background: rgba(15, 26, 18, 0.68); color: #fff; font-size: 12.5px;
  padding: 4px 10px; border-radius: 100px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* photo lightbox — swipe/arrow gallery, counter, caption; ESC or backdrop closes */
.pub-lightbox {
  position: fixed; inset: 0; z-index: 1300; background: rgba(10, 14, 11, 0.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 8px max(16px, env(safe-area-inset-bottom));
}
.pub-lightbox[hidden] { display: none; }
.pub-lightbox img { max-width: 100%; max-height: 78vh; border-radius: 8px; }
.pub-lb-cap { color: #fff; font-size: 14px; margin-top: 10px; text-align: center; }
.pub-lb-count { color: rgba(255,255,255,0.7); font-size: 12.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pub-lb-close, .pub-lb-prev, .pub-lb-next {
  position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: 0;
  min-width: 44px; min-height: 44px; border-radius: 100px; font-size: 20px; cursor: pointer;
}
.pub-lb-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.pub-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.pub-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

.pub-lmchips { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-lmchips span {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 14px; font-size: 14px; font-variant-numeric: tabular-nums;
}
.pub-lmchips b { color: var(--green); }
.pub-approx { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.pub-utils { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-utils span { background: var(--green-soft); color: var(--green); border-radius: 8px; padding: 7px 14px; font-size: 14px; font-weight: 600; }

.pub-desc { color: #454B41; max-width: 66ch; white-space: pre-line; margin: 0 0 14px; }
/* Bullet facts, hung so a wrapped line sits under its text and not under the
   「•」. list-style:none + ::before rather than list-style-type:'•' — the string
   form of list-style-type only reached Safari recently and this page is read on
   iPhones. */
.pub-desc-list { max-width: 66ch; margin: 0 0 14px; padding: 0; list-style: none; }
.pub-desc-list li { position: relative; padding-left: 1.35em; margin: 0 0 6px; color: #454B41; }
.pub-desc-list li::before { content: '•'; position: absolute; left: .25em; top: 0; color: var(--green); font-weight: 700; }

.pub-plots { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pub-plots th, .pub-plots td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.pub-plots th { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.pub-plots tr:last-child td { border-bottom: 0; }
.pub-plots td:last-child, .pub-plots th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.pub-plots-wrap { overflow-x: auto; }

.pub-sv iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

.pub-pricecard {
  margin-top: 32px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px; text-align: center; box-shadow: var(--shadow);
}
.pub-pricecard .pub-price { color: var(--green); font-size: 24px; font-weight: 800; }
.pub-pricecard .pub-price-sub { color: var(--ink-2); font-size: 14px; margin: 4px 0 16px; }
.pub-pricecard .pub-btn-line { width: 100%; max-width: 420px; }
.pub-pricecard .pub-btn-tel { margin-top: 10px; width: 100%; max-width: 420px; }

/* ---------- เกี่ยวกับทำเลนี้ — journey-timeline rows (design C, 08-19) ---------- */
.pub-locrows { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pub-locrow {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 15px; border-bottom: 1px solid var(--line);
}
.pub-locrow:last-child { border-bottom: 0; }
/* the two tiers inside เกี่ยวกับทำเลนี้: ใกล้ที่ดิน (local, metres + 🚶) above
   การเดินทาง (city, road km + 🚗). The eyebrow encodes the tier. */
.pub-loctier {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  color: var(--ink-3); padding: 10px 15px 4px; background: var(--panel);
}
.pub-locrow.is-local .pub-locic { background: var(--brand-paper); }
.pub-locrow.is-local .pub-lockm { color: var(--brand-gold-ink); }
.pub-locname .lm-rel { color: var(--brand-gold-ink); font-weight: 700; }
.pub-locic {
  width: 36px; height: 36px; border-radius: 10px; background: #F1F3EC;
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none;
}
.pub-locmain { display: flex; flex-direction: column; min-width: 0; }
.pub-locname { font-weight: 600; font-size: 15px; }
.pub-locmain small { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.pub-lockm {
  margin-left: auto; color: var(--green); font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------- landmark labels drawn on maps ---------- */
.lm-pill {
  background: rgba(255, 255, 255, .95); color: var(--ink); border-radius: 100px;
  padding: 5px 12px; font: 700 12.5px/1.3 "Sarabun", "Anuphan", "Thonburi", "Noto Sans Thai", system-ui, sans-serif;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .5); white-space: nowrap;
  transform: translate(-50%, -130%); width: max-content;
}
.lm-pill b { color: #1F5B40; }
/* brand marks standing in for the emoji — height-capped so wide wordmarks
   (Robinson) shrink to fit instead of stretching the pill. .lm-word = the
   image IS the brand name, drawn taller with no text label beside it. */
.lm-pill .lm-logo { height: 17px; width: auto; max-width: 72px; object-fit: contain; vertical-align: -4px; border-radius: 3px; }
.lm-pill .lm-logo.lm-word { height: 12px; vertical-align: -1px; border-radius: 0; }
.lm-pill.lm-brand { background: rgba(255, 255, 255, .97); font-weight: 700; }
.lm-pill.lm-ctx .lm-logo { height: 15px; vertical-align: -3.5px; }
.lm-pill.lm-ctx .lm-logo.lm-word { height: 11px; vertical-align: -1px; }
.pub-locic .lm-brandic { width: 24px; height: 24px; object-fit: contain; border-radius: 5px; }
.lm-land {
  background: #1F5B40; color: #fff; border-radius: 100px; padding: 5px 13px;
  font: 700 12.5px/1.3 "Sarabun", "Anuphan", "Thonburi", "Noto Sans Thai", system-ui, sans-serif;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .55); white-space: nowrap;
  transform: translate(-50%, -50%); width: max-content;
}
/* rent slots: the pill floats ABOVE the sketch — centered it hid the whole
   polygon (a 146-ตร.ว. space is smaller than the pill at street zoom) */
.lm-land--above { transform: translate(-50%, -130%); }

/* ---------- sticky bottom contact bar (phone, detail pages) ---------- */
.pub-fixbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; flex-direction: column; gap: 7px;
  background: var(--panel); border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.pub-fixbtns { display: flex; gap: 10px; }
.pub-fixbar .pub-btn-line, .pub-fixbar .pub-btn-tel { flex: 1; min-height: 48px; }
.pub-endpad { height: 86px; }
/* pages whose bar carries the ref strip need a taller runway (~26px more) */
.pub-endpad-ref { height: 118px; }
@media (min-width: 861px) {
  .pub-fixbar { display: none; }
  .pub-endpad, .pub-endpad-ref { height: 0; }
}

/* ---------- map page ---------- */
/* --tray-h is measured by map.html on every render/resize: the zoom buttons
   and the province inset are docked above the card tray, whose height changes
   with the "N รายการในมุมมองนี้" header and with the phone. */
.pub-mapwrap { position: relative; height: calc(100dvh - 64px); --tray-h: 210px; }
.pub-mapwrap .pub-lmap { position: absolute; inset: 0; }
.pub-mapfilter { position: absolute; top: 12px; left: 12px; z-index: 1100; display: flex; gap: 8px; }
.pub-mapfilter button {
  font: inherit; font-size: 14px; font-weight: 700; border: 1px solid var(--line);
  background: rgba(255,255,255,.95); color: var(--ink-2); border-radius: 100px;
  padding: 9px 16px; min-height: 42px; cursor: pointer;
}
.pub-mapfilter button.on { background: var(--green); border-color: var(--green); color: #fff; }
.pub-maptray { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1100; }
.pub-carousel {
  display: flex; gap: 10px; overflow-x: auto; padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
/* The list is the viewport (design B): once you are past town zoom it stops
   being a brochure of all 70 and starts answering "what is here?" — so it has
   to say how many, and offer the way back out. */
.pub-trayhead {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px;
  background: rgba(14, 18, 15, .9); color: #E7EDE6; font-size: 13px; font-weight: 700;
}
.pub-trayhead[hidden] { display: none; }
.pub-trayhead button {
  margin-left: auto; font: inherit; font-size: 13px; font-weight: 700;
  background: none; border: 0; color: #8EDCB4; cursor: pointer;
  padding: 6px 2px; min-height: 32px; text-decoration: underline;
}
.pub-mapback {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%); z-index: 1200;
  font: inherit; font-size: 13px; font-weight: 700; border: 0; cursor: pointer;
  background: rgba(14, 18, 15, .9); color: #EAF3EC; border-radius: 100px;
  padding: 0 16px; min-height: 44px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .7);
}
.pub-mapback[hidden] { display: none; }
/* province inset — a Leaflet bottomleft control, so it docks correctly in
   both the phone overlay layout and the desktop two-pane grid */
.pub-mapinset {
  position: relative; width: 92px; height: 92px; border-radius: 9px; overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 5px 16px -6px rgba(0, 0, 0, .8);
  cursor: pointer; background: #3B4630;
}
.pub-mapinset[hidden] { display: none; }
.pub-mapinset-map { position: absolute; inset: 0; }
.pub-mapinset-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 500;
  background: rgba(14, 18, 15, .8); color: #DCE4DB; font-size: 10px; font-weight: 700;
  text-align: center; padding: 2px 0; pointer-events: none;
}
.pub-cluster {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(31, 91, 64, .93); border: 2px solid #fff; color: #fff;
  font: 700 13px/1 system-ui, sans-serif; box-shadow: 0 3px 10px -3px rgba(0, 0, 0, .7);
  transform: translate(-50%, -50%);
}
.pub-arealbl {
  background: rgba(20, 26, 21, .85); color: #EAF3EC; border-radius: 5px;
  padding: 3px 8px; font: 700 11.5px/1.3 "Sarabun", "Anuphan", "Thonburi", "Noto Sans Thai", system-ui, sans-serif;
  white-space: nowrap; width: max-content; transform: translate(-50%, 14px);
  box-shadow: 0 3px 10px -5px rgba(0, 0, 0, .8);
}
/* zoom buttons live bottom-right above the tray now (topright is the furthest
   corner from a right thumb) and meet the 44-px minimum target */
/* the CONTROLS lift above the tray, not their whole corner — the attribution
   keeps its place at the map's floor, where it has always been */
.pub-lmap .leaflet-control-zoom,
.pub-lmap .pub-mapinset { margin-bottom: calc(var(--tray-h) + 12px); }
/* The .leaflet-touch variant repeats the rule because Leaflet's own
   `.leaflet-touch .leaflet-bar a` (30×30) TIES this selector's specificity and
   its stylesheet loads later — on every real phone the tie went to 30×30 while
   desktop got 44. Verified live 09-03. */
.pub-lmap .leaflet-control-zoom a,
.pub-lmap.leaflet-touch .leaflet-control-zoom a {
  width: 44px; height: 44px; line-height: 44px; font-size: 20px;
}
.pub-mapcard {
  scroll-snap-align: center; flex: 0 0 270px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
/* the card being viewed on the map must be unmissable (Boss 08-28) — border,
   tint, lift AND a "กำลังดูบนแผนที่" strip, not just a hairline outline */
.pub-mapcard.on {
  outline: 3px solid var(--green); outline-offset: -1px;
  background: var(--green-soft);
  box-shadow: 0 12px 28px -12px rgba(31, 91, 64, .55);
}
.pub-mapcard.on .pub-card-title { color: var(--green); }
.pub-mapcard .pub-card-viewing { display: none; }
.pub-mapcard.on .pub-card-viewing {
  display: block; background: var(--green); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 12px;
}
.pub-mapcard .pub-card-img { height: 110px; }
.pub-mapcard .pub-card-body { padding: 10px 12px 12px; gap: 3px; }
.pub-mapcard .pub-card-title { font-size: 14.5px; }
.pub-mapcard .pub-card-price { min-height: 36px; font-size: 13.5px; }
.pub-mapcard[hidden] { display: none; }
/* phone only: the first tap on a card pans the map and the second opens it,
   so the selected card has to SAY that a second tap is the way in */
.pub-mapcard .pub-card-cta { display: none; }
@media (max-width: 860px) {
  .pub-mapcard.on .pub-card-cta {
    display: block; margin-top: 8px; background: var(--green); color: #fff;
    border-radius: 8px; text-align: center; font-size: 13px; font-weight: 700;
    padding: 11px 8px; min-height: 44px; line-height: 22px;
  }
}
@media (min-width: 861px) {
  .pub-mapwrap { display: grid; grid-template-columns: 380px 1fr; height: calc(100dvh - 64px); }
  .pub-mapwrap .pub-lmap { position: relative; grid-column: 2; }
  .pub-maptray {
    position: relative; grid-column: 1; grid-row: 1; display: flex; flex-direction: column;
    min-height: 0; border-right: 1px solid var(--line); background: var(--ground);
  }
  .pub-carousel {
    flex: 1; min-height: 0; flex-direction: column;
    overflow-y: auto; overflow-x: hidden; padding: 14px; scroll-snap-type: none;
  }
  .pub-trayhead { background: var(--panel); color: var(--ink-2); border-bottom: 1px solid var(--line); }
  .pub-trayhead button { color: var(--green); }
  .pub-mapcard { flex: none; }
  .pub-mapfilter { left: 396px; }
  .pub-mapback { top: 12px; left: auto; right: 16px; transform: none; }
  /* the tray is a side rail here, so the docked controls sit at the map's own floor */
  .pub-lmap .leaflet-control-zoom,
  .pub-lmap .pub-mapinset { margin-bottom: 10px; }
}

/* ---------- trust strip ---------- */
.pub-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pub-trust > div { background: #F4F3EC; border-radius: 10px; padding: 16px 18px; font-size: 14.5px; }
.pub-trust b { display: block; margin-bottom: 2px; }

/* ---------- footer (brand moment: the deep-green estate strip) ----------
   Three columns so the row has no dead middle, then a hairline legal bar.
   The legal bar owns the sticky-contact-bar clearance — before it existed the
   fixed bar covered the privacy link and the ref code on every phone. */
.pub-footer {
  background: var(--brand-deep); color: var(--brand-paper); margin-top: 56px;
  border-top: 2px solid var(--brand-gold);   /* the brand keyline — reads as a deliberate close, not a page running out */
}
.pub-footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 52px 16px 40px;
  display: grid; gap: 32px 48px;
  grid-template-columns: minmax(240px, 1.3fr) minmax(150px, .8fr) minmax(220px, 1fr);
}
.pub-footer p { color: #AFC0B4; font-size: 14.5px; line-height: 1.7; margin-top: 10px; max-width: 34ch; }
.pub-footer h2 {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-gold); margin: 4px 0 14px;
}
.pub-brand-ft { color: var(--brand-paper); }
.pub-brand-ft .pub-brand-name { font-size: 19px; }
.pub-footer .pub-seal { color: var(--brand-paper); width: 40px; height: 40px; }
.pub-footer .pub-brand-sub { color: var(--brand-gold); }
.pub-footer-menu { display: flex; flex-direction: column; align-items: flex-start; }
.pub-footer-menu a {
  color: #CFDDD3; text-decoration: none; font-size: 14.5px;
  min-height: 40px; display: inline-flex; align-items: center;   /* HIG minimum via padding on phones */
  transition: color .12s;
}
.pub-footer-menu a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pub-footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.pub-footer-btns { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 320px; }
.pub-footer-btns .pub-btn-line { flex: 1 1 auto; }
.pub-footer-note { font-size: 13.5px; line-height: 1.65; color: #AFC0B4; margin: 0 0 14px; }
.pub-footer-note b { color: var(--brand-gold); }
.pub-footer-reply { font-size: 12.5px; color: #8FA396; margin: 10px 0 0; }
.pub-footer-legal { border-top: 1px solid rgba(242, 239, 230, .16); }
.pub-footer-legal-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px;
  font-size: 12.5px; color: #9FB2A5;
}
.pub-footer-legal-inner a {
  color: #9FB2A5; text-underline-offset: 3px;
  min-height: 44px; display: inline-flex; align-items: center;   /* W1.4: was 120×21 */
}
.pub-footer-legal-inner a:hover { color: #fff; }
.pub-footer-copy { margin: 0; font-size: 12.5px; color: #9FB2A5; }
.pub-footer-ref { font-size: 12.5px; color: #9FB2A5; margin: 0; }
/* 'this browser is not counted' — appended by track.js only when the ghx
   cookie is present, so our own phones can see the exclusion is working */
.pub-selfx { flex-basis: 100%; font-size: 12px; color: #7F958A; }
.pub-selfx a { color: #9FB2A5; text-decoration: underline; }
/* the sticky bar is display:none from 861px up — only phones need the runway */
@media (max-width: 860px) {
  .pub-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .pub-footer-legal-inner { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  body.has-fixref .pub-footer-legal-inner { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
}
.pub-ref { font-size: 13px; color: var(--ink-2); margin: 0; }
.pub-ref b { color: var(--ink); font-weight: 700; }

/* ---------- รหัสทรัพย์ (Boss, 09-02) ----------
   The code is the only string a visitor has to reproduce out loud, and it used
   to appear twice: 13px grey under the CTA buttons, and 12.5px in the footer.
   Both below the fold on a phone. It now has one loud component that repeats in
   the hero, the contact card, the sticky bar and every card — dark on light so
   it reads as an identifier, never as another soft-green fact chip. */
.pub-titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pub-titlerow h1 { min-width: 0; }

.pub-refpill {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font: inherit; cursor: pointer; min-height: 44px; padding: 5px 13px;
  background: var(--ink); color: #fff; border: 0; border-radius: 100px;
  transition: background .15s ease;
}
.pub-refpill:hover { background: #11160F; }
.pub-refpill:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.pub-refpill .pub-refpill-l { font-size: 11px; font-weight: 600; opacity: .68; white-space: nowrap; }
.pub-refpill b {
  font-size: 16.5px; font-weight: 800; letter-spacing: .055em; white-space: nowrap;
  font-variant-numeric: tabular-nums; user-select: all; -webkit-user-select: all;
}
.pub-refpill .pub-refpill-i { flex: none; opacity: .7; }
/* copied: the label slot carries the confirmation, so the code never moves */
.pub-refpill.is-copied { background: var(--green); }
.pub-refpill.is-copied .pub-refpill-l { opacity: 1; font-weight: 700; }
.pub-refpill.is-copied .pub-refpill-i { opacity: 0; }

/* contact-card variant: centred under the CTAs, one size up */
.pub-refquote { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.pub-refpill-lg { min-height: 48px; padding: 6px 18px; }
.pub-refpill-lg b { font-size: 19px; }

/* card corner badge — opposite side from the ขาย / เช่า stack */
.pub-card-img .pub-badge-ref {
  left: auto; right: 10px; background: rgba(24, 30, 22, .84); color: #fff;
  box-shadow: none; letter-spacing: .05em; font-variant-numeric: tabular-nums;
  backdrop-filter: blur(2px);
}
.pub-relref {
  display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 5px;
  background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
}

/* sticky bar strip — plain text, not a tap target, so the bar stays thin and
   nothing under 44px lands in the app chrome. user-select:all so a long-press
   grabs the whole code on iOS rather than one word of it. */
.pub-fixref {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--ink-2); line-height: 1.2;
}
.pub-fixref b {
  color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: .055em;
  font-variant-numeric: tabular-nums; user-select: all; -webkit-user-select: all;
}

@media (max-width: 560px) {
  /* phone: the code leads the hero card — it is what the caller reads out */
  .pub-titlerow { flex-direction: column; gap: 9px; }
  .pub-titlerow .pub-refpill { order: -1; }
}

/* ---------- empty states ---------- */
.pub-empty { text-align: center; color: var(--ink-2); padding: 60px 16px; }
.pub-empty b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; }

/* ---------- design C (Boss picked 08-19): static hero + lazy map ---------- */
.pub-lhero .pub-heroimg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Review A4 (08-20): two stacked full-width pills read as system banners and
   sat on the photo's face. One horizontal swipe row keeps the composite
   visible; overflow scrolls instead of stacking. */
.pub-heropills {
  position: absolute; top: 12px; left: 0; right: 0; z-index: 5;
  display: flex; flex-direction: row; gap: 8px; align-items: flex-start;
  padding: 0 12px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pub-heropills::-webkit-scrollbar { display: none; }
/* pills anchored by Leaflet get a translate; in the static hero they are
   normal flow — same look, no transform */
.pub-heropills .lm-pill {
  transform: none; flex: none;
}
/* docked over the live map when zoomed into the block (syncScale): above the
   Leaflet panes (400) and below the title card (1100) */
.pub-heropills.on-map { z-index: 1050; }
/* anchored to the title card (its child) so the row floats just above the
   card's top-right corner whatever the title's line count. 2B (Boss 20 ก.ย.):
   two pills — «📍 Google Maps» (white, the secondary) beside «แตะเพื่อสำรวจ
   แผนที่» (dark, the primary). bottom:100% rather than a fixed negative top,
   so on a 360px phone the row can wrap upward instead of over the card. */
.pub-heroacts {
  position: absolute; bottom: 100%; margin-bottom: 12px; right: 2px;
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
  max-width: calc(100% - 4px);
}
.pub-explore {
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  background: #1F5B40; color: #fff; border: 0; border-radius: 100px;
  padding: 10px 16px; min-height: 44px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .5);
}
.pub-explore-gm { background: #fff; color: #1F5B40; border: 1.5px solid #1F5B40; padding: 10px 14px; }
.pub-explore-gm:hover { background: var(--green-soft); color: #1F5B40; }
.pub-explore:focus-visible { outline: 3px solid #7FB59B; outline-offset: 2px; }

/* ทำเลนี้เหมาะกับ chips — claims come from the listing's own words */
.pub-suit { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 16px; }
.pub-suit-label { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.pub-suit-chip {
  background: var(--green-soft); color: var(--green); border-radius: 100px;
  padding: 6px 14px; font-size: 13.5px; font-weight: 700;
}

/* แปลงอื่นที่น่าสนใจ — compact related cards after the contact block */
.pub-related { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pub-related { grid-template-columns: repeat(3, 1fr); } }
.pub-relcard {
  display: flex; gap: 12px; align-items: center; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 10px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.pub-relthumb {
  width: 96px; height: 80px; border-radius: 9px; object-fit: cover; flex: none;
  background: var(--green-soft); display: block;
}
.pub-relbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pub-relbody b { font-size: 14.5px; line-height: 1.4; }
.pub-relbody small { color: var(--ink-2); font-size: 13px; }

/* Google Maps deep link + coordinates (detail pages).
   2A (Boss 20 ก.ย.): a solid brand-green CTA, full width on a phone and the
   LINE button's 420px on desktop, coordinates centred beneath — it was an
   outlined 44px link beside grey coordinates, and read as a footnote. The
   pin link (maps?q=lat,lng — D1) stays: the buyer confirms it is the same
   field they just looked at; directions are one tap further inside Maps. */
.pub-gmaps { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 14px; max-width: 420px; }
.pub-btn-gmaps {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff; border-radius: 10px;
  min-height: 52px; padding: 0 18px; font-weight: 700; text-decoration: none; font-size: 16px;
  box-shadow: 0 8px 18px -12px rgba(31, 91, 64, .8);
}
.pub-btn-gmaps:hover { background: #17492F; color: #fff; }
.pub-coords {
  text-align: center; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums;
  user-select: all; -webkit-user-select: all;
}

/* /map/ landmark context pills — small, non-interactive, zoom-gated */
.lm-pill.lm-ctx {
  font-size: 11.5px; padding: 3px 10px; background: rgba(255, 255, 255, .85);
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .4); transform: translate(-50%, -50%);
}
.pub-lmap:not(.show-lms) .lm-ctx { display: none; }

/* ทำไมต้องบุรีรัมย์? — the shared closing section on Buriram listings
   (Boss 08-22). Panel treatment so it reads as site voice, not listing copy;
   bullets hang like .pub-desc-list so wrapped facts sit under their text. */
.pub-why { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 26px 0 8px; }
.pub-why h2 { margin-top: 0; }
.pub-why-list { max-width: 66ch; margin: 0; padding: 0; list-style: none; }
.pub-why-list li { position: relative; padding-left: 1.9em; margin: 0 0 8px; color: #454B41; }
.pub-why-ic { position: absolute; left: 0; top: 0; }
.pub-why-local { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.pub-why-local-h { display: block; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--green); text-transform: uppercase; margin-bottom: 8px; }

/* ---------- brand typography (identity layer, 08-22) ----------
   Trirong = listing titles + hero + wordmark ONLY. It ships bold-only, so
   every rule here pins font-weight:700 (an 800 would synthesize). */
.pub-hero h1,
.pub-titlecard h1,
.pub-card-title {
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- ทำไมต้องบุรีรัมย์ — evidence mode (rebuilt 08-27) ----------
   The fact pack's Rule 1 is the design: the agency and the data date ride
   WITH every figure, at readable size, in the markup. So the citation line is
   a styled component here (.pub-why-src), never fine print — it is the whole
   reason this section outranks portal copy. Space-to-rent listings still use
   the plain .pub-why / .pub-why-list bullets above; nothing here touches them. */
.pub-why-ev {
  display: flex; flex-direction: column; gap: 18px;
  border-top: 3px solid var(--green);
  padding: 22px 20px 20px;
}
.pub-why-head { display: flex; flex-direction: column; gap: 7px; }
.pub-why-kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}
.pub-why-ev h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 5.2vw, 28px); line-height: 1.25; margin: 0;
}
/* .pub-why-lede retired 09-06 — the sources sentence renders only at the
   section foot (.pub-why-agencies), as a citation, per Boss. */

/* the citation line — a component, not a footnote */
.pub-why-src {
  display: block; font-size: 11.5px; line-height: 1.5; color: var(--ink-3);
}

/* ---- four buyer questions (Boss 20 ก.ย. 2569, letter B) ----
   A <dl>: the question is the term, two or three sourced facts are its
   definition. Figure | claim | source on one grid row, so the agency stays
   beside the number at every width (pack Rule 1). The old chart → cards →
   quotes essay (.pub-why-grid / -card / -n / -notes) went with it. */
.pub-why-qs { margin: 0; display: flex; flex-direction: column; }
.pub-why-q {
  display: grid; grid-template-columns: 168px minmax(0, 1fr);
  gap: 6px 20px; padding: 12px 0; border-top: 1px solid var(--line);
}
.pub-why-q:first-child { border-top: 0; padding-top: 0; }
.pub-why-q dt b { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.35; }
.pub-why-q dt small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pub-why-q dd { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pub-why-f { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: baseline; }
.pub-why-f > b {
  font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2;
  font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 92px;
}
.pub-why-f > span { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.pub-why-f .pub-why-src { grid-column: 2; }
@media (max-width: 620px) {
  /* phone: the figure heads its own line — a 92px figure column beside a
     266px text column made every fact five lines tall */
  .pub-why-q { grid-template-columns: 1fr; gap: 8px; }
  .pub-why-f { grid-template-columns: 1fr; gap: 1px; }
  .pub-why-f > b { min-width: 0; font-size: 17px; }
  .pub-why-f .pub-why-src { grid-column: 1; }
}

/* ---- the chart: tourism receipts by year, headline number beside the bars
   (Boss 20 ก.ย.: layout 1C, dataset P2). One measure, seven years, the last
   emphasised, on a fixed 0–10,000 ล้านบาท track; every bar direct-labelled
   with the figure as published, so it needs no legend. ---- */
.pub-why-fig {
  margin: 4px 0 0; background: var(--ground); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px 10px;
  display: grid; grid-template-columns: 180px minmax(0, 1fr);
  grid-template-areas: "hd bars" "src src"; gap: 6px 22px; align-items: start;
}
.pub-why-fighd { grid-area: hd; display: flex; flex-direction: column; gap: 2px; }
.pub-why-figt { font-size: 13px; font-weight: 700; }
.pub-why-figt span { font-weight: 400; color: var(--ink-3); }
.pub-why-figbig {
  font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--green);
}
.pub-why-figrank { font-size: 12px; color: var(--ink-2); }
.pub-why-point { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.pub-why-bars { grid-area: bars; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.pub-why-bars li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 72px;
  gap: 3px 10px; align-items: center;
}
.pub-why-bn b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pub-why-bt { display: block; height: 8px; border-radius: 2px; background: #E2E6DF; overflow: hidden; }
.pub-why-bt i { display: block; height: 100%; background: #C2CCC1; border-radius: 2px; }
.pub-why-bars li.on .pub-why-bn b { color: var(--ink); font-weight: 700; }
.pub-why-bars li.on .pub-why-bt i { background: var(--green); }
.pub-why-bv {
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.pub-why-bars li.on .pub-why-bv { color: var(--ink); }
.pub-why-fig > .pub-why-src { grid-area: src; padding-top: 2px; }
@media (max-width: 620px) {
  .pub-why-fig { grid-template-columns: 1fr; grid-template-areas: "hd" "bars" "src"; gap: 10px; }
  .pub-why-fighd { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .pub-why-point { flex-basis: 100%; }
}

/* ---- verify it yourself (claim L4) ---- */
.pub-why-verify {
  background: var(--green-soft); border-radius: 10px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.pub-why-vh {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--green);
}
.pub-why-vlinks { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-why-vlinks a {
  flex: 1 1 220px; min-height: 46px; text-decoration: none;
  background: var(--panel); border: 1px solid #D6E2D9; border-radius: 8px;
  padding: 8px 13px; display: flex; flex-direction: column; justify-content: center; gap: 1px;
}
.pub-why-vlinks a b { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.pub-why-vlinks a span { font-size: 11.5px; color: var(--ink-3); word-break: break-word; }
.pub-why-vlinks a:hover { border-color: var(--green); }
.pub-why-vlinks a:focus-visible { outline: 3px solid #7FB59B; outline-offset: 2px; }

/* ---- the register of agencies ---- */
.pub-why-foot {
  margin: 0; border-top: 1px solid var(--line); padding-top: 12px;
  font-size: 12px; line-height: 1.65; color: var(--ink-3);
}
.pub-why-foot b { color: var(--ink-2); font-weight: 600; }

/* ---------- /buriram/ — the Thai SEO pillar page (variation B, 08-27) ----------
   Same tokens as the rest of the site; the register comes from weight, scale
   and the citation line, not from a new palette. Charts are inline SVG scaled
   with preserveAspectRatio="none", so every label is HTML outside the svg —
   an <svg><text> would be stretched with the plot. */
.bs { max-width: 780px; margin: 0 auto; padding: 0 16px 64px; }
.bs-page { background: var(--ground); }

.bs-hero { padding: 26px 0 8px; display: flex; flex-direction: column; gap: 12px; }
.bs-crumb { font-size: 12.5px; color: var(--ink-3); }
.bs-crumb a { color: var(--ink-2); text-decoration: none; }
.bs-crumb a:hover { text-decoration: underline; }
.bs-crumb span { margin: 0 5px; }
.bs h1 {
  font-family: var(--font-display); font-weight: 700; margin: 0;
  font-size: clamp(26px, 6.4vw, 40px); line-height: 1.22; letter-spacing: -.01em;
}
.bs-lede { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 60ch; }
.bs-lede-sub { margin: 0; font-size: 14px; color: var(--ink-3); }
.bs-tiles {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; gap: 10px; grid-template-columns: 1fr;
}
@media (min-width: 620px) { .bs-tiles { grid-template-columns: repeat(3, 1fr); } }
.bs-tiles li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  border-top: 3px solid var(--green); padding: 14px 15px;
  display: flex; flex-direction: column; gap: 3px;
}
.bs-tiles b {
  font-size: 30px; font-weight: 700; line-height: 1.05;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.bs-tiles span { font-size: 13.5px; color: var(--ink-2); }
.bs-tiles em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }

.bs-sec { padding-top: 42px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 70px; }
.bs-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green);
}
.bs h2 {
  font-family: var(--font-display); font-weight: 700; margin: 0;
  font-size: clamp(21px, 4.4vw, 27px); line-height: 1.3;
}
.bs-sec > p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--ink-2); max-width: 62ch; }
.bs-src { display: block; font-size: 11.5px; line-height: 1.5; color: var(--ink-3); }
.bs-note {
  margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2);
}
.bs-note .bs-src { margin-top: 6px; }
.bs-warn {
  margin: 0; background: #FDF4E7; border: 1px solid #E4CFA6; border-radius: 10px;
  padding: 12px 14px; font-size: 14.5px; font-weight: 600; color: #7A5310;
}

/* ---- figures ---- */
.bs-fig {
  margin: 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 16px 13px;
  display: flex; flex-direction: column; gap: 11px;
}
.bs-figh { display: flex; flex-direction: column; gap: 3px; }
.bs-figh b { font-size: 15px; font-weight: 700; }
.bs-figh b span { font-weight: 400; color: var(--ink-3); }
.bs-point { font-size: 13px; color: var(--ink-2); }
.bs-fig .bs-src { border-top: 1px solid var(--line); padding-top: 9px; }

/* horizontal bars (occupancy) */
.bs-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bs-bars li { display: grid; grid-template-columns: 122px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.bs-bn { display: flex; flex-direction: column; min-width: 0; }
.bs-bn b { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.bs-bn em { font-style: normal; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bs-bt { display: block; height: 12px; border-radius: 3px; background: #E2E6DF; overflow: hidden; }
.bs-bt i { display: block; height: 100%; background: #C2CCC1; border-radius: 3px; }
.bs-bars li.on .bs-bn b { color: var(--ink); font-weight: 700; }
.bs-bars li.on .bs-bt i { background: var(--green); }
.bs-bv { font-size: 13.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bs-bars li.on .bs-bv { color: var(--ink); }
@media (max-width: 560px) {
  .bs-bars li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm vl" "tr tr"; }
  .bs-bn { grid-area: nm; } .bs-bv { grid-area: vl; } .bs-bt { grid-area: tr; }
}

/* columns (receipts) */
.bs-cols { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: flex-end; height: 190px; }
.bs-cols li { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; height: 100%; }
.bs-colv { font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bs-cols li.on .bs-colv { color: var(--ink); font-weight: 700; }
.bs-colb { display: block; width: 100%; background: #C2CCC1; border-radius: 4px 4px 0 0; min-height: 3px; }
.bs-cols li.on .bs-colb { background: var(--green); }
.bs-colx { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* line plots */
.bs-plot { position: relative; height: 170px; padding: 0 0 0 2px; }
.bs-plot-tall { height: 210px; }
.bs-plot svg { width: 100%; height: 100%; overflow: visible; }
.bs-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bs-evt { stroke: #D8D5C8; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.bs-ln { fill: none; stroke: #C2CCC1; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bs-ln.on { stroke: var(--green); stroke-width: 3; }
.bs-ln.s0 { stroke: #8FAF9B; stroke-width: 3; }
.bs-ln.s1 { stroke: var(--green); stroke-width: 3; }
.bs-ymax, .bs-ymin { position: absolute; right: 0; font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; background: var(--panel); padding: 0 3px; }
.bs-ymax { top: -7px; } .bs-ymin { bottom: -7px; }
.bs-xaxis, .bs-xends { list-style: none; margin: 0; padding: 0; display: flex; }
.bs-xaxis li { flex: 1; text-align: center; font-size: 10px; color: var(--ink-3); }
.bs-xends { justify-content: space-between; }
.bs-xends li { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bs-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.bs-legend li { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.bs-legend li::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: #C2CCC1; flex: none; }
.bs-legend li.on { color: var(--ink); font-weight: 600; }
.bs-legend li.on::before { background: var(--green); }
.bs-legend li.s0::before { background: #8FAF9B; }
.bs-legend li.ev::before { background: #D8D5C8; height: 0; border-top: 2px dashed #B9B5A5; }

/* ---- quote, facts, badges ---- */
.bs-quote {
  margin: 0; border-left: 3px solid var(--green); padding: 4px 0 4px 16px;
  display: flex; flex-direction: column; gap: 7px;
}
.bs-quote p { margin: 0; font-size: 18px; line-height: 1.6; font-weight: 600; }
.bs-quote cite { font-style: normal; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.bs-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .bs-facts { grid-template-columns: repeat(2, 1fr); } }
.bs-facts li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 15px 12px; display: flex; flex-direction: column; gap: 7px;
}
.bs-facts b { font-size: 24px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.015em; }
.bs-facts p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.bs-facts .bs-src { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; }
.bs-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.bs-badges li { border-left: 2px solid var(--green); padding-left: 13px; display: flex; flex-direction: column; gap: 4px; }
.bs-badges p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* ---- tables ---- */
.bs-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.bs-infra, .bs-appr { border-collapse: collapse; width: 100%; font-size: 14px; }
.bs-infra th, .bs-infra td, .bs-appr th, .bs-appr td {
  text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.bs-infra thead th, .bs-appr thead th {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; background: var(--ground);
}
.bs-infra tbody tr:last-child td, .bs-appr tbody tr:last-child td { border-bottom: 0; }
.bs-infra tbody th { font-weight: 700; min-width: 150px; }
.bs-infra tbody th .bs-src { font-weight: 400; margin-top: 4px; }
.bs-infra td { color: var(--ink-2); }
.bs-status {
  display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 100px;
  padding: 4px 10px; white-space: nowrap;
}
.bs-status.done { background: var(--green-soft); color: var(--green); }
.bs-status.wip { background: #FDF4E7; color: #7A5310; }
.bs-appr tbody th { font-weight: 600; color: var(--ink-2); min-width: 190px; }
.bs-num { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.bs-th-range, .bs-range { min-width: 120px; }
.bs-range { padding-top: 16px; }
.bs-rangebar { display: block; height: 8px; border-radius: 4px; background: var(--green); opacity: .75; min-width: 3px; }
@media (max-width: 560px) { .bs-th-range, .bs-range { display: none; } }

/* ---- timeline ---- */
.bs-time { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; display: flex; flex-direction: column; gap: 13px; }
.bs-time::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.bs-time li { position: relative; display: flex; flex-direction: column; gap: 2px; }
.bs-time li::before {
  content: ""; position: absolute; left: -18px; top: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--green); border: 2px solid var(--ground);
}
.bs-time b { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--green); font-weight: 700; }
.bs-time span { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* ---- verify ---- */
.bs-verify { background: var(--green-soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.bs-vh { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.bs-vlinks { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-vlinks a {
  flex: 1 1 220px; min-height: 46px; text-decoration: none;
  background: var(--panel); border: 1px solid #D6E2D9; border-radius: 8px;
  padding: 8px 13px; display: flex; flex-direction: column; justify-content: center; gap: 1px;
}
.bs-vlinks a b { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.bs-vlinks a span { font-size: 11.5px; color: var(--ink-3); word-break: break-word; }
.bs-vlinks a:hover { border-color: var(--green); }
.bs-vlinks a:focus-visible { outline: 3px solid #7FB59B; outline-offset: 2px; }

/* ---- listing hand-off ---- */
.bs-strip { display: flex; flex-direction: column; gap: 9px; }
.bs-strip-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.bs-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .bs-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .bs-cards { grid-template-columns: repeat(3, 1fr); } }
.bs-card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; min-height: 44px;
}
.bs-card img, .bs-card-noimg { width: 100%; height: 118px; object-fit: cover; display: block; background: #DDE3DA; }
.bs-card-body { padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 3px; }
.bs-card-body b { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.bs-card-body small { font-size: 11.5px; color: var(--green); font-weight: 600; }
.bs-card:hover { border-color: var(--green); }
.bs-card:focus-visible { outline: 3px solid #7FB59B; outline-offset: 2px; }

/* ---- FAQ + sources ---- */
.bs-faq { display: flex; flex-direction: column; gap: 8px; }
.bs-faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.bs-faq summary {
  cursor: pointer; font-size: 15px; font-weight: 700; padding: 13px 0;
  min-height: 44px; display: flex; align-items: center;
}
.bs-faq summary::marker { color: var(--green); }
.bs-faq p { margin: 0; padding: 0 0 13px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.bs-sources { border-top: 1px solid var(--line); margin-top: 12px; }
.bs-srclist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.bs-srclist li { font-size: 13px; color: var(--ink-3); }
.bs-srclist b { display: block; color: var(--ink-2); font-weight: 600; font-size: 13.5px; }

/* Direct end-of-line labels — a legend of five identical grey swatches is
   identity-by-colour-alone, and two of these lines ARE the same grey. Labels
   are HTML (an <svg><text> would stretch with preserveAspectRatio="none")
   and their y positions are de-cluttered in buriram_story.py. */
.bs-plot-lab { padding-right: 128px; }
.bs-ends { position: absolute; inset: 0 0 0 auto; width: 124px; pointer-events: none; }
.bs-ends span {
  position: absolute; right: 0; transform: translateY(-50%);
  font-size: 11px; line-height: 1.25; color: var(--ink-3); text-align: left;
  padding-left: 7px; border-left: 2px solid #C2CCC1; white-space: nowrap;
  max-width: 124px; overflow: hidden; text-overflow: ellipsis;
}
.bs-ends span b { margin-left: 4px; font-variant-numeric: tabular-nums; font-weight: 700; }
.bs-ends span.on { color: var(--ink); border-left-color: var(--green); font-weight: 600; }
.bs-ends span.s0 { border-left-color: #8FAF9B; color: var(--ink-2); }
.bs-ends span.s1 { border-left-color: var(--green); color: var(--ink); }
.bs-ln.prev { stroke-dasharray: 5 4; }
.bs-legend li.dash::before { background: none; border-top: 3px dashed #C2CCC1; height: 0; }
@media (max-width: 560px) {
  .bs-plot-lab { padding-right: 96px; }
  .bs-ends { width: 92px; }
  .bs-ends span { max-width: 92px; font-size: 10.5px; }
}

/* A labelled plot needs no axis-max: the top line's own label already states
   it, and the two collided on top of each other. */
.bs-plot-lab .bs-ymax { display: none; }
.bs-plot-lab { padding-right: 152px; }
.bs-ends { width: 148px; }
.bs-ends span { font-size: 10.5px; max-width: 148px; }
.bs-end-v { width: auto; }
.bs-legend li.s1::before { background: var(--green); }
@media (max-width: 560px) {
  .bs-plot-lab { padding-right: 136px; }
  .bs-ends { width: 132px; }
  .bs-ends span { max-width: 132px; font-size: 10px; }
}
.pub-why-more {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; font-weight: 700; color: var(--green); text-decoration: none;
}
.pub-why-more:hover { text-decoration: underline; }

/* ---- C1 (Boss 09-03): phone-collapsed evidence ----
   ≤860px the section opens as a 3-stat teaser + a show-all button; the full
   chart/cards/verify block renders only after the tap. Desktop unchanged.
   .pub-why-body carries the section's own column gap at every width. */
.pub-why-body { display: flex; flex-direction: column; gap: 18px; }
.pub-why-teaser, .pub-why-toggle { display: none; }
@media (max-width: 860px) {
  .pub-why-ev:not(.is-open) .pub-why-body { display: none; }
  .pub-why-ev:not(.is-open) .pub-why-teaser { display: flex; gap: 8px; flex-wrap: wrap; }
  .pub-why-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 48px; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
    background: var(--green-soft); color: var(--green);
    border: 1px solid #D6E2D9; border-radius: 10px; padding: 0 16px;
  }
  .pub-why-toggle:focus-visible { outline: 3px solid #7FB59B; outline-offset: 2px; }
}
.pub-why-teaser span {
  flex: 1 1 90px; background: var(--ground); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px;
  display: flex; flex-direction: column; gap: 1px;
}
.pub-why-teaser b {
  font-size: 20px; font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums; letter-spacing: -.015em;
}
.pub-why-teaser small { font-size: 11px; color: var(--ink-3); }

/* visually-hidden utility — the map page's h1 (W1.2) */
.pub-vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ================================================================
   PROTOTYPE (2026-08-27) — lease-first layer + แผนผังเพื่อนบ้าน demo.
   Everything below ships or dies with public/prototype_lease.py.
   ================================================================ */

/* card price sub-line + posture badge. The price bar is a filled green flex
   pill (C2 era), so the sub-line must be a full-width second row in a light
   tint — display:block inside a flex row put it BESIDE the price, and
   --ink-3 on the green fill measured ~2.4:1 (review 08-29). */
.pub-card-price { flex-direction: column; align-items: center; gap: 1px; }
.pub-card-price small { display: block; width: 100%; text-align: center; color: #D8EBDD; font-weight: 500; font-size: 13.5px; }  /* Boss 09-12: the 30-ปี line sat left while the price line was centred */
.pub-badge.lease { background: var(--green); color: #fff; }
.pub-badge.b2 { top: 44px; }
.lz-kick { color: #A7EFC3; font-weight: 700; letter-spacing: .08em; font-size: 13px; }
.pub-pricecard .pub-price2 { color: var(--ink-2); font-size: 15px; font-weight: 700; margin-top: 2px; }

/* C2 hero: third door + lease line (re-attached after hero-c2 merge; the C2
   panel is LIGHT — ink text, green accents — unlike the old dark L4 overlay) */
.pub-c2door.new { border: 1.5px solid var(--green); background: var(--green-soft); }
.pub-c2door.new:hover { background: var(--panel); }
.pub-c2leaseline {
  color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
  /* W1.4: measured 182×20 — pad the target without pushing the line apart */
  display: inline-block; padding: 11px 2px; margin: -9px -2px;
}

/* lease page hero */
.lz-hero { position: relative; color: #fff; padding: 44px 0 30px; background:
  radial-gradient(110% 80% at 85% 0%, rgba(167,239,195,.16), transparent 55%),
  linear-gradient(160deg, #29513A, #152A1C); }
.lz-hero-in { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.lz-hero h1 { font-size: clamp(23px, 4.6vw, 36px); font-weight: 800; line-height: 1.2; text-wrap: balance; max-width: 20ch; }
.lz-sub { margin: 10px 0 0; color: #DCE8DF; font-size: 16px; max-width: 56ch; }
/* F1 (Boss 09-03): these rendered as pill BUTTONS but did nothing when tapped —
   a dead tap on the page's first screen. Plain text list, same message. */
.lz-uses { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 16px; max-width: 60ch; }
.lz-uses span { color: #CFE3D6; font-size: 14.5px; font-weight: 600; }
.lz-uses span + span::before { content: "·"; margin: 0 10px; color: rgba(255,255,255,.45); }
/* /lease/ and /rent/ as real category pages (rent-first, 24 ก.ย. 2569):
   a short intro a searcher can read, then the cards. Measure-limited. */
/* /lease/ clean-up (Boss 25 ก.ย.): the steps are a strip of five numbered
   cards under the plots; the two explanatory paragraphs sit under ทำไมเช่ากับเรา */
.lz-how { padding-top: 6px; }
.lz-steps { list-style: none; counter-reset: lz; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 10px; }
.lz-steps li { counter-increment: lz; position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px 13px 46px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.lz-steps li::before { content: counter(lz); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; }
.lz-steps b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 1px; }
.lz-about { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 24px;
  color: var(--ink-2); font-size: 14.5px; line-height: 1.6; max-width: 900px; }
.lz-about p { margin: 0; }
.pub-listkick { color: var(--green); font-weight: 700; font-size: 13.5px; letter-spacing: .02em; margin-bottom: 4px; }
.pub-listintro { max-width: 68ch; margin: -4px 0 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.pub-listintro p { margin: 0 0 10px; }
/* /sale/ is the footer door and says so */
.pub-listnote { background: var(--green-soft); border: 1px solid #D8E6DA; border-radius: 12px;
  padding: 14px 16px; font-size: 14.5px; color: var(--ink); margin: -4px 0 18px; }
.pub-listnote b { color: var(--green); }
.pub-listnote a { font-weight: 700; display: inline-block; padding: 10px 2px; margin: -8px -2px; }
/* the signed broker catalogue's strip (E1, 24 ก.ย. 2569): who the page is
   for and the -B code rule, on every broker page */
.pub-brokerstrip { background: #1F3A2A; color: #DCE8DF; font-size: 14px; line-height: 1.5;
  padding: 8px 16px; text-align: center; }
.pub-brokerstrip b { color: #fff; }
.pub-brokerstrip a { color: #fff; font-weight: 700; display: inline-block; padding: 10px 4px; margin: -8px 0; }
/* «สำหรับบริษัทที่มองหาทำเล» — the corporate block: the lease hero's dark
   panel, the trust tiles inverted, one LINE button */
.pub-corp-in { position: relative; color: #fff; border-radius: 16px; padding: 26px 22px; background:
  radial-gradient(110% 80% at 85% 0%, rgba(167,239,195,.16), transparent 55%),
  linear-gradient(160deg, #29513A, #152A1C); }
.pub-corp-head h2 { font-size: clamp(20px, 3.4vw, 24px); font-weight: 800; line-height: 1.2; }
.pub-corp-head p { margin: 6px 0 0; color: #CFE3D6; font-size: 14.5px; font-weight: 600; }
.pub-corp-grid { margin-top: 18px; }
.pub-corp-grid > div { background: rgba(255,255,255,.08); color: #E8EFE9; }
.pub-corp-grid b { color: #fff; }
.pub-corp-cta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.pub-corp-cta small { color: #CFE3D6; font-size: 13.5px; line-height: 1.45; max-width: 46ch; }
.lz-strip { max-width: 1080px; margin: 4px auto 0; padding: 0 16px; }
.lz-allnote { background: var(--green-soft); border: 1px solid #D8E6DA; border-radius: 12px;
  padding: 16px 18px; font-size: 14.5px; color: var(--ink); }
.lz-allnote b { color: var(--green); }
.lz-allnote a {
  font-weight: 700;
  display: inline-block; padding: 12px 2px; margin: -10px -2px;   /* W1.4: was 109×19 */
}
.lz-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--green-soft); color: var(--green);
  border-radius: 100px; padding: 3px 10px; font-size: 12px; font-weight: 700; width: fit-content; }
.lz-h1 { font-size: clamp(19px, 4vw, 26px); font-weight: 800; line-height: 1.35; }
.lz-h2 { font-size: 18px; font-weight: 800; margin: 24px 0 10px; }

/* lease card photo placeholders (no photos exist yet) */
.lease-ph { position: relative; }
.lease-ph::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 18px, transparent 18px 36px); }
.ph1 { background: linear-gradient(135deg, #C7D8C2, #8FB18E 60%, #6E9A77); }
.ph2 { background: linear-gradient(135deg, #D4DCC4, #A3B589 60%, #7C9868); }
.ph3 { background: linear-gradient(135deg, #CBD6CE, #93AC9C 60%, #63836F); }
.ph4 { background: linear-gradient(135deg, #D8D9C0, #B0B287 60%, #8A8F5F); }

/* prototype annotation (internal reviewers only) */
.proto-note { border: 1.5px dashed #1D4ED8; background: #EEF3FE; color: #1D4ED8; border-radius: 9px;
  padding: 7px 12px; font-size: 12.5px; line-height: 1.5; font-weight: 600; margin-bottom: 16px; }

/* neighbor demo — version switcher */
.nbv-tabs { display: flex; gap: 6px; margin: 0 0 16px; flex-wrap: wrap; }
.nbv-tabs button { font: inherit; font-size: 13.5px; font-weight: 700; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink-2); border-radius: 100px; padding: 8px 16px; min-height: 40px; cursor: pointer; }
.nbv-tabs button.on { background: var(--green); border-color: var(--green); color: #fff; }
.nbv { display: none; }
.nbv.on { display: block; }

/* version A — schematic strip */
.nb-board { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.nb-scroll { overflow-x: auto; padding-bottom: 6px; }
.nb-strip { display: grid; gap: 6px; min-width: 800px; }
.nb-slot { border: 1.5px solid #C9D6CB; border-radius: 9px; min-height: 92px; padding: 8px 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-align: center; background: #FDFDFB; position: relative; }
.nb-slot .n { position: absolute; top: 4px; left: 6px; font-size: 10.5px; color: var(--ink-3); font-weight: 700; }
.nb-slot .ic { font-size: 21px; line-height: 1; }
.nb-slot .lb { font-size: 11px; font-weight: 700; line-height: 1.3; }
.nb-slot.vac { border: 1.5px dashed var(--green); background: var(--green-soft); }
.nb-slot.vac .lb { color: var(--green); }
.nb-slot.own { opacity: .55; }
.nb-slot.you { outline: 3px solid var(--green); outline-offset: 1px; background: #fff; }
.nb-slot .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--green);
  color: #fff; border-radius: 100px; font-size: 10.5px; font-weight: 800; padding: 2px 10px; white-space: nowrap; z-index: 2; }
.nb-road { min-width: 800px; background: #EAE8DF; border-radius: 6px; padding: 6px; text-align: center;
  font-size: 11.5px; color: var(--ink-3); letter-spacing: .14em; font-weight: 700; }
.nb-hotel { margin-top: 8px; min-width: 800px; background: linear-gradient(135deg, #DCE7F2, #C3D3E4);
  border: 1.5px solid #AFC4D8; border-radius: 9px; padding: 14px; text-align: center; font-weight: 700;
  font-size: 13.5px; color: #33506B; }
.nb-hotel small { display: block; font-weight: 500; font-size: 11.5px; color: #5A7490; }
.nb-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.nb-legend i { display: inline-block; width: 13px; height: 13px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; }
.nb-legend .lg-occ { background: #FDFDFB; border: 1.5px solid #C9D6CB; }
.nb-legend .lg-vac { background: var(--green-soft); border: 1.5px dashed var(--green); }
.nb-legend .lg-you { background: #fff; border: 3px solid var(--green); }

/* version B — real polygons on satellite */
.sat-mapwrap { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
#nb-map { height: 420px; background: #C8D2C4; }
@media (max-width: 640px) { #nb-map { height: 330px; } }
.sat-hint { position: absolute; left: 10px; bottom: 8px; z-index: 500; font-size: 11.5px; color: #fff;
  background: rgba(0,0,0,.45); border-radius: 100px; padding: 5px 13px; pointer-events: none; }
.sat-numtip { background: rgba(255,255,255,.92); border: 0; border-radius: 100px; box-shadow: 0 1px 4px rgba(0,0,0,.35);
  font-size: 10.5px; font-weight: 800; color: #333; padding: 1px 6px; }
.sat-numtip::before { display: none; }
.sat-info { margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sat-info .big { font-size: 28px; }
.sat-info b { font-size: 15.5px; }
.sat-info .t { color: var(--ink-2); font-size: 13px; }
.sat-info .cta { margin-left: auto; }
@media (max-width: 640px) { .sat-info .cta { margin-left: 0; width: 100%; } }

/* version C — mini strip + photo cards */
.nc-mini { margin-bottom: 12px; overflow-x: auto; }
.nc-mini .nb-strip { min-width: 620px; }
.nc-mini .nb-slot { min-height: 50px; padding: 4px; cursor: pointer; }
.nc-mini .nb-slot .ic { font-size: 14px; }
.nc-mini .nb-slot.sel { outline: 2.5px solid var(--green); outline-offset: 1px; }
.nc-cards { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.nc-card { flex: 0 0 212px; scroll-snap-align: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.nc-card.sel { outline: 2.5px solid var(--green); outline-offset: 1px; }
.nc-card.vac { border: 1.5px dashed var(--green); }
.nc-img { height: 104px; display: flex; align-items: center; justify-content: center; font-size: 34px; position: relative; }
.nc-img.nc-vac { background: var(--green-soft); }
.nc-img .nn { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.92); color: var(--ink);
  border-radius: 100px; font-size: 10.5px; font-weight: 800; padding: 2px 9px; }
.nc-bd { padding: 10px 12px 12px; }
.nc-bd b { font-size: 14px; display: block; line-height: 1.35; }
.nc-bd p { font-size: 12px; color: var(--ink-2); line-height: 1.5; margin: 4px 0 0; }

/* Route story — "ใครขับไป X ต้องผ่านแปลงนี้" (Boss 08-23). Lazy map box with a
   tap-to-load button; pills echo the hero map's label style. */
.pub-routestory { margin: 26px 0 8px; }
.pub-routeline { color: #454B41; max-width: 66ch; margin: 0 0 12px; }
.pub-routemap { position: relative; height: 300px; border-radius: 12px; overflow: hidden;
  background: var(--green-soft); display: grid; place-items: center; border: 1px solid var(--line); }
.pub-routemap.is-live { display: block; }
.pub-routeload { background: var(--panel); border: 1px solid var(--line); border-radius: 100px;
  padding: 12px 22px; font-size: 15px; font-weight: 700; color: var(--green); cursor: pointer;
  min-height: 44px; box-shadow: 0 4px 14px -6px rgba(0,0,0,.25); }
.rt-pill { background: rgba(255,255,255,.94); border-radius: 100px; padding: 4px 11px;
  font-size: 12px; font-weight: 700; white-space: nowrap; width: max-content;
  box-shadow: 0 2px 8px -3px rgba(0,0,0,.45); color: #232821; }
.rt-pill.rt-plot { background: #2E7D4F; color: #fff; }
.rt-pill.rt-fact { background: #FF8A1E; color: #fff; }

/* ---- Phase 4 of the English plan (20 ก.ย. 2569): LINE id + QR for a reader
   without LINE, and the one-sentence ownership note under the price card. */
.pub-lineid {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 14px; color: var(--ink-2); display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; text-align: left;
}
.pub-lineid b { color: var(--ink); font-size: 16px; user-select: all; }
.pub-lineid small { grid-column: 1; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.pub-lineqr { grid-row: 1 / span 2; width: 96px; height: 96px; background: #fff; border-radius: 8px; padding: 4px; display: block; }
.pub-lineqr svg { width: 100%; height: 100%; display: block; }
.pub-ownnote { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; text-align: left; max-width: 60ch; }
.pub-ownnote a { color: var(--green); font-weight: 600; white-space: nowrap; }

/* ==========================================================================
   Design B "ที่ตั้งนำ" — the map leads the listing page (Boss 27 ก.ย. 2569)
   ==========================================================================
   The map was a sidebar-sized picture under a photo hero; on a page whose
   whole argument is WHERE the land is, that was the wrong weight. Three things
   changed: the hero carries a level switcher (แปลง · ย่าน · เมือง) over the
   composite it already loaded, a callout points at the outline so nobody has
   to hunt for the green shape, and the numbers a buyer asks for first moved
   into one ribbon directly under the picture. */

/* --- level switcher: the ONLY wide thing allowed on the picture, and it sits
   opposite the zoom control. The first build put a labelled three-button
   control here and it covered the map (Boss, 27 ก.ย.) — this one is glyph-
   width, with the span underneath as its own explanation. */
.pub-lvl {
  /* ABOVE Leaflet, not above the image. z-index 6 put the switcher under
     .leaflet-pane (400) and .leaflet-control (1000) the instant ย่าน opened the
     map: the pills were painted over AND their clicks were swallowed, so there
     was no way back to แปลง (Boss, 27 ก.ย. — "I can no longer go back").
     1200 clears Leaflet's controls and the title card's 1100. */
  position: absolute; left: 12px; top: 12px; z-index: 1200;
  display: flex; gap: 3px; padding: 3px;
  background: rgba(255, 255, 255, .95); border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}
.pub-lvl button {
  appearance: none; border: 1px solid transparent; background: transparent;
  font: 600 14px/1.15 inherit; color: var(--ink); cursor: pointer;
  padding: 7px 11px; border-radius: 7px; min-height: 44px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.pub-lvl button small { font-weight: 400; font-size: 11px; color: var(--ink-3); }
.pub-lvl button.on { background: var(--green); color: #fff; }
.pub-lvl button.on small { color: rgba(255, 255, 255, .8); }
.pub-lvl-reset { color: var(--green) !important; font-size: 13px !important; }

/* --- "where is the land": a dark callout with a tail, above every landmark
   tag. It is the answer to a 9-ไร่ outline sitting at 3% of the frame under
   five neighbour chips. */
.pub-here {
  /* on the static composite only — under the title card (1100), over the pills */
  position: absolute; z-index: 1050; transform: translate(-50%, calc(-100% - 8px));
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
}
.pub-here span {
  background: var(--brand-deep); color: #fff; white-space: nowrap;
  font: 700 15px/1.2 var(--font-display); padding: 7px 13px; border-radius: 9px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .45);
}
.pub-here span b { color: var(--brand-gold); font-weight: 600; font-size: 11.5px; margin-left: 9px; letter-spacing: .02em; }
.pub-here i {
  width: 0; height: 0; margin-top: -1px;
  border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 11px solid var(--brand-deep);
}
/* the ring the map draws when the outline is a speck at this level */
.pub-halo { border: 3px solid rgba(74, 222, 128, .95); border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(20, 56, 42, .25); }

/* --- stat ribbon */
.pub-ribbon {
  max-width: 1080px; margin: 0 auto; padding: 0 18px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-bottom: 1px solid var(--line);
}
.pub-ribbon > div { padding: 14px 16px 14px 0; border-right: 1px solid var(--line); }
.pub-ribbon > div:last-child { border-right: 0; }
.pub-ribbon small { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.pub-ribbon b { font: 700 22px/1.15 var(--font-display); color: var(--brand-deep); display: block; }
.pub-ribbon b em { font: 400 14px/1.3 inherit; font-style: normal; color: var(--ink-2); margin-left: 5px; }

/* --- รูปแบบที่รับพิจารณา: a menu of what exists, never an open invitation */
.pub-offers {
  max-width: 1080px; margin: 0 auto; padding: 12px 18px 0;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.pub-offers-l { color: var(--ink-2); font-size: 14px; }
.pub-offer {
  border: 1.5px solid var(--green); color: var(--brand-deep); background: var(--panel);
  padding: 7px 13px; border-radius: 9px; font-weight: 600; font-size: 14.5px;
  display: inline-flex; align-items: baseline; gap: 7px; min-height: 40px;
}
.pub-offer small { font-weight: 400; color: var(--ink-2); }
.pub-offer.lease { border-color: var(--brand-gold-ink); }

/* --- the table number IS the pin number */
.pub-locn {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--green-soft); color: var(--green);
  font-size: 12px; font-weight: 700; margin-right: 7px; vertical-align: 2px;
}
.is-local .pub-locn { background: #FBF3DF; color: var(--brand-gold-ink); }
.pub-deedparts { display: flex; gap: 14px; flex-wrap: wrap; margin: -6px 0 10px; font-size: 14px; color: var(--ink-2); }
.pub-deedparts b { color: var(--brand-deep); font-size: 16px; }

@media (max-width: 720px) {
  /* Older eyes, outdoors, one thumb: the ribbon is the one place on the page
     where the numbers must not be small, and the level pills must be tappable
     without hitting the neighbouring one. */
  .pub-ribbon { grid-template-columns: 1fr 1fr; padding: 0 14px; }
  .pub-ribbon > div { padding: 12px 10px 12px 0; }
  .pub-ribbon > div:nth-child(2n) { border-right: 0; }
  .pub-ribbon b { font-size: 21px; }
  .pub-ribbon small { font-size: 13px; }
  .pub-offers { padding: 12px 14px 0; }
  .pub-offer { font-size: 15px; min-height: 44px; }
  .pub-lvl { left: 10px; top: 10px; }
  .pub-lvl button { padding: 7px 10px; font-size: 14px; }
  .pub-here span { font-size: 14px; padding: 6px 11px; }
}
.pub-here.is-off { display: none; }

/* --- 27 ก.ย. restructure: header band → ribbon → map card → rail ------------
   The hero was a 52vh full-bleed composite with the title floated over its
   bottom third. That shape belongs to a photo, not to a map: it made the map a
   backdrop, cropped the outline to whatever the viewport's aspect happened to
   be, and pushed the ribbon below the fold. The page now reads in the order a
   buyer asks: what is it → the numbers → where it is. */
.pub-lhead { background: var(--brand-paper); border-bottom: 1px solid #D9D3C2; }
.pub-lhead-in { max-width: 1080px; margin: 0 auto; padding: 18px 18px 14px; }
.pub-crumb {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px;
}
.pub-crumb a { color: var(--ink-2); text-decoration: none; }
.pub-crumb a:hover { text-decoration: underline; }
.pub-crumb b { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.pub-lhead .pub-titlerow {
  display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
}
.pub-lhead .pub-titlerow h1 {
  font-family: var(--font-display); font-weight: 700; color: var(--brand-deep);
  font-size: clamp(22px, 3.4vw, 34px); line-height: 1.25; max-width: 24ch; text-wrap: balance;
}
.pub-lmeta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.pub-lmeta .pub-chips { margin-top: 0; }
.pub-lmeta .pub-ident { margin-top: 0; }
.pub-lhead .pub-ribbon { padding-inline: 18px; border-bottom: 0; border-top: 1px solid #D9D3C2; }
.pub-lhead .pub-ribbon > div { border-right-color: #D9D3C2; }
.pub-lhead .pub-offers { padding: 0 18px 14px; }

.pub-lmapwrap { max-width: 1080px; margin: 18px auto 0; padding-inline: 18px; }
/* the map is a card in the flow, at content width, in its own 5:3 frame — not
   a viewport-height bleed whose crop changes with the window */
.pub-lmapwrap .pub-lhero {
  height: auto; min-height: 0; aspect-ratio: 5 / 3;
  border: 1px solid #C9C3B2; border-radius: 14px; overflow: hidden;
}
.pub-lmapwrap .pub-heroacts {
  position: absolute; bottom: 12px; right: 12px; z-index: 1200;
  margin-bottom: 0; left: auto; max-width: calc(100% - 24px);
}
.pub-maplegend {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  padding: 9px 2px 0; font-size: 13px; color: var(--ink-2);
}
.pub-maplegend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.pub-maplegend .lg-plot { background: #4ADE80; }
.pub-maplegend .lg-lm { background: #fff; border: 2px solid var(--green); }
.pub-maplegend .lg-local { background: var(--brand-gold); }
.pub-maplegend-note { margin-left: auto; color: var(--ink-3); }

.pub-lrail {
  max-width: 1080px; margin: 18px auto 0; padding-inline: 18px;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start;
}
.pub-lrail-h {
  font-size: 13px; font-weight: 700; color: var(--brand-deep);
  padding-bottom: 7px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.pub-lrail .pub-suit { margin: 0; }

@media (max-width: 860px) {
  .pub-lrail { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 720px) {
  .pub-lhead-in { padding: 14px 14px 12px; }
  .pub-lhead .pub-ribbon { padding-inline: 14px; }
  .pub-lhead .pub-offers { padding: 0 14px 12px; }
  .pub-lmapwrap, .pub-lrail { padding-inline: 14px; }
  /* a phone gets a taller frame: the plot has to survive a 360 px width */
  .pub-lmapwrap .pub-lhero { aspect-ratio: 4 / 3; border-radius: 12px; }
  .pub-maplegend-note { display: none; }
}

/* the reset button is hidden until the visitor has actually moved the map —
   .pub-lvl button is display:flex, which beats the [hidden] attribute */
.pub-lvl button[hidden] { display: none; }
/* Landmark pills came from the photo-hero era, where the picture was the only
   place a distance could live. The rail under the map now lists every one of
   them, numbered to match the discs, so on this card they were a second copy
   sitting on top of the level switcher. */
.pub-lmapwrap .pub-heropills { display: none; }
/* Three cells stretched across 1080px read as three lonely numbers. The ribbon
   is a row of facts, so it sizes to its content and stays left. */
.pub-lhead .pub-ribbon {
  display: flex; flex-wrap: wrap; gap: 0;
}
.pub-lhead .pub-ribbon > div {
  flex: 0 1 auto; min-width: 0; padding: 13px 26px 13px 0; margin-right: 26px;
}
@media (max-width: 720px) {
  .pub-lhead .pub-ribbon > div { padding: 11px 16px 11px 0; margin-right: 16px; }
}
/* display:flex beats the [hidden] attribute, so the static callout stayed on
   screen once the map opened — two "ที่ดินแปลงนี้" labels at once, one of them
   pointing at nothing. Same class of bug as the reset button above. */
.pub-here[hidden] { display: none; }
