/* Compact controls and reliable top-layer rendering. */
.sidebar { padding-top: 22px; }
.first-label { margin-top: 0; }
.layer-grid { display: grid; grid-template-columns: 1fr; gap: 1px; }
.layer-grid .toggle {
  margin: 0; padding: 7px 8px; border-radius: 5px; font-size: 11px;
}
.layer-grid .toggle:hover { background: #162b34; }
.terrain { background: #8e9f77; }
.building { background: #b48b69; }
.receptor { background: #e0a16c; }
.other-building { background: #8b9fad; }
.vegetation { background: #559365; }
.contour { background: #c1b978; }
.water { background: #4b93bd; }
.airport { background: #ef8f55; }
.airspace { background: #68bde8; }
.layer-group { margin-bottom: 9px; }
.layer-group-title {
  margin: 9px 0 3px; color: #78909d; font-size: 9px;
  letter-spacing: 1.25px; text-transform: uppercase;
}
.density-control {
  margin: 18px 0; padding: 10px; border: 1px solid #2b404b;
  background: #0f1e27; border-radius: 6px; color: var(--muted); font-size: 10px;
}
.density-control label { display: flex; justify-content: space-between; }
.density-control output { color: var(--teal); font-variant-numeric: tabular-nums; }
.density-control input { width: 100%; margin: 10px 0 5px; accent-color: var(--teal); }
.density-control small { display: block; color: #7893a0; }
.maplibregl-ctrl-top-right { z-index: 6; }
.maplibregl-control-container { z-index: 6; }
.maplibregl-marker { z-index: 7 !important; }
.station-map-label {
  border: 0; padding: 2px 4px; background: #07171ecc; color: #e5fff9;
  font: 11px 'Segoe UI', sans-serif; cursor: pointer; border-radius: 3px;
}
@media (max-width: 900px) {
  .maplibregl-ctrl-top-right { top: 0; }
}
