:root {
  --navy-950: #06101f;
  --navy-900: #07172d;
  --navy-800: #0b2342;
  --navy-700: #12365d;
  --red: #d7263d;
  --red-dark: #9e1d31;
  --yellow: #f6c343;
  --cyan: #4cc9f0;
  --green: #21a67a;
  --blue: #3157a4;
  --paper: #f6f8fb;
  --white: #ffffff;
  --muted: #64748b;
  --line: rgba(10, 31, 56, .12);
  --shadow: 0 24px 70px rgba(5, 16, 31, .18);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #122033;
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 16, 31, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  min-width: 0;
}

.brand img {
  width: 210px;
  height: 56px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.08rem;
  letter-spacing: 0;
}

.brand-text small {
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: rgba(255, 255, 255, .82);
  padding: 10px 13px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .92rem;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.hero,
.region-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(6, 16, 31, .98) 0%, rgba(7, 23, 45, .86) 46%, rgba(215, 38, 61, .54) 100%),
    radial-gradient(circle at 88% 16%, rgba(246, 195, 67, .32), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 76px);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(76, 201, 240, .12) 42% 43%, transparent 43% 100%),
    linear-gradient(45deg, transparent 0 64%, rgba(246, 195, 67, .14) 64% 65%, transparent 65% 100%);
}

.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  min-height: 590px;
  margin: 0 auto;
  padding: 78px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 52px;
}

.region-hero .hero-inner {
  min-height: 430px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-weight: 900;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 6vw, 5.35rem);
  line-height: .98;
  letter-spacing: 0;
  max-width: 920px;
}

.region-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
}

.hero-lead {
  max-width: 720px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 900;
}

.button.primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(215, 38, 61, .32);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
}

.status-panel {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.status-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  margin-bottom: 20px;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2ee59d;
  box-shadow: 0 0 0 0 rgba(46, 229, 157, .65);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(46, 229, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0); }
}

.status-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.status-panel dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.status-panel dt {
  color: rgba(255, 255, 255, .68);
  font-weight: 700;
}

