html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}
#map {
    height: 100%;
    width: 100%;
}
#sidebar {
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
}
#sidebar-content {
    flex-grow: 1;
    overflow-y: auto;
}
#sidebar.hidden-sidebar {
    transform: translateX(-100%);
}
.leaflet-top.leaflet-left {
    margin-top: 70px;
}

/* Stile per i Marker personalizzati */
.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.marker-pin i {
    color: white;
    transform: rotate(45deg);
    font-size: 14px;
}

/* === MODIFICHE PER DARK MODE === */
/* Inverte i colori della mappa per creare un effetto "Mappa Notturna" */
html.dark .leaflet-layer,
html.dark .leaflet-control-zoom-in,
html.dark .leaflet-control-zoom-out,
html.dark .leaflet-control-attribution {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* Stile per i Popup di Leaflet in Dark Mode */
html.dark .leaflet-popup-content-wrapper,
html.dark .leaflet-popup-tip {
    background-color: #1f2937;
    color: #f3f4f6;
}

/* Scrollbar personalizzata per Dark Mode */
html.dark ::-webkit-scrollbar-track { background: #1f2937; }
html.dark ::-webkit-scrollbar-thumb { background: #4b5563; }