/* =========================================
   OPERA PRESTIGE — villa-listing.css
   Page : /luxury-villa-rental-french-riviera/
   Préfixe : .vl- (villa listing)
   À placer dans : /wp-content/themes/uncode-child/css/
   Zéro collision avec .vp- (villa page) et .op- (yacht)
========================================= */

/* ── Reset box-sizing ── */
#op-vl-root * { box-sizing: border-box; }
#op-vl-root a { text-decoration: none; color: inherit; }

/* ── Variables locales (miroir de la charte globale) ── */
#op-vl-root {
    --black:        #0A0A0A;
    --white:        #F5F3EE;
    --gold:         #C9A96E;
    --gold-lt:      #E8D8B4;
    --mid:          #1A1A1A;
    --muted:        #6B6B6B;
    --border:       #2C2C2C;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-serif:   'Playfair Display', Georgia, serif;
    --font-sans:    'Inter', Helvetica, Arial, sans-serif;
    --ease:         cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--black);
    color: var(--white);
    font-family: var(--font-sans);
}



/* ============================================================
   HERO
============================================================ */
.vl-hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--black);
}

.vl-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    transform: scale(1.04);
    transition: transform 14s var(--ease);
}
.vl-hero:hover .vl-hero__bg { transform: scale(1); }

.vl-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,10,10,0.92) 0%,
        rgba(10,10,10,0.40) 50%,
        rgba(10,10,10,0.15) 100%
    );
    z-index: 1;
}

.vl-hero__content {
    position: relative;
    z-index: 2;
    padding: 0 clamp(24px,6vw,100px) clamp(60px,8vh,110px);
    max-width: 860px;
}

.vl-hero__label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.vl-hero__title {
    font-family: var(--font-display);
    font-size: clamp(52px, 8vw, 108px);
    font-weight: 300;
    font-style: italic;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--white);
    margin: 0 0 30px;
}

.vl-hero__title em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 1px rgba(245,243,238,0.55);
}

.vl-hero__sub {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(245,243,238,0.55);
    max-width: 480px;
    margin-bottom: 40px;
}

.vl-hero__cta {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans) !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    letter-spacing: 0.3em !important;
    text-transform: uppercase !important;
    color: #0A0A0A !important;
    background: #F5F3EE !important;
    padding: 16px 40px !important;
    text-decoration: none !important;
    border: 1px solid #F5F3EE !important;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    line-height: 1 !important;
}
.vl-hero__cta:hover {
    background: #C9A96E !important;
    border-color: #C9A96E !important;
    color: #0A0A0A !important;
    text-decoration: none !important;
}

/* Scroll indicator */
.vl-hero__scroll {
    position: absolute;
    bottom: 36px;
    right: clamp(24px,6vw,100px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
}
.vl-hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--white), transparent);
}
.vl-hero__scroll-text {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--white);
    writing-mode: vertical-rl;
}


/* ============================================================
   INTRO ÉDITORIALE
============================================================ */
.vl-intro {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px clamp(24px,6vw,100px) 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    border-bottom: 1px solid var(--border);
}

.vl-intro__rule {
    width: 32px; height: 1px;
    background: var(--gold);
    margin-bottom: 20px;
}

.vl-intro__label {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    display: block;
}

.vl-intro__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 300;
    font-style: italic;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--white);
    margin: 0;
}

.vl-intro__body {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(245,243,238,0.55);
    margin: 0;
}

.vl-intro__stats {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.vl-intro__stat-val {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    line-height: 1;
    display: block;
}

.vl-intro__stat-lbl {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 6px;
    display: block;
}


/* ============================================================
   FILTRES
============================================================ */
.vl-filters {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px clamp(24px,6vw,100px);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}

.vl-filters__label {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 8px;
    white-space: nowrap;
}

.vl-filter-btn {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245,243,238,0.55);
    background: transparent;
    border: 1px solid var(--border);
    padding: 9px 20px;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
    white-space: nowrap;
}
.vl-filter-btn:hover {
    border-color: rgba(245,243,238,0.35);
    color: var(--white);
}
.vl-filter-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,169,110,0.06);
}

.vl-filters__count {
    margin-left: auto;
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--muted);
    white-space: nowrap;
}


/* ============================================================
   GRILLE DES VILLAS
============================================================ */
.vl-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px clamp(24px,6vw,100px) 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

