/* Topbar "NWS Alerts" dropdown (ui/nwsAlertsPanel.js) -- same fixed-dropdown pattern as
   mapDisplay.css/locations.css. */

.nws-alerts-panel {
    position: fixed;
    top: calc(var(--topbar-h) + 8px);
    left: 12px;
    z-index: 100001;
    width: min(300px, calc(100vw - 24px));
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 7px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
    color: var(--text-light);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nws-alerts-panel[hidden] { display: none; }

.nws-alerts-header {
    font-weight: bold;
    font-size: 14px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--panel-border);
}

.nws-alerts-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

.nws-alerts-types {
    max-height: 260px;
    overflow-y: auto;
    font-size: 12px;
}

.nws-alerts-bulk-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted, #9aa3ad);
    margin-bottom: 4px;
}

.nws-alerts-bulk-btn {
    background: transparent;
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 11px;
    padding: 2px 7px;
}

.nws-alerts-bulk-btn:hover {
    border-color: var(--mint, #43d2aa);
}

.nws-alerts-type-group-label {
    color: var(--text-muted, #9aa3ad);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 6px 0 2px;
    text-transform: uppercase;
}

.nws-alerts-type-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    cursor: pointer;
}

.nws-alerts-empty {
    color: var(--text-muted, #9aa3ad);
    font-size: 12px;
    font-style: italic;
    padding: 4px 0;
}

.nws-alerts-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

/* Fallbacks only -- ui/nwsAlertsPanel.js sets each swatch to its NWS hazard color inline. */
.nws-alerts-swatch-warning { background: #e34b4b; }
.nws-alerts-swatch-watch { background: #eab308; }

.nws-alerts-count {
    font-size: 11px;
    color: var(--text-muted, #9aa3ad);
}

.nws-alerts-subtitle {
    color: var(--text-muted, #9aa3ad);
    font-size: 11px;
    line-height: 1.35;
    padding-top: 6px;
    border-top: 1px solid var(--panel-border);
}

/* Click popup on an NWS watch/warning polygon (map/nwsAlertsLayer.js) -- same lightweight-popup
   pattern as .procedure-overlay-popup in chartViewer.css. */
.nws-alert-popup .maplibregl-popup-content {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    color: var(--text-light);
    font-size: 12px;
    padding: 8px 10px;
    max-width: 260px;
}

.nws-alert-popup-title {
    color: white;
    font-weight: 700;
    margin-bottom: 3px;
}

.nws-alert-popup-meta {
    opacity: 0.85;
    margin-bottom: 2px;
}

.nws-alert-popup-warn {
    color: #ffb347;
    font-weight: 600;
    margin-bottom: 2px;
}

.nws-alert-popup-body {
    margin: 4px 0;
    line-height: 1.4;
}

.nws-alert-popup-disclaimer {
    font-size: 10px;
    font-style: italic;
    margin-top: 6px;
    opacity: 0.65;
}
