/* IsleScout design system — ported from the Stitch project
   "IsleScout Property Intelligence Platform" (Material 3 tokens, Source Serif 4 + Geist).
   Written as plain CSS so pages render without a JS runtime. */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=Source+Serif+4:opsz,wght@8..60,400;600&display=swap');

:root {
  /* Stitch theme tokens */
  --primary: #002531;
  --primary-container: #123b4a;
  --on-primary: #ffffff;
  --on-primary-container: #7fa5b7;
  --secondary: #23657f;
  --on-secondary: #ffffff;
  --secondary-container: #a3e0fd;
  --on-secondary-container: #21647e;
  --background: #f5faff;
  --surface: #f5faff;
  --surface-bright: #f5faff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #eaf5ff;
  --surface-container: #e4eff9;
  --surface-container-high: #deeaf3;
  --surface-container-highest: #d9e4ed;
  --surface-variant: #d9e4ed;
  --on-surface: #121d24;
  --on-surface-variant: #41484b;
  --outline: #72787c;
  --outline-variant: #c1c7cb;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
  --on-tertiary-fixed-variant: #3c4b35;

  /* Spacing scale */
  --base: 4px; --xs: 8px; --sm: 16px; --gutter: 20px; --md: 24px; --lg: 48px; --xl: 80px;
  --margin-desktop: 40px; --margin-mobile: 16px;

  /* Radii */
  --r: 2px; --r-lg: 4px; --r-xl: 8px; --r-full: 12px;

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --shell: 1280px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--on-surface);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------------------------------------------------------------- typography */
.display-lg { font: 600 48px/1.1 var(--serif); letter-spacing: -.02em; color: var(--primary); text-wrap: balance; }
.headline-md { font: 600 32px/1.3 var(--serif); color: var(--primary); }
.headline-sm { font: 600 24px/1.4 var(--serif); color: var(--on-surface); }
.body-lg { font-size: 18px; line-height: 1.6; color: var(--on-surface-variant); }
.body-sm { font-size: 14px; line-height: 1.4; }
.label-caps { font: 600 12px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--outline); }
.data-mono { font: 500 14px/1 var(--sans); font-variant-numeric: tabular-nums; }
.muted { color: var(--on-surface-variant); }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--margin-desktop); }

.skip-link { position: absolute; left: -999px; z-index: 100; }
.skip-link:focus { left: var(--sm); top: var(--sm); background: var(--surface-container-lowest); padding: 12px var(--sm); border-radius: var(--r-lg); }

:where(a, button, input, select, summary):focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* ---------------------------------------------------------------------- nav */
.topnav { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--outline-variant); }
.topnav > .shell { display: flex; align-items: center; justify-content: space-between; gap: var(--md); min-height: 64px; }
.topnav-left { display: flex; align-items: center; gap: var(--lg); }
.brand { font: 600 24px/1.4 var(--serif); color: var(--primary); text-decoration: none; letter-spacing: -.02em; }
.topnav nav { display: flex; gap: var(--md); }
.topnav nav a { font-size: 16px; color: var(--on-surface-variant); text-decoration: none; padding-bottom: 4px; transition: color .2s; }
.topnav nav a:hover { color: var(--secondary); }
.topnav nav a[aria-current="page"] { color: var(--secondary); font-weight: 600; border-bottom: 2px solid var(--secondary); }
.topnav-search { display: flex; align-items: center; gap: var(--xs); background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-radius: var(--r); padding: 6px 12px; }
.topnav-search input { border: 0; background: transparent; font: 400 14px var(--sans); color: var(--on-surface); width: 190px; }
.topnav-search input:focus { outline: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--xs);
  min-height: 44px; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px;
  font: 500 16px var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.btn-filled { background: var(--secondary); color: var(--on-secondary); }
.btn-filled:hover { background: var(--primary); }
.btn-outline { background: transparent; border-color: var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--surface-container-low); }
.btn-sm { min-height: 36px; padding: 8px 16px; font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--outline-variant); border-radius: 999px; background: transparent;
  padding: 7px var(--sm); font: 400 14px var(--sans); color: var(--on-surface-variant);
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s;
}
.chip:hover { background: var(--surface-container-low); border-color: var(--secondary); }
.chip-active { background: var(--secondary-container); border-color: var(--on-secondary-container); color: var(--on-secondary-container); font-weight: 500; }
.chip-clear { color: var(--secondary); font-weight: 500; }

