@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap");

:root {
  --ink: #101820;
  --foam: #f3f6f4;
  --sea: #1a5f6c;
  --sea-deep: #0d3a44;
  --buoy: #e4572e;
  --chart: #2f9e8a;
  --line: rgba(16, 24, 32, 0.12);
  --panel: rgba(250, 252, 251, 0.94);
  --shadow: 0 18px 50px rgba(13, 58, 68, 0.18);
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1180px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #e8efeb;
  font-family: var(--font-body);
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-deep); }
button, input, select { font: inherit; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus {
  left: 12px; top: 12px; z-index: 50;
  background: #fff; padding: 8px 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 252, 251, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.staging-banner {
  background: var(--sea-deep);
  color: #dff5ef;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 5px 12px;
}

.bar {
  max-width: none;
  margin: 0;
  padding: 12px 28px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer .bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: nowrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--sea); }
.nav-links a.nav-cta {
  background: var(--buoy);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}
.nav-links a.nav-cta:hover { color: #fff; filter: brightness(1.05); }

/* Marketing home hero — no live map */
.marketing-hero {
  position: relative;
  min-height: calc(100vh - 96px);
  min-height: calc(100dvh - 96px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--sea-deep);
  color: var(--foam);
}
.marketing-hero-media {
  position: absolute;
  inset: 0;
}
.marketing-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 45%;
  filter: saturate(0.9) contrast(1.04) brightness(0.92);
}
.marketing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 58, 68, 0.42) 0%, rgba(13, 58, 68, 0.62) 48%, rgba(13, 58, 68, 0.92) 100%),
    linear-gradient(105deg, rgba(16, 24, 32, 0.72) 0%, rgba(16, 24, 32, 0.35) 42%, transparent 68%);
  pointer-events: none;
}
.marketing-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: clamp(56px, 12vh, 110px) 28px clamp(64px, 10vh, 88px);
}
.marketing-hero .brand-mark {
  font-size: clamp(2.2rem, 6.2vw, 3.8rem);
  line-height: 0.95;
  margin: 0 0 12px;
}
.marketing-hero .hero-lede {
  max-width: 34ch;
  font-size: 1.12rem;
  color: rgba(243, 246, 244, 0.94);
}
.marketing-hero .cta-row { margin-top: 22px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.feature-link {
  display: grid;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 0 0 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  background: var(--sea-deep);
}
.feature-thumb--phone {
  object-fit: contain;
  object-position: center top;
  background:
    linear-gradient(160deg, #0d3a44 0%, #1a5f6c 100%);
  padding: 10px 0 0;
}
.feature-link strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 16px 4px;
}
.feature-link span {
  color: #5b6b66;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 16px;
}

.chart-page .site-footer { display: none; }
.chart-main { margin: 0; }
.panel-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.panel-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #5b6b66;
}

.band-wrap {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.band-wrap label { margin-top: 8px; }
.band-wrap input[type="range"] {
  width: 100%;
  margin-top: 4px;
}
.unit-switch {
  display: inline-flex;
  gap: 4px;
  margin: 4px 0 8px;
}
.unit-switch button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}
.unit-switch button.active {
  background: var(--sea-deep);
  border-color: var(--sea-deep);
  color: #fff;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
}
.sst-day-wrap.is-disabled .btn-block {
  opacity: 0.55;
  pointer-events: none;
}
.site-header .bar { min-height: 56px; }

.hero-map {
  position: relative;
  height: calc(100vh - 96px);
  height: calc(100dvh - 96px);
  min-height: 560px;
  overflow: hidden;
  background: #0d3a44;
}

.chart-desk {
  height: calc(100vh - 96px);
  height: calc(100dvh - 96px);
}

.hero-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.42) 0%, rgba(16, 24, 32, 0.08) 32%, transparent 52%),
    linear-gradient(90deg, rgba(16, 24, 32, 0.28) 0%, transparent 36%);
}

.map-shell,
#map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-copy {
  position: absolute;
  z-index: 5;
  top: 28px;
  left: 28px;
  width: min(430px, calc(100% - 460px));
  pointer-events: none;
}
.hero-copy * { pointer-events: auto; }

.hero-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 246, 244, 0.78);
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.15rem, 3.1vw, 2.85rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin: 0;
  color: var(--foam);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
  max-width: 100%;
}

