/* BozApps Property Search: a data-first property finder. White and mint surfaces, one deep teal-green accent,
   Plus Jakarta Sans headings with Inter for reading and numbers, full-bleed street photography on the home page. */
:root {
  color-scheme: light;
  --bg: #ffffff; --mint: #f2f8f6; --mint-2: #e3f0ec; --paper: #ffffff;
  --sand: var(--mint); --sand-2: var(--mint-2);
  --ink: #0c1d1a; --ink-soft: #3b4a47; --muted: #66756f;
  --line: #e0e8e5; --line-soft: #edf2f0; --line-strong: #c8d4d0; --wash: rgba(12, 29, 26, 0.04);
  --accent: #0b7a64; --accent-hover: #086352; --accent-bright: #14a386; --accent-soft: #d2ebe3; --accent-wash: #e9f5f1;
  --forest: #0a2b26; --forest-2: #123d36; --forest-ink: #cfe5de;
  --gold: #e2b84a; --gold-soft: #fbf3dc; --gold-ink: #85601a;
  --ok: #138a5e; --ok-soft: #dcf1e7; --mid: #b26b12; --mid-soft: #fbefdc; --bad: #b8432d; --bad-soft: #fbe8e3;
  --cheap: #1d5aa6; --dear: #b8432d; --heart: #d23f31;
  --shadow-sm: 0 1px 2px rgba(12, 29, 26, 0.05), 0 1px 4px rgba(12, 29, 26, 0.05);
  --shadow: 0 1px 2px rgba(12, 29, 26, 0.04), 0 12px 32px -12px rgba(12, 29, 26, 0.22);
  --shadow-lg: 0 2px 6px rgba(12, 29, 26, 0.06), 0 32px 64px -24px rgba(12, 29, 26, 0.38);
  --head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px; --r-lg: 20px; --top-h: 68px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html, body { margin: 0; }
body { font: 15px/1.55 var(--sans); font-feature-settings: "cv11", "ss01"; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, h4 { font-family: var(--head); text-wrap: balance; }
h1 { font-weight: 700; letter-spacing: -0.03em; }
h2 { font-weight: 700; letter-spacing: -0.025em; }
h3 { font-weight: 650; letter-spacing: -0.012em; }
p { text-wrap: pretty; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 10px; border: 1.5px solid var(--accent); background: var(--accent); color: #fff; font-family: var(--head); font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s, border-color .15s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 6px 18px -8px rgba(11, 122, 100, 0.6); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-wash); box-shadow: none; }
.btn.quiet { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn.quiet:hover { background: var(--mint); box-shadow: none; }
.btn.light { background: #fff; color: var(--forest); border-color: #fff; }
.btn.light:hover { background: var(--mint); border-color: var(--mint); }
.btn.sm { min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 9px; }
.btn.lg { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.link { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 2px 0; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; color: var(--ink-soft); flex: none; }
.icon-btn:hover { background: var(--mint); color: var(--ink); }
.count { font-size: 12px; font-weight: 700; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.count:empty { display: none; }
input[type=text], input[type=search], input[type=number], input[type=password], select, textarea { border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; padding: 10px 14px; min-height: 46px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
select { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b4a47' stroke-width='2'%3E%3Cpath d='M6.5 9.5L12 15l5.5-5.5'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; }
input[type=range] { accent-color: var(--accent); width: 100%; }
label.lbl { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.err { color: var(--dear); font-size: 14px; margin: 8px 0 0; }

/* ---------- header and footer ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 18px; padding: 0 24px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.logo svg { width: 20px; height: 20px; }
.word { font-family: var(--head); font-weight: 750; letter-spacing: -0.025em; font-size: 17px; }
.brand-sub { font-family: var(--head); color: var(--muted); font-weight: 600; text-decoration: none; padding-left: 12px; border-left: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.brand-sub:hover { color: var(--ink); }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.top-nav a { font-family: var(--head); color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 13px; border-radius: 10px; display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
.top-nav a:hover { background: var(--mint); color: var(--ink); }
.top-nav a.on { color: var(--accent); background: var(--accent-wash); }
.top-nav a.top-area { gap: 0; }
.top-nav a.top-cta, .top-nav a.top-cta.on { margin-left: 8px; color: #fff; background: var(--accent); padding: 7px 14px; }
.top-nav a.top-cta:hover { background: var(--accent-hover); color: #fff; }
/* the home page header floats over the photograph */
body.home .top { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: min(1240px, calc(100% - 32px)); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.35); background: rgba(255, 255, 255, 0.94); }
.foot { background: var(--forest); color: var(--forest-ink); padding: 56px 24px 28px; }
.foot-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 32px; }
.foot-in b { display: block; margin-bottom: 12px; color: #fff; font-family: var(--head); font-size: 15px; }
.foot-in p { color: var(--forest-ink); margin: 0; max-width: 420px; font-size: 14px; opacity: .85; }
.foot-in a { display: block; color: var(--forest-ink); text-decoration: none; padding: 4px 0; font-size: 14px; cursor: pointer; opacity: .9; }
.foot-in a:hover { color: #fff; opacity: 1; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot .logo { background: #fff; color: var(--forest); }
.credits { max-width: 1240px; margin: 36px auto 0; font-size: 12px; color: var(--forest-ink); opacity: .7; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; }
body.app-mode .foot { display: none; }

/* ---------- home: hero ---------- */
.hh { position: relative; min-height: min(90vh, 780px); display: grid; place-items: center; color: #fff; overflow: hidden; background: var(--forest); }
.hh-bg { position: absolute; inset: 0; }
.hh-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; display: block; }
.hh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 22, 19, 0.64) 0%, rgba(6, 22, 19, 0.46) 40%, rgba(6, 22, 19, 0.6) 100%); }
.hh-in { position: relative; z-index: 2; width: min(920px, calc(100% - 32px)); text-align: center; padding: 140px 0 84px; }
.hh h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.04; margin: 0 0 18px; font-weight: 700; letter-spacing: -0.022em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.hh .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; margin: 0 auto 30px; max-width: 680px; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3); }
.hh-search { background: #fff; color: var(--ink); border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lg); text-align: left; max-width: 760px; margin: 0 auto; }
.hh-modes { display: flex; gap: 4px; padding: 4px 4px 10px; }
.hh-modes button { border: 0; background: none; padding: 8px 14px; border-radius: 10px; font-family: var(--head); font-weight: 650; font-size: 14.5px; color: var(--muted); display: inline-flex; gap: 7px; align-items: center; }
.hh-modes button:hover { color: var(--ink); background: var(--mint); }
.hh-modes button[aria-pressed="true"] { background: var(--accent-wash); color: var(--accent); }
.hh-row { display: flex; gap: 8px; }
.hh-row .place-field { flex: 1; min-width: 0; }
.hh-row .place-field input { border: 0; background: var(--mint); min-height: 58px; font-size: 16.5px; border-radius: 14px; }
.hh-row .place-field input:focus { box-shadow: 0 0 0 3px var(--accent-soft); }
.hh-row .btn { min-height: 58px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.hh-ask { border-top: 1px solid var(--line-soft); margin-top: 10px; padding: 10px 4px 2px; }
.hh-ask-t { border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; gap: 7px; align-items: center; padding: 4px 2px; }
.hh-ask .ask-row { margin-top: 8px; }
.hh-ex { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.hh-ex button { border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); color: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 500; }
.hh-ex button:hover { background: rgba(255, 255, 255, 0.24); }
.hh-credit { position: absolute; right: 14px; bottom: 10px; z-index: 2; font-size: 11px; color: rgba(255, 255, 255, 0.7); }
.hh-credit a { color: inherit; }
.sources { border-bottom: 1px solid var(--line); background: #fff; padding: 22px 24px; text-align: center; }
.sources p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.sources ul { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; max-width: 1240px; }
.sources li { font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: #8a9995; white-space: nowrap; }

/* ---------- home: sections ---------- */
.band { padding: 88px 0; }
.band.sand, .band.mint { background: var(--mint); }
.band h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.06; margin: 0 0 12px; }
.band .intro { color: var(--ink-soft); max-width: 640px; margin: 0 0 36px; font-size: 1.1rem; }
.band .center { text-align: center; }
.band .center .intro { margin-left: auto; margin-right: auto; }
.sample-note { text-decoration: none; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: -14px 0 30px; }
.sample-note:hover { border-color: var(--accent); color: var(--accent); }
.sample-note .i { color: var(--accent); width: 16px; height: 16px; }
.rec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; }
.rec { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: grid; grid-template-rows: auto 1fr; gap: 14px; transition: box-shadow .2s, transform .2s; }
.rec:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.rec .mock { background: var(--mint); border-radius: 14px; padding: 14px; min-height: 178px; display: grid; align-content: start; gap: 8px; font-size: 13px; }
.rec .txt { padding: 2px 6px 6px; }
.rec h3 { margin: 0 0 6px; font-size: 18px; display: flex; gap: 9px; align-items: center; }
.rec h3 .i { color: var(--accent); }
.rec p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.mock-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mock-h b { font-family: var(--head); font-size: 20px; letter-spacing: -0.02em; }
.mock-h span { color: var(--muted); font-size: 12px; }
.mock-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 9px; padding: 7px 10px; }
.mock-row .r { font-weight: 650; font-variant-numeric: tabular-nums; }
.mock-bar { display: grid; grid-template-columns: 112px 1fr 30px; gap: 8px; align-items: center; }
.mock-bar b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 7px; vertical-align: 1px; }
.dot.ok { background: var(--ok); } .dot.mid { background: var(--mid); } .dot.bad { background: var(--bad); } .dot.na { background: var(--line-strong); }
.mini-hours { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.mini-hours i { flex: 1; background: var(--accent-bright); border-radius: 3px 3px 0 0; opacity: .85; }
/* product showcase rows with framed screenshots */
.show { display: grid; gap: 96px; }
.show-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.show-row.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); }
.show-row.flip .show-txt { order: 2; }
.show-txt h3 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.025em; }
.show-txt p { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 16px; }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 15px; }
.ticks li .i { color: var(--accent); margin-top: 2px; width: 19px; height: 19px; }
.frame { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f6f8f7; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9e0dd; }
.frame-bar span { margin-left: 12px; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 3px 12px; flex: 1; max-width: 340px; }
.frame img { display: block; width: 100%; height: auto; }
/* dark band: check any address */
.dk { background: var(--forest); color: #fff; padding: 88px 0; overflow: hidden; }
.dk-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.dk h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.06; margin: 0 0 14px; }
.dk p { color: var(--forest-ink); font-size: 1.08rem; margin: 0 0 26px; max-width: 560px; }
.dk .hh-row .place-field input { background: #fff; }
.dk .hh-row .btn { background: var(--accent-bright); border-color: var(--accent-bright); }
.dk .hh-row .btn:hover { background: #0f8f75; border-color: #0f8f75; }
.dk-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.dk-list span { border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--forest-ink); }
.dk-photo { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.dk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-photo .cap { position: absolute; left: 12px; bottom: 12px; background: rgba(6, 22, 19, 0.7); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 8px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.feat .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); margin-bottom: 16px; }
.feat .ic .i { width: 22px; height: 22px; }
.feat h3 { margin: 0 0 6px; font-size: 17.5px; }
.feat p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.area-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.area-card .aerial { height: 150px; border-radius: 0; }
.area-card .body { padding: 14px 16px 16px; }
.area-card b { display: block; font-family: var(--head); font-size: 17px; letter-spacing: -0.015em; margin-bottom: 2px; }
.area-card span { color: var(--ink-soft); font-size: 13.5px; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-family: var(--head); font-weight: 650; font-size: 16.5px; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a64' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); max-width: 720px; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 300px); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.row-scroll > * { scroll-snap-align: start; }
.saved-searches { display: grid; gap: 10px; }
.ss { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ss b { display: block; }
.ss span { color: var(--muted); font-size: 13.5px; }
.ss .new { background: var(--accent); color: #fff; border-radius: 999px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; white-space: nowrap; }
.ss .grow { flex: 1; min-width: 0; }

/* ---------- place search box (shared) ---------- */
.sb-row { display: flex; gap: 10px; }
.sb-row .place-field { flex: 1; }
.place-field { position: relative; display: block; }
.place-field .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.place-field input { width: 100%; padding-left: 46px; min-height: 54px; font-size: 16px; border-radius: 12px; }
.sb-row .btn { min-height: 54px; padding: 0 26px; font-size: 16px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; max-height: 380px; overflow-y: auto; color: var(--ink); text-align: left; }
.suggest button { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 9px; font-size: 15px; }
.suggest button .i { position: static; transform: none; color: var(--accent); }
.suggest button[aria-selected="true"], .suggest button:hover { background: var(--mint); }
.suggest .k { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.ask-row { display: flex; gap: 8px; }
.ask-row input { flex: 1; min-width: 0; }
.understood { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; min-height: 4px; align-items: center; font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 14px; color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
button.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.soft { background: var(--accent-wash); border-color: transparent; color: var(--accent); font-weight: 600; }
.chip .n { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: rgba(255, 255, 255, .8); }
.chip:disabled { opacity: .45; cursor: default; }

/* ---------- aerial photo ---------- */
.aerial { position: relative; overflow: hidden; background: #b9c4bd; border-radius: 12px; }
.aerial-tiles { position: absolute; }
.aerial-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; }
.aerial-pin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--accent-bright); border: 3.5px solid #fff; box-shadow: 0 0 0 7px rgba(20, 163, 134, 0.35), 0 2px 8px rgba(0, 0, 0, .5); }
.aerial-label { position: absolute; left: 10px; bottom: 10px; background: rgba(6, 22, 19, 0.7); color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(4px); }

/* ---------- results ---------- */
body.app-mode { overflow: hidden; }
.results { display: flex; flex-direction: column; height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); }
.sbar { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: #fff; overflow-x: auto; scrollbar-width: none; }
.sbar::-webkit-scrollbar { display: none; }
.sbar .place-field { flex: 0 1 360px; min-width: 220px; }
.sbar .place-field input { min-height: 44px; font-size: 15px; border-radius: 10px; background: var(--mint); border-color: transparent; }
.sbar .place-field input:focus { background: #fff; border-color: var(--accent); }
.seg { display: inline-flex; background: var(--mint); border-radius: 10px; padding: 4px; flex: none; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 7px; font-family: var(--head); font-weight: 650; color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }
.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 0 12px 0 14px; font-family: var(--head); font-weight: 650; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.pill:hover { border-color: var(--line-strong); color: var(--ink); }
.pill.on { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }
.pill .i { width: 16px; height: 16px; }
.pill.primary { border-color: var(--ink); color: var(--ink); }
.dd { position: fixed; z-index: 70; width: 320px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px; display: grid; gap: 14px; }
.dd h3 { margin: 0; font-size: 15px; }
.dd .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dd select { width: 100%; }
.res-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(440px, 46%) 1fr; }
.list-col { overflow-y: auto; padding: 22px 24px 60px; background: #fafcfb; }
.map-col { position: relative; border-left: 1px solid var(--line); }
.map-col #map { position: absolute; inset: 0; background: #eef1ef; }
.res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.res-head h1 { font-size: 1.6rem; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.res-sub { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.res-tools { display: flex; gap: 8px; align-items: center; margin: 14px 0 12px; flex-wrap: wrap; }
.res-tools select { min-height: 40px; padding-top: 6px; padding-bottom: 6px; border-radius: 9px; font-size: 14px; }
.active { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.active:empty { display: none; }
.active .chip { padding: 4px 6px 4px 12px; font-size: 13px; background: var(--accent-wash); border-color: transparent; color: var(--accent); font-weight: 600; }
.active .chip button { border: 0; background: none; padding: 0 2px; display: inline-grid; color: var(--accent); }
.active .chip .i { width: 15px; height: 15px; }
.banner { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-wash); border: 1px solid var(--accent-soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.banner .i { color: var(--accent); margin-top: 2px; }
.banner.gold { background: var(--gold-soft); border-color: rgba(133, 96, 26, 0.2); }
.banner.gold .i { color: var(--gold-ink); }
.cards { display: grid; gap: 14px; }
.card { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; transition: box-shadow .18s, border-color .18s, transform .18s; text-align: left; }
.card:hover, .card.hl { box-shadow: var(--shadow); border-color: var(--line-strong); }
.card.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.card .ph { position: relative; min-height: 196px; }
.card .ph .aerial { position: absolute; inset: 0; border-radius: 0; }
.card .badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; z-index: 2; }
.badge { background: #fff; color: var(--ink); font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 7px; box-shadow: var(--shadow-sm); letter-spacing: 0.01em; }
.badge.new { background: var(--accent); color: #fff; }
.badge.live { background: var(--gold); color: var(--forest); }
.badge.score { background: rgba(6, 22, 19, 0.78); color: #fff; backdrop-filter: blur(4px); }
.card .info { padding: 16px 18px 14px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.price { font-family: var(--head); font-size: 1.45rem; font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; }
.price small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ttl { font-weight: 600; font-size: 15.5px; }
.addr { color: var(--ink-soft); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-soft); font-size: 13.5px; }
.facts span { display: inline-flex; align-items: center; gap: 5px; }
.facts .i { width: 17px; height: 17px; color: var(--muted); }
.ldots { display: inline-flex; gap: 3px; align-items: center; }
.ldot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; box-shadow: 0 0 0 1px rgba(12, 29, 26, .12); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.tag { font-size: 12.5px; border-radius: 7px; padding: 2px 8px; background: var(--mint); color: var(--ink-soft); }
.tag.warn { background: var(--bad-soft); color: var(--bad); }
.vtag { font-size: 12.5px; font-weight: 700; border-radius: 7px; padding: 2px 8px; }
.vtag.cheap { background: #e6eefa; color: var(--cheap); }
.vtag.dear { background: var(--bad-soft); color: var(--dear); }
.vtag.fair { background: var(--mint); color: var(--ink-soft); }
.card .meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 9px; margin-top: 4px; }
.heart { position: absolute; right: 12px; top: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--ink-soft); }
.heart:hover { color: var(--heart); }
.heart[aria-pressed="true"] { color: var(--heart); }
.heart[aria-pressed="true"] .i { fill: currentColor; }
.card .heart { right: auto; left: 172px; }
.empty { text-align: center; padding: 40px 22px; border: 1.5px dashed var(--line-strong); border-radius: 18px; color: var(--ink-soft); background: #fff; }
.empty h3 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.empty p { margin: 0 auto 18px; max-width: 520px; }
.more-row { display: flex; justify-content: center; margin-top: 20px; }
.map-ctl { position: absolute; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; }
.map-ctl.tl { top: 14px; left: 14px; right: 70px; }
.map-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; background: #fff; border: 0; border-radius: 10px; padding: 0 14px; font-family: var(--head); font-weight: 650; font-size: 14px; box-shadow: var(--shadow); color: var(--ink); }
.map-btn:hover { background: var(--mint); }
.map-btn.on { background: var(--forest); color: #fff; }
.map-btn.primary { background: var(--accent); color: #fff; }
.map-btn.primary:hover { background: var(--accent-hover); }
.map-check { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 0 14px; min-height: 42px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); cursor: pointer; }
.layers { position: absolute; top: 64px; left: 14px; z-index: 6; width: 284px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px; display: grid; gap: 10px; font-size: 14px; }
.layers label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.legend { position: absolute; left: 14px; bottom: 30px; z-index: 4; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px; font-size: 12.5px; display: grid; gap: 4px; max-width: 300px; }
.legend .row { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.legend .sq { width: 16px; height: 11px; border-radius: 3px; }
.draw-hint { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 7; background: var(--forest); color: #fff; padding: 10px 10px 10px 18px; border-radius: 12px; display: flex; gap: 12px; align-items: center; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 28px); }
.draw-hint .link { color: #8fe3c8; }
.map-col.drawing .maplibregl-canvas { cursor: crosshair !important; }
.map-col.drawing #map { touch-action: none; }
.preview { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 8; width: min(430px, calc(100% - 28px)); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 130px 1fr; overflow: hidden; cursor: pointer; }
.preview .aerial { border-radius: 0; min-height: 130px; }
.preview .info { padding: 12px 40px 12px 14px; display: grid; gap: 3px; min-width: 0; }
.preview .price { font-size: 1.15rem; }
.preview .x { position: absolute; right: 8px; top: 8px; }
.area-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 16px; margin-bottom: 16px; display: grid; gap: 10px; }
.area-panel h3 { margin: 0; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.area-panel p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.area-panel .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.area-panel .fine { font-size: 12.5px; color: var(--muted); }
.progress { height: 5px; border-radius: 5px; background: var(--mint-2); overflow: hidden; position: relative; }
.progress i { position: absolute; top: 0; bottom: 0; width: 35%; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); border-radius: 5px; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { from { left: -35%; } to { left: 100%; } }
.view-toggle { display: none; }
.maplibregl-ctrl-group { border-radius: 10px !important; box-shadow: var(--shadow) !important; }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* ---------- filters sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; background: rgba(6, 22, 19, 0.42); display: flex; justify-content: flex-end; }
.sheet-card { width: min(560px, 100%); height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 1.4rem; }
.sheet-body { flex: 1; overflow-y: auto; padding: 0 24px 24px; }
.sheet-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); background: #fff; }
.fs { padding: 20px 0; border-bottom: 1px solid var(--line-soft); display: grid; gap: 12px; }
.fs:last-child { border-bottom: 0; }
.fs h3 { margin: 0; font-size: 16px; }
.fs .help { margin: -6px 0 0; font-size: 13.5px; color: var(--muted); }
.fs .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fs .two select, .fs .two input, .fs select.full, .fs input.full { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }

/* ---------- property page ---------- */
.detail { max-width: 1240px; margin: 0 auto; padding: 18px 24px 72px; }
.crumbs { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-weight: 600; text-decoration: none; border: 0; background: none; padding: 6px 0; }
.back:hover { color: var(--ink); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 460px; border-radius: 22px; overflow: hidden; }
.gallery > * { position: relative; overflow: hidden; background: var(--mint); }
.gallery .main { grid-row: span 2; }
.gallery .aerial { position: absolute; inset: 0; border-radius: 0; }
.gallery img.street { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-hero .cap { top: 14px; bottom: auto !important; left: 14px; }
.gallery .cap, .rp-hero .cap { position: absolute; left: 12px; bottom: 12px; background: rgba(6, 22, 19, 0.7); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px; z-index: 2; }
.gallery .advert-cta { display: grid; place-items: center; text-align: center; padding: 18px; background: var(--forest); color: #fff; text-decoration: none; }
.gallery .advert-cta b { display: block; font-family: var(--head); font-size: 18px; margin: 8px 0 4px; }
.gallery .advert-cta span { color: var(--forest-ink); font-size: 13.5px; }
.gallery .advert-cta:hover { background: var(--forest-2); }
.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; margin-top: 28px; align-items: start; }
.d-grid > * { min-width: 0; }
.d-head h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.05; margin: 0 0 4px; }
.d-head .ttl { font-size: 18px; }
.d-head .addr { white-space: normal; font-size: 15.5px; margin: 2px 0 12px; }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; }
.keyfacts div { border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; background: #fff; }
.keyfacts b { display: block; font-family: var(--head); font-size: 18px; letter-spacing: -0.015em; }
.keyfacts span { font-size: 13px; color: var(--muted); }
.sec { padding: 34px 0; border-top: 1px solid var(--line); }
.sec h2 { font-size: 1.5rem; margin: 0 0 16px; }
.sec-sub { color: var(--muted); margin: -8px 0 16px; font-size: 14.5px; }
.qa details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.qa details[open] { border-color: var(--line-strong); }
.qa summary { list-style: none; cursor: pointer; padding: 14px 46px 14px 16px; font-weight: 600; position: relative; display: flex; gap: 10px; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a64' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 13px no-repeat; transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa .ans { padding: 0 16px 16px; color: var(--ink-soft); }
.qa .ans p { margin: 0 0 8px; }
.qa .short { margin-left: auto; font-weight: 600; font-size: 13.5px; color: var(--accent); white-space: nowrap; padding-left: 10px; }
.minimap { height: 340px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.linewalk { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.linewalk span { display: inline-flex; gap: 6px; align-items: center; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 20px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.advert-list { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; color: var(--ink-soft); }
.advert-list li { break-inside: avoid; margin-bottom: 5px; }
.calc { display: grid; gap: 12px; background: var(--mint); border-radius: 18px; padding: 18px; }
.calc .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc input, .calc select { width: 100%; }
.calc .out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc .out div { background: #fff; border-radius: 12px; padding: 12px; }
.calc .out b { display: block; font-family: var(--head); font-size: 19px; letter-spacing: -0.015em; }
.calc .out span { font-size: 12.5px; color: var(--muted); }
.side { position: sticky; top: calc(var(--top-h) + 18px); display: grid; gap: 14px; }
.side-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fff; box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.side-card h2, .side-card h3 { margin: 0; font-size: 17px; }
.side-card .agent { display: flex; gap: 12px; align-items: center; }
.side-card .agent .av { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-wash); display: grid; place-items: center; font-weight: 700; color: var(--accent); font-family: var(--head); }
.side-card .muted, .muted { color: var(--muted); font-size: 13.5px; margin: 0; }
.similar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-card { text-align: left; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; padding: 0; transition: box-shadow .15s, transform .15s; }
.mini-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.mini-card .aerial { height: 140px; border-radius: 0; }
.mini-card .b { padding: 12px 14px; display: grid; gap: 2px; }
.mini-card .price { font-size: 1.1rem; }
.mini-card .addr { font-size: 13px; }
.street-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.street-strip a { position: relative; display: block; height: 150px; border-radius: 12px; overflow: hidden; }
.street-strip img { width: 100%; height: 100%; object-fit: cover; }
.street-strip span { position: absolute; left: 8px; bottom: 8px; background: rgba(6, 22, 19, .7); color: #fff; font-size: 11.5px; padding: 2px 7px; border-radius: 6px; }

/* ---------- at a glance verdicts (property page and area report) ---------- */
.glance { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 10px; }
.gl { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px; display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; align-items: start; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
a.gl:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.gl .ic { grid-row: span 3; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--mint); color: var(--ink-soft); }
.gl .ic .i { width: 19px; height: 19px; }
.gl .k { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.gl .v { font-family: var(--head); font-weight: 700; font-size: 16px; letter-spacing: -0.015em; line-height: 1.25; }
.gl .d { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.gl.ok .ic { background: var(--ok-soft); color: var(--ok); } .gl.ok .v { color: var(--ok); }
.gl.mid .ic { background: var(--mid-soft); color: var(--mid); } .gl.mid .v { color: var(--mid); }
.gl.bad .ic { background: var(--bad-soft); color: var(--bad); } .gl.bad .v { color: var(--bad); }
.glance-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

/* ---------- saved, about, generic pages ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 40px 24px 72px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.06; margin: 0 0 10px; }
.page > h2, .prose h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cmp { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cmp table { border-collapse: collapse; min-width: 100%; font-size: 14px; }
.cmp th, .cmp td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.cmp th { color: var(--muted); font-weight: 600; background: var(--mint); position: sticky; left: 0; white-space: nowrap; }
.cmp td { min-width: 160px; }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }
.prose { max-width: 780px; color: var(--ink-soft); font-size: 15.5px; }
.prose h1, .prose h2 { color: var(--ink); }
.prose li { margin-bottom: 6px; }

/* ---------- modal, tip, toast ---------- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(6, 22, 19, 0.46); display: grid; place-items: center; padding: 16px; }
.modal-card { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 26px; display: grid; gap: 12px; }
.modal-card h2 { margin: 0; font-size: 1.45rem; }
.modal-card p { margin: 0; color: var(--ink-soft); }
.modal-card input:not([type=range]) { width: 100%; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.tip { position: fixed; z-index: 95; pointer-events: none; background: var(--forest); color: #fff; border-radius: 10px; padding: 8px 11px; font-size: 13px; max-width: 280px; box-shadow: var(--shadow); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 99; background: var(--forest); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.toast .link { color: #8fe3c8; }
@media (prefers-reduced-motion: reduce) { .progress i { animation: none; width: 100%; opacity: .5; } * { transition: none !important; } }

/* ---------- neighbourhood sections ---------- */
.score-card { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fff; }
.score-big { text-align: center; background: var(--mint); border-radius: 16px; padding: 18px 10px; }
.score-big b { display: block; font-family: var(--head); font-size: 3.4rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.score-big span { font-size: 12.5px; color: var(--muted); }
.score-big em { display: block; font-style: normal; font-weight: 700; margin-top: 6px; font-family: var(--head); }
.subs { display: grid; gap: 9px; }
.sub { display: grid; grid-template-columns: 150px 1fr 34px; gap: 10px; align-items: center; font-size: 14px; }
.sub b { text-align: right; font-variant-numeric: tabular-nums; }
.hbar { display: block; height: 8px; background: var(--mint-2); border-radius: 8px; overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 8px; }
.callout { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-wash); border-radius: 14px; padding: 14px 16px; }
.callout .i { color: var(--accent); margin-top: 3px; }
.area-block { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-bottom: 14px; background: #fff; }
.area-block h3 { margin: 0 0 12px; font-size: 18px; display: flex; gap: 10px; align-items: center; }
.area-block h3 .i { color: var(--accent); width: 20px; height: 20px; }
.area-block h4 { margin: 4px 0 6px; font-size: 13.5px; color: var(--ink-soft); }
.area-block p { margin: 0 0 10px; }
.area-block .kv + p { margin-top: 12px; }
.area-block .kv { margin-bottom: 4px; }
.bars { display: grid; gap: 8px; margin: 6px 0 12px; }
.bar-row { display: grid; grid-template-columns: 190px 1fr 44px; gap: 10px; align-items: center; font-size: 14px; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.near-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; }
.near { list-style: none; margin: 0 0 8px; padding: 0; }
.near li { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.near li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ofsted { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; background: var(--mint); color: var(--ink-soft); }
.ofsted.outstanding { background: #d3ede3; color: #0c6a4a; } .ofsted.good { background: var(--ok-soft); color: var(--ok); }
.ofsted.requires-improvement { background: var(--mid-soft); color: var(--mid); } .ofsted.inadequate { background: var(--bad-soft); color: var(--bad); }
.warn-t { color: var(--dear); }
.hours { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin: 8px 0 6px; padding-bottom: 18px; position: relative; }
.hours > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.hours i { display: block; background: var(--accent-bright); border-radius: 4px 4px 0 0; min-height: 2px; }
.hours span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.hours.crowd { gap: 1px; }
.hours.crowd i { background: #8cc9b5; }
.hours.crowd .peak i { background: var(--bad); }
.trend { width: 100%; height: auto; display: block; margin: 6px 0 4px; overflow: visible; }
.trend .ln { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.trend .ar { fill: var(--accent-wash); }
.trend .ax { stroke: var(--line); stroke-width: 1; }
.trend text { font-size: 11px; fill: var(--muted); font-family: var(--sans); }
.stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 6px 0 8px; background: var(--mint-2); }
.stack i { display: block; height: 100%; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-soft); }
.legend-inline span { display: inline-flex; gap: 6px; align-items: center; }
.legend-inline i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-list li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; display: grid; gap: 3px; }
.plan-list li:last-child { border-bottom: 0; }
.plan-list .m { color: var(--muted); font-size: 12.5px; }
.journey { list-style: none; margin: 0 0 12px; padding: 0; border-left: 3px solid var(--accent-soft); }
.journey li { display: flex; gap: 10px; align-items: center; padding: 9px 0 9px 14px; position: relative; }
.journey li span { flex: 1; }
.journey li .i, .journey li .ldot { flex: none; }

/* ---------- area report page ---------- */
.row-c { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.report { padding-top: 0; }
.rp-hero { position: relative; height: 380px; border-radius: 0 0 26px 26px; overflow: hidden; margin: 0 -24px; color: #fff; }
.rp-hero .aerial { position: absolute; inset: 0; border-radius: 0; }
.rp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 22, 19, 0.15) 0%, rgba(6, 22, 19, 0.35) 45%, rgba(6, 22, 19, 0.82) 100%); pointer-events: none; }
.rp-hero-in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 48px 30px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.rp-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.02; margin: 0 0 6px; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); }
.rp-hero .where { color: rgba(255, 255, 255, 0.88); font-size: 16px; margin: 0; }
.rp-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.rp-stat { background: rgba(6, 22, 19, 0.55); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; padding: 12px 16px; min-width: 150px; }
.rp-stat b { display: block; font-family: var(--head); font-size: 26px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.rp-stat span { font-size: 12.5px; color: rgba(255, 255, 255, 0.8); }
.rp-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin: 22px 0 6px; }
.rp-search { flex: 1 1 420px; max-width: 620px; }
.rp-search .place-field input { min-height: 50px; }
.rp-search .btn { min-height: 50px; }
.rp-intro { max-width: 900px; margin: 0 auto; text-align: center; padding: 64px 0 28px; }
.rp-intro h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.04; margin: 0 0 14px; }
.rp-intro .lead-s { color: var(--ink-soft); font-size: 1.12rem; margin: 0 auto 26px; max-width: 680px; }
.rp-intro .sb-row { max-width: 680px; margin: 0 auto; text-align: left; }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; margin-top: 12px; }
.rp-grid > * { min-width: 0; }
.rp-act { position: sticky; top: calc(var(--top-h) + 20px); align-content: start; }
.rp-act p { margin: 0; }
.rp-feats { margin-top: 36px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .feat-grid, .area-grid, .grid-cards, .similar { grid-template-columns: repeat(2, 1fr); }
  .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-body { grid-template-columns: minmax(400px, 52%) 1fr; }
  .card { grid-template-columns: 180px 1fr; }
  .card .heart { left: 132px; }
  .d-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .show-row, .show-row.flip { grid-template-columns: 1fr; gap: 28px; }
  .show-row.flip .show-txt { order: 0; }
  .dk-in { grid-template-columns: 1fr; }
  .dk-photo { display: none; }
  .faq-wrap { grid-template-columns: 1fr; gap: 10px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .top-nav a.top-cta { display: none; }
}
@media (max-width: 860px) {
  :root { --top-h: 60px; }
  .top { padding: 0 14px; gap: 10px; }
  body.home .top { top: 10px; width: calc(100% - 20px); border-radius: 14px; }
  .brand .word { display: none; }
  .brand-sub { font-size: 14px; padding-left: 10px; white-space: nowrap; }
  .top-nav a { padding: 8px 9px; font-size: 14px; }
  .top-nav a span:not(.count) { display: none; }
  .wrap, .detail, .page { padding-left: 16px; padding-right: 16px; }
  .hh { min-height: 0; }
  .hh-in { padding: 108px 0 56px; }
  .hh-modes { overflow-x: auto; scrollbar-width: none; }
  .hh-modes button { white-space: nowrap; padding: 8px 11px; }
  .hh-row, .sb-row, .ask-row { flex-direction: column; }
  .hh-row .btn, .sb-row .btn, .ask-row .btn { width: 100%; }
  .hh-ex { display: none; }
  .sources ul { gap: 8px 20px; }
  .sources li { font-size: 13.5px; }
  .band, .dk { padding: 60px 0; }
  .rec-grid, .feat-grid, .area-grid, .grid-cards, .similar { grid-template-columns: 1fr; }
  .show { gap: 64px; }
  .sbar { padding: 10px 14px; }
  .res-body { display: block; position: relative; }
  .list-col { position: absolute; inset: 0; padding: 16px 14px 100px; }
  .map-col { position: absolute; inset: 0; border: 0; }
  .results:not(.show-map) .map-col { visibility: hidden; }
  .results.show-map .list-col { visibility: hidden; }
  .view-toggle { display: inline-flex; position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 30; align-items: center; gap: 8px; background: var(--forest); color: #fff; border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 650; font-family: var(--head); box-shadow: var(--shadow-lg); }
  .card { grid-template-columns: 1fr; }
  .card .ph { min-height: 200px; }
  .card .heart { left: auto; right: 12px; }
  .preview { bottom: 84px; grid-template-columns: 110px 1fr; }
  .legend { bottom: 84px; }
  .map-ctl.tl { right: 60px; }
  .map-btn span.hide-sm { display: none; }
  .gallery { height: 300px; grid-template-columns: 1fr; grid-template-rows: 1fr; border-radius: 18px; }
  .gallery > :not(.main) { display: none; }
  .keyfacts { grid-template-columns: repeat(2, 1fr); }
  .calc .out { grid-template-columns: 1fr; }
  .advert-list { columns: 1; }
  .foot-in { grid-template-columns: 1fr; }
  .sheet-card { width: 100%; }
  .dd { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: none; border-radius: 22px 22px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .score-card { grid-template-columns: 1fr; }
  .sub { grid-template-columns: 120px 1fr 30px; }
  .bar-row { grid-template-columns: 120px 1fr 38px; font-size: 13px; }
  .near-grid { grid-template-columns: 1fr; }
  .qa .short { white-space: normal; max-width: 46%; text-align: right; }
  .glance { grid-template-columns: 1fr 1fr; }
  .gl { grid-template-columns: 1fr; padding: 12px; }
  .gl .ic { grid-row: auto; width: 32px; height: 32px; margin-bottom: 4px; }
  .rp-hero { height: 340px; margin: 0 -16px; border-radius: 0 0 20px 20px; }
  .rp-hero-in { padding: 0 18px 18px; }
  .rp-stat { min-width: 0; flex: 1 1 40%; padding: 10px 12px; }
  .rp-stat b { font-size: 20px; }
  .rp-grid { grid-template-columns: 1fr; gap: 0; }
  .rp-act { position: static; order: -1; margin-bottom: 8px; }
  .rp-intro { padding: 36px 0 18px; }
}
@media (max-width: 480px) {
  .brand-sub { display: none; }
}
@media (max-width: 420px) {
  .glance { grid-template-columns: 1fr; }
  .gl { grid-template-columns: 32px 1fr; }
  .gl .ic { grid-row: span 3; margin: 0; }
}

/* ---------- area guides (static pages under /areas) ---------- */
.guide { max-width: 1240px; margin: 0 auto; padding: 22px 24px 80px; }
.g-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.g-crumbs a { color: var(--ink-soft); text-decoration: none; }
.g-crumbs a:hover { color: var(--accent); text-decoration: underline; }
.g-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 40px; align-items: center; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.g-head h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.03; margin: 0 0 14px; }
.g-lede { color: var(--ink-soft); font-size: 1.12rem; margin: 0 0 22px; max-width: 600px; }
.g-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 22px; }
.g-stats div { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; }
.g-stats b { display: block; font-family: var(--head); font-size: 24px; font-weight: 750; letter-spacing: -0.03em; }
.g-stats b small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.g-stats span { font-size: 12.5px; color: var(--muted); }
.g-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.g-map { margin: 0; background: var(--mint); border-radius: 20px; padding: 14px; }
.g-svg { width: 100%; height: auto; display: block; }
.g-svg path { stroke: #fff; stroke-width: 0.8; transition: opacity .15s; }
.g-svg a:hover path, .g-svg path:hover { opacity: .8; stroke: var(--ink); stroke-width: 1.2; }
.g-legend { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin: 8px 4px 0; }
.g-legend i { width: 26px; height: 9px; border-radius: 3px; display: inline-block; }
.g-legend span:first-child { margin-right: 4px; } .g-legend span:last-child { margin-left: 4px; }
.g-map figcaption { font-size: 12.5px; color: var(--muted); margin: 6px 4px 0; }
.g-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.g-body.one { grid-template-columns: minmax(0, 1fr); }
.g-body > * { min-width: 0; }
.g-q { padding: 34px 0 6px; }
.g-q + .g-q { border-top: 1px solid var(--line-soft); }
.g-q h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0 0 12px; }
.g-a { font-size: 1.06rem; line-height: 1.6; color: var(--ink); margin: 0 0 14px; max-width: 780px; }
.g-a a { font-weight: 600; }
.g-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.g-mini div { background: var(--mint); border-radius: 12px; padding: 12px 14px; }
.g-mini b { display: block; font-family: var(--head); font-size: 20px; letter-spacing: -0.02em; }
.g-mini span { font-size: 12.5px; color: var(--muted); }
.g-table { width: 100%; }
.g-table th { position: static; background: var(--mint); }
.g-table td, .g-table th { white-space: nowrap; min-width: 0 !important; font-variant-numeric: tabular-nums; }
.g-table td:first-child { white-space: normal; min-width: 160px !important; }
.g-table a { font-weight: 600; text-decoration: none; }
.g-table a:hover { text-decoration: underline; }
.g-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 8px; vertical-align: -1px; }
.g-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.g-links a { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 650; background: #fff; transition: border-color .15s, box-shadow .15s; }
.g-links a:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.g-links span { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--muted); }
.g-src ul { color: var(--ink-soft); padding-left: 20px; margin: 0 0 12px; }
.g-src li { margin-bottom: 5px; }
.g-side { position: sticky; top: calc(var(--top-h) + 20px); padding-top: 34px; }
.g-toc { display: grid; gap: 2px; margin: 4px 0 6px; }
.g-toc a { color: var(--ink-soft); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.g-toc a:hover { background: var(--mint); color: var(--ink); }
@media (max-width: 1100px) {
  .g-head { grid-template-columns: 1fr; }
  .g-body { grid-template-columns: 1fr; }
  .g-side { display: none; }
}
@media (max-width: 860px) {
  .guide { padding: 16px 16px 60px; }
  .g-cta .btn { flex: 1 1 100%; }
}
.js .seo-fallback { display: none; }
