/* ==========================================================================
   Neighbourhood pages — ivaylostoyanov.ca design (25 Sept 2026)

   Replaces the per-page inline stylesheet (the old BrokerHub/GHL "portal" look:
   gold accents, grey cards, Inter). Tokens, fonts and rhythm are copied from
   ivaylostoyanov.ca/assets/css/site.css so these read as the same site:
     · warm off-white surfaces, navy for type, hairlines and accents only
     · no grey, no gold, no boxed cards: open sections divided by hairlines
     · Cormorant Garamond for headings and figures, DM Sans for everything else
   Fonts are self-hosted HERE (fonts/), so nothing depends on another origin.
   ========================================================================== */

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url(fonts/dm-sans-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 100 1000; font-display: swap;
  src: url(fonts/dm-sans-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/cormorant-garamond-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/cormorant-garamond-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* ivaylostoyanov.ca tokens (site.css §1) */
  --brand-primary: #0d163b; --brand-primary-2: #162561; --brand-deep: #080e22; --brand-black: #0a1233;
  --ground: #ffffff; --ground-page: #faf9f7;
  --ink: #131c45; --ink-muted: #3b4262; --ink-faint: #585f7c; --ink-label: #0d163b;
  --ink-on-dark: #ffffff; --ink-on-dark-soft: rgba(255,255,255,.72); --ink-on-dark-faint: rgba(255,255,255,.55);
  --line: rgba(13,22,59,.12); --line-soft: rgba(13,22,59,.07); --line-strong: rgba(13,22,59,.30); --line-on-dark: rgba(255,255,255,.22);
  --up: #1f7a45; --down: #b3261e;                /* darker than the site's chart hues: these are TEXT on white */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --fs-eyebrow: .7rem; --fs-label: .66rem; --fs-body: 1rem; --fs-lede: 1.0625rem; --fs-small: .875rem; --fs-fine: .78rem;
  --fs-h3: clamp(1.15rem, 1rem + .7vw, 1.4rem); --fs-h2: clamp(1.6rem, 1.3rem + 1.5vw, 2.4rem);
  --fs-hero: clamp(2.6rem, 1.6rem + 4vw, 4.4rem); --fs-figure: clamp(2.4rem, 1.6rem + 3vw, 3.5rem);
  --fw-hero: 300; --fw-semi: 600; --fw-figure: 600;
  --track-eyebrow: .25em; --track-label: .2em; --track-cta: .08em;
  --lh-body: 1.6;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --container: 1200px; --gutter: clamp(16px, 4vw, 24px);
  --t: .3s; --ease: cubic-bezier(.22,1,.36,1);
  /* legacy names still referenced by inline styles and scripts in the page markup */
  --navy: var(--brand-primary); --gold: var(--brand-primary); --primary-color: var(--brand-primary);
  --accent-color: var(--brand-primary); --text-muted: var(--ink-muted); --border: var(--line); --white: #fff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink);
  background: var(--ground-page); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }

/* ── HEADER (replaces the old nav) ────────────────────────────────────────── */
.nb-header { position: sticky; top: 0; z-index: 1000; background: var(--ground-page); border-bottom: 1px solid var(--line); }
.nb-header__inner { max-width: var(--container); margin: 0 auto; padding: var(--sp-3) var(--gutter); display: flex; align-items: center; gap: var(--sp-5); }
.nb-mark { text-decoration: none; color: var(--brand-primary); display: grid; line-height: 1.1; }
.nb-mark__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.nb-mark__title { font-size: .58rem; font-weight: var(--fw-semi); letter-spacing: .25em; text-transform: uppercase; color: var(--ink-muted); margin-top: 2px; }
.nb-nav { margin-left: auto; display: flex; align-items: center; gap: var(--sp-5); }
.nb-nav a { font-size: .72rem; font-weight: var(--fw-semi); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.nb-nav a:hover { color: var(--ink-muted); }
.nb-back { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); border: 1px solid var(--brand-primary);
  font-size: .72rem; font-weight: var(--fw-semi); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--brand-primary); white-space: nowrap;
  transition: background var(--t) var(--ease), color var(--t) var(--ease); }
