/* ════════════════════════════════════════════
   CLA × SYNAPSE — INSiGHT Chiros Directory
   ════════════════════════════════════════════ */
:root {
  --cobalt:       #145DA0;
  --sky:          #108CE2;
  --oxygen:       #5FB2FE;
  --ice:          #B1D4E0;
  --ice-tint:     #E5F1F9;
  --ice-mist:     #F4F9FD;
  --graphite:     #2D3142;
  --gray:         #6B7280;
  --gray-lt:      #9CA3AF;
  --gray-2:       #E5E7EB;
  --lab:          #D9D9D9;
  --white:        #FFFFFF;
  --beige:        #C3AF96;
  --skin:         #E2D8D0;
  --navy:         #001848;
  --scan-blue:    #65C1FF;
  --neuro-blue:   #015CFF;
  --bright-scan:  #126DFF;
  --ice-deep:     #D5E6F2;
  --linen:        #F8F9FF;
  --airwhite:     #FAFAFA;
  --success:      #16A34A;
  --warn:         #D97706;

  --fh: 'Manrope', 'Proxima Nova', 'Segoe UI', system-ui, sans-serif;
  --fb: 'Open Sans', system-ui, sans-serif;
  --fs: 'Caveat', 'Brittany Signature', cursive;

  --r-chip: 18px;
  --r-card: 22px;
  --r-panel: 28px;
  --sh-sm: 0 2px 12px rgba(20,93,160,.08);
  --sh-md: 0 8px 32px rgba(20,93,160,.10);
  --sh-lg: 0 20px 60px rgba(20,93,160,.16);
  --sh-xl: 0 30px 80px rgba(0,24,72,.22);
  --glass: rgba(255,255,255,.15);
  --glass-bd: rgba(255,255,255,.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--fh);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.1;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: 0.005em; }
h4 { font-family: var(--fh); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: .9rem; }
p  { line-height: 1.7; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fh); font-size: .72rem;
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }

