/* ============================================
   KOZY LE MORNE - LUXURY REDESIGN
   Style: Six Senses Inspired
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --color-black: #1a1a1a;
    --color-white: #ffffff;
    --color-beige: #f8f6f3;
    --color-ocean: #0a4d68;
    --color-text: #2d2d2d;
    --color-text-light: #666666;

    /* Typography */
    --font-serif: 'Cormorant Garamond', 'Playfair Display', serif;
    --font-sans: 'Inter', 'Outfit', -apple-system, sans-serif;

    /* Spacing */
    --spacing-section-desktop: 120px;
    --spacing-section-tablet: 80px;
    --spacing-section-mobile: 60px;
    --container-padding-desktop: 80px;
    --container-padding-tablet: 40px;
    --container-padding-mobile: 20px;

    /* Transitions */
    --transition-smooth: 0.6s ease-in-out;
    --transition-fast: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(36px, 8vw, 120px);
}

h2 {
    font-size: clamp(28px, 5vw, 64px);
}

h3 {
    font-size: clamp(20px, 3vw, 36px);
}

p {
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.8;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 32px var(--container-padding-desktop);
    transition: all var(--transition-smooth);
    background: transparent;
}

.navigation.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 20px var(--container-padding-desktop);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    height: 46px;
    width: auto;
    transition: all var(--transition-fast);
    position: relative;
}

.navigation.scrolled .nav-logo {
    height: 37px;
    /* Overlay chocolat/marron pour visibilité sur fond blanc */
    filter: brightness(0) saturate(100%) invert(27%) sepia(15%) saturate(2000%) hue-rotate(15deg) brightness(0.6);
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 48px;
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-live-link {
    white-space: nowrap;
}

.navigation.scrolled .nav-menu a {
    color: var(--color-text);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--color-ocean);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Live indicator - red pulsing dot */
.nav-live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    margin-left: 2px;
    animation: pulseLive 2s ease-in-out infinite;
    vertical-align: middle;
    white-space: nowrap;
}

@keyframes pulseLive {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* Mobile menu live indicator */
.nav-mobile-menu .nav-live-indicator {
    margin-left: 2px;
    width: 10px;
    height: 10px;
}

/* Nav Right Section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Contact Icons in Navigation (Phone, WhatsApp, Instagram) */
.nav-contact-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--color-white);
    transition: opacity var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
}

.nav-contact-icon svg {
    width: 18px;
    height: 18px;
    transition: all var(--transition-fast);
}

.nav-contact-icon svg path {
    fill: currentColor;
    stroke: currentColor;
}

.nav-contact-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.navigation.scrolled .nav-contact-icon {
    color: var(--color-text);
}

.navigation.scrolled .nav-contact-icon:hover {
    color: var(--color-ocean);
}

/* Language Selector */
.nav-languages {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.nav-languages-toggle {
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: opacity var(--transition-fast);
}

.navigation.scrolled .nav-languages-toggle {
    color: var(--color-text);
}

.nav-languages-toggle:hover {
    opacity: 0.8;
}

.lang-current {
    opacity: 1;
}

.lang-arrow {
    font-size: 10px;
    opacity: 0.7;
    transition: transform var(--transition-fast);
}

.nav-languages.active .lang-arrow {
    transform: rotate(180deg);
}

.nav-languages-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-white);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
    margin-top: 8px;
    padding: 8px 0;
}

.nav-languages.active .nav-languages-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-languages-dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--color-text);
    opacity: 0.7;
    transition: all var(--transition-fast);
    text-align: left;
}

.nav-languages-dropdown a:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.nav-languages-dropdown a.active {
    opacity: 1;
    font-weight: 600;
    background: rgba(10, 77, 104, 0.1);
    color: var(--color-ocean);
}

/* Phone */
.nav-phone {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast);
    cursor: pointer;
}

.nav-phone-icon {
    font-size: 18px;
    color: var(--color-white);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 18px;
    height: 18px;
}

.nav-phone-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-phone-icon .phone-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.nav-phone-icon .whatsapp-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    pointer-events: none;
}

.navigation.scrolled .nav-phone-icon svg path {
    fill: var(--color-text);
}

