/* ==========================================================================
   WALTER & DE MAISON — DESIGN SYSTEM CLONE (walteretdemaison.com)
   Exact tokens, typography, header, cards, reviews & footer styling
   ========================================================================== */

@font-face {
    font-family: 'alloystan';
    src: url('../fonts/3857Alloystan.woff2') format('woff2'),
         url('../fonts/3857Alloystan.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --wdm-sand: #D3C4AF;
    --wdm-champagne: #D6CEBF;
    --wdm-champagne-deep: #C4B49C;
    --wdm-taupe: #605A59;
    --wdm-charcoal: #2F3633;
    --wdm-ink: #1D2327;
    --wdm-linen: #F0EEE9;
    --wdm-alabaster: #F7F7F5;
    --wdm-quote: #B0AA9E;
    --wdm-white: #FFFFFF;
    --wdm-black: #000000;

    /* Override legacy theme variables */
    --color-primary: #605A59;
    --color-secondary: #2F3633;
    --brand-primary: #605A59;
    --brand-accent: #D3C4AF;
    --immo-red: #605A59;
    --immo-dark: #2F3633;
}

body {
    font-family: 'Montserrat', sans-serif !important;
    color: var(--wdm-ink);
    background-color: var(--wdm-white);
}

/* Global script utility */
.wdm-script {
    font-family: 'alloystan', cursive, sans-serif;
    font-weight: 200;
    line-height: 0.72;
    letter-spacing: 0.5px;
}

.wdm-jost-title {
    font-family: 'Jost', sans-serif;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wdm-charcoal);
}

/* ==========================================================================
   WALTER & DE MAISON PRIMARY CTA BUTTON (Exact .elementor-button clone)
   ========================================================================== */
.wdm-btn-taupe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 14px 32px;
    background-color: var(--wdm-taupe);
    color: var(--wdm-white) !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 3px;
    border: none;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.wdm-btn-taupe:hover,
.wdm-btn-taupe:focus {
    background-color: var(--wdm-black);
    color: var(--wdm-white) !important;
}

.wdm-btn-sand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    background-color: var(--wdm-sand);
    color: var(--wdm-white) !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 3px;
    border: none;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.wdm-btn-sand:hover {
    background-color: var(--wdm-taupe);
    color: var(--wdm-white) !important;
}

/* ==========================================================================
   GLOBAL HARMONIZATION FOR INTERIOR PAGES (Overrides legacy terracotta #D16439)
   ========================================================================== */
