.ie-search-wrapper,
.ie-results-wrapper,
.ie-search-wrapper *,
.ie-results-wrapper * {
    font-family: inherit;
}

.ie-search-wrapper,
.ie-results-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.ie-search-form {
    background: #f7f7f7;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    margin-bottom: 30px;
}

.ie-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 230px;
    gap: 16px;
    align-items: end;
}

.ie-field {
    min-width: 0;
}

.ie-field label {
    display: block;
    font-size: 15px;
    color: #8e8e8e;
    margin-bottom: 8px;
    font-weight: 500;
}

.ie-field select,
.ie-field input[type="number"] {
    width: 100%;
    height: 64px;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    padding: 0 18px;
    background: #fff;
    font-size: 16px;
    color: #1f1f1f;
    outline: none;
    box-sizing: border-box;
    box-shadow: none;
    transition: all 0.2s ease;
}

.ie-field select:focus,
.ie-field input[type="number"]:focus {
    border-color: #b8d4ea;
    box-shadow: 0 0 0 3px rgba(22, 101, 216, 0.10);
}

.ie-submit-wrap {
    display: flex;
    align-items: end;
}

.ie-search-btn {
    width: 100% !important;
    height: 64px;
    border: none !important;
    border-radius: 16px !important;
    background: #005baa !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: none !important;
}

.ie-search-btn:hover {
    background: #004b8e !important;
    color: #fff !important;
}

.ie-search-icon svg,
.ie-filter-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    margin-bottom: -5px;
}

.ie-toggle-advanced {
    margin-top: 18px;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #005BAA !important;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: none !important;
}

.ie-toggle-advanced:hover,
.ie-toggle-advanced:active,
.ie-toggle-advanced:focus {
    background: transparent !important;
    color: #005BAA !important;
    border: none !important;
    box-shadow: none !important;
}

.ie-advanced-fields {
    margin-top: 18px;
}

.ie-divider {
    height: 1px;
    background: #e6e6e6;
    margin-bottom: 18px;
}

.ie-advanced-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.ie-currency-switch {
    display: flex;
    border: 1px solid #d9d9d9;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    height: 64px;
}

.ie-currency-switch-3 label {
    flex: 1;
}

.ie-currency-switch input[type="radio"] {
    display: none;
}

.ie-currency-switch label {
    flex: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.ie-currency-switch input[type="radio"]:checked + label {
    background: #005baa;
    color: #fff;
}

.ie-results-count {
    margin-bottom: 18px;
    font-size: 15px;
    color: #666;
}

.ie-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.ie-results-grid > * {
    min-width: 0;
}

.ie-card-modern {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid #ececec;
    width: 100%;
    min-width: 0;
}

.ie-card-media {
    position: relative;
    overflow: hidden;
    height: 285px;
    background: #f2f2f2;
}

.ie-card-media a,
.ie-card-media img {
    display: block;
    width: 100%;
    height: 100%;
}

.ie-card-media img {
    object-fit: cover;
}

.ie-card-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8, #dcdcdc);
}

.ie-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #005baa;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ie-card-price-overlay {
    position: absolute;
    left: 22px;
    bottom: 22px;
    color: #fff;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.ie-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.10) 35%, rgba(0,0,0,0.02) 60%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.ie-card-body {
    padding: 22px 24px 24px;
    min-width: 0;
}

.ie-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    min-width: 0;
}

.ie-card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.ie-card-title a {
    color: #1e1e1e;
    text-decoration: none;
}

.ie-card-type-pill {
    flex-shrink: 0;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #0b63b6;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ie-card-subline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: #8a8f98;
    font-size: 14px;
    min-width: 0;
}

.ie-card-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ie-card-location span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ie-card-pin {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: #9aa1ab;
    flex-shrink: 0;
}

.ie-card-pin svg {
    width: 16px;
    height: 16px;
    display: block;
}

.ie-card-ref {
    font-size: 13px;
    color: #9aa1ab;
    white-space: nowrap;
    flex-shrink: 0;
}

.ie-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 15px;
    min-width: 0;
}