.nav-phone-number {
    font-size: 14px;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.nav-phone:hover .nav-phone-icon .phone-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.nav-phone:hover .nav-phone-icon .whatsapp-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.navigation.scrolled .nav-phone:hover .nav-phone-icon .phone-icon path,
.navigation.scrolled .nav-phone:hover .nav-phone-icon .whatsapp-icon path {
    fill: var(--color-ocean);
}

/* Burger Menu (Mobile) */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1101;
}

.nav-burger span {
    width: 28px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.navigation.scrolled .nav-burger span {
    background: var(--color-text);
}

.nav-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-burger.active span:nth-child(2) {
    opacity: 0;
}

.nav-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   NAV RESPONSIVE PRIORITY — Desktop only
   Logo always protected. Nav links disappear
   progressively when space runs out (any lang):
   Destination → Live → Reviews → 360°
   ============================================ */

/* Logo never shrinks or deforms */
.nav-logo-link {
    flex-shrink: 0;
}

/* Nav right never shrinks (lang selector + icons) */
.nav-right {
    flex-shrink: 0;
}

/* 1st to disappear: Destination (1024px–1350px) */
@media (min-width: 1024px) and (max-width: 1350px) {
    .nav-menu li:has(a[data-i18n="nav.destination"]) {
        display: none;
    }
}

/* 2nd: Live (1024px–1250px) */
@media (min-width: 1024px) and (max-width: 1250px) {
    .nav-menu li:has(a[data-i18n="nav.live"]) {
        display: none;
    }
}

/* 3rd: Reviews (1024px–1150px) */
@media (min-width: 1024px) and (max-width: 1150px) {
    .nav-menu li:has(a[data-i18n="nav.reviews"]) {
        display: none;
    }
}

/* 4th: 360° (1024px–1050px) */
@media (min-width: 1024px) and (max-width: 1050px) {
    .nav-menu li:has(a[data-i18n="nav.virtualTour"]) {
        display: none;
    }
}


/* Mobile Menu Overlay */
.nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 100px;
    z-index: 1100;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    overflow-y: auto;
}

.nav-mobile-overlay.active {
    display: flex;
    opacity: 1;
}

.nav-mobile-logo-link {
    margin-bottom: 48px;
    display: block;
    text-align: center;
}

.nav-mobile-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    display: block;
    margin: 0 auto;
    /* Overlay chocolat/marron pour visibilité sur fond blanc */
    filter: brightness(0) saturate(100%) invert(27%) sepia(15%) saturate(2000%) hue-rotate(15deg) brightness(0.6);
}

.nav-mobile-menu {
    list-style: none;
    text-align: center;
}

.nav-mobile-menu li {
    margin-bottom: 32px;
}

.nav-mobile-menu a {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.nav-mobile-menu a:hover {
    color: var(--color-ocean);
}

.nav-mobile-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    padding: 20px 0;
}

.nav-mobile-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--color-text);
    transition: opacity var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
}

.nav-mobile-social-icon svg {
    width: 20px;
    height: 20px;
    transition: all var(--transition-fast);
}

.nav-mobile-social-icon svg path {
    fill: currentColor;
}

.nav-mobile-social-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
    color: var(--color-ocean);
}


.nav-mobile-phone {
    margin-top: 32px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-ocean);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero static background image for LCP optimization */
/* z-index: 2 keeps image ABOVE video container (z-index: 1) until video is playing */
/* This prevents the black flash/YouTube loader from showing during initial load */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 2s ease;
    /* Fade-OUT de 2s par défaut */
}

.hero-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-background-image.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Classe pour fade-IN rapide (0.5s) lors du clic sur "Découvrir nos Villas" */
.hero-background-image.fade-in {
    transition: opacity 0.5s ease !important;
}

/* Ensure video container and iframe are transparent to avoid gray background on mobile */
.hero-video-container,
.hero-video-container iframe {
    background-color: transparent !important;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Google Maps iframe pour 360 Tour */
#heroMapIframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: auto;
    border: 0;
    display: none;
}

#heroMapIframe.active {
    display: block !important;
}

