/* --- RESET E LAYOUT BASE --- */
body, html { 
    margin: 0; 
    padding: 0; 
    height: 100%; 
    background: #ff912c; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}
#map { 
    width: 100vw; 
    height: 100vh;
    display: block; /* Evita piccoli spazi bianchi sotto la mappa */
}

.leaflet-container {
    background: transparent !important;
}

/* --- STILE DEI PUNTI NUMERATI --- */
.custom-marker {
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.5);
    border: 2px solid white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Colori delle 3 Categorie */
.marker-pubblico { 
    background-color: #ffffff; /* Sfondo bianco */
    color: #ff912c;            /* Numero arancione */
    border-color: #ff912c;     /* Bordo arancione */
    text-shadow: none;         /* Togliamo l'ombra nera */
}
   /* --- NUOVA CLASSE PER I BAGNI --- */
.marker-bagni {
    background-color: #ffffff; 
    border-color: #ff912c; 
    text-shadow: none;
}
/* Stile per centrare l'icona dentro al pallino */
.marker-bagni img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.marker-joydistrict { background-color: #2196F3; } /* Blu */
.marker-joyworld { background-color: #F44336; } /* Rosso */

/* --- STILE DELLA NUVOLETTA (POP-UP) --- */
/* 1. Sfondo principale della nuvoletta */
.leaflet-popup-content-wrapper {
    background-color: #333333 !important;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

/* 2. Colore del "triangolino" sotto la nuvoletta */
.leaflet-popup-tip {
    background-color: #333333 !important; /* <-- DEVE ESSERE IDENTICO AL COLORE DI SFONDO QUI SOPRA */
}
.leaflet-popup-content { 
    margin: 0; 
    width: 280px !important; 
}
.popup-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.popup-text { 
    padding: 15px; 
}
.popup-text h3 { 
    margin: 0 0 8px 0; 
    color: #ff912c !important; 
    font-size: 18px;
}
.popup-text p { 
    margin: 0; 
    color: #ffffff !important; 
    line-height: 1.4; 
    font-size: 14px;
}
