/* ============================================================
   TradeSchoolsAndPermitInfo.ca — Design System
   "Coastal Authority" — deep navy, brass, warm paper.
   Zero dependencies. Hand-tuned for trust + conversion.
   ============================================================ */

:root {
  /* Palette */
  --navy-950: #071022;
  --navy-900: #0B1F3A;
  --navy-800: #123058;
  --navy-700: #1B4079;
  --gold-600: #A97C28;
  --gold-500: #C9973B;
  --gold-400: #E0B25D;
  --gold-100: #F7EBD3;
  --paper: #F7F5F0;
  --card: #FFFFFF;
  --ink: #16202E;
  --slate: #55677F;
  --line: #E4E0D6;
  --green: #1F7A55;
  --green-100: #E2F2EA;
  --red: #B3402E;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 1px 3px rgba(11, 31, 58, .08);
  --shadow-md: 0 4px 14px rgba(11, 31, 58, .10);
  --shadow-lg: 0 12px 40px rgba(11, 31, 58, .16);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); }
a:hover { color: var(--gold-600); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 10px;
}
.lede { font-size: 1.15rem; color: var(--slate); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { box-shadow: var(--shadow-md); color: var(--navy-950); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-950);
  color: #B9C6DB;
  font-size: .8rem;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: var(--gold-400); text-decoration: none; font-weight: 600; }
.site-header {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 12px rgba(7, 16, 34, .35);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem; color: var(--navy-950);
}
.brand-name { line-height: 1.15; }
.brand-name b { display: block; color: #fff; font-size: 1.02rem; letter-spacing: .01em; }
.brand-name span { color: #8FA3C2; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #D5DEEC; text-decoration: none; font-weight: 500; font-size: .92rem;
  padding: 10px 14px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-400); background: rgba(255,255,255,.06); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(27, 64, 121, .55), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(201, 151, 59, .18), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #fff;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(800px 400px at 70% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 21ch; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero .lede { color: #B9C6DB; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-search {
  margin-top: 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 10px;
  max-width: 860px;
}
.hero-search select, .hero-search .btn { height: 50px; }
.hero-search select {
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.18);
  background: var(--navy-950);
  color: #E5EBF4;
  padding: 0 14px;
  font-family: var(--font-ui);
  font-size: .92rem;
}
.trustline { margin-top: 26px; display: flex; gap: 26px; flex-wrap: wrap; color: #8FA3C2; font-size: .85rem; }
.trustline b { color: var(--gold-400); }

/* ---------- Stat bar ---------- */
.statbar { background: var(--card); border-bottom: 1px solid var(--line); }
.statbar .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; text-align: center;
}
.stat { padding: 26px 12px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--navy-900); }
.stat span { color: var(--slate); font-size: .85rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card { text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }
.cat-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: var(--gold-100); margin-bottom: 16px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--slate); font-size: .92rem; margin: 0; }
.card-meta { margin-top: 14px; font-size: .8rem; font-weight: 600; color: var(--gold-600); }