/* Overlay transparent pour capturer les clics sur l'iframe 360° */
.hero-360-click-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    z-index: 9;
    pointer-events: auto;
    cursor: grab;
    background: transparent;
    transition: opacity 0.3s ease-out;
}

.hero-360-click-overlay:active {
    cursor: grabbing;
}

.hero-360-click-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Indicateur de navigation 360° (icône/GIF superposé au centre) */
.hero-360-pointer-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.hero-360-pointer-indicator.hidden {
    opacity: 0;
    visibility: hidden;
}

.hero-360-pointer-icon {
    width: 60px;
    height: 60px;
    max-width: 75px;
    max-height: 75px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    animation: pointerPulse 2s ease-in-out infinite;
}

@keyframes pointerPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* Mode 360 actif - désactiver pointer-events sur les éléments qui bloquent */
.hero.\33 60-mode-active .hero-overlay {
    pointer-events: none !important;
}

.hero.\33 60-mode-active .hero-content {
    pointer-events: none !important;
}

.hero.\33 60-mode-active .scroll-indicator {
    pointer-events: none !important;
}

/* Boutons de navigation 360 */
.hero-360-nav {
    position: absolute;
    bottom: 125px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    pointer-events: auto;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-360-nav-main {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.hero-360-nav-sub {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.hero-360-sub-buttons-wrapper {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-360-sub-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.btn-360-view {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
    position: relative;
}

.btn-360-view:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-360-view.active {
    background: var(--color-ocean);
    color: var(--color-white);
    border-color: var(--color-ocean);
}

.btn-360-back {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
    position: relative;
    flex-shrink: 0;
}

.btn-360-back:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-360-sub-view {
    /* Styles hérités de .btn-360-view */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ============================================
   BOUTON MUTE/UNMUTE - Séquence Explore Villas
   ============================================
   Bouton discret en bas à droite du hero pour contrôler le son
   pendant la séquence de vidéos "Explore Our Villas".
   Apparaît uniquement pendant la séquence et disparaît à la fin.
   ============================================ */
.hero-mute-btn {
    position: fixed;
    bottom: 80px;
    /* Positionné au-dessus de la booking bar (bottom: 0) */
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    /* Fond semi-transparent discret */
    backdrop-filter: blur(10px);
    /* Effet de flou pour le fond */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    /* Bouton circulaire */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    /* Au-dessus de la booking bar (z-index: 1000) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    /* Animation d'apparition depuis le bas */
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    /* Couleur blanche pour l'icône SVG */
}

.hero-mute-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 1);
    transform: translateY(0) scale(1.05);
}

.hero-mute-btn:active {
    transform: translateY(0) scale(0.95);
}

.hero-mute-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-mute-btn .mute-icon {
    width: 20px;
    height: 20px;
}

/* Alternance des icônes SVG selon l'état mute/unmute */
.hero-mute-btn.muted .sound-on {
    display: none;
    /* Masquer l'icône normale quand le son est coupé */
}

.hero-mute-btn.muted .sound-off {
    display: block !important;
    /* Afficher l'icône avec trait barré quand le son est coupé */
}

.hero-mute-btn:not(.muted) .sound-on {
    display: block;
    /* Afficher l'icône normale quand le son est activé */
}

.hero-mute-btn:not(.muted) .sound-off {
    display: none;
    /* Masquer l'icône avec trait barré quand le son est activé */
}

/* Assurer que les groupes SVG sont bien positionnés */
.hero-mute-btn .mute-icon g {
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 0 var(--container-padding-mobile);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Mobile: remonter le contenu hero de 35px */
@media (max-width: 767px) {
    .hero-content {
        transform: translateY(-35px) !important;
    }
}

.hero-title {
    font-size: clamp(48px, 10vw, 120px);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 24px);
    font-family: var(--font-sans);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 60px;
    opacity: 0.9;
}

/* Mobile: augmenter margin-bottom du subtitle */
@media (max-width: 767px) {
    .hero-subtitle {
        margin-bottom: 200px !important;
    }
}

.hero-ctas {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 48px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 6px;
}

/* Button with Icon Support */
.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: scale(1.1);
}

.btn-primary {
    background: var(--color-ocean);
    color: var(--color-white);
}

.btn-primary:hover {
    background: #0d5f82;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(10, 77, 104, 0.3);
}

@media (max-width: 767px) {
    .hero-ctas .btn-primary {
        background: transparent;
        border: 2px solid var(--color-white);
        box-shadow: none;
        color: var(--color-white);
    }
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-text);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Remonter le scroll-indicator de 50px sur desktop */
@media (min-width: 769px) {
    .scroll-indicator {
        bottom: 90px;
    }
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-white);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--color-white);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ============================================
   SECTIONS LAYOUT
   ============================================ */
.section {
    padding: var(--spacing-section-desktop) var(--container-padding-desktop);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    font-weight: 300;
}

/* Villas section specific styles */
#villas {
    padding-top: calc(var(--spacing-section-desktop) / 2);
    padding-bottom: calc(var(--spacing-section-desktop) / 2);
}

