/* ==========================================================================
   A.R.M.S. MESHTASTIC - CONFIGURAZIONE FULLSCREEN, LIVELLI E PULSANTI
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #111111;
    overflow: hidden;
}

#arms-map-fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
}

#mesh-map-view {
    width: 100% !important;
    height: 100% !important;
    background-color: #111111 !important;
}

/* ==========================================================================
   A.R.M.S. MESHTASTIC - BANNER SUPERIORE STRUTTURA SNELLA
   ========================================================================== */

#arms-map-banner {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid #333333;
    padding: 10px 22px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    font-family: 'Urbanist', sans-serif;
    transition: all 0.3s ease-in-out;
}

.banner-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: #00e676; /* Verde operativo */
    letter-spacing: 1px;
}

.meshtastic-logo-mask {
    width: 28px;
    height: 28px;
    background-color: #00e676;
    -webkit-mask: url('../media/meshtastic_48.svg') no-repeat center / contain;
    mask: url('../media/meshtastic_48.svg') no-repeat center / contain;
    display: inline-block;
    flex-shrink: 0;
}

.banner-title {
    font-size: 14px;
    color: #ffffff; /* Testo bianco */
    font-weight: 600;
    border-left: 1px solid #444444;
    padding-left: 15px;
    letter-spacing: 0.5px;
    white-space: nowrap; 
}

#node-counter {
    display: inline-block;
    vertical-align: middle;
    font-size: 11px;
    font-weight: 600;
    color: #00e676;
    margin-left: 8px;
    white-space: nowrap;
}

/* ==========================================================================
   ADATTAMENTO MOBILE STRUTTURA SNELLA (SCHERMI FINO A 768px)
   ========================================================================== */
@media (max-width: 768px) {
    #arms-map-banner {
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        border-top: none;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid #333333;
        padding: 12px 15px;
        box-sizing: border-box;
        justify-content: flex-start;
        background-color: #1a1a1a;
    }

    .banner-logo {
        font-size: 15px;
    }
    
    .meshtastic-logo-mask {
        width: 18px;
        height: 18px;
    }

    .banner-title {
        font-size: 12px;
        padding-left: 10px;
        display: block !important; 
    }

    .leaflet-top {
        top: 60px !important;
    }
}

@media (max-width: 380px) {
    .banner-logo {
        font-size: 14px;
    }
    .banner-title {
        font-size: 10px;
        padding-left: 8px;
    }
}

.leaflet-top {
    top: 60px !important; 
}

/* Pulsante Home riposizionato in basso a sinistra */
.map-back-btn {
    position: absolute;
    bottom: 25px;
    left: 20px;
    z-index: 1000;
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    border: 1px solid #333333;
    transition: all 0.2s ease-in-out;
}

.map-back-btn:hover {
    background-color: #222222;
    color: #00e676;
    border-color: #00e676;
}

@media (max-width: 768px) {
    .map-back-btn {
        bottom: 20px;
        left: 15px;
        padding: 14px 18px; 
        font-size: 16px;
    }
    
    .leaflet-bar a, .leaflet-control-layers-toggle {
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
    }
}

/* Stilizzazione Dark del pannello Layer Control di Leaflet */
.leaflet-control-layers {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    border-radius: 6px !important;
    font-family: inherit !important;
    font-size: 12px !important;
}

.leaflet-control-layers-expanded {
    padding: 10px !important;
}

/* Marker e Icone Mesh Base */
.mesh-custom-marker {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.2s ease-in-out;
}

.mesh-marker-icon-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    background: #2c3e50;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
    font-size: 14px !important;
    box-sizing: border-box !important;
}

.mesh-custom-marker.mesh-active .mesh-marker-icon-wrapper {
    background: #0288d1 !important;
    border-color: #00e676 !important;
    color: #ffffff !important;
}