.sig {
  font-family: var(--fs); font-size: 1.8em; font-weight: 500;
  color: var(--sky); line-height: 1; text-transform: none; letter-spacing: 0;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 10px;
  font-family: var(--fh); font-size: .88rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  transition: all .25s ease; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: var(--sky); color: #fff;
  box-shadow: 0 6px 22px rgba(16,140,226,.32);
}
.btn-primary:hover {
  background: var(--cobalt); transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(16,140,226,.45);
}
.btn-cobalt { background: var(--cobalt); color: #fff; box-shadow: 0 6px 22px rgba(20,93,160,.28); }
.btn-cobalt:hover { background: #0d4577; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cobalt); border: 1.5px solid rgba(20,93,160,.28); }
.btn-ghost:hover { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.btn-glass {
  background: rgba(255,255,255,.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,.22); }
.btn-white { background: #fff; color: var(--cobalt); box-shadow: 0 6px 22px rgba(0,0,0,.12); }
.btn-white:hover { background: var(--ice-mist); transform: translateY(-2px); }
.btn-lg { padding: 18px 42px; font-size: .95rem; }

/* Topography motif */
.topo-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.topo-svg path { fill: none; stroke-width: 1.2; }

/* ════════════════════════════════════════════ NAV ════════════════════════════════════════════ */
nav.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(20,93,160,.06);
  transition: all .3s ease;
}
nav.topbar.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 24px rgba(20,93,160,.08);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--fh); font-weight: 800;
  font-size: 1.18rem; letter-spacing: .02em; color: var(--cobalt);
  text-transform: none; white-space: nowrap;
}
.brand-mark { width: auto; height: 32px; flex-shrink: 0; }
.brand sup { font-size: .55em; color: var(--sky); margin-left: 2px; }
.brand-primary { color: var(--cobalt); }
.brand-by {
  color: var(--sky); font-size: .78em; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-left: 5px;
}
.foot-brand-name .brand-by { color: var(--scan-blue); }
.nav-links { display: flex; gap: 22px; flex-wrap: nowrap; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links > li > button {
  font-family: var(--fh); font-size: .8rem; font-weight: 600;
  color: var(--graphite); letter-spacing: .05em; text-transform: uppercase;
  transition: color .2s; white-space: nowrap;
}
.nav-links > li > button {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.nav-links > li > button svg { width: 9px; height: 9px; transition: transform .2s; }
.nav-links > li.open > button svg { transform: rotate(180deg); }
.nav-links a:hover, .nav-links a.active,
.nav-links > li > button:hover, .nav-links > li.open > button { color: var(--sky); }
.nav-drop {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px);
  min-width: 260px; max-width: 340px; background: #fff; border: 1px solid rgba(16,140,226,.16);
  border-radius: 14px; box-shadow: 0 22px 50px rgba(0,24,72,.16); padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: all .2s ease; z-index: 1300;
}
.nav-links > li.open .nav-drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.nav-drop a {
  display: block; padding: 9px 12px; border-radius: 9px;
  text-transform: none; letter-spacing: 0; font-size: .86rem; font-weight: 600;
  color: var(--graphite); white-space: normal; line-height: 1.35;
}
.nav-drop a:hover, .nav-drop a.active { background: rgba(16,140,226,.08); color: var(--cobalt); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-right .btn { padding: 10px 18px; font-size: .76rem; }
.burger { display: none; flex-direction: column; gap: 4px; padding: 10px; margin: -10px; }
.burger span { width: 22px; height: 2px; background: var(--cobalt); border-radius: 2px; }

.drawer { position: fixed; top: 0; right: -100%; width: 86%; max-width: 340px; height: 100vh; background: #fff; padding: 90px 24px 40px; z-index: 99; box-shadow: -10px 0 40px rgba(0,24,72,.18); transition: right .35s ease; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.drawer.open { right: 0; }
.drawer a { font-family: var(--fh); font-weight: 700; font-size: 1.02rem; color: var(--graphite); text-transform: uppercase; letter-spacing: .05em; }
.drawer a.btn { text-align: center; }
.drawer-group > .drawer-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--fh); font-weight: 700; font-size: 1.02rem; color: var(--graphite);
  text-transform: uppercase; letter-spacing: .05em;
}
.drawer-group > .drawer-head svg { width: 11px; height: 11px; transition: transform .2s; }
.drawer-group.open > .drawer-head { color: var(--sky); }
.drawer-group.open > .drawer-head svg { transform: rotate(180deg); }
.drawer-sub { display: none; flex-direction: column; gap: 10px; padding: 12px 0 4px 12px; border-left: 2px solid rgba(16,140,226,.2); margin-top: 12px; }
.drawer-group.open .drawer-sub { display: flex; }
.drawer-sub a { text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 600; color: var(--slate, #4a5568); }

.scrim { position: fixed; inset: 0; background: rgba(0,24,72,.45); z-index: 98; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }

/* ════════════════════════════════════════════ HERO ════════════════════════════════════════════ */
#hero {
  padding: 140px 0 80px;
  position: relative;
  background:
    radial-gradient(ellipse 1200px 800px at 80% 10%, rgba(95,178,254,.32) 0%, transparent 60%),
    radial-gradient(ellipse 1000px 700px at 10% 90%, rgba(16,140,226,.22) 0%, transparent 60%),
    linear-gradient(135deg, #1166BD 0%, #145DA0 40%, #0E4A85 100%);
  color: #fff;
}
#hero .topo-svg path { stroke: rgba(255,255,255,.07); }
.hero-inner { position: relative; z-index: 3; max-width: 1280px; margin: 0 auto; padding: 0 28px; }

.hero-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--glass-bd);
  backdrop-filter: blur(18px);
  border-radius: 999px; padding: 8px 20px;
  font-family: var(--fh); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: #fff; margin-bottom: 22px;
}
.hero-chip .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--scan-blue);
  box-shadow: 0 0 0 0 var(--scan-blue); animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(101,193,255,.8); }
  70% { box-shadow: 0 0 0 14px rgba(101,193,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(101,193,255,0); }
}
.hero-h1 { color: #fff; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,24,72,.25); max-width: 880px; }
.hero-h1 .accent { color: var(--scan-blue); }
.hero-sig {
  font-family: var(--fs); color: var(--scan-blue);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.1; margin-bottom: 26px; text-transform: none;
  letter-spacing: 0; display: block; font-weight: 500;
}
.hero-sub {
  font-size: 1.07rem; line-height: 1.75; color: rgba(255,255,255,.82);
  max-width: 720px; margin-bottom: 40px;
}

/* Search panel */
.search-panel {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-radius: var(--r-panel);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px; align-items: center;
  max-width: 980px;
  box-shadow: var(--sh-xl);
}
.search-field {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.95);
  border-radius: 14px; padding: 12px 18px;
  min-height: 60px;
}
.search-field svg { width: 20px; height: 20px; color: var(--sky); flex-shrink: 0; }
.search-field .lbl {
  display: block; font-family: var(--fh); font-size: .58rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sky);
  margin-bottom: 2px;
}
.search-field input, .search-field select {
  width: 100%; border: 0; outline: 0; background: transparent;
  font-family: var(--fh); font-weight: 600; font-size: .95rem;
  color: var(--graphite);
  -webkit-appearance: none; appearance: none;
}
.search-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23145DA0' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 13px;
  padding-right: 18px;
}
.search-field select:disabled { opacity: .45; cursor: not-allowed; }
.search-field .col { flex: 1; min-width: 0; }
.search-field.wide { grid-column: 1 / -1; }
.search-panel .btn-primary { height: 60px; padding: 0 28px; justify-content: center; }
.native-select-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.custom-select { position: relative; width: 100%; }
.custom-select-trigger {
  width: 100%; min-height: 24px; padding: 0 22px 0 0;
  display: flex; align-items: center; text-align: left;
  font-family: var(--fh); font-weight: 600; font-size: .95rem; color: var(--graphite);
  background: transparent; position: relative;
}
.custom-select-trigger::after {
  content: ''; position: absolute; right: 2px; top: 50%; width: 13px; height: 13px;
  transform: translateY(-58%); transition: transform .18s ease;
  background: center / contain no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23145DA0' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
}
.custom-select.open .custom-select-trigger::after { transform: translateY(-42%) rotate(180deg); }
.custom-select-trigger:focus-visible { outline: 2px solid var(--scan-blue); outline-offset: 4px; border-radius: 4px; }
.custom-select-trigger:disabled { opacity: .45; cursor: not-allowed; }
.custom-select-menu {
  position: absolute; z-index: 1200; top: calc(100% + 14px); left: -50px;
  width: max(100%, 320px); padding: 0 8px 8px;
  background: #fff; border: 1px solid rgba(20,93,160,.14); border-radius: 14px;
  box-shadow: 0 22px 55px rgba(5,30,58,.2); overflow: hidden;
}
.custom-select-menu[hidden] { display: none; }
.custom-select-menu-head {
  min-height: 52px; padding: 10px 8px 8px 14px; display: flex; align-items: center; justify-content: space-between;
}
.custom-select-menu-title { font-family: var(--fh); font-size: .95rem; font-weight: 750; color: var(--graphite); }
.custom-select-close {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--gray);
  transition: background .18s ease, color .18s ease;
}
.custom-select-close:hover { background: var(--ice-mist); color: var(--cobalt); }
.custom-select-close:focus-visible { outline: 2px solid var(--scan-blue); outline-offset: 1px; }
.custom-select-close svg { width: 16px; height: 16px; }
.custom-select-search-wrap {
  display: flex; align-items: center; gap: 8px; margin: 0 8px 8px; padding: 9px 11px;
  background: var(--ice-mist); border: 0; border-radius: 10px;
}
.custom-select-search-wrap:focus-within { box-shadow: inset 0 0 0 2px rgba(28,154,232,.22); }
.custom-select-search-wrap svg { width: 16px; height: 16px; color: var(--gray); }
.custom-select-search {
  width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent;
  font-family: var(--fh); font-size: .84rem; font-weight: 600; color: var(--graphite);
}
.custom-select-search::placeholder { color: var(--gray); }
.custom-select-options { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 4px; border-radius: 0 0 10px 10px; }
.custom-select-option {
  width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 10px; text-align: left;
  font-family: var(--fh); font-size: .84rem; font-weight: 600; color: var(--graphite);
}
.custom-select-option:hover, .custom-select-option.highlighted { background: var(--ice-tint); color: var(--cobalt); }
.custom-select-option[aria-selected="true"] { background: var(--ice-tint); color: var(--cobalt); }
.custom-select-option[aria-selected="true"]::after { content: '✓'; font-weight: 800; }
.custom-select-empty { padding: 18px 12px; text-align: center; font-family: var(--fh); font-size: .8rem; color: var(--gray); }