#villas .section-title {
    margin-top: 0;
    margin-bottom: 25px;
}

#villas .villas-grid {
    margin-top: 0;
}

/* Reduce margins for sections after villas section */
#villas~.section {
    padding-top: calc(var(--spacing-section-desktop) / 2);
    padding-bottom: calc(var(--spacing-section-desktop) / 2);
}

.eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-ocean);
    margin-bottom: 16px;
    font-family: var(--font-sans);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   INTRODUCTION SECTION
   ============================================ */
.intro {
    background: var(--color-beige);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-text h2 {
    margin-bottom: 32px;
}

.intro-text p {
    color: var(--color-text-light);
    max-width: 500px;
}

.intro-image-container {
    position: relative;
    width: 100%;
    height: 600px;
}

.intro-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
    pointer-events: none;
}

.intro-image-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.intro-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 6px;
}

/* ============================================
   VILLAS GRID
   ============================================ */
.villas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    margin-top: 80px;
}

.villa-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.villa-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 6px;
}

/* Desktop: format 16/9 */
@media (min-width: 768px) {
    .villa-image-container {
        height: auto;
        aspect-ratio: 16/9;
    }
}

.villa-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.villa-card:hover .villa-image {
    transform: scale(1.05);
}

.villa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.villa-card:hover .villa-overlay {
    opacity: 1;
}

.villa-overlay .btn {
    background: var(--color-white);
    color: var(--color-text);
}

/* On touch devices: disable hover overlay so a single tap opens the modal directly */
@media (hover: none) {
    .villa-overlay {
        display: none;
    }

    .villa-card:hover .villa-image {
        transform: none;
    }
}

.villa-info {
    padding: 32px 0;
}

.villa-info h3 {
    margin-bottom: 12px;
    font-size: 28px;
}

.villa-price {
    font-size: 18px;
    color: var(--color-ocean);
    font-weight: 600;
    margin-bottom: 8px;
}

.villa-details {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
    padding: 24px 20px 16px;
}

.modal.active {
    display: block;
}

.modal-content {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.modal-close {
    position: fixed;
    top: 10px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.modal-close:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.modal-villa-title {
    padding: 16px 40px 8px;
    background: var(--color-white);
}

.modal-villa-title h2 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--color-text);
    margin: 0;
}

.modal-gallery {
    position: relative;
    height: min(60vh, 550px);
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-gallery picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.modal-gallery img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .modal-gallery img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0; /* Plein écran, pas d'angles arrondis sur mobile */
    }
    .modal-gallery {
        border-radius: 0; /* Galerie bord-à-bord sur mobile */
        touch-action: manipulation; /* Désactive double-tap zoom iOS */
    }
    .modal-gallery picture {
        border-radius: 0;
    }
    .modal-content {
        touch-action: manipulation; /* Désactive double-tap zoom iOS sur tout le modal */
    }
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
}

.gallery-nav:hover {
    background: var(--color-white);
    transform: translateY(-50%) scale(1.08);
}

.gallery-prev {
    left: 16px;
}

.gallery-next {
    right: 16px;
}

.gallery-counter {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.modal-body {
    padding: 12px 40px 16px;
}

.modal-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.modal-spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: var(--color-beige);
    border-radius: 20px;
    font-size: 13px;
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.modal-desc-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 12px;
}