.mesh-custom-marker.mesh-inactive .mesh-marker-icon-wrapper {
    background: #3a3a3a !important;
    border-color: #757575 !important;
    color: #b0bec5 !important;
    opacity: 0.75 !important;
}

/* Stile per i link geografici cliccabili nei popup della mappa */
.mesh-popup-geo-link {
    color: #00ff66; /* Un verde brillante perfettamente leggibile sul tema scuro */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed #00ff66;
    transition: color 0.2s ease;
}

.mesh-popup-geo-link:hover {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
}

/* ==========================================================================
   STILIZZAZIONE VETTORIALE CONFINI REGIONALI GEOJSON (MASTER PROMPT)
   ========================================================================== */

.mesh-region-polygon {
    fill-color: transparent !important;
    fill-opacity: 0 !important;             /* Totalmente trasparente all'interno */
    stroke: #444444 !important;             /* Colore del confine (Grigio scuro discreto) */
    stroke-width: 1.5px !important;         /* Spessore della linea di confine */
    stroke-opacity: 0.6 !important;         /* Opacità del bordo per non appesantire la vista */
    pointer-events: none !important;        /* Impedisce al poligono di intercettare i click (vanno ai marker sotto) */
}

/* ==========================================================================
   A.R.M.S. MESHTASTIC - CARATTERIZZAZIONE MARKER CANALI DEDICATI
   ========================================================================== */

/* Variante Legacy: Canale ARMS (Arancione) */
.mesh-custom-marker.mesh-channel-arms .mesh-marker-icon-wrapper {
    background-color: #ff6d00 !important; 
    border-color: #00e676 !important;     
    color: #ffffff !important;             
    box-shadow: 0 0 15px rgba(255, 109, 0, 0.75); 
}
.mesh-custom-marker.mesh-channel-arms:hover .mesh-marker-icon-wrapper {
    background-color: #ffab40 !important;
    box-shadow: 0 0 20px rgba(255, 171, 64, 0.9);
}

/* NUOVA Variante Speciale: Canale SOS-Italia (Rosso Operativo / Fluo) */
.mesh-custom-marker.mesh-channel-sos .mesh-marker-icon-wrapper {
    background-color: #d32f2f !important; /* Rosso Carico Emergenza */
    border-color: #ff1744 !important;     /* Bordo Rosso Neon */
    color: #ffffff !important;             
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.85); 
}
.mesh-custom-marker.mesh-channel-sos:hover .mesh-marker-icon-wrapper {
    background-color: #ff1744 !important; /* Accensione in hover */
    box-shadow: 0 0 22px rgba(255, 23, 68, 1);
}

/* ==========================================================================
   ANIMAZIONE CORRETTA SENZA ALTERAZIONE DELL'ANCORAGGIO GEOGRAFICO
   ========================================================================== */