.hero-lede {
  margin: 14px 0 0;
  max-width: 28ch;
  color: rgba(243, 246, 244, 0.94);
  font-size: 1.02rem;
  line-height: 1.45;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 5px;
  padding: 11px 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary { background: var(--buoy); color: #fff; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: rgba(16, 24, 32, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(16, 24, 32, 0.62); }

.map-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
}
.map-crosshair::before,
.map-crosshair::after {
  content: "";
  position: absolute;
  background: #fff;
  box-shadow: 0 0 0 1.4px rgba(0, 0, 0, 0.75);
}
.map-crosshair::before {
  left: 2px; right: 2px; top: 50%; height: 2.4px; margin-top: -1.2px;
}
.map-crosshair::after {
  top: 2px; bottom: 2px; left: 50%; width: 2.4px; margin-left: -1.2px;
}

.crosshair-hud {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: calc(50% + 28px);
  transform: translateX(-50%);
  display: grid;
  gap: 2px;
  justify-items: center;
  pointer-events: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.78);
  color: #f3f6f4;
  border: 1px solid rgba(243, 246, 244, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  min-width: 9.5rem;
  text-align: center;
}
.crosshair-hud strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.crosshair-hud-sample {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.crosshair-hud-sample[hidden] { display: none; }

.map-panel {
  position: absolute;
  z-index: 6;
  top: 16px;
  right: 16px;
  bottom: auto;
  left: auto;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px 14px 16px;
  border-radius: 12px;
  scrollbar-width: thin;
}
.map-panel .panel-help { display: none; }
.map-panel .panel-title { font-size: 1.15rem; margin-bottom: 8px; }
.map-panel .panel-block { margin-top: 10px; padding-top: 10px; }
.more-filters {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.more-filters summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4d5c57;
  list-style: none;
}
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters[open] summary { margin-bottom: 6px; }

.panel-handle {
  display: none;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.18);
  margin: 0 auto 10px;
}

.map-panel h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.map-panel .eyebrow {
  margin: 0 0 6px;
  color: #5b6b66;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.panel-block {
  margin-top: 4px;
}

.panel-block-sst {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.panel-label {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5b6b66;
}

.panel-help {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #5b6b66;
}

.sst-day-wrap.is-disabled {
  opacity: 0.55;
}

.wreck-card:not([hidden]) {
  background: #fff;
  border: 1px solid rgba(228, 87, 46, 0.35);
  border-radius: 8px;
  padding: 12px;
  margin-top: 14px;
  box-shadow: 0 8px 24px rgba(13, 58, 68, 0.08);
}

.wreck-popup .popup-meta {
  margin-top: 4px;
  font-size: 0.84rem;
  color: #3f4d48;
}
.wreck-popup .popup-hint {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sea-deep);
}

/* House ads fill content slots until AdSense is approved — never on the chart. */
.house-ad {
  margin: 36px auto;
  max-width: var(--max);
  padding: 0 28px;
}
.house-ad-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  text-decoration: none;
  color: var(--foam);
  padding: 18px 20px;
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(228, 87, 46, 0.22), transparent 42%),
    linear-gradient(160deg, #0d3a44 0%, #1a5f6c 55%, #164852 100%);
  box-shadow: 0 14px 36px rgba(13, 58, 68, 0.28);
  border: 1px solid rgba(243, 246, 244, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.house-ad-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(13, 58, 68, 0.34);
}
.house-ad-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.house-ad-end {
  display: flex;
  align-items: center;
  gap: 14px;
}
.house-ad-phone {
  width: 64px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}
.house-ad-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.house-ad-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(243, 246, 244, 0.72);
}
.house-ad-copy strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.house-ad-copy span:last-child {
  font-size: 0.92rem;
  color: rgba(243, 246, 244, 0.88);
  line-height: 1.4;
}
.house-ad-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--buoy);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.house-ad--compact .house-ad-inner {
  grid-template-columns: auto 1fr;
}
.house-ad--compact .house-ad-cta {
  grid-column: 2;
  justify-self: start;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .house-ad { padding: 0 20px; }
  .house-ad-inner {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }
  .house-ad-end {
    grid-column: 1 / -1;
  }
  .house-ad-phone { display: none; }
  .house-ad-cta {
    flex: 1;
    text-align: center;
  }
}

.map-panel label {
  display: block;
  margin-top: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #4d5c57;
}

.map-panel select,
.map-panel input[type="search"],
.map-panel input[type="number"] {
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 10px;
  border-radius: 6px;
}

.map-panel select:focus,
.map-panel input:focus {
  outline: 2px solid rgba(26, 95, 108, 0.35);
  outline-offset: 1px;
  border-color: var(--sea);
}

.panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.toggle input { width: auto; accent-color: var(--sea); }

