
/* =====================================================
   DPEP Recherche Résultats V1
   Ligne compteur résultats propre
===================================================== */

body.dpep-recherche-resultats-v1 .page-title-wrap .page-title.dpep-results-count-fixed-v1 {
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    color: rgba(34, 34, 34, .78) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: normal !important;
}

body.dpep-recherche-resultats-v1 .page-title-wrap .page-title.dpep-results-count-fixed-v1 #total-results {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #222 !important;
}

body.dpep-recherche-resultats-v1 .page-title-wrap .dpep-results-label-v1 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: rgba(34, 34, 34, .78) !important;
}

/* Amélioration mobile : évite le retour à la ligne mot par mot */
@media (max-width: 767px) {
    body.dpep-recherche-resultats-v1 .page-title-wrap {
        padding: 16px 20px !important;
    }

    body.dpep-recherche-resultats-v1 .page-title-wrap > .d-flex {
        display: block !important;
    }

    body.dpep-recherche-resultats-v1 .page-title-wrap .page-title.dpep-results-count-fixed-v1 {
        display: block !important;
        width: 100% !important;
        margin-bottom: 12px !important;
        font-size: 14px !important;
    }

    body.dpep-recherche-resultats-v1 .page-title-wrap .page-title.dpep-results-count-fixed-v1 #total-results {
        font-size: 15px !important;
    }

    body.dpep-recherche-resultats-v1 .page-title-wrap .sort-by .d-flex {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    body.dpep-recherche-resultats-v1 .page-title-wrap .sort-by-title {
        font-size: 13px !important;
        white-space: nowrap !important;
    }
}


/* =====================================================
   DPEP Recherche Résultats V2 — Mobile filtres
===================================================== */