.ie-card-feature {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.ie-card-feature svg {
    width: 16px;
    height: 16px;
    display: block;
    color: #8e959f;
}

.ie-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #005baa;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
}

.ie-card-more:hover {
    color: #004b8e;
}

.ie-card-arrow {
    font-size: 18px;
    line-height: 1;
}

.ie-pagination {
    margin-top: 30px;
}

.ie-no-results {
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

@media (max-width: 980px) {
    .ie-top-row {
        grid-template-columns: 1fr 1fr;
    }

    .ie-advanced-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ie-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .ie-search-form {
        padding: 16px;
        border-radius: 18px;
    }

    .ie-top-row,
    .ie-advanced-grid {
        grid-template-columns: 1fr !important;
    }

    .ie-results-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .ie-field select,
    .ie-field input[type="number"],
    .ie-search-btn,
    .ie-currency-switch {
        height: 58px;
    }

    .ie-card-media {
        height: 230px;
    }

    .ie-card-body {
        padding: 18px;
    }

    .ie-card-head,
    .ie-card-subline {
        flex-direction: column;
        align-items: flex-start;
    }

    .ie-card-location span:last-child {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

.ie-search-btn,
.ie-toggle-advanced {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    line-height: 1;
}

.ie-search-icon,
.ie-filter-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.ie-search-icon svg,
.ie-filter-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 !important;
}

.ie-toggle-text,
.ie-search-btn span:last-child {
    display: inline-block;
    line-height: 1.2;
}

.ie-toggle-advanced {
    justify-content: flex-start;
}/* ═══════════════════════════════════════════════════════════════════════════
   Single bien — Immo Essaouira
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
    --ie-accent:    #c8a96e;
    --ie-accent-dk: #a8854a;
    --ie-dark:      #1a1a1a;
    --ie-mid:       #4a4a4a;
    --ie-light:     #f5f3ef;
    --ie-border:    #e2ddd6;
    --ie-radius:    10px;
    --ie-wa:        #25d366;
    --ie-wa-dk:     #1aad53;
}

/* ── Conteneur global ──────────────────────────────────────────────────── */
.ie-single-wrap {
    max-width: 1140px;
    margin: 0 auto 64px;
    padding: 130px 20px 0;
}

/* ── Fil d'Ariane ──────────────────────────────────────────────────────── */
.ie-breadcrumb {
    margin-bottom: 24px;
    font-size: 0.82rem;
    color: var(--ie-mid);
}
.ie-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin: 0;
    padding: 0;
}
.ie-breadcrumb li { display: flex; align-items: center; }
.ie-breadcrumb a { color: var(--ie-accent-dk); text-decoration: none; }
.ie-breadcrumb a:hover { text-decoration: underline; }
.ie-breadcrumb-current { color: var(--ie-dark); font-weight: 500; }

/* ── Mise en page 2 colonnes ───────────────────────────────────────────── */
.ie-single-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .ie-single-layout {
        grid-template-columns: 1fr;
    }
    .ie-single-aside {
        order: -1;
    }
}

/* ── Galerie ───────────────────────────────────────────────────────────── */
.ie-gallery {
    border-radius: var(--ie-radius);
    overflow: hidden;
    background: #000;
    margin-bottom: 32px;
}

.ie-gallery-main {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--ie-light);
}

.ie-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

/* Badge (À vendre / Location…) */
.ie-single-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--ie-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
}

/* Prix en overlay sur l'image */
.ie-single-price-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

/* Vignettes */
.ie-gallery-thumbs {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: #111;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ie-accent) #111;
}

.ie-gallery-thumb {
    flex: 0 0 80px;
    height: 56px;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color 0.15s;
}

.ie-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.65;
    transition: opacity 0.15s;
}

.ie-gallery-thumb:hover img,
.ie-gallery-thumb.active img {
    opacity: 1;
}

.ie-gallery-thumb.active {
    border-color: var(--ie-accent);
}

/* ── Description ───────────────────────────────────────────────────────── */
.ie-single-description {
    margin-bottom: 32px;
}

.ie-single-description h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ie-dark);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ie-border);
}

.ie-single-content {
    color: var(--ie-mid);
    line-height: 1.75;
    font-size: 0.97rem;
}

