/* Saint Lucia Homes - shared stylesheet
   Dark-first skin. Token architecture:
   - bare :root        = complete DARK palette (default)
   - @media light      = light overrides, guarded :root:not([data-theme="dark"])
   - [data-theme="light"] = same light overrides (explicit toggle wins)
   - [data-theme="dark"]  = re-asserts dark under a light OS preference
   Colour always encodes meaning: 4-step price-band scale, amber = thin/unverified. */
:root {
  --paper: #0B1417;        /* ground, level 0 */
  --paper-2: #121F24;      /* surface, level 1 (cards) */
  --paper-3: #1A2C32;      /* surface, level 2 (heads, wells) */
  --field: #0E1A1E;        /* form fields sit below cards */
  --ink: #E9F0F0;
  --ink-2: #B8C7C9;
  --ink-3: #90A6AA;        /* 5.6:1 on paper-3, 6.4:1 on paper-2 */
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --teal: #4FC8CE;
  --teal-ink: #04282B;     /* text on teal fills: 4.8:1 vs gradient foot */
  --teal-soft: rgba(79, 200, 206, .13);
  --amber: #E4AC6B;        /* 8:1 on paper-2 */
  --amber-soft: rgba(228, 172, 107, .12);
  --copper: #C66F4D;       /* warm editorial accent and primary action */
  --focus: #67E5EB;
  /* price-band scale: 4 steps, low -> high; one scale for pins, tile edges, dots */
  --band-1: #2E6B71;
  --band-2: #2FA2A9;
  --band-3: #4FC8CE;
  --band-4: #EAF2F2;
  /* Prime tile: gold-on-charcoal, deliberate in both themes */
  --tile-ink: #211A0C;
  --tile-ink-fg: #F3EADB;
  --tile-ink-muted: #C0AB88;
  --tile-ink-line: rgba(228, 172, 107, .30);
  --amber-bright: #ECB877;
  /* elevation: two-shadow stacks, low opacity */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .45), 0 6px 16px rgba(0, 0, 0, .30);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .50), 0 16px 40px rgba(0, 0, 0, .42);
  --gloss: inset 0 1px 0 rgba(255, 255, 255, .16);
  /* CTA: teal -> deep-teal */
  --grad-cta: linear-gradient(180deg, #46D4DA, #189EA5);
  --grad-cta-hover: linear-gradient(180deg, #58DEE4, #1FACB3);
  /* display sizes for tile numerals */
  --num-xl: clamp(2rem, 3.6vw, 2.75rem);
  --num-lg: clamp(1.375rem, 2.4vw, 1.625rem);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 72rem;
  --radius: 14px;
  --radius-sm: 10px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --paper: #F4F6F6;
    --paper-2: #FFFFFF;
    --paper-3: #E8ECEC;
    --field: #FFFFFF;
    --ink: #14262B;
    --ink-2: #3E5157;
    --ink-3: #5B6D72;   /* 5.0:1 on paper (AA small text) */
    --line: #DCE3E4;
    --line-2: #C7D1D2;
    --teal: #0C6B70;
    --teal-ink: #FFFFFF;
    --teal-soft: #E1EFEF;
    --amber: #8F5612;   /* 5.5:1 on paper */
    --amber-soft: #F7EBDB;
    --focus: #0C6B70;
    --band-1: #83B9BD;
    --band-2: #3F9296;
    --band-3: #0C6B70;
    --band-4: #14262B;
    --tile-ink: #14262B;
    --tile-ink-fg: #E6ECEC;
    --tile-ink-muted: #93A6AA;
    --tile-ink-line: #2C4147;
    --amber-bright: #D9A05B;
    --shadow-1: 0 1px 2px rgba(16, 35, 40, .06), 0 4px 12px rgba(16, 35, 40, .07);
    --shadow-2: 0 2px 4px rgba(16, 35, 40, .07), 0 12px 28px rgba(16, 35, 40, .12);
    --gloss: inset 0 1px 0 rgba(255, 255, 255, .25);
    --grad-cta: linear-gradient(180deg, #107A80, #0A585D);
    --grad-cta-hover: linear-gradient(180deg, #128A91, #0C6368);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --paper: #F4F6F6;
  --paper-2: #FFFFFF;
  --paper-3: #E8ECEC;
  --field: #FFFFFF;
  --ink: #14262B;
  --ink-2: #3E5157;
  --ink-3: #5B6D72;
  --line: #DCE3E4;
  --line-2: #C7D1D2;
  --teal: #0C6B70;
  --teal-ink: #FFFFFF;
  --teal-soft: #E1EFEF;
  --amber: #8F5612;
  --amber-soft: #F7EBDB;
  --focus: #0C6B70;
  --band-1: #83B9BD;
  --band-2: #3F9296;
  --band-3: #0C6B70;
  --band-4: #14262B;
  --tile-ink: #14262B;
  --tile-ink-fg: #E6ECEC;
  --tile-ink-muted: #93A6AA;
  --tile-ink-line: #2C4147;
  --amber-bright: #D9A05B;
  --shadow-1: 0 1px 2px rgba(16, 35, 40, .06), 0 4px 12px rgba(16, 35, 40, .07);
  --shadow-2: 0 2px 4px rgba(16, 35, 40, .07), 0 12px 28px rgba(16, 35, 40, .12);
  --gloss: inset 0 1px 0 rgba(255, 255, 255, .25);
  --grad-cta: linear-gradient(180deg, #107A80, #0A585D);
  --grad-cta-hover: linear-gradient(180deg, #128A91, #0C6368);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  font-feature-settings: "kern";
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
code, .num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
small, .small { font-size: .875rem; }
.muted { color: var(--ink-3); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 0; background: var(--grad-cta); color: var(--teal-ink); padding: .6rem 1.1rem; z-index: 30; border-radius: 999px; box-shadow: var(--shadow-2); }
.skip:focus { left: .5rem; top: .5rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* header - blurred sticky glass with solid fallback */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; min-height: 3.75rem; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 0; }
.brand img { width: 1.75rem; height: 1.75rem; border-radius: 8px; display: block; }
.brand b { font-family: var(--serif); font-size: 1.1875rem; font-weight: 500; line-height: 1.1; display: block; white-space: nowrap; }
.brand .tag { font-family: var(--mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); display: block; line-height: 1.2; }
.site-header nav { min-width: 0; flex: 1 1 14rem; display: flex; justify-content: flex-end; }
.nav { display: flex; gap: .25rem; list-style: none; margin: 0; padding: .4rem 0; font-size: .9375rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 100%; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; padding: .45rem .8rem; border-radius: 999px; white-space: nowrap; display: block; border-bottom: 0; }
.nav a:hover { color: var(--ink); background: var(--paper-3); }
.nav a[aria-current="page"] { color: var(--teal); background: var(--teal-soft); font-weight: 500; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 30%, transparent); }
@media (min-width: 64rem) { .site-header { position: sticky; top: 0; z-index: 20; } }

/* hero - subtle radial ground glow, CSS only */
.hero { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--line); background: radial-gradient(110% 90% at 50% -10%, color-mix(in srgb, var(--teal) 10%, transparent), transparent 62%); }
@media (min-width: 48rem) { .hero { padding: 4rem 0 3rem; } }
.hero h1 { max-width: 20ch; margin-bottom: 1rem; }
.hero .lede { font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); max-width: 60ch; }
.hero .meta { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 1.5rem; font-size: .875rem; color: var(--ink-3); }
.hero .meta strong { color: var(--ink); font-family: var(--mono); font-weight: 500; }

main { padding: 2rem 0 3rem; }
section + section { margin-top: 3rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow-1); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
thead th { text-align: left; font-weight: 500; font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); background: var(--paper-3); padding: .7rem .85rem; white-space: nowrap; border-bottom: 1px solid var(--line); }
tbody td, tbody th { padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { text-align: left; font-weight: 500; min-width: 12rem; }
.index-table tbody th, .breakdown tbody th { min-width: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
thead th.num { font-family: var(--sans); }
td .sub, th .sub { display: block; font-size: .75rem; color: var(--ink-3); font-family: var(--sans); }
.thin { color: var(--amber); }
.na { color: var(--ink-3); }
tbody tr:hover { background: color-mix(in srgb, var(--teal-soft) 55%, transparent); }
th.sortable button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
th.sortable button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
th.sortable button::after { content: ""; display: inline-block; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; opacity: .35; transform: translateY(2px); }
th[aria-sort="ascending"] button::after { border-top-color: transparent; border-bottom-color: currentColor; opacity: 1; transform: translateY(-2px); }
th[aria-sort="descending"] button::after { opacity: 1; }
.index-table tbody th { white-space: nowrap; }
.index-table .group { background: var(--paper-3); font-family: var(--sans); font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }

/* reserve height for JS-rendered tables so the page does not jump */
#index-table, #pipeline-table, #prime-table { min-height: 18rem; }
#coef-table, #prime-index, #index-extra { min-height: 8rem; }

/* callouts */
.note, .caveat { padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .9375rem; border: 1px solid var(--line); background: var(--paper-2); box-shadow: var(--shadow-1); }
.caveat { border-color: color-mix(in srgb, var(--amber) 45%, transparent); border-left: 4px solid var(--amber); background: color-mix(in srgb, var(--amber-soft) 80%, var(--paper-2)); color: var(--ink); }
.caveat strong { color: var(--amber); }
.note p:last-child, .caveat p:last-child { margin-bottom: 0; }
.badge { display: inline-block; font-family: var(--mono); font-size: .75rem; padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--paper-3); white-space: nowrap; }
.badge.sample { border-color: color-mix(in srgb, var(--amber) 50%, transparent); color: var(--amber); background: var(--amber-soft); }
.badge.status-under-construction { border-color: color-mix(in srgb, var(--teal) 45%, transparent); color: var(--teal); background: var(--teal-soft); }
.badge.status-completed { border-color: var(--line-2); }
.badge.status-stalled { border-color: color-mix(in srgb, var(--amber) 50%, transparent); color: var(--amber); background: var(--amber-soft); }

/* forms / filters - soft fields, big touch targets */
.filters { display: grid; gap: .75rem 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin-bottom: 1rem; }
label { display: block; font-size: .8125rem; color: var(--ink-2); margin-bottom: .3rem; }
input[type="text"], input[type="search"], input[type="number"], select {
  width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .6rem .75rem; min-height: 2.75rem;
  transition: border-color .12s ease, box-shadow .12s ease;
}
input[type="number"] { font-family: var(--mono); font-variant-numeric: tabular-nums; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--teal); }
.field { margin-bottom: 1rem; }
.field .help { font-size: .8125rem; color: var(--ink-3); margin: .25rem 0 0; }
.check { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; color: var(--ink); }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--teal); margin: 0; }
.radio-group { display: grid; gap: .6rem; }
.radio { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper-2); cursor: pointer; font-size: .9375rem; color: var(--ink); transition: border-color .12s ease, background .12s ease; }
.radio:has(input:checked) { border-color: color-mix(in srgb, var(--teal) 55%, transparent); background: var(--teal-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 35%, transparent); }
.radio input { accent-color: var(--teal); margin-top: .2rem; }
.radio .desc { display: block; font-size: .8125rem; color: var(--ink-3); }
.btn { font: inherit; font-weight: 600; cursor: pointer; background: var(--grad-cta); color: var(--teal-ink); border: 0; border-radius: 999px; padding: .6rem 1.4rem; min-height: 2.75rem; box-shadow: var(--shadow-1), var(--gloss); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { background: var(--grad-cta-hover); transform: translateY(-1px); box-shadow: var(--shadow-2), var(--gloss); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: transparent; color: var(--teal); border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent); box-shadow: none; }
.btn.secondary:hover { background: var(--teal-soft); transform: none; box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* calculator layout */
.calc { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .calc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.results { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 1rem; box-shadow: var(--shadow-2); }
.kpis { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin: 0 0 1rem; }
.kpi { border-top: 3px solid var(--teal); padding-top: .6rem; }
.kpi .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.kpi .value { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.375rem; font-weight: 500; line-height: 1.2; }
.kpi .value.small { font-size: 1rem; }
.kpi .sub { font-size: .8125rem; color: var(--ink-3); font-family: var(--mono); }
.breakdown td:first-child { color: var(--ink-2); }

/* rating ladder */
.ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; counter-reset: lvl; }
.ladder > li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.25rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.ladder .lvl { font-family: var(--mono); font-size: 1.75rem; color: var(--teal); line-height: 1; }
.ladder .lvl span { display: block; font-size: .625rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-top: .25rem; font-family: var(--sans); }
.ladder h3 { margin-bottom: .25rem; }
.ladder p { margin: 0 0 .5rem; font-size: .9375rem; }
.ladder ul { margin: 0; padding-left: 1.1rem; font-size: .875rem; color: var(--ink-2); }
.ladder > li.featured { border-color: color-mix(in srgb, var(--teal) 55%, transparent); box-shadow: var(--shadow-1), 0 0 0 1px color-mix(in srgb, var(--teal) 30%, transparent); }
.todo { font-family: var(--mono); font-size: .75rem; color: var(--amber); border: 1px dashed color-mix(in srgb, var(--amber) 60%, transparent); padding: .25rem .6rem; border-radius: 999px; display: inline-block; margin-bottom: .5rem; }

.prose { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.5rem; margin: 0 0 1rem; font-size: .9375rem; }
dl.kv dt { color: var(--ink-3); }
dl.kv dd { margin: 0; font-family: var(--mono); }
.feeds { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.feeds li { padding: .7rem .9rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .9375rem; box-shadow: var(--shadow-1); }
.feeds code { color: var(--teal); }

.two-col { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .two-col { grid-template-columns: 1fr 1fr; } }

.count { font-family: var(--mono); color: var(--ink-3); font-size: .875rem; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--ink-3); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; font-size: .875rem; color: var(--ink-3); background: var(--paper-2); }
.site-footer .wrap { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer p { margin: 0 0 .35rem; }
.site-footer nav a { margin-right: 1rem; color: var(--ink-2); }

/* ---------- prime / portal additions ---------- */
.page-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:.5rem 1.5rem; }
.meta-line { font-family: var(--mono); font-size:.8rem; color: var(--ink-2); }
.data-table th, .data-table td { white-space: nowrap; }
.index-table tr.total th, .index-table tr.total td { border-top: 2px solid var(--ink); font-weight: 600; }
.brief { display:grid; gap:.85rem; max-width: 32rem; }
.brief label { display:grid; gap:.3rem; font-size:.85rem; color: var(--ink-2); }
.brief input, .brief select, .brief textarea { font: inherit; color: var(--ink); background: var(--field); border:1px solid var(--line-2); padding:.6rem .75rem; border-radius: var(--radius-sm); min-height: 2.75rem; }
.brief textarea { min-height: 6rem; }
.brief input:focus, .brief select:focus, .brief textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.brief button { justify-self:start; font: inherit; font-weight:600; background: var(--grad-cta); color: var(--teal-ink); border:0; padding:.6rem 1.5rem; min-height: 2.75rem; border-radius: 999px; cursor:pointer; box-shadow: var(--shadow-1), var(--gloss); }
.brief button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.brief button:hover { background: var(--grad-cta-hover); }

/* ---------- portal: search hero ---------- */
.hero-search h1 { max-width: 18ch; }
.search { margin-top: 1.5rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-2), var(--gloss); }
@media (min-width: 48rem) { .search { padding: 1.5rem 1.75rem; } }
.segmented { display: inline-flex; gap: .25rem; border: 1px solid var(--line); border-radius: 999px; padding: .25rem; margin: 0 0 1rem; background: var(--field); overflow: hidden; }
.segmented label { margin: 0; position: relative; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: .5rem 1.1rem; font-size: .9375rem; color: var(--ink-2); cursor: pointer; user-select: none; border-radius: 999px; transition: background .12s ease, color .12s ease; }
.segmented input:checked + span { background: var(--grad-cta); color: var(--teal-ink); font-weight: 600; box-shadow: var(--shadow-1), var(--gloss); }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.search-grid { display: grid; gap: .85rem 1rem; grid-template-columns: 1fr 1fr; align-items: end; }
.search-grid > div:nth-child(1), .search-grid > div:nth-child(2), .search-go { grid-column: 1 / -1; }
@media (min-width: 56rem) { .search-grid { grid-template-columns: 1.4fr 1.1fr 1fr 1fr auto; } .search-grid > div:nth-child(1), .search-grid > div:nth-child(2), .search-go { grid-column: auto; } }
.search-go .btn { width: 100%; padding: .6rem 1.75rem; }
.search-hint { margin: .75rem 0 0; min-height: 1.2em; }
.search-hint:empty { display: none; }
.hero .meta { margin-top: 1.25rem; }

/* ---------- portal: buy page ---------- */
.lede-sm { color: var(--ink-2); line-height: 1.65; }
.browse { display: grid; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 56rem) { .browse { grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; align-items: start; } }
.rail { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-1); }
@media (min-width: 56rem) { .rail { position: sticky; top: 1rem; } }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .75rem; }
.rail-title { font-family: var(--sans); font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 500; margin: 0; }
.link-btn { all: unset; cursor: pointer; color: var(--teal); font-size: .875rem; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.rail-fields { display: grid; gap: .75rem 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 56rem) { .rail-fields { grid-template-columns: 1fr; } }
.rail-check { grid-column: 1 / -1; }
.rail-check label { margin: 0; }
.results-col .count { margin: 0 0 .75rem; }

.listing-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 36rem) { .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.more { text-align: center; margin-top: 1.5rem; }
.more .btn { min-width: 12rem; }
.empty-results { padding: 2rem 1rem; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--radius); grid-column: 1 / -1; }

/* ---------- footer: coming soon ---------- */
.site-footer .coming { color: var(--ink-3); margin-top: .75rem; }
.site-footer .coming span { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--line-2); border-radius: 999px; padding: .1rem .5rem; margin-right: .5rem; }

/* ---------- footer: coming links ---------- */
.site-footer .coming a { color: var(--ink-2); }

/* ---------- evidence-first: source chips as soft pills ---------- */
.src { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; font-family: var(--mono); font-size: .6875rem; line-height: 1.3; color: var(--ink-2); text-decoration: none; white-space: nowrap; vertical-align: middle; background: color-mix(in srgb, var(--ink) 7%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem .2rem .5rem; }
.src .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.src::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ink); }
.src[data-conf="medium"]::before { background: var(--teal); }
.src[data-conf="low"]::before { background: var(--amber); }
.src[data-conf="low"] { color: var(--amber); background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
a.src:hover { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 45%, transparent); background: var(--teal-soft); text-decoration: none; }
.src .more { color: var(--ink-3); }
.src-row { display: flex; flex-wrap: wrap; gap: .35rem .5rem; margin: .5rem 0 0; }
td .src, th .src { display: inline-flex; }
.src-legend { display: flex; flex-wrap: wrap; gap: .35rem .75rem; font-size: .75rem; color: var(--ink-3); margin: .5rem 0 0; }
.src-legend .src { cursor: default; }

