/* condosforsaleedmonton.ca — shared styles for every page */

:root {
  --navy:   #030328;
  --navy-2: #0d0d45;
  --slate:  #00FBF0;
  --slate-light: rgba(0,251,240,0.12);
  --slate-dark:  #030328;
  --teal-ink: #007a75;
  --white:  #ffffff;
  --off-white: #f5f8fa;
  --text:   #1D1D1D;
  --muted:  #5a6a7a;
  --border: #dde8ef;
  --gold:   #c9962c;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(3,3,40,.10);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a.xlink { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; font-weight: 600; }
a.xlink:hover { text-decoration-thickness: 2px; }
.section-dark a.xlink, .panel-dark a.xlink, .cta-band a.xlink { color: var(--slate); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--slate); color: var(--navy); font-weight: 800; padding: .7rem 1.1rem; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ── TYPOGRAPHY ─────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-weight: 800; }
h1, h2 { text-transform: uppercase; letter-spacing: .04em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--muted); }
a { color: inherit; text-decoration: none; }
strong { color: inherit; }

.label {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: .5rem;
}
.on-dark .label, .label.on-dark { color: var(--slate); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { max-width: 680px; margin: .75rem auto 0; }
.section-header.left { text-align: left; }
.section-header.left p { margin-left: 0; }

section { padding: 80px 20px; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.72); }
.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 860px; margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 2rem;
  border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; font-family: inherit;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-primary { background: var(--slate); color: var(--navy); }
.btn-primary:hover { background: var(--white); color: var(--navy); transform: translateY(-1px); box-shadow: 0 0 0 2px var(--slate) inset; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.6); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn-outline-dark { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ── NAV ────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex; align-items: center; gap: 1rem;
  max-width: 1240px; margin: 0 auto;
  padding: 0 20px; min-height: var(--nav-h);
}
.nav-logo {
  color: var(--white);
  font-size: 1.02rem; font-weight: 800;
  letter-spacing: -.01em; white-space: nowrap;
  margin-right: auto;
}
.nav-logo span { color: var(--slate); }
.nav-links {
  display: flex; align-items: center; list-style: none; gap: .1rem;
}
.nav-links a {
  display: block;
  padding: 1.3rem .7rem;
  color: rgba(255,255,255,.8);
  font-size: .84rem; font-weight: 600; letter-spacing: .02em;
  transition: color .15s; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover { color: var(--slate); }
.nav-links a[aria-current="page"] { color: var(--slate); border-bottom-color: var(--slate); }
.nav-links .nav-contact a {
  margin-left: .4rem;
  padding: .55rem 1.1rem;
  background: var(--slate); color: var(--navy);
  border-radius: 8px; border-bottom: none; font-weight: 800;
}
.nav-links .nav-contact a:hover { background: var(--white); color: var(--navy); }
.nav-links .nav-contact a[aria-current="page"] { background: var(--white); }
.nav-phone {
  display: flex; align-items: center; gap: .35rem;
  color: var(--slate); font-weight: 700; font-size: .84rem;
  white-space: nowrap; padding: .45rem .8rem;
  border: 1.5px solid rgba(150,184,202,.35); border-radius: 8px;
  transition: color .15s, border-color .15s; flex-shrink: 0;
}
.nav-phone:hover { color: var(--white); border-color: var(--slate); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .25s; }
.nav.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .hamburger span:nth-child(2) { opacity: 0; }
.nav.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
  .hamburger { display: flex; order: 3; }
  .nav-inner { flex-wrap: wrap; }
  .nav-links {
    display: none; order: 4; width: 100%;
    flex-direction: column; align-items: stretch;
    padding: .25rem 0 1rem; border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: .8rem .25rem; border-bottom: none; border-left: 3px solid transparent; padding-left: .75rem; }
  .nav-links a[aria-current="page"] { border-left-color: var(--slate); }
  .nav-links .nav-contact a { margin: .5rem 0 0; text-align: center; border-left: none; }
}
@media (max-width: 480px) {
  .nav-phone .nav-phone-num { display: none; }
  .nav-logo { font-size: .9rem; }
}

/* ── HOME HERO ──────────────────────────── */
.hero {
  background: var(--navy);
  padding: 0; position: relative; overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h)); /* phones: exclude the browser toolbar */
  display: flex; flex-direction: column;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("../img/hero.webp");
  background-size: cover; background-position: center center; z-index: 0;
}
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.66); z-index: 1; }
.hero-grid {
  position: relative; z-index: 2;
  max-width: 900px; margin: auto;
  padding: 60px 20px 50px; text-align: center; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
}
.hero h1 { color: var(--white); line-height: 1.15; margin-bottom: 1.2rem; }
.hero h2 { color: var(--slate); font-size: clamp(1.1rem, 2.7vw, 1.8rem); font-weight: 600; line-height: 1.3; margin-bottom: 1.25rem; }
.hero-sub { color: rgba(255,255,255,.75); font-size: 1.1rem; margin: 0 auto 2rem; max-width: 640px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.75rem; flex-wrap: wrap; justify-content: center; }
.hero-stat strong { display: block; font-size: 1.7rem; color: var(--white); font-weight: 800; }
.hero-stat span { font-size: .8rem; color: rgba(255,255,255,.62); }

/* ── PAGE HERO (inner pages) ────────────── */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  padding: 72px 20px 64px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; opacity: .28;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3,3,40,.95) 0%, rgba(3,3,40,.7) 60%, rgba(3,3,40,.45) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1rem; max-width: 820px; }
.page-hero p { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 700px; }
.page-hero .btn-row { margin-top: 1.75rem; }
.crumbs { font-size: .78rem; color: rgba(255,255,255,.6); margin-bottom: 1.1rem; }
.crumbs a { color: var(--slate); }
.crumbs a:hover { text-decoration: underline; }

/* ── ON-PAGE JUMP NAV ───────────────────── */
.jump-nav {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: var(--nav-h); z-index: 50;
}
.jump-nav ul {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  list-style: none; display: flex; gap: .25rem; overflow-x: auto;
  scrollbar-width: none;
}
.jump-nav ul::-webkit-scrollbar { display: none; }
.jump-nav a {
  display: block; padding: .85rem .8rem; white-space: nowrap;
  font-size: .8rem; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.jump-nav a:hover { color: var(--navy); border-bottom-color: var(--slate); }

/* ── STATS ──────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; border-left: 4px solid var(--slate); box-shadow: var(--shadow);
}
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-card .stat-label { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .5rem; }
.change { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; margin-top: .5rem; }
.chips .change { margin-top: 0; }
.up   { background: #e6f5ec; color: #2a7a45; }
.down { background: #fce9e9; color: #b52b2b; }
.neutral { background: #eef3f7; color: #1a3a5c; }
.stat-source { font-size: .7rem; color: var(--muted); margin-top: .6rem; }
.stat-source a { color: var(--teal-ink); text-decoration: underline; }

/* Big numbers band */
.numbers-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.numbers-band strong { display: block; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--slate); line-height: 1.1; }
.numbers-band span { color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 600; }
@media (max-width: 640px) { .numbers-band { grid-template-columns: 1fr; } }

