/* ===== POPUP MAPA ===== */
.ol-popup {
    background: #2a2a2a;
    color: #f1f1f1;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #4a4a4a;
    min-width: 220px;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.ol-popup-content {
    color: #f1f1f1;
}

.ol-popup a {
    color: #4da3ff;
    text-decoration: none;
    font-weight: 500;
}

.ol-popup a:hover {
    text-decoration: underline;
}

/* botão fechar */
.ol-popup-closer {
    color: #fff;
    font-size: 18px;
    top: 4px;
    right: 6px;
    display: none;
}

/* ===== MAPA ===== */

.map-wrapper {
    position: relative;
}

#map {
    width: 100%;
    height: 350px;
}

#osm-map {
    width: 100%;
    height: 350px;
    border: 1px solid #333;
    border-radius: 4px;
}

/* Overlay do mapa */
.overlay-menu {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    border: 1px solid #ccc;
    font-size: 14px;
    color: #000;
}

.overlay-menu label {
    display: block;
    margin-bottom: 4px;
}

.overlay-menu .radar-filter-label {
    color: #b00020;
    font-weight: 700;
}

/* =========================================================
   ANDROID — MAPA VISÍVEL NO HOME
   ========================================================= */
@media screen and (max-width: 768px) {

    #map,
    #osm-map {
        width: 100%;
        height: 300px !important;
        min-height: 300px;
    }

    .home-box-large:has(#map),
    .home-box-large:has(#osm-map) {
        min-height: 320px !important;
    }
}


/* ===== POPUP COLORIDO POR BANDA ===== */

.popup-band-CB {
    border-color: #4a4a4a;
}

.popup-band-PMR {
    border-color: #4a4a4a;
}

.popup-band-Amador {
    border-color: #4a4a4a;
}

.popup-band-Lora {
    border-color: #4a4a4a;
}

/* barra superior subtil */
.popup-band-CB::before,
.popup-band-PMR::before,
.popup-band-Amador::before,
.popup-band-Lora::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
}

.popup-band-CB::before,
.popup-band-PMR::before,
.popup-band-Amador::before,
.popup-band-Lora::before {
    background: #3a3a3a;
}

.popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.popup-actions a {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid #5a5a5a;
    border-radius: 4px;
    background: #1f1f1f;
    color: #d6e9ff;
    text-decoration: none;
    font-size: 12px;
}

.popup-actions a:hover {
    background: #2a2a2a;
    border-color: #7a7a7a;
}

.popup-onair-row {
    color: #ff6b6b;
    font-weight: 700;
}

.ol-popup-closer {
    pointer-events: none;
}

.map-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.map-switcher .green-button.active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
    filter: brightness(1.08);
}