@keyframes meshArmsPulseNotification {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.8);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(0, 230, 118, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

/* Applicazione pulita al wrapper interno */
.mesh-marker-pulse-active .mesh-marker-icon-wrapper {
    animation: meshArmsPulseNotification 2s infinite ease-in-out;
    border-color: #00e676 !important; /* Bordo verde brillante di notifica */
    will-change: box-shadow; /* GPU pre-allocation sicura */
}

/* ==========================================================================
   COLORAZIONE DINAMICA PER NUMERO CANALE (Solo per Nodi Attivi)
   ========================================================================== */

/* Canale 0: SOS-Italia -> Rosso Operativo */
.mesh-custom-marker.mesh-active.mesh-ch-num-0 .mesh-marker-icon-wrapper {
    background-color: #d32f2f !important;
    border-color: #ff1744 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(211, 47, 47, 0.85);
}
.mesh-custom-marker.mesh-active.mesh-ch-num-0:hover .mesh-marker-icon-wrapper {
    background-color: #ff1744 !important;
    box-shadow: 0 0 18px rgba(255, 23, 68, 1);
}

/* Canale 1: SOS-Umbria -> Verde Smeraldo Operativo */
.mesh-custom-marker.mesh-active.mesh-ch-num-1 .mesh-marker-icon-wrapper {
    background-color: #2e7d32 !important;
    border-color: #00e676 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.8);
}
.mesh-custom-marker.mesh-active.mesh-ch-num-1:hover .mesh-marker-icon-wrapper {
    background-color: #4caf50 !important;
    box-shadow: 0 0 16px rgba(76, 175, 80, 1);
}

/* Canale 2: SOS-Test -> Giallo/Oro */
.mesh-custom-marker.mesh-active.mesh-ch-num-2 .mesh-marker-icon-wrapper {
    background-color: #fbc02d !important;
    border-color: #00e676 !important;
    color: #111111 !important; /* Testo scuro per massimo contrasto sul giallo */
    box-shadow: 0 0 10px rgba(251, 192, 45, 0.7);
}
.mesh-custom-marker.mesh-active.mesh-ch-num-2:hover .mesh-marker-icon-wrapper {
    background-color: #fdd835 !important;
    box-shadow: 0 0 16px rgba(253, 216, 53, 0.9);
}

/* Canale 3: LoRa-Italia -> Azzurro Standard */
.mesh-custom-marker.mesh-active.mesh-ch-num-3 .mesh-marker-icon-wrapper {
    background-color: #0288d1 !important;
    border-color: #00e676 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(2, 136, 209, 0.7);
}
.mesh-custom-marker.mesh-active.mesh-ch-num-3:hover .mesh-marker-icon-wrapper {
    background-color: #29b6f6 !important;
    box-shadow: 0 0 16px rgba(41, 182, 246, 0.9);
}

/* Canale 4: ARMS-SEC -> Ambra/Arancione Vivo (Stile Legacy ARMS) */
.mesh-custom-marker.mesh-active.mesh-ch-num-4 .mesh-marker-icon-wrapper {
    background-color: #ff6d00 !important; 
    border-color: #00e676 !important;     
    color: #ffffff !important;             
    box-shadow: 0 0 12px rgba(255, 109, 0, 0.75); 
}
.mesh-custom-marker.mesh-active.mesh-ch-num-4:hover .mesh-marker-icon-wrapper {
    background-color: #ffab40 !important;
    box-shadow: 0 0 18px rgba(255, 171, 64, 0.9);
}

/* Canale 5: ALT_5 -> Viola / Magenta Operativo */
.mesh-custom-marker.mesh-active.mesh-ch-num-5 .mesh-marker-icon-wrapper {
    background-color: #9c27b0 !important;
    border-color: #00e676 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.7);
}
.mesh-custom-marker.mesh-active.mesh-ch-num-5:hover .mesh-marker-icon-wrapper {
    background-color: #ba68c8 !important;
    box-shadow: 0 0 16px rgba(186, 104, 200, 0.9);
}

/* Canale 6: ALT_6 -> Ciano / Ottanio */
.mesh-custom-marker.mesh-active.mesh-ch-num-6 .mesh-marker-icon-wrapper {
    background-color: #009688 !important;
    border-color: #00e676 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 150, 136, 0.7);
}
.mesh-custom-marker.mesh-active.mesh-ch-num-6:hover .mesh-marker-icon-wrapper {
    background-color: #4db6ac !important;
    box-shadow: 0 0 16px rgba(77, 182, 172, 0.9);
}

/* Canale 7: ALT_7 -> Giallo / Oro */
.mesh-custom-marker.mesh-active.mesh-ch-num-7 .mesh-marker-icon-wrapper {
    background-color: #fbc02d !important;
    border-color: #00e676 !important;
    color: #111111 !important; /* Testo scuro per massimo contrasto sul giallo */
    box-shadow: 0 0 10px rgba(251, 192, 45, 0.7);
}
.mesh-custom-marker.mesh-active.mesh-ch-num-7:hover .mesh-marker-icon-wrapper {
    background-color: #fdd835 !important;
    box-shadow: 0 0 16px rgba(253, 216, 53, 0.9);
}

/* ==========================================================================
   STRUTTURA UNIFICATA POPUP DARK LEAFLET
   ========================================================================== */
.leaflet-popup-content-wrapper {
    background: #222222 !important;
    color: #ffffff !important;
    border: 1px solid #444444;
    border-radius: 6px;
}

.leaflet-popup-tip {
    background: #222222 !important;
}

.mesh-popup-title {
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #444444;
    padding-bottom: 5px;
    margin-bottom: 8px;
    color: #00e676;
}

.mesh-popup-row {
    font-size: 12px; 
    margin-bottom: 3px;
    color: #cccccc;
}

.mesh-popup-row strong {
    color: #aaaaaa;
}

.mesh-popup-msg {
    margin-top: 6px;
    padding: 4px;
    background: #111111;
    border-left: 2px solid #0288d1;
    font-style: italic;
    font-size: 11px;
    color: #e0e0e0;
}

/* ==========================================================================
   A.R.M.S. MESHTASTIC - EFFETTO ONDE RADIO PER EMERGENZA SOS
   ========================================================================== */

/* Animazione per l'impulso radio concentrico (Onde radio espanse) */
@keyframes meshRadioWaves {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.8), 
                    0 0 0 0 rgba(255, 23, 68, 0.5);
    }
    100% {
        /* Crea due anelli concentrici che si allargano verso l'esterno sfumando */
        box-shadow: 0 0 0 25px rgba(255, 23, 68, 0), 
                    0 0 0 50px rgba(255, 23, 68, 0);
    }
}

