/* Listings search, listing pages and listings accounts. Loaded only on /listings pages, after site.css. */

/* Preview builds with made-up data */
.sample-bar { background: var(--yellow); color: var(--navy); font-size: 14.5px; }
.sample-bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.sample-toggle { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--navy); color: var(--card); font-size: 14px; font-weight: 600; }

/* Account link (top right of listings pages) */
.ls-acct a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--navy); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ls-acct a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow-2); }
.ls-acct.is-in a { background: var(--navy); color: var(--card); }
.ls-acct.is-in a::before { background: var(--yellow); }
.ls-signed-in .ls-out, .ls-signed-in .ls-show span svg { display: none; }

/* Search page */
.ls-head { padding-top: clamp(24px, 3vw, 40px); }
.ls-head h1 { font-size: clamp(40px, 4.4vw, 60px); }
.ls-head .lede { max-width: 820px; font-size: 17.5px; }
.ls-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
.ls-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 28px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ls-filters .f { display: flex; flex-direction: column; gap: 5px; flex: 1 1 130px; min-width: 0; }
.ls-filters .f-q { flex: 2 1 190px; }
.ls-filters .f-s { flex: 0 1 84px; }
.ls-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ls-sort select { min-height: 36px; padding: 0 8px; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--white); color: var(--navy); font-size: 14.5px; }
.ls-count-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ls-filters label { font-size: 13px; font-weight: 600; }
.ls-filters input[type="search"], .ls-filters select { width: 100%; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--white); color: var(--navy); font-size: 15.5px; }
.ls-filters input:focus, .ls-filters select:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: 0; }
.ls-show { align-self: flex-end; flex: none; }
.ls-show label { position: relative; display: inline-flex; }
.ls-show input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ls-show span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; }
.ls-show span svg { width: 14px; height: 14px; }
.ls-show input:checked + span { background: var(--navy); color: var(--card); }
.ls-show input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.ls-clear, .ls-more { min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--navy); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.ls-more { display: none; }