/* ════════════════════════════════════════════ STATS STRIP ════════════════════════════════════════════ */
#stats { background: var(--navy); padding: 50px 0; position: relative; overflow: hidden; }
#stats .topo-svg path { stroke: rgba(255,255,255,.045); }
.stats-row {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
}
.stat { text-align: center; padding: 0 20px; position: relative; }
.stat:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 50px; background: rgba(255,255,255,.14);
}
.stat .n {
  font-family: var(--fh); font-size: clamp(2.2rem, 4.5vw, 2.9rem);
  font-weight: 800; color: #fff; line-height: 1;
}
.stat .n span { color: var(--scan-blue); }
.stat .d {
  font-family: var(--fh); font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,.55); margin-top: 10px;
  letter-spacing: .08em; text-transform: uppercase;
}

/* ════════════════════════════════════════════ RESULTS ════════════════════════════════════════════ */
#results { background: var(--ice-deep); padding: 72px 0 100px; }

/* Results main */
.results-main { min-width: 0; }
.results-top {
  display: flex; align-items: center; justify-content: flex-end;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.results-actions { display: flex; gap: 10px; align-items: center; }
.results-actions select {
  background: #fff; border: 1px solid var(--gray-2); border-radius: 10px;
  padding: 10px 36px 10px 14px; font-weight: 600; font-size: .85rem; color: var(--graphite);
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23145DA0' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
}
/* Active chips */
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.active-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid rgba(20,93,160,.18);
  padding: 7px 14px; border-radius: 999px;
  font-family: var(--fh); font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; color: var(--cobalt);
}
.active-chip button { color: var(--gray-lt); font-size: 1rem; line-height: 1; padding: 0 0 2px; }
.active-chip button:hover { color: var(--cobalt); }