.nb-back:hover { background: var(--brand-primary); color: var(--ink-on-dark); }
@media (max-width: 860px) { .nb-nav .nb-nav__link { display: none; } }
@media (max-width: 480px) { .nb-mark__title { display: none; } .nb-back { padding: var(--sp-2) var(--sp-3); letter-spacing: .08em; } }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; height: clamp(360px, 52vh, 520px); overflow: hidden; display: flex; align-items: flex-end; padding: 0 !important; }
.hero-bg { position: absolute; inset: 0; background: var(--brand-primary); z-index: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(13,22,59,.10) 0%, rgba(13,22,59,.30) 45%, rgba(13,22,59,.85) 100%); }
.hero-content { position: relative; z-index: 3; width: 100%; max-width: var(--container); margin: 0 auto; padding: var(--sp-7) var(--gutter); }
.hero-badge { display: inline-flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4); padding: 0; background: none;
  font-size: var(--fs-eyebrow); font-weight: var(--fw-semi); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ink-on-dark-soft); }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-on-dark); }
.hero-badge #hero-price { color: var(--ink-on-dark); }
.hero h1 { font-family: var(--font-display); font-weight: var(--fw-hero); font-size: var(--fs-hero); line-height: 1.02; letter-spacing: .01em; color: var(--ink-on-dark); }
.hero-sub { margin-top: var(--sp-2); font-size: var(--fs-lede); color: var(--ink-on-dark-soft); }
.hero-share { position: absolute; top: var(--sp-5); right: var(--sp-5); z-index: 4; display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; cursor: pointer;
  font-size: .72rem; font-weight: var(--fw-semi); letter-spacing: .12em; text-transform: uppercase; }
.hero-share:hover { background: rgba(255,255,255,.12); }

/* ── SECTION RHYTHM: one surface, hairline between sections ───────────────── */
section { padding: var(--sp-8) 0; background: var(--ground-page); border-top: 1px solid var(--line); }
.hero + section { border-top: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 600px) { section { padding: var(--sp-7) 0; } }
.section-eyebrow { font-size: var(--fs-eyebrow); font-weight: var(--fw-semi); letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--ink-label) !important; margin-bottom: var(--sp-3); }
.section-title { font-family: var(--font-display); font-weight: var(--fw-hero); font-size: var(--fs-h2); line-height: 1.12; color: var(--brand-primary) !important; margin-bottom: var(--sp-2); }
.section-sub { font-size: var(--fs-small); color: var(--ink-muted) !important; opacity: 1; margin-bottom: var(--sp-6); }

/* ── TOGGLES AND PILLS ────────────────────────────────────────────────────── */
.snap-toggles, .chart-toggles, .range-pills, .type-pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.snap-toggle, .chart-toggle, .pill, .type-pill {
  padding: var(--sp-2) var(--sp-4); border: 1px solid var(--line-strong); border-radius: 0; background: var(--ground); color: var(--ink-muted);
  font-size: .68rem; font-weight: var(--fw-semi); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); }
.snap-toggle:hover, .chart-toggle:hover, .pill:hover, .type-pill:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.snap-toggle.active, .chart-toggle.active, .pill.active, .pill.gold-pill.active, .type-pill.active,
.type-pill[data-t].active { background: var(--brand-primary) !important; border-color: var(--brand-primary); color: var(--ink-on-dark); }
.type-pills { gap: 6px; margin-bottom: var(--sp-4); }
.type-pill { padding: 6px 12px; font-size: .62rem; }
.chart-range-bar { display: flex; gap: 6px; margin-top: var(--sp-4); }
.chart-range-bar .pill { padding: 6px 10px; font-size: .62rem; }

/* ── MARKET SNAPSHOT ──────────────────────────────────────────────────────── */
.snap-price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.snap-price { font-family: var(--font-display); font-weight: var(--fw-figure); font-size: var(--fs-figure); line-height: 1; color: var(--brand-primary); }
.snap-price-label { font-size: var(--fs-small); color: var(--ink-muted); }
.snap-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); margin-bottom: var(--sp-4); }
@media (max-width: 900px) { .snap-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .snap-grid { grid-template-columns: repeat(2, 1fr); } }
.snap-card { padding: var(--sp-4) var(--sp-3) var(--sp-4) 0; border: 0; border-bottom: 1px solid var(--line); background: none; box-shadow: none; text-align: left; }
.snap-card:hover { background: none; }
.snap-period { font-size: var(--fs-label); font-weight: var(--fw-semi); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--sp-2); }
.snap-pct { font-family: var(--font-display); font-size: 1.7rem; font-weight: var(--fw-figure); line-height: 1; }
.snap-pct.up { color: var(--up); } .snap-pct.down { color: var(--down); } .snap-pct.neutral { color: var(--ink-faint); }
.snap-note { margin-top: var(--sp-4); font-size: var(--fs-fine); color: var(--ink-muted); }