/* ---------- map ---------- */
.view-toggle { display: inline-flex; gap: .25rem; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--field); padding: .25rem; margin: 0 0 .75rem; }
.view-toggle button { all: unset; cursor: pointer; padding: .45rem 1rem; font: inherit; font-size: .875rem; color: var(--ink-2); border-radius: 999px; transition: background .12s ease, color .12s ease; }
.view-toggle button[aria-pressed="true"] { background: var(--grad-cta); color: var(--teal-ink); font-weight: 600; box-shadow: var(--shadow-1), var(--gloss); }
.view-toggle button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .25rem; }
.results-head .count { margin: 0; }
.map { position: relative; width: min(100%, calc(34rem * 212.7 / 414.8)); aspect-ratio: 212.7 / 414.8; margin: 0 auto 1rem; background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 7%, var(--paper-2)), var(--paper-2) 70%); border: 1px solid var(--line); border-radius: var(--radius); overflow: visible; box-shadow: var(--shadow-1); }
.map.is-hidden { display: none; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-coast { fill: var(--paper-3); stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map-pins { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.map-pins li { position: absolute; width: 0; height: 0; }
.pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: var(--d, 12px); height: var(--d, 12px); padding: 0; margin: 0; border-radius: 50%; cursor: pointer; background: var(--pin, var(--teal)); border: 1.5px solid var(--paper-2); box-shadow: 0 1px 4px rgba(0, 0, 0, .35), 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent); opacity: .92; }
.pin:hover, .pin:focus-visible, .pin[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--focus); outline-offset: 2px; z-index: 2; }
.pin[aria-pressed="true"] { box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 35%, transparent); }
.pin.band-1 { --pin: var(--band-1); }
.pin.band-2 { --pin: var(--band-2); }
.pin.band-3 { --pin: var(--band-3); }
.pin.band-4 { --pin: var(--band-4); }
.map-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 11rem; max-width: 16rem; padding: .65rem .8rem; background: var(--paper-3); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-2); font-size: .8125rem; line-height: 1.35; transform: translate(-50%, calc(-100% - 10px)); }
.map-tip[hidden] { display: none; }
.map-tip strong { display: block; font-family: var(--serif); font-size: 1rem; font-weight: 500; }
.map-tip .num { display: block; color: var(--ink-2); }
.map-tip .src { margin-top: .3rem; }
.map-tip.below { transform: translate(-50%, 10px); }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; font-size: .75rem; color: var(--ink-3); margin: 0 0 .75rem; }
.map-legend .key { display: inline-flex; align-items: center; gap: .35rem; }
.map-legend .key i { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; background: var(--pin, var(--teal)); border: 1px solid var(--paper-2); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent); }
.map-legend .key.band-1 i { --pin: var(--band-1); }
.map-legend .key.band-2 i { --pin: var(--band-2); }
.map-legend .key.band-3 i { --pin: var(--band-3); }
.map-legend .key.band-4 i { --pin: var(--band-4); }
.map-note { font-size: .75rem; color: var(--ink-3); margin: 0 0 1rem; }
.map-status { font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); margin: 0 0 .75rem; min-height: 1.2em; }
.map-status a { margin-left: .5rem; }
@media (min-width: 56rem) {
  .map-panel { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
  .map-panel .map { margin: 0; }
}
.map-panel.is-hidden { display: none; }

.where-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .9375rem; }
.where-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.where-list .num { color: var(--ink-2); font-size: .875rem; white-space: nowrap; }
.where-list a { color: var(--ink); text-decoration: none; }
.where-list a:hover { color: var(--teal); text-decoration: underline; }

/* coming pages */
.coming-head { display: inline-block; font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 55%, transparent); background: var(--amber-soft); border-radius: 999px; padding: .15rem .6rem; margin-bottom: .75rem; }
.contract { font-family: var(--mono); font-size: .8125rem; line-height: 1.5; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; overflow-x: auto; white-space: pre; margin: 0 0 1rem; color: var(--ink-2); box-shadow: var(--shadow-1); }

/* legal pages */
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal dl.kv { grid-template-columns: minmax(8rem, max-content) 1fr; }
.legal dl.kv dd { font-family: var(--sans); }

/* 404 */
.notfound { padding: 4rem 0; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* ============================================================
   data-as-poster components: bento home, mini-maps, poster
   tiles, browse shelves. Colour is always the 4-step price-band
   scale (--band-1..4); gradients only for ground depth and the
   CTA - never decorative rainbow.
   ============================================================ */

/* ---------- Concept B home: Island discovery ---------- */
.home-page { background: var(--paper); }
.home-page main { padding-top: 0; }
.home-page .site-header { position: sticky; top: 0; z-index: 20; }
.home-page .nav a[aria-current="page"] { background: var(--teal-soft); border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 30%, transparent); }
.home-hero { position: relative; min-height: clamp(36rem, 74vh, 45rem); overflow: hidden; padding: clamp(2.75rem, 4vw, 3.75rem) 0 clamp(1.6rem, 3vw, 2.5rem); background-image: linear-gradient(90deg, rgba(4, 25, 28, .63) 0%, rgba(4, 25, 28, .34) 45%, rgba(4, 25, 28, .08) 82%), linear-gradient(180deg, rgba(4, 25, 28, .04), rgba(4, 25, 28, .4)), url("saint-lucia-luxury-hero.jpg"); background-position: center; background-size: cover; color: #f4fbf7; }
.home-hero::after { position: absolute; right: 7%; top: 12%; width: clamp(15rem, 29vw, 26rem); height: clamp(15rem, 29vw, 26rem); border: 1px solid rgba(235, 250, 244, .24); border-radius: 50%; box-shadow: 0 0 0 1.75rem rgba(235, 250, 244, .04), 0 0 0 3.6rem rgba(235, 250, 244, .025); content: ""; pointer-events: none; }
.home-hero-grid { position: relative; z-index: 1; display: block; max-width: var(--max); min-height: 0; margin-inline: auto; }
.home-hero-copy { max-width: 62rem; margin-inline: auto; padding-bottom: 0; }
.home-hero .eyebrow { margin-bottom: 1rem; color: #bfe6dc; }
.home-discovery .eyebrow { margin-bottom: 1rem; color: var(--amber); }
.home-hero h1 { max-width: 12ch; margin: 0 0 1.35rem; color: #f4fbf7; font-family: var(--serif); font-size: clamp(3.8rem, 7.5vw, 7.2rem); font-weight: 400; letter-spacing: -.065em; line-height: .86; }
.home-hero .lede { max-width: 34rem; margin: 0; color: rgba(244, 251, 247, .88); font-size: clamp(1rem, 1.35vw, 1.1rem); line-height: 1.65; }
.home-hero-rule { display: block; width: 2.65rem; height: 2px; margin-top: 1.35rem; background: var(--copper); }
.home-index-card { align-self: end; min-height: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; color: var(--ink); box-shadow: none; }
.home-index-photo { position: absolute; inset: 0; display: block; min-height: 0; background: transparent; pointer-events: none; }
.home-photo-badge, .home-photo-note { position: absolute; z-index: 2; font: .625rem var(--mono); letter-spacing: .04em; }
.home-photo-badge { top: 1.15rem; right: 1.15rem; max-width: min(23rem, calc(100% - 2.3rem)); padding: .4rem .6rem; border: 1px solid rgba(255, 255, 255, .58); border-radius: 999px; color: #fff; background: rgba(4, 25, 28, .2); }
.home-photo-note { display: none; }
.home-index-data { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 12rem; padding: 1.25rem 1.5rem 1.35rem; border: 1px solid rgba(235, 250, 244, .5); border-radius: calc(var(--radius) + 8px); background: rgba(244, 251, 247, .9); box-shadow: var(--shadow-2); backdrop-filter: blur(10px); }
.home-index-top, .home-index-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font: .65rem var(--mono); }
.home-index-top { color: var(--ink-2); }
.home-index-number { margin: auto 0 .9rem; font-family: var(--sans); font-size: clamp(3.5rem, 6.8vw, 5.75rem); font-weight: 500; line-height: .82; letter-spacing: -.1em; }
.home-index-bottom { padding-top: .8rem; border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); color: var(--ink-2); }
.home-discovery { padding: clamp(1.35rem, 2.4vw, 2rem) 0 4.5rem; }
.home-discovery-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.home-discovery-head h2 { margin: 0; font-family: var(--sans); font-size: clamp(1.9rem, 3vw, 2.45rem); font-weight: 500; letter-spacing: -.065em; }
.home-browse-form { display: grid; gap: .6rem; justify-items: end; }
.home-hero-search { display: grid; width: min(100%, 68rem); margin: clamp(1.65rem, 3.2vw, 2.5rem) auto 0; padding: .6rem .75rem .7rem; justify-items: stretch; border: 1px solid rgba(235, 250, 244, .34); border-radius: var(--radius-sm); background: var(--paper-2); box-shadow: var(--shadow-1); color: var(--ink); }
.home-hero-search .segmented { width: max-content; justify-content: flex-start; padding: .16rem; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--paper-3) 46%, var(--paper-2)); }
.home-hero-search .segmented span { padding: .33rem .7rem; }
.home-hero-search .search-hint { display: none; }
.home-search-field { display: grid; min-width: 0; gap: .25rem; }
.home-search-field > span { padding-left: .15rem; color: var(--ink-3); font: .57rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.home-hero-search .home-search-fields { width: 100%; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: .35rem; }
.home-hero-meta { display: flex; max-width: 68rem; margin: .85rem auto 0; justify-content: flex-start; gap: clamp(1rem, 4vw, 2.5rem); color: rgba(244, 251, 247, .82); font: .64rem var(--mono); }
.home-hero-meta strong { color: #fff; font-weight: 500; }
.home-discovery-link { color: rgba(4, 25, 28, .72); font: .66rem var(--mono); text-decoration: none; }
.home-discovery-link:hover { color: var(--teal); }
.home-browse-form .segmented { display: flex; gap: .2rem; margin: 0; padding: 0; border: 0; background: transparent; }
.home-browse-form .segmented label { display: block; }
.home-browse-form .segmented span { display: block; padding: .38rem .7rem; border-radius: 999px; color: var(--ink-3); font-size: .75rem; }
.home-browse-form .segmented input:checked + span { background: var(--teal-soft); color: var(--teal); }
.home-search-fields { display: grid; grid-template-columns: repeat(4, minmax(7rem, 1fr)) auto; gap: .45rem; align-items: center; }
.home-search-fields select, .home-search-fields input { min-width: 0; height: 2.35rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--field); color: var(--ink); font: .75rem var(--sans); }
.home-search-fields .btn { min-height: 2.35rem; padding-inline: .9rem; border-radius: var(--radius-sm); }
.home-browse-form .search-hint { width: min(100%, 34rem); margin: 0; text-align: right; font-size: .7rem; }
.home-discovery-grid { display: grid; grid-template-columns: minmax(14.5rem, 16.75rem) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2rem); margin-top: 1.65rem; }
.home-area-panel { height: max-content; padding: 1.1rem; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--paper-2); box-shadow: var(--shadow-1); }
.home-panel-title { margin: 0 0 .55rem; color: var(--ink-3); font: .625rem var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.home-area-panel a { display: flex; justify-content: space-between; gap: .75rem; padding: .68rem .55rem; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .78rem; text-decoration: none; }
.home-area-panel a:first-of-type { border-radius: var(--radius-sm); background: var(--teal-soft); color: var(--teal); font-weight: 600; }
.home-area-panel a:hover { color: var(--teal); background: color-mix(in srgb, var(--teal-soft) 68%, transparent); }
.home-area-panel a span { color: var(--teal); }
.home-panel-foot { margin: 1rem .25rem .15rem; color: var(--ink-3); font: .65rem/1.6 var(--mono); }
.home-discovery-content { min-width: 0; }
.home-results-meta { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .8rem; color: var(--ink-3); font: .65rem var(--mono); }
.home-results-meta strong { color: var(--ink); font-weight: 500; }
.home-page .bento { margin: 0; }
.home-page .b-island { min-height: 24rem; }
.home-page .b-island .bt { border-radius: calc(var(--radius) + 4px); }

/* ---------- Concept B page family: photo-led bento utilities ---------- */
.page-with-photo { --page-photo-position: center 58%; }
.prime-page { --page-photo-position: center 42%; }
.methodology-page { --page-photo-position: center 54%; }
.rating-page { --page-photo-position: center 68%; }
.calculator-page { --page-photo-position: center 46%; }
.developments-page { --page-photo-position: center 34%; }
.rent-page { --page-photo-position: center 62%; }
.stay-page { --page-photo-position: center 52%; }
.page-with-photo main > .wrap::before { display: block; height: clamp(12rem, 25vw, 18rem); margin: 0 0 -2rem; border: 1px solid color-mix(in srgb, var(--teal) 32%, var(--line)); border-radius: calc(var(--radius) + 8px); background-image: linear-gradient(180deg, rgba(6, 35, 38, .05), rgba(6, 35, 38, .72)), url("saint-lucia-luxury-hero.jpg"); background-position: var(--page-photo-position); background-size: cover; box-shadow: var(--shadow-2); content: ""; }
.page-with-photo main > .wrap::after { display: block; position: relative; min-height: 1rem; margin: 0 1.1rem 2.25rem; color: rgba(255, 255, 255, .9); content: "Illustrative Saint Lucia context · not a listing photo"; font: .625rem var(--mono); letter-spacing: .04em; pointer-events: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.page-with-photo main > .wrap > section { position: relative; padding: clamp(1.15rem, 2.4vw, 1.75rem); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); background: var(--paper-2); box-shadow: var(--shadow-1); }
.page-with-photo main > .wrap > section + section { margin-top: 1.5rem; }
.page-with-photo main > .wrap > section > h1,
.page-with-photo main > .wrap > section > h2 { letter-spacing: -.045em; }
.page-with-photo main > .wrap > section > .lede { max-width: 58ch; }
.page-with-photo .section-head { margin-bottom: 1.15rem; }
.page-with-photo .filters { padding: 1rem; border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line)); border-radius: var(--radius); background: var(--teal-soft); }
.page-with-photo .two-col > .prose { padding: clamp(1rem, 2vw, 1.35rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow-1); }
.page-with-photo .two-col > .prose + .prose { background: color-mix(in srgb, var(--teal-soft) 42%, var(--paper-2)); }
.page-with-photo .kv { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-3); }
.page-with-photo .feeds li { min-height: 3.5rem; display: flex; align-items: center; }
.page-with-photo .contract { border-radius: var(--radius); box-shadow: var(--shadow-1); }
.page-with-photo .brief { padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-3); box-shadow: var(--shadow-1); }
.page-with-photo .calc > form { padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); background: var(--paper-2); box-shadow: var(--shadow-1); }
.page-with-photo .calc > form h2 { margin-top: 0; }
.page-with-photo .results { border-color: color-mix(in srgb, var(--teal) 35%, var(--line)); }
.page-with-photo .caveat { background: color-mix(in srgb, var(--amber-soft) 82%, var(--paper-2)); }
.page-with-photo .table-wrap { box-shadow: var(--shadow-1); }
.page-with-photo .ladder > li { border-radius: calc(var(--radius) + 2px); }
.page-with-photo .ladder > li.featured { background: color-mix(in srgb, var(--teal-soft) 48%, var(--paper-2)); }
.page-with-photo .site-footer { margin-top: 1rem; }
@media (max-width: 55.99rem) {
  .page-with-photo main > .wrap::before { height: 12rem; margin-bottom: -1.25rem; }
  .page-with-photo main > .wrap::after { margin-bottom: 1.5rem; }
}

@media (max-width: 67rem) {
  .home-hero-grid { max-width: var(--max); }
  .home-hero-search .home-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .home-discovery-head { align-items: stretch; flex-direction: column; }
  .home-browse-form { justify-items: start; }
  .home-browse-form .search-hint { text-align: left; }
  .home-search-fields { width: 100%; }
}
@media (max-width: 47.99rem) {
  .home-hero { padding-top: 2.35rem; }
  .home-hero h1 { font-size: clamp(3.5rem, 16vw, 5.25rem); }
  .home-hero-search { margin-top: 2rem; }
  .home-hero-meta { flex-wrap: wrap; gap: .5rem 1rem; }
  .home-discovery { padding-bottom: 3rem; }
  .home-discovery-grid { grid-template-columns: 1fr; }
  .home-area-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .5rem; }
  .home-area-panel .home-panel-title, .home-area-panel .home-panel-foot { grid-column: 1 / -1; }
  .home-area-panel a { font-size: .7rem; }
  .home-search-fields { grid-template-columns: 1fr 1fr; }
  .home-search-fields .btn { grid-column: 1 / -1; }
  .home-results-meta { font-size: .59rem; }
}

/* ============================================================
   Final shared system
   A single surface, type, and control language for every route.
   Page-specific modules inherit these roles rather than creating
   parallel portal themes.
   ============================================================ */
:root {
  --surface: var(--paper-2);
  --surface-muted: var(--paper-3);
  --surface-tint: color-mix(in srgb, var(--teal-soft) 46%, var(--paper-2));
  --surface-alert: color-mix(in srgb, var(--amber-soft) 76%, var(--paper-2));
  --content-space: clamp(2.5rem, 6vw, 5.5rem);
}

body { background: var(--paper); color: var(--ink); }
main { padding-block: var(--content-space); }
main > .wrap { min-width: 0; }
[data-sample-banner] { margin-top: 1rem !important; }