.ls-app { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr); gap: 24px; align-items: start; margin-top: 16px; padding-bottom: clamp(48px, 6vw, 80px); }
.ls-map-col { position: sticky; top: calc(var(--header-h) + 12px); }
.ls-map { position: relative; height: calc(100vh - var(--header-h) - 28px); height: calc(100dvh - var(--header-h) - 28px); min-height: 460px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #E9E6DD; }
.ls-map-home { height: 360px; min-height: 0; margin-top: 18px; }
.map-fallback { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14.5px; }
.ls-count { display: flex; flex-direction: column; gap: 4px; padding: 2px 0 12px; border-bottom: 2px solid var(--navy); }
.ls-count p:first-child { font-size: 19px; font-weight: 700; }
.ls-note { font-size: 14px; color: var(--muted); }
.ls-note:empty { display: none; }
.ls-results .idx-note { margin-top: 24px; }

/* Listing rows */
.lrows { display: flex; flex-direction: column; }
.lrow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 8px 14px 0; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; transition: background-color 0.15s ease; }
.lrow:hover { color: var(--navy); }
.lrow:hover .lrow-addr, .lrow.is-hot .lrow-addr { text-decoration: underline; text-underline-offset: 3px; }
.lrow.is-hot { background: linear-gradient(90deg, rgba(255, 231, 102, 0.45), rgba(255, 231, 102, 0) 85%); }
.lrow-ph { position: relative; align-self: start; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.lrow-ph img { width: 100%; height: 100%; object-fit: cover; color: transparent; }
.ph-empty { display: grid; place-items: center; width: 100%; height: 100%; color: var(--line-2); }
.ph-big { flex-direction: column; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ph-big svg { width: 72px; height: 54px; color: var(--line-2); }
.lrow-bd { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lrow-price { font-size: 23px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.lrow-addr { margin-top: 2px; font-size: 16px; font-weight: 650; }
.lrow-town { font-size: 14px; color: var(--muted); }
.lrow-facts { font-size: 13.5px; color: var(--ink-2); }
.tag { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: var(--card); color: var(--navy); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; }
.tag-new, .tag-sold { background: var(--yellow); }
.tag-cond { background: var(--navy); color: var(--card); }
.lrow-sold { cursor: default; }
.lrow-sold .lrow-ph { display: grid; place-items: center; }
.listing-card .brk { margin-top: 0; padding-top: 0; border-top: 0; }

/* Locked sections (signed out) */
.ls-main > * + * { margin-top: clamp(44px, 5vw, 64px); }
.ls-main > [hidden] + * { margin-top: clamp(44px, 5vw, 64px); }
.lk-title { font-size: clamp(28px, 2.4vw, 36px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.lk-body { position: relative; margin-top: 18px; min-height: 230px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.lk-fake { padding: 24px; filter: blur(5px); opacity: 0.85; user-select: none; pointer-events: none; }
.lk-cta { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; background: rgba(255, 253, 247, 0.35); }
.lk-cta-in { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 470px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 18px 40px -22px rgba(20, 43, 69, 0.45); }
.lk-lock { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lk-cta p { max-width: 460px; color: var(--ink-2); font-size: 16px; }
.lk-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin-top: 4px; }
.lk-signin { font-weight: 600; }
.locked.is-loading .lk-cta-in { visibility: hidden; }
.locked.is-loading .lk-cta::after { content: "Loading…"; position: absolute; font-weight: 600; color: var(--muted); }
.lk-figure { display: flex; flex-direction: column; gap: 8px; }
.lk-k { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.lk-v { font-size: 60px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.lk-scale { position: relative; height: 26px; margin-top: 12px; border-bottom: 2px solid var(--line-2); }
.lk-scale i { position: absolute; top: 8px; height: 12px; border-radius: 6px; background: var(--yellow-2); }
.lk-scale b { position: absolute; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); }
.lk-row { display: grid; grid-template-columns: minmax(0, 1.6fr) auto minmax(0, 1fr) minmax(0, 0.6fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lk-row .tag { position: static; }
.lk-chart { display: flex; align-items: flex-end; gap: 10px; height: 230px; }
.lk-chart i { flex: 1; border-radius: 3px 3px 0 0; background: var(--navy); }

/* Listing page */
.ls-crumb-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
#ls-home .sheet { position: static; }
.r-est a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.lk-blur { filter: blur(4px); }
.r-est strong { font-weight: 600; }
.r-brk { padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 14px; }
.ask-box { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; padding: 22px; border: 1.5px solid var(--navy); border-radius: var(--radius); }
.ask-k { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ask-box p:not(.ask-k) { font-size: 15px; color: var(--ink-2); }
.ls-remarks { margin-top: 18px; white-space: pre-line; }
.ls-detail .split > * { min-width: 0; }
.ls-sec .facts-table { margin-top: 28px; }
.ls-side { position: sticky; top: calc(var(--header-h) + 20px); }
.ls-who { margin-top: 14px; }
.gallery .main { position: relative; }

/* Signed-in sections */
.est { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px 36px; align-items: center; margin-top: 18px; padding: clamp(20px, 2.6vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.est-k { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.est-v { margin-top: 8px; font-size: clamp(44px, 4.4vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.est-r { margin-top: 8px; color: var(--ink-2); }
.est-scale { position: relative; height: 66px; }
.est-scale::before { content: ""; position: absolute; left: 0; right: 0; top: 42px; height: 2px; background: var(--line-2); }
.est-band { position: absolute; top: 36px; height: 14px; border-radius: 7px; background: var(--yellow-2); }
.est-dot { position: absolute; top: 35px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px var(--card); }
.est-ask { position: absolute; top: 28px; width: 2px; height: 30px; margin-left: -1px; background: var(--ink-2); }
.est-ask span { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.est-notes { grid-column: 1 / -1; display: grid; gap: 6px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 15px; color: var(--ink-2); }
.est-vs { font-size: 17px; font-weight: 650; color: var(--navy); }
.est-none { display: block; }
.table-wrap { margin-top: 18px; overflow-x: auto; }
.comps, .hist { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); font-size: 15px; }
.comps th, .comps td, .hist th, .hist td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comps thead th, .hist thead th { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.comps tbody th { font-weight: 650; }
.comps-office, .comps-date { display: block; font-weight: 400; color: var(--muted); }
.comps .num, .hist .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.comps-note { margin-top: 12px; max-width: 70ch; font-size: 14.5px; color: var(--muted); }
.hist .tag, .lrow-sold .tag { position: static; }
.lrow-sold .lrow-ph .tag { position: absolute; }
.market-line { margin-top: 14px; max-width: 64ch; font-size: 17px; color: var(--ink-2); }
.chart { margin: 18px 0 0; }
.chart figcaption { margin-bottom: 8px; font-size: 15px; font-weight: 650; }
.chart-box { position: relative; padding: 14px 12px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg .grid { stroke: var(--paper-2); stroke-width: 1; }
.chart-svg .base { stroke: var(--line-2); stroke-width: 1; }
.chart-svg .tick { fill: var(--muted); font: 500 12px var(--sans); }
.chart-svg .val { fill: var(--navy); font: 700 12.5px var(--sans); }
.chart-svg .bar { fill: var(--navy); }
.chart-svg .hit { fill: transparent; }
.chart-svg .col { outline: none; }
.chart-svg .col.is-on .bar, .chart-svg .col:focus-visible .bar { fill: var(--yellow-2); }
.chart-svg .col:focus-visible .hit { stroke: var(--navy); stroke-width: 2; }
.chart-tip { position: absolute; top: 8px; transform: translateX(-50%); padding: 6px 10px; border-radius: 4px; background: var(--navy); color: var(--card); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.chart-table { margin-top: 10px; font-size: 15px; }
.chart-table summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.chart-table table { margin-top: 8px; border-collapse: collapse; }
.chart-table th, .chart-table td { padding: 4px 18px 4px 0; text-align: left; }
.chart-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.vow-error { margin-top: 12px; color: var(--error); font-size: 15px; }

/* Map pins and popups */
.maplibregl-map { font-family: var(--sans); }
.maplibregl-popup-content { padding: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 34px rgba(20, 43, 69, 0.26); }
.maplibregl-popup-close-button { z-index: 2; width: 28px; height: 28px; font-size: 20px; color: var(--navy); background: rgba(255, 253, 247, 0.9); border-radius: 0 0 0 6px; }
.pop { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; width: 290px; max-width: 100%; padding: 8px 30px 8px 8px; color: var(--navy); text-decoration: none; }
.pop:hover { color: var(--navy); }
.pop-ph { position: relative; aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: var(--paper-2); }
.pop-ph img { width: 100%; height: 100%; object-fit: cover; }
.pop-bd { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.pop-price { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.pop-addr { font-size: 14px; font-weight: 650; color: var(--navy); }

/* Sign in and account */
.ls-signin { align-items: start; }
.ls-signup .field input { min-height: 54px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--navy); }
.ls-why .receipt { gap: 14px; }
.ls-why-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ls-why-list li { display: flex; flex-direction: column; gap: 3px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.ls-why-list strong { font-size: 16px; font-weight: 650; }
.ls-why-list span { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ls-why .r-note { font-size: 13px; }
.ls-acct-body { margin-top: 28px; max-width: 680px; }
.ls-acct-cta { margin-bottom: 8px; }
.ls-acct-block { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.ls-acct-block h2 { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.ls-acct-block p { color: var(--ink-2); }
.ls-confirm { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1.5px solid var(--error); border-radius: var(--radius); }

@media (max-width: 1100px) {
  .ls-app { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr); }
}
@media (max-width: 900px) {
  .ls-app { grid-template-columns: 1fr; gap: 16px; }
  .ls-map-col { position: relative; top: 0; }
  .ls-map { height: 52vh; height: 52dvh; min-height: 300px; }
  .ls-map-home { height: 300px; }
  .ls-side { position: static; }
  .est { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ls-filters { gap: 10px; padding: 12px; }
  .ls-filters .f { flex: 1 1 calc(50% - 10px); }
  .ls-filters .f-q { flex-basis: 100%; }
  .ls-show { flex: 1 1 auto; }
  .ls-more { display: inline-flex; align-items: center; }
  .ls-filters:not(.is-open) .f:not(.f-q), .ls-filters:not(.is-open) .ls-clear { display: none; }
  .lrow { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .lrow-price { font-size: 21px; }
  .lk-body { min-height: 270px; }
  .lk-cta { padding: 18px; }
  .lk-cta p { font-size: 15px; }
  .lk-v { font-size: 44px; }
  .ls-head-row .ls-acct { order: -1; }
  .ls-head h1 { font-size: 40px; }
  .ls-head .lede { font-size: 16px; }
  .ls-filters { margin-top: 18px; }
}

/* ---------- Sold Nearby brand bar (sits under Kris's header) ---------- */
.sn-bar { background: var(--navy); color: var(--paper); }
.sn-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.sn-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.sn-brand:hover { color: var(--paper); }
.sn-word { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.sn-word b { color: var(--yellow); font-weight: 800; }
.sn-tag { font-size: 14px; color: var(--on-navy); }
.sn-nav { display: flex; align-items: center; gap: 6px 20px; margin-left: auto; }
.sn-nav a { color: var(--on-navy-2); font-size: 15px; font-weight: 600; text-decoration: none; }
.sn-nav a:hover, .sn-nav a[aria-current="page"] { color: var(--paper); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.sn-nav .sn-acct { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--yellow); color: var(--navy); text-decoration: none; }
.sn-nav .sn-acct:hover { color: var(--navy); filter: brightness(1.04); text-decoration: none; }
.sn-bar :focus-visible { outline-color: var(--yellow); }
@media (max-width: 900px) { .sn-tag { display: none; } }
@media (max-width: 560px) { .sn-bar-in { gap: 8px 14px; } .sn-word { font-size: 20px; } .sn-nav { gap: 6px 14px; } .sn-nav a { font-size: 14px; } .sn-nav .sn-acct { min-height: 34px; padding: 0 12px; } }

/* ---------- Listing page: tabs and blocks ---------- */
.ls-tabs { position: sticky; top: var(--header-h); z-index: 30; background: rgba(247, 245, 239, 0.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ls-tabs-in { display: flex; gap: 4px 28px; overflow-x: auto; scrollbar-width: none; }
.ls-tabs-in::-webkit-scrollbar { display: none; }
.ls-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 52px; border-bottom: 3px solid transparent; color: var(--ink-2); font-size: 15px; font-weight: 600; text-decoration: none; }
.ls-tabs a:hover { color: var(--navy); }
.ls-tabs a.is-on { color: var(--navy); border-bottom-color: var(--yellow-2); }
.ls-detail { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(56px, 7vw, 96px); }
.ls-block { scroll-margin-top: calc(var(--header-h) + 72px); }
.ls-main > .ls-block + .ls-block { margin-top: clamp(56px, 6vw, 80px); padding-top: clamp(40px, 4vw, 56px); border-top: 1px solid var(--line); }
.ls-block > .lk-title { margin-top: 10px; }
.ls-block > .locked, .ls-block > .ls-sec, .ls-block > .vow-filled, .ls-block > .nb-card, .ls-block > .nb-places, .ls-block > .cm-grid { margin-top: 28px; }
.ls-h3 { font-size: 21px; font-weight: 750; letter-spacing: -0.015em; line-height: 1.2; }
.ls-block .ls-h3 { margin-top: 32px; }
.ls-block .locked > .ls-h3, .ls-block .vow-filled > .ls-h3, .ls-block .ls-sec > .ls-h3, .ls-block .nb-places > .ls-h3 { margin-top: 0; }
.locked .ls-h3 + .lk-body { margin-top: 12px; }
.ls-side { top: calc(var(--header-h) + 72px); }
.oh-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; font-weight: 600; }
.tag-oh { background: var(--navy); color: var(--yellow); }
.oh-line .tag, .oh-box .tag { position: static; }

/* At a glance */
.kf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; margin-top: 22px; }
.kf { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); min-width: 0; }
.kf-k { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kf-v { font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.kf-wide { grid-column: span 2; }
.kf-pop .kf-v { margin-top: 2px; }
.pop-gauge { display: inline-flex; gap: 4px; margin-top: 4px; }
.pop-gauge i { width: 22px; height: 7px; border-radius: 4px; background: var(--paper-2); }
.pop-gauge i.on { background: var(--yellow-2); }
.pop-gauge i.on:nth-child(3) { background: var(--error); }
.oh-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; padding: 14px 16px; border: 1.5px solid var(--navy); border-radius: var(--radius); }
.oh-box ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 600; }
.dt-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; margin-top: 14px; }
.dt-group h4 { margin: 14px 0 4px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dt-group dl { margin: 0; }
.dt-group dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dt-group dt { color: var(--muted); }
.dt-group dd { margin: 0; font-weight: 600; text-align: right; }
.ls-rooms { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.ls-rooms summary { cursor: pointer; padding: 14px 18px; font-weight: 700; }
.ls-rooms .table-wrap { margin: 0; padding: 0 18px 12px; }

/* Market read gauges */
.gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.gauge { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.gauge-k { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.gauge-v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.gauge-bar { position: relative; height: 10px; margin-top: 6px; border-radius: 5px; background: linear-gradient(90deg, #DCE3EC, var(--paper-2) 50%, #F5DDB0); }
.gauge-bar i { position: absolute; top: -4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px var(--card); }
.gauge-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.gauge-note { font-size: 14px; color: var(--ink-2); }
.read-note { margin-top: 14px; font-size: 16px; font-weight: 600; }
.lk-gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lk-gauges .gauge { gap: 8px; }
.lk-gauges-body { min-height: 200px; }
.comp-adj strong { color: var(--navy); }

/* Neighbourhood */
.nb-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line); border-left: 6px solid var(--nb, var(--yellow)); border-radius: var(--radius); background: var(--card); }
.nb-k { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nb-name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.nb-tag { font-size: 18px; font-weight: 600; color: var(--navy); }
.nb-card p:not(.nb-tag) { color: var(--ink-2); max-width: 68ch; }
.nb-card .link-strong { align-self: flex-start; margin-top: 4px; }
.nb-places ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin-top: 12px; }
.nb-places li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.nb-places li > svg { margin-top: 2px; color: var(--navy); }
.nb-places li strong { display: block; font-size: 15px; font-weight: 650; }
.nb-places li span span { display: block; font-size: 13.5px; color: var(--muted); }
.nb-km { font-size: 14px; font-weight: 600; white-space: nowrap; }
.nb-places .small { margin-top: 10px; }

/* Community (2021 Census) */
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 10px; }
.cm { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); min-width: 0; }
.cm-k { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cm-v { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.cm-sub { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.cm-bars { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.cm-bars > span { display: block; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.cm-bars i { display: block; height: 100%; border-radius: 3px; background: var(--navy); }
.cm-bars .cm-on i { background: var(--line-2); }
.cm-src { margin-top: 14px; font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: 90ch; }

/* What it would cost */
.costs { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px 32px; align-items: start; margin-top: 22px; }
.costs-in { display: flex; flex-direction: column; gap: 16px; }
.costs .field input, .costs .field select { min-height: 50px; }
.costs .unit { position: relative; }
.costs .unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.costs .unit input { padding-right: 40px; }
.costs-out .receipt { gap: 12px; }
.costs-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 4px; border-top: 2px solid var(--navy); }
.costs-total span { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.costs-total output { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.costs-sub { margin-top: 10px; }
.costs .form-error:empty { display: none; }

@media (max-width: 1100px) {
}
@media (max-width: 900px) {
  .costs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kf-grid, .cm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-groups, .gauges, .lk-gauges, .nb-places ul { grid-template-columns: 1fr; }
  .ls-tabs a { min-height: 46px; font-size: 14.5px; }
  .ls-tabs-in { gap: 4px 20px; }
  .kf-v { font-size: 16px; }
  .cm-v { font-size: 22px; }
}
