/* meteo-mapa.css — Стилови за температурна карта по општини */

/* ── Целосна висина ── */
.page-meteo-mapa main {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 58px);
    padding: 0;
}

/* ── Статус лента ── */
#mapa-statusbar {
    background: rgba(11, 31, 53, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

#mapa-update-time {
    color: rgba(255,255,255,0.45);
    font-weight: 400;
}

/* ── Легенда ── */
#mapa-legend {
    background: rgba(11, 31, 53, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 7px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.mapa-leg-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.78);
    white-space: nowrap;
}

.mapa-leg-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    flex-shrink: 0;
}

/* ── Карта wrap ── */
#meteo-mapa-wrap {
    flex: 1;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 160px);
}

/* ── Leaflet карта ── */
#meteo-mapa {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 160px);
    background: transparent !important;
}

/* Отстрани сиво Leaflet тило ── */
.leaflet-container {
    background: transparent !important;
}

/* ── Tooltip ── */
.mapa-tooltip {
    background: rgba(11, 31, 53, 0.95) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
    padding: 0 !important;
}

.mapa-tooltip::before {
    display: none !important;
}

.leaflet-tooltip.mapa-tooltip {
    background: rgba(11, 31, 53, 0.95);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 0;
}

.mapa-popup {
    padding: 10px 14px;
    min-width: 120px;
    text-align: center;
}

.mapa-popup-name {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.mapa-popup-temp {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

/* ── Zoom контрола ── */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35) !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    background: rgba(11, 31, 53, 0.88) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    font-size: 16px !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    transition: background .15s ease !important;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
    background: rgba(41,182,246,0.3) !important;
}

/* Футерот под картата */
.page-meteo-mapa #site-footer {
    position: relative;
    z-index: 0;
}

body.page-meteo-mapa #site-footer {
    margin-top: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    #mapa-legend {
        gap: 5px 10px;
        padding: 6px 12px;
    }
    .mapa-leg-item { font-size: 9.5px; }
    #meteo-mapa-wrap { min-height: 400px; }
    #meteo-mapa { min-height: 400px; }
}

@media (max-width: 480px) {
    #mapa-legend { gap: 4px 8px; }
    .mapa-leg-item { font-size: 9px; }
}