.page-title {
  max-width: 24ch;
  margin: 0 0 .5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -.05em;
}
.inline-note { margin: .65rem 0 0; color: var(--ink-3); font-size: .8125rem; }
.section-spacer { margin-top: 2rem; }
.form-stack { display: grid; gap: .9rem; }
.field-set {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}
.field-set legend {
  padding: 0 .35rem;
  color: var(--ink-3);
  font: .65rem var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.two-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.table-section { margin-top: 2rem; }
.honeypot { position: absolute; left: -10000px; }

/* A restrained document page: factual, spacious, and easy to cite. */
.document-page main { padding-top: clamp(2.5rem, 6vw, 5rem); }
.document-page .legal,
.document-page .notfound {
  max-width: 58rem;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.document-page .legal > h1,
.document-page .notfound > h1 { margin-top: 0; }
.document-page .legal > h2 {
  margin-top: 2.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.document-page .legal > h2:first-of-type { margin-top: 2rem; }
.document-page .notfound { min-height: 25rem; display: grid; align-content: center; }
.document-page .notfound .count { margin: 0; color: var(--copper); font: 1rem var(--mono); letter-spacing: .12em; }

/* Global controls and information surfaces. */
.btn, button, input[type="submit"] {
  border-radius: var(--radius-sm);
  font-family: var(--sans);
}
input, select, textarea {
  border-color: var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  outline: 3px solid color-mix(in srgb, var(--teal) 20%, transparent);
  outline-offset: 1px;
}
.caveat, .note, .method-note {
  border-radius: var(--radius-sm);
  background: var(--surface-alert);
}
.table-wrap, .results, .map {
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
table thead { background: var(--surface-muted); }
table tbody tr:hover { background: var(--surface-tint); }

/* Browse and listing experiences retain their structure, but use one language. */
.buy-page main { padding-top: clamp(2rem, 4vw, 3.5rem); }
.buy-page .hero-compact {
  padding: 0 0 1.35rem;
  border-bottom: 1px solid var(--line);
}
.buy-page .hero-compact h1 { font-size: clamp(2.45rem, 5vw, 4.2rem); }
.buy-page .search {
  padding: .95rem;
  border: 1px solid color-mix(in srgb, var(--teal) 38%, var(--line));
  border-radius: calc(var(--radius) + 3px);
  background: var(--teal);
  box-shadow: var(--shadow-2);
}
.buy-page .search label,
.buy-page .search .field-label { color: rgba(246, 244, 236, .8); }
.buy-page .search input,
.buy-page .search select {
  border-color: transparent;
  background: var(--paper-2);
}
.buy-page .search .btn { background: var(--copper); color: #24170e; }
.buy-page .view-toggle {
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.buy-page .view-toggle button {
  border-radius: 999px;
  color: var(--ink-3);
}
.buy-page .view-toggle button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.buy-page .buy-results { gap: 1.35rem; }
.buy-page .results-aside {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.buy-page .results-aside h2,
.buy-page .results-aside h3 { margin-top: 0; }
.buy-page .featured-property {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 3px);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.buy-page .featured-property__head,
.buy-page .featured-property__price { background: var(--teal); color: #f7f3e9; }
.buy-page .featured-property__body { background: var(--surface); }
.buy-page .featured-property__meta { background: var(--surface-muted); }
.buy-page .ptile {
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
}
.buy-page .pt-map { background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 14%, var(--surface-muted)), var(--surface)); }
.buy-page .ptile .badge { background: var(--surface-muted); }

.listing-page main { padding-top: clamp(2rem, 4vw, 3.5rem); }
.listing-page .listing-shell { max-width: var(--max); }
.listing-page .listing-back { color: var(--teal); font: .75rem var(--mono); }
.listing-page .detail-gallery,
.listing-page .listing-gallery {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.listing-page .detail-gallery img,
.listing-page .listing-gallery img { display: block; }
.listing-page .listing-summary,
.listing-page .listing-facts,
.listing-page .listing-source,
.listing-page .source-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.listing-page .listing-summary { padding: clamp(1.25rem, 3vw, 2rem); }
.listing-page .listing-summary h1 { max-width: 18ch; font-size: clamp(2rem, 4vw, 3.4rem); }
.listing-page .listing-price { color: var(--teal); font-family: var(--serif); }
.listing-page .listing-facts,
.listing-page .listing-source,
.listing-page .source-card { padding: 1.15rem; }
.listing-page .listing-facts > * + *,
.listing-page .listing-source > * + * { border-top-color: var(--line); }
.listing-page .evidence-chip,
.listing-page .badge { border-color: var(--line-2); background: var(--surface-muted); color: var(--ink-2); }

/* Photo-led data pages share the same bento-like paper layers. */
.page-with-photo main { padding-top: clamp(2.5rem, 5vw, 4rem); }
.page-with-photo main > .wrap > section {
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
}
.page-with-photo .filters { background: var(--surface-tint); }
.page-with-photo .two-col > .prose { background: var(--surface); }
.page-with-photo .two-col > .prose + .prose { background: var(--surface-tint); }
.page-with-photo .brief,
.page-with-photo .calc > form { background: var(--surface); }

@media (max-width: 55.99rem) {
  main { padding-block: 2.5rem; }
  .two-field-grid { grid-template-columns: 1fr; }
  .document-page .legal,
  .document-page .notfound { padding: 1.2rem; }
  .buy-page .search { padding: .75rem; }
}

/* band edge helper: any element with data-band gets --edge */
[data-band="1"] { --edge: var(--band-1); }
[data-band="2"] { --edge: var(--band-2); }
[data-band="3"] { --edge: var(--band-3); }
[data-band="4"] { --edge: var(--band-4); }

/* ---------- compact search hero ---------- */
.hero-compact { padding: 2rem 0 1.75rem; border-bottom: 0; }
@media (min-width: 48rem) { .hero-compact { padding: 3rem 0 2rem; } }
.hero-compact h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); max-width: 24ch; margin-bottom: .5rem; }
.hero-compact .lede { font-size: 1.0625rem; margin-bottom: 1rem; }
.hero-compact .search { margin-top: 1rem; }
.hero-compact .meta { margin-top: 1rem; }

/* ---------- bento grid ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (min-width: 64rem) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.bento > li { display: block; min-width: 0; }
.bt { position: relative; display: flex; flex-direction: column; gap: .1rem; height: 100%; min-height: 9.5rem; padding: 1.1rem 1.25rem 1.25rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; overflow: hidden; box-shadow: var(--shadow-1); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.bt::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--edge, var(--line-2)); }
a.bt:hover, a.bt:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--edge, var(--teal)) 55%, transparent); }
a.bt:hover .bt-title, a.bt:focus-visible .bt-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bt-kicker { font-family: var(--mono); font-size: .625rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.bt-title { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.12; margin: .1rem 0 .25rem; }
.bt-num { font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: var(--num-lg); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; margin-top: auto; }
.bt-num.xl { font-size: var(--num-xl); }
.bt-sub { font-size: .75rem; color: var(--ink-3); }
.bt-meta { font-family: var(--mono); font-size: .6875rem; color: var(--ink-3); margin-top: .35rem; }
.bt .src { margin-top: .35rem; align-self: flex-start; }

/* spans */
.b-2 { grid-column: span 2; }
.b-island { grid-column: span 2; grid-row: span 2; min-height: 22rem; }
@media (max-width: 63.99rem) { .b-island { grid-row: span 1; } }

/* island tile */
.b-island .bt { flex-direction: row; gap: 1.25rem; align-items: stretch; padding: 1.25rem; }
.b-island .map { position: relative; flex: 0 0 44%; width: auto; max-width: 13rem; margin: 0; border: 0; background: transparent; box-shadow: none; aspect-ratio: 212.7 / 414.8; align-self: center; }
.b-island .bt-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.b-island .where-list { font-size: .875rem; margin-top: .5rem; }
.b-island .where-list li { padding: .3rem 0; }
.b-island .bt-cta { margin-top: auto; padding-top: .75rem; font-size: .875rem; }

/* area tiles: mini-map crop + display numerals */
.b-area .bt { padding-top: 0; }
.bt-map { display: block; margin: 0 -1.25rem .7rem; aspect-ratio: 2 / 1; background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 8%, var(--paper-3)), color-mix(in srgb, var(--paper-3) 55%, var(--paper-2))); border-bottom: 1px solid var(--line); overflow: hidden; }
.bt-map svg, .pt-map svg { display: block; width: 100%; height: 100%; }
.mini-map use { fill: var(--paper-3); stroke: var(--ink-3); stroke-width: 1; }
.mini-map .dot { fill: var(--dot, var(--band-3)); stroke: var(--paper-2); opacity: .92; }
.b-area .bt-map { position: relative; }
.b-area .bt::before { z-index: 1; }

/* Prime tile: amber/gold on charcoal, deliberate in both themes */
.b-prime .bt { background: linear-gradient(150deg, color-mix(in srgb, var(--amber-bright) 16%, var(--tile-ink)), var(--tile-ink) 60%); border-color: var(--tile-ink-line); color: var(--tile-ink-fg); }
.b-prime .bt::before { background: var(--amber-bright); }
.b-prime .bt-kicker { color: var(--amber-bright); }
.b-prime .bt-sub, .b-prime .bt-meta { color: var(--tile-ink-muted); }
.b-prime .bt-num { color: var(--tile-ink-fg); }
.b-prime a.bt:hover, .b-prime a.bt:focus-visible { border-color: color-mix(in srgb, var(--amber-bright) 55%, transparent); }
a.bt:hover .bt-title { text-decoration-color: currentColor; }

/* market pulse rows */
.pulse { display: grid; gap: .45rem; margin: .35rem 0 0; font-size: .875rem; }
.pulse > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .45rem; }
.pulse > div:last-child { border-bottom: 0; }
.pulse .k { color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse .v { font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: 1.25rem; font-weight: 500; white-space: nowrap; }
.pulse .v .u { font-family: var(--sans); font-size: .6875rem; color: var(--ink-3); font-weight: 400; }

/* resilience ladder mini-visual */
.ladder-mini { display: flex; align-items: flex-end; gap: .3rem; height: 3rem; margin: .5rem 0 .25rem; }
.ladder-mini i { flex: 1; background: var(--band-1); border-radius: 4px 4px 0 0; }
.ladder-mini i:nth-child(2) { background: var(--band-2); }
.ladder-mini i:nth-child(3) { background: var(--band-2); }
.ladder-mini i:nth-child(4) { background: var(--band-3); }
.ladder-mini i:nth-child(5) { background: var(--band-4); }

/* cost tile rows */
.cost-rows { display: grid; gap: .4rem; margin-top: .4rem; font-size: .8125rem; }
.cost-rows .v { font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: 1.375rem; font-weight: 500; line-height: 1.15; display: block; }
.cost-rows .k { color: var(--ink-3); }

/* coming tiles */
.b-coming .bt { justify-content: flex-start; }
.b-coming .bt::before { background: var(--amber); }

/* ---------- poster listing tile (rails + buy grid) ---------- */
.ptile { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.ptile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--edge, var(--line-2)); z-index: 2; }
.ptile:hover, .ptile:focus-within { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--edge, var(--teal)) 55%, transparent); }
.ptile:hover .pt-district, .ptile:focus-within .pt-district { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pt-map { display: block; aspect-ratio: 5 / 2; background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 8%, var(--paper-3)), color-mix(in srgb, var(--paper-3) 55%, var(--paper-2))); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.pt-map .pt-band { position: absolute; right: .6rem; top: .6rem; font-family: var(--mono); font-size: .625rem; letter-spacing: .06em; color: var(--ink-2); background: color-mix(in srgb, var(--paper-2) 82%, transparent); border: 1px solid var(--line-2); border-radius: 999px; padding: .1rem .5rem; }
.pt-body { display: flex; flex-direction: column; gap: .2rem; flex: 1; padding: .9rem 1.1rem 1rem; }
.pt-price { font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: var(--num-lg); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.pt-price .u { font-family: var(--sans); font-size: .75rem; font-weight: 400; color: var(--ink-3); margin-left: .25rem; }
.pt-district { font-size: .9375rem; color: var(--ink); line-height: 1.3; margin: 0; font-weight: 500; font-family: var(--sans); }
.pt-area { font-size: .75rem; color: var(--ink-3); }
.pt-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.pt-tags .badge { font-size: .6875rem; padding: .1rem .5rem; }
.pt-tags .badge.prime { border-color: color-mix(in srgb, var(--amber) 50%, transparent); color: var(--amber); background: var(--amber-soft); }
.pt-tags .badge.rating { border-style: dashed; color: var(--ink-3); background: transparent; }
.pt-since { font-family: var(--mono); font-size: .6875rem; color: var(--ink-3); margin-top: .25rem; }
.pt-since .drop { color: var(--teal); }
.pt-foot { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem .75rem; font-size: .75rem; color: var(--ink-3); }
.pt-foot .held { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
/* stretched primary link: whole tile clicks through to the source */
a.pt-link { position: static; color: inherit; text-decoration: none; }
a.pt-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pt-foot .src, .pt-body .src { position: relative; z-index: 2; }

/* ---------- browse shelves (Netflix rails) ---------- */
.shelves { display: block; }
.shelf { margin: 1.75rem 0 0; }
.shelf:first-child { margin-top: .5rem; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.shelf-head h3, .shelf-head h2 { font-family: var(--serif); font-size: 1.25rem; margin: 0; }
.shelf-head .shelf-link { font-size: .8125rem; white-space: nowrap; }
.shelf-body { position: relative; }
.shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 16.5rem); gap: 1rem; margin: 0; padding: .25rem .25rem .85rem; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; -webkit-mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent); mask-image: linear-gradient(to right, transparent, #000 1.25rem, #000 calc(100% - 1.25rem), transparent); }
.shelf-track > li { scroll-snap-align: start; min-width: 0; }
.shelf-track { grid-auto-columns: min(82vw, 23rem); }
.shelf-track .ptile { min-width: 0; }
.shelf-track .pt-media {
  position: relative;
  min-height: 10.5rem;
  overflow: hidden;
  isolation: isolate;
  background: #dce7dc;
}
.shelf-track .pt-media-place,
.shelf-track .pt-media-price {
  position: absolute;
  z-index: 1;
  color: #fffaf0;
}
.shelf-track .pt-media-place {
  top: .75rem;
  left: .75rem;
  max-width: calc(100% - 1.5rem);
  padding: .2rem .45rem;
  border: 1px solid rgba(255, 250, 240, .45);
  border-radius: 999px;
  background: rgba(23, 54, 51, .68);
  font: .61rem var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.shelf-track .pt-media-price {
  right: 0;
  bottom: 0;
  left: 0;
  padding: .7rem .9rem;
  background: rgba(24, 93, 91, .93);
  font: 1.35rem var(--serif);
  line-height: 1;
}
.shelf-track .pt-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem .8rem;
  margin-top: .35rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .74rem;
}
.shelf-track .pt-facts span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.shelf-track .pt-facts b {
  display: block;
  margin-bottom: .08rem;
  color: var(--ink-3);
  font: .58rem var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.shelf-track .pt-tags { margin-top: .5rem; }
.shelf-track .pt-foot { align-items: center; }
.shelf-track .pt-foot .held { max-width: 58%; }
.shelf-btn { position: absolute; top: calc(50% - 1.6rem); z-index: 3; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper-3); color: var(--ink); cursor: pointer; font-size: 1.1rem; line-height: 1; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-2), var(--gloss); }
.shelf-btn:hover { border-color: color-mix(in srgb, var(--teal) 55%, transparent); color: var(--teal); }
.shelf-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.shelf-btn[disabled] { opacity: .35; cursor: default; }
.shelf-btn.prev { left: -.6rem; }
.shelf-btn.next { right: -.6rem; }
@media (min-width: 48rem) { .shelf-btn { display: inline-flex; } }
.shelf-note { font-size: .75rem; color: var(--ink-3); margin: .1rem 0 0; }
#home-shelves .shelf-track, #shelves .shelf-track { min-height: 19.5rem; }
.section-gap { margin-top: 2.25rem; }

/* ============================================================
   Saint Lucia direction - a quiet, paper-led island index.
   These final tokens intentionally supersede the earlier
   dark-first prototype so every static page shares one modern,
   rounded system.
   ============================================================ */
:root, :root:not([data-theme="dark"]), :root[data-theme="light"], :root[data-theme="dark"] {
  --paper: #f4efe5;
  --paper-2: #fbf8f1;
  --paper-3: #e8dfd0;
  --field: #fffdf8;
  --ink: #253b3b;
  --ink-2: #46605e;
  --ink-3: #687979;
  --line: rgba(37, 59, 59, .17);
  --line-2: rgba(37, 59, 59, .30);
  --teal: #275b5b;
  --teal-ink: #fffaf0;
  --teal-soft: #d9e6df;
  --amber: #9b6733;
  --amber-soft: #f0e2cc;
  --focus: #a34f38;
  --band-1: #9bb9a6;
  --band-2: #78a9a2;
  --band-3: #3f7773;
  --band-4: #253b3b;
  --tile-ink: #275b5b;
  --tile-ink-fg: #f8f1e3;
  --tile-ink-muted: #d7c29d;
  --tile-ink-line: rgba(215, 194, 157, .45);
  --amber-bright: #bd694c;
  /* Saint Lucia flag cerulean: the sky and the sea */
  --cerulean: #66CCFF;          /* pure flag cerulean: fills, washes, dots, map water; never text */
  --cerulean-ink: #0E6FA8;      /* deep cerulean for text and interactive: AA on cream 4.75:1, on cards 5.13:1 */
  --cerulean-wash: #E8F5FD;     /* pale cerulean tint: backgrounds of highlighted elements */
  /* Flag gold #FCD116 reserved, not deployed */
  --shadow-1: 0 1px 2px rgba(37, 59, 59, .07), 0 7px 18px rgba(37, 59, 59, .07);
  --shadow-2: 0 3px 8px rgba(37, 59, 59, .10), 0 18px 42px rgba(37, 59, 59, .14);
  --gloss: inset 0 1px 0 rgba(255, 255, 255, .62);
  --grad-cta: #bd694c;
  --grad-cta-hover: #9f513b;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 77.5rem;
  color-scheme: light;
}
body { background: var(--paper); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .32; z-index: -1; background-image: radial-gradient(rgba(37,59,59,.11) .45px, transparent .6px); background-size: 7px 7px; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
a { color: var(--teal); text-underline-offset: 4px; }
.wrap { max-width: var(--max); }
main { padding: 4.4rem 0 6rem; }
section + section { margin-top: 4.5rem; }
.section-head { border-bottom: 1px solid var(--line); padding-bottom: .85rem; margin-bottom: 1.25rem; }

/* shared masthead and footer */
.site-header { background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom-color: var(--line); }
.site-header .wrap { min-height: 4.65rem; }
.brand { gap: .7rem; }
.brand img { width: 2rem; height: 2rem; border-radius: var(--radius-sm); }
.brand b { font-size: 1.32rem; font-weight: 400; }
.brand .tag { margin-top: .18rem; font-size: .58rem; letter-spacing: .13em; }
.nav { gap: .1rem; font-size: .82rem; }
.nav a { border-radius: var(--radius-sm); padding: .55rem .72rem; }
.nav a:hover { background: transparent; color: var(--teal); text-decoration: underline; text-underline-offset: 5px; }
.nav a[aria-current="page"] { background: transparent; box-shadow: inset 0 -2px 0 var(--amber-bright); color: var(--ink); }
.site-footer { padding: 3rem 0; background: #e8dfcf; border-top-color: var(--line); }
.site-footer nav a { font-family: var(--mono); font-size: .7rem; }
.site-footer .coming span { color: var(--amber-bright); border-color: color-mix(in srgb, var(--amber-bright) 50%, transparent); }

/* homepage image and editorial search composition */
.hero { background: var(--paper-3); }
.hero-search { position: relative; isolation: isolate; min-height: 41rem; display: flex; align-items: end; overflow: hidden; color: #f8f3e9; border: 0; background: #315655; }
.hero-search::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(25,48,46,.88), rgba(25,48,46,.28) 72%), linear-gradient(0deg, rgba(20,38,36,.7), transparent 62%), url("saint-lucia-luxury-hero.jpg") center / cover no-repeat; }
.hero-search .wrap { width: min(var(--max), calc(100% - 2rem)); padding-top: 7.5rem; padding-bottom: 3.5rem; }
.hero-compact { padding: 0; }
.hero-compact h1, .hero h1 { max-width: 12ch; font-size: clamp(3.4rem, 7.4vw, 6.8rem); line-height: .91; margin-bottom: 1.1rem; }
.hero .eyebrow { margin: 0 0 1rem; color: #d7b684; font-family: var(--mono); font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; }
.hero .lede, .hero-compact .lede { max-width: 38rem; color: rgba(255,250,240,.88); font-size: 1.06rem; }
.hero .meta { color: rgba(255,250,240,.74); font-family: var(--mono); font-size: .72rem; }
.hero .meta strong { color: #fffaf0; }
.search { margin-top: 2rem; padding: 1.05rem; border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius); background: var(--paper-2); color: var(--ink); box-shadow: var(--shadow-2); }
.segmented { border: 0; padding: 0; background: transparent; border-radius: var(--radius-sm); }
.segmented span, .view-toggle button { border-radius: var(--radius-sm); font-size: .82rem; }
.segmented input:checked + span, .view-toggle button[aria-pressed="true"] { background: var(--teal); color: var(--teal-ink); box-shadow: none; }
.search-grid { gap: .7rem; }
.search-go .btn { min-height: 2.75rem; }
.btn, .brief button { border-radius: 999px; box-shadow: none; background: var(--grad-cta); }
.btn:hover, .brief button:hover { box-shadow: none; background: var(--grad-cta-hover); }

/* tactile data surfaces */
.table-wrap, .note, .caveat, .rail, .results, .ladder > li, .feeds li, .contract, .ptile, .bt { border-radius: var(--radius); box-shadow: var(--shadow-1); }
.table-wrap { background: var(--paper-2); }
thead th, .index-table .group { background: var(--paper-3); font-family: var(--mono); font-size: .68rem; letter-spacing: .09em; }
tbody tr:hover { background: #f1eadf; }
.badge, .src, .coming-head { border-radius: 999px; }
.src { background: #f1eadf; }
input[type="text"], input[type="search"], input[type="number"], select, .brief input, .brief select, .brief textarea { border-radius: var(--radius-sm); background: var(--field); }
.rail { background: #eee6d9; }
.results { background: var(--paper-2); }
.kpi { border-top-color: var(--amber-bright); }
.ladder > li { border-left: 3px solid var(--teal); }
.ladder .lvl { color: var(--amber-bright); }
.map { border-radius: var(--radius); background: #dce7dc; box-shadow: var(--shadow-1); }
.map-coast { fill: #a8c2ae; stroke: var(--teal); }
.pin { border-color: var(--paper-2); }

/* home data tiles retain their JS hooks while adopting the approved grid character */
.bento { gap: .8rem; }
.bt { min-height: 11.5rem; padding: 1.25rem; background: var(--paper-2); border-radius: var(--radius); }
.bt:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.bt::before { background: var(--edge, var(--band-2)); }
.bt-kicker { color: var(--amber-bright); font-family: var(--mono); letter-spacing: .12em; font-size: .62rem; }
.bt-title { font-size: 1.35rem; font-family: var(--serif); font-weight: 400; line-height: 1.04; }
.bt-num { font-weight: 400; }
.b-island .bt { background: #f8f4eb; }
.b-island .map { background: #dce7dc; padding: .35rem; }
.b-prime .bt { background: var(--teal); }
.b-prime .bt::before { background: #b68b58; }
.b-coming .bt { background: #eee2d0; }
.bt-map { background: #dce7dc; }
.ptile { border-radius: var(--radius); }
.ptile:hover, .ptile:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.pt-map { background: #dce7dc; }
.shelf-track { gap: .8rem; }
.shelf-btn { border-radius: 999px; background: var(--paper-2); box-shadow: var(--shadow-1); }

@media (max-width: 47.99rem) {
  main { padding: 3rem 0 4rem; }
  section + section { margin-top: 3rem; }
  .site-header .wrap { min-height: auto; padding-top: .35rem; padding-bottom: .35rem; }
  .hero-search { min-height: 43rem; }
  .hero-search .wrap { padding-top: 6rem; padding-bottom: 1.75rem; }
  .hero-compact h1, .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
}

/* ============================================================
   Property results: a compact, featured-first browsing model.
   This takes its structural cues from contemporary property
   portals while keeping Saint Lucia Homes fact-only and neutral.
   ============================================================ */
.buy-results { padding-top: 1.55rem; }
.buy-result-titlebar { border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
.buy-crumb { margin: 0 0 .25rem; color: var(--ink-3); font-size: .75rem; }
.buy-results .page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.buy-results .page-head h1 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -.025em; }
.buy-results .page-head .meta-line { margin: 0; font-family: var(--mono); font-size: .72rem; color: var(--ink-3); white-space: nowrap; }
.buy-results .lede-sm { margin: .75rem 0 0; font-size: .875rem; max-width: 78ch; }
.buy-results .shelves { display: none !important; }
.buy-results .browse { display: block; margin-top: 1.25rem; }
.buy-results .rail { position: static; margin: 0 0 1rem; padding: .75rem; background: var(--teal); color: var(--teal-ink); border-color: var(--teal); }
.buy-results .rail-head { margin: 0 0 .5rem; }
.buy-results .rail-title { color: rgba(255,250,240,.76); }
.buy-results .link-btn { color: #fffaf0; }
.buy-results .rail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.buy-results .rail-fields > div { min-width: 0; }
.buy-results .rail label { color: rgba(255,250,240,.8); font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; }
.buy-results .rail input, .buy-results .rail select { width: 100%; min-height: 2.35rem; padding: .45rem .6rem; border: 1px solid rgba(255,250,240,.3); background: rgba(255,253,248,.96); color: var(--ink); font-size: .8rem; }
.buy-results .rail-check { display: flex; align-items: end; padding-bottom: .1rem; }
.buy-results .rail-check .check { display: flex; align-items: center; gap: .45rem; min-height: 2.35rem; padding: .45rem .6rem; background: rgba(255,250,240,.1); border: 1px solid rgba(255,250,240,.26); font-family: var(--sans); font-size: .75rem; letter-spacing: 0; text-transform: none; color: #fffaf0; }
.buy-results .rail-check input { width: auto; min-height: auto; accent-color: var(--amber-bright); }
.buy-results .results-col { max-width: 61rem; }
.buy-results .results-layout { display: block; }
.buy-results .results-aside { display: none; }
.buy-results .results-head { padding: .45rem 0 .85rem; border-bottom: 1px solid var(--line); }
.buy-results .results-head .count { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); }
.buy-results .view-toggle { margin: 0; border-radius: var(--radius-sm); }
.buy-results .listing-grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; max-width: 100%; }
.buy-results .listing-grid > li { min-width: 0; }
.buy-results .ptile { display: grid; grid-template-columns: minmax(16rem, 42%) minmax(0, 1fr); min-height: 13.7rem; border: 1px solid var(--line); background: var(--paper-2); overflow: hidden; }
.buy-results .ptile::before { width: 4px; background: var(--edge, var(--teal)); }
.buy-results .ptile.is-featured { grid-template-columns: minmax(20rem, 57%) minmax(0, 1fr); min-height: 21rem; border-color: color-mix(in srgb, var(--teal) 48%, var(--line)); }
.buy-results .pt-media { position: relative; min-height: 100%; overflow: hidden; isolation: isolate; background:
  linear-gradient(135deg, color-mix(in srgb, var(--band-3) 78%, #1e4141), color-mix(in srgb, var(--band-1) 28%, #d7e1d3) 53%, #264946); }
.buy-results .pt-media::before { content: ""; position: absolute; inset: 0; z-index: -3; background:
  radial-gradient(115% 90% at 80% 6%, rgba(255,249,232,.72), transparent 42%),
  linear-gradient(167deg, transparent 0 45%, rgba(17,55,53,.7) 46% 62%, transparent 63%),
  linear-gradient(15deg, #1d4c49 0 25%, transparent 26%); }
.buy-results .pt-media::after { content: ""; position: absolute; inset: auto -6% -13% -4%; z-index: -2; height: 57%; background:
  radial-gradient(closest-side at 25% 94%, #264e43 96%, transparent 97%),
  radial-gradient(closest-side at 57% 100%, #1b433c 96%, transparent 97%),
  radial-gradient(closest-side at 90% 95%, #315e4e 96%, transparent 97%); opacity: .88; }
.buy-results .pt-map { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; border: 0; background: transparent; opacity: .55; mix-blend-mode: screen; }
.buy-results .pt-map .mini-map use { fill: rgba(228,238,210,.68); stroke: rgba(30,65,58,.92); stroke-width: 1.35; }
.buy-results .pt-map .mini-map .dot { fill: #bd694c; stroke: #fffaf0; }
.buy-results .pt-map .pt-band { display: none; }
.buy-results .pt-media-place, .buy-results .pt-media-price, .buy-results .pt-featured { position: absolute; z-index: 1; color: #fffaf0; }
.buy-results .pt-media-place { left: .9rem; top: .8rem; padding: .15rem .42rem; font-family: var(--mono); font-size: .61rem; letter-spacing: .06em; text-transform: uppercase; background: rgba(23,54,51,.64); border: 1px solid rgba(255,250,240,.42); }
.buy-results .pt-media-price { left: 0; right: 0; bottom: 0; padding: .65rem .95rem; background: rgba(24,93,91,.92); font-family: var(--serif); font-size: 1.32rem; line-height: 1; }
.buy-results .pt-featured { top: .8rem; right: .8rem; padding: .2rem .55rem; background: #bd694c; font-family: var(--mono); font-size: .59rem; letter-spacing: .08em; text-transform: uppercase; }
.buy-results .pt-body { gap: .23rem; padding: 1rem 1.1rem .95rem; }
.buy-results .pt-kicker { margin: 0; color: var(--amber-bright); font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.buy-results .pt-price { font-size: clamp(1.35rem, 2.5vw, 1.82rem); }
.buy-results .pt-district { font-size: 1.08rem; margin: .1rem 0 0; }
.buy-results .pt-area { font-size: .72rem; }
.buy-results .pt-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .8rem; padding: .65rem 0; margin-top: .3rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .73rem; }
.buy-results .pt-facts span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-results .pt-facts b { display: block; margin-bottom: .06rem; color: var(--ink-3); font-family: var(--mono); font-size: .58rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.buy-results .pt-tags { margin-top: .48rem; }
.buy-results .pt-foot { gap: .35rem .7rem; align-items: center; padding-top: .6rem; font-size: .71rem; }
.buy-results .pt-foot .held { flex: 1 1 9rem; }
.buy-results .pt-evidence { position: relative; z-index: 2; }
.buy-results .pt-action { position: relative; z-index: 2; color: var(--teal); font-size: .72rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.buy-results .pt-action span { margin-left: .25rem; }
.buy-results .pt-action:hover { color: var(--amber-bright); text-decoration: underline; text-underline-offset: 3px; }
.buy-results .pt-action.is-muted { color: var(--ink-3); font-weight: 400; }
.buy-results a.pt-link::after { display: none; }
.buy-results .ptile:hover, .buy-results .ptile:focus-within { transform: none; border-color: color-mix(in srgb, var(--teal) 60%, var(--line)); box-shadow: 0 10px 28px rgba(37,59,59,.12); }
.buy-results .ptile:hover .pt-district, .buy-results .ptile:focus-within .pt-district { text-decoration: none; color: var(--teal); }
@media (min-width: 64rem) {
  .buy-results .rail-fields { grid-template-columns: 1.45fr 1.08fr 1.08fr 1fr 1fr .76fr 1fr .95fr; align-items: end; }
  .buy-results .rail-head { display: none; }
  .buy-results .rail-check { grid-column: auto; }
}
@media (max-width: 47.99rem) {
  .buy-results { padding-top: 1rem; }
  .buy-results .page-head { display: block; }
  .buy-results .page-head .meta-line { margin-top: .25rem; white-space: normal; }
  .buy-results .ptile, .buy-results .ptile.is-featured { grid-template-columns: 1fr; min-height: 0; }
  .buy-results .pt-media { min-height: 13.5rem; }
  .buy-results .ptile.is-featured .pt-media { min-height: 16rem; }
  .buy-results .pt-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Results-page portal treatment: deliberately compact, cool and functional. */
.buy-page { background: #f2f3f7; color: #252b3c; font-family: Arial, Helvetica, sans-serif; }
.buy-page::before { display: none; }
.buy-page .site-header { background: #fff; border-bottom-color: #dfe1e8; }
.buy-page .brand { color: #252b3c; }
.buy-page .brand b { font-family: Arial, Helvetica, sans-serif; font-size: 1.02rem; font-weight: 700; letter-spacing: -.035em; }
.buy-page .brand .tag { color: #6d7180; font-family: Arial, Helvetica, sans-serif; font-size: .57rem; letter-spacing: .08em; }
.buy-page .nav { font-family: Arial, Helvetica, sans-serif; font-size: .73rem; }
.buy-page .nav a { color: #252b3c; }
.buy-page .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 #00a99d; color: #252b3c; }
.buy-page .buy-results { background: #f2f3f7; padding-top: .8rem; min-height: 80vh; }
.buy-page .buy-result-titlebar { background: #fff; border: 0; padding: .45rem .8rem .55rem; }
.buy-page .buy-crumb { color: #626779; font-family: Arial, Helvetica, sans-serif; font-size: .69rem; }
.buy-page .buy-results .page-head h1 { color: #252b3c; font-family: Arial, Helvetica, sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: -.025em; }
.buy-page .buy-results .page-head .meta-line, .buy-page .buy-results .results-head .count { color: #626779; font-family: Arial, Helvetica, sans-serif; font-size: .76rem; }
.buy-page .buy-results .lede-sm { display: none; }
.buy-page .buy-results .rail { margin: 0; padding: .55rem .75rem .65rem; background: #060b33; border: 0; border-radius: var(--radius); }
.buy-page .buy-results .rail-title { color: rgba(255,255,255,.72); }
.buy-page .buy-results .rail label { color: rgba(255,255,255,.73); font-family: Arial, Helvetica, sans-serif; font-size: .61rem; font-weight: 600; letter-spacing: 0; }
.buy-page .buy-results .rail input, .buy-page .buy-results .rail select { min-height: 2rem; border: 1px solid #172050; background: #fff; border-radius: 5px; color: #333849; font-family: Arial, Helvetica, sans-serif; font-size: .73rem; }
.buy-page .buy-results .rail-check .check { min-height: 2rem; border-color: #384067; background: transparent; color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: .71rem; }
.buy-page .buy-results .browse { margin-top: .8rem; }
.buy-page .buy-results .results-col { max-width: 42.75rem; }
.buy-page .buy-results .results-aside { display: block; padding: 1rem; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(15,25,55,.14); color: #383e4e; }
.buy-page .buy-results .results-aside-kicker { margin: 0 0 .35rem; color: #078c93; font-size: .63rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.buy-page .buy-results .results-aside h2 { margin: 0 0 .55rem; color: #252b3c; font-family: Arial, Helvetica, sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.18; letter-spacing: -.025em; }
.buy-page .buy-results .results-aside p:not(.results-aside-kicker) { margin-bottom: .9rem; color: #62697a; font-size: .73rem; line-height: 1.45; }
.buy-page .buy-results .results-aside dl { display: grid; gap: .55rem; margin: 0 0 1rem; }
.buy-page .buy-results .results-aside dl div { padding-top: .5rem; border-top: 1px solid #e2e4ea; }
.buy-page .buy-results .results-aside dt { margin-bottom: .08rem; color: #717889; font-size: .58rem; font-weight: 700; text-transform: uppercase; }
.buy-page .buy-results .results-aside dd { margin: 0; color: #3d4353; font-size: .68rem; line-height: 1.35; }
.buy-page .buy-results .results-aside > a { color: #078c93; font-size: .7rem; font-weight: 700; text-decoration: none; }
.buy-page .buy-results .results-aside > a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 64rem) {
  .buy-page .buy-results .results-layout { display: grid; grid-template-columns: minmax(0, 42.75rem) minmax(12.5rem, 15rem); gap: 1.15rem; align-items: start; }
  .buy-page .buy-results .results-col { max-width: none; }
  .buy-page .buy-results .results-aside { position: sticky; top: 5rem; }
}
.buy-page .buy-results .results-head { padding: .48rem .1rem .58rem; border-bottom: 0; }
.buy-page .buy-results .view-toggle { gap: 0; padding: 0; overflow: hidden; border: 1px solid #d7d9e1; border-radius: 4px; background: #fff; }
.buy-page .buy-results .view-toggle button { padding: .42rem .85rem; color: #4c5366; border-radius: var(--radius-sm); font-family: Arial, Helvetica, sans-serif; font-size: .73rem; }
.buy-page .buy-results .view-toggle button[aria-pressed="true"] { background: #078c93; color: #fff; }
.buy-page .buy-results .listing-grid { gap: 1rem; }
.buy-page .buy-results .ptile { min-height: 12.4rem; border: 0; border-radius: 6px; box-shadow: 0 1px 3px rgba(15,25,55,.14); background: #fff; }
.buy-page .buy-results .ptile::before { width: 0; }
.buy-page .buy-results .ptile.is-featured { min-height: 17.7rem; border-radius: 6px; }
.buy-page .buy-results .pt-media { background: linear-gradient(135deg, #275c58, #7fc4bc 53%, #b6d2c3); }
.buy-page .buy-results .pt-media-place { top: .55rem; left: .55rem; background: rgba(4,11,47,.72); border: 0; border-radius: 3px; font-family: Arial, Helvetica, sans-serif; font-size: .58rem; }
.buy-page .buy-results .pt-featured { top: 0; right: 0; left: 0; padding: .22rem .55rem; background: #078c93; font-family: Arial, Helvetica, sans-serif; font-size: .59rem; text-align: center; }
.buy-page .buy-results .is-featured .pt-media-place { top: 1.8rem; }
.buy-page .buy-results .pt-media-price { padding: .65rem .75rem; background: #078c93; font-family: Arial, Helvetica, sans-serif; font-size: 1.02rem; font-weight: 700; }
.buy-page .buy-results .pt-body { padding: .8rem .9rem; }
.buy-page .buy-results .pt-kicker { color: #687080; font-family: Arial, Helvetica, sans-serif; font-size: .63rem; letter-spacing: 0; }
.buy-page .buy-results .pt-price { color: #1f2536; font-family: Arial, Helvetica, sans-serif; font-size: 1.18rem; font-weight: 700; letter-spacing: -.03em; }
.buy-page .buy-results .pt-price .u { color: #666d7e; font-family: Arial, Helvetica, sans-serif; font-size: .68rem; }
.buy-page .buy-results .pt-district { color: #262b3c; font-family: Arial, Helvetica, sans-serif; font-size: .86rem; font-weight: 700; letter-spacing: 0; }
.buy-page .buy-results .pt-area { color: #62697a; font-family: Arial, Helvetica, sans-serif; font-size: .7rem; }
.buy-page .buy-results .pt-facts { padding: .45rem 0; border-color: #e1e3e9; color: #363c4e; font-family: Arial, Helvetica, sans-serif; font-size: .68rem; }
.buy-page .buy-results .pt-facts b { color: #808695; font-family: Arial, Helvetica, sans-serif; font-size: .56rem; letter-spacing: .04em; }
.buy-page .buy-results .pt-tags .badge { border-color: #d7d9df; border-radius: 3px; color: #51586a; font-family: Arial, Helvetica, sans-serif; font-size: .63rem; }
.buy-page .buy-results .pt-foot { border-top-color: #e1e3e9; color: #606779; font-family: Arial, Helvetica, sans-serif; }
.buy-page .buy-results .pt-action { color: #078c93; font-family: Arial, Helvetica, sans-serif; font-size: .68rem; }
.buy-page .buy-results .src { border-color: #d7d9df; border-radius: 3px; background: #f7f8fa; font-family: Arial, Helvetica, sans-serif; font-size: .62rem; }
.buy-page .buy-results .ptile:hover, .buy-page .buy-results .ptile:focus-within { border: 0; box-shadow: 0 4px 14px rgba(15,25,55,.18); }
.buy-page .site-footer { background: #fff; border-top-color: #dfe1e8; }

/* Factual property profile: a gallery-and-sidebar layout without agency copy or imagery. */
.listing-page { background: #f2f3f7; color: #252b3c; font-family: Arial, Helvetica, sans-serif; }
.listing-page::before { display: none; }
.listing-page .site-header, .listing-page .site-footer { background: #fff; border-color: #dfe1e8; }
.listing-page .brand, .listing-page .nav a { color: #252b3c; }
.listing-page .brand b, .listing-page h1, .listing-page h2 { font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
.listing-page .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 #00a99d; }
.listing-detail-page { min-height: 70vh; padding: 1.2rem 0 3.5rem; background: #fff; }
.detail-back { margin: 0 0 .8rem; font-size: .76rem; }
.detail-back a { color: #4e5668; text-decoration: none; }
.detail-back a:hover { color: #078c93; text-decoration: underline; }
.detail-layout { display: grid; gap: 1.4rem; }
.detail-primary { min-width: 0; }
.detail-gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(10rem, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .45rem; height: min(54vw, 26rem); }
.detail-map { position: relative; overflow: hidden; background: linear-gradient(135deg, #275c58, #7fc4bc 53%, #b6d2c3); }
.detail-map::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(152deg, transparent 0 41%, rgba(11,66,59,.66) 42% 61%, transparent 62%), radial-gradient(90% 70% at 80% 6%, rgba(255,248,225,.78), transparent 52%); }
.detail-map .pt-map { position: absolute; inset: 0; z-index: 1; aspect-ratio: auto; border: 0; background: transparent; opacity: .55; mix-blend-mode: screen; }
.detail-map .mini-map use { fill: rgba(228,238,210,.68); stroke: rgba(30,65,58,.92); stroke-width: 1.35; }
.detail-map .pt-band { display: none; }
.detail-map-main { grid-row: 1 / span 2; }
.detail-map-side.second { grid-column: 2; grid-row: 2; }
.detail-gallery-label { position: absolute; z-index: 2; left: .65rem; bottom: .65rem; padding: .2rem .4rem; background: rgba(5,11,51,.73); color: #fff; font-size: .58rem; }
.detail-overview { padding: 1rem 0 1.25rem; border-bottom: 1px solid #e0e2e8; }
.detail-location { margin: 0 0 .3rem; color: #4d5667; font-size: .8rem; font-weight: 700; }
.detail-overview h1 { margin: 0 0 .28rem; color: #252b3c; font-size: clamp(1.35rem, 2.7vw, 2rem); letter-spacing: -.035em; }
.detail-price { margin: 0; color: #11182b; font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.04em; }
.detail-price span { color: #747b8a; font-size: .76rem; font-weight: 400; letter-spacing: 0; }
.detail-area { margin: .3rem 0 1rem; color: #737a89; font-size: .73rem; }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 0; padding-top: .85rem; border-top: 1px solid #e0e2e8; }
.detail-facts div, .detail-record-grid div { min-width: 0; }
.detail-facts dt, .detail-record-grid dt { margin-bottom: .1rem; color: #858b99; font-size: .58rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.detail-facts dd, .detail-record-grid dd { margin: 0; color: #303747; font-size: .76rem; }
.detail-record { padding-top: 1.25rem; }
.detail-record h2 { margin: 0 0 .55rem; color: #252b3c; font-size: 1.08rem; letter-spacing: -.025em; }
.detail-record p { max-width: 65ch; color: #606878; font-size: .82rem; line-height: 1.5; }
.detail-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; margin: 1rem 0 0; padding: 1rem 0; border-top: 1px solid #e0e2e8; border-bottom: 1px solid #e0e2e8; }
.detail-source-card { align-self: start; padding: 1.1rem; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(15,25,55,.13); }
.detail-source-kicker { margin: 0 0 .28rem; color: #717889; font-size: .61rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.detail-source-card h2 { margin: 0 0 .65rem; color: #252b3c; font-size: 1.04rem; line-height: 1.2; letter-spacing: -.025em; }
.detail-source-card > p:not(.detail-source-kicker) { color: #62697a; font-size: .76rem; line-height: 1.45; }
.detail-source-card .src { display: inline-flex; margin: .1rem 0 1rem; border-color: #d7d9df; border-radius: 3px; background: #f7f8fa; font-family: Arial, Helvetica, sans-serif; font-size: .63rem; }
.detail-source-link { display: block; padding: .72rem .8rem; background: #00cdb8; color: #061038; font-size: .76rem; font-weight: 700; text-align: center; text-decoration: none; }
.detail-source-link:hover { background: #00bca9; text-decoration: none; }
.detail-secondary-link { display: block; margin-top: .8rem; color: #078c93; font-size: .73rem; text-align: center; text-decoration: none; }
.detail-secondary-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.detail-empty { max-width: 37rem; padding: 2.5rem 0; }
.detail-empty h1 { color: #252b3c; font-size: 1.7rem; }
.detail-empty p, .detail-loading { color: #62697a; }
@media (min-width: 64rem) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) 18rem; align-items: start; }
  .detail-source-card { position: sticky; top: 5rem; }
  .detail-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 47.99rem) {
  .listing-detail-page { padding-top: 1rem; }
  .detail-gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 16rem; }
  .detail-map-side { display: none; }
  .detail-facts, .detail-record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Graduated Concept B: featured results open with a gallery, then the factual record. */
.buy-page .buy-results .pt-featured-property {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(18rem, 1fr);
  grid-template-rows: 1.8rem minmax(15.5rem, 1fr) 4.2rem;
  min-height: 21.5rem;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15,25,55,.14);
}
.buy-page .buy-results .pt-featured-property::before { display: none; }
.buy-page .buy-results .pt-featured-bar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .55rem;
  background: #078c93;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.buy-page .buy-results .pt-featured-tools {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .02em;
}
.buy-page .buy-results .pt-featured-gallery {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1.65fr .85fr;
  gap: 3px;
  min-width: 0;
  min-height: 0;
  background: #fff;
}
.buy-page .buy-results .pt-featured-photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background-image: linear-gradient(145deg, rgba(6,11,51,.02), rgba(6,11,51,.48)), url("saint-lucia-luxury-hero.jpg");
  background-position: var(--photo-position, center);
  background-size: cover;
}
.buy-page .buy-results .pt-featured-photo-main { min-height: 15.5rem; }
.buy-page .buy-results .pt-featured-photo-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 3px; min-height: 0; }
.buy-page .buy-results .pt-featured-photo span {
  position: absolute;
  left: .65rem;
  bottom: .6rem;
  padding: .18rem .35rem;
  color: #fff;
  background: rgba(6,11,51,.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .56rem;
  line-height: 1.2;
}
.buy-page .buy-results .pt-featured-price {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .55rem .75rem;
  background: #078c93;
  color: #fff;
}
.buy-page .buy-results .pt-featured-price strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.24rem;
  line-height: 1;
}
.buy-page .buy-results .pt-featured-price span {
  margin-top: .3rem;
  color: rgba(255,255,255,.84);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .6rem;
}
.buy-page .buy-results .pt-featured-info {
  grid-column: 2;
  grid-row: 2 / 4;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: .85rem .9rem .7rem;
  overflow: hidden;
  background: #fff;
}
.buy-page .buy-results .pt-featured-info .pt-kicker { margin-bottom: .3rem; }
.buy-page .buy-results .pt-featured-info .pt-district { margin: 0; }
.buy-page .buy-results .pt-featured-type { margin: .22rem 0 .55rem; color: #4d5362; font-size: .75rem; }
.buy-page .buy-results .pt-featured-description { margin: 0; color: #62697a; font-size: .73rem; line-height: 1.42; }
.buy-page .buy-results .pt-featured-info .pt-facts { margin-top: .65rem; }
.buy-page .buy-results .pt-featured-info .pt-tags { margin-top: .35rem; }
.buy-page .buy-results .pt-featured-info .pt-since { margin-top: .35rem; }
.buy-page .buy-results .pt-featured-held { margin-top: auto; padding-top: .5rem; color: #62697a; font-size: .68rem; }
.buy-page .buy-results .pt-featured-held span { display: block; margin-bottom: .1rem; color: #808695; font-size: .57rem; font-weight: 700; text-transform: uppercase; }
.buy-page .buy-results .pt-featured-held b { color: #303747; font-weight: 700; }
.buy-page .buy-results .pt-featured-source { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid #e1e3e9; }
.buy-page .buy-results .pt-featured-source .pt-evidence { min-width: 0; }
.buy-page .buy-results .pt-featured-source .src { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-page .buy-results .pt-featured-source .pt-action { flex: 0 0 auto; }
@media (max-width: 47.99rem) {
  .buy-page .buy-results .pt-featured-property {
    grid-template-columns: 1fr;
    grid-template-rows: 1.8rem 14rem 3.7rem auto;
    min-height: 0;
  }
  .buy-page .buy-results .pt-featured-gallery { grid-column: 1; grid-row: 2; }
  .buy-page .buy-results .pt-featured-photo-main { min-height: 14rem; }
  .buy-page .buy-results .pt-featured-price { grid-column: 1; grid-row: 3; }
  .buy-page .buy-results .pt-featured-info { grid-column: 1; grid-row: 4; min-height: 17rem; }
}

/* Photo-first continuation for the factual property profile. */
.listing-page .detail-photo {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  background-image: linear-gradient(145deg, rgba(6,11,51,.02), rgba(6,11,51,.42)), url("saint-lucia-luxury-hero.jpg");
  background-position: var(--photo-position, center);
  background-size: cover;
}
.listing-page .detail-photo-main { grid-row: 1 / span 2; }
.listing-page .detail-photo-side.second { grid-column: 2; grid-row: 2; }
@media (max-width: 47.99rem) {
  .listing-page .detail-photo-main { grid-row: auto; }
  .listing-page .detail-photo-side { display: none; }
}

/* ============================================================
   Global property-experience continuity
   Browse and detail remain purpose-built portal layouts, but
   inherit the same editorial system used by every other page.
   ============================================================ */
.buy-page, .listing-page {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}
.buy-page::before, .listing-page::before { display: block; }
.buy-page .site-header, .listing-page .site-header {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom-color: var(--line);
}
.buy-page .site-footer, .listing-page .site-footer {
  background: #e8dfcf;
  border-top-color: var(--line);
}
.buy-page .brand, .listing-page .brand,
.buy-page .nav a, .listing-page .nav a { color: var(--ink); }
.buy-page .brand b, .listing-page .brand b {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: -.01em;
}
.buy-page .brand .tag, .listing-page .brand .tag {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .13em;
}
.buy-page .nav, .listing-page .nav { font-family: var(--sans); font-size: .82rem; }
.buy-page .nav a[aria-current="page"], .listing-page .nav a[aria-current="page"] {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--amber-bright);
}

/* Browse */
.buy-page .buy-results {
  min-height: 80vh;
  padding-top: 2rem;
  background: transparent;
}
.buy-page .buy-result-titlebar {
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.buy-page .buy-crumb {
  color: var(--amber);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.buy-page .buy-results .page-head h1 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -.035em;
}
.buy-page .buy-results .page-head .meta-line,
.buy-page .buy-results .results-head .count {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: .7rem;
}
.buy-page .buy-results .rail {
  padding: .8rem .9rem .9rem;
  border: 1px solid color-mix(in srgb, var(--teal) 75%, var(--line));
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--teal-ink);
}
.buy-page .buy-results .rail label {
  color: color-mix(in srgb, var(--teal-ink) 80%, transparent);
  font-family: var(--mono);
  font-size: .59rem;
  font-weight: 400;
  letter-spacing: .08em;
}
.buy-page .buy-results .rail input,
.buy-page .buy-results .rail select {
  min-height: 2.3rem;
  border: 1px solid color-mix(in srgb, var(--teal-ink) 42%, transparent);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--ink);
  font-family: var(--sans);
  font-size: .8rem;
}
.buy-page .buy-results .rail-check .check {
  min-height: 2.3rem;
  border-color: color-mix(in srgb, var(--teal-ink) 42%, transparent);
  background: color-mix(in srgb, var(--teal-ink) 8%, transparent);
  color: var(--teal-ink);
  font-family: var(--sans);
  font-size: .74rem;
}
.buy-page .buy-results .rail-check input { accent-color: var(--amber-bright); }
.buy-page .buy-results .results-col { max-width: 46rem; }
.buy-page .buy-results .results-aside {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-1);
  color: var(--ink);
}
.buy-page .buy-results .results-aside-kicker {
  color: var(--amber);
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .09em;
}
.buy-page .buy-results .results-aside h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -.025em;
}
.buy-page .buy-results .results-aside p:not(.results-aside-kicker) { color: var(--ink-2); font-size: .78rem; }
.buy-page .buy-results .results-aside dl div { border-top-color: var(--line); }
.buy-page .buy-results .results-aside dt {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .07em;
}
.buy-page .buy-results .results-aside dd { color: var(--ink-2); font-size: .71rem; }
.buy-page .buy-results .results-aside > a { color: var(--teal); font-size: .74rem; }
@media (min-width: 64rem) {
  .buy-page .buy-results .results-layout { grid-template-columns: minmax(0, 46rem) minmax(14rem, 17rem); gap: 1.5rem; }
  .buy-page .buy-results .results-aside { top: 6.2rem; }
}
.buy-page .buy-results .view-toggle {
  border-color: var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}
.buy-page .buy-results .view-toggle button {
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: .76rem;
}
.buy-page .buy-results .view-toggle button[aria-pressed="true"] { background: var(--teal); color: var(--teal-ink); }
.buy-page .buy-results .ptile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  background: var(--paper-2);
}
.buy-page .buy-results .ptile:hover,
.buy-page .buy-results .ptile:focus-within {
  border: 1px solid color-mix(in srgb, var(--teal) 58%, var(--line));
  box-shadow: var(--shadow-2);
}
.buy-page .buy-results .pt-media { background: linear-gradient(135deg, #315f59, #84b7a9 53%, #d4ddca); }
.buy-page .buy-results .pt-media-place { background: rgba(37,59,59,.76); border: 0; border-radius: var(--radius-sm); font-family: var(--mono); }
.buy-page .buy-results .pt-featured { background: var(--amber-bright); font-family: var(--mono); }
.buy-page .buy-results .pt-media-price { background: var(--teal); font-family: var(--serif); font-weight: 400; }
.buy-page .buy-results .pt-body { padding: 1rem 1.1rem; }
.buy-page .buy-results .pt-kicker {
  color: var(--amber);
  font-family: var(--mono);
  font-size: .61rem;
  letter-spacing: .09em;
}
.buy-page .buy-results .pt-price { color: var(--ink); font-family: var(--serif); font-weight: 400; }
.buy-page .buy-results .pt-price .u { color: var(--ink-3); font-family: var(--sans); font-weight: 400; }
.buy-page .buy-results .pt-district { color: var(--ink); font-family: var(--sans); font-weight: 500; }
.buy-page .buy-results .pt-area,
.buy-page .buy-results .pt-foot { color: var(--ink-3); font-family: var(--sans); }
.buy-page .buy-results .pt-facts { border-color: var(--line); color: var(--ink-2); font-family: var(--sans); }
.buy-page .buy-results .pt-facts b { color: var(--ink-3); font-family: var(--mono); font-weight: 400; }
.buy-page .buy-results .pt-tags .badge,
.buy-page .buy-results .src {
  border-color: var(--line-2);
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink-2);
  font-family: var(--mono);
}
.buy-page .buy-results .pt-action { color: var(--teal); font-family: var(--sans); }

/* Featured gallery */
.buy-page .buy-results .pt-featured-property {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-1);
}
.buy-page .buy-results .pt-featured-bar,
.buy-page .buy-results .pt-featured-price { background: var(--teal); color: var(--teal-ink); }
.buy-page .buy-results .pt-featured-bar { font-family: var(--mono); font-weight: 400; }
.buy-page .buy-results .pt-featured-price strong { font-family: var(--serif); font-weight: 400; }
.buy-page .buy-results .pt-featured-price span { color: color-mix(in srgb, var(--teal-ink) 82%, transparent); font-family: var(--mono); }
.buy-page .buy-results .pt-featured-info { background: var(--paper-2); }
.buy-page .buy-results .pt-featured-type,
.buy-page .buy-results .pt-featured-description { color: var(--ink-2); }
.buy-page .buy-results .pt-featured-held { color: var(--ink-2); }
.buy-page .buy-results .pt-featured-held span { color: var(--ink-3); font-family: var(--mono); font-weight: 400; }
.buy-page .buy-results .pt-featured-held b { color: var(--ink); }
.buy-page .buy-results .pt-featured-source { border-top-color: var(--line); }

/* Listing profile */
.listing-detail-page { padding-top: 2rem; background: transparent; }
.detail-back { font-family: var(--mono); font-size: .7rem; }
.detail-back a { color: var(--teal); }
.detail-overview { border-bottom-color: var(--line); }
.detail-location { color: var(--amber); font-family: var(--mono); font-size: .66rem; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; }
.listing-page .detail-overview h1,
.listing-page .detail-record h2,
.listing-page .detail-source-card h2,
.listing-page .detail-empty h1 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
}
.detail-price { color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; }
.detail-price span, .detail-area { color: var(--ink-3); }
.detail-facts, .detail-record-grid { border-color: var(--line); }
.detail-facts dt, .detail-record-grid dt {
  color: var(--ink-3);
  font-family: var(--mono);
  font-weight: 400;
}
.detail-facts dd, .detail-record-grid dd { color: var(--ink-2); }
.detail-record p, .detail-empty p, .detail-loading { color: var(--ink-2); }
.detail-source-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-1);
}
.detail-source-kicker {
  color: var(--amber);
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .09em;
}
.detail-source-card > p:not(.detail-source-kicker) { color: var(--ink-2); }
.detail-source-card .src {
  border-color: var(--line-2);
  border-radius: 999px;
  background: var(--paper-3);
  font-family: var(--mono);
}
.detail-source-link { border-radius: var(--radius-sm); background: var(--grad-cta); color: var(--teal-ink); font-family: var(--sans); }
.detail-source-link:hover { background: var(--grad-cta-hover); }
.detail-secondary-link { color: var(--teal); font-family: var(--sans); }

/* Final cascade closure for the older browse/detail markup. These selectors
   intentionally only map existing components to the shared semantic roles. */
.bt-unit { font-family: var(--sans); }
.form-section-title { margin-top: 1.5rem; }
.table-section { margin-top: .75rem; }
.table-section > .inline-note { margin: .75rem 0 0; }
.buy-page .featured,
.buy-page .featured-property {
  border-color: var(--line);
  border-radius: calc(var(--radius) + 3px);
  box-shadow: var(--shadow-2);
}
.buy-page .featured-head,
.buy-page .featured-price,
.buy-page .featured-property__head,
.buy-page .featured-property__price { background: var(--teal); color: #f7f3e9; }
.buy-page .featured-copy,
.buy-page .featured-property__body { background: var(--surface); }
.buy-page .featured-facts,
.buy-page .featured-property__meta { background: var(--surface-muted); }
.buy-page .listing-grid .ptile,
.buy-page .results-grid .ptile { background: var(--surface); border-radius: calc(var(--radius) + 2px); }
.listing-page .detail-layout > *,
.listing-page .detail-source-card,
.listing-page .detail-facts,
.listing-page .detail-summary {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.listing-page .detail-gallery { border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-2); }

/* Reference listing-card skeleton: gallery and price at left, factual record at right. */
.pt-reference-card {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(22rem, 1fr);
  grid-template-rows: minmax(12.5rem, 1fr) 5.55rem;
  min-height: 18.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-1);
}
.pt-reference-card::before { display: none; }
.pt-reference-card:hover,
.pt-reference-card:focus-within {
  transform: none;
  border-color: color-mix(in srgb, var(--teal) 58%, var(--line));
  box-shadow: var(--shadow-2);
}
.pt-reference-gallery {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  min-width: 0;
  min-height: 0;
  background: var(--paper-2);
}
.pt-reference-photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background-image:
    linear-gradient(145deg, rgba(18, 47, 45, .05), rgba(18, 47, 45, .38)),
    url("saint-lucia-luxury-hero.jpg");
  background-position: var(--photo-position, center);
  background-size: cover;
}
.pt-reference-photo-two {
  filter: saturate(.84) brightness(.92);
}
.pt-reference-count {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: rgba(16, 31, 31, .82);
  color: #fffaf0;
  font: .67rem var(--mono);
}
.pt-reference-image-note {
  position: absolute;
  right: .6rem;
  bottom: .55rem;
  left: .6rem;
  color: rgba(255, 250, 240, .9);
  font: .56rem var(--mono);
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .72);
}
.pt-reference-price {
  display: flex;
  grid-column: 1;
  grid-row: 2;
  flex-direction: column;
  justify-content: center;
  padding: .8rem 1rem;
  background: #ecebee;
  color: #424654;
}
.pt-reference-price strong {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 2.2vw, 1.62rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.05;
}
.pt-reference-price span {
  margin-top: .35rem;
  color: #656a78;
  font-size: .72rem;
}
.pt-reference-info {
  position: relative;
  display: flex;
  grid-column: 2;
  grid-row: 1 / 3;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem 1.25rem 1rem;
  background: var(--paper-2);
}
.pt-reference-close {
  position: absolute;
  top: .72rem;
  right: .8rem;
  color: var(--ink-2);
  font-size: 2rem;
  font-weight: 300;
  line-height: .8;
}
.pt-reference-info .pt-district {
  max-width: calc(100% - 2rem);
  margin: 0;
  color: #202539;
  font-family: var(--sans);
  font-size: clamp(.94rem, 1.7vw, 1.12rem);
  font-weight: 700;
  line-height: 1.3;
}
.pt-reference-info .pt-district a { color: inherit; text-decoration: none; }
.pt-reference-info .pt-district a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.pt-reference-type {
  margin: .45rem 0 .35rem;
  color: #424858;
  font-size: .82rem;
  font-weight: 600;
}
.pt-reference-description {
  margin: 0;
  color: #626878;
  font-size: .77rem;
  line-height: 1.4;
}
.pt-reference-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .65rem;
}
.pt-reference-badge {
  display: inline-flex;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: #247362;
  color: #fffaf0;
  font: .62rem var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pt-reference-badge.is-prime { background: var(--amber); }
.pt-reference-card .pt-reference-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
  margin: .7rem 0 0;
  padding: .55rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .7rem;
}
.pt-reference-card .pt-reference-facts span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-reference-card .pt-reference-facts b {
  display: block;
  margin-bottom: .08rem;
  color: var(--ink-3);
  font: .56rem var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.pt-reference-held {
  margin: .55rem 0 0;
  overflow: hidden;
  color: #5d6371;
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-reference-held b { color: #353a4a; }
.pt-reference-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: auto;
  padding-top: .7rem;
}
.pt-reference-actions .pt-evidence {
  min-width: 0;
  overflow: hidden;
}
.pt-reference-actions .src {
  display: block;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #5c6271;
  font: .65rem var(--sans);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-reference-actions .pt-action {
  flex: 0 0 auto;
  color: #283043;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.pt-reference-save {
  flex: 0 0 auto;
  color: #283043;
  font-size: .74rem;
  font-weight: 600;
  white-space: nowrap;
}
.pt-reference-card a.pt-link::after { display: none; }
#home-shelves .shelf-track { grid-auto-columns: min(94vw, 64rem); }
.shelf-track .pt-reference-card { min-height: 18.25rem; }
.buy-results .pt-reference-card {
  grid-template-columns: minmax(0, 1.34fr) minmax(22rem, 1fr);
  grid-template-rows: minmax(12.5rem, 1fr) 5.55rem;
  min-height: 18.25rem;
}
@media (max-width: 47.99rem) {
  .pt-reference-card,
  .buy-results .pt-reference-card {
    grid-template-columns: 1fr;
    grid-template-rows: 13rem auto auto;
    min-height: 0;
  }
  .pt-reference-gallery { grid-column: 1; grid-row: 1; }
  .pt-reference-price { grid-column: 1; grid-row: 2; }
  .pt-reference-info { grid-column: 1; grid-row: 3; min-height: 17rem; }
  .pt-reference-card .pt-reference-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   Mobile property app - an intentional app shell layered over
   the same routes and live data. Desktop keeps the full portal.
   ============================================================ */
.mobile-app-chrome { display: none; }
.detail-mobile-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem; }
.detail-mobile-actions > * {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem;
  padding: .55rem .85rem; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--paper-2); color: var(--ink); font: 600 .78rem var(--sans); text-decoration: none;
}
.detail-mobile-actions .detail-save { cursor: pointer; background: var(--teal); color: var(--teal-ink); border-color: var(--teal); }
.pt-reference-save {
  appearance: none; border: 0; padding: 0; background: transparent; cursor: pointer; font: inherit;
}

@media (max-width: 47.99rem) {
  html { background: #f4efe5; }
  body { background: #f4efe5; padding-bottom: 5.85rem; overflow-x: hidden; }
  .site-header { display: none; }
  .mobile-app-chrome { display: block; }
  .mobile-app-top {
    position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
    min-height: 4.4rem; padding: max(.75rem, env(safe-area-inset-top)) 1rem .75rem; border-bottom: 1px solid rgba(37, 59, 59, .12);
    background: rgba(251, 248, 241, .94); box-shadow: 0 2px 16px rgba(37, 59, 59, .06);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .mobile-app-back {
    display: grid; flex: 0 0 auto; width: 2.4rem; height: 2.4rem; margin-right: -.25rem; place-items: center;
    border: 0; border-radius: .8rem; background: #e7eee9; color: #275b5b; font: 1.45rem/1 var(--sans); cursor: pointer;
  }
  .mobile-app-brand { display: inline-flex; min-width: 0; align-items: center; gap: .55rem; color: #253b3b; text-decoration: none; }
  .mobile-app-brand img { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: .6rem; }
  .mobile-app-brand span { display: grid; min-width: 0; line-height: 1.05; }
  .mobile-app-brand b { overflow: hidden; font: 500 1rem var(--serif); text-overflow: ellipsis; white-space: nowrap; }
  .mobile-app-brand small { margin-top: .22rem; color: #687979; font: .5rem var(--mono); letter-spacing: .11em; }
  .mobile-app-context { max-width: 34%; overflow: hidden; color: #687979; font: .62rem var(--mono); letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
  .mobile-app-bottom {
    position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr);
    min-height: 5.25rem; padding: .45rem max(1rem, env(safe-area-inset-right)) calc(.45rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    border-top: 1px solid rgba(37, 59, 59, .14); background: rgba(251, 248, 241, .97);
    box-shadow: 0 -10px 28px rgba(37, 59, 59, .08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .mobile-app-bottom a, .mobile-app-bottom button { display: grid; place-items: center; align-content: center; gap: .16rem; min-height: 3.65rem; border: 0; border-radius: 1rem; background: transparent; color: #687979; font: .61rem var(--sans); font-weight: 600; text-decoration: none; cursor: pointer; }
  .mobile-app-bottom svg { width: 1.28rem; height: 1.28rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
  .mobile-app-bottom a[aria-current="page"], .mobile-app-bottom button[aria-current="page"] { color: #275b5b; background: #d9e6df; }
  .mobile-more-layer { position: fixed; z-index: 70; inset: 0; display: grid; align-items: end; }
  .mobile-more-layer[hidden] { display: none; }
  .mobile-more-scrim { position: absolute; inset: 0; border: 0; background: rgba(16, 38, 38, .48); }
  .mobile-more-sheet {
    position: relative; z-index: 1; max-height: min(42rem, 82svh); overflow: auto; padding: 1.2rem 1rem calc(6.65rem + env(safe-area-inset-bottom));
    border-radius: 1.5rem 1.5rem 0 0; background: #fbf8f1; box-shadow: 0 -18px 50px rgba(8, 30, 30, .24);
  }
  .mobile-more-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
  .mobile-more-head span { display: block; margin-bottom: .2rem; color: #bd694c; font: .61rem var(--mono); letter-spacing: .13em; text-transform: uppercase; }
  .mobile-more-head h2 { margin: 0; color: #253b3b; font-size: 1.7rem; }
  .mobile-more-head button { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 0; border-radius: .75rem; background: #e7eee9; color: #275b5b; font: 1.5rem/1 var(--sans); cursor: pointer; }
  .mobile-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .mobile-more-grid a { min-height: 5.9rem; padding: .9rem; border: 1px solid rgba(37, 91, 91, .14); border-radius: 1rem; background: #fffdf8; color: #253b3b; text-decoration: none; box-shadow: 0 4px 12px rgba(37, 59, 59, .05); }
  .mobile-more-grid a:active { transform: scale(.98); }
  .mobile-more-grid b { display: block; margin-bottom: .3rem; font: 500 1rem var(--serif); line-height: 1.05; }
  .mobile-more-grid span, .mobile-more-note { display: block; color: #687979; font-size: .68rem; line-height: 1.35; }
  .mobile-more-note { margin: 1rem 0 0; color: #687979; }
  body.is-mobile-navigating main { opacity: .38; transform: translateY(.35rem); pointer-events: none; }
  main { transition: opacity .16s ease, transform .16s ease; }

  main { padding: 1.25rem 0 2.25rem; }
  .wrap { padding-right: 1rem; padding-left: 1rem; }
  section + section { margin-top: 1.5rem; }
  h1 { font-size: clamp(2.05rem, 10vw, 2.8rem); line-height: .98; }
  h2 { font-size: clamp(1.45rem, 7vw, 1.9rem); line-height: 1.03; }
  p, .lede, .muted, .src, dd, td, th { overflow-wrap: anywhere; }
  input, select, button, textarea { max-width: 100%; }

  /* Search-first landing screen. */
  .home-page main { padding-top: 0; }
  .home-hero {
    min-height: 0;
    padding: 2rem 0 1.15rem;
    border-bottom: 0;
    background-color: #173f40;
    background-image:
      linear-gradient(180deg, rgba(10, 41, 42, .88) 0%, rgba(14, 61, 61, .73) 47%, rgba(12, 47, 47, .86) 100%),
      linear-gradient(90deg, rgba(8, 34, 35, .70) 0%, rgba(8, 34, 35, .22) 100%),
      url("saint-lucia-luxury-hero.jpg");
    background-position: center, center, 56% center;
    background-size: cover;
  }
  .home-hero::after { border-color: rgba(255, 250, 240, .22); box-shadow: 0 0 0 1.5rem rgba(255, 250, 240, .035), 0 0 0 3.25rem rgba(255, 250, 240, .02); }
  .home-hero-grid { display: block; }
  .home-hero-copy .eyebrow { margin-bottom: .65rem; color: #f0c98e; font-size: .62rem; letter-spacing: .1em; text-shadow: 0 1px 14px rgba(0, 0, 0, .48); }
  .home-hero h1 { max-width: 9ch; margin-bottom: .65rem; color: #fffaf0; font-size: clamp(3.1rem, 16vw, 4.2rem); letter-spacing: -.055em; text-shadow: 0 2px 24px rgba(0, 0, 0, .32); }
  .home-hero .lede { margin-bottom: .8rem; color: rgba(255, 250, 240, .92); font-size: 1rem; line-height: 1.48; text-shadow: 0 1px 14px rgba(0, 0, 0, .4); }
  .home-hero-rule { width: 4rem; height: 3px; margin: .7rem 0 1.15rem; background: #bd694c; }
  .home-hero-search { margin: 0; padding: .85rem; border: 1px solid rgba(37, 91, 91, .22); border-radius: 1.25rem; background: #fbf8f1; box-shadow: 0 12px 28px rgba(37, 59, 59, .09); }
  .segmented { gap: .25rem; padding: .25rem; border: 0; border-radius: .85rem; background: #e8dfd0; }
  .segmented label { flex: 1 1 0; min-width: 0; }
  .segmented label span { display: grid; min-height: 2.5rem; place-items: center; padding: .4rem; border-radius: .62rem; font-size: .78rem; text-align: center; }
  .home-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .75rem; }
  .home-search-field { min-width: 0; }
  .home-search-field span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .home-search-fields select, .home-search-fields input { width: 100%; min-width: 0; min-height: 2.8rem; padding-right: .4rem; font-size: .83rem; }
  .home-search-fields .btn { grid-column: 1 / -1; min-height: 3rem; border-radius: .85rem; }
  .home-hero-meta { gap: .45rem .85rem; margin-top: 1rem; color: rgba(255, 250, 240, .78); font-size: .72rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
  .home-hero-meta strong { color: #fffaf0; }
  .home-page .bento { grid-template-columns: 1fr; gap: .75rem; }
  .home-page .bento .b-2, .home-page .bento .b-island { grid-column: auto; }
  .home-page .bt { min-height: 7.5rem; padding: 1rem; border-radius: 1rem; }
  .home-page .b-island .bt { display: block; min-height: 17.5rem; }
  .home-page .b-island .map { float: right; width: 40%; max-height: 14rem; margin: 0 0 .45rem .85rem; }
  .home-page .shelf-track { grid-auto-columns: min(88vw, 22rem); padding-left: 0; -webkit-mask-image: none; mask-image: none; }

  /* Browse returns dense, thumb-led property results. */
  .buy-page main, .listing-page main { padding-top: 1rem; }
  .buy-page .hero-compact { padding-bottom: .85rem; }
  .buy-page .hero-compact h1 { font-size: 2.1rem; }
  .buy-page .search { padding: .75rem; border-radius: 1rem; }
  .buy-page .search-grid, .buy-page .search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy-page .results-aside { padding: .75rem; border-radius: 1rem; }
  .buy-page .buy-results { gap: .75rem; }
  .buy-page .buy-results .pt-reference-card {
    display: grid; grid-template-columns: 8.25rem minmax(0, 1fr); grid-template-rows: 1fr;
    min-height: 10.75rem; border-radius: 1rem;
  }
  .buy-page .buy-results .pt-reference-gallery { grid-column: 1; grid-row: 1; grid-template-columns: 1fr; min-height: 10.75rem; }
  .buy-page .buy-results .pt-reference-photo-two, .buy-page .buy-results .pt-reference-image-note { display: none; }
  .buy-page .buy-results .pt-reference-count { top: .5rem; left: .5rem; }
  .buy-page .buy-results .pt-reference-price { display: none; }
  .buy-page .buy-results .pt-reference-info { grid-column: 2; grid-row: 1; min-height: 0; padding: .8rem .78rem; }
  .buy-page .buy-results .pt-reference-close, .buy-page .buy-results .pt-reference-description, .buy-page .buy-results .pt-reference-held, .buy-page .buy-results .pt-evidence { display: none; }
  .buy-page .buy-results .pt-reference-info .pt-district { max-width: 100%; font-size: .92rem; overflow-wrap: anywhere; }
  .buy-page .buy-results .pt-reference-type { margin: .22rem 0; font-size: .68rem; }
  .buy-page .buy-results .pt-reference-badges { margin-top: .35rem; }
  .buy-page .buy-results .pt-reference-card .pt-reference-facts { display: none; }
  .buy-page .buy-results .pt-reference-actions { gap: .45rem; padding-top: .45rem; }
  .buy-page .buy-results .pt-reference-actions .pt-action { overflow: hidden; max-width: 9rem; text-overflow: ellipsis; font-size: .65rem; white-space: nowrap; }
  .buy-page .buy-results .pt-reference-save { min-height: 2rem; color: #275b5b; font-size: .68rem; }
  .buy-page .view-toggle { margin-top: .75rem; }
  .mobile-filter-launcher { display: inline-flex; align-items: center; justify-content: center; min-height: 2.55rem; padding: .55rem .85rem; border: 1px solid rgba(37, 91, 91, .24); border-radius: .8rem; background: #e7eee9; color: #275b5b; font: 700 .72rem var(--sans); cursor: pointer; }
  .mobile-filter-layer { position: fixed; z-index: 65; inset: 0; display: grid; align-items: end; }
  .mobile-filter-layer[hidden] { display: none; }
  .mobile-filter-scrim { position: absolute; inset: 0; border: 0; background: rgba(16, 38, 38, .48); }
  .mobile-filter-sheet { position: relative; z-index: 1; max-height: 86svh; overflow: auto; padding: 1rem 1rem calc(6.6rem + env(safe-area-inset-bottom)); border-radius: 1.45rem 1.45rem 0 0; background: #fbf8f1; box-shadow: 0 -18px 50px rgba(8, 30, 30, .24); }
  .mobile-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
  .mobile-filter-head h2 { margin: 0; color: #253b3b; font-size: 1.55rem; }
  .mobile-filter-head button { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 0; border-radius: .75rem; background: #e7eee9; color: #275b5b; font: 1.4rem/1 var(--sans); cursor: pointer; }
  .mobile-filter-sheet .rail { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .mobile-filter-sheet .rail-head { padding-bottom: .8rem; border-bottom: 1px solid rgba(37, 91, 91, .12); }
  .mobile-filter-sheet .rail-fields { gap: .75rem; }

  /* The factual detail becomes a scrollable, thumb-first property view. */
  .listing-page .listing-back { display: inline-flex; min-height: 2.5rem; align-items: center; }
  .listing-page .detail-layout { display: block; }
  .listing-page .detail-gallery { height: 14rem; margin-right: -1rem; margin-left: -1rem; border-right: 0; border-left: 0; border-radius: 0; }
  .listing-page .detail-gallery .detail-photo-side { display: none; }
  .listing-page .detail-overview { padding: 1.2rem 0 1rem; }
  .listing-page .detail-overview h1 { max-width: 100%; font-size: 2rem; }
  .listing-page .detail-price { font-size: 1.55rem; overflow-wrap: anywhere; }
  .listing-page .detail-price span { display: block; margin: .25rem 0 0; font-size: .75rem; }
  .listing-page .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .listing-page .detail-facts > div { min-width: 0; padding: .7rem; border-radius: .75rem; background: #fbf8f1; }
  .listing-page .detail-source-card, .listing-page .detail-record { margin-top: .9rem; padding: 1rem; border-radius: 1rem; }

  /* Data, calculator and document routes stay app-like rather than desktop sheets. */
  .table-wrap { margin-right: -1rem; margin-left: -1rem; border-right: 0; border-left: 0; border-radius: 0; }
  .table-wrap table { font-size: .78rem; }
  .page-with-photo main, .document-page main { padding-top: 1.25rem; }
  .page-with-photo main > .wrap > section { border-radius: 1rem; }
  .calculator-page .calc-intro { padding: 1rem; border-radius: 1rem; }
  .calculator-page .calc { gap: 1rem; }
  .calculator-page .calc > form.calc-controls, .calculator-page .calc > .results { border-radius: 1rem; }
  .calculator-page .kpis { grid-template-columns: 1fr; }
  .calculator-page .kpi-mortgage { grid-column: auto; }
  .document-page .legal, .document-page .notfound { padding: 1.15rem; border-radius: 1rem; }
}

/* Cost planner - compact interactive decision surface. */
.calculator-page main > .wrap > section.calc-intro {
  padding: clamp(1.1rem, 2.6vw, 1.75rem);
  background: color-mix(in srgb, var(--surface-tint) 44%, var(--surface));
}
.calc-intro .eyebrow,
.calc-section-heading .eyebrow,
.results-heading .eyebrow,
.calc-evidence .eyebrow {
  margin: 0 0 .45rem;
  color: var(--teal);
  font: .64rem var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.calc-intro-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.calc-intro .page-title {
  max-width: 14ch;
  margin: 0 0 .4rem;
  font-size: clamp(2.15rem, 5vw, 3.65rem);
  letter-spacing: -.06em;
}
.calc-intro .lede {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-2);
  font-size: clamp(.94rem, 1.4vw, 1.05rem);
}
.calc-intro-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .3rem;
  flex: 0 0 auto;
  color: var(--ink-3);
  font: .68rem var(--mono);
  text-align: right;
}
.calc-meta-unit {
  color: var(--copper);
  font-size: 1.15rem;
  font-weight: 500;
}
.calc-disclosure {
  margin-top: 1.1rem;
  border-top: 1px solid var(--line);
  padding-top: .8rem;
}
.calc-disclosure p {
  max-width: 74ch;
  margin: .75rem 0 0;
  color: var(--ink-2);
  font-size: .78rem;
}
.calc-disclosure summary,
.calc-advanced summary,
.calc-breakdown summary,
.coefficients-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 600;
  list-style: none;
}
.calc-disclosure summary::-webkit-details-marker,
.calc-advanced summary::-webkit-details-marker,
.calc-breakdown summary::-webkit-details-marker,
.coefficients-details summary::-webkit-details-marker { display: none; }
.calc-disclosure summary::after,
.calc-advanced summary::after,
.calc-breakdown summary::after,
.coefficients-details summary::after {
  content: "";
  flex: none;
  width: .52rem;
  height: .52rem;
  border-right: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.calc-disclosure[open] summary::after,
.calc-advanced[open] summary::after,
.calc-breakdown[open] summary::after,
.coefficients-details[open] summary::after { transform: rotate(-135deg); }
.summary-hint {
  margin-left: auto;
  color: var(--ink-3);
  font: .65rem var(--mono);
  font-weight: 400;
}

.calculator-page .calc {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.calculator-page .calc > form.calc-controls,
.calculator-page .calc > .results {
  min-width: 0;
  padding: clamp(1.1rem, 2.4vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 3px);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.calc-section-heading h2,
.results-heading h2,
.calc-evidence h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  letter-spacing: -.045em;
}
.calc-helper {
  margin: .35rem 0 0;
  color: var(--ink-3);
  font-size: .78rem;
}
.calc-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.calc-input-grid .field { margin: 0; }
.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.field-label-row label { margin: 0; color: var(--ink); font-weight: 500; }
.field-label-row output {
  color: var(--copper);
  font: .82rem var(--mono);
  font-weight: 500;
}
.calc-input-grid input[type="number"] {
  margin-top: .25rem;
  min-height: 2.9rem;
  font-size: 1.05rem;
}
.range-field input[type="range"] {
  display: block;
  width: 100%;
  height: 1.35rem;
  margin: .4rem 0 0;
  accent-color: var(--teal);
  cursor: pointer;
}
.range-field input[type="range"]::-webkit-slider-runnable-track {
  height: .35rem;
  border-radius: 999px;
  background: var(--surface-muted);
}
.range-field input[type="range"]::-webkit-slider-thumb {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: -.35rem;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--teal) 65%, transparent);
  appearance: none;
}
.range-field input[type="range"]::-moz-range-track {
  height: .35rem;
  border-radius: 999px;
  background: var(--surface-muted);
}
.range-field input[type="range"]::-moz-range-thumb {
  width: .8rem;
  height: .8rem;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--teal) 65%, transparent);
}
.range-meta {
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font: .6rem var(--mono);
}
.calc-controls .help {
  margin: .35rem 0 0;
  color: var(--ink-3);
  font-size: .7rem;
}
.system-choice {
  margin: 0;
  padding: .85rem;
  border-color: var(--line);
  background: var(--surface-muted);
}
.system-choice .radio-group { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.system-choice .radio {
  position: relative;
  display: block;
  min-height: 8rem;
  padding: .9rem;
  border-color: var(--line-2);
  background: var(--surface);
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.system-choice .radio:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--teal) 55%, var(--line));
  box-shadow: var(--shadow-1);
}
.system-choice .radio:has(input:checked) {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal-soft) 72%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 30%, transparent);
}
.system-choice .radio input {
  position: absolute;
  top: .9rem;
  right: .9rem;
  margin: 0;
}
.system-choice .radio > span:not(.radio-arrow) { display: block; padding-right: 1.3rem; }
.system-choice .radio strong { display: block; color: var(--ink); font-size: .9rem; }
.system-choice .radio-note {
  display: block;
  margin-top: .15rem;
  color: var(--ink-2);
  font-size: .72rem;
}
.system-choice .radio .desc {
  margin-top: 1rem;
  color: var(--teal);
  font: .65rem var(--mono);
  line-height: 1.35;
}
.radio-arrow {
  position: absolute;
  right: .85rem;
  bottom: .7rem;
  color: var(--ink-3);
  font-size: 1.1rem;
}
.calc-toggle {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--amber-soft) 38%, var(--surface));
  cursor: pointer;
}
.calc-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.calc-toggle > span:nth-child(2) { flex: 1; }
.calc-toggle strong,
.calc-toggle small { display: block; }
.calc-toggle strong { color: var(--ink); font-size: .8rem; }
.calc-toggle small { margin-top: .12rem; color: var(--ink-3); font-size: .68rem; }
.toggle-ui {
  position: relative;
  width: 2.45rem;
  height: 1.4rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--line-2);
  transition: background .15s ease;
}
.toggle-ui::after {
  position: absolute;
  top: .2rem;
  left: .2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  content: "";
  transition: transform .15s ease;
}
.calc-toggle:has(input:checked) .toggle-ui { background: var(--teal); }
.calc-toggle:has(input:checked) .toggle-ui::after { transform: translateX(1.05rem); }
.calc-toggle:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.calc-advanced {
  border-top: 1px solid var(--line);
  padding-top: .9rem;
}
.calc-advanced .two-field-grid { margin-top: .8rem; }
.calc-advanced .help { margin-bottom: 0; }

.calculator-page .calc > .results {
  position: static;
  border-color: color-mix(in srgb, var(--teal) 38%, var(--line));
  background: color-mix(in srgb, var(--surface-tint) 38%, var(--surface));
}
.results-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.results-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .55rem;
  border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--line));
  border-radius: 999px;
  color: var(--teal);
  font: .62rem var(--mono);
  white-space: nowrap;
}
.status-dot {
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 .18rem var(--teal-soft);
}
.estimate-total {
  margin-bottom: 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--copper) 32%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--amber-soft) 52%, var(--surface));
}
.estimate-total .label,
.breakdown-heading .label {
  color: var(--ink-3);
  font: .65rem var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.estimate-value {
  margin: .3rem 0 .15rem;
  color: var(--ink);
  font: clamp(1.55rem, 3.7vw, 2.55rem) var(--mono);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1.05;
}
.estimate-sub {
  color: var(--ink-2);
  font: .72rem var(--mono);
}
.estimate-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin-top: .9rem;
  padding-top: .65rem;
  border-top: 1px solid color-mix(in srgb, var(--copper) 22%, var(--line));
  color: var(--ink-3);
  font-size: .7rem;
}
.estimate-foot strong { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-bottom: 1rem;
}
.calculator-page .kpi {
  min-width: 0;
  padding: .8rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.calculator-page .kpi-time { border-top-color: var(--copper); }
.calculator-page .kpi-resilience { border-top-color: var(--teal); }
.calculator-page .kpi-mortgage { border-top-color: var(--amber); }
.calculator-page .kpi .label { font-size: .6rem; }
.calculator-page .kpi .value {
  margin: .15rem 0 .2rem;
  font-size: clamp(.92rem, 1.7vw, 1.25rem);
  overflow-wrap: anywhere;
}
.calculator-page .kpi .sub { font-size: .64rem; line-height: 1.35; }
.breakdown-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.breakdown-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}
.breakdown-heading p {
  margin: .2rem 0 0;
  color: var(--ink-3);
  font-size: .72rem;
}
.breakdown-heading > .mono {
  color: var(--ink-3);
  font-size: .6rem;
}
.breakdown-bars { display: grid; gap: .75rem; }
.breakdown-bar-row { min-width: 0; }
.breakdown-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .25rem;
  color: var(--ink-2);
  font-size: .72rem;
}
.breakdown-bar-label strong {
  color: var(--ink);
  font: .68rem var(--mono);
  font-weight: 500;
}
.breakdown-track {
  height: .45rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}
.breakdown-track span {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--copper));
  transition: width .25s ease;
}
.calc-breakdown {
  margin-top: 1rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.calc-breakdown summary { color: var(--teal); font-size: .72rem; }
.calculator-page .table-section { margin-top: .8rem; }
.calculator-page .src-row {
  max-height: 5rem;
  overflow: auto;
  margin: 1rem 0 0;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.calculator-page .src-row .src { background: var(--surface); }
.calculator-page .inline-note { margin-top: .8rem; font-size: .7rem; }
.calculator-page main > .wrap > section.calc-evidence {
  padding: clamp(1rem, 2.4vw, 1.5rem);
  background: var(--surface);
}
.calc-evidence .section-head { margin-bottom: .65rem; }
.calc-evidence-intro {
  max-width: 62ch;
  margin: 0 0 1rem;
  color: var(--ink-2);
  font-size: .8rem;
}
.coefficients-details {
  border-top: 1px solid var(--line);
  padding-top: .85rem;
}
.coefficients-details > .table-wrap { margin-top: 1rem; }

@media (min-width: 56rem) {
  .calculator-page .calc { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
  .calculator-page .calc > .results { position: sticky; top: 5.2rem; }
}
@media (max-width: 47.99rem) {
  .calc-intro-row { align-items: start; flex-direction: column; gap: 1rem; }
  .calc-intro-meta { align-items: start; text-align: left; }
  .calc-input-grid,
  .system-choice .radio-group { grid-template-columns: 1fr; }
  .system-choice .radio { min-height: 0; }
  .calculator-page .kpis { grid-template-columns: 1fr 1fr; }
  .calculator-page .kpi-mortgage { grid-column: 1 / -1; }
  .estimate-value { font-size: clamp(1.35rem, 7vw, 2rem); letter-spacing: -.04em; }
}

/* Keep the planner's mobile result stack aligned with the app shell. */
@media (max-width: 47.99rem) {
  .calculator-page .kpis { grid-template-columns: 1fr; }
  .calculator-page .kpi-mortgage { grid-column: auto; }
}

/* ---------- affordability + government help pages ---------- */
.afford-page .eyebrow, .government-help-page .eyebrow { margin: 0 0 .45rem; color: var(--teal); font: .64rem var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.afford-page .section-head .eyebrow, .government-help-page .section-head .eyebrow { margin-bottom: .3rem; }
.afford-big { font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: clamp(2.25rem, 7vw, 3.5rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; margin: .25rem 0 .15rem; }
.afford-alt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .9375rem; color: var(--ink-2); }
.afford-route { margin: .9rem 0 0; }
.afford-route .badge.route-gov { border-color: color-mix(in srgb, var(--teal) 50%, transparent); color: var(--teal); background: var(--teal-soft); }
.afford-monthly { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
.afford-monthly b { color: var(--ink); font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.calc-line { display: inline-block; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .8125rem; color: var(--ink); background: var(--paper-3); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .65rem; }
.afford-band { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; padding: .85rem 1.1rem; margin-top: .6rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-1); }
.afford-band .t { flex: 1 1 14rem; min-width: 0; }
.afford-band .t b { display: block; font-size: .9375rem; }
.afford-band .t span { display: block; font-size: .8125rem; color: var(--ink-3); }
.afford-band .state { font-family: var(--mono); font-size: .75rem; color: var(--ink-3); white-space: nowrap; }
.afford-band .price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .875rem; white-space: nowrap; margin-left: auto; }
.afford-band.is-yes { border-color: color-mix(in srgb, var(--teal) 55%, transparent); background: color-mix(in srgb, var(--teal-soft) 70%, var(--paper-2)); }
.afford-band.is-yes .state { color: var(--teal); }
.afford-band.is-close { border-color: color-mix(in srgb, var(--amber) 45%, transparent); background: color-mix(in srgb, var(--amber-soft) 70%, var(--paper-2)); }
.afford-band.is-close .state { color: var(--amber); }
.afford-band.is-not { border-style: dashed; box-shadow: none; }
.boosts { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.boost { padding: .85rem 1.1rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-1); font-size: .875rem; color: var(--ink-2); }
.boost b { display: block; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.0625rem; font-weight: 500; color: var(--teal); margin-bottom: .15rem; }

/* ---------- government data portal (gov-data.html): Airbnb-grade explorer ---------- */
@media (prefers-reduced-motion: no-preference) { :root { scroll-behavior: smooth; } }

/* hero */
.gov-hero .page-title { max-width: 20ch; font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -.045em; }
.gov-promise { max-width: 54ch; margin: 0; color: var(--ink-2); font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.6; }

/* trust strip: three quiet reassurance steps */
.gov-trust { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .85rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .gov-trust { grid-template-columns: repeat(3, 1fr); } }
.gov-trust li { display: flex; align-items: flex-start; gap: .65rem; }
.gov-trust-ico { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.gov-trust-ico svg { width: 1.2rem; height: 1.2rem; }
.gov-trust b { display: block; font-size: .875rem; color: var(--ink); }
.gov-trust small { display: block; font-size: .75rem; color: var(--ink-3); line-height: 1.4; }

/* category strip: Airbnb-style horizontal scroll of tiles */
.gov-cats-strip { display: flex; gap: .6rem; margin: 1.6rem 0 0; padding: .25rem .1rem .5rem; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.gov-cats-strip::-webkit-scrollbar { height: 6px; }
.gov-cats-strip::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.gov-chip { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; min-width: 8.5rem; max-width: 11rem; padding: .85rem .95rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.gov-chip:hover, .gov-chip:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--teal) 55%, transparent); text-decoration: none; }
.gov-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gov-chip-ico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--radius-sm); background: var(--teal-soft); color: var(--teal); }
.gov-chip-ico svg { width: 1.4rem; height: 1.4rem; }
.gov-chip b { font-size: .8125rem; font-weight: 600; line-height: 1.25; }

/* status pill: the star of the page */
.status { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .02em; padding: .28rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status.live { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 50%, transparent); background: var(--teal-soft); }
.status.dated { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 50%, transparent); background: var(--amber-soft); }
.status.stale { color: var(--ink-3); border-color: var(--line-2); background: var(--surface-muted); }

/* legend card */
.gov-legend-note { margin: 0 0 .9rem; color: var(--ink-2); font-size: .9375rem; }
.gov-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
@media (min-width: 44rem) { .gov-legend { grid-template-columns: repeat(3, 1fr); } }
.gov-legend li { display: flex; align-items: center; gap: .55rem; font-size: .8125rem; color: var(--ink-3); }

/* the cards section sits on the page ground so the big cards read as primary */
.gov-data-page main > .wrap > section.gov-cards-section { padding: 0; border: 0; background: transparent; box-shadow: none; }
.gov-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
@media (min-width: 60rem) { .gov-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
.gov-card { scroll-margin-top: 5rem; display: flex; flex-direction: column; padding: clamp(1.35rem, 3vw, 1.9rem); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); background: var(--surface); box-shadow: var(--shadow-1); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
@media (min-width: 60rem) { .gov-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--teal) 22%, var(--line)); } }
.gov-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; margin-bottom: .9rem; }
.gov-card-checked { font-family: var(--mono); font-size: .6875rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }
.gov-card h3 { margin: 0 0 .5rem; font-size: clamp(1.2rem, 2vw, 1.4rem); letter-spacing: -.02em; }
.gov-card-lead { margin: 0; color: var(--ink-2); font-size: .96875rem; line-height: 1.55; }

/* progressive disclosure: calm summary, depth on demand */
.gov-disclosure { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: .35rem; }
.gov-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0 .35rem; cursor: pointer; list-style: none; font-size: .8125rem; font-weight: 600; color: var(--teal); }
.gov-disclosure summary::-webkit-details-marker { display: none; }
.gov-disclosure summary::after { content: ""; flex: none; width: .5rem; height: .5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; margin-right: .15rem; }
.gov-disclosure[open] summary::after { transform: rotate(-135deg); }
.gov-disclosure summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.gov-compare { display: grid; gap: .85rem; margin: .5rem 0 1rem; }
@media (min-width: 40rem) { .gov-compare { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.gov-compare-col { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-muted); }
.gov-compare-col:last-child { border-color: color-mix(in srgb, var(--teal) 30%, var(--line)); background: color-mix(in srgb, var(--teal-soft) 40%, var(--surface)); }
.gov-compare-label { display: block; margin-bottom: .3rem; font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.gov-compare-col p { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--ink-2); }
.gov-compare-col:last-child .gov-compare-label { color: var(--teal); }

.gov-how { margin-top: .5rem; }

/* ============================================================
   Map (Google Maps + keyless fallback), market moment,
   count-up strip, bar chart, and the flag-cerulean accents.
   ============================================================ */

/* map host: shed the old portrait SVG framing when a live map or fallback mounts */
.gmap-host { width: 100%; }
.map.is-gmap, .gmap-host.is-gmap { position: static; width: 100%; max-width: none; aspect-ratio: auto; margin: 0; background: none; border: 0; box-shadow: none; overflow: visible; }
.gmap-canvas { width: 100%; height: clamp(20rem, 46vw, 30rem); border-radius: var(--radius); border: 1px solid var(--line); background: var(--cerulean-wash); box-shadow: var(--shadow-1); overflow: hidden; }
.gmap-caption { display: block; margin-top: .5rem; font-family: var(--mono); font-size: .6875rem; letter-spacing: .03em; color: var(--ink-3); }
.gmap-info { font-family: var(--sans); min-width: 11rem; padding: .1rem .15rem; color: var(--ink); }
.gmap-info strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.gmap-info span { display: block; font-size: .8125rem; color: var(--ink-2); margin: .15rem 0 .4rem; }
.gmap-info a { font-size: .8125rem; font-weight: 600; color: var(--cerulean-ink); }

/* keyless fallback: branded card on a pale cerulean wash */
.gmap-fallback { border: 1px solid color-mix(in srgb, var(--cerulean) 40%, var(--line)); border-radius: var(--radius); background: linear-gradient(180deg, var(--cerulean-wash), var(--paper-2) 82%); box-shadow: var(--shadow-1); padding: clamp(1.1rem, 3vw, 1.75rem); }
.gmap-fallback-head h3 { margin: .5rem 0 .25rem; font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
.gmap-fallback-head p { margin: 0 0 1rem; max-width: 52ch; color: var(--ink-2); font-size: .9375rem; }
.gmap-badge { display: inline-block; font-family: var(--mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cerulean-ink); background: var(--paper-2); border: 1px solid color-mix(in srgb, var(--cerulean) 45%, transparent); border-radius: 999px; padding: .2rem .6rem; }
.gmapfb-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.gmapfb-chip { display: flex; align-items: stretch; gap: .3rem; }
.gmapfb-go { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .1rem .5rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1); cursor: pointer; font: inherit; text-align: left; transition: border-color .12s ease, transform .12s ease; }
.gmapfb-go:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--cerulean) 55%, transparent); }
.gmapfb-go b { grid-column: 2; font-family: var(--serif); font-size: .95rem; font-weight: 500; }
.gmapfb-dot { grid-row: 1 / span 2; width: .7rem; height: .7rem; border-radius: 50%; background: var(--band-3); }
.gmapfb-dot.band-1 { background: var(--band-1); } .gmapfb-dot.band-2 { background: var(--band-2); } .gmapfb-dot.band-3 { background: var(--band-3); } .gmapfb-dot.band-4 { background: var(--band-4); }
.gmapfb-n { grid-column: 2; font-size: .75rem; color: var(--ink-3); }
.gmapfb-ext { flex: 0 0 auto; display: grid; place-items: center; padding: 0 .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cerulean-wash); color: var(--cerulean-ink); font-family: var(--mono); font-size: .625rem; text-decoration: none; white-space: nowrap; }
.gmapfb-ext:hover { border-color: color-mix(in srgb, var(--cerulean) 55%, transparent); }
.gmap-fallback-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; }
.btn-cerulean { display: inline-block; padding: .55rem 1.1rem; border-radius: 999px; background: var(--cerulean-ink); color: #fff; font-size: .875rem; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-1); }
.btn-cerulean:hover { background: #0c6296; }
.btn-cerulean:focus-visible { outline: 2px solid var(--cerulean-ink); outline-offset: 2px; }

/* market moment layout */
.market-map-wrap { margin: 1.25rem 0 0; }
.market-map-wrap figcaption { margin-top: .5rem; font-family: var(--mono); font-size: .6875rem; letter-spacing: .03em; color: var(--ink-3); }
.market-bars-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .75rem; margin: 1.6rem 0 .6rem; }
.market-bars-head h3 { margin: 0; font-size: 1.2rem; }
.market-table-details { margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.market-table-details > summary { cursor: pointer; list-style: none; padding: .6rem 0; font-size: .875rem; font-weight: 600; color: var(--cerulean-ink); display: inline-flex; align-items: center; gap: .5rem; }
.market-table-details > summary::-webkit-details-marker { display: none; }
.market-table-details > summary::after { content: ""; width: .5rem; height: .5rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.market-table-details[open] > summary::after { transform: rotate(-135deg); }
.market-table-details > summary:focus-visible { outline: 2px solid var(--cerulean-ink); outline-offset: 3px; border-radius: 6px; }

/* count-up "state of the island" strip */
.market-stats { display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.1rem; }
@media (min-width: 46rem) { .market-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-figure { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow-1); }
.stat-num { display: block; font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: clamp(1.75rem, 4vw, 2.4rem); line-height: 1; letter-spacing: -.03em; color: var(--cerulean-ink); }
.stat-label { display: block; margin-top: .35rem; font-size: .875rem; color: var(--ink); }
.stat-cap { display: block; margin-top: .15rem; font-family: var(--mono); font-size: .625rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }

/* bar chart: sky (pale cerulean) to sea (deep teal) */
.market-bars .bars { display: grid; gap: .5rem; }
.bar-row { display: grid; grid-template-columns: 10rem 1fr auto; align-items: center; gap: .75rem; padding: .3rem .4rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
@media (max-width: 34rem) { .bar-row { grid-template-columns: 6.5rem 1fr auto; gap: .5rem; } }
.bar-row:hover { background: var(--cerulean-wash); }
.bar-label { font-size: .8125rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { position: relative; height: 1.1rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); border-radius: 999px; transition: width .9s cubic-bezier(.22,.61,.36,1); }
.bar-fill[data-static="1"] { transition: none; }
.bar-value { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .8125rem; color: var(--ink); white-space: nowrap; }

/* buy card map affordance */
.pt-map-action { color: var(--cerulean-ink); }

/* Live signal + interactive: flag cerulean */
.status.live { color: var(--cerulean-ink); border-color: color-mix(in srgb, var(--cerulean) 55%, transparent); background: var(--cerulean-wash); }
.status.live::before { background: var(--cerulean); }
.gov-chip:focus-visible { outline-color: var(--cerulean-ink); }
.market-bars .bar-row:focus-visible { outline: 2px solid var(--cerulean-ink); outline-offset: 2px; }

/* ---------- buy map panel: keyless fallback layout fix ---------- */
/* the panel heading was inheriting the dark-surface rail-title colour; make it read on cream */
.buy-page .buy-results .map-panel .rail-title, .map-panel .rail-title { color: var(--ink-3); }
/* keyless: stack the panel so the fallback card spans the full panel width */
.map-panel.is-map-fallback { display: block; }
.map-panel.is-map-fallback > div:first-child { margin-bottom: 1rem; }
.map-panel.is-map-fallback .map-legend:empty, .map-panel.is-map-fallback .map-status:empty { display: none; }
/* selected neighbourhood chip */
.gmapfb-chip.is-selected .gmapfb-go { border-color: var(--cerulean-ink); background: var(--cerulean-wash); box-shadow: 0 0 0 1px var(--cerulean-ink) inset, var(--shadow-1); }
.gmapfb-chip.is-selected .gmapfb-go b { color: var(--cerulean-ink); }
/* "Show all N" expander */
.gmapfb-more { margin-top: .6rem; }
.gmapfb-more > summary { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .2rem; cursor: pointer; list-style: none; font-size: .8125rem; font-weight: 600; color: var(--cerulean-ink); }
.gmapfb-more > summary::-webkit-details-marker { display: none; }
.gmapfb-more > summary::after { content: ""; width: .45rem; height: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.gmapfb-more[open] > summary::after { transform: rotate(-135deg); }
.gmapfb-more > summary:focus-visible { outline: 2px solid var(--cerulean-ink); outline-offset: 2px; border-radius: 6px; }
.gmapfb-more > .gmapfb-grid { margin-top: .6rem; }

/* ---------- Leaflet live map (vendored, OpenStreetMap tiles) ---------- */
.map-panel.is-map-live { display: block; }
.map-panel.is-map-live > div:first-child { margin-bottom: 1rem; }
.map-panel.is-map-live .map-legend:empty, .map-panel.is-map-live .map-status:empty { display: none; }
.lmap-canvas { position: relative; z-index: 0; height: clamp(22rem, 52vw, 32rem); }
.lmap-canvas:focus { outline: 2px solid var(--teal); outline-offset: 2px; }
.leaflet-container { font-family: var(--sans); background: var(--cerulean-wash); }
.lmk-wrap { background: none; border: 0; }
.lmk { display: grid; place-items: center; width: var(--d, 32px); height: var(--d, 32px); border-radius: 50%; background: var(--paper-2); color: var(--ink); border: 3px solid var(--pin, var(--band-3)); box-shadow: var(--shadow-1); font-family: var(--mono); font-size: .6875rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.lmk.band-1 { --pin: var(--band-1); }
.lmk.band-2 { --pin: var(--band-2); }
.lmk.band-3 { --pin: var(--band-3); }
.lmk.band-4 { --pin: var(--band-4); }
.leaflet-marker-icon.lmk-wrap:focus-visible .lmk, .leaflet-marker-icon.lmk-wrap:hover .lmk { border-width: 4px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--paper-2); color: var(--ink); box-shadow: var(--shadow-2); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: .85rem 1rem; line-height: 1.4; }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-3); }
.leaflet-bar { box-shadow: var(--shadow-1); }
.leaflet-bar a { background: var(--paper-2); color: var(--ink); border-bottom: 1px solid var(--line); }
.leaflet-bar a:hover, .leaflet-bar a:focus { background: var(--paper-3); color: var(--ink); }
.leaflet-bar a.leaflet-disabled { background: var(--paper-3); color: var(--ink-3); }
.leaflet-container .leaflet-control-attribution { background: color-mix(in srgb, var(--paper-2) 82%, transparent); color: var(--ink-3); font-family: var(--mono); font-size: .625rem; }
.leaflet-container .leaflet-control-attribution a { color: var(--ink-2); }
.gmap-info .gmap-info-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .1rem 0 0; }
.gmap-info .gmap-info-links a { font-size: .8125rem; font-weight: 600; color: var(--cerulean-ink); }
.lmap-see { background: none; border: 0; padding: 0; font: inherit; font-size: .8125rem; font-weight: 600; color: var(--cerulean-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.nb-strip { margin-top: 1.1rem; }
.nb-strip-title { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 .6rem; }

/* ---------- lead capture: ask / updates / exit interstitial ---------- */
.lead-form { display: grid; gap: .55rem; margin-top: .35rem; }
.lead-form input[type="text"], .lead-form input[type="email"], .lead-form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .6rem .75rem; min-height: 2.6rem; }
.lead-form textarea { resize: vertical; }
.lead-form .btn { justify-self: start; }
.lead-status { margin: 0; min-height: 1.2em; font-size: .8125rem; color: var(--teal); }
.lead-consent { margin: 0; font-size: .6875rem; line-height: 1.45; color: var(--ink-3); }
.lead-updates-box { margin-top: 1.6rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow-1); }
.lead-updates-box h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.lead-updates-box p { margin: 0 0 .5rem; font-size: .875rem; color: var(--ink-2); }
.lead-updates-box .lead-form { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.lead-updates-box .lead-form .lead-status, .lead-updates-box .lead-form .lead-consent { grid-column: 1 / -1; }
@media (max-width: 34rem) { .lead-updates-box .lead-form { grid-template-columns: 1fr; } }
.detail-ask { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.detail-ask h3 { margin: 0 0 .25rem; }
.detail-ask p { font-size: .8125rem; color: var(--ink-2); margin: 0 0 .5rem; }
.exit-layer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; background: rgba(16, 38, 38, .5); }
.exit-card { position: relative; width: min(26rem, 100%); padding: 1.4rem 1.4rem 1.2rem; border-radius: var(--radius); background: var(--paper-2); box-shadow: var(--shadow-2); }
.exit-card h3 { margin: 0 0 .3rem; padding-right: 2rem; }
.exit-card p { margin: 0 0 .6rem; font-size: .9375rem; color: var(--ink-2); }
.exit-close { position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: .7rem; background: var(--teal-soft); color: var(--teal); font-size: 1.25rem; cursor: pointer; }
.exit-continue { display: inline-block; margin-top: .85rem; font-weight: 600; color: var(--cerulean-ink); }

/* ---------- deal signals ---------- */
.pt-reference-badge.sig-cut { color: #a34f38; background: rgba(189, 105, 76, .14); border-color: rgba(189, 105, 76, .4); }
.pt-reference-badge.sig-new { color: var(--cerulean-ink); background: var(--cerulean-wash); border-color: color-mix(in srgb, var(--cerulean) 50%, transparent); }
.pt-reference-badge.sig-long { color: var(--amber); background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.pt-reference-badge.sig-value { color: var(--teal); background: var(--teal-soft); border-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.deal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; counter-reset: deal; }
.deal-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); box-shadow: var(--shadow-1); counter-increment: deal; }
.deal-row::before { content: counter(deal); flex: none; font-family: var(--mono); font-size: .75rem; color: var(--ink-3); width: 1.4rem; }
.deal-main { flex: 1 1 16rem; min-width: 0; }
.deal-main a { font-weight: 600; color: var(--ink); text-decoration: none; }
.deal-main a:hover { color: var(--teal); text-decoration: underline; }
.deal-extra { display: block; font-size: .8125rem; color: var(--ink-3); }
.deal-price { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.deal-empty { padding: 1rem 1.1rem; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); color: var(--ink-3); font-size: .875rem; }

/* ---------- answers section ---------- */
.answers-page .eyebrow { margin: 0 0 .45rem; color: var(--teal); font: .64rem var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.answer-verdict { margin: .35rem 0 .5rem; padding: 1.1rem 1.25rem; border-left: 4px solid var(--cerulean-ink); border-radius: var(--radius-sm); background: var(--cerulean-wash); }
.answer-verdict p { margin: 0; max-width: 62ch; font-size: 1.0625rem; line-height: 1.6; }
.answer-checked { margin: .5rem 0 0; font-family: var(--mono); font-size: .6875rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.answer-reg { margin-top: 1rem; }
.answer-reg ul { margin: .35rem 0 0; padding-left: 1.15rem; font-size: .875rem; color: var(--ink-2); }
.answer-related { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.answer-related a { display: block; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1); transition: transform .12s ease, border-color .12s ease; }
.answer-related a:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.answer-related b { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.answer-related span { display: block; font-size: .78rem; color: var(--ink-3); margin-top: .15rem; }
.answer-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.answer-card { display: flex; flex-direction: column; padding: 1.25rem 1.35rem; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--paper-2); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1); transition: transform .13s ease, box-shadow .13s ease, border-color .13s ease; }
.answer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--teal) 30%, var(--line)); }
.answer-card h3 { margin: 0 0 .35rem; font-size: 1.25rem; letter-spacing: -.02em; }
.answer-card p { margin: 0 0 .75rem; font-size: .875rem; color: var(--ink-2); }
.answer-more { margin-top: auto; font-size: .8125rem; font-weight: 600; color: var(--cerulean-ink); }

/* answers pages nest sections in an article; give them the same card shell */
.page-with-photo main > .wrap > article > section { position: relative; padding: clamp(1.15rem, 2.4vw, 1.75rem); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); background: var(--paper-2); box-shadow: var(--shadow-1); }
.page-with-photo main > .wrap > article > section + section { margin-top: 1.5rem; }
.page-with-photo main > .wrap > article > section > h1 { letter-spacing: -.045em; }

/* purchase-costs page: three-currency rows, uncertainty list, static line-item table */
.pc-headline { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.pc-big { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.15rem; font-weight: 500; }
.pc-big .pc-xcd { font-size: 1.5rem; }
.pc-sub { font-size: .8125rem; color: var(--ink-3); }
.pc-h3 { margin: 1.4rem 0 .5rem; font-size: 1rem; }
.pc-table td, .pc-table th { vertical-align: top; }
.pc-table td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .875rem; }
.pc-table td.num .pc-usd, .pc-table td.num .pc-gbp, .pc-big .pc-usd, .pc-big .pc-gbp { display: block; color: var(--ink-3); font-size: .8em; }
.pc-table td.num .pc-range em { display: block; font-style: normal; color: var(--ink-3); font-size: .75em; }
.pc-item { display: block; font-weight: 500; }
.pc-note { display: block; font-size: .8125rem; color: var(--ink-3); margin-top: .15rem; }
.pc-src { display: block; margin-top: .3rem; }
.pc-table tfoot th { text-align: left; font-weight: 600; }
.pc-table tfoot td.num { font-weight: 600; }
.pc-pct { font-weight: 400; color: var(--ink-3); font-size: .8125rem; }
.pc-uncertain { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.pc-uncertain li { padding: .65rem .85rem; border: 1px solid var(--line); border-left: 3px solid var(--ink-3); border-radius: var(--radius-sm); font-size: .875rem; background: var(--paper-2); }
.pc-uncertain li[data-conf="low"] { border-left-color: var(--amber); }
.pc-uncertain li[data-conf="medium"] { border-left-color: var(--teal); }
.pc-uncertain li .src { margin-left: .35rem; }
.pc-lines th, .pc-lines td { font-size: .8125rem; vertical-align: top; }
.pc-lines td:first-child { min-width: 14rem; }
.pc-lines tbody th { text-align: left; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-3); }
.pc-lines .conf { display: inline-block; padding: .1rem .45rem; border-radius: 999px; font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line-2); }
.pc-lines .conf[data-conf="high"] { color: var(--ink); }
.pc-lines .conf[data-conf="medium"] { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.pc-lines .conf[data-conf="low"] { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.purchase-costs-page select { width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--field); color: var(--ink); }

/* claim this listing + verified badge */
.detail-claim { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.detail-claim h3 { margin: 0 0 .4rem; font-size: 1rem; }
.detail-claim p { font-size: .875rem; color: var(--ink-2); }
.detail-claim.is-verified { border-top-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.detail-claim.is-verified h3::before { content: "✓ "; color: var(--teal); }
.claim-form { display: grid; gap: .5rem; }
.claim-form input[type="text"], .claim-form input[type="email"], .claim-form input[type="url"] { width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--field); color: var(--ink); }
.claim-form .check { font-size: .8125rem; align-items: flex-start; }
.claim-form .check input { margin-top: .15rem; flex: none; }
.pt-reference-badge.sig-verified { background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal); border-color: color-mix(in srgb, var(--teal) 45%, transparent); }

/* listing media: licensed photographs, or map-and-data placeholders; embed-only video */
.detail-gallery .is-photo { display: block; overflow: hidden; background: var(--paper-3); }
.detail-gallery .is-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-page .detail-gallery.has-photos .detail-photo { background-image: none; }
.detail-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .4rem; margin-top: .45rem; }
.detail-thumbs a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--paper-3); }
.detail-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-page .detail-map-only .detail-photo { background-image: none; }
.detail-map .pt-map svg { width: 100%; height: 100%; }
.detail-map-facts { display: flex; flex-direction: column; justify-content: center; gap: .2rem; padding: 1rem; background: var(--paper-3); color: var(--ink); }
.detail-map-facts b { font-family: var(--mono); font-size: 1.05rem; font-weight: 500; }
.detail-map-facts span { font-size: .8125rem; color: var(--ink-3); }
.detail-video { margin-top: .6rem; }
.detail-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