/* ── LISTINGS ───────────────────────────── */
.listings-toolbar {
  display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.75rem;
}
.listings-toolbar select {
  font-family: inherit; font-size: .85rem; font-weight: 600; color: var(--navy);
  padding: .6rem 2rem .6rem .9rem; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--white);
}
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .listing-grid { grid-template-columns: 1fr; } }
.listing-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(3,3,40,.16); }
.listing-photo { aspect-ratio: 4 / 3; background: #dfe8ee center/cover no-repeat; position: relative; }
.listing-badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--navy); color: var(--slate);
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 4px;
}
.listing-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.listing-price { font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.listing-address { font-size: .88rem; font-weight: 600; color: var(--text); }
.listing-meta { font-size: .8rem; color: var(--muted); display: flex; gap: .9rem; flex-wrap: wrap; }
.listing-brokerage { font-size: .72rem; color: var(--muted); margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--border); }
.listing-card .btn { margin-top: .6rem; justify-content: center; padding: .6rem 1rem; font-size: .85rem; }
.listing-card.skeleton .listing-photo { background: linear-gradient(90deg, #e8eef2 25%, #f3f7f9 50%, #e8eef2 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.skeleton-line { height: 12px; border-radius: 6px; background: #e8eef2; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.listings-shell { position: relative; }
.listings-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: linear-gradient(180deg, rgba(245,248,250,.55), rgba(245,248,250,.92));
}
.listings-overlay-card {
  background: var(--navy); color: var(--white); border-radius: 14px;
  padding: 2rem 2.25rem; max-width: 520px; text-align: center;
  box-shadow: 0 20px 50px rgba(3,3,40,.35);
}
.listings-overlay-card h3 { color: var(--white); margin-bottom: .6rem; font-size: 1.3rem; }
.listings-overlay-card p { color: rgba(255,255,255,.75); font-size: .92rem; margin-bottom: 1.4rem; }
@media (max-width: 600px) {
  .listings-shell:has(.listings-overlay) .listing-grid { display: none; }
  .listings-shell .listings-overlay { position: static; background: none; padding: 0; }
}
.cat-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: var(--navy);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,3,40,.05) 25%, rgba(3,3,40,.92) 100%); }
.cat-card:hover img { transform: scale(1.05); }
.cat-body { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; z-index: 2; color: var(--white); display: grid; gap: .15rem; }
.cat-body strong { font-size: 1.1rem; }
.cat-body span { font-size: .82rem; color: rgba(255,255,255,.8); }
.cat-body em { font-style: normal; font-size: .8rem; font-weight: 800; color: var(--slate); margin-top: .35rem; }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr 1fr; gap: .75rem; } .cat-body { left: .8rem; right: .8rem; bottom: .75rem; } .cat-body strong { font-size: .92rem; } .cat-body span { display: none; } }
.listings-status { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.mls-notice { font-size: .7rem; color: var(--muted); line-height: 1.55; max-width: 900px; margin: 1.75rem auto 0; text-align: center; }

/* ── EXPLORE CARDS ──────────────────────── */
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .explore-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .explore-grid { grid-template-columns: 1fr; } }
.explore-card {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.explore-card:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow); }
.explore-icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--navy); color: var(--slate);
  display: flex; align-items: center; justify-content: center; margin-bottom: .4rem;
}
.explore-card h3 { font-size: 1.05rem; }
.explore-card p { font-size: .86rem; flex: 1; }
.explore-card .more { font-size: .82rem; font-weight: 800; color: var(--navy); }
.explore-card:hover .more { color: var(--teal-ink); }