.ie-single-content p { margin: 0 0 1em; }

/* ── Colonne latérale ──────────────────────────────────────────────────── */
.ie-single-aside {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── En-tête : type pill + titre + localisation ────────────────────────── */
.ie-single-header { }

.ie-single-type-pill {
    display: inline-block;
    background: var(--ie-light);
    color: var(--ie-accent-dk);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid var(--ie-border);
}

.ie-single-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--ie-dark);
    line-height: 1.25;
    margin: 0 0 10px;
}

.ie-single-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.88rem;
    color: var(--ie-mid);
    margin: 0;
}

.ie-single-location svg {
    flex-shrink: 0;
    color: var(--ie-accent);
}

/* ── Prix ──────────────────────────────────────────────────────────────── */
.ie-single-price-box {
    background: var(--ie-light);
    border: 1px solid var(--ie-border);
    border-radius: var(--ie-radius);
    padding: 16px 20px;
    text-align: center;
}

.ie-single-price {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--ie-accent-dk);
    letter-spacing: -0.02em;
}

/* ── Indicateurs clés ──────────────────────────────────────────────────── */
.ie-single-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ie-single-feat {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid var(--ie-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--ie-mid);
    flex: 1 1 auto;
    min-width: 90px;
}

.ie-single-feat svg {
    width: 20px;
    height: 20px;
    color: var(--ie-accent);
    flex-shrink: 0;
}

.ie-single-feat strong {
    color: var(--ie-dark);
    font-weight: 700;
}

/* ── Tableau de détails ────────────────────────────────────────────────── */
.ie-single-details {
    background: #fff;
    border: 1px solid var(--ie-border);
    border-radius: var(--ie-radius);
    padding: 20px;
}

.ie-single-details-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ie-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ie-border);
}

.ie-single-dl {
    margin: 0;
}

.ie-single-dl-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ie-border);
    font-size: 0.875rem;
}

.ie-single-dl-row:last-child {
    border-bottom: none;
}

.ie-single-dl-row dt {
    color: var(--ie-mid);
    font-weight: 400;
    flex-shrink: 0;
}

.ie-single-dl-row dd {
    color: var(--ie-dark);
    font-weight: 600;
    margin: 0;
    text-align: right;
}

/* ── Bouton WhatsApp ───────────────────────────────────────────────────── */
.ie-single-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--ie-wa);
    color: #fff;
    font-weight: 700;
    font-size: 0.97rem;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: var(--ie-radius);
    transition: background 0.18s;
}

.ie-single-wa-btn:hover {
    background: var(--ie-wa-dk);
    color: #fff;
}

/* ── Retour aux biens ──────────────────────────────────────────────────── */
.ie-single-back {
    display: block;
    text-align: center;
    color: var(--ie-mid);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 6px 0;
}

.ie-single-back:hover {
    color: var(--ie-accent-dk);
    text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ie-single-title { font-size: 1.25rem; }
    .ie-single-price { font-size: 1.5rem; }
    .ie-gallery-thumb { flex: 0 0 64px; height: 46px; }
    .ie-single-wrap { padding-top: 80px; }
}

/* ── Fixes débordements ────────────────────────────────────────────────── */
.ie-single-wrap { overflow-x: hidden; }

/* Empêche les enfants du grid de déborder */
.ie-single-main,
.ie-single-aside { min-width: 0; }

/* Texte long dans le tableau de détails */
.ie-single-dl-row dd {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 60%;
}

/* Breadcrumb wrap sur mobile */
.ie-breadcrumb ol { flex-wrap: wrap; }

/* Galerie : image principale ne dépasse pas */
.ie-gallery-main img { max-width: 100%; }

/* Prix overlay : ne dépasse pas sur petit écran */
.ie-single-price-overlay { max-width: calc(100% - 32px); }