.text-primary { color: #605A59 !important; }
.bg-primary { background-color: #605A59 !important; }
.border-primary { border-color: #D3C4AF !important; }
.bg-midnight { background-color: #2F3633 !important; }
.text-midnight { color: #2F3633 !important; }

.immofrance-sec-kicker { color: #605A59 !important; }
.immofrance-sec-kicker-dot { background: #D3C4AF !important; box-shadow: 0 0 0 4px rgba(211, 196, 175, 0.28) !important; }
.immofrance-sec-divider .bar-red { background: #D3C4AF !important; }
.immofrance-sec-divider .bar-dark { background: #605A59 !important; }
.immofrance-sec-pill { background: #F0EEE9 !important; color: #605A59 !important; border-color: #D6CEBF !important; }
.immofrance-sec-pill-icon { background: #605A59 !important; color: #FFFFFF !important; }
.immofrance-section-cta {
    background: #605A59 !important;
    border-radius: 3px !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
}
.immofrance-section-cta:hover {
    background: #000000 !important;
}
.immofrance-section-cta .immofrance-btn-icon {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   WALTER & DE MAISON PROPERTY CARD (Exact clone of Houzez v6 + Elementor 1302808)
   ========================================================================== */
.wdm-prop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.03);
    border: 1px solid #F5F5F5;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.wdm-prop-card:hover {
    box-shadow: 0 12px 28px rgba(47, 54, 51, 0.09);
}

.wdm-prop-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #F0EEE9;
    overflow: hidden;
}

.wdm-prop-media .slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.wdm-prop-media .slider-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: opacity 0.6s ease;
}

.wdm-prop-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.wdm-prop-card:hover .wdm-prop-media img {
    transform: scale(1.06);
}

/* Top-left / Top-right status badges & favorites */
.wdm-prop-topbar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 25;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.wdm-prop-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    pointer-events: auto;
}

.wdm-prop-badge {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--wdm-sand);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    border-radius: 0;
    line-height: 1.1;
}

.wdm-prop-badge.is-dark {
    background-color: var(--wdm-taupe);
}

.wdm-prop-fav-btn {
    pointer-events: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    border: none;
    color: var(--wdm-taupe);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity 0.22s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wdm-prop-card:hover .wdm-prop-fav-btn,
.wdm-prop-fav-btn.is-fav-active {
    opacity: 1;
}

.wdm-prop-fav-btn:hover,
.wdm-prop-fav-btn.is-fav-active {
    background: var(--wdm-taupe);
    color: #FFFFFF;
}

/* Slider Arrows on Property Card */
.wdm-prop-card .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 22;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--wdm-charcoal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
    transition: opacity 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.wdm-prop-card .slider-nav:hover {
    background: var(--wdm-taupe);
    color: #FFFFFF;
}

.wdm-prop-card .slider-prev { left: 10px; }
.wdm-prop-card .slider-next { right: 10px; }

/* Elementor 1302808 Header Overlay Strip: Circular Agent Avatar + Location Pin */
.wdm-prop-meta-head {
    position: relative;
    z-index: 20;
    padding: 0 20px 6px;
    background: #FFFFFF;
}

.wdm-prop-agent-avatar-wrap {
    margin-top: -54px;
    margin-bottom: 12px;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.wdm-prop-agent-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.wdm-prop-agent-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: #EAE7E1;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.wdm-prop-agent-link:hover .wdm-prop-agent-circle {
    transform: scale(1.06);
}

.wdm-prop-agent-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
    display: block;
}

.wdm-prop-agent-tooltip {
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 3px;
    background: rgba(47, 54, 51, 0.92);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wdm-prop-agent-link:hover .wdm-prop-agent-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.wdm-prop-location {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    margin-bottom: 6px;
}

.wdm-section-cta-wrap {
    margin-top: 52px;
    display: flex;
    justify-content: center;
}
@media (max-width: 767px) {
    .wdm-section-cta-wrap {
        margin-top: 38px;
    }
}

.wdm-prop-location.no-avatar {
    margin-top: 16px;
}

.wdm-prop-location-pin {
    color: var(--wdm-champagne);
    flex-shrink: 0;
    width: 19px;
    height: 19px;
}

.wdm-prop-location-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 18.5px;
    font-weight: 400;
    color: #4A4443;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Houzez v6 Body: Title + Price & Amenities Row */
.wdm-prop-body {
    padding: 4px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #FFFFFF;
}

.wdm-prop-title {
    margin: 0 0 11px;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.35;
    color: #1D2327;
}

.wdm-prop-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wdm-prop-card:hover .wdm-prop-title a {
    color: var(--wdm-taupe);
}

.wdm-prop-footer-row {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.wdm-prop-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 400;
    color: #605A59;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.wdm-prop-amenities {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #636363;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
}

.wdm-prop-amenities li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.wdm-prop-amenities svg {
    width: 16px;
    height: 16px;
    color: #605A59;
    flex-shrink: 0;
}

/* ==========================================================================
   WALTER & DE MAISON SOLD CARD (Exact clone of Elementor 1297083)
   ========================================================================== */
.wdm-sold-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    text-decoration: none;
    overflow: hidden;
    padding: 10px 10px 0;
    box-sizing: border-box;
    transition: opacity 0.25s ease;
}

.wdm-sold-media {
    position: relative;
    width: 100%;
    aspect-ratio: 758 / 564;
    overflow: hidden;
    background: #F0EEE9;
    border-radius: 0;
}

.wdm-sold-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s ease;
}

.wdm-sold-card:hover .wdm-sold-media img {
    transform: scale(1.03);
}

.wdm-sold-badge {
    position: absolute;
    top: 7%;
    left: 8%;
    z-index: 5;
    padding: 6px 10px;
    background-color: #D3C4AF;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(11px, 1.05vw, 15.5px);
    font-weight: 300;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-radius: 0;
}

.wdm-sold-caption {
    background: #FFFFFF;
    padding: 14px 8px 10px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.wdm-sold-title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(15px, 1.18vw, 17.5px);
    font-weight: 400;
    line-height: 1.18;
    color: #605A59;
}

.wdm-sold-city {
    margin: 5px 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(15px, 1.15vw, 17px);
    font-weight: 300;
    line-height: 1.18;
    color: #605A59;
    text-transform: uppercase;
}

/* ==========================================================================
   WALTER & DE MAISON REVIEW CARD (Exact clone of Elementor 1311893)
   ========================================================================== */
.wdm-review-card {
    position: relative;
    background-color: var(--wdm-linen);
    border-radius: 0;
    min-height: 445px;
    padding: 24px 8% 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.wdm-review-card:hover {
    transform: scale(1.04);
    z-index: 5;
    box-shadow: 0 18px 36px rgba(47, 54, 51, 0.10);
}

.wdm-review-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 4px;
    margin-bottom: 14px;
}

.wdm-review-stars svg {
    width: 22px;
    height: 22px;
    fill: var(--wdm-champagne) !important;
    color: var(--wdm-champagne) !important;
}

.wdm-review-stars svg.is-empty {
    fill: transparent !important;
    stroke: #C4B9A9 !important;
    stroke-width: 1.7;
    color: #C4B9A9 !important;
}

#immofrance-hero-resume-last {
    background-color: #F0EEE9 !important;
    color: #605A59 !important;
    border-color: #D6CEBF !important;
}
#immofrance-hero-resume-last:hover {
    background-color: #D6CEBF !important;
    color: #2F3633 !important;
}

.wdm-review-quote-mark {
    position: absolute;
    top: 48px;
    left: 24px;
    font-family: 'Amiri', Georgia, serif;
    font-size: 62px;
    font-weight: 600;
    line-height: 1;
    color: var(--wdm-quote);
    pointer-events: none;
    user-select: none;
}

.wdm-review-text-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
}

.wdm-review-text {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16.5px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.42;
    color: var(--wdm-ink);
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wdm-review-footer {
    margin-top: auto;
    padding-top: 8px;
}

.wdm-review-author {
    margin: 0 0 8px;
    text-align: right;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--wdm-taupe);
}

.wdm-review-invoice {
    margin: 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--wdm-taupe);
}

.wdm-review-date {
    margin: 2px 0 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--wdm-taupe);
}