.status-panel dd {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 950;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-head.compact {
  margin-bottom: 22px;
}

.section-head h2,
.seo-copy h2 {
  color: var(--navy-950);
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.section-head p,
.seo-copy p {
  color: var(--muted);
  font-size: 1.02rem;
}

.ad-band {
  width: min(var(--max), calc(100% - 32px));
  margin: 30px auto 0;
  background: linear-gradient(135deg, #fff 0%, #eef4fb 100%);
  border: 1px dashed rgba(18, 54, 93, .32);
  border-radius: var(--radius);
  min-height: 132px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--navy-900);
}

.ad-band div,
.ad-card {
  display: grid;
  gap: 4px;
}

.ad-band span,
.ad-card span {
  color: var(--red);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .08em;
  font-weight: 950;
}

.ad-band strong,
.ad-card strong {
  font-size: 1.15rem;
}

.ad-band small,
.ad-card small {
  color: var(--muted);
}

.region-tools {
  margin-bottom: 20px;
}

.search-box {
  width: min(520px, 100%);
  display: grid;
  gap: 8px;
  color: var(--navy-900);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 15px;
  font: inherit;
  background: var(--white);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.region-card {
  min-height: 132px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(5, 16, 31, .05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.region-card:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 38, 61, .32);
  box-shadow: 0 18px 42px rgba(5, 16, 31, .12);
}

.region-card span {
  color: var(--red);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 950;
}

.region-card strong {
  color: var(--navy-950);
  font-size: 1.08rem;
}

.region-card small {
  color: var(--muted);
}

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.service-tab {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 16px;
  background: var(--white);
  color: var(--navy-900);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.service-tab.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.service-tab.fire.active { background: var(--red); border-color: var(--red); }
.service-tab.ambulance.active { background: var(--yellow); border-color: var(--yellow); color: var(--navy-950); }
.service-tab.trauma.active { background: var(--green); border-color: var(--green); }
.service-tab.police.active { background: var(--blue); border-color: var(--blue); }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.feed-panel,
.info-block,
.ad-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 42px rgba(5, 16, 31, .06);
}

.feed-panel {
  overflow: hidden;
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.feed-toolbar div {
  display: grid;
  gap: 2px;
}

.feed-toolbar strong {
  color: var(--navy-950);
  font-size: 1.15rem;
}

.feed-toolbar span {
  color: var(--muted);
  font-size: .9rem;
}

.refresh-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  border: 0;
  background: var(--red);
  color: var(--white);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.incident-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.incident-card {
  position: relative;
  padding: 18px;
  background: var(--white);
  border-left: 5px solid var(--navy-700);
}

.incident-card.brandweer { border-left-color: var(--red); }
.incident-card.ambulance { border-left-color: var(--yellow); }
.incident-card.trauma { border-left-color: var(--green); }
.incident-card.politie { border-left-color: var(--blue); }

.incident-meta,
.incident-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.incident-meta {
  margin-bottom: 10px;
}

.incident-meta time {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy-700);
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.service-badge.brandweer { background: var(--red); }
.service-badge.ambulance { background: var(--yellow); color: var(--navy-950); }
.service-badge.trauma { background: var(--green); }
.service-badge.politie { background: var(--blue); }

.incident-card h3 {
  margin-bottom: 6px;
  color: var(--navy-950);
  font-size: 1.12rem;
  line-height: 1.22;
}

.incident-card p {
  margin-bottom: 14px;
  color: #415168;
}

.incident-footer a {
  color: var(--navy-700);
  font-weight: 900;
  font-size: .9rem;
}

.sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.ad-card {
  padding: 20px;
  min-height: 260px;
  place-content: center;
  text-align: center;
  border-style: dashed;
  background: linear-gradient(180deg, #fff, #f1f6fc);
}

.ad-card.horizontal {
  min-height: 112px;
}

.info-block {
  padding: 20px;
}

.info-block h3 {
  color: var(--navy-950);
  margin-bottom: 8px;
}

.info-block p {
  color: var(--muted);
  margin-bottom: 0;
}

.partners-block {
  display: grid;
  gap: 12px;
}

.partner-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 950;
}

.partner-link::after {
  content: "Open";
  color: var(--yellow);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.advertise-copy {
  text-align: left;
  place-content: center;
}

.advertise-copy small {
  font-size: .96rem;
  line-height: 1.55;
}

.seo-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
}

.site-footer {
  margin-top: 40px;
  padding: 34px max(16px, calc((100% - var(--max)) / 2));
  color: rgba(255, 255, 255, .78);
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer strong {
  color: var(--white);
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 800;
}

.empty-state {
  padding: 44px 22px;
  text-align: center;
  background: var(--white);
}

.empty-state strong {
  display: block;
  color: var(--navy-950);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
  margin: 0;
}

.skeleton span,
.skeleton strong,
.skeleton p {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.skeleton span { width: 120px; height: 24px; margin-bottom: 16px; }
.skeleton strong { width: 72%; height: 22px; margin-bottom: 12px; }
.skeleton p { width: 92%; height: 16px; }

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 980px) {
  .hero-inner,
  .content-grid,
  .seo-copy {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .status-panel {
    max-width: 520px;
  }

  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    min-height: 68px;
  }

  .brand img {
    width: 58px;
    height: 46px;
  }

  .brand-text small {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--navy-900);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    padding: 13px;
  }

  .hero-inner {
    padding: 48px 0 34px;
    gap: 28px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .section {
    padding: 52px 0;
  }

  .region-grid {
    grid-template-columns: 1fr;
  }

  .service-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-tab {
    padding: 0 10px;
  }

  .feed-toolbar,
  .incident-meta,
  .incident-footer,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .refresh-button {
    width: 100%;
  }

  .ad-band {
    min-height: 120px;
    padding: 18px;
  }
}

@media (max-width: 410px) {
  .service-tabs {
    grid-template-columns: 1fr;
  }

  .brand-text strong {
    font-size: .98rem;
  }
}
