:root {
  --blue: #1d4ed8;
  --blue-hover: #1e40af;
  --blue-dark: #16324f;
  --blue-soft: #e8f2fa;
  --soft: #f3f6f8;
  --ink: #102033;
  --text: #243140;
  --text-muted: #5c6b78;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(16, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Figtree, system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  background: var(--blue-soft);
  padding: 28px 0 12px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--blue-dark);
}

.hero {
  background: var(--blue-soft);
  padding: 48px 0 96px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  margin: 0 auto 22px;
  font-size: clamp(40px, 6vw, 64px);
}

h1 span {
  color: var(--blue);
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.lede {
  max-width: 720px;
  margin: 0 auto 48px;
  color: var(--text-muted);
  font-size: 17px;
}

.map-frame {
  position: relative;
  height: 560px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dbe7f2;
}

.map-frame-static {
  height: 420px;
  margin-top: 36px;
}

#map,
#bases-map {
  width: 100%;
  height: 100%;
}

.info-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(16, 32, 51, 0.8);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.info-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60a5fa;
}

.info-panel.is-live .info-dot {
  background: #34d399;
}

.info-panel.is-error .info-dot {
  background: #f87171;
}

.live-board {
  text-align: left;
  margin-top: 56px;
}

.live-board-title {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 18px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.heli-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.heli-table th,
.heli-table td {
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

.heli-table th {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: #f4f8fc;
  font-weight: 700;
}

.heli-table tbody tr {
  border-top: 1px solid #e8eef4;
}

.heli-table tbody tr:hover {
  background: #f7fbff;
  cursor: pointer;
}

.heli-table .empty-row,
.heli-table .empty-row:hover {
  cursor: default;
  background: transparent;
  color: var(--text-muted);
}

.place-search {
  margin-top: 56px;
  width: 100%;
}

.place-search h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 0 0 20px;
}

.place-search-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
}

.place-search-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.place-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #d5dee8;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  background: var(--white);
}

.place-search input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.place-search button {
  padding: 16px 28px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.place-search button:hover {
  background: var(--blue-hover);
}

.section {
  padding: 96px 0;
}

#radar,
#volgen,
#politie,
#trauma,
#militair,
#app,
#plaats-zoek {
  scroll-margin-top: 16px;
}

.story-photo {
  margin: 0 0 48px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.story-grid p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--blue-hover);
}

.facts {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid #e4ebf1;
}

.facts li {
  padding: 20px 0;
  border-bottom: 1px solid #e4ebf1;
}

.facts strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.facts span {
  color: var(--text-muted);
  font-size: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.section-ink {
  background: var(--ink);
  color: #d7e2ec;
}

.section-ink h2,
.section-ink h3 {
  color: #fff;
}

.section-ink .eyebrow,
.section-ink .card-kicker,
.section-ink .callsigns span {
  color: #93c5fd;
}

.section-ink .section-head p,
.section-ink article p {
  color: #b8c7d4;
}

.section-soft {
  background: var(--soft);
}

.bases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bases article {
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.card-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
}

.callsigns {
  margin-top: 16px;
  font-size: 14px;
}

.callsigns span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.lifeliners {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.lifeliners li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid #e4ebf1;
}

.lifeliners li span {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue);
  line-height: 1;
}

.lifeliners p {
  margin: 0 0 6px;
  color: var(--text-muted);
}

.subtle {
  font-size: 14px;
}

.fleet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.fleet article {
  padding: 28px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fleet p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 44px;
  border-radius: 24px;
  background: var(--blue-soft);
}

.cta p {
  margin: 0;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.btn:hover {
  background: var(--blue-hover);
}

.btn-ghost {
  background: var(--white);
  color: var(--blue-dark);
}

.site-footer {
  padding: 48px 20px 56px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer a {
  margin: 0 8px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
}

.heli-marker {
  background: none !important;
  border: none !important;
}

.heli-rot {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 4px rgba(15, 40, 80, 0.35));
}

.heli-rot svg {
  width: 32px;
  height: 32px;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  font-family: Figtree, sans-serif;
}

.popup-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.popup-row {
  color: #4b5563;
  font-size: 13px;
}

.base-pill {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.28);
}

.leaflet-div-icon {
  background: transparent;
  border: none;
}

@media (max-width: 900px) {
  .story-grid,
  .bases,
  .lifeliners,
  .fleet,
  .cta {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cta {
    gap: 24px;
    padding: 32px 24px;
  }

  .map-frame,
  .map-frame-static {
    height: 380px;
  }

  .hero {
    padding: 32px 0 64px;
  }

  .section {
    padding: 72px 0;
  }

  .place-search-row {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 14px;
    font-size: 13px;
  }

  .info-panel {
    max-width: calc(100% - 72px);
  }

  .lifeliners li {
    grid-template-columns: 52px 1fr;
  }
}