@media (max-width: 767px) {
    body.dpep-recherche-resultats-v2.houzez-halfmap-page .half-map-right-wrap {
        background: #fff !important;
    }

    /* Barre de recherche mobile */
    body.dpep-recherche-resultats-v2 .mobile-search-nav,
    body.dpep-recherche-resultats-v2 .advanced-search-mobile,
    body.dpep-recherche-resultats-v2 .mobile-search-wrap,
    body.dpep-recherche-resultats-v2 .search-mobile,
    body.dpep-recherche-resultats-v2 .half-map-search-mobile {
        background: #ffffff !important;
        border-bottom: 1px solid rgba(47, 37, 29, .10) !important;
        padding: 12px 16px !important;
        box-shadow: 0 10px 24px rgba(47, 37, 29, .06) !important;
    }

    body.dpep-recherche-resultats-v2 .mobile-search-nav .btn,
    body.dpep-recherche-resultats-v2 .advanced-search-mobile .btn,
    body.dpep-recherche-resultats-v2 .mobile-search-wrap .btn,
    body.dpep-recherche-resultats-v2 .search-mobile .btn,
    body.dpep-recherche-resultats-v2 .half-map-search-mobile .btn,
    body.dpep-recherche-resultats-v2 .dpep-mobile-filter-btn-v2 {
        width: 100% !important;
        min-height: 44px !important;
        border-radius: 10px !important;
        background: #288a76 !important;
        color: #ffffff !important;
        border: 1px solid #288a76 !important;
        font-weight: 800 !important;
        letter-spacing: .01em !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    body.dpep-recherche-resultats-v2 .dpep-mobile-filter-btn-v2::before {
        content: "☰";
        font-size: 14px;
        line-height: 1;
    }

    /* Si Houzez affiche un simple champ recherche mobile */
    body.dpep-recherche-resultats-v2 input[placeholder="Recherche mobile"],
    body.dpep-recherche-resultats-v2 input[placeholder*="Recherche mobile"] {
        height: 44px !important;
        border-radius: 10px !important;
        border: 1px solid rgba(47, 37, 29, .14) !important;
        background: #fff !important;
        font-size: 14px !important;
        color: #222 !important;
        padding: 0 14px !important;
    }

    /* Ligne compteur / tri */
    body.dpep-recherche-resultats-v2 .page-title-wrap {
        background: #fff !important;
        border-bottom: 1px solid rgba(47, 37, 29, .08) !important;
        margin: 0 !important;
    }

    body.dpep-recherche-resultats-v2 .page-title-wrap .page-title.dpep-results-count-fixed-v1 {
        white-space: nowrap !important;
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    body.dpep-recherche-resultats-v2 .page-title-wrap .page-title.dpep-results-count-fixed-v1 #total-results,
    body.dpep-recherche-resultats-v2 .page-title-wrap .dpep-results-label-v1 {
        display: inline !important;
        white-space: nowrap !important;
    }

    body.dpep-recherche-resultats-v2 .page-title-wrap .sort-by {
        width: 100% !important;
    }

    body.dpep-recherche-resultats-v2 .page-title-wrap .sort-by .bootstrap-select,
    body.dpep-recherche-resultats-v2 .page-title-wrap .sort-by .btn {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.dpep-recherche-resultats-v2 .page-title-wrap .sort-by .btn {
        min-height: 40px !important;
        border-radius: 8px !important;
        border: 1px solid rgba(47, 37, 29, .12) !important;
        background: #faf8f4 !important;
        color: #2f251d !important;
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    body.dpep-recherche-resultats-v2 .listing-switch-view {
        display: none !important;
    }

    /* Annonces mobile : un peu plus d'air */
    body.dpep-recherche-resultats-v2 #houzez_ajax_container {
        padding-top: 4px !important;
    }

    body.dpep-recherche-resultats-v2 #houzez_ajax_container .item-listing-wrap {
        margin-bottom: 18px !important;
    }

    body.dpep-recherche-resultats-v2 .item-wrap {
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 24px rgba(47, 37, 29, .08) !important;
        background: #fff !important;
    }
}


/* =====================================================
   DPEP Recherche Résultats V3 — Mobile clean
===================================================== */

@media (max-width: 767px) {
    /* Corrige le compteur : espace propre entre le chiffre et le texte */
    body.dpep-recherche-resultats-v3 .page-title-wrap .page-title.dpep-results-count-fixed-v1 {
        display: flex !important;
        align-items: baseline !important;
        gap: 5px !important;
        white-space: nowrap !important;
        margin-bottom: 10px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
    }

    body.dpep-recherche-resultats-v3 .page-title-wrap .page-title.dpep-results-count-fixed-v1 #total-results {
        display: inline-block !important;
        margin-right: 0 !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #222 !important;
        line-height: 1.25 !important;
    }

    body.dpep-recherche-resultats-v3 .page-title-wrap .page-title.dpep-results-count-fixed-v1 .dpep-results-label-v1 {
        display: inline-block !important;
        margin-left: 0 !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: rgba(34, 34, 34, .78) !important;
        line-height: 1.25 !important;
    }

    /* Barre haute mobile */
    body.dpep-recherche-resultats-v3 .dpep-mobile-results-tools-v3 {
        padding: 10px 18px 6px !important;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(47, 37, 29, .08) !important;
    }

    body.dpep-recherche-resultats-v3 .dpep-mobile-filter-cta-v3 {
        width: 100% !important;
        min-height: 42px !important;
        border-radius: 10px !important;
        border: 1px solid rgba(47, 37, 29, .16) !important;
        background: #faf8f4 !important;
        color: #5b4532 !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 8px !important;
        cursor: pointer !important;
    }

    body.dpep-recherche-resultats-v3 .dpep-mobile-filter-cta-v3::before {
        content: "☰";
        font-size: 13px;
        line-height: 1;
    }

    /* Le champ recherche reste propre mais ne prend pas toute la compréhension */
    body.dpep-recherche-resultats-v3 input[placeholder*="ville"],
    body.dpep-recherche-resultats-v3 input[placeholder*="département"],
    body.dpep-recherche-resultats-v3 input[placeholder*="région"] {
        border-radius: 8px !important;
        font-size: 13px !important;
    }

    /* Tri : plus lisible */
    body.dpep-recherche-resultats-v3 .page-title-wrap .sort-by-title {
        display: block !important;
        width: 100% !important;
        margin-bottom: 6px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: rgba(34, 34, 34, .65) !important;
    }

    body.dpep-recherche-resultats-v3 .page-title-wrap .sort-by .d-flex {
        display: block !important;
    }
}


/* =====================================================
   DPEP Recherche Résultats V4 — Mobile filter panel
===================================================== */

@media (max-width: 767px) {

    /* On supprime le bouton doublon ajouté en V3 */
    body.dpep-recherche-resultats-v4 .dpep-mobile-filter-cta-v3,
    body.dpep-recherche-resultats-v4 .dpep-mobile-results-tools-v3 {
        display: none !important;
    }

    /* Le champ natif Houzez devient le vrai bouton "Modifier les filtres" */
    body.dpep-recherche-resultats-v4 .dpep-native-mobile-filter-trigger-v4 {
        cursor: pointer !important;
        text-align: center !important;
        height: 44px !important;
        border-radius: 12px !important;
        border: 1px solid rgba(91, 69, 50, .20) !important;
        background: #faf8f4 !important;
        color: #5b4532 !important;
        font-size: 13px !important;
        font-weight: 850 !important;
        box-shadow: 0 8px 22px rgba(47, 37, 29, .06) !important;
        caret-color: transparent !important;
    }

    body.dpep-recherche-resultats-v4 .dpep-native-mobile-filter-trigger-v4::placeholder {
        color: #5b4532 !important;
        opacity: 1 !important;
        font-weight: 850 !important;
    }

    /* Panneau mobile : remplacement du noir brutal par une carte claire */
    body.dpep-recherche-resultats-v4 #overlay-search-advanced-module {
        background: #f7f3ed !important;
        color: #2f251d !important;
        padding: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.dpep-recherche-resultats-v4 #overlay-search-advanced-module.open {
        z-index: 99999 !important;
    }

    body.dpep-recherche-resultats-v4 #overlay-search-advanced-module .search-title {
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        min-height: 58px !important;
        padding: 16px 20px !important;
        background: #ffffff !important;
        color: #2f251d !important;
        font-family: "Playfair Display", Georgia, serif !important;
        font-size: 22px !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
        border-bottom: 1px solid rgba(47, 37, 29, .10) !important;
        box-shadow: 0 8px 22px rgba(47, 37, 29, .06) !important;
    }

    body.dpep-recherche-resultats-v4 #overlay-search-advanced-module .overlay-search-module-close {
        position: absolute !important;
        right: 12px !important;
        top: 10px !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 999px !important;
        border: 1px solid rgba(47, 37, 29, .12) !important;
        background: #faf8f4 !important;
        color: #2f251d !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form {
        padding: 18px !important;
        background: #f7f3ed !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form > .row {
        background: #ffffff !important;
        border: 1px solid rgba(47, 37, 29, .10) !important;
        border-radius: 18px !important;
        padding: 16px 14px !important;
        margin: 0 0 14px !important;
        box-shadow: 0 12px 30px rgba(47, 37, 29, .08) !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form .row {
        row-gap: 10px !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form .col-4,
    body.dpep-recherche-resultats-v4 #mobile-search-form .col-6,
    body.dpep-recherche-resultats-v4 #mobile-search-form .col-8,
    body.dpep-recherche-resultats-v4 #mobile-search-form [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form input.form-control,
    body.dpep-recherche-resultats-v4 #mobile-search-form .bootstrap-select > .btn,
    body.dpep-recherche-resultats-v4 #mobile-search-form select.form-control {
        min-height: 42px !important;
        border-radius: 10px !important;
        border: 1px solid rgba(47, 37, 29, .12) !important;
        background: #fbfaf7 !important;
        color: #2f251d !important;
        font-size: 13px !important;
        font-weight: 650 !important;
        box-shadow: none !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form input.form-control::placeholder {
        color: rgba(47, 37, 29, .55) !important;
        opacity: 1 !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form .bootstrap-select .filter-option-inner-inner {
        color: #2f251d !important;
        font-size: 13px !important;
        font-weight: 650 !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form .location-search {
        position: relative !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form .location-trigger {
        right: 5px !important;
        top: 4px !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 9px !important;
        background: #fff !important;
        color: #288a76 !important;
        border: 1px solid rgba(40, 138, 118, .20) !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form .range-title,
    body.dpep-recherche-resultats-v4 #mobile-search-form .price-range-wrap,
    body.dpep-recherche-resultats-v4 #mobile-search-form .range-wrap {
        color: #2f251d !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form .range-text,
    body.dpep-recherche-resultats-v4 #mobile-search-form .range-title {
        font-size: 13px !important;
        font-weight: 800 !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form .features-list-wrap,
    body.dpep-recherche-resultats-v4 #mobile-search-form .features-list,
    body.dpep-recherche-resultats-v4 #mobile-search-form .features-wrap {
        background: #ffffff !important;
        color: #2f251d !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form .control__label,
    body.dpep-recherche-resultats-v4 #mobile-search-form label,
    body.dpep-recherche-resultats-v4 #mobile-search-form .checkbox,
    body.dpep-recherche-resultats-v4 #mobile-search-form .control {
        color: #2f251d !important;
        font-size: 13px !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form .btn-search,
    body.dpep-recherche-resultats-v4 #mobile-search-form .half-map-search-js-btn {
        min-height: 46px !important;
        border-radius: 12px !important;
        background: #288a76 !important;
        border-color: #288a76 !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 850 !important;
        box-shadow: 0 10px 22px rgba(40, 138, 118, .18) !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form .save_search_click {
        min-height: 44px !important;
        border-radius: 12px !important;
        background: #5b4532 !important;
        border-color: #5b4532 !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        margin-top: 10px !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form .reset-search-btn {
        width: 100% !important;
        min-height: 42px !important;
        border-radius: 12px !important;
        background: transparent !important;
        border: 1px solid rgba(91, 69, 50, .22) !important;
        color: #5b4532 !important;
        font-size: 13px !important;
        font-weight: 750 !important;
        margin-top: 10px !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form .dropdown-menu {
        border-radius: 12px !important;
        border: 1px solid rgba(47, 37, 29, .12) !important;
        box-shadow: 0 14px 34px rgba(47, 37, 29, .18) !important;
    }

    body.dpep-recherche-resultats-v4 #mobile-search-form .dropdown-item {
        font-size: 13px !important;
        padding: 9px 12px !important;
    }

    /* Cache les grands textes parasites issus des options ouvertes */
    body.dpep-recherche-resultats-v4 #overlay-search-advanced-module:not(.open) {
        display: none !important;
    }
}


/* =====================================================
   DPEP Recherche Résultats V5 — Counter AJAX safe
===================================================== */

@media (max-width: 767px) {
    body.dpep-recherche-resultats-v5 .page-title-wrap .page-title.dpep-results-count-fixed-v5 {
        display: flex !important;
        align-items: baseline !important;
        gap: 5px !important;
        white-space: nowrap !important;
        margin-bottom: 10px !important;
        font-size: 14px !important;
        line-height: 1.25 !important;
        color: #222 !important;
    }

    body.dpep-recherche-resultats-v5 .page-title-wrap .page-title.dpep-results-count-fixed-v5 #total-results {
        display: inline-block !important;
        margin-right: 0 !important;
        font-size: 15px !important;
        font-weight: 850 !important;
        color: #222 !important;
        line-height: 1.25 !important;
    }

    body.dpep-recherche-resultats-v5 .page-title-wrap .page-title.dpep-results-count-fixed-v5 .dpep-results-label-v5 {
        display: inline-block !important;
        margin-left: 0 !important;
        font-size: 14px !important;
        font-weight: 750 !important;
        color: rgba(34, 34, 34, .78) !important;
        line-height: 1.25 !important;
    }
}


/* =====================================================
   DPEP Recherche Résultats V6 ciblée safe
   Corrections limitées : fermeture filtres + Acheter.
===================================================== */

@media (max-width: 767px) {
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module .overlay-search-module-close,
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module .hz-navigation-close {
        pointer-events: auto !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        z-index: 100020 !important;
    }

    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module:not(.open) {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module.open {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* Page Acheter : on ne masque rien brutalement. On s'assure juste que le formulaire premium reste prioritaire. */
body.dpep-acheter-v6-safe .dpep-acheter-search {
    display: flex !important;
}

body.dpep-acheter-v6-safe #desktop-header-search {
    display: none !important;
}


/* =====================================================
   DPEP Recherche Résultats V7 ciblée safe
   Clic fantôme + /acheter/ robuste
===================================================== */

@media (max-width: 767px) {
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module .overlay-search-module-close,
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module .hz-navigation-close {
        pointer-events: auto !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        z-index: 100020 !important;
    }

    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module:not(.open) {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module.open {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .dpep-close-ghost-shield-v7 {
        position: fixed !important;
        inset: 0 !important;
        z-index: 2147483647 !important;
        background: transparent !important;
        pointer-events: auto !important;
        touch-action: none !important;
    }
}

body.dpep-acheter-v7-safe .dpep-acheter-search {
    display: flex !important;
}

body.dpep-acheter-v7-safe #desktop-header-search {
    display: none !important;
}


/* =====================================================
   DPEP Recherche Résultats V10 — design plus épuré type home
   Note : doublé par un inline CSS final dans functions.php pour garantir
   la priorité après les anciens correctifs.
===================================================== */
@media (max-width: 767px) {
    body.dpep-recherche-resultats-v8-final .half-map-right-wrap,
    body.dpep-recherche-resultats-v7-safe .half-map-right-wrap,
    body.dpep-recherche-resultats-v6-safe .half-map-right-wrap,
    body.dpep-recherche-resultats-v8-final #houzez_ajax_container,
    body.dpep-recherche-resultats-v7-safe #houzez_ajax_container,
    body.dpep-recherche-resultats-v6-safe #houzez_ajax_container {
        background: #fbfaf7 !important;
    }
}

/* =====================================================
   DPEP Recherche Résultats V11 — lisibilité panneau filtres mobile
   Objectif : rendre les textes visibles dans les cases à 320px.
===================================================== */
@media (max-width: 767px) {
    body.dpep-acheter-v8-final #overlay-search-advanced-module #mobile-search-form > .row,
    body.dpep-recherche-resultats-v8-final #overlay-search-advanced-module #mobile-search-form > .row,
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module #mobile-search-form > .row,
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module #mobile-search-form > .row {
        padding: 14px 12px 18px !important;
        row-gap: 10px !important;
    }

    body.dpep-acheter-v8-final #overlay-search-advanced-module #mobile-search-form .col-4,
    body.dpep-acheter-v8-final #overlay-search-advanced-module #mobile-search-form .col-6,
    body.dpep-acheter-v8-final #overlay-search-advanced-module #mobile-search-form .col-8,
    body.dpep-acheter-v8-final #overlay-search-advanced-module #mobile-search-form [class*="col-"],
    body.dpep-recherche-resultats-v8-final #overlay-search-advanced-module #mobile-search-form .col-4,
    body.dpep-recherche-resultats-v8-final #overlay-search-advanced-module #mobile-search-form .col-6,
    body.dpep-recherche-resultats-v8-final #overlay-search-advanced-module #mobile-search-form .col-8,
    body.dpep-recherche-resultats-v8-final #overlay-search-advanced-module #mobile-search-form [class*="col-"],
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module #mobile-search-form .col-4,
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module #mobile-search-form .col-6,
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module #mobile-search-form .col-8,
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module #mobile-search-form [class*="col-"],
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module #mobile-search-form .col-4,
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module #mobile-search-form .col-6,
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module #mobile-search-form .col-8,
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module #mobile-search-form [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.dpep-acheter-v8-final #overlay-search-advanced-module #mobile-search-form .form-group,
    body.dpep-recherche-resultats-v8-final #overlay-search-advanced-module #mobile-search-form .form-group,
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module #mobile-search-form .form-group,
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module #mobile-search-form .form-group {
        margin-bottom: 0 !important;
    }

    body.dpep-acheter-v8-final #overlay-search-advanced-module #mobile-search-form input.form-control,
    body.dpep-recherche-resultats-v8-final #overlay-search-advanced-module #mobile-search-form input.form-control,
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module #mobile-search-form input.form-control,
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module #mobile-search-form input.form-control,
    body.dpep-acheter-v8-final #overlay-search-advanced-module #mobile-search-form .bootstrap-select > .btn,
    body.dpep-recherche-resultats-v8-final #overlay-search-advanced-module #mobile-search-form .bootstrap-select > .btn,
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module #mobile-search-form .bootstrap-select > .btn,
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module #mobile-search-form .bootstrap-select > .btn {
        width: 100% !important;
        min-height: 46px !important;
        padding-left: 14px !important;
        padding-right: 38px !important;
        font-size: 13px !important;
        font-weight: 650 !important;
        color: #2f251d !important;
        background: #ffffff !important;
        border: 1px solid rgba(47,37,29,.14) !important;
    }

    body.dpep-acheter-v8-final #overlay-search-advanced-module #mobile-search-form input.form-control::placeholder,
    body.dpep-recherche-resultats-v8-final #overlay-search-advanced-module #mobile-search-form input.form-control::placeholder,
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module #mobile-search-form input.form-control::placeholder,
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module #mobile-search-form input.form-control::placeholder {
        color: rgba(47,37,29,.72) !important;
        opacity: 1 !important;
        font-weight: 650 !important;
    }

    body.dpep-acheter-v8-final #overlay-search-advanced-module #mobile-search-form .filter-option,
    body.dpep-recherche-resultats-v8-final #overlay-search-advanced-module #mobile-search-form .filter-option,
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module #mobile-search-form .filter-option,
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module #mobile-search-form .filter-option {
        width: 100% !important;
    }

    body.dpep-acheter-v8-final #overlay-search-advanced-module #mobile-search-form .filter-option-inner,
    body.dpep-acheter-v8-final #overlay-search-advanced-module #mobile-search-form .filter-option-inner-inner,
    body.dpep-recherche-resultats-v8-final #overlay-search-advanced-module #mobile-search-form .filter-option-inner,
    body.dpep-recherche-resultats-v8-final #overlay-search-advanced-module #mobile-search-form .filter-option-inner-inner,
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module #mobile-search-form .filter-option-inner,
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module #mobile-search-form .filter-option-inner-inner,
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module #mobile-search-form .filter-option-inner,
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module #mobile-search-form .filter-option-inner-inner {
        width: 100% !important;
        max-width: 100% !important;
        color: #2f251d !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.dpep-acheter-v8-final #overlay-search-advanced-module #mobile-search-form .location-trigger,
    body.dpep-recherche-resultats-v8-final #overlay-search-advanced-module #mobile-search-form .location-trigger,
    body.dpep-recherche-resultats-v7-safe #overlay-search-advanced-module #mobile-search-form .location-trigger,
    body.dpep-recherche-resultats-v6-safe #overlay-search-advanced-module #mobile-search-form .location-trigger {
        right: 6px !important;
        top: 5px !important;
        width: 36px !important;
        height: 36px !important;
        background: #fbfaf7 !important;
        border: 1px solid rgba(40,138,118,.24) !important;
    }
}

