.maplibregl-popup-content {
    background: var(--panel-bg) !important;
    color: var(--text-light) !important;
    border-radius: 8px !important;
    border: 1px solid var(--panel-border) !important;
}

.maplibregl-popup-close-button {
    color: var(--text-light) !important;
}

.maplibregl-popup-tip {
    border-top-color: var(--panel-bg) !important;
    border-bottom-color: var(--panel-bg) !important;
}

.station-popup {
    font-size: 12px;
    line-height: 1.5;
    min-width: 150px;
}

.station-popup-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    font-size: 13px;
}

.station-popup-category {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    color: #fff;
}

/* White text is under 4.5:1 on the green and the gray, so those two use dark text. */
.station-popup-category.cat-VFR { background: #00cc00; color: #111; }
.station-popup-category.cat-MVFR { background: #0066ff; }
.station-popup-category.cat-IFR { background: #cc0000; }
.station-popup-category.cat-LIFR { background: #cc00cc; }
.station-popup-category.cat-UNKNOWN { background: #888888; color: #111; }

.station-popup-raw {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--panel-border, #444);
    font-family: monospace;
    font-size: 10px;
    opacity: 0.8;
    word-break: break-all;
}

/* Hover tooltip (see render/AirportCanvasLayer.js) -- a maplibregl.Popup
   tagged with className "station-tooltip" so it can be styled more
   compactly than the click popup, which shares the base
   .maplibregl-popup-content rule above. */
.station-tooltip .maplibregl-popup-content {
    border-radius: 6px !important;
    font-size: 12px;
    padding: 3px 7px;
    box-shadow: none !important;
    opacity: 0.95;
}

.station-tooltip .maplibregl-popup-tip {
    border-top-color: var(--panel-border) !important;
}

/* Raw TAF, one change group per line (core/tafFormat.js): FM/BECMG indented one step, TEMPO/PROB two.
   A wrapped line hangs under its own group's text. */
.taf-raw { word-break: normal; overflow-wrap: anywhere; }
.taf-line { padding-left: 2ch; text-indent: -2ch; }
.taf-line-change { margin-left: 2ch; }
.taf-line-conditional { margin-left: 4ch; }
