﻿/* Rilevazioni Regionali — mappa stazioni Prot. Civile + Meteomin (UD08) */

h1 {
    text-align: center;
    color: var(--colore-secondario);
    background-color: var(--colore-primario);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.rr-sottotitolo {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Selettore variabile */
.rr-selettori {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.rr-btn {
    padding: 8px 18px;
    background-color: #fff;
    color: var(--colore-primario);
    border: 1px solid var(--colore-primario);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-base);
    transition: background-color 0.15s, color 0.15s;
}

.rr-btn:hover {
    background-color: #eaf2f8;
}

.rr-btn.attivo {
    background-color: var(--colore-primario);
    color: var(--colore-secondario);
}

/* Info aggiornamento */
.rr-info {
    text-align: center;
    padding: 8px;
    background: var(--colore-primario);
    color: var(--colore-secondario);
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

/* Mappa */
.rr-mappa {
    width: 100%;
    height: 600px;
    margin: 0 auto;
    border-radius: 6px;
    border: 1px solid var(--colore-bordo-contenuto);
    background: #eef2f5;
}

/* Legenda scala colore */
.rr-legenda {
    max-width: 560px;
    margin: 12px auto 0;
    text-align: center;
}

.rr-legenda-titolo {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--colore-primario);
    margin-bottom: 4px;
}

.rr-legenda-barra {
    height: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.rr-legenda-tacche {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #555;
    margin-top: 2px;
}

/* ============================================================
   Marker stazione: pastiglia con il valore della variabile scelta
   ============================================================ */
.st-marker-wrap {
    background: transparent !important;
    border: none !important;
}

.st-marker {
    text-align: center;
    width: 84px;
}

.st-loc {
    font-size: 0.68rem;
    font-weight: 700;
    color: #1b2a38;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 3px #fff, 0 0 3px #fff;
}

.st-val {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 38px;
    margin-top: 1px;
    padding: 2px 8px;
    border-radius: 11px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Freccia direzione vento (modalita' Vento) */
.st-arrow {
    display: inline-block;
    font-size: 0.9rem;
    line-height: 1;
}

/* Evidenziazione della stazione propria (UD08) */
.st-marker.st-mine .st-val {
    box-shadow: 0 0 0 2px #ffd24d, 0 1px 4px rgba(0, 0, 0, 0.4);
}

.st-marker.st-mine .st-loc::before {
    content: "\2605 "; /* stella */
    color: #e6a700;
}

/* Popup */
.rr-popup strong {
    color: var(--colore-primario);
}

.rr-popup .rr-mine-badge {
    display: inline-block;
    background: #ffd24d;
    color: #5a4500;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0 6px;
    border-radius: 8px;
    margin-left: 4px;
}

.rr-popup table {
    border-collapse: collapse;
    margin-top: 4px;
}

.rr-popup td {
    padding: 1px 6px 1px 0;
    font-size: 0.86rem;
    white-space: nowrap;
}

.rr-popup td.rr-k {
    color: #666;
}

.rr-popup .rr-ts {
    color: #888;
    font-size: 0.78rem;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .rr-mappa {
        height: 460px;
    }
    .rr-btn {
        padding: 7px 13px;
        font-size: 0.82rem;
    }
}