.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--outline-variant); border-radius: 999px; padding: 4px var(--sm); font: 600 12px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--on-surface-variant); }

/* --------------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 5fr 7fr; gap: var(--lg); align-items: center; padding: var(--xl) 0 var(--lg); }
.hero-copy { display: flex; flex-direction: column; gap: var(--md); }
.hero-copy p { margin: var(--sm) 0 0; }

.search-panel {
  background: var(--surface-container-lowest); border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl); padding: var(--md); box-shadow: 0 4px 20px rgba(29, 42, 48, .08);
  display: flex; flex-direction: column; gap: var(--xs);
}
.field { position: relative; display: flex; align-items: center; gap: var(--xs);
  border: 1px solid var(--outline-variant); border-radius: var(--r-lg); background: var(--surface-container-lowest);
  padding: 24px 12px 8px; transition: border-color .2s; }
.field:focus-within { border-color: var(--secondary); box-shadow: inset 0 0 0 .5px var(--secondary); }
.field > label { position: absolute; top: 8px; left: 12px; font: 600 12px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--outline); }
.field input, .field select {
  width: 100%; border: 0; background: transparent; padding: 0; margin: 0;
  font: 400 16px var(--sans); color: var(--on-surface); appearance: none; cursor: pointer;
}
.field input { cursor: text; }
.field input:focus, .field select:focus { outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--xs); }
.panel-actions { display: flex; gap: var(--xs); margin-top: var(--xs); }
.panel-actions .btn { flex: 1; }
.shortcuts { display: flex; flex-wrap: wrap; gap: var(--xs); margin-top: var(--xs); }

/* ---------------------------------------------------------------------- map */
.map-frame {
  position: relative; border: 1px solid var(--outline-variant); border-radius: var(--r-xl);
  overflow: hidden; background: #d3e7f2;
}
.map-frame svg { display: block; width: 100%; height: 100%; }
.map-land { fill: #eef3ea; stroke: #8fa39a; stroke-width: 2; stroke-linejoin: round; }
.map-grid { stroke: rgba(35, 101, 127, .12); stroke-width: 1; }
.map-marker { fill: var(--secondary); stroke: #fff; stroke-width: 3; }
.map-marker-active { fill: var(--error); }
/* The interactive street map covers the SVG only once it has painted, so a failed or slow
   load leaves the server-rendered map visible instead of an empty grey box. */
/* Two classes deep on purpose: maplibre-gl.css loads after this file and sets
   `.maplibregl-map { position: relative }` on the same element, which would collapse it to
   zero height. */
.map-frame .map-live { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.map-frame-live .map-live { opacity: 1; pointer-events: auto; }
.map-frame-live > svg { visibility: hidden; }
.map-live-pin {
  display: block; padding: 6px 12px; min-height: 32px; border-radius: var(--r-full);
  background: var(--primary); color: #fff; border: 2px solid #fff; cursor: pointer;
  font: 600 13px/1.4 var(--sans); font-variant-numeric: tabular-nums; text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 37, 49, .3);
}
.map-live-pin:hover, .map-live-pin:focus-visible { background: var(--secondary); }
/* The pin for the record you are already reading: a marker, not a control. */
.map-live-pin-here, .map-live-pin-here:hover { cursor: default; background: var(--primary); }
.map-pop { display: block; text-decoration: none; color: var(--on-surface); font: 400 13px/1.5 var(--sans); }
.map-pop strong { display: block; color: var(--primary); }
.map-pop-note { display: block; color: var(--on-surface-variant); font-size: 12px; text-transform: capitalize; }
.maplibregl-popup-content { border-radius: var(--r-xl); padding: 10px 14px; }

.map-caption {
  position: absolute; left: var(--sm); bottom: var(--sm);
  background: rgba(255, 255, 255, .93); border: 1px solid var(--outline-variant); border-radius: var(--r-lg);
  padding: 8px 12px; font: 600 12px/1.4 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--on-surface-variant);
  /* Leaves the bottom-right corner clear for the map attribution on a narrow screen. */
  max-width: calc(100% - 150px);
}
.map-legend { position: absolute; right: var(--sm); top: var(--sm); background: rgba(255, 255, 255, .93); border: 1px solid var(--outline-variant); border-radius: var(--r-lg); padding: 10px 12px; font-size: 12px; color: var(--on-surface-variant); }
.hero .map-frame { height: 640px; }

/* -------------------------------------------------------------------- cards */
.section { padding: var(--xl) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--md); margin-bottom: var(--md); }
.section-head p { margin: var(--base) 0 0; color: var(--on-surface-variant); }

