/*
 * Xevendi clickable mockup — search (list + map) and property page.
 * Layout follows 10-consumer-platform.md; tokens come from styles.css.
 */

/* =========================================================
   SEARCH
   ========================================================= */
.filter-bar {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 30; height: var(--filter-h);
  display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter);
  background: #fff; border-bottom: 1px solid var(--line);
}
/* The controls themselves (location box, chips, Save search) take the shared shape in searchbar.css. */
.search-field--bar .ac-list { right: auto; width: max(100%, min(380px, calc(100vw - 32px))); }
/* The quick filters scroll sideways when they do not fit; the right edge fades to show there is more.
   "All filters" sits outside the scroller so every filter is always one tap away. */
.filter-scroll {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 28px 4px 2px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-clear { flex: none; font-size: 14px; white-space: nowrap; margin-left: 4px; }

/* Phones: location and Save search on the first row, All filters and the scrolling chips on the second.
   The second row keeps 4 px above and below the 40 px chips so keyboard focus rings are not clipped. */
@media (max-width: 767px) {
  body[data-page="search"] { --filter-h: 104px; }
  .filter-bar {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 40px 48px;
    grid-template-areas: "q q save" "all f f"; gap: 4px 8px; padding: 8px var(--gutter) 4px;
  }
  .search-field--bar { grid-area: q; }
  .all-filters { grid-area: all; }
  .filter-scroll { grid-area: f; margin: 0 calc(var(--gutter) * -1) 0 0; padding: 4px var(--gutter) 4px 2px; }
  .save-search { grid-area: save; }
}

.search-page {
  display: grid; grid-template-columns: minmax(0, 1fr);
  height: calc(100dvh - var(--banner-h) - var(--header-h) - var(--filter-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
}
.results { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px var(--gutter) 96px; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.results-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 1.35rem + .4vw, 1.75rem); font-weight: 650;
  line-height: 1.12; letter-spacing: -.02em; text-wrap: balance;
}
.results-count { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.sort { display: flex; align-items: center; gap: 8px; flex: none; font-size: 14px; color: var(--text-2); }
.note {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 12px 14px;
  border-radius: var(--r-md); background: var(--bg-muted); font-size: 14px; color: var(--text-2);
}
.note .icon { color: var(--sea-600); margin-top: 1px; }
.results-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 20px; }
.results-grid > .empty { grid-column: 1 / -1; }
.results-foot { margin-top: 32px; font-size: 12px; color: var(--text-3); }
.sponsored { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sponsored-line { font-size: 12px; color: var(--text-3); }
.sponsored-line > span:first-child { font-weight: 650; color: var(--text-2); }
.sponsored-line .linklike { font-size: 12px; }
.empty--results { padding: 40px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.drop-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.drop-n { color: var(--text-3); font-weight: 400; }

/* ---------- all-filters panel: a dialog on desktop, a full-height sheet on phones ---------- */
.filters-dlg {
  border: 0; padding: 0; border-radius: var(--r-lg); box-shadow: var(--e4); background: #fff; color: var(--text-1);
  width: min(760px, calc(100vw - 32px)); max-height: min(860px, calc(100dvh - 48px)); overflow: hidden;
}
.filters-dlg[open] { display: flex; flex-direction: column; animation: sheet-up var(--d2) var(--ease); }
.filters-dlg::backdrop { background: var(--scrim); }
.filters-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 24px; border-bottom: 1px solid var(--line); }
.filters-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.filters-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px; }
.filters-foot {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
}
.filters-foot .btn { min-width: 180px; }
.fsec { padding: 20px 0; border-bottom: 1px solid var(--line); }
.fsec:last-child { border-bottom: 0; }
.fsec h3 { font-size: 16px; font-weight: 650; margin: 0 0 12px; }
.fsec h3:not(:first-child) { margin-top: 20px; }
.fsec .row2 { max-width: 500px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); column-gap: 24px; }
.row2 + .fgrid { margin-top: 12px; }
.type-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; }
.type-groups legend { padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.check.exact { margin-top: 8px; align-items: center; }
.check:has(input:disabled), .check--none { color: var(--text-3); }
.check:has(input:disabled) { cursor: default; }
@media (max-width: 767px) {
  .filters-dlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .filters-dlg[open] { animation-duration: var(--d3); }
  .filters-head { padding-left: 16px; }
  .filters-body { padding: 0 16px; }
  .filters-foot { padding-left: 16px; padding-right: 16px; }
  .filters-foot .btn { min-width: 0; flex: 1; max-width: 260px; }
  .row3 { grid-template-columns: 1fr 1fr; }
}
/* Transform only, so a paused first frame still shows the whole panel. */
@keyframes sheet-up { from { transform: translateY(16px); } to { transform: none; } }

@media (min-width: 640px) and (max-width: 1023px) { .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.results-grid.results-grid--page { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; }
.results-grid.results-grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px 24px; }

/* map pane */
.map-pane { position: relative; min-height: 0; overflow: hidden; background: var(--map-water); isolation: isolate; }
.map-viewport { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
.map-viewport.is-dragging { cursor: grabbing; }
.map-viewport:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }
.map-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.map-world > svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.map-overlay { pointer-events: none; }
.pin-layer { position: absolute; inset: 0; pointer-events: none; }

.pin {
  --pin-bg: #fff; --pin-fg: var(--stone-900); --pin-line: var(--stone-300);
  position: absolute; z-index: 1; pointer-events: auto; height: 28px; padding: 0 10px; border-radius: var(--r-pill);
  border: 1px solid var(--pin-line); background: var(--pin-bg); color: var(--pin-fg);
  font: 650 13px/1 var(--font-ui); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 6px)); transform-origin: 50% 100%;
  filter: drop-shadow(0 2px 3px rgb(19 18 17 / .16)) drop-shadow(0 1px 1px rgb(19 18 17 / .10));
  transition: transform var(--d1) var(--ease), background-color var(--d1) var(--ease), color var(--d1) var(--ease);
}
.pin::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border-style: solid; border-width: 6px 5px 0; border-color: var(--pin-bg) transparent transparent;
}
.pin.is-visited { --pin-bg: var(--stone-100); --pin-fg: var(--stone-600); --pin-line: var(--stone-200); }
.pin:hover, .pin.is-hover, .pin:focus-visible {
  --pin-bg: var(--stone-900); --pin-fg: #fff; --pin-line: var(--stone-900);
  z-index: 3; transform: translate(-50%, calc(-100% - 6px)) scale(1.08);
}
.pin.is-selected { --pin-bg: var(--sea-700); --pin-fg: #fff; --pin-line: #fff; z-index: 4; outline: 2px solid #fff; outline-offset: 0; }
.pin:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Map corners (owner 2026-11-16, "also this layout"): count and boundary tools top left, the move toggle top
   right, Draw + map style + zoom bottom right, legend bottom left. */
.map-tl { position: absolute; left: 12px; top: 12px; z-index: 6; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: calc(100% - 270px); }
.map-count { padding: 6px 12px; border-radius: var(--r-pill); background: rgb(28 27 25 / .8); color: #fff; font-size: 13px; font-weight: 600; }
.map-tl-row { display: flex; flex-wrap: wrap; gap: 8px; }
.map-tl-row .btn { box-shadow: var(--e2); gap: 6px; }
.map-tr { position: absolute; right: 12px; top: 12px; z-index: 6; }
.map-br { position: absolute; right: 12px; bottom: 30px; z-index: 6; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.map-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-pill);
  background: #fff; color: var(--text-1); box-shadow: var(--e2); font: 600 13px/1 var(--font-ui);
}
.map-btn:hover { background: var(--stone-50); }
#draw-btn[aria-pressed="true"] { background: var(--sea-600); color: #fff; }
.map-type { position: relative; }
#map-type-btn::after { content: ""; width: 6px; height: 6px; margin-left: 2px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(45deg) translateY(-2px); }
#map-type-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
.map-type-menu { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 180px; padding: 6px; border-radius: var(--r-md); background: #fff; box-shadow: var(--e3); display: grid; gap: 2px; }
.map-type-menu[hidden] { display: none; }
.map-type-menu button { height: 36px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: transparent; text-align: left; font-weight: 500; color: var(--text-1); }
.map-type-menu button:hover { background: var(--stone-50); }
.map-type-menu button[aria-pressed="true"] { font-weight: 700; color: var(--sea-700); }
.map-type-menu .check { margin-top: 4px; padding: 8px 10px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.map-move {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: var(--r-pill); background: #fff; box-shadow: var(--e2); font-size: 13px; font-weight: 500; cursor: pointer;
}
.map-move input { width: 16px; height: 16px; margin: 0; accent-color: var(--stone-900); }
.map-ctrls { position: relative; display: flex; flex-direction: column; border-radius: var(--r-sm); background: #fff; box-shadow: var(--e2); overflow: hidden; }
.map-ctrls button { width: 40px; height: 40px; border: 0; background: #fff; color: var(--text-1); display: grid; place-items: center; }
.map-ctrls button + button { border-top: 1px solid var(--line); }
.map-ctrls button:hover { background: var(--stone-50); }
.map-ctrls button:focus-visible { outline-offset: -3px; }
.map-legend {
  position: absolute; left: 12px; bottom: 12px; max-width: min(330px, calc(100% - 140px)); display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--r-sm); background: rgb(255 255 255 / .94); box-shadow: var(--e1); font-size: 12px; line-height: 1.35; color: var(--text-2);
}
.map-legend svg { flex: none; }
.map-attrib {
  position: absolute; right: 8px; bottom: 6px; padding: 2px 6px; border-radius: var(--r-xs);
  background: rgb(255 255 255 / .82); font-size: 11px; color: var(--text-3); pointer-events: none;
}
@media (max-width: 600px) {
  .map-tr { right: auto; left: 12px; }
  .map-tl { top: 58px; max-width: calc(100% - 24px); }
  .map-legend { max-width: calc(100% - 124px); bottom: 36px; } /* clears the 88 px Draw / Map / zoom column */
}

/* Hover card: the hovered home as its list card, floating over its price tag (owner: "the prices need to have a
   hover with the listing pop up"). Inert and pointer-transparent; clicking the tag opens the preview below. */
.pin-card {
  position: absolute; z-index: 8; width: 280px; pointer-events: none;
  transform: translate(calc(-50% + var(--dx, 0px)), calc(-100% - 44px));
  background: #fff; border-radius: var(--r-md); box-shadow: var(--e4); animation: pin-card-in var(--d2) var(--ease);
}
.pin-card--below { transform: translate(calc(-50% + var(--dx, 0px)), 14px); }
.pin-card .card-media { border-radius: var(--r-md) var(--r-md) 0 0; }
.pin-card .card-body { padding: 10px 12px 12px; }
@keyframes pin-card-in { from { opacity: 0; } to { opacity: 1; } }
.map-overlay .plot { pointer-events: none; }

.map-preview {
  position: absolute; left: 50%; bottom: 64px; z-index: 5; width: min(390px, calc(100% - 24px)); transform: translateX(-50%);
  background: #fff; border-radius: var(--r-md); box-shadow: var(--e4); overflow: hidden; animation: preview-in var(--d2) var(--ease);
}
@keyframes preview-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.mp-link { display: grid; grid-template-columns: 136px minmax(0, 1fr); color: inherit; text-decoration: none; min-height: 124px; }
.mp-link img { width: 100%; height: 100%; object-fit: cover; }
.mp-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 40px 12px 14px; min-width: 0; }
.mp-facts { font-size: 14px; }
.mp-loc { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-approx { font-size: 12px; font-weight: 600; color: var(--sea-700); margin-top: 2px; }
.mp-link:hover .price-card { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.map-preview .heart { left: 8px; top: 8px; right: auto; }
.heart--sm { width: 32px; height: 32px; }
.heart--sm .icon { width: 18px; height: 18px; }
.mp-close {
  position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-2); display: grid; place-items: center;
}
.mp-close:hover { background: var(--stone-100); color: var(--text-1); }

.view-toggle {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 35; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill);
  background: var(--stone-900); color: #fff; font-size: 15px; font-weight: 600; box-shadow: var(--e3);
}
.view-toggle:active { transform: translateX(-50%) scale(.97); }

@media (max-width: 1023px) {
  .search-page[data-view="list"] .map-pane { display: none; }
  .search-page[data-view="map"] .results { display: none; }
  .map-preview { bottom: 80px; }
  .search-page[data-view="map"] .map-legend { bottom: 76px; }
  .map-pane:has(.map-preview) .map-legend { display: none; }
}
/* Desktop: list on the left, map on the right (owner 2026-11-16: "only difference for us, we put the map on
   the right"; replaces the 2026-11-15 map-left call). The list leads in the DOM and on screen, so keyboard and
   screen-reader users reach the results before the map. */
@media (min-width: 1024px) {
  .search-page { grid-template-columns: 420px minmax(0, 1fr); }
  .results { border-right: 1px solid var(--line); padding: 24px 24px 40px; }
  .view-toggle { display: none; }
}
@media (min-width: 1280px) {
  .search-page { grid-template-columns: min(48vw, 720px) minmax(0, 1fr); }
  .results { padding: 24px 28px 40px; }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}

/* Property-type picker in the filter bar */
/* position: relative keeps its .sr-only label inside the scrolling filter row; without it the label pushes the page sideways on phones. */
.cat-pick { position: relative; flex: none; display: flex; }
/* Draw an area (the Draw button lives in the bottom-right map controls) */
.map-draw-hint {
  position: absolute; left: 50%; top: 104px; transform: translateX(-50%); z-index: 7; max-width: calc(100% - 140px);
  padding: 8px 12px; border-radius: var(--r-sm); background: var(--stone-900); color: #fff; font-size: 13px; text-align: center; box-shadow: var(--e3);
}
.map-viewport.is-drawing { cursor: crosshair; }
.map-viewport.is-drawing .pin { pointer-events: none; }
.map-overlay .draw-shape { fill: rgb(26 98 102 / .12); stroke: var(--sea-600); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map-overlay .draw-line { fill: none; stroke: var(--sea-600); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.note--quiet { background: transparent; border: 1px dashed var(--line-strong); padding: 8px 12px; }
.note--quiet .icon { color: var(--text-3); }
.fnote { font-size: 13px; color: var(--text-2); margin: -4px 0 10px; }
.mp-ph { display: grid; place-items: center; background: var(--sea-50); color: var(--sea-600); }

/* =========================================================
   PROPERTY
   ========================================================= */
.prop { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) 56px; }
.prop-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 16px 0; font-size: 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-1); font-weight: 600; text-decoration: none; }
.back:hover { text-decoration: underline; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-2); }
.crumbs li + li::before { content: "/"; color: var(--stone-400); margin-right: 6px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text-1); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text-1); }
@media (max-width: 639px) { .crumbs { display: none; } }

