:root {
  --bg: #06172b;
  --panel: #0b2844;
  --panel-strong: #103452;
  --ink: #f3f9ff;
  --muted: #a9bfd1;
  --line: rgba(147, 203, 235, .24);
  --cyan: #54d5f6;
  --orange: #ff8a47;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0, rgba(45, 177, 226, .2), transparent 30rem),
    linear-gradient(180deg, #06172b, #09233b 62%, #06172b);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.maps-header,
.maps-main,
.maps-footer {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}
.maps-nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.maps-brand { display: flex; align-items: center; gap: 12px; font-weight: 850; }
.maps-brand img { width: 70px; height: auto; }
.maps-brand span { color: var(--muted); font-size: 14px; }
.maps-back,
.map-button,
.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.maps-back { padding: 11px 17px; }
.maps-back:hover,
.map-button:hover,
.filter-button:hover { border-color: var(--cyan); transform: translateY(-1px); }
.maps-heading { padding: clamp(38px, 7vw, 84px) 0 46px; }
.maps-heading h1,
.section-heading h2 { margin: 0; letter-spacing: -.035em; line-height: 1; }
.maps-heading h1 { max-width: 850px; font-size: clamp(42px, 7vw, 82px); }
.maps-heading > p:last-child {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}
.maps-kicker,
.filter-label {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.maps-kicker { margin: 0 0 11px; }

.maps-filter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(12, 43, 72, .84);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}
.filter-label { display: block; margin: 0 0 9px 4px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { padding: 10px 15px; color: var(--muted); }
.filter-button.is-active {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #062036;
}
.selected-date { margin: 0; color: var(--muted); text-align: right; }
.selected-date strong { color: var(--ink); }

.maps-section { padding: 70px 0 0; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 430px);
  align-items: end;
  gap: 28px;
  margin-bottom: 22px;
}
.section-heading h2 { font-size: clamp(30px, 4vw, 50px); }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.55; }

.maps-grid { display: grid; gap: 20px; align-items: start; }
.maps-grid--social { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.maps-grid--province { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.map-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(10, 37, 62, .86);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
}
.map-card--featured { padding: 12px; }
.map-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #071d32;
}
.map-preview--wide { border-radius: 15px; }
.map-preview--wide img { width: 100%; }
.map-preview--portrait { aspect-ratio: 4 / 5; }
.map-preview--portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.map-preview--province { height: 390px; padding: 10px; }
.map-preview--province img { width: 100%; height: 100%; object-fit: contain; }
.map-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 8px 7px;
}
.map-card:not(.map-card--featured) .map-card-body { padding: 17px; }
.map-card-body--stack { align-items: stretch; flex-direction: column; }
.map-card h3 { margin: 0; font-size: 20px; }
.map-card p { margin: 7px 0 0; color: var(--muted); line-height: 1.45; }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map-button { display: inline-flex; justify-content: center; padding: 10px 15px; white-space: nowrap; }
.map-button.is-primary { border-color: var(--cyan); background: var(--cyan); color: #062036; }
.maps-note {
  margin-top: 52px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: var(--panel);
}
.maps-note a { color: var(--cyan); text-decoration: underline; }
.maps-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 78px 0 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .maps-filter { grid-template-columns: 1fr; align-items: start; }
  .selected-date { text-align: left; }
  .maps-grid--social,
  .maps-grid--province { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .maps-header, .maps-main, .maps-footer { width: min(100% - 20px, 1240px); }
  .maps-nav { min-height: 68px; }
  .maps-brand img { width: 58px; }
  .maps-brand span { display: none; }
  .maps-back { padding: 9px 13px; font-size: 13px; }
  .maps-heading { padding-top: 28px; }
  .maps-heading h1 { font-size: 42px; }
  .maps-filter { padding: 14px; border-radius: 17px; gap: 17px; }
  .filter-button { padding: 9px 12px; font-size: 14px; }
  .maps-section { padding-top: 52px; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .maps-grid--social,
  .maps-grid--province { grid-template-columns: 1fr; }
  .map-card, .map-card--featured { border-radius: 17px; }
  .map-card-body { align-items: stretch; flex-direction: column; padding: 15px !important; }
  .map-button { flex: 1; }
  .map-preview--province { height: min(118vw, 580px); }
  .maps-footer { flex-direction: column; padding-top: 58px; }
}