.bento { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--sm); }
.bento > :first-child { grid-row: span 2; }

.tile {
  position: relative; display: block; min-height: 200px; border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl); overflow: hidden; text-decoration: none; background: var(--surface-container);
}
.bento > :first-child.tile { min-height: 420px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; position: absolute; inset: 0; }
.tile:hover img { transform: scale(1.03); }
.tile-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 37, 49, .85) 0%, rgba(0, 37, 49, .15) 55%, transparent 100%); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sm); color: #fff; }
.tile-body h3 { color: #fff; font-size: 22px; }
.tile-body .label-caps { color: var(--secondary-container); }
.tile-body p { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, .88); }
.tile-tag { position: absolute; top: var(--sm); left: var(--sm); background: rgba(255, 255, 255, .93); color: var(--primary); border-radius: var(--r-lg); padding: 5px 10px; font: 600 12px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; }

/* Result cards (split view) */
.result-card {
  display: grid; grid-template-columns: 200px 1fr;
  background: var(--surface-container-lowest); border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl); overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.result-card:hover { border-color: var(--secondary); box-shadow: 0 2px 12px rgba(29, 42, 48, .07); }
.result-media { position: relative; background: var(--surface-container); min-height: 190px; }
.result-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.result-body { padding: var(--sm); display: flex; flex-direction: column; gap: var(--xs); }
.result-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sm); }
.result-price { font: 600 24px/1.2 var(--serif); color: var(--primary); font-variant-numeric: tabular-nums; }
.result-title { font: 500 16px var(--sans); color: var(--on-surface); text-decoration: none; }
.result-title:hover { color: var(--secondary); text-decoration: underline; }
.result-specs { display: flex; flex-wrap: wrap; gap: var(--sm); font-size: 14px; color: var(--on-surface-variant); font-variant-numeric: tabular-nums; }
.result-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--xs) var(--sm); background: var(--surface-container-low); border-radius: var(--r-lg); padding: 10px 12px; margin: 0; }
.result-metrics > div { display: flex; justify-content: space-between; gap: var(--xs); font-size: 13px; }
.result-metrics dt { color: var(--on-surface-variant); }
.result-metrics dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.insight { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--on-tertiary-fixed-variant); background: #eaf1e6; border-radius: var(--r-lg); padding: 7px 10px; }
.insight-neutral { color: var(--on-surface-variant); background: var(--surface-container-high); }
.result-price .delta { margin-left: 8px; vertical-align: 3px; }
.delta { display: inline-flex; align-items: center; gap: 4px; font: 500 13px var(--sans); font-variant-numeric: tabular-nums; color: var(--on-surface-variant); background: var(--surface-container-high); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.delta-below { color: var(--on-tertiary-fixed-variant); background: #eaf1e6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------- split layout */
.split { display: grid; grid-template-columns: minmax(0, 700px) 1fr; align-items: start; }
.split-results { border-right: 1px solid var(--outline-variant); background: var(--surface-bright); }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sm); flex-wrap: wrap; padding: var(--sm) var(--md); border-bottom: 1px solid var(--outline-variant); background: var(--surface-container-lowest); }
.results-basis { margin: 0; padding: var(--sm) var(--md) 0; max-width: 68ch; }
.results-list { display: flex; flex-direction: column; gap: var(--sm); padding: var(--md); }
.split-map { position: sticky; top: 137px; height: calc(100vh - 137px); }
.split-map .map-frame { height: 100%; border: 0; border-radius: 0; }

