.flex-container {display: flex;}
.primary-onepagefilter .section-title {}

.container-localisation > * { width:45%; }
.container-localisation > .map-localisation { width:55%; }
.container-localisation > ul {display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;}

.container-localisation > ul li  input[type="checkbox"],
.container-localisation > ul li  span { display:block;text-transform: none;
    font-size: 13px;
    font-style: italic;
    display: block;
    margin: 8px 0 ;width:100% }

.container-localisation > ul li {
    transition: all 0.4s ease-out;
    text-transform: uppercase;
    font-size: 15px;
    text-align: center;
    padding: 15px 12px 6px 12px;
    border: 1px solid #a3a3a3;
    list-style: none;
    max-height: 120px;
    margin-bottom: 10px;
}
.container-localisation > ul li.hovering {background: #CFC5B7;border-color: #CFC5B7;color: #fff;}
.container-localisation > ul li.selected {background: #5d1954;border-color: #5d1954;color: #fff;}

.fullpageform .section-title {text-transform: uppercase;margin: 2rem 0 ;color:#C3B6A5}
.equipment-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.equipment-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.equipment-btn input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.equipment-btn i {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.equipment-btn span {
    color: #333;
    font-size: 14px;
}

/* État désélectionné (hover) */
.equipment-btn:hover {
    background-color: #f0f0f0;
    border-color: #d0d0d0;
}

/* État sélectionné */
.equipment-btn input[type="checkbox"]:checked~span,
.equipment-btn input[type="checkbox"]:checked~i {
    color: white;
}

/* Style du bouton quand il est sélectionné */
.equipment-btn input[type="checkbox"]:checked~span {
    color: white;
}

/* Style du conteneur quand le checkbox est sélectionné */
.equipment-btn input[type="checkbox"]:checked {

    ~span,
    ~i {
        color: white;
    }
}

/* Style du label entier quand le checkbox est sélectionné */
.equipment-btn input[type="checkbox"]:checked~span {
    background-color: #5a4ad1;
    border-color: #5a4ad1;
}

/* Le plus important : applique le style au label parent quand le checkbox est coché */
input[type="checkbox"]:checked~.equipment-btn,
.equipment-btn input[type="checkbox"]:checked+label,
.equipment-btn:has(input[type="checkbox"]:checked) {
    background-color: #5a4ad1;
    border-color: #5a4ad1;
    color: white;
}

/* État sélectionné + hover */
.equipment-btn:has(input[type="checkbox"]:checked):hover {
    background-color: #4939b0;
    border-color: #4939b0;
}

.daterangepicker {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: white;
}

/* Style pour les dates dans la plage sélectionnée */
.daterangepicker td.in-range {
    background-color: #ebf4f8 !important;
    /* Bleu très clair plus visible */
    color: #333;
}

/* Style pour les dates de début et de fin */
.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: #3699FF !important;
    /* Bleu plus foncé pour les dates sélectionnées */
    color: white !important;
    font-weight: bold;
    border-radius: 4px;
}

/* Hover effect pour les dates */
.daterangepicker td.available:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
}

.daterangepicker .calendar-table .next,
.daterangepicker .calendar-table .prev {
    background-color: white;
}

.daterangepicker .calendar-table .next span,
.daterangepicker .calendar-table .prev span {
    background-color: transparent;
    border-color: #333;
}

.daterangepicker .calendar-table {
    background-color: white;
    border-radius: 6px;
}

.daterangepicker .drp-calendar {
    background-color: white;
    max-width: none;
}

.result-appartement.hover-highlight {
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #efefef;
}

/* Icons */
/*.icon-wifi { background-image: url('path/to/wifi-icon.svg'); }
.icon-cuisine { background-image: url('path/to/cuisine-icon.svg'); }
.icon-lave-linge { background-image: url('path/to/lave-linge-icon.svg'); }
.icon-seche-linge { background-image: url('path/to/seche-linge-icon.svg'); }
.icon-climatisation { background-image: url('path/to/climatisation-icon.svg'); }
.icon-chauffage { background-image: url('path/to/chauffage-icon.svg'); }*/

/* Structure principale */

.search-grid .filter-grid {
    display: flex;
    flex-flow: column wrap;
    background-color: white;
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 15px;
}

.search-grid .filter-grid-onepage {
    /* display: flex; */
    flex-flow: column wrap;
    background-color: white;
    border-radius: 40px;
    overflow: hidden;
    padding: 15px;
}


.searchform {
    width: 100%;
    margin: 0 auto;
}

.filter-grid>.primary-filter {
    gap: 20px;
    border-radius: 12px;
}

.search-submit {
    flex-direction: row-reverse !important;
}

.search-submit svg {
    fill: #fff !important;
}


/* Sections */

.section-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding-top: 7px;
}

.search-title {
    padding-top: 10px;
    padding-bottom: 30px;
    text-align: center;
}

/* Inputs et Select */
.daterange-input,
.select2-multiple {
    width: 100% !important;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
}

/* Caractéristiques */
.characteristics-grid {
    display: grid;
    gap: 15px;
}

.characteristic-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.third-items-section {
    display: flex;
    flex-flow: row nowrap;
    gap: 10px;
}

.third-items-section div:nth-child(3) {
    flex-grow: 1;
}

@media (max-width: 580px) {
    .third-items-section {
        flex-flow: column wrap;
    }
}

/* Surface Slider */
.surface-slider-container {
    padding: 10px 0;
}

#sliderus {
    height: 4px;
    background: #e2e8f0;
    border: none;
    border-radius: 2px;
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.ui-slider-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3699FF;
    border: none;
    cursor: pointer;
}