.gallery {
  position: relative; display: grid; gap: 8px; border-radius: var(--r-lg); overflow: hidden;
  grid-template-columns: minmax(0, 1fr); aspect-ratio: 4 / 3; background: var(--stone-100);
}
.g-cell { position: relative; border: 0; padding: 0; margin: 0; background: var(--stone-200); overflow: hidden; cursor: zoom-in; min-height: 0; }
.g-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.g-cell:hover img { transform: scale(1.03); }
.g-cell:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.g-cell:not(.g-main) { display: none; }
.gallery-all { position: absolute; right: 12px; bottom: 12px; box-shadow: var(--e2); }
.gallery-note {
  position: absolute; left: 12px; bottom: 12px; padding: 3px 8px; border-radius: var(--r-pill);
  background: rgb(19 18 17 / .55); color: #fff; font-size: 11px; pointer-events: none;
}
@media (min-width: 768px) {
  .gallery { aspect-ratio: auto; height: clamp(360px, 42vw, 500px); grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .g-main { grid-row: span 2; }
  .g-cell:not(.g-main) { display: block; }
  .gallery--few { grid-template-columns: 2fr 1fr; }
  .gallery--few .g-cell:nth-child(n + 4) { display: none; }
  .gallery-all { right: 16px; bottom: 16px; }
  .gallery-note { left: 16px; bottom: 16px; }
}

.prop-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 28px; }
@media (min-width: 1024px) { .prop-grid { grid-template-columns: minmax(0, 760px) 360px; justify-content: space-between; gap: 48px; } }
.prop-main { min-width: 0; }