/* Cards */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 10px; scroll-margin-top: 92px; }
.cards-grid:focus { outline: none; }
.chiro-card {
  background: #fff; border-radius: var(--r-card);
  border: 1px solid rgba(20,93,160,.08);
  padding: 16px 18px;
  display: grid; grid-template-columns: 64px 1fr auto; gap: 16px;
  align-items: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: var(--sh-sm);
  position: relative;
}
.chiro-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: rgba(16,140,226,.25);
}
.chiro-avatar {
  width: 64px; height: 64px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, var(--ice-tint), var(--ice));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chiro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chiro-avatar-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--fh); font-weight: 800; font-size: 1.4rem; color: var(--cobalt);
  background: linear-gradient(135deg, var(--ice-tint), var(--ice));
}
.chiro-tag-label {
  font-family: var(--fh); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gray);
  align-self: center; margin-right: 4px;
}
.chiro-meta a { color: inherit; }
.chiro-meta a:hover { color: var(--sky); }
.chiro-body { min-width: 0; }
.chiro-name-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.chiro-name {
  font-family: var(--fh); font-weight: 800; font-size: 1.06rem;
  color: var(--graphite); letter-spacing: -0.005em;
  text-transform: none;
}
.chiro-practice {
  font-family: var(--fh); font-weight: 600; font-size: .92rem;
  color: var(--sky); margin-bottom: 8px; letter-spacing: .01em;
}
.chiro-meta {
  display: flex; flex-wrap: wrap; gap: 5px 18px;
  font-size: .79rem; color: var(--gray); margin-bottom: 0;
}
.chiro-meta span { display: inline-flex; align-items: center; gap: 6px; }
.chiro-meta svg { width: 14px; height: 14px; color: var(--gray-lt); }
.chiro-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chiro-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ice-mist); color: var(--cobalt);
  padding: 5px 10px; border-radius: 8px;
  font-family: var(--fh); font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.chiro-cta {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
  min-width: 126px;
}
.chiro-cta .btn {
  padding: 9px 16px; font-size: .7rem; width: 100%; justify-content: center;
}