/* CARD */
.vl-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--mid);
    aspect-ratio: 3 / 4;
    cursor: pointer;
    text-decoration: none;
    /* Pour les "featured" cards */
}

/* Featured : une card prend 2 colonnes */
.vl-card--featured {
    grid-column: span 2;
    aspect-ratio: 16 / 11;
}

/* Image */
.vl-card__img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.06);
    transition: transform 0.9s var(--ease);
}
.vl-card:hover .vl-card__img { transform: scale(1); }

/* Overlay gradient */
.vl-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,10,10,0.88) 0%,
        rgba(10,10,10,0.12) 55%,
        transparent 100%
    );
    transition: opacity 0.4s ease;
}
.vl-card:hover .vl-card__overlay {
    background: linear-gradient(
        to top,
        rgba(10,10,10,0.94) 0%,
        rgba(10,10,10,0.35) 60%,
        transparent 100%
    );
}

/* Contenu de la card */
.vl-card__body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px 28px;
    z-index: 2;
    transition: transform 0.4s var(--ease);
}
.vl-card:hover .vl-card__body { transform: translateY(-6px); }

.vl-card__tag {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}

.vl-card__name {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 300;
    font-style: italic;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--white);
    margin: 0 0 8px;
}

.vl-card__location {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245,243,238,0.45);
    margin-bottom: 16px;
    display: block;
}

/* Métriques rapides */
.vl-card__metrics {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s var(--ease) 0.05s, transform 0.35s var(--ease) 0.05s;
    margin-bottom: 16px;
}
.vl-card:hover .vl-card__metrics {
    opacity: 1;
    transform: translateY(0);
}
.vl-card__metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vl-card__metric-val {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    line-height: 1;
}
.vl-card__metric-lbl {
    font-family: var(--font-sans);
    font-size: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(245,243,238,0.4);
}

/* Prix + CTA inline */
.vl-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vl-card__price-from {
    font-family: var(--font-sans);
    font-size: 8px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
}
.vl-card__price-val {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    line-height: 1;
}
.vl-card__price-unit {
    font-family: var(--font-sans);
    font-size: 8px;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.vl-card__link {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--white);
    border-bottom: 1px solid rgba(245,243,238,0.3);
    padding-bottom: 2px;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.3s, color 0.3s;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s var(--ease) 0.1s, transform 0.3s var(--ease) 0.1s, color 0.3s, border-color 0.3s;
}
.vl-card:hover .vl-card__link {
    opacity: 1;
    transform: translateY(0);
    border-color: var(--gold);
    color: var(--gold);
}

/* Badge disponibilité */
.vl-card__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10,10,10,0.7);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245,243,238,0.7);
    border: 1px solid rgba(245,243,238,0.1);
}
.vl-card__badge-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #4CAF50;
    flex-shrink: 0;
}

/* État "hidden" pour le filtre JS */
.vl-card--hidden {
    display: none !important;
}


/* ============================================================
   SECTION RÉASSURANCE (entre grille et CTA)
============================================================ */
.vl-reassure {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.vl-reassure__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(24px,6vw,100px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.vl-reassure__item {
    padding: 56px 0;
    border-right: 1px solid var(--border);
    padding-right: 40px;
    padding-left: 40px;
}
.vl-reassure__item:first-child { padding-left: 0; }
.vl-reassure__item:last-child { border-right: none; padding-right: 0; }

.vl-reassure__icon {
    width: 28px; height: 1px;
    background: var(--gold);
    margin-bottom: 24px;
}

.vl-reassure__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    margin: 0 0 10px;
    line-height: 1.2;
}

.vl-reassure__text {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(245,243,238,0.45);
    margin: 0;
}


/* ============================================================
   CTA FINAL
============================================================ */
.vl-cta {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mid);
}

.vl-cta__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    transform: scale(1.06);
    transition: transform 14s var(--ease);
}
.vl-cta:hover .vl-cta__bg { transform: scale(1); }

.vl-cta__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.6);
}

.vl-cta__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    padding: 80px clamp(24px,6vw,60px);
}

.vl-cta__label {
    font-family: var(--font-sans);
    font-size: 9px;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.vl-cta__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 300;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--white);
    margin: 0 0 16px;
}