/* Aside sticky : hauteur max pour ne pas dépasser le viewport */
@media (min-width: 901px) {
    .ie-single-aside {
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        scrollbar-width: none;
    }
    .ie-single-aside::-webkit-scrollbar { display: none; }
}
/* ═══════════════════════════════════════════════════════════════════════════
   Front-page Marokeys — Design system
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fonts ─────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
    --mk-gold:       #c8a96e;
    --mk-gold-dk:    #a8854a;
    --mk-dark:       #1c1c1c;
    --mk-mid:        #4a4a4a;
    --mk-light:      #f8f6f2;
    --mk-white:      #ffffff;
    --mk-border:     #e5e0d8;
    --mk-radius:     12px;
    --mk-shadow:     0 4px 24px rgba(0,0,0,0.08);
    --mk-shadow-lg:  0 12px 48px rgba(0,0,0,0.14);
    --mk-transition: 0.22s ease;
    --mk-container:  1200px;
    --mk-section-py: 80px;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
.mk-home {
    font-family: 'DM Sans', sans-serif;
    color: var(--mk-dark);
}

.mk-home h1, .mk-home h2, .mk-home h3 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.mk-container {
    max-width: var(--mk-container);
    margin: 0 auto;
    padding: 0 24px;
}

.mk-section-head {
    text-align: center;
    margin-bottom: 48px;
}

.mk-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mk-gold);
    margin: 0 0 12px;
}

.mk-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--mk-dark);
    margin: 0 0 16px;
}

.mk-section-sub {
    font-size: 1.05rem;
    color: var(--mk-mid);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.mk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--mk-transition);
    cursor: pointer;
    border: none;
}

.mk-btn-primary {
    background: var(--mk-gold);
    color: #fff;
}
.mk-btn-primary:hover {
    background: var(--mk-gold-dk);
    color: #fff;
}

.mk-btn-ghost {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
}
.mk-btn-ghost:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.mk-btn-outline {
    background: transparent;
    color: var(--mk-gold-dk);
    border: 1.5px solid var(--mk-gold);
}
.mk-btn-outline:hover {
    background: var(--mk-gold);
    color: #fff;
}

.mk-btn-full { width: 100%; justify-content: center; }

/* ── HERO ──────────────────────────────────────────────────────────────── */
.mk-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    background-image: var(--mk-hero-bg, linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%));
    background-size: cover;
    background-position: center;
    color: #fff;
}

.mk-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0.35) 0%,
        rgba(10,10,10,0.55) 50%,
        rgba(10,10,10,0.80) 100%
    );
}

.mk-hero-inner {
    position: relative;
    width: 100%;
    max-width: var(--mk-container);
    margin: 0 auto;
    padding: 80px 24px 48px;
}

.mk-hero-content {
    max-width: 680px;
    margin-bottom: 48px;
}

.mk-hero .mk-eyebrow { color: var(--mk-gold); margin-bottom: 16px; }

.mk-hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.mk-hero-sub {
    font-size: 1.12rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 0 auto 32px;
    max-width: none;
}

.mk-hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Stats strip */
.mk-hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 36px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--mk-radius);
    flex-wrap: wrap;
    width: fit-content;
}

.mk-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mk-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--mk-gold);
    line-height: 1;
}

.mk-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
    text-align: center;
}

.mk-stat-sep {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.2);
}

/* ── SEARCH ────────────────────────────────────────────────────────────── */
.mk-search-section {
    background: var(--mk-light);
    padding: 40px 0;
    border-bottom: 1px solid var(--mk-border);
}

/* ── PROPERTIES ────────────────────────────────────────────────────────── */
.mk-props-section {
    padding: var(--mk-section-py) 0;
    background-color: var(--mk-white);
}

.mk-props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.mk-props-more { text-align: center; }

/* ── SERVICES ──────────────────────────────────────────────────────────── */
.mk-services-section {
    padding: var(--mk-section-py) 0;
    background-color: var(--mk-light);
}

.mk-services-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.mk-services-left { position: sticky; top: 80px; }
.mk-services-left .mk-section-title { text-align: left; }
.mk-services-left .mk-section-sub { text-align: left; margin-left: 0; }

.mk-service {
    border-bottom: 1px solid var(--mk-border);
}

.mk-service:first-child { border-top: 1px solid var(--mk-border); }

.mk-service-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.mk-service-head::-webkit-details-marker { display: none; }