/* =====================================================
   DPEP Recherche Résultats V12 — lisibilité prix + boutons mobile
   Objectif : rendre le prix lisible sur la photo et alléger la typo des boutons.
===================================================== */
@media (max-width: 767px) {
    body.dpep-recherche-resultats-v8-final .item-header,
    body.dpep-recherche-resultats-v7-safe .item-header,
    body.dpep-recherche-resultats-v6-safe .item-header {
        position: relative !important;
    }

    body.dpep-recherche-resultats-v8-final .item-header .item-price-wrap,
    body.dpep-recherche-resultats-v7-safe .item-header .item-price-wrap,
    body.dpep-recherche-resultats-v6-safe .item-header .item-price-wrap {
        position: absolute !important;
        left: 12px !important;
        right: auto !important;
        bottom: 12px !important;
        z-index: 8 !important;
        display: inline-flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        max-width: calc(100% - 92px) !important;
        border-radius: 12px !important;
        background: rgba(32, 42, 52, .76) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        box-shadow: 0 8px 18px rgba(0,0,0,.16) !important;
    }

    body.dpep-recherche-resultats-v8-final .item-header .item-price-wrap li,
    body.dpep-recherche-resultats-v7-safe .item-header .item-price-wrap li,
    body.dpep-recherche-resultats-v6-safe .item-header .item-price-wrap li,
    body.dpep-recherche-resultats-v8-final .item-header .item-price-wrap span,
    body.dpep-recherche-resultats-v7-safe .item-header .item-price-wrap span,
    body.dpep-recherche-resultats-v6-safe .item-header .item-price-wrap span,
    body.dpep-recherche-resultats-v8-final .item-header .item-price-wrap a,
    body.dpep-recherche-resultats-v7-safe .item-header .item-price-wrap a,
    body.dpep-recherche-resultats-v6-safe .item-header .item-price-wrap a,
    body.dpep-recherche-resultats-v8-final .item-header .item-price-wrap .item-price,
    body.dpep-recherche-resultats-v7-safe .item-header .item-price-wrap .item-price,
    body.dpep-recherche-resultats-v6-safe .item-header .item-price-wrap .item-price {
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        text-shadow: none !important;
    }

    body.dpep-recherche-resultats-v8-final .item-header .item-price-wrap .price-postfix,
    body.dpep-recherche-resultats-v8-final .item-header .item-price-wrap .price-prefix,
    body.dpep-recherche-resultats-v7-safe .item-header .item-price-wrap .price-postfix,
    body.dpep-recherche-resultats-v7-safe .item-header .item-price-wrap .price-prefix,
    body.dpep-recherche-resultats-v6-safe .item-header .item-price-wrap .price-postfix,
    body.dpep-recherche-resultats-v6-safe .item-header .item-price-wrap .price-prefix {
        color: rgba(255,255,255,.86) !important;
        font-size: 11px !important;
        font-weight: 650 !important;
    }

    body.dpep-recherche-resultats-v8-final .btn-item,
    body.dpep-recherche-resultats-v7-safe .btn-item,
    body.dpep-recherche-resultats-v6-safe .btn-item,
    body.dpep-acheter-v8-final .dpep-acheter-filter-open-v8,
    body.dpep-recherche-resultats-v8-final .dpep-native-mobile-filter-trigger-v4,
    body.dpep-recherche-resultats-v7-safe .dpep-native-mobile-filter-trigger-v4,
    body.dpep-recherche-resultats-v6-safe .dpep-native-mobile-filter-trigger-v4 {
        font-size: 12px !important;
        line-height: 1.15 !important;
        letter-spacing: 0 !important;
    }

    body.dpep-recherche-resultats-v8-final .btn-item,
    body.dpep-recherche-resultats-v7-safe .btn-item,
    body.dpep-recherche-resultats-v6-safe .btn-item {
        min-height: 38px !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
        font-weight: 800 !important;
        font-size: 11px !important;
        min-width: 98px !important;
        width: auto !important;
        max-width: 110px !important;
        white-space: nowrap !important;
        text-align: center !important;
        box-shadow: none !important;
    }

    body.dpep-acheter-v8-final .dpep-acheter-filter-open-v8,
    body.dpep-recherche-resultats-v8-final .dpep-native-mobile-filter-trigger-v4,
    body.dpep-recherche-resultats-v7-safe .dpep-native-mobile-filter-trigger-v4,
    body.dpep-recherche-resultats-v6-safe .dpep-native-mobile-filter-trigger-v4 {
        min-height: 42px !important;
        font-weight: 800 !important;
    }
}

