/* Flightarrow bottom menubar — a slim FR24-style bar with Cameras, Events,
   Weather and Info, plus a thin altitude-gradient strip that expands into a
   labelled legend on hover/tap. House style: dark-blue gradient, cyan #00d4ff
   accent, system font. */

/* The camera pill and tar1090's own altitude legend are both replaced by this
   bar: the camera button now lives inside it, and the gradient strip is the
   only altitude legend. */
.fa-cam-pill { display: none !important; }
#altitude_chart { display: none !important; }

.fa-mb {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    max-width: calc(100vw - 16px);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.94) 0%, rgba(22, 33, 62, 0.94) 100%);
    color: #fff;
    font: 600 13px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.fa-mb-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font: inherit;
    letter-spacing: 0.02em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.fa-mb-btn:hover { background: rgba(0, 212, 255, 0.12); color: #fff; }
.fa-mb-btn:active { transform: scale(0.97); }
.fa-mb-btn.active { background: rgba(0, 212, 255, 0.2); color: #00d4ff; }
.fa-mb-btn-ico { font-size: 14px; line-height: 1; }

.fa-mb-sep {
    width: 1px;
    align-self: stretch;
    margin: 4px 2px;
    background: rgba(255, 255, 255, 0.14);
}

/* Thin altitude-gradient strip. Click/hover pops the labelled legend above. */
.fa-mb-grad {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 6px 10px;
    cursor: pointer;
}
.fa-mb-grad-label {
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.fa-mb-grad-bar {
    width: 116px;
    height: 5px;
    border-radius: 3px;
}

.fa-mb-grad-pop {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 200px;
    padding: 10px 12px 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
    display: none;
}
.fa-mb-grad.open .fa-mb-grad-pop { display: block; }
.fa-mb-grad-pop-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 7px;
}
.fa-mb-grad-pop-bar {
    height: 9px;
    border-radius: 4px;
    margin-bottom: 4px;
}
.fa-mb-grad-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.55);
}

/* Popover panels (Events, Info) — float above the bar, centred. */
.fa-mb-panel {
    position: fixed;
    left: 50%;
    bottom: 60px;
    transform: translateX(-50%);
    z-index: 1550;
    width: 340px;
    max-width: calc(100vw - 24px);
    max-height: 62vh;
    display: none;
    flex-direction: column;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}
.fa-mb-panel.open { display: flex; }
.fa-mb-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 9px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
}
.fa-mb-panel-close {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}
.fa-mb-panel-close:hover { color: #ff8a80; background: rgba(231, 76, 60, 0.18); }
.fa-mb-panel-body { overflow-y: auto; padding: 0 8px 10px; }

/* Events list */
.fa-mb-ev {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    border-left: 3px solid transparent;
}
.fa-mb-ev:hover { background: rgba(0, 212, 255, 0.1); }
.fa-mb-ev-ico { flex: none; width: 20px; text-align: center; font-size: 15px; line-height: 1.3; }
.fa-mb-ev-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fa-mb-ev-top { display: flex; align-items: baseline; gap: 8px; }
.fa-mb-ev-cs { font-size: 13px; font-weight: 700; }
.fa-mb-ev-kind { font-size: 12px; font-weight: 600; }
.fa-mb-ev-meta { font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.fa-mb-ev-time { flex: none; font-size: 10px; color: rgba(255, 255, 255, 0.4); white-space: nowrap; }

.fa-mb-empty { padding: 22px 14px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.42); }

/* Info panel */
.fa-mb-info-sec { padding: 10px 8px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.fa-mb-info-sec:first-child { border-top: 0; }
.fa-mb-info-h {
    font-size: 12px;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 5px;
    letter-spacing: 0.02em;
}
.fa-mb-info-p { font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.fa-mb-info-p code {
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 212, 255, 0.14);
    color: #7fe9ff;
    font-size: 11px;
    white-space: nowrap;
}

/* Weather "no data" hint — a small transient note above the bar. */
.fa-mb-hint {
    position: fixed;
    left: 50%;
    bottom: 60px;
    transform: translateX(-50%);
    z-index: 1540;
    padding: 7px 14px;
    border-radius: 16px;
    background: rgba(13, 16, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.7);
    font: 500 12px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
}
.fa-mb-hint.show { opacity: 1; }

/* Narrow screens (mobile-web): hide button text, keep icons; shrink the strip. */
@media (max-width: 560px) {
    .fa-mb { gap: 2px; padding: 4px 6px; }
    .fa-mb-btn { padding: 8px 10px; }
    .fa-mb-btn-txt { display: none; }
    .fa-mb-grad { padding: 6px 6px; }
    .fa-mb-grad-bar { width: 70px; }
    .fa-mb-grad-label { display: none; }
}