.mk-service-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--mk-gold);
    font-weight: 700;
    flex-shrink: 0;
    width: 36px;
}

.mk-service-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mk-dark);
    flex: 1;
}

.mk-service-chevron {
    color: var(--mk-mid);
    transition: transform var(--mk-transition);
    flex-shrink: 0;
}

details[open] .mk-service-chevron { transform: rotate(180deg); }
details[open] .mk-service-name { color: var(--mk-gold-dk); }

.mk-service-body {
    padding: 0 0 24px 56px;
    color: var(--mk-mid);
    line-height: 1.7;
    font-size: 0.97rem;
}

.mk-service-body p { margin: 0 0 12px; }

.mk-service-body ul {
    margin: 0;
    padding-left: 18px;
}

.mk-service-body li {
    margin-bottom: 6px;
}

/* ── FOUNDERS ──────────────────────────────────────────────────────────── */
.mk-founders-section {
    padding: var(--mk-section-py) 0;
    background-color: var(--mk-white);
}

.mk-founders-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 72px;
    align-items: center;
}

.mk-founders-text .mk-section-title { text-align: left; }

.mk-founders-intro {
    font-size: 1.05rem;
    color: var(--mk-mid);
    line-height: 1.75;
    margin: 0 0 32px;
}

.mk-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.mk-value {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.mk-value-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.mk-value strong {
    display: block;
    font-weight: 700;
    color: var(--mk-dark);
    margin-bottom: 4px;
}

.mk-value p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--mk-mid);
    line-height: 1.6;
}

.mk-founders-quote {
    border-left: 3px solid var(--mk-gold);
    padding-left: 20px;
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--mk-mid);
    line-height: 1.6;
}

.mk-founders-img img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--mk-radius);
    box-shadow: var(--mk-shadow-lg);
}

.mk-founders-placeholder {
    width: 100%;
    height: 480px;
    background: var(--mk-light);
    border-radius: var(--mk-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mk-mid);
    font-size: 0.9rem;
    border: 2px dashed var(--mk-border);
}

/* ── ARTICLES ──────────────────────────────────────────────────────────── */
.mk-articles-section {
    padding: var(--mk-section-py) 0;
    background-color: var(--mk-light);
}

.mk-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.mk-article-card {
    background: var(--mk-white);
    border-radius: var(--mk-radius);
    overflow: hidden;
    box-shadow: var(--mk-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform var(--mk-transition), box-shadow var(--mk-transition);
    display: flex;
    flex-direction: column;
}

.mk-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mk-shadow-lg);
}

.mk-article-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--mk-light);
}

.mk-article-img-empty { background-color: var(--mk-light); }

.mk-article-body { padding: 24px; flex: 1; }

.mk-article-cat {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mk-gold);
    display: block;
    margin-bottom: 10px;
}

.mk-article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--mk-dark);
    margin: 0 0 10px;
    line-height: 1.35;
}

.mk-article-date {
    font-size: 0.82rem;
    color: var(--mk-mid);
    margin: 0;
}

/* ── CONTACT ───────────────────────────────────────────────────────────── */
.mk-contact-section {
    padding: var(--mk-section-py) 0;
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1f30 50%, #1a2535 100%);
    color: #fff;
}

.mk-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 72px;
    align-items: start;
}