/* ── CHARTS ───────────────────────────────────────────────────────────────── */
.chart-wrap { position: relative; height: 380px; }
.chart-grid-2x2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7) var(--sp-7); }
@media (max-width: 800px) { .chart-grid-2x2 { grid-template-columns: minmax(0, 1fr); } }
/* min-width 0: a drawn canvas otherwise holds a grid item at its old width when the window narrows */
.chart-card { min-width: 0; padding: var(--sp-5) 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.chart-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.chart-eyebrow { display: block; margin-bottom: var(--sp-1); font-size: var(--fs-label); font-weight: var(--fw-semi); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-label); }
.chart-card-title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; color: var(--brand-primary); }
.chart-stat-val { font-family: var(--font-display); font-size: 1.6rem; font-weight: var(--fw-figure); line-height: 1.05; color: var(--brand-primary); text-align: right; }
.chart-stat-label { margin-top: 2px; font-size: var(--fs-fine); color: var(--ink-muted); text-align: right; }
.chart-card-wrap { position: relative; height: 240px; }

/* ── WHAT SELLS (property types) ──────────────────────────────────────────── */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--line); }
.prop-card { padding: var(--sp-5) var(--sp-4) var(--sp-5) 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.prop-card:hover { box-shadow: none; }
.prop-type-icon { display: none; }
.prop-type-name { font-size: var(--fs-label); font-weight: var(--fw-semi); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-label); margin-bottom: var(--sp-2); }
.prop-type-price { font-family: var(--font-display); font-size: 1.9rem; font-weight: var(--fw-figure); line-height: 1.05; color: var(--brand-primary); margin-bottom: var(--sp-2); }
.prop-type-change { font-size: var(--fs-fine); font-weight: var(--fw-semi); }
.prop-type-change.up { color: var(--up); } .prop-type-change.down { color: var(--down); }
.semi-town-note { color: var(--ink-muted) !important; opacity: 1; }

/* ── AMENITIES ────────────────────────────────────────────────────────────── */
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-6) var(--sp-7); }
.amenity-cat { border: 0; border-radius: 0; overflow: visible; }
.amenity-cat-head { display: flex; align-items: center; gap: var(--sp-2); padding: 0 0 var(--sp-3); background: none; border-bottom: 1px solid var(--brand-primary); }
.amenity-cat-icon { display: none; }
.amenity-cat-name { font-size: var(--fs-label); font-weight: var(--fw-semi); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-label); }
.amenity-list { padding: 0; }
.amenity-item { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.amenity-item:last-child { border-bottom: 1px solid var(--line); }
.amenity-name { color: var(--ink); }
.amenity-dist { flex: none; font-size: var(--fs-fine); color: var(--ink-muted); }
.amenity-loading { padding: var(--sp-4) 0; font-size: var(--fs-small); color: var(--ink-muted); }

/* ── DRIVE TIMES AND TRANSIT ──────────────────────────────────────────────── */
.drive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 1px solid var(--line); }
.drive-card { display: block; padding: var(--sp-5) var(--sp-4) var(--sp-5) 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.drive-icon { display: none; }
.drive-dest { font-size: var(--fs-label); font-weight: var(--fw-semi); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-label); margin-bottom: var(--sp-2); }
.drive-time { font-family: var(--font-display); font-size: 1.8rem; font-weight: var(--fw-figure); line-height: 1.05; color: var(--brand-primary); }
.drive-note { margin-top: var(--sp-1); font-size: var(--fs-fine); color: var(--ink-muted); }
.transit-grid { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-6); }
.transit-badge { display: flex; align-items: baseline; gap: var(--sp-2); padding: 0; border: 0; border-radius: 0; background: none; }
.transit-badge-icon { display: none; }
.transit-badge-name { font-size: var(--fs-small); font-weight: var(--fw-semi); color: var(--ink); }
.transit-badge-sub { font-size: var(--fs-fine); color: var(--ink-muted); }

