.search-bar {
    padding: 5px;
    background-color: #ffb700;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin: unset !important;
}

div.form-group:not(:last-child) {
    padding-right: 0px !important;
}

.filters {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-row {
    align-items: center;
}

.box-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.box-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating {
    visibility: hidden;
    background-color: #003580;
    color: white;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 5px;
}

.price {
    color: #0071c2;
    font-size: 1rem;
    font-weight: bold;
}

#map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
}

/* Container de la carte */
#map-container {
    position: relative;
    height: 400px;
    /* Hauteur initiale */
}


/* Bouton agrandir/réduire */
#expand-map-btn {
    top: 10px;
    right: 10px;
    z-index: 1000;
}

/* Mode plein écran */
#map-container.fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    background: #fff;
}

/* Carte en plein écran */
#map-container.fullscreen #map {
    width: 100% !important;
    height: 100% !important;
}

#expand-map-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.4) !important;
    /* fond semi-transparent */
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#expand-map-btn:hover {
    background-color: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
    /* léger agrandissement au survol */
}

#map-container.fullscreen #expand-map-btn {
    top: 20px;
    right: 20px;
}

.leaflet-popup {
    width: 125px !important;
}

.leaflet-popup-content {
    margin: 5px !important;
}

.leaflet-popup-content p {
    margin: 0 !important;
}

.custom-popup {
    max-width: 250px;
    font-size: 14px;
}

.custom-popup img.card-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 8px;
}

.slider-wrapper {
    max-width: 500px;
    margin: auto;
}

#price-slider {
    margin-top: 40px;
}

.price-display {
    font-size: 14px;
    font-weight: 500;
}

/* Style du slider */
.noUi-target {
    background: #ccc;
    height: 4px;
    border-radius: 2px;
    border: none;
}

.noUi-connect {
    background: #007bff;
}

.noUi-horizontal .noUi-handle {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #007bff;
    border: none;
    top: -9px;
    box-shadow: none;
    cursor: pointer;
}

.noUi-tooltip {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
}

.noUi-handle:after,
.noUi-handle:before {
    display: none;
}

#promo-slider {
    position: relative;
    border: 3px solid #ff4d4d;
    /* Rouge promo */
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s;
}

/* Badge "Promo" */
.promo-badge {
    position: absolute;
    top: 10px;
    left: -20px;
    background: #ff4d4d;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 20px;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Image promo */
.promo-box img {
    height: 250px !important;
    object-fit: cover;
    width: 100% !important;
    display: block;
}

/* Texte en bas */
.promo-content {
    padding: 15px;
    text-align: center;
}

.promo-price {
    display: none;
    /*  margin-top: 10px;
  font-size: 18px;*/
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

.new-price {
    color: #d00;
    font-weight: bold;
}


/* Conteneur global du marker */
.price-marker {
    background: transparent;
    border: none;
}

/* Structure du marker : bulle + flèche */
.marker-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Bulle principale avec le prix */
.marker-bubble {
    background: #0070c0;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 20px;
    padding: 6px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    transition: all 0.2s ease;
}

/* Pointe du marker */
.marker-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #0070c0;
    margin-top: -2px;
}

/* Effet au survol */
.marker-container:hover .marker-bubble {
    background: #1745a3;
    transform: scale(1.1);
    cursor: pointer;
}

/* Version promo (rouge) */
.marker-container.promo .marker-bubble {
    background: #e63946;
}

.marker-container.promo .marker-arrow {
    border-top-color: #e63946;
}

.box-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.box-options .option {
    background: #f1f5f9;
    color: #1e3a8a;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.box-options .option i {
    color: #0070c0;
    font-size: 14px;
}

/* Container Splide */
#same-department-slider .splide__list {
    display: flex;
    align-items: stretch;
    /* tous les slides auront la même hauteur */
}

/* Chaque slide Splide */
.splide__slide {
    padding-top: 10px;
    display: flex;
    /* nécessaire pour que le slide contienne le single-slide-box */
}

/* Slide box */
.single-slide-box {
    background: #f0f4f8;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 1rem 0.5rem 2rem 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    z-index: 1;
    width: 100%;
    flex: 1;
    /* permet au slide de s'étirer pour avoir la même hauteur */
}

/* Hover effect */
.single-slide-box:hover {
    transform: translateY(-8px);
}

/* Slide content */
.slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    /* remplit tout le bloc pour uniformité */
}

.slide-content h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.3;
    word-break: break-word;
}

/* Cercle du nombre de box */
.box-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #003b95;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
}

/* Texte "box disponibles" */
.slide-content p {
    font-size: 1rem;
    color: #000;
    margin-top: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Splide arrows above content */
.splide__arrow {
    z-index: 10;
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .single-slide-box {
        padding: 3rem 1rem 1.5rem 1rem;
        min-height: 150px;
    }

    .slide-content h4 {
        font-size: 1.2rem;
    }

    .box-circle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }
}