.mk-contact-section .mk-eyebrow { color: var(--mk-gold); }
.mk-contact-section .mk-section-title { color: #fff; text-align: left; margin-bottom: 16px; }

.mk-contact-sub {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 36px;
    font-size: 0.97rem;
}

.mk-contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mk-contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.mk-contact-item svg { color: var(--mk-gold); flex-shrink: 0; margin-top: 2px; }

.mk-contact-item strong {
    display: block;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.mk-contact-item a,
.mk-contact-item span {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
}

.mk-contact-item a:hover { color: var(--mk-gold); }

/* Form */
.mk-contact-form {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--mk-radius);
    padding: 36px;
    backdrop-filter: blur(8px);
}

.mk-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mk-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.mk-form-group label {
    font-size: 0.83rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.mk-form-group input,
.mk-form-group select,
.mk-form-group textarea {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--mk-transition);
    width: 100%;
    box-sizing: border-box;
}

.mk-form-group input::placeholder,
.mk-form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.mk-form-group input:focus,
.mk-form-group select:focus,
.mk-form-group textarea:focus { border-color: var(--mk-gold); }

.mk-form-group select option { background: #2c2c2c; }

.mk-form-success {
    background: rgba(0,163,42,0.15);
    border: 1px solid rgba(0,163,42,0.4);
    color: #6effa0;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .mk-props-grid { grid-template-columns: repeat(2, 1fr); }
    .mk-services-layout { grid-template-columns: 1fr; gap: 40px; }
    .mk-services-left { position: static; }
    .mk-founders-layout { grid-template-columns: 1fr; }
    .mk-founders-img { order: -1; }
    .mk-founders-img img,
    .mk-founders-placeholder { height: 320px; }
    .mk-contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .mk-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    :root { --mk-section-py: 56px; }
    .mk-hero { min-height: 100svh; }
    .mk-hero-stats { gap: 20px; padding: 18px 24px; }
    .mk-stat-sep { height: 32px; }
    .mk-props-grid { grid-template-columns: 1fr; }
    .mk-articles-grid { grid-template-columns: 1fr; }
    .mk-form-row { grid-template-columns: 1fr; }
    .mk-contact-form { padding: 24px 20px; }
}

/* ── Contact form on single bien ──────────────────────────────────────── */
.ie-single-contact-form {
    background: #fff;
    border: 1px solid var(--ie-border);
    border-radius: var(--ie-radius);
    padding: 20px;
}

.ie-contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ie-cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ie-cf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ie-cf-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ie-mid);
}

.ie-cf-field input,
.ie-cf-field textarea {
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--ie-dark);
    background: var(--ie-light);
    border: 1px solid var(--ie-border);
    border-radius: 8px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
}

.ie-cf-field input:focus,
.ie-cf-field textarea:focus {
    border-color: var(--ie-accent);
}

.ie-cf-field input::placeholder,
.ie-cf-field textarea::placeholder {
    color: #aaa;
}

.ie-cf-feedback {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
}

.ie-cf-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.ie-cf-error {
    background: #fce4ec;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

@media (max-width: 600px) {
    .ie-cf-row { grid-template-columns: 1fr; }
}

/* ── Video thumbnail play icon ────────────────────────────────────────── */
.ie-thumb-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #222;
    color: #fff;
    font-size: 18px;
}

.ie-gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-bottom-nav { display: none; }