.modal-description {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-light);
    font-style: italic;
    margin: 0;
}

.modal-book-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.amenities-line {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.amenities-line::-webkit-scrollbar {
    display: none;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text);
    padding: 5px 10px;
    background: #f9f8f6;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.amenity-item:hover {
    background: var(--color-beige);
}

.amenity-icon {
    font-size: 15px;
    flex-shrink: 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   EXPERIENCES SECTION
   ============================================ */
.experiences {
    background: var(--color-beige);
}

.experiences-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-top: 80px;
}

.experience-card {
    position: relative;
    height: 400px;
    border-radius: 6px;
    overflow: hidden;
}

.experience-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.experience-card:hover img {
    transform: scale(1.05);
}

.experience-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-white);
}

.experience-overlay h3 {
    margin-bottom: 8px;
    font-size: 28px;
}

.experience-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   VIRTUAL TOUR SECTION
   ============================================ */
.virtual-tour {
    padding: var(--spacing-section-desktop) 0;
}

.tour-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 6px;
    margin-bottom: 80px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

/* Lifestyle Videos specific styles */
.lifestyle-videos {
    padding-top: 0;
    padding-bottom: 0;
}

.lifestyle-videos .section-title {
    margin-top: 25px;
    margin-bottom: 25px;
}

.lifestyle-videos .videos-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lifestyle-videos .video-thumb img {
    object-fit: contain;
    height: auto;
    max-height: 200px;
}

.video-thumb {
    cursor: pointer;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.video-thumb:hover img {
    transform: scale(1.05);
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: var(--color-beige);
}

.testimonials-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    text-align: center;
    padding: 60px 40px;
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial-stars {
    font-size: 24px;
    color: #f4c430;
    margin-bottom: 32px;
}

.testimonial-text {
    font-size: 20px;
    line-height: 1.8;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 32px;
}

.testimonial-author {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-ocean);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-text-light);
    opacity: 0.3;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    opacity: 1;
    background: var(--color-ocean);
}

/* ============================================
   REVIEWS PAGE
   ============================================ */
.reviews-hero {
    background: linear-gradient(180deg, rgba(10, 77, 104, 0.85), rgba(26, 26, 26, 0.9)), url('../images/hero/seaview-ocean.jpg') center/cover no-repeat;
    color: var(--color-white);
    padding: 140px var(--container-padding-desktop) 100px;
    text-align: center;
}

.reviews-hero .section-title {
    color: var(--color-white);
}

.reviews-hero .reviews-subtitle {
    max-width: 820px;
    margin: 16px auto 0;
    font-family: var(--font-sans);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.reviews-list-section {
    background: var(--color-beige);
}

.reviews-list {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Google Maps Reviews Section */
.google-maps-section {
    background: var(--color-white);
    padding: var(--spacing-section-desktop) var(--container-padding-desktop);
}

.google-maps-section .section-title {
    margin-bottom: 20px;
}

.google-maps-section .reviews-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    color: var(--color-text-light);
    font-family: var(--font-sans);
}

.google-maps-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.google-maps-container iframe {
    width: 100%;
    height: 600px;
    border: 0;
    display: block;
    pointer-events: auto;
}

/* Masquer les éléments de l'iframe Google Maps via overlay si nécessaire */
.google-maps-container {
    position: relative;
}

.google-maps-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 767px) {
    .google-maps-section {
        padding: var(--spacing-section-mobile) var(--container-padding-mobile);
    }

    .google-maps-container iframe {
        height: 400px;
    }
}

.review-card {
    background: var(--color-white);
    border: 1px solid #e4ded6;
    border-left: 6px solid var(--color-ocean);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.review-card .testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-text);
}

.review-card .testimonial-author {
    text-align: right;
}

@media (max-width: 767px) {
    .reviews-hero {
        padding: 120px var(--container-padding-mobile) 80px;
    }

    .review-card {
        padding: 24px;
    }
}

/* ============================================
   BOOKING FORM
   ============================================ */