/* ── DEMOGRAPHICS ─────────────────────────────────────────────────────────── */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--line); }
.demo-card { padding: var(--sp-5) var(--sp-4) var(--sp-5) 0; text-align: left; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.demo-num { font-family: var(--font-display); font-size: var(--fs-figure); font-weight: var(--fw-figure); line-height: 1; letter-spacing: 0; color: var(--brand-primary); }
.demo-label { margin-top: var(--sp-2); font-size: var(--fs-small); font-weight: 500; color: var(--ink); }
.demo-source { margin-top: var(--sp-1); font-size: var(--fs-fine); color: var(--ink-muted); }

/* ── DESCRIPTION ──────────────────────────────────────────────────────────── */
.desc-block { max-width: 46rem; margin: 0; padding: 0 0 0 var(--sp-5); background: none; border-radius: 0; border-left: 2px solid var(--brand-primary); box-shadow: none; }
.desc-block p { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.7; color: var(--ink); }
.desc-source { margin-top: var(--sp-4); font-size: var(--fs-fine); color: var(--ink-muted); }

/* ── SCHOOLS ──────────────────────────────────────────────────────────────── */
.schools { padding: var(--sp-8) 0; }
.schools .container { display: grid; justify-items: start; text-align: left; gap: var(--sp-3); }
.schools h2 { font-family: var(--font-display); font-weight: var(--fw-hero); font-size: var(--fs-h2); color: var(--brand-primary); }
.schools p { max-width: 36rem; font-size: var(--fs-body); color: var(--ink-muted); }
.schools-note { font-size: var(--fs-fine); color: var(--ink-muted); }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn-primary, .btn-outline, .btn-go {
  display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--sp-6); border-radius: 0; text-decoration: none; cursor: pointer;
  font-size: .8rem; font-weight: var(--fw-semi); letter-spacing: var(--track-cta); text-transform: uppercase; transition: all var(--t) var(--ease); }
.btn-primary, .btn-go { background: var(--brand-primary); color: var(--ink-on-dark); border: 1px solid var(--brand-primary); }
.btn-primary:hover, .btn-go:hover { background: var(--brand-primary-2); opacity: 1; }
.btn-outline { background: transparent; color: var(--brand-primary); border: 1px solid var(--brand-primary); margin-top: var(--sp-2); }
.btn-outline:hover { background: var(--brand-primary); color: var(--ink-on-dark); }
.btn-go { height: 48px; padding: 0 var(--sp-6); }

/* ── NAVIGATOR ────────────────────────────────────────────────────────────── */
.nav-form { display: flex; align-items: flex-end; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.nav-form label { display: block; margin-bottom: var(--sp-2); font-size: var(--fs-label); font-weight: var(--fw-semi); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-label); }
.nav-form select { height: 48px; min-width: 220px; padding: 0 40px 0 var(--sp-4); border: 1px solid var(--line-strong); border-radius: 0; background-color: var(--ground);
  font: inherit; font-size: var(--fs-body); color: var(--ink); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230d163b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.nav-form select:focus { outline: none; border-color: var(--brand-primary); }
.nearby-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.nearby-link { padding: 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: none;
  font-size: var(--fs-small); font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color var(--t) var(--ease); }
.nearby-link:hover { background: none; color: var(--brand-primary); border-bottom-color: var(--brand-primary); }

/* ── AGENT (the one navy band, as on the main site) ───────────────────────── */
.agent-card { padding: var(--sp-8) 0; background: var(--ground-page); }
.agent-inner { display: flex; align-items: center; gap: var(--sp-7); flex-wrap: wrap; }
.agent-photo-wrap { width: 140px; height: 140px; flex-shrink: 0; overflow: hidden; border-radius: 50%; border: 1px solid var(--line-strong); }
.agent-photo { width: 100%; height: 100%; object-fit: cover; transform: none; display: block; }
.agent-info { flex: 1; min-width: 240px; }
.agent-eyebrow { font-size: var(--fs-eyebrow); font-weight: var(--fw-semi); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ink-label); margin-bottom: var(--sp-3); }
.agent-name { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: var(--fw-hero); line-height: 1.1; color: var(--brand-primary); }
.agent-title { margin-top: var(--sp-1); font-size: var(--fs-fine); font-weight: var(--fw-semi); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ink-muted); }
.agent-team { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--ink-muted); }
.agent-brokerage { font-size: var(--fs-small); font-weight: var(--fw-semi); color: var(--ink); }
.agent-contact { margin-top: var(--sp-3); font-size: var(--fs-body); line-height: 1.8; }
.agent-contact a { color: var(--brand-primary); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.agent-contact a:hover { border-bottom-color: var(--brand-primary); }
.agent-cta { margin-top: var(--sp-5); }
@media (max-width: 600px) { .agent-inner { gap: var(--sp-5); } }

/* ── FOOTER: the main site's, with the RECO block ─────────────────────────── */
.site-footer { background: var(--brand-black); color: var(--ink-on-dark-soft); padding: var(--sp-8) 0 var(--sp-5); font-size: var(--fs-small); border: 0; }
.site-footer__grid { display: grid; gap: var(--sp-7); }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer h2 { margin-bottom: var(--sp-4); font-family: var(--font-sans); font-size: var(--fs-eyebrow); font-weight: var(--fw-semi); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ink-on-dark-faint); }
.site-footer a { color: var(--ink-on-dark-soft); text-decoration: none; transition: color var(--t) var(--ease); }
.site-footer a:hover { color: var(--ink-on-dark); }
.site-footer__links { list-style: none; }
.site-footer__links li + li { margin-top: var(--sp-3); }
.reco__name { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500; color: var(--ink-on-dark); }
.reco__title { margin-top: var(--sp-1); font-size: var(--fs-fine); font-weight: var(--fw-semi); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--ink-on-dark-soft); }
.reco__brokerage { margin-top: var(--sp-4); font-size: var(--fs-body); font-weight: var(--fw-semi); letter-spacing: .01em; color: var(--ink-on-dark); }
.reco__address { margin-top: var(--sp-2); font-style: normal; line-height: var(--lh-body); }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-7); }
.trust__mark { flex-shrink: 0; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line-on-dark); font-size: .72rem; font-weight: var(--fw-semi); letter-spacing: .14em; color: var(--ink-on-dark); }
.trust__mark sup { font-size: .6em; letter-spacing: 0; }
.trust__text { flex: 1 1 22rem; max-width: 70ch; font-size: var(--fs-fine); color: var(--ink-on-dark-faint); }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid var(--line-on-dark); font-size: var(--fs-fine); color: var(--ink-on-dark-faint); }
.footer-share-btn { padding: 0; border: 0; border-bottom: 1px solid var(--line-on-dark); background: none; color: var(--ink-on-dark-soft); font-size: var(--fs-fine); cursor: pointer; }
.footer-share-btn:hover { color: var(--ink-on-dark); }

