/* =====================================================
   De Pierre en Pierre — Acheter / Résultats V74
   ===================================================== */

/* Hero Acheter harmonisé */
body.dpep-public-luxe-v45 .dpep-v46-buy-main .dpep-v46-hero {
    padding: clamp(34px, 5vw, 58px) 0 clamp(64px, 7vw, 88px) !important;
    background:
        radial-gradient(circle at top left, rgba(201,163,106,.15), transparent 34%),
        linear-gradient(135deg, rgba(4,28,52,.98), rgba(7,31,57,.96)) !important;
    text-align: center !important;
}

body.dpep-public-luxe-v45 .dpep-v46-buy-main .dpep-v46-hero .dpep-v46-container {
    display: grid !important;
    justify-items: center !important;
}

body.dpep-public-luxe-v45 .dpep-v46-buy-main .dpep-v46-kicker,
body.dpep-public-luxe-v45 .dpep-v74-results-hero .dpep-v46-kicker {
    color: #C9A36A !important;
    margin-bottom: 14px !important;
}

body.dpep-public-luxe-v45 .dpep-v46-buy-main .dpep-v46-hero h1 {
    max-width: 820px !important;
    color: #fff !important;
    font-size: clamp(42px, 5.5vw, 76px) !important;
    line-height: .98 !important;
}

body.dpep-public-luxe-v45 .dpep-v46-buy-main .dpep-v46-hero p:not(.dpep-v46-kicker) {
    max-width: 640px !important;
    margin: 18px auto 0 !important;
    color: rgba(255,255,255,.72) !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

body.dpep-public-luxe-v45 .dpep-v46-buy-search-wrap {
    margin-top: -42px !important;
    margin-bottom: 54px !important;
}

/* Formulaire recherche */
body.dpep-public-luxe-v45 .dpep-v74-search {
    position: relative !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(160px, 190px) !important;
    gap: 14px !important;
    padding: clamp(18px, 3vw, 26px) !important;
    background: #041C34 !important;
    border: 1px solid rgba(201,163,106,.26) !important;
    box-shadow: 0 22px 54px rgba(4,28,52,.16) !important;
}

body.dpep-public-luxe-v45 .dpep-v74-search-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}

body.dpep-public-luxe-v45 .dpep-v74-search-actions button {
    width: 100% !important;
}

body.dpep-public-luxe-v45 .dpep-v74-advanced-toggle {
    min-height: 38px !important;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.24) !important;
    color: rgba(255,255,255,.86) !important;
    font-size: 11px !important;
    letter-spacing: .10em !important;
}

body.dpep-public-luxe-v45 .dpep-v74-advanced-toggle:before {
    content: "+";
    margin-right: 7px;
    color: #C9A36A;
}

body.dpep-public-luxe-v45 .dpep-v74-advanced-toggle.is-open:before {
    content: "–";
}

body.dpep-public-luxe-v45 .dpep-v74-advanced-panel {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    padding-top: 16px !important;
    margin-top: 4px !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
}

body.dpep-public-luxe-v45 .dpep-v74-advanced-panel[hidden] {
    display: none !important;
}

/* Résultats custom */
body.dpep-public-luxe-v45 .dpep-v74-results-main {
    background: #fff !important;
}

body.dpep-public-luxe-v45 .dpep-v74-results-hero {
    padding: clamp(30px, 5vw, 52px) 0 clamp(58px, 7vw, 84px) !important;
    background:
        radial-gradient(circle at top left, rgba(201,163,106,.15), transparent 34%),
        linear-gradient(135deg, rgba(4,28,52,.98), rgba(7,31,57,.96)) !important;
    text-align: center !important;
}

body.dpep-public-luxe-v45 .dpep-v74-results-hero h1 {
    max-width: 820px !important;
    margin: 0 auto !important;
    color: #fff !important;
    font: 500 clamp(40px, 5vw, 70px)/.98 "Playfair Display", Georgia, serif !important;
    letter-spacing: -.04em !important;
}

body.dpep-public-luxe-v45 .dpep-v74-results-hero p:not(.dpep-v46-kicker) {
    max-width: 640px !important;
    margin: 16px auto 0 !important;
    color: rgba(255,255,255,.72) !important;
    line-height: 1.6 !important;
}