/* 1. SOS - ROSSO ASSOLUTO CON EMISSIONE ONDE RADIO CONTINUA (Priorità 3) */
.mesh-custom-marker.mesh-alert-active-sos .mesh-marker-icon-wrapper,
.mesh-custom-marker.mesh-active.mesh-alert-active-sos .mesh-marker-icon-wrapper {
    background-color: #ff1744 !important; 
    border: 2px solid #ffffff !important;     
    color: #ffffff !important;
    /* Innesca l'animazione box-shadow simulando la propagazione delle onde */
    animation: meshRadioWaves 1.8s infinite cubic-bezier(0.25, 0, 0, 1) !important;
}

.mesh-custom-marker.mesh-alert-active-sos,
.mesh-custom-marker.mesh-active.mesh-alert-active-sos {
    z-index: 9999 !important;              
}

/* 2. INCENDIO - COLORE FUOCO INTENSO LAMPEGGIANTE (Priorità 3) */
.mesh-custom-marker.mesh-alert-active-fire .mesh-marker-icon-wrapper,
.mesh-custom-marker.mesh-active.mesh-alert-active-fire .mesh-marker-icon-wrapper {
    background-color: #d50000 !important;
    border: 2px solid #ffea00 !important;     
    color: #ffea00 !important;
    animation: meshFireBlink 1.8s infinite ease-in-out !important;
}
.mesh-custom-marker.mesh-alert-active-fire,
.mesh-custom-marker.mesh-active.mesh-alert-active-fire {
    z-index: 9998 !important;
}

/* 3. PERICOLO/GEOLOGICO - GIALLO MODERATO (Priorità 2) */
.mesh-custom-marker.mesh-alert-active-geo .mesh-marker-icon-wrapper,
.mesh-custom-marker.mesh-active.mesh-alert-active-geo .mesh-marker-icon-wrapper {
    background-color: #ffea00 !important;
    border: 2px solid #1a1a1a !important;     
    color: #1a1a1a !important;                
    box-shadow: 0 0 15px rgba(255, 234, 0, 1) !important;
}
.mesh-custom-marker.mesh-alert-active-geo,
.mesh-custom-marker.mesh-active.mesh-alert-active-geo {
    z-index: 9997 !important;
}