/* Map block */
.map-panel {
  background: var(--navy); border-radius: var(--r-panel);
  overflow: hidden; box-shadow: var(--sh-xl); margin-bottom: 24px;
  position: relative;
  aspect-ratio: 16/8.5;
}
#mapCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.map-overlay {
  position: absolute; top: 16px; right: 16px; z-index: 500;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  padding: 10px 16px; border-radius: 10px;
  box-shadow: var(--sh-sm);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fh); font-size: .78rem; font-weight: 700;
  color: var(--cobalt);
  pointer-events: none;
  margin: 0; line-height: 1;
}
.map-overlay svg { width: 14px; height: 14px; color: var(--sky); }
.map-cta { position: absolute; bottom: 16px; right: 16px; z-index: 500; margin: 0; line-height: 0; }
.map-units {
  position: absolute; bottom: 16px; left: 16px; z-index: 500;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.map-units select {
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border: none; border-radius: 10px; box-shadow: var(--sh-sm);
  padding: 10px 32px 10px 14px;
  font-family: var(--fh); font-weight: 700; font-size: .78rem; color: var(--cobalt);
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23145DA0' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
}
/* Gesture handling overlay text on brand */
.leaflet-gesture-handling:after { font-family: var(--fh); font-weight: 700; }

/* Leaflet brand pin */
.cla-pin {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 5%;
  background: var(--sky); border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(20,93,160,.35);
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
}
.cla-pin span {
  transform: rotate(45deg); color: #fff; font-family: var(--fh);
  font-weight: 800; font-size: .78rem;
}
.cla-pin.featured { background: var(--cobalt); width: 40px; height: 40px; }

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: 14px; padding: 0; box-shadow: 0 12px 40px rgba(0,24,72,.18);
  border: 1px solid rgba(20,93,160,.1);
}
.leaflet-popup-content { margin: 0; padding: 14px 16px; font-family: var(--fb); }
.leaflet-popup-content .pp-name {
  font-family: var(--fh); font-weight: 800; font-size: .92rem;
  color: var(--graphite); margin-bottom: 2px;
}
.leaflet-popup-content .pp-practice {
  font-family: var(--fh); font-weight: 600; font-size: .78rem; color: var(--sky);
  margin-bottom: 8px;
}
.leaflet-popup-content .pp-meta {
  font-size: .78rem; color: var(--gray); margin-bottom: 10px;
}
.leaflet-popup-content .pp-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sky); color: #fff;
  padding: 7px 14px; border-radius: 8px;
  font-family: var(--fh); font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.leaflet-popup-tip { box-shadow: 0 12px 40px rgba(0,24,72,.18); }
.leaflet-container { font-family: var(--fb); }