.filterbar { border-bottom: 1px solid var(--outline-variant); background: var(--surface-container-lowest); position: sticky; top: 64px; z-index: 40; }
.filterbar-row { display: flex; align-items: center; gap: var(--sm); }
.filters { flex: 1; min-width: 0; }
.filters > summary { display: none; }
.filterbar form { display: flex; align-items: center; gap: var(--xs); flex-wrap: wrap; padding: 10px 0; }
.filterbar .field { padding: 20px 10px 6px; background: var(--surface-container-low); flex: 0 1 170px; }
.filterbar .field > label { top: 6px; left: 10px; }
.filterbar .field input, .filterbar .field select { font-size: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: var(--xs); padding: 0 var(--md) var(--sm); }

/* --------------------------------------------------------------- data slabs */
.slab { background: var(--surface-container-lowest); border: 1px solid var(--outline-variant); border-radius: var(--r-xl); padding: var(--md); }
.slab + .slab { margin-top: var(--sm); }
.slab > h2, .slab > h3 { margin-bottom: var(--sm); }
.datalist { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sm) var(--md); }
.datalist > div { display: flex; justify-content: space-between; gap: var(--sm); border-bottom: 1px solid var(--surface-container-highest); padding-bottom: var(--xs); }
.datalist dt { color: var(--on-surface-variant); font-size: 14px; }
.datalist dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

/* Wide fact tables scroll inside their own box so the page body never scrolls sideways. */
.table-scroll { overflow-x: auto; margin-top: var(--sm); }
.datatable { border-collapse: collapse; width: 100%; font-size: 14px; }
.datatable caption { text-align: left; padding-bottom: var(--xs); }
.datatable th, .datatable td { text-align: right; padding: 10px var(--xs); border-bottom: 1px solid var(--surface-container-highest); white-space: nowrap; }
.datatable thead th { color: var(--on-surface-variant); font-weight: 500; border-bottom-width: 2px; }
.datatable th[scope="row"] { text-align: left; font-weight: 500; }
.datatable thead th:first-child, .datatable caption { text-align: left; }
.datatable td.data-mono { font-variant-numeric: tabular-nums; }
.datatable tbody tr:last-child th, .datatable tbody tr:last-child td { border-bottom: 0; }

.note { background: var(--surface-container-low); border-left: 3px solid var(--secondary); border-radius: var(--r-lg); padding: 12px var(--sm); font-size: 14px; color: var(--on-surface-variant); }
.note strong { color: var(--on-surface); }

/* Caveats and methodology stay in the HTML for crawlers, folded away for readers. */
.disclose { border-top: 1px solid var(--outline-variant); margin-top: var(--sm); }
.disclose > summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 12px 0; font: 500 14px var(--sans); color: var(--secondary); cursor: pointer; list-style: none; }
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.disclose[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.disclose > summary:hover { color: var(--primary); }
.disclose > :not(summary) { margin: 0 0 var(--sm); font-size: 14px; line-height: 1.7; color: var(--on-surface-variant); }
.disclose .datalist { margin-bottom: var(--xs); }
.detail-section > .disclose { border-top: 0; margin-top: 0; }

/* Price position. The gradient is a secondary cue only: every point on the scale is also
   labelled in words and euros, and the disclosure says a lower position is not a better buy. */
.scale { position: relative; height: 64px; margin-bottom: 4px; }
.scale-track { position: absolute; left: 0; right: 0; top: 28px; height: 12px; border-radius: 999px;
  background: linear-gradient(90deg, #65755c 0%, #d9e4ed 50%, #b96a4a 100%); }
.scale-median, .scale-here { position: absolute; top: 20px; width: 0; }
.scale-median::before, .scale-here::before { content: ""; position: absolute; left: -2px; width: 4px; border-radius: 2px; }
.scale-median::before { top: 4px; height: 28px; background: var(--outline); }
.scale-here::before { top: 0; height: 36px; background: var(--primary); }
.scale-median span, .scale-here span { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap;
  font: 500 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.scale-median span { top: 36px; color: var(--on-surface-variant); }
.scale-here span { top: -14px; color: var(--primary); font-weight: 600; }
.scale-left span { transform: translateX(0); }
.scale-right span { transform: translateX(-100%); }
.scale-ends { display: flex; justify-content: space-between; margin-top: var(--md); }
.meter { background: var(--surface-container-highest); border-radius: 999px; height: 10px; overflow: hidden; margin: var(--xs) 0; }
.meter span { display: block; height: 100%; background: var(--secondary); border-radius: 999px; }

/* ------------------------------------------------------------------- detail */
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--md); flex-wrap: wrap; padding: var(--md) 0 var(--md); }
.detail-price { font: 600 32px/1.3 var(--serif); color: var(--primary); font-variant-numeric: tabular-nums; text-align: right; }
.hero-figure { margin: 0 0 var(--lg); border: 1px solid var(--outline-variant); border-radius: var(--r-xl); overflow: hidden; background: var(--surface-container); }
.hero-figure img { width: 100%; height: 520px; object-fit: cover; }
.hero-figure figcaption { padding: 12px var(--sm); font-size: 13px; color: var(--on-surface-variant); background: var(--surface-container-lowest); border-top: 1px solid var(--outline-variant); }
/* Media strip. Native scroll-snap and in-page anchors, so it browses with the trackpad, the
   keyboard, or scripting off. Nothing here needs JavaScript. */
.gallery-strip { margin-bottom: var(--lg); }
.gal-track { display: flex; gap: var(--xs); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--r-xl); background: var(--surface-container); }
/* snap-align start, not center: with full-width slides and a gap, centre snapping pulls every
   jump back to the first slide, so the thumbnail links do nothing. */
.gal-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.gal-slide img, .gal-slide video { display: block; width: 100%; height: 520px; object-fit: cover; background: var(--surface-container); }
.gal-slide figcaption { padding: 12px var(--sm); font-size: 13px; color: var(--on-surface-variant);
  background: var(--surface-container-lowest); border-top: 1px solid var(--outline-variant); }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 0; }