/* 4. SENTIERO INTERROTTO - VIOLA OPERATIVO INFORMATIVO (Priorità 1) */
.mesh-custom-marker.mesh-alert-active-work .mesh-marker-icon-wrapper,
.mesh-custom-marker.mesh-active.mesh-alert-active-work .mesh-marker-icon-wrapper {
    background-color: #7b1fa2 !important;     
    border: 2px solid #ffffff !important;     
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(123, 31, 162, 0.8) !important;
}
.mesh-custom-marker.mesh-alert-active-work,
.mesh-custom-marker.mesh-active.mesh-alert-active-work {
    z-index: 9996 !important;
}

/* 5. MALTEMPO / CONDIZIONI METEO AVVERSE (Priorità 2) */
.mesh-custom-marker.mesh-alert-active-weather .mesh-marker-icon-wrapper,
.mesh-custom-marker.mesh-active.mesh-alert-active-weather .mesh-marker-icon-wrapper {
    background-color: #0d47a1 !important; /* Blu notte intenso operativo */
    border: 2px solid #00e676 !important;     /* Mantiene il bordo online */
    color: #ffffff !important;                /* Icona bianca */
    box-shadow: 0 0 15px rgba(13, 71, 161, 1) !important;
}
.mesh-custom-marker.mesh-alert-active-weather,
.mesh-custom-marker.mesh-active.mesh-alert-active-weather {
    z-index: 9995 !important;
}

/* Struttura base del pallino colorato nel menu dei canali */
.mesh-menu-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Colore per il canale: LoRa ITALIA (Azzurro fedele al marker) */
.mesh-menu-color-dot.lora-italia {
    background-color: #38aadd; /* Tonalità esatta dell'azzurro dei marker standard */
    box-shadow: 0 0 6px #38aadd;
}

/* Colore per il canale: ARMS-SEC (Ambra/Arancione fedele alla stazione attiva) */
.mesh-menu-color-dot.arms-sec {
    background-color: #ff8c00; /* L'arancione/ambra vivo della tua stazione speciale */
    box-shadow: 0 0 6px #ff8c00;
}

/* Fallback per canali sconosciuti o default */
.mesh-menu-color-dot.default, 
.mesh-menu-color-dot.unknown {
    background-color: #888888;
}

/* ==========================================================================
   A.R.M.S. MESHTASTIC - APPARATO CLUSTER NEUTRO RETROILLUMINATO (OPZIONE 1)
   ========================================================================== */

/* Contenitore e Bordo esterno con retroilluminazione (Glow effect) Blu Notte */
.mesh-cluster-glow-blue {
    background: rgba(10, 25, 47, 0.75) !important; /* Blu notte scuro semi-trasparente */
    border: 2px solid #0288d1 !important;          /* Azzurro operativo coordinato con la mappa */
    border-radius: 50% !important;
    box-shadow: 0 0 14px rgba(2, 136, 209, 0.85), inset 0 0 8px rgba(2, 136, 209, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease-in-out;
}

/* Effetto dinamico al passaggio del mouse sul cluster */
.mesh-cluster-glow-blue:hover {
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.9), inset 0 0 10px rgba(0, 230, 118, 0.6) !important;
    border-color: #00e676 !important; /* Cambia temporaneamente in verde operativo */
}

/* Testo numerico interno (Conteggio nodi nel cluster) */
.mesh-cluster-inner {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;        /* Numero sempre bianco puro ad alta leggibilità */
    font-weight: 700 !important;      /* Grassetto marcato per la lettura sul campo */
    font-size: 13px !important;
    font-family: 'Urbanist', sans-serif !important; /* Integrato con la famiglia font del banner */
    letter-spacing: 0.5px;
}

/* ==========================================================================
   PROGETTO A.R.M.S. - STILE POPUP METEOALARM (INTEGRAZIONE MAPPA)
   ========================================================================== */

/* Contenitore principale della lista allerte */
.arms-alert-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 8px 0 0 0 !important;
}