/* ════════════════════════════════════════════ TECH BAR ════════════════════════════════════════════ */
#tech-bar {
  background:
    radial-gradient(ellipse 900px 600px at 0% 0%, rgba(95,178,254,.22) 0%, transparent 55%),
    radial-gradient(ellipse 800px 500px at 100% 100%, rgba(16,140,226,.18) 0%, transparent 55%),
    linear-gradient(160deg, #0E4A85 0%, #145DA0 50%, #1166BD 100%);
  color: #fff; overflow: hidden;
}
#tech-bar .topo-svg path { stroke: rgba(255,255,255,.06); }
.tech-head { position: relative; z-index: 2; max-width: 820px; margin-bottom: 56px; }
.tech-head h2 { color: #fff; margin-bottom: 18px; }
.tech-head p { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 640px; }
.tech-cards-row {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.tech-card {
  background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-panel);
  backdrop-filter: blur(22px);
  padding: 28px 26px;
}
.tech-card .t-num {
  font-family: var(--fh); font-size: .62rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--scan-blue); margin-bottom: 14px;
}
.tech-card h3 { color: #fff; margin-bottom: 8px; }
.tech-card p { color: rgba(255,255,255,.78); font-size: .92rem; line-height: 1.65; }
.tech-card .icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.tech-card .icon-wrap svg { width: 26px; height: 26px; color: var(--scan-blue); }

/* ════════════════════════════════════════════ WHY NETWORK ════════════════════════════════════════════ */
#why { background: #fff; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-photo {
  border-radius: var(--r-panel); overflow: hidden;
  aspect-ratio: 4/5; box-shadow: var(--sh-lg); position: relative;
}
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.why-photo-tag {
  position: absolute; left: 22px; bottom: 22px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  padding: 14px 20px; border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,24,72,.18);
}
.why-photo-tag .lbl {
  font-family: var(--fh); font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sky);
  margin-bottom: 3px;
}
.why-photo-tag .val {
  font-family: var(--fh); font-size: 1rem; font-weight: 700; color: var(--cobalt);
  text-transform: uppercase; letter-spacing: .03em;
}
.why-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.why-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: flex-start;
  padding: 18px; background: var(--ice-mist); border-radius: 16px;
  border: 1px solid rgba(20,93,160,.06);
}
.why-list .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sky), var(--cobalt));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-sm);
}
.why-list .ico svg { width: 22px; height: 22px; color: #fff; }
.why-list h4 { color: var(--cobalt); margin-bottom: 4px; font-size: 1rem; }
.why-list p { font-size: .92rem; color: var(--gray); line-height: 1.6; }

/* ════════════════════════════════════════════ CTA ════════════════════════════════════════════ */
#cta {
  background:
    radial-gradient(ellipse 900px 600px at 80% 50%, rgba(95,178,254,.32) 0%, transparent 60%),
    linear-gradient(135deg, #1166BD 0%, #145DA0 50%, #0E4A85 100%);
  color: #fff; overflow: hidden;
}
#cta .topo-svg path { stroke: rgba(255,255,255,.06); }
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.cta-grid h2 { color: #fff; margin-bottom: 18px; }
.cta-grid p { color: rgba(255,255,255,.82); font-size: 1.05rem; margin-bottom: 30px; }
.cta-card {
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-panel);
  backdrop-filter: blur(22px); padding: 36px 32px;
}
.cta-card h3 { color: #fff; margin-bottom: 8px; }
.cta-card .sig { color: var(--scan-blue); font-size: 1.7rem; display: block; margin-bottom: 12px; }
.cta-card p { font-size: .95rem; }
.cta-card ul { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 28px; }
.cta-card li {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--fh); font-weight: 600; font-size: .9rem; color: #fff;
}
.cta-card li svg { width: 18px; height: 18px; color: var(--scan-blue); flex-shrink: 0; }

/* ════════════════════════════════════════════ FOOTER ════════════════════════════════════════════ */
footer {
  background: var(--navy); color: rgba(255,255,255,.7);
  padding: 80px 0 36px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px; margin-bottom: 56px;

}
.foot-brand-name {
  font-family: var(--fh); font-weight: 800; font-size: 1.25rem;
  text-transform: none; color: #fff; letter-spacing: .02em;
  margin-bottom: 16px;
}
.foot-brand p { font-size: .92rem; color: rgba(255,255,255,.6); margin-bottom: 18px; line-height: 1.7; }
.foot-col h5 {
  font-family: var(--fh); font-weight: 800; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .14em; color: #fff;
  margin-bottom: 18px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 12px; }
.foot-col a { font-size: .9rem; color: rgba(255,255,255,.65); transition: color .2s; }
.foot-col a:hover { color: var(--scan-blue); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: rgba(255,255,255,.55); }
.foot-links a:hover { color: #fff; }

/* Footer accordions: desktop keeps columns open, mobile/tablet collapses them */
.foot-col summary { list-style: none; cursor: default; }
.foot-col summary::-webkit-details-marker { display: none; }
.foot-col summary::marker { display: none; }


/* ════════════════════════════════════════════ USER LOCATION ════════════════════════════════════════════ */
/* Pulsing user-location pin on map */
.user-pin-wrap { background: transparent !important; border: none !important; box-shadow: none !important; }
.user-pin {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--sky); border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(16,140,226,.6);
  position: relative;
}
.user-pin-ring {
  position: absolute; top: 50%; left: 50%;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(16,140,226,.35);
  animation: ring-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ring-pulse {
  0%   { transform: translate(-50%,-50%) scale(.5); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1.8); opacity: 0; }
}
/* Distance badge on cards */
.dist-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ice-tint); color: var(--cobalt);
  padding: 3px 10px; border-radius: 999px;
  font-family: var(--fh); font-size: .7rem; font-weight: 700;
  white-space: nowrap; border: 1px solid rgba(20,93,160,.1);
}
/* Location hint below hero search */
.location-hint { margin-top: 14px; min-height: 26px; }
.location-hint button {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.72); background: transparent;
  font-family: var(--fh); font-size: .78rem; font-weight: 600;
  letter-spacing: .03em; padding: 0; border: none; cursor: pointer;
  transition: color .2s;
}
.location-hint button:hover { color: rgba(255,255,255,.95); }
.location-hint button svg { width: 14px; height: 14px; flex-shrink: 0; }
.loc-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--fh); font-size: .78rem; font-weight: 600;
  color: var(--scan-blue);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Search mode switch: near me ⇆ by address */
