.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"] .leaflet-ahcDarkTopo-pane {
  /* A dark topographic background; aviation tiles keep their original colors. */
  filter: grayscale(1) invert(1) brightness(.42) contrast(.88);
}

.ahc-home-live-map-head .ahc-live-map-target-notice {
  position: static;
  max-width: 360px;
  margin: 8px 0 0;
}

.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"] .ahc-live-map-layers {
  max-width: min(290px, calc(100vw - 70px));
  padding: 0;
  border: 1px solid rgba(125, 211, 252, .35);
  border-radius: 7px;
  background: #111a22;
  color: #f7fbff;
  box-shadow: 0 3px 12px #0005;
  font: 12px/1.5 Arial, sans-serif;
}

.ahc-live-map-layers .leaflet-control-layers-toggle {
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: none;
  color: #f7fbff;
  font-weight: 700;
  text-decoration: none;
}

.ahc-live-map-layers.leaflet-control-layers-expanded {
  padding: 12px 14px;
}

.ahc-live-map-layers label {
  padding: 4px 0;
  cursor: pointer;
}

.ahc-live-map-layers input {
  width: auto;
  margin: 0 6px 0 0;
  accent-color: #3fb4d8;
}

.ahc-live-map-layers .leaflet-control-layers-separator {
  margin: 8px 0;
  border-color: rgba(125, 211, 252, .2);
}

.ahc-live-map-layers .ahc-map-layers-info,
.ahc-live-map-layers .ahc-map-layers-unavailable {
  display: block;
  margin: 8px 0;
  color: #b8c2cf;
  font-size: 11px;
}

.ahc-live-map-layers a:not(.leaflet-control-layers-toggle) {
  color: #71d9f6;
}

.ahc-live-map-layers .ahc-map-layers-status {
  margin: 8px 0 0;
  color: #f5cd89;
  font-size: 11px;
}

.ahc-live-map-layers .ahc-map-layers-status:empty {
  display: none;
}

.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"] .leaflet-control-attribution {
  max-width: calc(100vw - 60px);
  white-space: normal;
  text-align: right;
  overflow-wrap: anywhere;
}

.ahc-map-layers-settings {
  display: grid;
  max-width: 640px;
  gap: 10px;
}

.ahc-map-layers-settings input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(125, 211, 252, .3);
  border-radius: 5px;
  background: #0b1218;
  color: #f7fbff;
}

.ahc-map-layers-settings small {
  color: #b8c2cf;
}

/* Optional PNG geometry; existing map and layer controls retain their design. */
.ahc-png-airspace-tooltip {
  background: rgba(7, 17, 25, .97);
  border: 1px solid rgba(125, 211, 252, .36);
  color: #f7fbff;
  font-size: 12px;
}
.ahc-png-airspace-details { display: grid; gap: 5px; color: #f7fbff; font-size: 12px; }
.ahc-png-airspace-details b { font-size: 15px; }
.ahc-png-airspace-details small { color: #f2c66d; line-height: 1.4; }

/* R2CS occupancy labels stay below aircraft and never intercept map input. */
.ahc-r2cs-label { color:#fff; background:rgba(7,17,25,.8); border:0; box-shadow:none; font:11px Arial,sans-serif; padding:3px 5px; pointer-events:none; }
.ahc-r2cs-label:before { display:none; }
.ahc-r2cs-details { display:grid; gap:5px; font-size:12px; color:#f7fbff; }
.ahc-r2cs-details b { font-size:15px; }
.ahc-home-live-map-legend .ahc-r2cs-status { color:#b8c2cf; font-size:11px; }
.ahc-home-live-map-legend .ahc-r2cs-status.is-stale { color:#f2c66d; }

/* Cargo hubs: high contrast on every basemap, compact at continental scale. */
.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"] {
  --ahc-live-hub-size: 14px;
}
.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"].is-airport-labels-mid {
  --ahc-live-hub-size: 20px;
}
.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"].is-airport-labels-close {
  --ahc-live-hub-size: 24px;
}
.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"] .ahc-live-airport-marker {
  width: max-content;
  height: 24px;
  margin-left: calc((14px - var(--ahc-live-hub-size)) / 2);
  opacity: 1;
  transform: none;
  gap: 6px;
}
.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"] .ahc-live-airport-marker i {
  width: var(--ahc-live-hub-size);
  height: var(--ahc-live-hub-size);
  flex-basis: var(--ahc-live-hub-size);
  border: 1.5px solid #ffe0ad;
  border-radius: 4px;
  background: #111a22 var(--ahc-live-cargo-hangar) center / 78% no-repeat;
  box-shadow: 0 0 0 1.5px #08131b, 0 2px 5px #0008;
}
.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"] .ahc-live-airport-marker:hover i,
.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"] .ahc-live-airport-marker.is-selected i {
  border-color: #fff3d6;
  box-shadow: 0 0 0 2px #08131b, 0 0 7px #ff851baa;
}
.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"] .ahc-live-airport-label {
  border-color: #f2c66d99;
  background: #0b1218f5;
  color: #f7fbff;
  font-size: 10px;
  line-height: 1.2;
}
.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"] .ahc-live-airport-label span {
  display: none;
}
.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"] .ahc-live-airport-marker:hover .ahc-live-airport-label span,
.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"] .ahc-live-airport-marker.is-selected .ahc-live-airport-label span {
  display: block;
}
.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"] .ahc-home-live-map-legend .is-cargo-europe-airport i {
  width: 12px;
  height: 12px;
  border: 1px solid #ffe0ad;
  border-radius: 3px;
  background-color: #111a22;
  background-size: 80%;
  box-shadow: 0 0 0 1px #08131b;
}

/* Groups contain nearby real locations; no displaced airport markers or guide rays. */
.ahc-home-live-map[data-ahc-live-map-mode="fullscreen"] .ahc-live-airport-icon {
  width: 14px !important; height: 24px !important;
}
.ahc-live-airport-cluster-icon { background: none; border: 0; }
.ahc-live-airport-cluster {
  position: relative; display: grid; place-items: center;
  width: 36px; height: 36px; border: 2px solid #f2c66d; border-radius: 50%;
  background: #111a22f5; color: #fff3d6;
  box-shadow: 0 0 0 2px #08131b, 0 2px 7px #0009;
  font: 900 12px/1 Arial, sans-serif;
}
.ahc-live-airport-cluster i {
  position: absolute; left: -4px; top: -4px; width: 16px; height: 16px;
  border: 1px solid #ffe0ad; border-radius: 3px;
  background: #111a22 var(--ahc-live-cargo-hangar) center / 80% no-repeat;
}
.ahc-live-airport-cluster:hover, .ahc-live-airport-cluster.is-selected {
  border-color: #fff3d6; box-shadow: 0 0 0 2px #08131b, 0 0 9px #ff851baa;
}
.ahc-live-cluster-choices { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; margin-top: 8px; }
.ahc-live-cluster-choices button {
  padding: 6px 8px; border: 1px solid #f2c66d77; border-radius: 4px;
  background: #111a22; color: #f7fbff; text-align: left; cursor: pointer;
}