/* =====================================================
   DPEP Résultats mobile — V13 bouton “Voir le bien” compact
   Scope volontairement limité aux cartes biens sur mobile.
   Ne touche ni aux filtres, ni au menu mobile.
===================================================== */
@media (max-width: 767px) {
    body.dpep-recherche-resultats-v8-final #houzez_ajax_container .item-listing-wrap .btn-item,
    body.dpep-recherche-resultats-v7-safe #houzez_ajax_container .item-listing-wrap .btn-item,
    body.dpep-recherche-resultats-v6-safe #houzez_ajax_container .item-listing-wrap .btn-item,
    body.dpep-recherche-resultats-v8-final #houzez_ajax_container .item-wrap .btn-item,
    body.dpep-recherche-resultats-v7-safe #houzez_ajax_container .item-wrap .btn-item,
    body.dpep-recherche-resultats-v6-safe #houzez_ajax_container .item-wrap .btn-item,
    body.dpep-recherche-resultats-v8-final #houzez_ajax_container a.btn-item,
    body.dpep-recherche-resultats-v7-safe #houzez_ajax_container a.btn-item,
    body.dpep-recherche-resultats-v6-safe #houzez_ajax_container a.btn-item {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 32px !important;
        height: 32px !important;
        padding: 0 12px !important;
        border-radius: 999px !important;
        font-size: 10.5px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        letter-spacing: .01em !important;
        white-space: nowrap !important;
        text-align: center !important;
        box-shadow: none !important;
    }

    body.dpep-recherche-resultats-v8-final #houzez_ajax_container .item-footer,
    body.dpep-recherche-resultats-v7-safe #houzez_ajax_container .item-footer,
    body.dpep-recherche-resultats-v6-safe #houzez_ajax_container .item-footer,
    body.dpep-recherche-resultats-v8-final #houzez_ajax_container .item-body .d-flex,
    body.dpep-recherche-resultats-v7-safe #houzez_ajax_container .item-body .d-flex,
    body.dpep-recherche-resultats-v6-safe #houzez_ajax_container .item-body .d-flex {
        align-items: center !important;
        gap: 8px !important;
    }
}
