.retailers-container {
    display: flex;
    height: 100vh;
}



.retailers-sidebar select, .retailers-sidebar input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

.retailers-sidebar ul {
    list-style: none;
    padding: 0;
}

.retailers-sidebar li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.retailers-sidebar li:hover {
    background: #eaeaea;
}

#map {
    width: 60%;
    height: 100vh;
}

.retailers-sidebar a {
    color: #001b6c;
    text-decoration: none;
}

.retailers-sidebar a:hover {
    text-decoration: underline;
}
/* Rimuove bordi e ombre dalle etichette */
.custom-marker div {
    text-decoration: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: inline-block;
    line-height: normal !important;
}

/* Assicura che il testo sia centrato e senza bordi */
.custom-marker div:last-child {
    text-decoration: none !important;
    border: none !important;
    padding: 3px 6px !important;
    background: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.2); /* Aggiunge un leggero contrasto */
}
.category-label {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transform: translateY(-15px); /* Sposta leggermente l'etichetta */
}
#searchResults {
    position: absolute;
    width: 100%;
    max-width: 450px;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.search-result-item:hover {
    background: #f0f0f0;
}

/* Struttura principale */
.retailers-container {
    display: flex;
    flex-direction: row;
    height: 100vh; /* Usa tutta l'altezza della finestra */
}

/* Sidebar */
.retailers-sidebar {
    width: 40%;
    max-width: 500px;
    min-width: 280px;
    padding: 15px;
    background: #f8f8f8;
    overflow-y: auto;
    height: 100%;
    border-right: 2px solid #ddd;
}

/* Mappa */
#map {
    flex-grow: 1;
    height: 100%;
    position: relative; /* Oppure absolute se necessario */
    z-index: 0; /* Assicura che rimanga sotto il menu */

}
/* Assicura che il top menu sia sempre sopra la mappa */
.top-menu {
    position: relative;
    z-index: 1000; /* Valore alto per sovrapporsi alla mappa */
}


/* Risultati di ricerca */
#searchResults {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    width: calc(100% - 30px);
    z-index: 999;
}

#searchResults li {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

#searchResults li:hover {
    background: #ddd;
}

/* Lista rivenditori */
#retailersList {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    max-height: 80vh;
 }

#retailersList li {
    background: white;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;
}

#retailersList li:hover {
    background: #e0e0e0;
}

/* Mobile (schermi piccoli) */
@media (max-width: 768px) {
    .retailers-container {
        flex-direction: column;
        height: auto;
    }

    .retailers-sidebar {
        width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 2px solid #ddd;
        height: auto;
        max-height: 50vh;
        overflow-y: auto;
    }

    #map {
        width: 100%;
        height: 50vh;
    }

    #searchResults {
        width: 100%;
    }

    #retailersList {
        max-height: 30vh;
    }
}

