/* FutureSearch Maps-owned local preview surface, 2026-08-29. */
:root {
  color-scheme: light;
  --map-ink: var(--fs-ink, #102a37);
  --map-muted: var(--fs-ink-soft, #405965);
  --map-navy: var(--fs-navy-deep, #082333);
  --map-teal: var(--fs-teal, #0b7076);
  --map-teal-bright: var(--fs-teal-bright, #38c1c3);
  --map-teal-soft: var(--fs-teal-soft, #dff3f0);
  --map-paper: var(--fs-paper, #fffdf8);
  --map-canvas: var(--fs-canvas, #f3f5f0);
  --map-surface: var(--fs-surface, #ffffff);
  --map-line: var(--fs-line, #cbd8d5);
  --map-line-strong: var(--fs-line-strong, #9fb8b4);
  --map-success: var(--fs-success, #216e4a);
  --map-success-soft: var(--fs-success-soft, #e7f5eb);
  --map-warning: var(--fs-gold, #a96f11);
  --map-warning-soft: var(--fs-gold-soft, #fff3d7);
  --map-danger: var(--fs-danger, #a23b32);
  --map-danger-soft: var(--fs-danger-soft, #fff0ed);
  --map-focus: var(--fs-focus, #f0b84b);
  --map-shadow: 0 18px 48px rgba(8, 35, 51, 0.1);
  --map-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--map-canvas);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 90% 6%, rgba(56, 193, 195, 0.11), transparent 28rem),
    var(--map-canvas);
  color: var(--map-ink);
  font-family: "Atkinson Hyperlegible", Aptos, "Segoe UI", system-ui, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: #075e6b; text-underline-offset: 0.18em; }
a:hover { color: var(--map-navy); }

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 3px solid var(--map-focus);
  outline-offset: 3px;
}

.map-skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  transform: translateY(-180%);
  border-radius: 6px;
  background: #fff;
  color: var(--map-navy);
  font-weight: 800;
}

.map-skip-link:focus { transform: translateY(0); }

html:not([data-futuresearch-ui]) body > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 14px max(24px, calc((100vw - 1184px) / 2));
  background: var(--map-navy);
  color: #fff;
}

html:not([data-futuresearch-ui]) body > header .brand {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 850;
}

html:not([data-futuresearch-ui]) body > header nav {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

html:not([data-futuresearch-ui]) body > header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #e5f1ef;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

html:not([data-futuresearch-ui]) body > header nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -3px 0 var(--map-teal-bright);
  color: #fff;
}

main {
  width: min(1184px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0 84px;
}

.map-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  margin-bottom: 42px;
}

.map-eyebrow,
.map-section-label {
  margin: 0 0 7px;
  color: var(--map-teal);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.map-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--map-navy);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.map-lede {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--map-muted);
  font-size: clamp(19px, 2.3vw, 23px);
  line-height: 1.55;
}

.map-trust-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--map-line);
  border-radius: var(--map-radius);
  background: rgba(255, 255, 255, 0.7);
}

.map-trust-card__icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--map-teal-soft);
  color: var(--map-teal);
  font-size: 25px;
  font-weight: 900;
}

.map-trust-card strong,
.map-trust-card span { display: block; }
.map-trust-card strong { margin-bottom: 2px; color: var(--map-navy); }
.map-trust-card div span { color: var(--map-muted); font-size: 15px; line-height: 1.45; }

.map-coverage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 26px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #a9cec6;
  border-left: 6px solid var(--map-teal);
  border-radius: var(--map-radius);
  background: linear-gradient(130deg, #f9fffc, var(--map-teal-soft));
}

.map-coverage__copy > p:not(.map-section-label) { margin: 0; }
.map-coverage__copy #coverage-summary { color: var(--map-navy); font-size: 19px; font-weight: 780; }
.map-coverage__rule { margin-top: 10px !important; color: var(--map-muted); font-size: 15px; line-height: 1.5; }

.map-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
}

.map-stat-grid div {
  min-width: 0;
  padding: 12px 8px;
  border-left: 1px solid #a9cec6;
  text-align: center;
}

.map-stat-grid dt { color: var(--map-navy); font-size: 28px; font-weight: 880; line-height: 1; }
.map-stat-grid dd { margin: 7px 0 0; color: var(--map-muted); font-size: 12px; font-weight: 750; line-height: 1.25; }

.map-controls {
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid var(--map-line);
  border-radius: var(--map-radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(8, 35, 51, 0.05);
}

.map-controls__heading,
.map-results__heading,
.map-overview__heading,
.map-filter-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.map-controls h2,
.map-results h2,
.map-overview h2,
.map-provenance h2 {
  margin: 0;
  color: var(--map-navy);
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.map-reset,
.map-area-clear,
.map-state button {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--map-line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--map-teal);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.map-reset:hover,
.map-area-clear:hover,
.map-state button:hover { border-color: var(--map-teal); background: var(--map-teal-soft); }

.map-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(180px, 0.7fr) minmax(160px, 0.6fr);
  gap: 12px;
  margin-top: 18px;
}

.map-field { display: grid; gap: 6px; min-width: 0; }
.map-field span { color: var(--map-ink); font-size: 14px; font-weight: 800; }
.map-field :where(input, select) {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--map-line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--map-ink);
  font: inherit;
  font-size: 16px;
}

.map-filter-status { align-items: center; margin-top: 14px; }
.map-filter-status p { margin: 0; color: var(--map-muted); font-size: 15px; font-weight: 750; }

.map-discovery-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(430px, 7fr);
  gap: 26px;
  align-items: start;
}

.map-results,
.map-overview {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--map-line);
  border-radius: var(--map-radius);
  background: rgba(255, 255, 255, 0.88);
}

.map-source-key,
.map-overview__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #a9d1bb;
  border-radius: 999px;
  background: var(--map-success-soft);
  color: #165438;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.2;
}

.map-source-key span { color: var(--map-success); font-size: 10px; }
.map-overview__badge { border-color: #b5c8d4; background: #edf5f7; color: #285466; }

.map-result-list { display: grid; gap: 12px; margin-top: 18px; }

.map-place-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--map-line);
  border-radius: 10px;
  background: var(--map-surface);
  box-shadow: 0 1px 2px rgba(8, 35, 51, 0.06);
}

.map-place-card[aria-current="true"] {
  border-color: var(--map-teal);
  box-shadow: 0 0 0 3px rgba(11, 112, 118, 0.12);
}

.map-place-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.map-place-card__top > div { min-width: 0; }
.map-place-card__category { margin: 0 0 4px; color: var(--map-teal); font-size: 13px; font-weight: 820; text-transform: uppercase; letter-spacing: 0.04em; }
.map-place-card h3 { margin: 0; color: var(--map-navy); font-size: 21px; line-height: 1.25; }
.map-place-card__branch { margin: 2px 0 0; color: var(--map-muted); font-size: 15px; font-weight: 700; }

.map-badge-stack { display: flex; flex: 0 0 auto; flex-direction: column; gap: 5px; align-items: flex-end; }
.map-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}
.map-badge--verified { border-color: #a9d1bb; background: var(--map-success-soft); color: #165438; }
.map-badge--area { border-color: #e0c17a; background: var(--map-warning-soft); color: #73500f; }

.map-place-card address {
  margin: 15px 0 0;
  padding: 12px 0;
  border-block: 1px solid var(--map-line);
  color: var(--map-ink);
  font-style: normal;
  line-height: 1.45;
}

.map-place-card address strong,
.map-place-card address span { display: block; }
.map-place-card address span { margin-top: 3px; color: var(--map-muted); font-size: 14px; }

.map-place-card__evidence { margin: 13px 0 0; color: var(--map-muted); font-size: 14px; line-height: 1.5; }
.map-place-card__checked { display: block; margin-top: 5px; color: #61747c; font-size: 12px; }

.map-place-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.map-place-card__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.map-place-card__actions a:first-child { background: var(--map-teal); color: #fff; text-decoration: none; }
.map-place-card__actions a:not(:first-child) { border: 1px solid var(--map-line); }

.map-state {
  margin-top: 18px;
  padding: 30px 22px;
  border: 1px dashed var(--map-line-strong);
  border-radius: 10px;
  background: #fbfdfb;
  text-align: center;
}

.map-state--error { border-color: #d9aaa4; background: var(--map-danger-soft); }
.map-state__mark { margin: 0; color: var(--map-teal); font-size: 34px; font-weight: 900; }
.map-state h3 { margin: 4px 0 6px; color: var(--map-navy); font-size: 21px; }
.map-state p:not(.map-state__mark) { max-width: 420px; margin: 0 auto 15px; color: var(--map-muted); font-size: 15px; }

.map-overview {
  position: sticky;
  top: 20px;
  overflow: hidden;
}

.map-overview__note { margin: 12px 0 17px; color: var(--map-muted); font-size: 15px; }

.map-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #b5ccc6;
  border-radius: 12px;
  background:
    radial-gradient(circle at 35% 24%, rgba(255,255,255,0.94), rgba(222,243,239,0.6) 52%, rgba(181,215,210,0.34)),
    #e8f4ef;
}

.map-stage::before,
.map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-stage::before {
  background-image:
    linear-gradient(rgba(11, 112, 118, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 112, 118, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-stage::after {
  inset: 14px;
  border: 1px solid rgba(11, 112, 118, 0.14);
  border-radius: 8px;
}

.map-stage__island {
  position: absolute;
  z-index: 1;
  top: 28px;
  bottom: 48px;
  left: 50%;
  width: min(72%, 420px);
  height: calc(100% - 76px);
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 18px rgba(8, 35, 51, 0.08));
}

.map-stage__island > path:first-of-type { fill: #fefdf7; stroke: #7daaa1; stroke-width: 5; }
.map-stage__inner { fill: none; stroke: #c8dbd6; stroke-dasharray: 5 10; stroke-width: 2; }

.map-stage__markers { position: absolute; z-index: 4; inset: 0; }

.map-marker {
  position: absolute;
  left: var(--map-x);
  top: var(--map-y);
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  transform: translate(-50%, -50%);
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  background: var(--map-teal) !important;
  color: #fff !important;
  font: 850 13px/1 system-ui, sans-serif !important;
  box-shadow: 0 5px 16px rgba(8, 35, 51, 0.24);
  cursor: pointer;
}

.map-marker:hover,
.map-marker[aria-pressed="true"] { background: var(--map-navy) !important; transform: translate(-50%, -50%) scale(1.08); }

.map-marker__label {
  position: absolute;
  z-index: 5;
  left: var(--map-x);
  top: calc(var(--map-y) + 27px);
  max-width: 112px;
  transform: translateX(-50%);
  color: var(--map-navy);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px #fff, 1px 0 #fff, 0 -1px #fff, -1px 0 #fff;
  pointer-events: none;
}

.map-stage__legend {
  position: absolute;
  z-index: 6;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(125, 170, 161, 0.6);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--map-muted);
  font-size: 11px;
  font-weight: 760;
}

.map-stage__legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-stage__legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--map-teal); }
.map-stage__legend i.is-active { background: var(--map-navy); }

.map-overview__boundary {
  margin-top: 14px;
  padding: 13px 14px;
  border-left: 4px solid var(--map-warning);
  background: var(--map-warning-soft);
}

.map-overview__boundary strong { color: #62430d; }
.map-overview__boundary p { margin: 3px 0 0; color: #735b2e; font-size: 13px; line-height: 1.45; }

.map-provenance {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 44px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 4px solid var(--map-navy);
}

.map-provenance__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.map-provenance__grid > div { padding-top: 12px; border-top: 1px solid var(--map-line-strong); }
.map-provenance h3 { margin: 0; color: var(--map-navy); font-size: 17px; }
.map-provenance__grid p { margin: 7px 0 0; color: var(--map-muted); font-size: 14px; line-height: 1.55; }

html:not([data-futuresearch-ui]) body > footer {
  width: 100%;
  padding: 22px max(24px, calc((100vw - 1184px) / 2));
  border-top: 1px solid var(--map-line);
  background: #e9efeb;
  color: var(--map-muted);
  font-size: 14px;
}

[hidden] { display: none !important; }

@media (max-width: 1040px) {
  .map-hero { grid-template-columns: 1fr; gap: 24px; }
  .map-trust-card { max-width: 600px; }
  .map-coverage { grid-template-columns: 1fr; }
  .map-discovery-layout { grid-template-columns: 1fr; }
  .map-overview { order: -1; position: static; }
  .map-stage { min-height: 510px; }
  .map-provenance { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  html:not([data-futuresearch-ui]) body > header { align-items: flex-start; flex-direction: column; padding: 11px 16px; }
  html:not([data-futuresearch-ui]) body > header nav { width: 100%; }
  main { width: min(100% - 20px, 1184px); padding-top: 28px; }
  .map-hero h1 { font-size: clamp(38px, 11.2vw, 52px); }
  .map-lede { font-size: 18px; }
  .map-coverage,
  .map-controls,
  .map-results,
  .map-overview { padding: 17px; }
  .map-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .map-stat-grid div:nth-child(3) { border-top: 1px solid #a9cec6; }
  .map-stat-grid div:nth-child(4) { border-top: 1px solid #a9cec6; }
  .map-filter-grid { grid-template-columns: 1fr; }
  .map-controls__heading,
  .map-results__heading,
  .map-overview__heading { align-items: flex-start; flex-direction: column; }
  .map-reset { width: 100%; }
  .map-discovery-layout { gap: 16px; }
  .map-stage { min-height: 480px; }
  .map-stage__island { width: 84%; }
  .map-provenance { margin-top: 36px; }
  .map-provenance__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .map-place-card__top { flex-direction: column; }
  .map-badge-stack { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .map-place-card__actions { flex-direction: column; }
  .map-place-card__actions a { width: 100%; justify-content: center; }
  .map-stage { min-height: 560px; }
  .map-stage__legend { left: 10px; right: 10px; justify-content: center; }
  .map-marker__label { max-width: 76px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .map-controls, .map-skip-link, .map-place-card__actions { display: none !important; }
  .map-discovery-layout { grid-template-columns: 1fr; }
  .map-overview { break-before: page; }
}

/* Interactive Maps MVP. These overrides are deliberately route-scoped. */
#map-main { padding: 28px 0 60px !important; }
#map-main .map-hero { gap: 28px; align-items: center; margin-bottom: 22px; }
#map-main .map-hero h1 { margin: 0 0 10px !important; font-size: clamp(30px, 3.4vw, 44px) !important; line-height: 1.12 !important; }
#map-main .map-lede { margin: 0; font-size: 17px; line-height: 1.5; }
.map-jump-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 16px; font-weight: 650; }
#map-main .map-eyebrow { font-size: 12px; }
#map-main .map-section-label { margin: 0 0 5px !important; font-size: 12px; }
#map-main .map-trust-card { padding: 14px; gap: 10px; }
#map-main .map-trust-card div span { font-size: 13px; }
#map-main .map-coverage { gap: 20px; margin-bottom: 18px; padding: 16px 20px; }
#map-main #coverage-summary { font-size: 16px; line-height: 1.4; }
#map-main .map-coverage__rule { margin-top: 7px !important; font-size: 12px; }
#map-main .map-stat-grid dt { font-size: 26px; }
#map-main .map-stat-grid dd { font-size: 11px; }
#map-main .map-controls { margin-bottom: 18px; padding: 16px 20px; }
#map-main .map-controls h2,
#map-main .map-results h2,
#map-main .map-overview h2,
#map-main .map-provenance h2 { margin: 0 !important; font-size: 22px !important; line-height: 1.2 !important; }
#map-main .map-filter-grid { margin-top: 12px; }
#map-main .map-filter-status { margin-top: 9px; }
#map-main .map-filter-status p { font-size: 13px; }
#map-main .map-discovery-layout { gap: 20px; }
#map-main .map-results,
#map-main .map-overview { padding: 16px; }
#map-main .map-results__heading { gap: 10px; }
#map-main .map-source-key { max-width: 138px; font-size: 10px; }
#map-main .map-result-list { max-height: 760px; overflow-y: auto; padding: 3px 5px 3px 3px; margin-top: 14px; scrollbar-gutter: stable; }
#map-main .map-place-card { padding: 14px; }
#map-main .map-place-card[data-selected="true"] { border-color: var(--map-teal); box-shadow: 0 0 0 2px var(--map-teal-soft); }
#map-main .map-place-card h3 { margin: 0 !important; font-size: 19px !important; line-height: 1.25 !important; }
#map-main .map-place-card__category { margin-bottom: 4px; font-size: 11px; }
#map-main .map-place-card__branch { margin-top: 3px; font-size: 13px; }
#map-main .map-place-card__top { gap: 9px; }
#map-main .map-badge { font-size: 10px; white-space: normal; }
#map-main .map-badge-stack { max-width: 138px; }
#map-main .map-place-card address { margin-top: 10px; padding: 10px 0; font-size: 15px; }
#map-main .map-place-card address span { font-size: 12px; }
#map-main .map-place-card__checked { margin: 9px 0 0; font-size: 11px; }
#map-main .map-place-card__accuracy { margin: 8px 0 0; color: var(--map-muted); font-size: 12px; line-height: 1.45; }
#map-main .map-place-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
#map-main .map-place-card__actions :where(a, button) { width: 100%; min-height: 48px !important; padding: 8px 10px !important; font-size: 16px !important; font-weight: 650 !important; text-align: center; }
#map-main .map-record-details { margin-top: 11px; border-top: 1px solid var(--map-line); padding-top: 8px; font-size: 12px; }
#map-main .map-record-details summary { min-height: 44px; color: var(--map-teal); cursor: pointer; font-size: 16px; font-weight: 650; }
#map-main .map-record-details p { margin: 6px 0; font-size: 14px; line-height: 1.5; }
#map-main .map-record-number { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 7px; border-radius: 50%; background: var(--map-teal); color: #fff; font: 750 12px/1 var(--fs-font-body, sans-serif); vertical-align: middle; }
#map-main .map-overview { top: 14px; }
.map-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; }
.map-map-toolbar p { margin: 0; color: var(--map-muted); font-size: 12px; line-height: 1.4; }
#map-main .map-map-toolbar button { flex: 0 0 auto; min-height: 48px !important; padding: 8px 10px !important; font-size: 16px !important; font-weight: 650 !important; }
.map-canvas-wrap { position: relative; overflow: hidden; border: 1px solid var(--map-line-strong); border-radius: 10px; }
.map-canvas { width: 100%; height: 560px; background: #dce9e6; }
.map-canvas-message { position: absolute; z-index: 500; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 26px; background: #eef5f1; text-align: center; }
#map-main .map-canvas-message h3 { margin: 0 !important; font-size: 21px !important; }
.map-canvas-message p { max-width: 390px; margin: 0; color: var(--map-muted); font-size: 14px; }
.map-canvas-message code { max-width: 100%; overflow-wrap: anywhere; font-size: 12px; }
.map-provider-status { margin: 8px 0 0; color: var(--map-muted); font-size: 11px; line-height: 1.45; }
.map-provider-status[data-state="warning"] { color: #7b5215; }
#map-main .map-overview__note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; }
#map-main .map-overview__boundary { margin-top: 12px; padding: 11px 12px; font-size: 12px; }
#map-main .map-overview__boundary p { font-size: 12px; }
.map-canvas .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; font-size: 26px; color: var(--map-navy); }
.map-canvas .leaflet-control-attribution { max-width: calc(100% - 12px); padding: 3px 6px; background: rgba(255,255,255,0.94); color: #29424b; font: 11px/1.4 var(--fs-font-body, sans-serif); }
.map-canvas .leaflet-control-attribution a { color: #075e6b; text-decoration: underline; }
.map-canvas .leaflet-control-container { font-family: var(--fs-font-body, sans-serif); }
.map-pin-shell { border: 0; background: transparent; }
.map-pin-number { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border: 3px solid #fff; border-radius: 50% 50% 50% 5px; transform: rotate(-45deg); background: var(--map-teal); color: #fff; box-shadow: 0 3px 10px rgba(8,35,51,0.3); }
.map-pin-number > span { transform: rotate(45deg); font: 800 14px/1 var(--fs-font-body, sans-serif); }
.map-pin-shell.is-selected .map-pin-number { background: var(--map-navy); outline: 3px solid var(--map-focus); outline-offset: 2px; }
.map-pin-shell:focus-visible { outline: 0; }
.map-pin-shell:focus-visible .map-pin-number { outline: 3px solid var(--map-focus); outline-offset: 3px; }
#map-main .map-popup h3 { margin: 0 20px 6px 0 !important; font-size: 18px !important; }
#map-main .map-popup p { margin: 7px 0 !important; font-size: 13px; line-height: 1.4; }
#map-main .map-popup .map-popup__accuracy { color: #78500f; font-size: 12px; }
#map-main .map-popup button { min-height: 48px !important; margin-top: 8px; padding: 8px 12px !important; font-size: 16px !important; font-weight: 650 !important; }
.map-canvas .leaflet-popup-content { margin: 16px; }
.map-canvas .leaflet-popup-content-wrapper { border-radius: 10px; }
.map-canvas a.leaflet-popup-close-button { width: 44px; height: 44px; font-size: 25px; line-height: 44px; }
#map-main .map-field { min-width: 0; }
#map-main .map-field,
#map-main .map-field > span { font-size: 16px !important; font-weight: 650 !important; }
#map-main .map-field :where(input, select) { min-width: 0; font-size: 16px !important; font-family: var(--fs-font-body, sans-serif); }
#map-main .map-place-card__accuracy,
#map-main .map-overview__note,
#map-main .map-overview__boundary p { font-size: 14px; }
#map-main .map-place-card__checked,
.map-provider-status,
.map-map-toolbar p { font-size: 13px; }
#map-main .map-provenance { margin-top: 30px; padding-top: 22px; }
#map-main .map-provenance h3 { margin: 0 0 6px !important; font-size: 16px !important; }

@media (max-width: 1040px) {
  #map-main .map-hero { grid-template-columns: 1fr; gap: 14px; }
  #map-main .map-trust-card { max-width: none; }
  #map-main .map-coverage { grid-template-columns: 1fr; gap: 12px; }
  #map-main .map-overview { order: -1; position: static; }
  #map-main .map-result-list { max-height: none; overflow: visible; padding: 0; }
  .map-canvas { height: 520px; }
}

@media (max-width: 760px) {
  #map-main { padding-top: 20px !important; }
  #map-main .map-hero h1 { font-size: 32px !important; }
  #map-main .map-lede { font-size: 15px; }
  #map-main .map-coverage { padding: 14px; }
  #map-main .map-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #map-main .map-stat-grid div { padding: 6px 3px; border-top: 0; }
  #map-main .map-stat-grid dt { font-size: 23px; }
  #map-main .map-stat-grid dd { font-size: 10px; }
  #map-main .map-controls { padding: 14px; }
  #map-main .map-controls__heading { flex-direction: row; align-items: center; }
  #map-main .map-controls h2 { font-size: 18px !important; }
  #map-main .map-reset { width: auto; min-height: 48px !important; padding: 8px 10px !important; font-size: 16px !important; font-weight: 650 !important; }
  #map-main .map-filter-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #map-main .map-field--search { grid-column: 1 / -1; }
  #map-main .map-field :where(input, select) { font-size: 16px; }
  #map-main .map-results,
  #map-main .map-overview { padding: 13px; }
  #map-main .map-overview__heading { flex-direction: row; gap: 10px; }
  #map-main .map-overview h2 { font-size: 20px !important; }
  #map-main .map-overview__badge { max-width: 94px; font-size: 10px; text-align: center; }
  .map-map-toolbar { align-items: stretch; }
  .map-canvas { height: 520px; }
  #map-main .map-place-card__top { flex-direction: row; }
  #map-main .map-badge-stack { max-width: 120px; align-items: flex-end; flex-direction: column; }
  #map-main .map-place-card__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  #map-main .map-place-card__top { flex-direction: column; }
  #map-main .map-badge-stack { max-width: none; align-items: flex-start; flex-direction: row; }
  .map-map-toolbar { flex-direction: column; }
}

@media print {
  .map-canvas, .map-map-toolbar, .map-provider-status { display: none !important; }
  #map-main .map-result-list { max-height: none; overflow: visible; }
}