@media (max-width: 767px) {
    .wdm-review-card {
        min-height: 360px;
        padding: 20px 22px 24px;
    }
    .wdm-review-card:hover {
        transform: none;
    }
    .wdm-prop-location-text {
        font-size: 17px;
    }
    .wdm-prop-agent-circle {
        width: 72px;
        height: 72px;
    }
    .wdm-prop-agent-avatar-wrap {
        margin-top: -40px;
    }
}


/* ==========================================================================
   WALTER & DE MAISON — ARBITRARY TAILWIND COLOR UTILITIES POLYFILL
   Guarantees every template using WDM hex classes renders even without rebuild
   ========================================================================== */
.bg-\[\#2F3633\] { background-color: #2F3633 !important; }
.bg-\[\#605A59\] { background-color: #605A59 !important; }
.bg-\[\#D3C4AF\] { background-color: #D3C4AF !important; }
.bg-\[\#D6CEBF\] { background-color: #D6CEBF !important; }
.bg-\[\#F0EEE9\] { background-color: #F0EEE9 !important; }
.bg-\[\#F7F7F5\] { background-color: #F7F7F5 !important; }
.hover\:bg-\[\#2F3633\]:hover { background-color: #2F3633 !important; }
.hover\:bg-\[\#605A59\]:hover { background-color: #605A59 !important; }
.hover\:bg-\[\#F0EEE9\]:hover { background-color: #F0EEE9 !important; }
.text-\[\#2F3633\] { color: #2F3633 !important; }
.text-\[\#605A59\] { color: #605A59 !important; }
.text-\[\#D3C4AF\] { color: #D3C4AF !important; }
.text-\[\#D6CEBF\] { color: #D6CEBF !important; }
.hover\:text-\[\#605A59\]:hover { color: #605A59 !important; }
.border-\[\#605A59\] { border-color: #605A59 !important; }
.border-\[\#D6CEBF\] { border-color: #D6CEBF !important; }
.border-\[\#DDD8CE\] { border-color: #DDD8CE !important; }
.border-\[\#E8E4DC\] { border-color: #E8E4DC !important; }
select.wdm-clean-select,
.immofrance-ag-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}
select.wdm-clean-select::picker-icon,
.immofrance-ag-select::picker-icon {
    display: none !important;
}