/* Équipements */
.equipment-grid,.characteristics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.equipment-btn,.characteristic-btn {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.equipment-btn:hover,.characteristic-btn:hover {
    background: #f1f5f9;
}

.equipment-btn input[type="checkbox"],.characteristic-btn input[type="checkbox"] {
    margin-right: 8px;
}

.equipment-notice {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #64748b;
}

/* Bouton de soumission */
.submit-section {
    text-align: center;
    flex-grow: inherit;
}

.submit-section:not(.top-search-button) {
    padding: 20px 0;
}

.search-submit {
    background: #3699FF;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-submit:hover {
    background: #2d88ff;
    transform: translateY(-1px);
}

.counter {
    margin-bottom: 15px;
}

.counter label,
.date-range-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.counter .controls {
    display: flex;
    align-items: center;
}

.counter button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #c3b6a5;
    color: white;
    font-size: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.counter input {
    flex: 1;
    text-align: center;
    height: 40px;
    margin: 0 10px;
}

/*
.marker-cluster-small {
    background-color: rgba(252, 171, 90, 0.6);
}
.marker-cluster-small div {
    background-color: rgba(252, 171, 90, 0.8);
}

.marker-cluster-medium {
    background-color: rgba(241, 128, 23, 0.6);
}
.marker-cluster-medium div {
    background-color: rgba(241, 128, 23, 0.8);
}

.marker-cluster-large {
    background-color: rgba(211, 84, 0, 0.6);
}
.marker-cluster-large div {
    background-color: rgba(211, 84, 0, 0.8);
}*/

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 15px;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-popup {
    width: 200px;
}

.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 5px;
    background: url("/wp-content/plugins/urbansejour_search/img/bgBox.png") no-repeat;
    opacity: 0.9;
}


.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    border: 0;
}

.select2-selection.select2-selection--multiple.select2-selection--clearable {
    overflow: hidden;
}

.number-search-container {
    display: flex;
    flex-flow: row nowrap;
    gap: 20px;
}

/**
=== SPECIFICS
=====> tinyform
**/


.primary-filter {
    display: flex;
    flex-flow: row nowrap;
}

.primary-filter .search-section:not(.submit-section) {
    flex-grow: 1;
}

.tinyform .primary-filter {
    display: flex;
    flex-flow: column wrap;
}

.select2-search.select2-search--inline {
    display: none;
}

.show_filter_action {
    text-align: center;
    text-decoration: underline;
    padding: 10px 0;
    cursor: pointer;
}

.secondary-filter {
    height: 1px;
    overflow: hidden;
    transition: opacity .5s ease, height .5s ease;
    opacity: 0;
}

.secondary-filter> :is(.search-section:first-child) {
    padding-top: 30px;
}

.fullpageform .secondary-filter> :is(.search-section:first-child) {
    padding-top: 0px;
}


.secondary-filter.open-advanced-search {
    opacity: 1;
    height: auto;
    padding: 15px 25px 0 25px;
}

.select2-container--default .select2-selection--multiple {
    padding: 4px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--multiple {
    border: 1px solid #E5E5E5;
    border-radius: 250px;
    padding: 10px 16px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 0 4px 0 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    border-radius: 250px;
    background-color: var(--e-global-color-primary);
    color: white;
    border: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: inherit;
    padding: 0 7px;
    border-right: 0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 5px;
    padding-right: 8px;
}

.alert.alert-info.no-results {
    background-color: var(--e-global-color-primary);
    color: white;
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
    border-bottom-left-radius: 250px;
    border-bottom-right-radius: 250px;
}

/* Responsive */
@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
    }

    .equipment-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/**
==== MAPS SETTINGS
**/



#gmap_us {
    width: 100%;
    height: 70vh !important;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 15px;
}



#gmap-container.e-con.elementor-sticky--active {
    z-index: 4 !important;
}

@media(min-width:1025px) {
    #gmap_us {
        height: calc(86vh - 113px) !important;
    }
}

/* Style du contrôleur de couches */
.leaflet-control-layers {
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.leaflet-control-layers-toggle {
    width: 36px;
    height: 36px;
}

.leaflet-control-layers-expanded {
    padding: 6px 10px 6px 6px;
    color: #333;
    background-color: #fff;
}

/* Style des clusters */
.marker-cluster-small {
    background-color: rgba(252, 171, 90, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(252, 171, 90, 0.8);
}

.marker-cluster-medium {
    background-color: rgba(241, 128, 23, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(241, 128, 23, 0.8);
}

.marker-cluster-large {
    background-color: rgba(211, 84, 0, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(211, 84, 0, 0.8);
}

.active-button .elementor-button {
    background-color: var(--e-global-color-accent) !important;
    color: white !important;
    fill: white !important;
}

#appartment-list-container {
    height: 100%;
}

.elementor-widget-appartement_search {
    height: 100%;
}

#content_usapp {
    height: 100%;
}

#content_usapp.list-only-view {
    height: 100%;
    overflow: inherit;
}


#content_usapp {
    --sb-track-color: #ececec;
    --sb-thumb-color: #2ad8d0;
    --sb-size: 8px;
}