.gal-thumb { position: relative; flex: none; width: 96px; height: 64px; border-radius: var(--r-xl); overflow: hidden;
  border: 2px solid transparent; outline-offset: 2px; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb:hover, .gal-thumb:focus-visible { border-color: var(--secondary); }
.gal-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .35); }
.gal-note { margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) { .gal-track { scroll-behavior: auto; } }
.gallery { display: grid; grid-template-columns: 3fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--xs); height: 520px; margin-bottom: var(--lg); }
.gallery > :first-child { grid-row: span 2; }
.gallery figure { margin: 0; position: relative; border: 1px solid var(--outline-variant); border-radius: var(--r-lg); overflow: hidden; background: var(--surface-container); }
.gallery img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: var(--md); align-items: start; padding-bottom: var(--xl); }
.detail-aside { position: sticky; top: 88px; }
.detail-section { margin-bottom: var(--lg); }
.detail-section > h2 { margin-bottom: var(--sm); }
.detail-section .map-frame { height: 380px; }
/* Nearby-place layers. The per-layer show/hide rules are emitted next to the map itself,
   because the categories come from the data, not from this file. */
.poi-hint { margin: 0 0 8px; }
.poi-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.poi-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.poi-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; cursor: pointer;
  border: 1px solid var(--outline-variant); border-radius: 999px; background: var(--surface);
  font: 500 13px/1 var(--sans); color: var(--on-surface-variant); }
.poi-chip:hover { border-color: var(--poi, var(--secondary)); }
.poi-chip .poi-ico, .poi-chip .ico { width: 18px; height: 18px; flex: none; }
.poi-chip-all { border-style: dashed; }
/* One colour per kind. The glyph carries the meaning; colour is a second cue, never the only
   one, so a colour-blind reader loses nothing. */