.prop-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.prop-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.prop-badges:empty { display: none; }
.prop-badges .badge { box-shadow: none; border: 1px solid var(--line); }
.prop-badges .badge--newbuild, .prop-badges .badge--status { border-color: var(--stone-900); }
.prop-title { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: 650; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.prop-loc { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 15px; color: var(--text-2); }
.prop-loc .icon { color: var(--text-3); }
.prop-loc .dot { margin: 0 2px; }
.precision { font-weight: 500; }
.precision--approximate { color: var(--sea-700); }
.precision--exact { color: var(--text-1); }
.precision--area { color: var(--amber-800); }
.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; }
.price-detail { font-size: var(--fs-price-detail); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.drop--lg { font-size: 15px; }
.price-sub { font-size: 15px; color: var(--text-2); }
.price-sub .dot { margin: 0 8px; }
.prov {
  width: 28px; height: 28px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--text-3);
  display: inline-grid; place-items: center; transition: background-color var(--d1) var(--ease), color var(--d1) var(--ease);
}
.prov:hover, .prov[aria-expanded="true"] { background: var(--stone-100); color: var(--text-1); }
.viewing-note {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 12px;
  border-radius: var(--r-sm); background: var(--sea-50); color: var(--sea-700); font-size: 14px;
}
.facts-row { display: flex; flex-wrap: wrap; gap: 12px 0; margin-top: 10px; }
.fact { display: flex; flex-direction: column-reverse; gap: 2px; padding-right: 20px; margin-right: 20px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.fact dt { font-size: 13px; color: var(--text-2); }
.fact dd { font-size: 18px; font-weight: 650; line-height: 1.3; min-height: 24px; display: flex; align-items: center; }
@media (max-width: 479px) { .fact { padding-right: 14px; margin-right: 14px; } .fact dd { font-size: 16px; } }
.prop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.energy {
  display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 7px; border-radius: var(--r-xs);
  font-size: 13px; font-weight: 700; line-height: 1; color: var(--stone-900);
}
.energy--pending { background: var(--stone-100); color: var(--text-2); font-size: 12px; font-weight: 600; }
.energy--A, .es-bar--A { background: #00A651; }
.energy--B, .es-bar--B { background: #4CB848; }
.energy--C, .es-bar--C { background: #BFD730; }
.energy--D, .es-bar--D { background: #FFF200; }
.energy--E, .es-bar--E { background: #FDB913; }
.energy--F, .es-bar--F { background: #F37021; }
.energy--G, .es-bar--G { background: #C42127; color: #fff; }

/* blocks */
.block { padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.block h2 { font-size: var(--fs-h2); font-weight: 650; letter-spacing: -.012em; line-height: 1.25; margin-bottom: 16px; }
.block-lede { color: var(--text-2); margin: -6px 0 16px; max-width: 64ch; }
.sub { font-size: 16px; font-weight: 650; margin: 28px 0 12px; }

.kv { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; }
@media (min-width: 640px) { .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kv > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 6px 0; border-bottom: 1px solid var(--stone-100); }
.kv dt { font-size: 15px; color: var(--text-2); }
.kv dd { display: flex; align-items: center; justify-content: flex-end; gap: 2px; font-size: 15px; font-weight: 600; text-align: right; }

.energy-scale { display: flex; flex-direction: column; gap: 4px; max-width: 460px; margin-top: 24px; }
.es-row { display: flex; align-items: center; gap: 12px; }
.es-bar {
  display: flex; align-items: center; flex: none; width: var(--w); height: 22px; padding-left: 10px; color: var(--stone-900);
  font-size: 12px; font-weight: 700; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}
.es-row:not(.is-active) .es-bar { opacity: .5; }
.es-row.is-active .es-bar { height: 30px; font-size: 14px; }
.es-val { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
@media (max-width: 559px) { .es-bar { width: calc(var(--w) * .72); } .es-val { font-size: 13px; } }

.translated { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-size: 14px; color: var(--text-2); }
.translated .icon { color: var(--sea-600); }
.translated .dot { margin: 0 2px; }
.desc { max-width: 68ch; font-size: 16px; line-height: 1.65; }
.desc p + p { margin-top: 12px; }
.feature-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 24px; }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.feature-list .icon { color: var(--green-600); margin-top: 3px; }

/* value card */
.value-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--sea-50), #fff 160px); }
.vc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vc-head h2 { margin: 0; }
.vc-mid { margin-top: 14px; font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.vc-range { font-size: 15px; color: var(--text-2); margin-top: 2px; }
.range { position: relative; height: 72px; margin: 14px 8px 4px; }
.range-track { position: absolute; left: 0; right: 0; top: 24px; height: 8px; border-radius: 4px; background: var(--stone-100); }
.range-band { position: absolute; top: 24px; height: 8px; border-radius: 4px; }
.range-band--high { background: var(--sea-700); }
.range-band--medium { background: var(--sea-500); }
.range-band--low { background: repeating-linear-gradient(90deg, var(--stone-500) 0 6px, transparent 6px 10px); }
.range-mid { position: absolute; top: 21px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--stone-900); }
.range-ask { position: absolute; top: 14px; height: 28px; border-left: 2px dashed var(--stone-700); }
.range-ask span { position: absolute; top: 32px; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--text-2); }
.vc-conf { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; }
.conf { display: inline-flex; gap: 3px; }
.conf i { display: block; width: 18px; height: 6px; border-radius: 2px; background: var(--stone-200); }
.conf--high i.on { background: var(--sea-700); }
.conf--medium i.on { background: var(--sea-500); }
.conf--low i.on { background: transparent; border: 1.5px dashed var(--stone-500); }
.vc-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }

/* history chart + tables */
.hist-chart { width: 100%; height: auto; margin: 0 0 16px; overflow: visible; font-family: var(--font-ui); }
.hist-chart .grid { stroke: var(--stone-100); stroke-width: 1; }
.hist-chart .tick { font-size: 11px; fill: var(--text-3); }
.hist-chart .axis { stroke: var(--stone-300); stroke-width: 1; }
.hist-chart .line { fill: none; stroke: var(--stone-900); stroke-width: 2; stroke-linejoin: round; }
.hist-chart .pt { fill: #fff; stroke: var(--stone-900); stroke-width: 2; }
.hist-chart .pt-now { fill: var(--stone-900); stroke: #fff; stroke-width: 2; }
.hist-chart .lbl { font-size: 12px; font-weight: 600; fill: var(--text-2); }
.hist-chart .lbl-now { font-size: 13px; font-weight: 700; fill: var(--text-1); }
@media (max-width: 559px) {
  .hist-chart .tick { font-size: 18px; }
  .hist-chart .lbl { font-size: 19px; }
  .hist-chart .lbl-now { font-size: 21px; }
}
.table-wrap { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums lining-nums; }
.table th, .table td { padding: 11px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--stone-100); white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table thead th { font-size: 13px; font-weight: 600; color: var(--text-2); border-bottom-color: var(--line-strong); }
.table .r { text-align: right; }
.chg { font-weight: 600; white-space: nowrap; }
.chg--down { color: var(--green-700); }
.chg--up { color: var(--stone-600); }
.table--costs th[scope="row"] { font-weight: 400; color: var(--text-1); white-space: normal; }
.table--costs .total th, .table--costs .total td { font-weight: 700; border-top: 2px solid var(--stone-900); border-bottom: 0; padding-top: 14px; }
.table--costs .total .muted { font-weight: 500; }
.table tr.is-primary td { background: var(--bg-soft); }
.ag-cell { display: inline-flex; align-items: center; gap: 10px; }
.lowest { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: var(--r-xs); background: var(--green-50); color: var(--green-700); font-size: 11px; font-weight: 650; vertical-align: 1px; }
.monogram {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--stone-900); color: #fff; font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: .02em;
}
.monogram--sm { width: 28px; height: 28px; border-radius: var(--r-sm); font-size: 11px; }

/* mortgage calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 768px) { .calc { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.calc-in { display: flex; flex-direction: column; gap: 16px; }
.calc-out { padding: 20px; border-radius: var(--r-md); background: var(--bg-soft); border: 1px solid var(--stone-100); }
.calc-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.calc-big { margin: 4px 0 14px; font-size: clamp(1.75rem, 1.5rem + 1vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.calc-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--stone-200); font-size: 14px; }
.calc-dl dt { color: var(--text-2); }
.calc-dl dd { font-weight: 600; text-align: right; white-space: nowrap; }

/* map & nearby */
.mini-map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--map-land); }
.mini-map-svg { width: 100%; height: 100%; max-width: none; }
.notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--text-2); max-width: 68ch; }
.notice .icon { color: var(--sea-600); margin-top: 1px; }
.nearby { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; margin-top: 14px; }
@media (min-width: 640px) { .nearby { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nearby li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--stone-100); font-size: 15px; }
.nearby b { font-weight: 600; white-space: nowrap; }

.report-row { padding-top: 24px; }
.report-row .linklike { font-size: 14px; }

.similar { padding: 56px 0 8px; }
.similar h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); font-weight: 650; letter-spacing: -.02em; margin-bottom: 20px; }
.disclosures { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.disclosures dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 32px; }
@media (min-width: 768px) { .disclosures dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.disclosures dt { font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 2px; }

/* contact rail */
.rail-inner { scroll-margin-top: calc(var(--header-h) + 12px); }
/* Sticky rail: if the card is taller than the viewport it scrolls inside itself so "Show phone" stays reachable. */
@media (min-width: 1024px) {
  .rail-inner {
    position: sticky; top: calc(var(--header-h) + 12px); max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 8px 8px 16px; margin: -8px -8px 0;
  }
  .contact .textarea { height: 92px; }
}
.contact { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--e2); }
.agency { display: flex; align-items: center; gap: 12px; }
.agency-name { font-size: 16px; font-weight: 650; line-height: 1.3; }
.verified { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--green-700); }
.unverified { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--amber-800); }
.sample-tag { margin-left: 6px; padding: 1px 5px; border: 1px dashed var(--line-strong); border-radius: var(--r-xs); font-size: 11px; font-weight: 500; color: var(--text-3); }
.agent { font-size: 14px; }
.agent b { font-weight: 650; }
.reply { margin-top: -10px; font-size: 13px; color: var(--text-2); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.intents { display: flex; flex-wrap: wrap; gap: 6px; }
.chip--intent { height: 34px; padding: 0 12px; font-size: 13px; }
.consent { font-size: 12px; line-height: 1.5; color: var(--text-3); }
.phone-row { padding-top: 12px; border-top: 1px solid var(--line); }
.phone-reveal { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 18px; font-weight: 650; padding: 6px 0; }
.phone-row .fine { text-align: center; margin-top: 4px; }
.sent { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; text-align: center; }
.sent h3 { font-size: 17px; font-weight: 650; }
.sent p:not(.fine) { font-size: 14px; color: var(--text-2); }
.sent .fine { margin-top: 0; }
.sent-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.rail-ref { margin-top: 10px; text-align: center; font-size: 12px; color: var(--text-3); }

/* mobile action bar */
.action-bar { display: none; }
@media (max-width: 1023px) {
  body[data-page="home-detail"] { padding-bottom: 72px; }
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff;
    border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgb(19 18 17 / .08);
  }
  .action-bar .grow { flex: 1; min-width: 0; }
}
@media (max-width: 380px) { .action-bar .btn { font-size: 14px; padding: 0 10px; } }