.booking-form-container {
    max-width: 800px;
    margin: 80px auto 0;
    background: var(--color-beige);
    padding: 60px;
    border-radius: 6px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-group input,
.form-group select {
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 16px;
    transition: border-color var(--transition-fast);
    background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-ocean);
}

.form-submit {
    width: 100%;
    margin-top: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-beige);
    padding: 80px var(--container-padding-desktop) 40px;
}

.footer-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    margin-bottom: 60px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 24px;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 2;
}

.footer-section a:hover {
    color: var(--color-ocean);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    color: var(--color-text-light);
    opacity: 0.8;
}

.social-links a img {
    width: 24px;
    height: 24px;
    transition: opacity var(--transition-fast);
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 1;
    color: var(--color-ocean);
}

.footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-light);
}

/* Email blur protection */
.email-blurred {
    filter: blur(4px);
    transition: filter 0.3s ease;
    display: inline-block;
}

.email-blurred:hover {
    filter: blur(2px);
}

.email-blurred.revealed {
    filter: blur(0);
}

/* ============================================
   RESPONSIVE - NAVIGATION
   ============================================ */

/* Desktop - Ensure 3 villas in a row */
@media (min-width: 1024px) {
    .villas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 64px;
    }
}

/* Tablet */
@media (max-width: 1023px) {
    .navigation {
        padding: 24px var(--container-padding-tablet);
    }

    .navigation.scrolled {
        padding: 16px var(--container-padding-tablet);
    }

    .nav-menu {
        gap: 32px;
    }

    .nav-right {
        gap: 24px;
    }

    .section {
        padding: var(--spacing-section-tablet) var(--container-padding-tablet);
    }

    /* Reduce margins for sections after villas section on tablet */
    #villas~.section {
        padding-top: calc(var(--spacing-section-tablet) / 2);
        padding-bottom: calc(var(--spacing-section-tablet) / 2);
    }

    #villas {
        padding-top: calc(var(--spacing-section-tablet) / 2);
        padding-bottom: calc(var(--spacing-section-tablet) / 2);
    }

    .villas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }

    #villas .villas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .experiences-grid {
        gap: 32px;
    }

    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lifestyle-videos {
        padding-top: 0;
        padding-bottom: 0;
    }

    .lifestyle-videos .videos-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        gap: 48px;
    }
}

/* Hide menu items progressively from right as screen gets smaller */
/* Only apply these rules between tablet and mobile sizes (768px - 900px) */
/* Hide Booking (rightmost) around 900px */
@media (max-width: 900px) and (min-width: 768px) {
    .nav-menu li:last-child {
        display: none;
    }
}

/* Hide Live around 850px */
@media (max-width: 850px) and (min-width: 768px) {
    .nav-menu li:nth-last-child(2) {
        display: none;
    }
}

/* Hide 360 Tour around 800px */
@media (max-width: 800px) and (min-width: 768px) {
    .nav-menu li:nth-last-child(3) {
        display: none;
    }
}