.mode-switch {
  display: inline-flex; gap: 4px; margin-bottom: 14px; padding: 4px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
}
.mode-switch button {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--fh); font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  color: rgba(255,255,255,.7); background: transparent; border: none;
  padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.mode-switch button svg { width: 14px; height: 14px; flex-shrink: 0; }
.mode-switch button:hover { color: #fff; }
.mode-switch button[aria-selected="true"] { background: #fff; color: var(--cobalt); }
.loc-summary {
  display: none; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px; padding: 16px 20px;
}
.loc-summary.show { display: flex; }
.loc-summary .txt {
  font-family: var(--fh); font-size: .88rem; font-weight: 600; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
}
.loc-summary .txt svg { width: 16px; height: 16px; color: var(--scan-blue); }
.loc-summary .lnk {
  font-family: var(--fh); font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  color: rgba(255,255,255,.75); background: none; border: none; cursor: pointer;
  text-decoration: underline; padding: 0;
}
.loc-summary .lnk:hover { color: #fff; }
@media (max-width: 600px) {
  .mode-switch { width: 100%; }
  .mode-switch button { flex: 1; justify-content: center; padding: 9px 8px; }
}


/* ════════════════════════════════════════════ REVEAL ════════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: all .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 1180px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: .76rem; }
  .why-grid { gap: 40px; }
}
@media (max-width: 1024px) {
  .nav-links, .nav-right .btn { display: none; }
  .burger { display: flex; }
  /* Footer accordion on tablet / mobile */
  .foot-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 36px; }
  .foot-brand { padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .foot-col { border-bottom: 1px solid rgba(255,255,255,.1); padding: 16px 0; }
  .foot-col summary {
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    -webkit-tap-highlight-color: transparent;
  }
  .foot-col summary::after {
    content: '+';
    font-family: var(--fh); font-size: 1.2rem; font-weight: 600;
    color: var(--scan-blue); line-height: 1; margin-left: 12px;
  }
  .foot-col[open] summary::after { content: '−'; }
  .foot-col h5 { margin-bottom: 0; }
  .foot-col ul { gap: 10px; padding-top: 14px; }
  .foot-col a { font-size: .88rem; }
  .foot-bottom { margin-top: 28px; }
}

@media (max-width: 900px) {
  .container, .nav-inner, .hero-inner { padding-left: 20px; padding-right: 20px; }
  .section { padding: 80px 0; }
  #hero { padding: 120px 0 60px; }
  #results { padding: 60px 0 80px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat:nth-child(2)::after { display: none; }
  .chiro-card { grid-template-columns: 56px 1fr; padding: 14px 16px; gap: 14px; align-items: start; }
  .chiro-avatar { width: 56px; height: 56px; }
  .chiro-card .chiro-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; gap: 8px; }
  .chiro-cta .btn { width: auto; flex: 1; }
  .tech-cards-row { grid-template-columns: 1fr; }
  
  .why-grid, .cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-photo { aspect-ratio: 4/3; }
  .map-panel { aspect-ratio: 4/3; border-width: 6px; }
  .hero-sub { font-size: 1rem; margin-bottom: 28px; }
}
@media (max-width: 780px) {
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-panel .search-field:nth-of-type(3) { grid-column: 1 / -1; }
  .search-panel .btn-primary { grid-column: 1 / -1; }
  .results-top { flex-direction: column; align-items: flex-start; }
  .map-panel { aspect-ratio: 1/1; }
  .map-cta .btn { padding: 11px 18px; font-size: .74rem; }
}
@media (max-width: 600px) {
  html { -webkit-text-size-adjust: 100%; }
  .container, .nav-inner, .hero-inner { padding-left: 16px; padding-right: 16px; }
  .section { padding: 60px 0; }
  #hero { padding: 100px 0 50px; }
  .brand { font-size: 1rem; }
  .brand sup { display: none; }
  .search-panel { grid-template-columns: 1fr; padding: 12px; gap: 8px; }
  .search-panel .btn-primary { grid-column: 1 / -1; height: 54px; }
  .search-field { min-height: 54px; padding: 10px 14px; }
  .custom-select-menu { position: fixed; top: auto; right: 10px; bottom: 10px; left: 10px; width: auto; max-height: min(72vh, 560px); border-radius: 18px; padding-bottom: 12px; }
  .custom-select-menu::after { content: ''; display: block; width: 42px; height: 4px; margin: 10px auto 0; border-radius: 999px; background: rgba(105,121,136,.26); }
  .custom-select-options { max-height: min(54vh, 390px); border-radius: 0 0 12px 12px; }
  .custom-select-option { min-height: 46px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .stat { padding: 0 12px; }
  .chiro-avatar { width: 48px; height: 48px; border-radius: 12px; }
  .chiro-card { grid-template-columns: 48px 1fr; padding: 13px; gap: 12px; }
  .chiro-name { font-size: 1.05rem; }
  .chiro-meta { display: grid; gap: 4px; font-size: .76rem; }
  .chiro-cta { flex-direction: column !important; }
  .chiro-cta .btn { width: 100% !important; }
  .foot-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .hero-h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hero-sig { font-size: 1.35rem; margin-bottom: 18px; }
  .hero-chip { font-size: .68rem; padding: 7px 14px; }
  .map-panel { aspect-ratio: 4/5; border-radius: 18px; border-width: 4px; }
  .map-overlay { font-size: .68rem; padding: 7px 11px; top: 10px; right: 10px; max-width: calc(100% - 20px); }
  .map-cta { bottom: 28px; right: 10px; }
  .map-cta .btn { padding: 10px 14px; font-size: .7rem; letter-spacing: .06em; }
  .btn-lg { padding: 14px 28px; font-size: .85rem; }
  .cta-card { padding: 28px 22px; }
  .pagination { flex-wrap: wrap; }
}

/* ── Error page ─────────────────────────────────────────── */
.error-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px;
  font-family: var(--fb);
  color: var(--graphite);
}
.error-page h1 {
  font-family: var(--fh);
  font-size: clamp(28px, 5vw, 40px);
  color: var(--cobalt);
  margin: 0 0 16px;
}
.error-page p { line-height: 1.65; margin: 0 0 20px; }
.error-page a { color: var(--sky); }
.error-page .error-ref { color: var(--gray); font-size: 14px; }
