:root {
  --ink: #101112;
  --surface: #17191b;
  --surface-2: #22262a;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --line: rgba(255, 255, 255, 0.16);
  --yellow: #ffd21a;
  --orange: #ff8a00;
  --red: #ef2a24;
  --cyan: #13d8d4;
  --green: #2fbf71;
}

/* Minimal Leaflet layout fallback in case the CDN stylesheet is blocked. */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  top: 0;
  left: 0;
}

.leaflet-container {
  overflow: hidden;
  cursor: grab;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control {
  float: left;
  clear: both;
}

.leaflet-right .leaflet-control {
  float: right;
}

.leaflet-top .leaflet-control {
  margin-top: 12px;
}

.leaflet-left .leaflet-control {
  margin-left: 12px;
}

.leaflet-right .leaflet-control {
  margin-right: 12px;
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 12px;
}

.leaflet-control-zoom a {
  display: block;
  width: 30px;
  height: 30px;
  border-bottom: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  font-size: 11px;
  padding: 2px 6px;
}

.leaflet-popup {
  position: absolute;
  margin-bottom: 20px;
  text-align: left;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
}

.leaflet-popup-content-wrapper {
  padding: 1px;
}

.leaflet-popup-content {
  margin: 14px;
}

.leaflet-popup-tip-container {
  position: absolute;
  left: 50%;
  width: 40px;
  height: 20px;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  margin: -10px auto 0;
  transform: rotate(45deg);
}

.leaflet-popup-close-button {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 8px 0 0;
  color: #64748b;
  text-decoration: none;
}

.leaflet-interactive {
  cursor: pointer;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.coverage-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(16, 17, 18, 0.72), var(--ink) 44%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px,
      transparent 7px
    );
}

.hero {
  border-bottom: 1px solid var(--line);
  padding: 24px clamp(18px, 4vw, 48px);
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--yellow), var(--orange) 54%, var(--red));
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.brand__name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__copy {
  max-width: 680px;
}

.eyebrow,
.panel__label {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.02;
}

h2 {
  font-size: 24px;
}

.hero__copy p:last-child {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.button--primary {
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--red));
  color: #111;
}

.button--secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.map-section {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 154px);
  overflow: hidden;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid var(--line);
  background: rgba(17, 19, 22, 0.88);
  padding: 28px;
}

.filters {
  display: grid;
  gap: 8px;
}

.filter {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  padding: 0 12px;
}

.filter.is-active {
  border-color: rgba(19, 216, 212, 0.72);
  background: rgba(19, 216, 212, 0.14);
  color: #eaffff;
}

.legend {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.legend div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex: 0 0 auto;
}

.swatch--polygon {
  background: rgba(255, 138, 0, 0.38);
  border: 2px solid var(--orange);
}

.swatch--point {
  background: var(--cyan);
}

.notice {
  margin: 0;
  border-left: 3px solid var(--orange);
  background: rgba(255, 138, 0, 0.1);
  color: var(--muted);
  padding: 14px 14px 14px 16px;
  font-size: 14px;
  line-height: 1.55;
}

.contact-card {
  display: grid;
  gap: 6px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.contact-card span {
  color: var(--muted);
  font-size: 13px;
}

.contact-card a {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.map-wrap {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background: #12171a;
}

#coverage-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 640px;
  background: #161a1d;
  overflow: hidden;
}

.leaflet-container {
  font: inherit;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.popup {
  min-width: 220px;
}

.popup h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
}

.popup p {
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.4;
}

.popup a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #10b981;
  color: #fff;
  font-weight: 800;
  padding: 0 12px;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero__content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .map-section {
    grid-template-columns: 1fr;
  }

  .panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .hero,
  .panel {
    padding: 20px 16px;
  }

  .brand__name {
    font-size: 26px;
  }

  .button {
    width: 100%;
  }

  .map-wrap,
  #coverage-map {
    min-height: 540px;
  }
}