.readout {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}
.readout strong { color: var(--sea-deep); }
.muted { color: #667770; }
.legal-note {
  margin: 8px 0 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #667770;
}
.legal-note a { color: var(--sea-deep); text-decoration: underline; text-underline-offset: 2px; }
.footer-credits {
  margin-top: 6px;
  font-size: 0.72rem;
  color: #7a8680;
  line-height: 1.4;
}
.lang-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.lang-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5b6b66;
  text-decoration: none;
}
.lang-link[aria-current="true"] {
  color: var(--sea-deep);
}
.nav-links.open .lang-switch {
  display: flex;
  width: 100%;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-left: 0;
  border-top: 1px solid var(--line);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.chip.active {
  background: var(--sea);
  color: #fff;
  border-color: var(--sea);
}

.wreck-card[hidden] { display: none !important; }
.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}
.detail-head strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.wreck-card h3 {
  margin: 12px 0 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #5b6b66;
}
.wreck-card p {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.86rem;
}
.detail-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 6px;
  font-size: 0.84rem;
  margin-top: 4px;
}
.detail-row span:first-child { color: #667770; }

.panel-actions,
.wreck-card .panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.panel-actions button,
.wreck-card button {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
}
.panel-actions button.secondary,
.wreck-card button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-map .maplibregl-ctrl-bottom-left {
  bottom: 20px;
  left: 20px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 14px;
}

.section .lede {
  max-width: 46ch;
  font-size: 1.08rem;
  color: #3f4d48;
  margin: 0 0 28px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.media-frame {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0d3a44;
  aspect-ratio: 4 / 3;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pin-stage {
  position: relative;
  min-height: 120vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(47, 158, 138, 0.28), transparent 55%),
    linear-gradient(165deg, #0a2c34 0%, #0d3a44 42%, #164852 100%);
  color: var(--foam);
}
.pin-inner {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}
.pin-card {
  max-width: 720px;
  text-align: center;
}
.pin-phone {
  width: 120px;
  height: auto;
  margin: 0 auto 22px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.pin-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}
.pin-card p {
  margin: 0 auto 22px;
  max-width: 42ch;
  color: rgba(243, 246, 244, 0.9);
}
.stores {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stores img { height: 44px; width: auto; }

.guide-list {
  display: grid;
  gap: 10px;
}
.guide-list a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guide-list a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.guide-list a strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 4px;
}
.guide-list a span { color: #5b6b66; font-size: 0.92rem; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #eef3f0;
  padding: 28px 20px 40px;
}
.site-footer .bar {
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
}
.site-footer p { margin: 0; color: #5b6b66; font-size: 0.9rem; }

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.page h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 28px 0 10px;
}
.page .lede {
  max-width: 48ch;
  color: #3f4d48;
  font-size: 1.08rem;
}

.feature-list {
  margin: 0 0 18px;
  padding-left: 1.15rem;
  color: #3f4d48;
}
.feature-list li { margin: 0.35rem 0; }

.media-frame-phone {
  aspect-ratio: 9 / 16;
  max-width: 320px;
  margin-inline: auto;
}

.site-popup .maplibregl-popup-content {
  background: var(--foam);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
}
.site-popup .maplibregl-popup-close-button { color: var(--ink); }

.maplibregl-ctrl-group {
  border-radius: 8px !important;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 64px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .marketing-hero-copy { padding: 40px 20px 48px; }
  .bar { padding: 10px 16px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    left: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 50;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 12px;
    border-radius: 6px;
  }
  .nav-links a:hover { background: #f2f6f4; }
  .nav-links a.nav-cta { text-align: center; margin-top: 4px; }
  .site-header { position: relative; }
  .site-header .bar { position: relative; }

  .hero-map {
    height: calc(100dvh - 88px);
    min-height: 520px;
  }
  .hero-copy {
    top: 14px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: 280px;
  }
  .brand-mark { font-size: clamp(1.85rem, 7.5vw, 2.25rem); }
  .hero-lede { font-size: 0.92rem; max-width: 26ch; }
  .cta-row .btn { padding: 10px 12px; font-size: 0.9rem; }

  .map-panel {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: 34vh;
    padding-top: 10px;
    border-radius: 14px 14px 10px 10px;
  }
  .map-panel.collapsed {
    max-height: 64px;
    overflow: hidden;
  }
  .panel-handle { display: block; cursor: pointer; }
  .hero-map .maplibregl-ctrl-bottom-left {
    bottom: calc(34vh + 18px);
    left: 12px;
  }
  .hero-map:has(.map-panel.collapsed) .maplibregl-ctrl-bottom-left {
    bottom: 86px;
  }
}

@media (min-width: 1100px) {
  .map-panel { width: 320px; }
  .hero-copy { top: 36px; left: 36px; width: min(430px, calc(100% - 460px)); }
}
