/* Coverage map controls — loaded only on pages with #coverageMap */
#coverageMap { height: 560px; }
#coverageMap .leaflet-tile-pane { filter: saturate(0.85) brightness(0.8) contrast(1.05); }

/* Hover labels */
.leaflet-tooltip.map-tip {
  background: rgba(6, 11, 22, 0.94); color: #fff; border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 8px; padding: 4px 10px; font: 600 0.8rem/1.3 var(--font);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.leaflet-tooltip.map-tip::before { display: none; }

/* Popups */
.map-pop { display: flex; flex-direction: column; gap: 4px; min-width: 190px; }
.map-pop strong { font-size: 1rem; }
.map-pop-note { color: rgba(255, 255, 255, 0.6); font-size: 0.78rem; margin-bottom: 4px; }
.map-pop a { color: var(--cyan) !important; font-weight: 600; }
.map-pop a.map-pop-cta { display: inline-block; margin-top: 4px; padding: 7px 12px; border-radius: 9px; text-align: center;
  background: linear-gradient(135deg, #00c2e0, #2f7fe0); color: #fff !important; }

/* Search + reset */
.map-tools { display: flex; gap: 8px; align-items: center; }
.map-search {
  width: 210px; padding: 9px 13px; border-radius: 11px; font: 500 0.88rem var(--font); color: #fff;
  background: rgba(6, 11, 22, 0.92); border: 1px solid rgba(255, 255, 255, 0.16); outline: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.map-search::placeholder { color: rgba(255, 255, 255, 0.5); }
.map-search:focus { border-color: rgba(0, 240, 255, 0.6); }
.map-search.map-search-miss { border-color: #ff6b6b; }
.map-reset {
  padding: 9px 13px; border-radius: 11px; font: 600 0.84rem var(--font); color: #fff; cursor: pointer; white-space: nowrap;
  background: rgba(6, 11, 22, 0.92); border: 1px solid rgba(0, 240, 255, 0.4); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.map-reset:hover { background: rgba(0, 240, 255, 0.16); }

/* Layer toggles */
#coverageMap .leaflet-control-layers {
  background: rgba(6, 11, 22, 0.92) !important; color: #fff; border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important; font: 500 0.84rem var(--font);
}
#coverageMap .leaflet-control-layers-expanded { padding: 10px 14px 10px 10px; }
#coverageMap .leaflet-control-layers label { display: block; margin: 4px 0; cursor: pointer; }
#coverageMap .leaflet-control-layers input { accent-color: #00f0ff; margin-right: 6px; vertical-align: middle; }
.lc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.lc-line { display: inline-block; width: 18px; border-top: 2px dashed #00f0ff; margin-right: 7px; vertical-align: middle; }

/* Scroll-zoom hint */
.map-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 800; pointer-events: none;
  background: rgba(6, 11, 22, 0.85); color: rgba(255, 255, 255, 0.8); font: 500 0.78rem var(--font);
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); transition: opacity 0.3s;
}
.map-hint-off { opacity: 0; }

@media (max-width: 768px) {
  #coverageMap { height: 460px; }
  .map-search { width: 150px; }
  .map-reset { padding: 9px 10px; }
  .map-hint { display: none; }
}

/* The site-wide `section { padding: 96px 0 }` rule also hits Leaflet's layer list, which is a <section>. */
#coverageMap section { padding: 0; }
.legend-dot.amber { background: #ffc46b; }