.vl-cta__sub {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(245,243,238,0.5);
    margin: 0 0 40px;
}

.vl-cta__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vl-btn {
    display: inline-block !important;
    padding: 15px 44px !important;
    font-family: var(--font-sans) !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    letter-spacing: 0.3em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    line-height: 1 !important;
}

.vl-btn--solid {
    background: #F5F3EE !important;
    color: #0A0A0A !important;
    border: 1px solid #F5F3EE !important;
}
.vl-btn--solid:hover {
    background: #C9A96E !important;
    border-color: #C9A96E !important;
    color: #0A0A0A !important;
    text-decoration: none !important;
}

.vl-btn--ghost {
    background: transparent !important;
    color: rgba(245,243,238,0.7) !important;
    border: 1px solid rgba(245,243,238,0.25) !important;
}
.vl-btn--ghost:hover {
    border-color: #F5F3EE !important;
    color: #F5F3EE !important;
    text-decoration: none !important;
}


/* ============================================================
   FOOTER
============================================================ */
.vl-footer {
    padding: 40px clamp(24px,6vw,100px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.vl-footer__copy {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.vl-footer__links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0; padding: 0;
}
.vl-footer__links a {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
}
.vl-footer__links a:hover { color: var(--white); }


/* ============================================================
   FADE-UP ANIMATION
============================================================ */
.vl-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.vl-fade.vl-visible {
    opacity: 1;
    transform: translateY(0);
}
.vl-fade:nth-child(2) { transition-delay: 0.08s; }
.vl-fade:nth-child(3) { transition-delay: 0.16s; }
.vl-fade:nth-child(4) { transition-delay: 0.24s; }
.vl-fade:nth-child(5) { transition-delay: 0.32s; }
.vl-fade:nth-child(6) { transition-delay: 0.40s; }


/* ============================================================
   RESPONSIVE — TABLETTE (max 1100px)
============================================================ */
@media (max-width: 1100px) {

    .vl-intro {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 80px clamp(24px,5vw,60px) 64px;
    }

    .vl-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 48px clamp(24px,5vw,60px) 80px;
    }

    .vl-card--featured { grid-column: span 2; aspect-ratio: 16/10; }

    .vl-reassure__inner {
        grid-template-columns: repeat(2, 1fr);
    }
    .vl-reassure__item:nth-child(2) { border-right: none; }
    .vl-reassure__item:nth-child(3) {
        padding-left: 0;
        border-top: 1px solid var(--border);
    }
    .vl-reassure__item:nth-child(4) {
        border-right: none;
        border-top: 1px solid var(--border);
    }
}


/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
============================================================ */
@media (max-width: 768px) {

    .vl-hero__content {
        padding: 0 24px clamp(60px,10vh,80px);
    }

    .vl-hero__scroll { display: none; }

    .vl-intro {
        padding: 64px 24px 48px;
        gap: 36px;
    }

    .vl-intro__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .vl-filters {
        padding: 32px 24px;
        gap: 8px;
    }

    .vl-grid {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 32px 0 64px;
    }

    .vl-card { aspect-ratio: 4 / 3; }
    .vl-card--featured { grid-column: span 1; aspect-ratio: 4/3; }

    .vl-card__metrics { opacity: 1; transform: none; }
    .vl-card__link { opacity: 1; transform: none; }

    .vl-reassure__inner {
        grid-template-columns: 1fr;
        padding: 0 24px;
    }
    .vl-reassure__item {
        padding: 36px 0;
        border-right: none;
        padding-left: 0; padding-right: 0;
        border-top: 1px solid var(--border);
    }
    .vl-reassure__item:first-child { border-top: none; }

    .vl-cta__content { padding: 64px 24px; }

    .vl-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 32px 24px;
    }
}


/* ============================================================
   RESPONSIVE — TRÈS PETIT (max 480px)
============================================================ */
@media (max-width: 480px) {

    .vl-hero__title { font-size: 44px; }

    .vl-intro__stats { grid-template-columns: repeat(2, 1fr); }

    .vl-card__name { font-size: 22px; }
    .vl-card__body { padding: 20px 18px; }

    .vl-cta__btns { flex-direction: column; align-items: stretch; }
    .vl-btn { text-align: center; }

    .vl-footer__links { gap: 16px; flex-wrap: wrap; }
}
