/* =========================================================================
   IW0RQH - CSS LOCALE SPECIFICO PER SOTTODOMINIO MESHTASTIC
   Tutti i selettori sono incapsulati per prevenire conflitti globali
   ========================================================================= */

#mesh-container #mesh-map-card {
    padding: 15px;
    background: #1a1a1a; /* Adatto al tema scuro della tua stazione */
    border-radius: 8px;
    border: 1px solid #333;
}

#mesh-container #mesh-map-view {
    width: 100%;
    height: 700px; /* Spazio generoso per l'esplorazione geografica */
    border-radius: 6px;
    background-color: #242424;
    border: 1px solid #444;
}

/* Stilizzazione dei Marker personalizzati con icone FontAwesome */
.mesh-custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
}

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

/* Colore differenziato: Nodi Attivi (visti nelle ultime 2 ore) */
.mesh-custom-marker.mesh-active .mesh-marker-icon-wrapper {
    background: #0288d1; /* Azzurro radio vivo */
    border-color: #00e676; /* Cerchio esterno verde brillante */
    color: #ffffff;
}

/* Colore differenziato: Nodi Inattivi/Storici */
.mesh-custom-marker.mesh-inactive .mesh-marker-icon-wrapper {
    background: #3a3a3a;
    border-color: #757575;
    color: #b0bec5;
    opacity: 0.75;
}

/* Popup di Leaflet adattato allo stile dark della dashboard */
.leaflet-popup-content-wrapper {
    background: #222222 !important;
    color: #ffffff !important;
    border: 1px solid #444;
    font-family: inherit;
    border-radius: 6px;
}

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

/* Elementi interni al Popup */
.mesh-popup-title {
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    margin-bottom: 8px;
    color: #00e676;
}

.mesh-popup-row {
    font-size: 11px;
    margin-bottom: 4px;
    color: #ccc;
}

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

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