/* Hide Destination around 750px */
@media (max-width: 750px) and (min-width: 768px) {
    .nav-menu li:nth-last-child(4) {
        display: none;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .navigation {
        padding: 16px var(--container-padding-mobile);
    }

    .navigation.scrolled {
        padding: 12px var(--container-padding-mobile);
    }

    /* Hide contact icons on mobile (they're in mobile menu) */
    .nav-contact-icons {
        display: none;
    }

    .nav-logo {
        height: 40px;
        width: auto;
    }

    .navigation.scrolled .nav-logo {
        height: 32px;
    }

    .nav-menu,
    .nav-languages,
    .nav-phone {
        display: none;
    }

    .nav-burger {
        display: flex;
    }

    /* Mobile Language Grid (New feature for better UX) */
    .nav-mobile-lang-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        max-width: 300px;
    }
    
    .nav-mobile-lang-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 0.25rem;
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.05);
        font-size: 12px;
    }

    .nav-mobile-lang-btn:hover,
    .nav-mobile-lang-btn.active {
        background: rgba(255, 255, 255, 0.15);
        color: white;
    }

    .nav-mobile-lang-btn img {
        border-radius: 2px;
    }

    /* 360 Tour buttons - Mobile optimization */
    .hero-360-nav {
        bottom: 100px;
        padding: 0 16px;
        gap: 8px;
        transition: bottom 0.3s ease;
        /* Animation fluide lors du changement de position */
    }

    /* Remonter les boutons 360 sur mobile quand la booking bar est visible 
       240px nécessaire pour compenser : barre booking (80px) + safe area + barre adresse iOS */
    body:has(.mobile-booking-btn.visible) .hero-360-nav {
        bottom: 240px;
    }

    .hero-360-nav-main {
        flex-wrap: wrap;
        max-width: 100%;
        gap: 8px;
        max-height: none;
    }

    .hero-360-sub-buttons-wrapper {
        flex-wrap: wrap;
        max-width: 100%;
        gap: 8px;
        max-height: none;
    }

    .hero-360-sub-buttons {
        flex-wrap: wrap;
        max-width: 100%;
        gap: 8px;
        max-height: none;
    }

    /* Main navigation: 3 buttons per row */
    .hero-360-nav-main .btn-360-view {
        padding: 10px 12px;
        font-size: 12px;
        flex: 0 1 calc(33.333% - 6px);
        min-width: 0;
        text-align: center;
    }

    /* Sub navigation: Back button + other buttons (2-3 per row) */
    .btn-360-back {
        padding: 10px 12px;
        font-size: 12px;
        flex: 0 1 calc(33.333% - 6px);
        min-width: 0;
        text-align: center;
    }

    .hero-360-sub-buttons .btn-360-view {
        padding: 10px 12px;
        font-size: 12px;
        flex: 0 1 calc(33.333% - 6px);
        min-width: 0;
        text-align: center;
    }

    /* If only 2 buttons in sub navigation, make them wider */
    .hero-360-sub-buttons .btn-360-view:only-child,
    .hero-360-sub-buttons .btn-360-view:nth-child(2):last-child {
        flex: 0 1 calc(50% - 4px);
    }

    .section {
        padding: var(--spacing-section-mobile) var(--container-padding-mobile);
    }

    /* Reduce margins for sections after villas section on mobile */
    #villas~.section {
        padding-top: calc(var(--spacing-section-mobile) / 2);
        padding-bottom: calc(var(--spacing-section-mobile) / 2);
    }

    #villas {
        padding-top: calc(var(--spacing-section-mobile) / 2);
        padding-bottom: calc(var(--spacing-section-mobile) / 2);
    }

    .hero-ctas {
        flex-direction: column;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .villas-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    #villas .villas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .experiences-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .lifestyle-videos {
        padding-top: 0;
        padding-bottom: 0;
    }

    .lifestyle-videos .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modal-villa-title {
        padding: 12px 16px 8px;
    }

    .modal-villa-title h2 {
        font-size: 18px;
    }

    .gallery-counter {
        bottom: 25px;
        left: 15px;
    }

    .modal-body {
        padding: 10px 16px 14px;
    }

    .modal-desc-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .modal-book-btn {
        width: 100%;
        max-width: 280px;
    }

    .modal-gallery {
        height: min(45vh, 350px);
    }

    .testimonial {
        padding: 40px 20px;
    }

    .testimonial-text {
        font-size: 16px;
    }

    .booking-form-container {
        padding: 40px 24px;
    }

    /* Bouton Mute/Unmute sur mobile */
    .hero-mute-btn {
        bottom: 70px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .hero-mute-btn .mute-icon {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   INSTAGRAM LIGHTBOX (DESKTOP ONLY)
   ============================================ */
.instagram-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.instagram-lightbox.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.instagram-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.instagram-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.instagram-lightbox.active .instagram-lightbox-content {
    transform: scale(1);
}

.instagram-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: all 0.2s ease;
    color: var(--color-text);
}

.instagram-lightbox-close:hover {
    background: var(--color-white);
    transform: rotate(90deg);
}

.instagram-lightbox-close svg {
    width: 20px;
    height: 20px;
}

.instagram-lightbox-widget {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Masquer la lightbox sur mobile */
@media (max-width: 1023px) {
    .instagram-lightbox {
        display: none !important;
    }
}