#map {
    position: fixed;
    top: var(--topbar-h);
    /* --hub-drawer-h: the hub timeline drawer's height while open (ui/hubTimeline.js), else 0 */
    bottom: calc(var(--timeline-h) + var(--hub-drawer-h, 0px));
    left: var(--leftbar-offset);
    right: var(--rightbar-offset);
    /* .maplibregl-map below sets width:100%, which (unlike height:auto here)
       would win over left/right: the map became a full viewport wide, spilled
       under the right bar, and ignored --rightbar-offset, so expanding or
       collapsing the right bar never resized it. */
    width: auto;
    height: auto;
    transition: left 0.2s ease, right 0.2s ease;
    z-index: 500;
    background-color: #141618;
}


.maplibregl-map {
    width: 100%;
    height: 100%;
    background: #141618;
}

/* AirportCanvasLayer's overlay canvas (see render/AirportCanvasLayer.js).
   MapLibre has no pane system to stack against like Leaflet did -- the
   canvas is a plain absolutely-positioned sibling appended after the
   map's own canvas, so DOM order alone puts it above the basemap/radar
   tiles; popups/markers are appended later still, so they naturally
   draw on top of this without needing a z-index tug-of-war. */
.airport-canvas-layer {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}
/* Since 2026-10-10 the plots are drawn inside the map (render/canvasOverlayLayer.js) so flights draw over them; the
   canvas is only the drawing surface then. */
.airport-canvas-layer.in-map { visibility: hidden; }

#mapValueReadout {
    position: fixed;
    z-index: 100500;
    min-width: 190px;
    max-width: 280px;
    padding: 8px 10px;
    background: rgba(16, 20, 24, 0.94);
    border: 1px solid rgba(139, 164, 176, 0.55);
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.35;
    pointer-events: none;
}

.map-value-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: baseline;
}

.map-value-row + .map-value-row {
    margin-top: 4px;
}

.map-value-label {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-value-number {
    color: var(--mint);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 760px) {
    #map {
        left: 0;
        right: 0;
    }

    #mapValueReadout {
        max-width: calc(100vw - 16px);
        min-width: 0;
    }
}