#content_usapp::-webkit-scrollbar {
    width: var(--sb-size)
}

#content_usapp::-webkit-scrollbar-track {
    background: var(--sb-track-color);
    border-radius: 3px;
}

#content_usapp::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    border-radius: 3px;

}

@supports not selector(::-webkit-scrollbar) {
    body {
        scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
    }
}

/***
** POP-UP MAP DESIGN
***/

.leaflet-popup {
    border-radius: 5px;
    overflow: hidden;
}

.leaflet-popup-content-wrapper {
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
}

.leaflet-popup-content .apt-container {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    justify-content: center;
}

.leaflet-popup-content .apt-img {
    width: 100%;
    height: 110px;
}

.leaflet-popup-content .inner-content-apt {
    padding: 10px 20px 20px 20px;
    margin-top: -20px;
}

.leaflet-popup-content img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.leaflet-popup-content a {
    color: white !important;
}

.leaflet-popup-content a:hover {
    background-color: var(--e-global-color-accent);
}

.leaflet-popup-content .inner-content-apt p {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--e-global-color-primary)
}

/**
=== LIST RESULT MAP
**/

/*
== Results
*/

.result-appartement {
    border: 1px solid var(--e-global-color-a27ebaa);
    border-radius: 5px;
    margin-bottom: 20px;
    background-color: #fff;
}

.result-appartement .top_app {
    position: relative;
    min-height: 180px;
    background-size: cover !important;
    background-position: center center !important;
}

.result-appartement .middle_app {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}

.result-appartement .middle_app a,
.btn-us {
    display: inline-block;
    background-color: var(--e-global-color-primary);
    padding: 12px 24px 12px 24px;
    color: var(--e-global-color-8013fca);
    font-family: "Source Sans Pro", Sans-serif;
    border-radius: 250px 250px 250px 250px;
    font-size: var(--e-global-typography-text-font-size);
    letter-spacing: var(--e-global-typography-25d6a85-letter-spacing);
    transform: translateY(-50%);
    transition: all .35s ease-in-out;
    font-weight: 600;
}

.result-appartement .middle_app a:hover {
    background-color: var(--e-global-color-accent);
    color: white;
}

.result-appartement .bottom_app {
    display: flex;
    flex-direction: row nowrap;
    padding: 0 15px 15px 15px;
    margin-top: -10px;
    gap: 10px;
}

.result-appartement .bottom_app .features_info {
    width: 55%;
}

.result-appartement .bottom_app .features_feat {
    width: 45%;
}

.result-appartement .bottom_app .features_info .tarif_nuitee {
    background-color: #efefef;
    padding: 5px 10px;
}

.result-appartement .bottom_app .features_info .tarif_nuitee .tarif-nuitee {
    font-size: 1rem;
    font-weight: bold;
}

.result-appartement .bottom_app .features_info .tarif_nuitee .tarif,
.result-appartement .bottom_app .features_info .tarif_nuitee .nuitee {
    font-size: 0.725rem;
}

.result-appartement .bottom_app ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#actif_filters {
    background-color: #efefef;
    padding: 10px;
    font-weight: 500;
    font-size: 1.2rem;
}

#actif_filters span {
    display: block;
    font-style: italic;
    font-weight: normal;
    font-size: 0.865rem;
}

.result-appartement .bottom_app h2 {
    font-family: "Source Sans Pro", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0px;
    color: var(--e-global-color-primary);
}

.result-appartement .features_info {
    display: flex;
    flex-flow: column wrap;
}

.result-appartement .features_info .type_bien {
    color: var(--e-global-color-primary);
    font-weight: bold;
}

.result-appartement .features_bien_li {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px 5px;
}

.result-appartement .features_bien_li li {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
}

.result-appartement .features_bien_li li span {
    font-size: var(--e-global-typography-e3311e0-font-size);
    text-align: center;
}


.result-appartement .features_bien_li li:first-child {
    grid-area: 1 / 1 / 2 / 2;
}

.result-appartement .features_bien_li li:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
}

.result-appartement .features_bien_li li:nth-child(3) {
    grid-area: 2 / 1 / 3 / 2;
}

.result-appartement .features_bien_li li:last-child {
    grid-area: 2 / 2 / 3 / 3;
}

.result-appartement .features_bien_li li img {
    width: 35px;
}

.leaflet-bottom.leaflet-right {
    display: none !important;
}

/**
=== RECHERCHE MOBILE
**/

@media(max-width: 1024px) {
    .search-grid {
        border-radius: 5px;
    }

    .filter-grid {
        width: 100%;
    }

    .primary-filter {
        display: flex;
        flex-flow: column wrap;
    }
}