/* ---------- Listing / directory cards ---------- */
.listing {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  box-shadow: var(--shadow-sm);
}
.listing.premium {
  border: 1.5px solid var(--gold-500);
  background: linear-gradient(180deg, #FFFDF7, #FFFFFF);
  box-shadow: 0 6px 22px rgba(201, 151, 59, .18);
  position: relative;
}
.listing .logo {
  width: 58px; height: 58px; border-radius: 12px;
  background: var(--navy-900); color: var(--gold-400);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
}
.listing.premium .logo { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950); }
.listing h3 { margin: 0 0 3px; font-size: 1.12rem; }
.listing .loc { color: var(--slate); font-size: .85rem; margin: 0 0 8px; }
.listing .desc { color: var(--ink); font-size: .9rem; margin: 0 0 10px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .72rem; font-weight: 600;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; color: var(--slate);
}
.tag.gold { background: var(--gold-100); border-color: var(--gold-400); color: var(--gold-600); }
.tag.green { background: var(--green-100); border-color: #BADFCB; color: var(--green); }
.badge-premium {
  position: absolute; top: -11px; left: 20px;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.listing-actions { display: flex; flex-direction: column; gap: 8px; min-width: 148px; }

/* ---------- Ad slots ---------- */
.ad-slot {
  background: repeating-linear-gradient(45deg, #F1EFE8, #F1EFE8 12px, #ECEAE2 12px, #ECEAE2 24px);
  border: 1px dashed #CFCabc;
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: #9AA5B5; font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  position: relative;
}
.ad-slot::before { content: "Advertisement"; position: absolute; top: 6px; left: 10px; font-size: .58rem; letter-spacing: .18em; color: #B4AF9F; }
.ad-leaderboard { height: 110px; max-width: 748px; margin: 0 auto; }
.ad-rect { height: 270px; width: 100%; max-width: 320px; }
.ad-mobile { display: none; height: 70px; }

/* ---------- Lead form ---------- */
.lead-panel {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  color: #fff;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: var(--shadow-lg);
}
.lead-copy { padding: 44px; }
.lead-copy h2 { color: #fff; }
.lead-copy p { color: #B9C6DB; }
.lead-copy ul { color: #D5DEEC; padding-left: 20px; font-size: .93rem; }
.lead-copy li { margin-bottom: 8px; }
.lead-form { background: var(--card); padding: 36px; }
.lead-form h3 { margin-bottom: 4px; }
.lead-form .sub { color: var(--slate); font-size: .85rem; margin: 0 0 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--navy-900); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-ui); font-size: .92rem; color: var(--ink);
  background: #FCFBF8;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 151, 59, .18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: .72rem; color: var(--slate); margin-top: 10px; }
.form-success { background: var(--green-100); border: 1px solid #BADFCB; color: var(--green); border-radius: var(--radius); padding: 14px; font-weight: 600; font-size: .9rem; display: none; }

/* ---------- Product upsell ---------- */
.product-card { text-align: left; position: relative; overflow: hidden; }
.product-card .card-body { padding: 28px; }
.price { font-family: var(--font-display); font-size: 1.7rem; color: var(--navy-900); }
.price small { font-size: .85rem; color: var(--slate); font-family: var(--font-ui); }
.ribbon {
  position: absolute; top: 16px; right: -34px; transform: rotate(38deg);
  background: var(--navy-900); color: var(--gold-400);
  font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 40px;
}

/* ---------- Map page ---------- */
.map-shell { display: grid; grid-template-columns: 380px 1fr; gap: 0; height: calc(100vh - 72px); }
.map-side { background: var(--card); border-right: 1px solid var(--line); overflow-y: auto; padding: 22px; }
.map-side h2 { font-size: 1.3rem; }
#bcmap { height: 100%; width: 100%; background: #DDE7F0; }
.map-count { font-size: .8rem; color: var(--slate); margin: 4px 0 14px; }
.filter-group { margin-bottom: 18px; }
.filter-group > label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.filter-group select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: #FCFBF8; font-size: .9rem; font-family: var(--font-ui);
}
.chiprow { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1.5px solid var(--line); background: #FCFBF8; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--slate);
  padding: 7px 14px; cursor: pointer; transition: all .12s ease;
}
.chip:hover { border-color: var(--gold-500); color: var(--gold-600); }
.chip.on { background: var(--navy-900); border-color: var(--navy-900); color: var(--gold-400); }
.side-listing { border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; margin-bottom: 10px; cursor: pointer; transition: border-color .12s; }
.side-listing:hover { border-color: var(--gold-500); }
.side-listing.premium { border-color: var(--gold-500); background: #FFFDF7; }
.side-listing b { display: block; font-size: .9rem; color: var(--navy-900); }
.side-listing span { font-size: .77rem; color: var(--slate); }
.map-fallback { padding: 40px; text-align: center; color: var(--slate); }

/* 3D map stage */
.map-stage { position: relative; height: 100%; }
.map-stage #bcmap { height: 100%; }
.map-overlay-btn {
  position: absolute; bottom: 22px; left: 16px; z-index: 500;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,.25);
}
/* MapLibre popup theme (matches Leaflet styling) */
.maplibregl-popup-content {
  border-radius: 12px !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 14px 16px !important;
  font-family: var(--font-ui);
}
.maplibregl-popup-close-button { font-size: 1.1rem; padding: 2px 8px; }
.maplibregl-ctrl-group { border-radius: 10px !important; overflow: hidden; }

/* 🦶 Sasquatch easter egg */
.bigfoot {
  cursor: pointer;
  filter: drop-shadow(0 4px 6px rgba(7, 16, 34, .4));
  animation: bf-pop .55s cubic-bezier(.5, 1.8, .4, 1) both;
}
.bigfoot:hover { filter: drop-shadow(0 4px 10px rgba(201, 151, 59, .8)); }
.bigfoot .bf-arm {
  transform-box: fill-box;
  transform-origin: 10% 90%;
  animation: bf-wave 1.1s ease-in-out infinite;
}
@keyframes bf-wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-24deg); } }
@keyframes bf-pop { 0% { transform: scale(0) translateY(26px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }

/* Leaflet popup theme */
.leaflet-popup-content-wrapper { border-radius: 12px !important; box-shadow: var(--shadow-lg) !important; }
.popup { font-family: var(--font-ui); min-width: 230px; }
.popup h4 { font-family: var(--font-display); margin: 0 0 2px; font-size: 1.05rem; color: var(--navy-900); }
.popup .ptype { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.popup p { margin: 8px 0; font-size: .84rem; color: var(--ink); }
.popup a.btn { margin-top: 4px; }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--navy-800); border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(7,16,34,.4); display: grid; place-items: center; }
.pin span { transform: rotate(45deg); font-size: .8rem; }
.pin.premium { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); }
.pin.permit { background: var(--green); }

/* ---------- Permit Finder ---------- */
.finder-band {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #fff;
  padding: 56px 0 64px;
  border-top: 3px solid var(--gold-500);
}
.finder-band h2 { color: #fff; }
.finder-band .lede { color: #B9C6DB; }
.finder-head { max-width: 720px; margin-bottom: 26px; }
.finder-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-width: 900px;
}
.finder-row .field label { color: #B9C6DB; }
.finder-row .field input { background: var(--navy-950); border-color: rgba(255,255,255,.18); color: #E5EBF4; height: 47px; }
.finder-card {
  background: var(--card); color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-top: 20px;
  max-width: 900px;
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--gold-500);
}
.finder-card h3 { margin-bottom: 4px; }
.finder-card .loc { color: var(--slate); font-size: .88rem; margin: 0 0 14px; }
.finder-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 14px 0; }
.finder-facts > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.finder-facts b { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 3px; }
.finder-facts span { font-size: .95rem; color: var(--navy-900); font-weight: 600; }
.finder-facts .highlight { background: var(--gold-100); border-color: var(--gold-400); }
.finder-note { font-size: .8rem; color: #8FA3C2; }
.finder-card .finder-note { color: var(--slate); }
.finder-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---------- Directory page ---------- */
.page-head { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #fff; padding: 54px 0 46px; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-head .lede { color: #B9C6DB; }
.dir-layout { display: grid; grid-template-columns: 290px 1fr; gap: 30px; align-items: start; }
.dir-filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 92px; }
.dir-results { display: grid; gap: 16px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.results-bar b { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy-900); }
.no-results { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 44px; text-align: center; color: var(--slate); }

/* ---------- Article / guide pages ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article-meta { color: var(--slate); font-size: .85rem; margin-bottom: 26px; }
.article p { font-size: 1.02rem; }
.article table { width: 100%; border-collapse: collapse; margin: 22px 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: .92rem; }
.article th { background: var(--navy-900); color: #fff; text-align: left; padding: 11px 14px; font-weight: 600; }
.article td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.callout { background: var(--gold-100); border-left: 4px solid var(--gold-500); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px; margin: 24px 0; font-size: .95rem; }
.callout b { color: var(--gold-600); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(7, 16, 34, .65);
  z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal { background: var(--card); border-radius: var(--radius-lg); max-width: 460px; width: 100%; padding: 32px; position: relative; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.5rem; color: var(--slate); cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #8FA3C2; padding: 60px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.09); }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #B9C6DB; text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-about p { font-size: .88rem; line-height: 1.65; }
.footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 24px; font-size: .78rem; flex-wrap: wrap; }
.footer-legal nav { display: flex; gap: 18px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-800)); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 48px; padding-bottom: 48px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #B9C6DB; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .lead-panel { grid-template-columns: 1fr; }
  .map-shell { grid-template-columns: 1fr; height: auto; }
  #bcmap { height: 62vh; }
  .map-side { max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .dir-layout { grid-template-columns: 1fr; }
  .dir-filters { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .statbar .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy-900); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-search { grid-template-columns: 1fr; }
  .listing { grid-template-columns: 1fr; }
  .listing-actions { flex-direction: row; }
  .ad-leaderboard { display: none; }
  .ad-mobile { display: grid; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