body.dpep-public-luxe-v45 .dpep-v74-results-search-wrap {
    margin-top: -42px !important;
    margin-bottom: 46px !important;
    position: relative !important;
    z-index: 5 !important;
}

body.dpep-public-luxe-v45 .dpep-v74-results-section {
    padding-bottom: 70px !important;
}

/* Sécurité : cacher les anciens éléments Houzez si un plugin les réinjecte. */
body.dpep-public-luxe-v45 .dpep-v74-results-main .advanced-search-nav,
body.dpep-public-luxe-v45 .dpep-v74-results-main .overlay-search-module,
body.dpep-public-luxe-v45 .dpep-v74-results-main .mobile-search-nav,
body.dpep-public-luxe-v45 .dpep-v74-results-main .search-mobile-nav,
body.dpep-public-luxe-v45 .dpep-v74-results-main .btn-mobile-search,
body.dpep-public-luxe-v45 .dpep-v74-results-main .filter-trigger,
body.dpep-public-luxe-v45 .dpep-v74-results-main .houzez-search-mobile {
    display: none !important;
}

/* Mobile */
@media (max-width: 767px) {
    body.dpep-public-luxe-v45 .dpep-v46-buy-main .dpep-v46-hero,
    body.dpep-public-luxe-v45 .dpep-v74-results-hero {
        padding: 28px 0 56px !important;
    }

    body.dpep-public-luxe-v45 .dpep-v46-buy-main .dpep-v46-hero h1,
    body.dpep-public-luxe-v45 .dpep-v74-results-hero h1 {
        font-size: 38px !important;
    }

    body.dpep-public-luxe-v45 .dpep-v46-buy-main .dpep-v46-hero p:not(.dpep-v46-kicker),
    body.dpep-public-luxe-v45 .dpep-v74-results-hero p:not(.dpep-v46-kicker) {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    body.dpep-public-luxe-v45 .dpep-v46-buy-search-wrap,
    body.dpep-public-luxe-v45 .dpep-v74-results-search-wrap {
        width: calc(100vw - 20px) !important;
        margin-top: -34px !important;
        margin-bottom: 34px !important;
    }

    body.dpep-public-luxe-v45 .dpep-v74-search {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 14px !important;
    }

    body.dpep-public-luxe-v45 .dpep-v74-advanced-panel {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    body.dpep-public-luxe-v45 .dpep-v46-results-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    body.dpep-public-luxe-v45 .dpep-v46-results-head {
        display: block !important;
        margin-bottom: 18px !important;
    }

    body.dpep-public-luxe-v45 .dpep-v46-results-head p {
        margin-top: 8px !important;
    }
}


/* =====================================================
   DPEP V75 — sécurité anti ancien rendu résultats Houzez
   ===================================================== */

body.dpep-v75-forced-results .advanced-search-nav,
body.dpep-v75-forced-results .mobile-search-nav,
body.dpep-v75-forced-results .search-mobile-nav,
body.dpep-v75-forced-results .overlay-search-module,
body.dpep-v75-forced-results .houzez-search-mobile,
body.dpep-v75-forced-results .mobile-search-filter,
body.dpep-v75-forced-results .search-filter-mobile,
body.dpep-v75-forced-results .half-map-search-js-btn,
body.dpep-v75-forced-results .btn-mobile-search,
body.dpep-v75-forced-results .filter-trigger,
body.dpep-v75-forced-results .listing-tools-wrap,
body.dpep-v75-forced-results .sort-by,
body.dpep-v75-forced-results .sort-by-title,
body.dpep-v75-forced-results .list-grid-view,
body.dpep-v75-forced-results .listing-view,
body.dpep-v75-forced-results .houzez-module {
    display: none !important;
}

body.dpep-v75-forced-results .dpep-v74-results-main .houzez-module,
body.dpep-v75-forced-results .dpep-v74-results-main .listing-tools-wrap {
    display: none !important;
}

/* S'assure que le contenu V75 soit bien visible même si le parent applique des styles de résultats. */
body.dpep-v75-forced-results .dpep-v75-results-main {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 60vh !important;
}