.poi-beach { --poi: #2f6f89; }
.poi-supermarket { --poi: #65755c; }
.poi-pharmacy { --poi: #b96a4a; }
.poi-healthcare { --poi: #a2483c; }
.poi-school { --poi: #123b4a; }
.poi-bus_stop { --poi: #58636b; }
.poi-bank { --poi: #23657f; }
.poi-fuel { --poi: #7d6a3f; }
.poi-airport { --poi: #3f5d6b; }
.poi-ferry { --poi: #1f6f6a; }
.poi-ico { fill: var(--poi, var(--secondary)); }
/* The glyph sprite: referenced by <use>, never drawn where it sits. */
/* visibility stays visible on purpose: `.map-frame-live > svg` hides the drawn map once the
   street map paints, and a hidden sprite can take its <use> instances down with it. */
.map-frame svg.poi-defs { position: absolute; width: 0; height: 0; overflow: hidden; visibility: visible; }
/* Nearby places are off until asked for: the chips above the map are the switch. */
.poi-map .map-poi, .poi-map .map-poi-live { visibility: hidden; }
.datatable th .poi-ico { vertical-align: -4px; margin-right: 6px; }
/* How wide the position is actually known. Drawn under the marker, never as a pin. */
.map-area { fill: var(--secondary); fill-opacity: .14; stroke: var(--secondary); stroke-opacity: .5; stroke-width: 2; stroke-dasharray: 6 6; }
.map-poi .poi-disc { fill: var(--poi, var(--secondary)); stroke: #fff; stroke-width: 2; }
.map-poi use { fill: #fff; }
.map-poi-live { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; border: 2px solid #fff; background: var(--poi, var(--secondary));
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.map-poi-live svg { width: 14px; height: 14px; fill: #fff; }
/* Corfu is a tall, narrow island: the overview map needs the height to show it whole. */
.island-map .map-frame { height: 560px; }
.prose { max-width: 68ch; }
.prose h2 { margin: var(--lg) 0 var(--xs); font-size: 28px; }
.prose p { color: var(--on-surface-variant); line-height: 1.7; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--xs); padding: var(--sm) 0 0; font-size: 14px; color: var(--on-surface-variant); }
.breadcrumb a { color: var(--on-surface-variant); }

.page-head { padding: var(--lg) 0 var(--md); max-width: 760px; }
.page-head h1 { margin: var(--xs) 0 var(--sm); }

/* --------------------------------------------------------------------- about */
.about-hero { padding-top: var(--xl); padding-bottom: var(--lg); }
.about-actions { display: flex; gap: var(--xs); flex-wrap: wrap; margin-top: var(--md); }
.about-story-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .75fr); gap: var(--md); align-items: stretch; padding: var(--lg) 0 var(--xl); }
.about-story { padding: var(--lg); }
.about-story h2 { margin: var(--xs) 0 var(--md); }
.about-story p, .about-quote p { color: var(--on-surface-variant); line-height: 1.7; }
.about-quote { display: flex; flex-direction: column; justify-content: center; padding: var(--lg); background: var(--primary); border-radius: var(--r-xl); color: var(--on-primary); }
.about-quote p { color: var(--on-primary); font: 600 25px/1.35 var(--serif); margin: 0 0 var(--md); }
.about-quote .label-caps { color: var(--secondary-container); }
.about-quote-mark { color: var(--secondary-container); font: 600 72px/.7 var(--serif); }
.about-section { padding-top: 0; }
.about-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sm); }
.about-principles .slab { min-height: 250px; }
.about-number { display: block; color: var(--secondary); font: 600 14px/1 var(--sans); letter-spacing: .08em; margin-bottom: var(--lg); }
.about-principles h3 { margin-bottom: var(--xs); }
.about-how { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lg); align-items: center; }
.about-how-copy h2 { margin: var(--xs) 0 var(--sm); }
.about-steps { list-style: none; padding: 0; margin: 0; counter-reset: about-step; }
.about-steps li { counter-increment: about-step; display: grid; grid-template-columns: 34px 1fr; gap: var(--sm); padding: var(--sm) 0; border-top: 1px solid var(--outline-variant); }
.about-steps li::before { content: counter(about-step, decimal-leading-zero); color: var(--secondary); font: 600 14px/1 var(--sans); padding-top: 3px; }
.about-steps strong, .about-steps span { grid-column: 2; }
.about-steps strong { font: 600 20px/1.3 var(--serif); color: var(--primary); }
.about-steps span { color: var(--on-surface-variant); }
.about-boundary { display: flex; align-items: center; justify-content: space-between; gap: var(--md); margin-bottom: var(--xl); background: var(--surface-container-low); }
.about-boundary h2 { margin: var(--xs) 0; }
.about-boundary p { max-width: 70ch; }
.about-methodology { padding-bottom: var(--xl); }

/* ------------------------------------------------------------------- footer */
.site-footer { margin-top: auto; background: var(--primary); color: var(--on-primary-container); padding: var(--lg) 0; }
.site-footer .shell { display: flex; justify-content: space-between; gap: var(--md); flex-wrap: wrap; align-items: flex-start; }
.site-footer .brand { color: #fff; }
.site-footer p { margin: var(--xs) 0 0; font-size: 14px; max-width: 280px; }
.footer-links { display: flex; gap: var(--md); flex-wrap: wrap; font-size: 14px; }
.site-footer a { color: var(--on-primary-container); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer small { display: block; font-size: 12px; color: #5d8496; }

.empty { text-align: center; padding: var(--xl) var(--md); }
.error-page { padding: var(--xl) 0; text-align: center; }
.error-page h1 { font: 600 48px/1.1 var(--serif); color: var(--primary); margin-bottom: var(--sm); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero .map-frame { height: 420px; }
  .island-map .map-frame { height: 440px; }
  .split { grid-template-columns: 1fr; }
  .split-results { border-right: 0; }
  .split-map { position: relative; top: 0; height: 460px; order: -1; }
  .split-map .map-frame { border-bottom: 1px solid var(--outline-variant); }
  /* minmax(0, 1fr), not 1fr: an auto minimum lets a wide child (a fact table) stretch the
     column and push the whole page sideways instead of scrolling inside its own box. */
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: relative; top: 0; }
}

@media (max-width: 780px) {
  .shell { padding: 0 var(--margin-mobile); }
  .topnav nav, .topnav-search { display: none; }
  .display-lg { font-size: 36px; line-height: 1.2; }
  .section { padding: var(--lg) 0; }
  .hero { padding-top: var(--md); gap: var(--md); }
  .field-row, .datalist, .bento { grid-template-columns: 1fr; }
  .bento { grid-template-rows: none; }
  .bento > :first-child { grid-row: auto; }
  .bento > :first-child.tile { min-height: 260px; }
  .panel-actions { flex-direction: column; }
  .result-card { grid-template-columns: 1fr; }
  .result-media { height: 200px; }
  .hero-figure img { height: 240px; }
  .gal-slide img, .gal-slide video { height: 260px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .gallery > :first-child { grid-row: auto; height: 260px; }
  .gallery figure:not(:first-child) { display: none; }
  .detail-price { text-align: left; }
  .filterbar { position: static; }
  .filterbar .field { flex: 1 1 100%; }
  .results-list { padding: var(--sm); }
  .segmented { display: inline-flex; }
  .filterbar-row { padding: 10px 0; }
  .filters > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 18px; border: 1px solid var(--outline-variant); border-radius: 999px; font: 500 14px var(--sans); background: var(--surface-container-lowest); cursor: pointer; list-style: none; }
  .filters > summary::-webkit-details-marker { display: none; }
  .filters[open] > summary { background: var(--secondary); color: var(--on-secondary); border-color: var(--secondary); }
  .filters[open] > form { max-height: 44vh; overflow-y: auto; }
  .view-map .results-list, .view-map .active-filters { display: none; }
  .view-map .split-map { height: calc(100vh - 210px); }
  .view-list .split-map { display: none; }
  .about-hero { padding-top: var(--lg); }
  .about-story-grid, .about-how, .about-principles { grid-template-columns: 1fr; }
  .about-story, .about-quote { padding: var(--md); }
  .about-principles .slab { min-height: 0; }
  .about-number { margin-bottom: var(--md); }
  .about-boundary { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .tile:hover img { transform: none; }
}

/* Price-pill markers (Stitch search map) */
.map-pill rect { fill: var(--primary); stroke: #fff; stroke-width: 4; }
.map-pill text { fill: #fff; font: 600 34px var(--sans); font-variant-numeric: tabular-nums; }
.map-pill-active rect { fill: var(--secondary); }

/* Mobile map/list toggle — desktop shows both panes, so the control is hidden there */
.segmented { display: none; border: 1px solid var(--outline-variant); border-radius: 999px; overflow: hidden; background: var(--surface-container-lowest); }
.segmented .seg { padding: 8px 18px; font: 500 14px var(--sans); color: var(--on-surface-variant); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.segmented .seg-on { background: var(--secondary); color: var(--on-secondary); }

@media (max-width: 780px) { .segmented { display: inline-flex; } }