@media (max-width: 768px) {
    .mk-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 99999;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -2px 20px rgba(0,0,0,0.06);
        padding: 6px 0 max(6px, env(safe-area-inset-bottom));
        justify-content: space-around;
        align-items: center;
    }
    .mk-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-decoration: none;
        color: #8E9294;
        font-family: 'DM Sans', sans-serif;
        font-size: 10px;
        font-weight: 500;
        padding: 4px 8px;
        border-radius: 8px;
        transition: color 0.22s ease, background 0.22s ease;
        -webkit-tap-highlight-color: transparent;
        min-width: 56px;
    }
    .mk-bottom-nav a.active,
    .mk-bottom-nav a:hover { color: #005DAA; }
    .mk-bottom-nav a.active { background: #e8f0f8; }
    .mk-bottom-nav svg { width: 22px; height: 22px; stroke-width: 1.8; }
    .mk-bottom-nav .mk-bnav-cta {
        color: #fff;
        background: #005DAA;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        margin-top: -18px;
        box-shadow: 0 4px 16px rgba(0,93,170,0.35);
        justify-content: center;
        padding: 0;
        min-width: auto;
        font-size: 0;
    }
    .mk-bottom-nav .mk-bnav-cta svg { width: 24px; height: 24px; }
    .mk-bottom-nav .mk-bnav-cta:hover { background: #004a88; color: #fff; }
    .mk-bottom-nav .mk-bnav-reels svg { stroke-width: 1.8; }
    .mk-bottom-nav .mk-bnav-reels.active {
        color: #a8854a;
        background: linear-gradient(135deg, rgba(200,169,110,0.18), rgba(200,169,110,0.06));
    }
    body { padding-bottom: 72px !important; }
    body.mk-reels-body { padding-bottom: 0 !important; }
    body.mk-reels-body .mk-bottom-nav { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOP NAVIGATION BAR (shared across all templates)
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10000;
    background: rgba(255,255,255,0.0);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    padding: 0 24px;
}
body.admin-bar .mk-topnav { top: 32px !important; }
@media screen and (max-width: 782px) { body.admin-bar .mk-topnav { top: 46px; } }
.mk-topnav.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.mk-topnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 32px;
}
.mk-topnav-logo { flex-shrink: 0; display: flex; align-items: center; text-decoration: none; }
.mk-topnav-logo img { height: 64px; width: auto; }
.mk-topnav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}
.mk-topnav-links {
    display: flex; align-items: center; gap: 8px;
    list-style: none; margin: 0 auto; padding: 0;
}
.mk-topnav-links a {
    display: block; padding: 8px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem; font-weight: 500;
    color: #374151;
    text-decoration: none; border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.mk-topnav-links a:hover { color: #005DAA; background: #e8f0f8; }
.mk-topnav-links a.active { color: #005DAA; background: #e8f0f8; font-weight: 600; }
.mk-topnav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.mk-topnav-phone {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #005DAA;
    border: 1.5px solid #e5e7eb;
    transition: background 0.2s;
}
.mk-topnav-phone:hover { background: #e8f0f8; }
.mk-topnav-cta { font-size: 0.82rem !important; padding: 8px 18px !important; gap: 6px !important; }
.mk-topnav-burger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; padding: 8px; cursor: pointer;
}
.mk-topnav-burger span {
    display: block; width: 22px; height: 2px; background: #111827;
    border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.mk-topnav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mk-topnav-burger.open span:nth-child(2) { opacity: 0; }
.mk-topnav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .mk-topnav-inner { height: 60px; gap: 12px; }
    .mk-topnav-links {
        display: none; position: fixed;
        top: 60px; left: 0; right: 0; bottom: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(16px);
        flex-direction: column; padding: 24px; gap: 4px; z-index: 9999;
    }
    .mk-topnav-links.open { display: flex; }
    .mk-topnav-links a { color: #111827 !important; font-size: 1rem; padding: 14px 20px; border-radius: 12px; }
    .mk-topnav-links a.active { color: #005DAA !important; background: #e8f0f8 !important; }
    .mk-topnav-actions .mk-topnav-cta { display: none; }
    .mk-topnav-burger { display: flex; }
    .mk-topnav-logo img { height: 48px; }
}

/* Hide Elementor header on plugin templates */
body.single-biens .elementor-location-header,
body.post-type-archive-biens .elementor-location-header {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CUSTOM FOOTER (shared)
   ═══════════════════════════════════════════════════════════════════════════ */
.mk-footer {
    background: #111827; color: rgba(255,255,255,0.7);
    font-family: 'DM Sans', sans-serif; padding: 64px 0 0;
}
.mk-footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.mk-footer a:hover { color: #C2B280; }
.mk-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px;
}
.mk-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mk-footer-logo { height: 48px; width: auto; max-width: 180px; object-fit: contain; object-position: left; display: block; filter: brightness(0) invert(1); opacity: 0.9; }
.mk-footer-brand-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: #fff; }
.mk-footer-tagline { font-size: 0.88rem; line-height: 1.6; max-width: 300px; }
.mk-footer-social { display: flex; gap: 10px; }
.mk-footer-social a {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.15); border-radius: 8px;
    transition: background 0.2s, border-color 0.2s;
}
.mk-footer-social a:hover { border-color: #C2B280; background: rgba(255,255,255,0.05); }
.mk-footer-col h4 {
    font-size: 0.9rem; font-weight: 600; color: #fff;
    margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.04em;
}
.mk-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mk-footer-col li { font-size: 0.88rem; }
.mk-footer-bottom {
    padding: 24px 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4);
    max-width: 1200px; margin: 0 auto;
}
@media (max-width: 768px) {
    .mk-footer { padding: 48px 0 0; }
    .mk-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .mk-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .mk-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