/* ── FEATURE / BENEFIT GRID ─────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .feature-grid, .feature-grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid, .feature-grid.two, .feature-grid.four { grid-template-columns: 1fr; } }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(3,3,40,.06); border-top: 3px solid var(--slate);
}
.feature .emoji { font-size: 1.6rem; line-height: 1; margin-bottom: .7rem; display: block; }
.feature h3 { font-size: 1rem; margin-bottom: .45rem; }
.feature p { font-size: .87rem; }
.section-dark .feature { background: rgba(255,255,255,.05); box-shadow: none; }
.section-dark .feature p { color: rgba(255,255,255,.7); }

/* ── SPLIT (text + image / aside) ───────── */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.split.top { align-items: start; }
.split-img { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* ── PROSE ──────────────────────────────── */
.prose h2 { margin-bottom: 1rem; }
.prose h3 { margin: 1.75rem 0 .6rem; font-size: 1.15rem; }
.prose p { margin-bottom: 1rem; font-size: .97rem; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.25rem; color: var(--muted); }
.prose li { margin-bottom: .5rem; font-size: .95rem; line-height: 1.65; }
.prose li strong, .prose p strong { color: var(--navy); }
.prose a:not(.btn) { color: var(--teal-ink); text-decoration: underline; font-weight: 600; }

.tick-list { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.tick-list li { position: relative; padding-left: 1.8rem; font-size: .92rem; color: var(--muted); line-height: 1.55; }
.tick-list li::before {
  content: '✓'; position: absolute; left: 0; top: .1em;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--slate-light); color: var(--teal-ink);
  font-size: .65rem; font-weight: 800; line-height: 19px; text-align: center;
}
.tick-list li strong { color: var(--navy); }
.section-dark .tick-list li { color: rgba(255,255,255,.8); }
.section-dark .tick-list li strong { color: var(--white); }
.section-dark .tick-list li::before { background: rgba(0,251,240,.18); color: var(--slate); }

/* Callouts */
.callout {
  border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.25rem 0;
  border-left: 4px solid var(--navy); background: #f0f2f8;
}
.callout h4 { font-size: .95rem; margin-bottom: .35rem; }
.callout p { font-size: .88rem; margin: 0; }
.callout.green { border-color: #2a7a45; background: #f0faf4; }
.callout.amber { border-color: var(--gold); background: #fdf8ec; }
.callout.teal  { border-color: var(--slate); background: var(--slate-light); }

.panel-dark {
  background: var(--navy); border-radius: var(--radius); padding: 2rem; color: rgba(255,255,255,.85);
}
.panel-dark h3 { color: var(--slate); margin-bottom: 1rem; }
.panel-dark p { color: rgba(255,255,255,.75); }
.panel-dark ul { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.panel-dark li { position: relative; font-size: .9rem; line-height: 1.55; }
.panel-dark ul li { padding-left: 1.6rem; }
.panel-dark ul li::before { content: '→'; position: absolute; left: 0; top: 0; color: var(--slate); font-weight: 700; }
.panel-dark ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: .7rem; font-size: .9rem; }

/* ── CONDO TYPES ────────────────────────── */
.types-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .types-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .types-grid { grid-template-columns: 1fr; } }
.type-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .22s, box-shadow .22s;
}
.type-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.type-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; transition: transform .38s; }
.type-card:hover .type-card-bg { transform: scale(1.05); }
.type-card-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.66); z-index: 1; }
.type-card-content { position: relative; z-index: 2; padding: 1.2rem 1.25rem; }
.type-card-content h3 { color: #fff; margin-bottom: .25rem; font-size: 1.05rem; line-height: 1.25; }
.type-card .price-range { font-size: .8rem; font-weight: 700; color: var(--slate); margin: .3rem 0 .5rem; }
.type-card-content p { font-size: .8rem; color: rgba(255,255,255,.75); line-height: 1.5; margin-bottom: .65rem; }
.type-card .more { font-size: .78rem; font-weight: 800; color: var(--slate); }
.type-tag {
  display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px; padding: .14rem .48rem; font-size: .67rem; font-weight: 600;
  color: rgba(255,255,255,.85); margin-right: .28rem; margin-bottom: .28rem; white-space: nowrap;
}

/* Type deep-dive rows */
.type-detail {
  display: grid; grid-template-columns: 340px 1fr; gap: 2.5rem; align-items: start;
  padding: 2.5rem 0; border-top: 1px solid var(--border);
}
.type-detail:first-of-type { border-top: none; padding-top: 0; }
.type-detail-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.type-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.type-detail h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.type-detail .price-range { font-weight: 800; color: var(--teal-ink); font-size: .9rem; margin-bottom: .9rem; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.pros-cons > div { background: var(--off-white); border-radius: 8px; padding: 1rem 1.1rem; }
.pros-cons h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.pros-cons ul { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.pros-cons li { font-size: .84rem; color: var(--muted); padding-left: 1.1rem; position: relative; }
.pros-cons .pros li::before { content: '+'; position: absolute; left: 0; color: #2a7a45; font-weight: 800; }
.pros-cons .cons li::before { content: '–'; position: absolute; left: 0; color: #b52b2b; font-weight: 800; }
@media (max-width: 860px) { .type-detail { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .pros-cons { grid-template-columns: 1fr; } }

/* ── COMMUNITIES ────────────────────────── */
.comm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 860px) { .comm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .comm-grid { grid-template-columns: 1fr; } }
.comm-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s;
  display: flex; flex-direction: column; height: 100%;
}
.comm-card:hover { transform: translateY(-3px); }
.comm-header {
  background: var(--navy); padding: 0 1.5rem; display: flex; justify-content: space-between;
  align-items: center; gap: .75rem; flex-shrink: 0; min-height: 62px;
}
.comm-header h3 { color: var(--white); font-size: 1rem; line-height: 1.25; padding: .6rem 0; }
.comm-badge {
  background: var(--slate); color: var(--navy); font-size: .7rem; font-weight: 800;
  padding: .2rem .6rem; border-radius: 20px; letter-spacing: .04em; white-space: nowrap;
}
.comm-body { padding: 1.1rem 1.5rem; flex: 1; }
.comm-body p { font-size: .82rem; margin-bottom: .75rem; line-height: 1.5; }
.score-row { display: flex; gap: .5rem; margin-bottom: .25rem; }
.score-pill { flex: 1; background: var(--off-white); border-radius: 8px; padding: .45rem .35rem; text-align: center; }
.score-pill .score-num { font-size: 1.1rem; font-weight: 800; color: var(--navy); display: block; }
.score-pill .score-type { font-size: .63rem; color: var(--muted); font-weight: 600; }
.comm-footer { border-top: 1px solid var(--border); padding: .7rem 1.5rem; font-size: .76rem; color: var(--muted); }
.comm-footer strong { color: var(--navy); }
.comm-footer a { color: var(--teal-ink); font-weight: 800; }

/* Neighbourhood profile */
.hood {
  display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem;
  padding: 3rem 0; border-top: 1px solid var(--border);
}
.hood:first-of-type { border-top: none; padding-top: 0; }
.hood-aside { position: sticky; top: calc(var(--nav-h) + 70px); align-self: start; }
.hood-aside .comm-card:hover { transform: none; }
.hood .hood-title { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 .25rem; }
.hood-aside .comm-header { flex-wrap: wrap; padding: .85rem 1.25rem; gap: .4rem; }
.hood-aside .comm-header h3 { white-space: normal; }
.hood .tagline { font-weight: 700; color: var(--teal-ink); font-size: .9rem; margin-bottom: 1rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.25rem 0; }
.fact { background: var(--off-white); border-radius: 8px; padding: .8rem 1rem; }
.fact span { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fact strong { font-size: .9rem; color: var(--navy); }
@media (max-width: 860px) {
  .hood { grid-template-columns: 1fr; }
  .hood-aside { position: static; }
}
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ── LRT ────────────────────────────────── */
.lrt-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .lrt-layout { grid-template-columns: 1fr; } }
.lrt-lines { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
.lrt-line { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--white); }
.lrt-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: .2rem; }
.capital { background: #0072CE; }
.metro   { background: #00A650; }
.valley  { background: #E31837; }
.lrt-line h4 { font-size: .95rem; }
.lrt-line p  { font-size: .82rem; margin-top: .2rem; }
.future-badge {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-size: .7rem; font-weight: 800; padding: .15rem .5rem; border-radius: 4px;
  vertical-align: middle; margin-left: .4rem;
}
.map-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #f0f4f7; }
#hoodMap { height: 520px; width: 100%; }
@media (max-width: 600px) { #hoodMap { height: 400px; } }
.leaflet-container section { padding: 0; }
/* keep Leaflet's internal z-indexes (400–1000) inside the map so it never paints over the sticky nav */
.leaflet-container { isolation: isolate; z-index: 0; }
.map-caption { text-align: center; font-size: .76rem; color: var(--muted); padding: .55rem 1rem .75rem; }

/* ── TABLES ─────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: .88rem; min-width: 720px; background: var(--white);
}
.data-table thead th {
  background: var(--navy); color: var(--white); padding: 1rem 1.15rem; text-align: left;
  font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { background: var(--navy-2); }
.data-table th .sort-icon { opacity: .5; font-size: .9em; }
.data-table th.sort-asc .sort-icon, .data-table th.sort-desc .sort-icon { opacity: 1; color: var(--slate); }
.data-table tbody tr:nth-child(even) td { background: var(--off-white); }
.data-table td { padding: .85rem 1.15rem; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text); }
.data-table td:first-child { font-weight: 700; color: var(--navy); }
.data-table tr.dim td { opacity: .35; }
.data-table tr.hl td { background: var(--slate-light) !important; }
.pill-good  { background: #e6f5ec; color: #1f6b38; border-radius: 20px; padding: .15rem .55rem; font-weight: 700; font-size: .78rem; }
.pill-mid   { background: #fff8e1; color: #7a5a0a; border-radius: 20px; padding: .15rem .55rem; font-weight: 700; font-size: .78rem; }
.pill-basic { background: #eef2f8; color: #3a4a6a; border-radius: 20px; padding: .15rem .55rem; font-weight: 700; font-size: .78rem; }

.filter-chips { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.5rem; }
.filter-chips button {
  font-family: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
  padding: .5rem 1rem; border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--navy); transition: all .15s;
}
.filter-chips button:hover { border-color: var(--navy); }
.filter-chips button.active { background: var(--navy); color: var(--slate); border-color: var(--navy); }
.filter-hint { text-align: center; font-size: .82rem; color: var(--muted); margin: -0.75rem 0 1.25rem; min-height: 1.3em; }

/* ── BUYER GUIDE ────────────────────────── */
.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 1rem; }
.steps > li {
  counter-increment: step; position: relative;
  background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--border);
  padding: 1.25rem 1.4rem 1.25rem 4.4rem;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 1.2rem; top: 1.15rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--slate);
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.steps p { font-size: .88rem; }
.steps a { color: var(--teal-ink); font-weight: 700; text-decoration: underline; }
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.checklist-group {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(11,19,64,.07);
}
.checklist-group h4 {
  background: var(--navy); color: var(--white); font-size: .88rem;
  padding: .85rem 1.35rem; letter-spacing: .02em;
}
.checklist-group ul { list-style: none; padding: 1.1rem 1.35rem 1.35rem; display: flex; flex-direction: column; gap: .65rem; }
.checklist-group li { font-size: .84rem; padding-left: 1.75rem; position: relative; color: #344054; line-height: 1.45; }
.checklist-group li::before {
  content: '✓'; position: absolute; left: 0; top: .08em; width: 17px; height: 17px;
  background: #ddeaf2; border-radius: 50%; font-size: .58rem; font-weight: 800;
  color: #0b4270; line-height: 17px; text-align: center;
}
.print-only { display: none; }
@media print {
  .nav, .jump-nav, .footer, .cta-band, .lead-section, .skip-link, .no-print, .chart-table, #meaning .btn-row { display: none !important; }
  .print-only { display: block !important; }
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; background: #fff; }
  /* every printed page (incl. the market report PDFs) carries the brokerage and the disclaimer */
  @page {
    size: Letter; margin: 0.45in 0.4in 0.8in;
    @bottom-left {
      content: "Elevate Realty Group · Real Broker · 587-415-0804 · hello@elevaterealtygroup.ca · condosforsaleedmonton.ca\A General information only — not real estate, financial or legal advice. REALTOR®, REALTORS®, MLS® and MLS® HPI are trademarks owned or controlled by The Canadian Real Estate Association (CREA).";
      white-space: pre-wrap; font-family: Montserrat, system-ui, sans-serif; font-size: 6.5pt; line-height: 1.45; color: #6a7a8a; vertical-align: top; padding-top: .14in;
    }
    @bottom-right {
      content: "Page " counter(page) " of " counter(pages);
      font-family: Montserrat, system-ui, sans-serif; font-size: 6.5pt; color: #6a7a8a; vertical-align: top; padding-top: .14in; width: .8in;
    }
  }
  section { padding: 10px 0 !important; }
  .page-hero { padding: 26px 22px !important; border-radius: 10px; }
  .page-hero-bg { display: none; }
  .page-hero h1 { font-size: 1.9rem; }
  .hero-strip { margin-top: 1rem; }
  .print-brand { color: #00FBF0; font-size: .75rem; margin: .6rem 0 0; }
  .print-brand strong { color: #fff; } .print-brand span { color: #00FBF0; }
  .chart-card, .feature, .table-wrap, .hero-strip, .balance { break-inside: avoid; box-shadow: none !important; }
  .chart-grid { grid-template-columns: 1fr 1fr !important; gap: .8rem; }
  .table-wrap { overflow: visible; box-shadow: none; }
  .data-table { min-width: 0 !important; font-size: .74rem; }
  .data-table td, .data-table th { padding: .45rem .55rem; }
  .section-header { margin-bottom: 1rem; }
  .section-dark { border-radius: 10px; }
  .feature-grid.four { grid-template-columns: repeat(4, 1fr) !important; }
  .feature-grid { grid-template-columns: repeat(3, 1fr) !important; }
  a { text-decoration: none !important; }
  html { zoom: .8; }
  .data-table thead th { white-space: normal; }
  .crumbs { display: none; }
  .hero-strip { grid-template-columns: repeat(4, 1fr) !important; }
  .hero-strip div { border-top: 0 !important; border-left: 1px solid rgba(255,255,255,.12) !important; }
  .hero-strip div:first-child { border-left: 0 !important; }
  .chart-card .table-wrap table, .chart-card .data-table { width: 100%; table-layout: fixed; font-size: .7rem; }
  .chart-card { padding: 1rem 1.1rem; }
  #sources .container-narrow { max-width: none; }
  #sources li, #sources p { font-size: .72rem; line-height: 1.45; }
  .section-dark { margin-top: 0; }
  #meaning { break-before: page; break-inside: avoid; }
}

/* ── FAQ ────────────────────────────────── */
.faq-group { margin-bottom: 2.75rem; }
.faq-group > h2 { font-size: 1.15rem; margin-bottom: 1rem; text-align: left; }
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 1.25rem; font-size: .95rem; font-weight: 700; color: var(--navy);
  transition: background .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary { background: var(--off-white); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--off-white); }
.faq-a { padding: 1rem 1.25rem 1.2rem; font-size: .92rem; color: var(--muted); line-height: 1.7; }
.faq-a a { color: var(--teal-ink); font-weight: 700; text-decoration: underline; }

/* ── TEAM ───────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.25rem; }
.team-grid-solo { display: flex; justify-content: center; } .team-grid-solo .team-card { width: 210px; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1rem 1.1rem; text-align: center; }
.team-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto .8rem; background: var(--navy); }
.team-card h3 { font-size: .98rem; margin-bottom: .2rem; }
.team-card p { font-size: .8rem; margin: 0; }
.founder-photo img { width: 100%; max-width: 380px; border-radius: 14px; box-shadow: var(--shadow); }
.team-band { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.team-photo { border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); aspect-ratio: 3/2; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 900px) { .team-band { grid-template-columns: 1fr; } }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 760px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  display: block; text-align: center; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; transition: border-color .2s, transform .2s;
}
a.contact-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.nap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.5rem; align-items: stretch; margin-top: 1.5rem; }
.nap address {
  font-style: normal; background: var(--off-white); border-radius: var(--radius); padding: 1.5rem;
  font-size: .95rem; line-height: 1.8; color: var(--text); display: grid; align-content: center;
}
.nap address strong { color: var(--navy); }
.nap address a { color: var(--teal-ink); font-weight: 700; }
.nap .gbp-link { display: inline-block; margin-top: .6rem; color: var(--navy); border-bottom: 2px solid var(--slate); }
.nap .gbp-link span { color: var(--gold); }
.nap-map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; border: 1px solid var(--border); }
.nap-map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 0; }
.nap-dir { z-index: 500; }
.nap-dir {
  position: absolute; left: 12px; bottom: 12px; background: var(--navy); color: var(--white);
  font-size: .82rem; font-weight: 800; padding: .55rem .9rem; border-radius: 8px;
}
.nap-dir:hover { background: var(--slate); color: var(--navy); }
@media (max-width: 760px) { .nap { grid-template-columns: 1fr; } }
.contact-card .k { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); }
.contact-card .v { font-size: 1rem; font-weight: 800; color: var(--navy); margin-top: .3rem; word-break: break-word; }
.contact-card p { font-size: .8rem; margin-top: .3rem; }

/* ── LEAD FORM ──────────────────────────── */
.lead-section { background: var(--off-white); border-top: 1px solid var(--border); padding: 0; display: flex; align-items: stretch; }
.lead-img-col { flex: 0 0 38%; position: relative; overflow: hidden; }
.lead-img-col img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.lead-cover { background: radial-gradient(120% 90% at 50% 40%, #12124a 0%, var(--navy) 70%); }
.lead-cover img { object-fit: contain; object-position: center; padding: 44px 40px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.lead-form-col { flex: 1; padding: 64px 3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.lead-form-col h2 { margin-bottom: .5rem; font-size: clamp(1.15rem, 3.2vw, 1.65rem); }
.lead-form-col > p { margin-bottom: 1.5rem; max-width: 460px; font-size: .92rem; }
@media (max-width: 760px) { .lead-img-col { display: none; } .lead-form-col { padding: 56px 20px; } }
.lead-form { width: 100%; max-width: 440px; text-align: left; }
.form-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.form-row > .field { flex: 1; min-width: 140px; }
.field { margin-bottom: .8rem; }
.field label { display: block; font-size: .75rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.field label .req { color: #c0392b; }
.field input {
  width: 100%; padding: .65rem .85rem; border: 1.5px solid var(--border); border-radius: 6px;
  font-size: .9rem; font-family: inherit; color: var(--text); background: #fff; transition: border-color .2s;
}
.field select {
  width: 100%; padding: .65rem .85rem; border: 1.5px solid var(--border); border-radius: 6px;
  font-size: .9rem; font-family: inherit; color: var(--text); background: #fff;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); }
.field .err { display: none; font-size: .72rem; color: #c0392b; margin-top: .2rem; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: #c0392b; }
.field.consent { display: grid; grid-template-columns: 20px 1fr; gap: .65rem; align-items: start; margin: .3rem 0 1rem; }
.field.consent input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--navy); cursor: pointer; }
.field.consent label { font-size: .74rem; font-weight: 400; line-height: 1.5; color: var(--muted); margin: 0; cursor: pointer; }
.field.consent .err { grid-column: 2; }
.lead-form button[type=submit] { width: 100%; justify-content: center; margin-top: .4rem; }
.form-msg { display: none; margin-top: 1rem; padding: .8rem 1rem; border-radius: 6px; font-size: .9rem; text-align: center; }
.form-msg.ok { display: block; background: #eaf4ec; color: #1a6b35; }
.form-msg.bad { display: block; background: #fdecea; color: #9b1c1c; }
.form-alt { margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.form-alt a { color: var(--navy); font-weight: 700; }

/* ── CTA BAND ───────────────────────────── */
.cta-band { background: var(--navy); padding: 80px 20px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(0,251,240,.18), transparent 60%);
}
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p  { color: rgba(255,255,255,.72); max-width: 580px; margin: 0 auto 2rem; }
.cta-band .btn-primary { font-size: 1.02rem; padding: 1rem 2.3rem; }

/* ── SOURCES ────────────────────────────── */
.sources { background: #f0f4f8; padding: 40px 20px; font-size: .78rem; }
.sources h5 { color: var(--navy); margin-bottom: .75rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.sources ul { list-style: none; display: flex; flex-direction: column; gap: .35rem; color: var(--muted); }
.sources a { color: var(--teal-ink); text-decoration: underline; }

/* ── FOOTER ─────────────────────────────── */
.footer { background: #070d26; padding: 60px 20px 30px; color: rgba(255,255,255,.58); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; max-width: 1200px; margin: 0 auto 3rem; }
.footer-col h4 { color: var(--white); font-size: .9rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col li { font-size: .85rem; }
.footer-col li a { transition: color .15s; }
.footer-col li a:hover { color: var(--slate); }
.footer-brand { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: .75rem; }
.footer-brand span { color: var(--slate); }
.footer-desc { font-size: .85rem; line-height: 1.6; max-width: 300px; color: rgba(255,255,255,.58); }
.footer-logos { max-width: 1200px; margin: 0 auto 2rem; display: flex; align-items: flex-start; gap: 2.5rem; }
.footer-logo-img { width: auto; opacity: .9; }
.footer-logo-rb  { height: 50px; }
.footer-logo-el  { height: 20px; }
.footer-logo-divider { display: block; width: 1px; height: 50px; background: rgba(255,255,255,.25); flex-shrink: 0; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .78rem;
}
.footer-bottom a { color: var(--slate); }
.disclaimer { max-width: 1200px; margin: 1rem auto 0; font-size: .72rem; line-height: 1.5; color: rgba(255,255,255,.4); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── UTIL ───────────────────────────────── */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.small { font-size: .78rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) { section { padding: 60px 16px; } }

/* ── NEIGHBOURHOOD PAGES: stats & charts ── */
.hero-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2.25rem;
  border: 1px solid rgba(255,255,255,.16); border-radius: 12px; overflow: hidden;
  background: rgba(3,3,40,.55); backdrop-filter: blur(4px);
}
.hero-strip div { padding: 1.1rem 1.3rem; border-left: 1px solid rgba(255,255,255,.12); }
.hero-strip div:first-child { border-left: 0; }
.hero-strip strong { display: block; color: var(--white); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.1; }
.hero-strip span { display: block; color: var(--slate); font-size: .74rem; font-weight: 700; margin-top: .35rem; letter-spacing: .02em; }
@media (max-width: 760px) { .hero-strip { grid-template-columns: 1fr 1fr; } .hero-strip div:nth-child(3) { border-left: 0; } .hero-strip div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); } }

.numbers-sec { position: relative; overflow: hidden; }
.numbers-sec::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 130%, rgba(0,251,240,.16), transparent 60%); }
.numbers-sec .container { position: relative; }
.gauges { display: flex; justify-content: center; gap: clamp(1rem, 5vw, 4rem); flex-wrap: wrap; }
.gauge { background: var(--white); border-radius: 18px; padding: 1.3rem 1.6rem 1.2rem; text-align: center; min-width: 190px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.gauge svg { display: block; margin: 0 auto; }
.gauge-num { font: 800 30px 'Montserrat', sans-serif; fill: #030328; }
.gauge-of { font: 600 11px 'Montserrat', sans-serif; fill: #5a6a7a; }
.gauge figcaption strong { display: block; color: var(--navy); font-size: .95rem; margin-top: .4rem; }
.gauge figcaption span { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; margin-top: .15rem; }
.gauge-src { text-align: center; font-size: .74rem; margin-top: 1.5rem; }
.gauge-src a { color: var(--slate); }

.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 960px) { .chart-grid { grid-template-columns: 1fr; } }
.chart-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem 1.6rem 1.2rem; box-shadow: 0 6px 24px rgba(3,3,40,.06); }
.chart-title { font-size: 1.12rem; text-transform: none; letter-spacing: 0; margin-bottom: .35rem; }
.chart-sub { font-size: .84rem; margin-bottom: 1.2rem; }

.hbar-chart, .prange-chart { display: grid; gap: .5rem; position: relative; }
.hbar-row, .prange-row, .prange-axis { display: grid; grid-template-columns: 118px 1fr 96px; gap: .7rem; align-items: center; min-height: 26px; }
.hbar-chart.wide-names .hbar-row { grid-template-columns: 190px 1fr 84px; }
.hbar-name { font-size: .8rem; font-weight: 600; color: var(--text); text-align: right; line-height: 1.2; }
.hbar-track { height: 14px; background: #eef1f6; border-radius: 0 4px 4px 0; position: relative; }
.hbar-fill { display: block; height: 100%; background: #8a93b8; border-radius: 0 4px 4px 0; transition: background .15s; }
.hbar-fill.dist { background: var(--navy); }
.hbar-val, .prange-val { font-size: .78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar-row:hover .hbar-fill { background: #5c668f; }
.hbar-row.is-current .hbar-fill { background: var(--navy); }
.hbar-row.is-current .hbar-name, .hbar-row.is-current .hbar-val,
.prange-row.is-current .hbar-name, .prange-row.is-current .prange-val { color: var(--navy); font-weight: 800; }
.hbar-row.is-current .hbar-name::after, .prange-row.is-current .hbar-name::after { content: ' ●'; color: var(--slate); text-shadow: 0 0 0 var(--navy); }

.prange-track { position: relative; height: 22px; }
.prange-whisker { position: absolute; top: 50%; height: 4px; margin-top: -2px; background: #8a93b8; border-radius: 2px; }
.prange-whisker::before, .prange-whisker::after { content: ''; position: absolute; top: -5px; width: 2px; height: 14px; background: inherit; }
.prange-whisker::before { left: 0; } .prange-whisker::after { right: 0; }
.prange-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #5c668f; border: 2px solid var(--white); }
.prange-row.is-current .prange-whisker { background: var(--navy); height: 6px; margin-top: -3px; }
.prange-row.is-current .prange-dot { background: var(--slate); border-color: var(--navy); width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.prange-ref { position: absolute; top: 1.4rem; bottom: 30px; left: calc(118px + .7rem); right: calc(96px + .7rem); pointer-events: none; }
.prange-ref::before { content: ''; position: absolute; left: var(--x); top: 0; bottom: 0; border-left: 2px dashed #1D1D1D; opacity: .45; }
.prange-ref span { position: absolute; left: var(--x); top: -1.35rem; transform: translateX(-10%); font-size: .66rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.prange-chart { padding-top: 2.2rem; }
.prange-axis { min-height: 20px; }
.prange-ticks { position: relative; height: 18px; border-top: 1px solid var(--border); }
.prange-ticks span { position: absolute; top: 3px; transform: translateX(-50%); font-size: .66rem; color: var(--muted); }
.prange-ticks span:first-child { transform: none; }

.chart-table { margin-top: .9rem; font-size: .8rem; }
.chart-table summary { cursor: pointer; font-weight: 700; color: var(--teal-ink); }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.chart-table th, .chart-table td { text-align: left; padding: .35rem .4rem; border-bottom: 1px solid var(--border); }

@media (max-width: 560px) {
  .hbar-row, .prange-row, .prange-axis { grid-template-columns: 84px 1fr 78px; gap: .45rem; }
  .hbar-val, .prange-val { font-size: .7rem; }
  .hbar-chart.wide-names .hbar-row { grid-template-columns: 112px 1fr 66px; }
  .prange-ref { left: calc(84px + .45rem); right: calc(78px + .45rem); }
  .hbar-name { font-size: .72rem; }
  .prange-ref span { font-size: .6rem; transform: translateX(-30%); }
  .gauge { min-width: 0; padding: 1rem; } .gauge svg { width: 100px; height: 100px; }
}
@media (max-width: 560px) { .prange-ticks span:nth-child(2), .prange-ticks span:nth-child(4) { display: none; } }

/* ── MARKET REPORTS ── */
.gbar-legend { display: flex; gap: 1.2rem; font-size: .78rem; font-weight: 700; margin-bottom: 1rem; }
.gbar-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; }
.gbar-chart { display: grid; gap: 1.1rem; }
.gbar-group { display: grid; grid-template-columns: 120px 1fr; gap: .8rem; align-items: center; }
.gbar-label { font-size: .8rem; font-weight: 700; text-align: right; color: var(--text); }
.gbar-bars { display: grid; gap: 4px; }
.gbar { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: .5rem; align-items: center; }
.gbar-track { display: block; height: 16px; background: #eef1f6; border-radius: 0 4px 4px 0; }
.gbar-fill { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.gbar-val { font-size: .76rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.gbar-legend i.s-apt, .gbar.s-apt .gbar-fill { background: #030328; }
.gbar-legend i.s-town, .gbar.s-town .gbar-fill { background: #007a75; }

.dbar-chart { display: grid; gap: .45rem; }
.dbar-row, .dbar-axis { display: grid; grid-template-columns: 150px 1fr 64px; gap: .6rem; align-items: center; min-height: 24px; }
.dbar-track { position: relative; height: 16px; }
.dbar-track::before { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; border-left: 1.5px solid #1D1D1D; opacity: .5; }
.dbar-fill { position: absolute; top: 0; height: 100%; }
.dbar-fill.pos { background: #007a75; border-radius: 0 4px 4px 0; }
.dbar-fill.neg { background: #b52b2b; border-radius: 4px 0 0 4px; }
.dbar-val { font-size: .78rem; font-weight: 800; white-space: nowrap; }
.dbar-val.pos { color: #007a75; } .dbar-val.neg { color: #b52b2b; }
.dbar-ticks { position: relative; height: 16px; border-top: 1px solid var(--border); }
.dbar-ticks span { position: absolute; top: 2px; transform: translateX(-50%); font-size: .66rem; color: var(--muted); }
.dbar-ticks span:first-child { transform: none; } .dbar-ticks span:last-child { transform: translateX(-100%); }

.balance-scale { position: relative; display: grid; grid-template-columns: 40fr 20fr 40fr; height: 20px; border-radius: 10px; overflow: visible; margin-top: 2.6rem; }
.balance-labels { display: grid; grid-template-columns: 40fr 20fr 40fr; margin-top: .55rem; text-align: center; font-size: .72rem; font-weight: 800; color: var(--text); }
.balance-labels small { display: block; font-weight: 600; color: var(--muted); }
.balance-scale .z { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; font-size: .72rem; font-weight: 800; line-height: 1.2; }
.balance-scale .z small { font-weight: 600; opacity: .8; }
.z.buyer { background: #cfe6e4; border-radius: 10px 0 0 10px; }
.z.balanced { background: #dfe3ee; }
.z.seller { background: #f4d6d6; border-radius: 0 10px 10px 0; }
.balance-mark { position: absolute; top: -8px; bottom: -8px; width: 4px; margin-left: -2px; background: #030328; border-radius: 2px; }
.balance-mark b { position: absolute; top: -1.5rem; left: 50%; transform: translateX(-50%); background: #030328; color: #00FBF0; font-size: .78rem; padding: .1rem .45rem; border-radius: 4px; white-space: nowrap; }
.balance-prev { position: absolute; top: 4px; width: 12px; height: 12px; margin-left: -6px; border: 2px solid #030328; border-radius: 50%; background: #fff; }
@media (max-width: 560px) {
  .gbar-group { grid-template-columns: 1fr; gap: .35rem; } .gbar-label { text-align: left; }
  .dbar-row, .dbar-axis { grid-template-columns: 104px 1fr 54px; gap: .4rem; } .dbar-row .hbar-name { font-size: .7rem; }
  .balance-labels { font-size: .62rem; }
}
.chart-grid > * { min-width: 0; }
.change { white-space: nowrap; }

/* ── GUIDE ARTICLES ── */
.byline { font-size: .82rem !important; color: var(--slate) !important; font-weight: 600; margin-top: .4rem; }
.art-lead { padding: 48px 20px 8px; }
.lead-answer { font-size: 1.12rem; line-height: 1.7; color: var(--text); border-left: 4px solid var(--slate); padding: .4rem 0 .4rem 1.2rem; font-weight: 500; }
.art-sec { padding: 36px 20px; }
.art-sec + .art-sec { padding-top: 8px; }
.art-sec h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); text-transform: none; letter-spacing: 0; }
.art-sec .table-wrap { margin: 1rem 0; }
.art-sec .data-table { min-width: 0 !important; }
.art-sec .steps h3 { margin: 0 0 .3rem; }
.guide-card { padding-top: 0; overflow: hidden; }
.guide-img { display: block; height: 150px; margin: 0 -1.5rem .8rem; background: center/cover no-repeat; }
/* building cards: no real photos, so a dark name tile over a faint greyscale image */
.bgroup-link { font-size: .78rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--teal-ink); margin-left: .6rem; white-space: nowrap; }
.bgroup-link:hover { text-decoration: underline; }
.name-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  height: 150px; margin: 0 -1.5rem .9rem; padding: 1rem 1.5rem 1.05rem;
  background: var(--navy); overflow: hidden; isolation: isolate;
}
.name-tile::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: center/cover no-repeat; filter: grayscale(1); opacity: .16;
}
/* url() inside a custom property resolves against this stylesheet, so map each tile image here */
.name-tile[style*="type-apartment"]::before { background-image: url("../img/type-apartment.webp"); }
.name-tile[style*="type-loft"]::before { background-image: url("../img/type-loft.webp"); }
.name-tile[style*="type-penthouse"]::before { background-image: url("../img/type-penthouse.webp"); }
.name-tile[style*="type-presale"]::before { background-image: url("../img/type-presale.webp"); }
.name-tile[style*="type-stacked"]::before { background-image: url("../img/type-stacked.webp"); }
.name-tile[style*="type-townhouse"]::before { background-image: url("../img/type-townhouse.webp"); }
.name-tile[style*="img/hero."]::before { background-image: url("../img/hero.webp"); }
.name-tile::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(3,3,40,.35) 0%, rgba(3,3,40,.92) 100%);
}
.name-tile em {
  font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #00FBF0; margin-bottom: .4rem; padding-top: .45rem; border-top: 2px solid #00FBF0; align-self: flex-start;
}
.name-tile strong { color: #fff; font-size: 1.3rem; font-weight: 800; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.bldg-hero .page-hero-bg { opacity: .14; filter: grayscale(1); }
.gbar-legend i.s-edm, .gbar.s-edm .gbar-fill { background: #030328; }
.gbar-legend i.s-cgy, .gbar.s-cgy .gbar-fill { background: #007a75; }

.form-privacy { font-size: .72rem; color: var(--muted); margin-top: .4rem; }
.form-privacy a { color: var(--teal-ink); text-decoration: underline; }

/* ── GLOSSARY ── */
.gl-letters { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.5rem; }
.gl-letters a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: 8px; font-weight: 800; color: var(--navy); font-size: .85rem; }
.gl-letters a:hover { background: var(--navy); color: var(--slate); }
.gl-list { display: grid; gap: .8rem; }
.gl-item { border: 1px solid var(--border); border-left: 4px solid var(--slate); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--white); scroll-margin-top: calc(var(--nav-h) + 16px); }
.gl-item:target { box-shadow: 0 0 0 3px var(--slate-light); }
.gl-item dt { font-weight: 800; color: var(--navy); font-size: 1.02rem; }
.gl-item dd { margin: .35rem 0 0; font-size: .92rem; color: var(--muted); line-height: 1.65; }
.gl-more { color: var(--teal-ink); font-weight: 700; white-space: nowrap; }

/* ── CALCULATORS ── */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: start; }
.calc-inputs, .calc-results, .fee-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; box-shadow: 0 6px 24px rgba(3,3,40,.06); }
.calc-inputs input, .calc-inputs select, .fee-card input[type=number] { width: 100%; padding: .65rem .85rem; border: 1.5px solid var(--border); border-radius: 6px; font: inherit; font-size: .95rem; }
.calc-inputs input:focus, .calc-inputs select:focus, .fee-card input:focus { outline: 2px solid var(--slate); border-color: var(--navy); }
.calc-results { background: var(--navy); color: var(--white); border: 0; }
.calc-big span { display: block; font-size: .78rem; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: .08em; }
.calc-big strong { display: block; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; margin: .3rem 0; }
.calc-big small { color: rgba(255,255,255,.65); font-size: .78rem; }
.calc-rows { margin-top: 1.2rem; display: grid; gap: 0; }
.calc-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.calc-rows dt { color: rgba(255,255,255,.75); } .calc-rows dd { margin: 0; font-weight: 800; text-align: right; }
.calc-warn { margin-top: 1rem; background: #fdf8ec; color: #7a5a0a; border-radius: 8px; padding: .7rem .9rem; font-size: .85rem; font-weight: 600; }
.calc-note { font-size: .78rem; color: var(--muted); max-width: 900px; margin: 1.2rem auto 0; line-height: 1.6; }
.calc-note a { color: var(--teal-ink); font-weight: 700; }
.fee-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.fee-card h3 { margin-bottom: 1rem; }
.incl { border: 0; display: flex; gap: 1rem; flex-wrap: wrap; font-size: .86rem; margin: .2rem 0 1rem; }
.incl legend { font-size: .75rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.incl label { display: flex; gap: .35rem; align-items: center; }
.fee-out { background: var(--off-white); border-radius: 10px; padding: 1rem 1.1rem; }
.fee-out strong { display: block; font-size: 1.35rem; color: var(--navy); }
.fee-out span { display: block; font-weight: 700; color: var(--text); font-size: .9rem; }
.fee-out small { color: var(--muted); font-size: .78rem; }
#fee-verdict { font-size: .95rem; font-weight: 700; color: var(--navy); text-align: center; }
@media (max-width: 860px) { .calc, .fee-compare { grid-template-columns: 1fr; } }

.bgroup { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--navy); margin: 2rem 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--slate); }
.bgroup:first-child { margin-top: 0; }
.calc-inputs input[type=radio], .calc-inputs input[type=checkbox] { width: auto; padding: 0; accent-color: var(--navy); }
#buyForm .incl { flex-direction: column; gap: .45rem; }

/* ── LRT MAP ── */
#lrtMap { height: 620px; width: 100%; }
@media (max-width: 600px) { #lrtMap { height: 480px; } }
.lm-tiles { filter: grayscale(.85) brightness(1.04) contrast(.92); }
.lm-controls { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1rem; align-items: center; }
.lm-controls button { font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; padding: .5rem .95rem; border-radius: 20px; border: 1.5px solid var(--border); background: var(--white); color: var(--navy); display: inline-flex; align-items: center; gap: .45rem; }
.lm-controls button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.lm-controls button i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; }
.lm-sep { width: 1px; height: 26px; background: var(--border); margin: 0 .25rem; }
.lm-sq, .lm-bldg { display: inline-block; width: 12px !important; height: 12px !important; background: #030328 !important; border: 2px solid #00FBF0; border-radius: 3px !important; }
.lm-bldg { width: 14px !important; height: 14px !important; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.lm-dot { display: inline-block; width: 10px !important; height: 10px !important; border-radius: 50% !important; background: #007a75 !important; }
.lm-hood { display: inline-block; white-space: nowrap; background: #007a75; color: #fff; font: 700 11px 'Montserrat', sans-serif; padding: 3px 7px; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.3); transform: translate(-50%, -50%); }
.lm-future { display: inline-block; white-space: nowrap; background: #fff; color: #E31837; font: 700 11px 'Montserrat', sans-serif; padding: 3px 7px; border-radius: 6px; border: 1.5px dashed #E31837; transform: translateX(-50%); }
.lm-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: center; margin-top: .9rem; font-size: .78rem; color: var(--muted); }
.lm-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.lm-line { display: inline-block; width: 22px; height: 5px; border-radius: 3px; }
.lm-line.dashed { background: repeating-linear-gradient(90deg, #E31837 0 6px, transparent 6px 10px); opacity: .7; }
.lm-stn { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 3px solid #0072CE; background: #fff; }
.lm-line.shared { background: linear-gradient(#0072CE 0 25%, #00A650 25% 75%, #0072CE 75%); height: 8px; }
.lm-stn.inter { border-color: #030328; width: 15px; height: 15px; }
.lm-pop { font-family: 'Montserrat', sans-serif; }
.lm-pop strong { display: block; font-size: 15px; color: #030328; margin: 2px 0 6px; }
.lm-pop p { margin: 6px 0; font-size: 12px; color: #1D1D1D; }
.lm-k { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #007a75; }
.lm-badge { display: inline-block; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 10px; margin: 0 2px 2px 0; }
.lm-sub { font-weight: 700; }
.lm-list { list-style: none; margin: 4px 0 0; padding: 0; max-height: 180px; overflow: auto; }
.lm-list li { font-size: 12px; padding: 4px 0; border-top: 1px solid #e6eaf2; }
.lm-list a, .lm-go { color: #007a75; font-weight: 800; }
.lm-list span { color: #5a6a7a; display: block; font-size: 11px; }
.lm-go { display: inline-block; margin-top: 6px; font-size: 12px; }
.lm-none { color: #5a6a7a; font-style: italic; }
.lm-table td:first-child a { color: var(--navy); text-decoration: underline; }
.lm-table td a { color: var(--teal-ink); font-weight: 700; }
.lm-table td { font-size: .84rem; }

/* ── COMMUNITY PAGES ── */
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .sub-grid { grid-template-columns: 1fr; } }
.sub-card { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--slate); border-radius: var(--radius); padding: 1.3rem 1.4rem; scroll-margin-top: calc(var(--nav-h) + 60px); }
.sub-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; margin-bottom: .6rem; }
.sub-head h3 { font-size: 1.08rem; }
.sub-card p { font-size: .88rem; margin-bottom: .55rem; }
.sub-card p strong { color: var(--navy); }
.sub-types { color: var(--text) !important; }

/* ── NAV DROPDOWN (Neighbourhoods) & SEARCH ICON ── */
.has-menu { position: relative; display: flex; align-items: center; }
.menu-toggle { display: flex; align-items: center; background: none; border: 0; cursor: pointer; color: rgba(255,255,255,.7); padding: .4rem .2rem; margin-left: -.5rem; }
.menu-toggle:hover, .has-menu:hover .menu-toggle { color: var(--slate); }
.menu-toggle svg { transition: transform .2s; }
.has-menu.open .menu-toggle svg { transform: rotate(180deg); }
.mega {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-38%); z-index: 110;
  min-width: 660px; grid-template-columns: 1fr 1.2fr .9fr; gap: .25rem 2rem;
  background: var(--white); color: var(--text); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 40px rgba(3,3,40,.28); padding: 1.3rem 1.6rem 1rem;
}
.has-menu:hover .mega, .has-menu:focus-within .mega, .has-menu.open .mega { display: grid; }
.mega-h { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: .4rem; }
.nav-links .mega a { padding: .26rem 0; color: var(--text); font-size: .86rem; font-weight: 600; border: 0; white-space: nowrap; }
.nav-links .mega a:hover { color: var(--teal-ink); }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.nav-links .mega-foot a { color: var(--teal-ink); font-weight: 700; }
.mega-buildings { left: 0; transform: none; min-width: 880px; grid-template-columns: .9fr 1fr 2fr; }
.mega-col-2 > div { columns: 2; column-gap: 1.6rem; }
.nav-links .mega-col-2 a { display: block; break-inside: avoid; white-space: normal; }
.mega-guide { left: auto; right: -2rem; transform: none; min-width: 600px; grid-template-columns: .8fr 1.2fr; }
.nav-search a { display: flex; align-items: center; gap: .45rem; }
.nav-search span { display: none; }

@media (max-width: 1200px) {
  .has-menu { flex-wrap: wrap; }
  .has-menu > a { flex: 1; }
  .menu-toggle { margin: 0; padding: .8rem 1rem; color: rgba(255,255,255,.85); }
  .mega { position: static; transform: none; min-width: 0; width: 100%; grid-template-columns: 1fr; gap: .5rem;
          background: rgba(255,255,255,.05); box-shadow: none; border-radius: 8px; padding: .8rem 1rem; margin-bottom: .4rem; }
  .has-menu:hover .mega, .has-menu:focus-within .mega { display: none; }
  .has-menu.open .mega { display: grid; }
  .mega-h { color: var(--slate); margin: .3rem 0 .2rem; }
  .nav-links .mega a { color: rgba(255,255,255,.85); padding: .45rem 0; border-left: 0; white-space: normal; }
  .mega-foot { flex-direction: column; gap: .2rem; border-top-color: rgba(255,255,255,.12); }
  .nav-links .mega-foot a { color: var(--slate); }
  .nav-search span { display: inline; }
}

/* ── CONDO FINDER (search box + /search/ results) ── */
.hero-finder { width: 100%; max-width: 720px; margin: 0 auto 1.9rem; }
.page-hero .hero-finder { margin: 1.4rem 0 1.6rem; }
.finder-hero #finder { max-width: 760px; margin-top: 1.4rem; }
.finder-form { display: flex; gap: .5rem; padding: .4rem; background: var(--white); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.finder-form:focus-within { box-shadow: 0 0 0 3px var(--slate), 0 10px 30px rgba(0,0,0,.25); }
.finder-form input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 1rem; padding: .7rem .9rem; }
.finder-form input::placeholder { color: #7a8794; }
.finder-form .btn { flex-shrink: 0; }
.finder-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.hero .finder-chips { justify-content: center; }
.finder-chips a { font-size: .78rem; font-weight: 600; color: var(--white); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .32rem .8rem; transition: background .15s, color .15s; }
.finder-chips a:hover { background: var(--slate); border-color: var(--slate); color: var(--navy); }
section.finder-section { padding: 2.25rem 20px 3.5rem; }
.fr-how { font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.fr-how span { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }
.fr-related { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .88rem; margin-bottom: .9rem; }
.fr-related a { color: var(--teal-ink); font-weight: 700; }
.fr-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.fr { display: block; padding: 1rem 1.15rem; background: var(--white); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--slate); border-radius: var(--radius); transition: box-shadow .15s, transform .15s; }
.fr:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.fr-type { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: .2rem; }
.fr strong { display: block; color: var(--navy); font-size: 1.02rem; line-height: 1.35; margin-bottom: .3rem; }
.fr-stats { display: block; font-size: .84rem; line-height: 1.55; color: var(--muted); }
.fr-stats b { color: var(--text); }
.fr-more, .fr-fine { font-size: .8rem; color: var(--muted); margin-top: 1rem; }
.fr-none { padding: 1.6rem; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); }
.fr-none .btn { margin-top: .9rem; }
@media (max-width: 760px) {
  .fr-list { grid-template-columns: 1fr; }
  .finder-form input { font-size: .95rem; padding: .65rem .6rem; }
  .finder-form .btn { padding-left: 1rem; padding-right: 1rem; }
}
.finder-filters { margin-top: 1rem; display: grid; gap: .55rem; }
.ff-row { display: flex; align-items: baseline; gap: .75rem; }
.ff-label { flex: 0 0 4.6rem; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.ff-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.ff-btns button { font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; color: var(--white); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .32rem .8rem; transition: background .15s, color .15s; }
.ff-btns button:hover { border-color: var(--slate); }
.ff-btns button.on { background: var(--slate); border-color: var(--slate); color: var(--navy); }
.ff-btns button.on::before { content: '✓ '; }
.finder-filters p.ff-hint { font-size: .8rem; margin-bottom: 0; color: rgba(255,255,255,.65); margin-top: .2rem; }
.ff-clear { color: var(--slate); font-weight: 700; margin-left: .5rem; }
@media (max-width: 600px) { .ff-row { flex-direction: column; gap: .3rem; } .ff-label { flex: none; } }
.finder-chips a.on { background: var(--slate); border-color: var(--slate); color: var(--navy); }
.finder-chips a.on::before { content: '✓ '; }
p.finder-hint { font-size: .8rem; color: rgba(255,255,255,.65); margin: .6rem 0 0; }
.hero p.finder-hint { text-align: center; }
.lux-note { display: inline-block; margin-top: .2rem; font-size: .85em; font-weight: 500; color: var(--muted); }
.lux-note a { color: var(--teal-ink); font-weight: 700; }
.lux-note strong { color: var(--text); }
.fact .lux-note { display: block; margin-top: .3rem; text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 500; color: var(--muted); }
.fact .lux-note strong { display: inline; font-size: inherit; font-weight: 700; color: var(--text); }
#pros-cons .pros-cons li { font-size: .92rem; color: var(--text); line-height: 1.5; }
#pros-cons .pros-cons h4 { color: var(--navy); }

/* ── Condo finder: empty state, toolbar, map, listing alert ── */
.mkt-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; padding: 1rem 1.25rem; margin-bottom: 2.5rem;
  background: var(--navy); color: rgba(255,255,255,.8); border-radius: var(--radius); font-size: .88rem; }
.mkt-strip strong { color: var(--white); }
.mkt-strip a { color: var(--slate); font-weight: 700; margin-left: auto; }
.pop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pop-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.15rem 1.2rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); transition: box-shadow .15s, transform .15s; }
.pop-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pop-icon { font-size: 1.5rem; line-height: 1; }
.pop-card h3 { font-size: 1rem; color: var(--navy); margin: .2rem 0 0; }
.pop-card p { font-size: .82rem; color: var(--muted); line-height: 1.45; flex: 1; }
.pop-actions { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .4rem; font-size: .82rem; font-weight: 700; }
.pop-run { background: var(--slate); color: var(--navy); padding: .35rem .8rem; border-radius: 999px; }
.pop-run:hover { background: var(--navy); color: var(--white); }
.pop-guide { color: var(--teal-ink); }
.pop-count { font-weight: 600; opacity: .75; }
.how-search { margin-top: 3rem; padding: 1.25rem 1.4rem; border-left: 4px solid var(--slate); background: var(--off-white); border-radius: 0 var(--radius) var(--radius) 0; }
.how-search h3 { font-size: 1rem; margin-bottom: .35rem; color: var(--navy); }
.how-search p { font-size: .88rem; color: var(--muted); }
.fr-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; font-weight: 700; color: var(--navy); }
.fr-views { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.fr-views button { font: inherit; font-size: .82rem; font-weight: 700; border: 0; background: var(--white); color: var(--navy); padding: .45rem 1.1rem; cursor: pointer; }
.fr-views button.on { background: var(--navy); color: var(--white); }
.fr-vs { font-size: .78rem; font-weight: 600; }
.fr-vs.below { color: #2a7a45; }
.fr-vs.above { color: #8a5a00; }
#finderMapWrap { margin-top: .5rem; }
.lm-pin, .lm-key { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.lm-key { width: 11px; height: 11px; vertical-align: middle; margin: 0 .2rem 0 .5rem; }
.lm-below { background: #2a7a45; }
.lm-above { background: #c9962c; }
.lm-none { background: var(--navy); }
.lm-dest { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--slate); border: 3px solid var(--navy); box-shadow: 0 1px 5px rgba(0,0,0,.4); }
#finderAlert { margin-top: 2.5rem; }
.alert-box { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: start; padding: 2rem; background: var(--navy); color: rgba(255,255,255,.82); border-radius: var(--radius); }
.alert-box h2 { color: var(--white); font-size: 1.45rem; margin: .3rem 0 .6rem; }
.alert-box .label { color: var(--slate); }
.alert-box .alert-form-col { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.alert-box .form-msg.ok { color: var(--text); }
@media (max-width: 1000px) { .pop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .alert-box { grid-template-columns: 1fr; padding: 1.4rem; } .mkt-strip a { margin-left: 0; } }
@media (max-width: 520px) { .pop-grid { grid-template-columns: 1fr; } }
.pop-n { display: inline-block; margin-left: .3rem; padding: .05rem .5rem; border-radius: 999px; background: var(--slate-light); color: var(--teal-ink); font-size: .75rem; vertical-align: middle; }
.data-table .muted { color: var(--muted); font-weight: 500; }