/* Singolo elemento di rischio */
.arms-popup-item {
    margin-bottom: 10px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.arms-popup-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Intestazione del rischio con allineamento orizzontale */
.arms-popup-risk-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 4px;
}

/* Icone dei rischi meteo con retroilluminazione cromatica sfumata */
.arms-popup-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
}
.arms-popup-icon.icon-yellow { color: #f39c12; }
.arms-popup-icon.icon-orange { color: #d35400; }
.arms-popup-icon.icon-red { color: #c0392b; }

.arms-popup-risk-name {
    font-weight: 600;
    color: #ffffff;
    flex-grow: 1;
}

/* Badge cromatici per i livelli di allerta */
.badge-meteo {
    font-size: 10px !important;
    text-transform: uppercase;
    font-weight: 700;
    padding: 2px 6px !important;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.badge-meteo-yellow {
    background-color: rgba(243, 156, 18, 0.2) !important;
    color: #f39c12 !important;
    border: 1px solid #f39c12;
}

.badge-meteo-orange {
    background-color: rgba(211, 84, 0, 0.2) !important;
    color: #d35400 !important;
    border: 1px solid #d35400;
}

.badge-meteo-red {
    background-color: rgba(192, 57, 43, 0.2) !important;
    color: #c0392b !important;
    border: 1px solid #c0392b;
}

/* Riga temporale di validità del bollettino */
.arms-popup-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px !important;
    color: #aaaaaa !important;
    margin-left: 26px; /* Allineato perfettamente sotto il testo saltando l'icona */
}

.arms-popup-date i {
    font-size: 10px;
    color: #666666;
}

/* ==========================================================================
   SERVIZIO SISMICO A.R.M.S. - STILI CARTOGRAFICI E POPUP (CORRETTO)
   ========================================================================== */

/* Nuova animazione pulsante sui vettori sismici (Fucsia/Magenta) */
@keyframes sismicBlink {
    0% {
        stroke-opacity: 0.9;
        stroke-width: 1px;
    }
    50% {
        stroke-opacity: 0.4;
        stroke-width: 5px; /* Effetto onda leggermente accentuato */
    }
    100% {
        stroke-opacity: 0.9;
        stroke-width: 1px;
    }
}

.mesh-sismic-pulsing-marker {
    animation: sismicBlink 1.8s infinite ease-in-out;
}

/* Cluster personalizzato per la Microsismicità - Colore Viola/Magenta Neon */
.mesh-cluster-inner-sismic {
    width: 30px;
    height: 30px;
    line-height: 26px; /* Centramento verticale perfetto considerando il bordo */
    background: rgba(188, 0, 221, 0.15);
    border: 2px solid #bc00dd;
    color: #bc00dd;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    font-size: 11px;
    box-shadow: 0 0 10px rgba(188, 0, 221, 0.6);
}

/* Design unificato per i Popup Sismici */
.arms-map-popup.sismico-popup {
    padding: 4px;
    min-width: 240px;
}

.arms-map-popup.sismico-popup h3 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #ffffff;
    border-bottom: 1px solid #333;
    padding-bottom: 4px;
    font-family: sans-serif;
}

.arms-map-popup.sismico-popup .arms-popup-row-data {
    font-size: 11px;
    color: #ccc;
    margin: 4px 0;
}

.arms-map-popup.sismico-popup .arms-popup-row-data b {
    color: #fff;
}

.arms-map-popup.sismico-popup .badge-sismico {
    display: inline-block;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: bold;
    border-radius: 3px;
    margin-left: auto;
    float: right;
}

.arms-map-popup.sismico-popup .status-reviewed {
    background: #27ae60;
    color: #fff;
}

.arms-map-popup.sismico-popup .status-auto {
    background: #e67e22;
    color: #fff;
}

.arms-map-popup.sismico-popup .arms-popup-date {
    margin-top: 8px;
    font-size: 10px;
    color: #888;
    border-top: 1px solid #222;
    padding-top: 4px;
}