* {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #0b0b0b;
    font-family: Arial, sans-serif;
    overflow: hidden;
}
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}
/* TOP BAR */
#topBar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    color: #fff;
    z-index: 10;
    font-size: 14px;
}
/* CONTROLLI FLOAT */
#controls {
    position: absolute;
    bottom: 20px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}
.btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
/* INFO BOX */
#infoBox {
    position: absolute;
    bottom: 20px;
    left: 10px;
    z-index: 10;
}
#infoContent {
    display: none;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    max-width: 220px;
}
/* MOBILE */
@media (max-width: 768px) {
    #topBar {
        font-size: 12px;
        height: 45px;
    }
    .btn {
        width: 40px;
        height: 40px;
    }
}

/* Sovrascriviamo lo stile standard di MapLibre per areaventuno */
.maplibregl-ctrl-group {
    background-color: rgba(30, 41, 59, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(4px);
}
.maplibregl-ctrl-group button {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.maplibregl-ctrl-group button span {
    filter: invert(1) brightness(2); /* Rende le icone zoom/fullscreen bianche */
}