/* ── FLOATING CTA, TOAST, LOADING ─────────────────────────────────────────── */
.floating-cta { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 999;
  display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5); border: 0; border-radius: 0; background: var(--brand-primary); color: var(--ink-on-dark);
  font-size: .72rem; font-weight: var(--fw-semi); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; box-shadow: 0 8px 24px rgba(13,22,59,.25);
  transition: transform var(--t) var(--ease), background var(--t) var(--ease); }
.floating-cta:hover { background: var(--brand-primary-2); transform: translateY(-2px); }
.toast { position: fixed; bottom: 84px; left: 50%; z-index: 9999; padding: var(--sp-3) var(--sp-5); background: var(--brand-primary); color: #fff;
  font-size: var(--fs-small); opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); transition: all var(--t) var(--ease); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.skeleton { background: linear-gradient(90deg, var(--line-soft) 25%, var(--line) 50%, var(--line-soft) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-dark { background: linear-gradient(90deg, rgba(255,255,255,.06) 25%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.06) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.api-warning { display: none; margin-bottom: var(--sp-4); padding: var(--sp-3) 0 var(--sp-3) var(--sp-4); border-left: 2px solid var(--brand-primary); font-size: var(--fs-small); color: var(--ink-muted); }
.api-warning.show { display: block; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; } }
/* The description section's markup centres its heading inline; keep the site's left rhythm. */
.description .section-eyebrow, .description .section-title { text-align: left !important; opacity: 1 !important; }

/* Schools (fix_content.py): Ministry of Education data, hairline rows, no boxes. */
.schools .container { display: block; text-align: left; }
.sch-cols { display: grid; width: 100%; max-width: none; gap: var(--sp-7); margin-top: var(--sp-6); }
@media (min-width: 900px) { .sch-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.sch-h { font-size: var(--fs-label); font-weight: var(--fw-semi); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--brand-primary); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--brand-primary); margin: 0; }
.sch-list { list-style: none; margin: 0; padding: 0; }
.sch-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-4); row-gap: 2px; padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.schools .sch-row p { margin: 0; max-width: none; }
.schools .sch-name { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; color: var(--brand-primary); }
.sch-name a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.sch-name a:hover { border-bottom-color: var(--brand-primary); }
.schools .sch-dist { font-size: var(--fs-fine); color: var(--ink); white-space: nowrap; }
.schools .sch-meta, .schools .sch-eqao { grid-column: 1 / -1; font-size: var(--fs-fine); color: var(--ink); }
.sch-eqao strong { font-weight: var(--fw-semi); color: var(--brand-primary); }
.schools .sch-note { margin-top: var(--sp-6); max-width: 46rem; font-size: var(--fs-small); color: var(--ink); }
.sch-note a { color: var(--brand-primary); }
.schools .sch-source { margin-top: var(--sp-3); max-width: 46rem; font-size: var(--fs-fine); color: var(--ink-muted); }
.demo-foot { margin-top: var(--sp-4); }
