/* Conteneur de la carte */
#vci-map {
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 1em 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

#vci-map-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    min-width: 100%;
}


/* Bloc de filtres en overlay */
#vci-category-filter-wrapper {
    position: absolute;
    top: 80px;
    left: 10px;;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    max-width: 300px;
}

/* Cacher les filtres par défaut */
#vci-category-filter {
    margin-top: 10px;
}

#vci-category-filter label {
    margin-bottom: 5px;
    display: block;
    font-size: 14px;
}

#vci-toggle-filter {
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    /*box-shadow: 0 2px 4px rgba(0,0,0,0.2);*/
}

#vci-toggle-filter:hover {
    background: #1a242f;
}

#vci-category-filter-wrapper {
    position: absolute;
    top: 90px;
    left: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    max-width: 300px;
    font-family: sans-serif;
    font-size: 14px;
}

#vci-category-filter label {
    display: block;
    margin-bottom: 6px;
    cursor: pointer;
}

#vci-category-filter input[type="checkbox"] {
    margin-right: 6px;
}

.leaflet-popup-content-wrapper {
  min-width: 350px;
}

/* Responsive : pleine largeur sur mobile */
@media screen and (max-width: 600px) {
    .leaflet-popup-content-wrapper {
        min-width: 150px;
        max-width: 90vw; /* Pour éviter que ça déborde */
    }
}
