.map-globe-host {
  position:absolute;
  inset:0;
  z-index:450;
  background:#07121f;
  color:#172838;
}
.map-globe-active > .leaflet-pane { visibility:hidden; }
.map-globe-active > .leaflet-control-container { position:relative;z-index:600; }
.map-globe-active .leaflet-control-attribution { display:none; }
.map-globe-controls {
  position:absolute;
  top:10px;
  left:50px;
  z-index:4;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  max-width:calc(100% - 100px);
}
.map-globe-controls .btn {
  background:var(--sheet);
  color:var(--ink);
  border-color:var(--line);
  box-shadow:0 2px 7px #0005;
}
.map-globe-controls [aria-pressed="true"] {background:var(--accent);color:var(--accent-ink);}
.map-globe-toggle[aria-pressed="true"] {background:var(--accent);color:var(--accent-ink);}
.map-globe-aircraft {
  display:block;
  width:30px;
  height:30px;
  padding:0;
  background:transparent;
  border:0;
  color:inherit;
  cursor:pointer;
}
.map-globe-aircraft > span { display:block;position:relative!important;inset:auto!important; }
.map-globe-aircraft:focus-visible { outline:2px solid #fff;outline-offset:3px; }
.map-globe-details { color:var(--ink);font:14px/1.4 var(--f-body,Arial,sans-serif); }
.map-globe-details .map-pop-l {max-height:240px;overflow:auto;}
.map-globe-host .maplibregl-popup-content {background:var(--sheet);color:var(--ink);}
.map-globe-host .maplibregl-popup-close-button {font-size:22px;color:var(--ink);}
.map-globe-host .maplibregl-ctrl-attrib {font:10px/1.4 Arial,sans-serif;}
.map-globe-notice {
  position:absolute;left:12px;bottom:42px;z-index:4;max-width:calc(100% - 24px);
  padding:7px 10px;border-radius:8px;background:var(--sheet,#fff);color:var(--ink,#172838);
  box-sizing:border-box;font:13px/1.4 Arial,sans-serif;pointer-events:none;
}
.map-globe-notice[hidden] {display:none;}
.map-globe-label {width:auto;height:auto;white-space:nowrap;font:600 11px/1.25 Arial,sans-serif;}
.map-globe-code {padding:2px 4px;background:#fffffff0;color:#172838;border-radius:3px;box-shadow:0 1px 3px #0005;}
.map-globe-tooltip {pointer-events:none;font:12px/1.4 Arial,sans-serif;}
.map-globe-base {max-width:160px;min-height:32px;background:var(--sheet,#fff);color:var(--ink,#172838);border:1px solid var(--line,#bbb);border-radius:6px;}
.map-globe-leaflet-popup {
  position:relative!important;transform:none!important;inset:auto!important;margin:0!important;
  visibility:visible!important;max-width:min(420px,calc(100vw - 60px));
}
.map-globe-leaflet-popup .leaflet-popup-tip-container {display:none;}
.map-globe-leaflet-popup .leaflet-popup-content-wrapper {box-shadow:none;}
.map-globe-leaflet-popup .leaflet-popup-content {max-width:calc(100vw - 100px);}

.map-globe-host { container-type: inline-size; }
.map-globe-host .maplibregl-popup:has(.map-airport-weather) {
  width: min(440px, calc(100cqw - 24px));
  max-width: calc(100cqw - 24px) !important;
}
.map-globe-host .maplibregl-popup-content:has(> .map-airport-weather) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0;
}
.map-globe-leaflet-popup.map-airport-weather {
  width: 100%;
  max-width: 100%;
}
.map-globe-leaflet-popup.map-airport-weather .leaflet-popup-content {
  width: auto !important;
  max-width: none;
}
@media (prefers-reduced-motion:reduce) {
  .map-globe-controls .btn {transition:none;}
}


#op-map .map-globe-controls {top:auto;bottom:58px;}

/* Aeronautical chart controls are only available in the flat map. */
:is(.map-screen, .brf-mapp):has(.map-globe-active) :is(.map-charts-toggle, #map-chart-summary, #map-charts-panel) {
  display: none !important;
}

.map-globe-controls button[hidden] { display: none; }
.map-globe-aircraft.is-dimmed > span { opacity: .46; }
.map-globe-aircraft.is-selected {
  z-index: 2;
  border-radius: 50%;
  background: #0b1724c9;
  box-shadow: 0 0 0 2px #fff, 0 3px 9px #000b;
}
