/* ============================================
   RESPONSIVE - MOBILE FIRST BREAKPOINTS
   ============================================ */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-stack {
        height: 400px;
    }

    .masonry-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .masonry-wide {
        grid-column: span 2;
    }

    .exp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .booking-layout {
        grid-template-columns: 1fr;
    }

    .location-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .instagram-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* --- Large Mobile (max 768px) --- */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    /* Navbar Mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-bg-darker);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 4px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 20px rgba(0,0,0,0.5);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--color-text-cream) !important;
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.05);
        color: var(--color-secondary) !important;
    }

    /* Mobile toggle animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero */
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Gallery */
    .gallery-stack {
        height: 350px;
    }

    .gallery-img-1 {
        width: 70%;
        height: 250px;
    }

    .gallery-img-2 {
        width: 50%;
        height: 160px;
    }

    .gallery-img-3 {
        width: 45%;
        height: 140px;
    }

    /* Masonry */
    .masonry-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .masonry-tall {
        grid-row: span 1;
        aspect-ratio: 4/3;
    }

    .masonry-wide {
        grid-column: span 2;
    }

    /* Experiences */
    .exp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .exp-card {
        display: grid;
        grid-template-columns: 120px 1fr;
    }

    .exp-card-img {
        height: 100%;
        min-height: 160px;
    }

    .exp-card-content {
        padding: 20px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-item {
        padding: 28px 16px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
    }

    /* CTA Banner */
    .cta-banner {
        height: 400px;
    }

    /* Instagram */
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    /* Location */
    .location-layout {
        grid-template-columns: 1fr;
    }

    .location-map iframe {
        height: 350px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: auto;
        text-align: center;
    }

    .footer-brand img {
        margin: 0 auto 16px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* WhatsApp & Back to Top */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 84px;
    }

    /* Lightbox */
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    /* New elements */
    .video-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-number {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 6px 16px;
    }

    .video-features {
        grid-template-columns: 1fr;
    }

    .video-play-btn {
        width: 70px;
        height: 70px;
    }

    .video-play-btn svg {
        width: 60px;
        height: 60px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* --- Small Mobile (max 480px) --- */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    /* Hero */
    .hero {
        min-height: 550px;
        align-items: flex-start; /* Start from top */
        padding-top: 100px; /* Space for navbar */
    }

    .hero-content {
        margin-top: 10px;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    /* Gallery */
    .gallery-stack {
        height: 300px;
    }

    .gallery-img-1 {
        width: 65%;
        height: 200px;
    }

    .gallery-img-2 {
        width: 50%;
        height: 140px;
    }

    .gallery-img-3 {
        display: none;
    }

    /* Masonry */
    .masonry-gallery {
        grid-template-columns: 1fr 1fr;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Exp cards stacked */
    .exp-card {
        grid-template-columns: 1fr;
    }

    .exp-card-img {
        height: 180px;
    }

    /* Instagram */
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Booking */
    .booking-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .booking-widget,
    .booking-contact {
        padding: 24px;
    }

    .escapada-widget-container {
        padding: 15px 10px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .escapada-flex-wrapper {
        gap: 15px;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .escapada-calendar-item {
        width: 100% !important;
        max-width: 240px;
    }

    .escapada-calendar-item div {
        width: 100% !important;
        max-width: 240px !important;
        margin: 0 auto;
    }

    .escapada-rates-item {
        margin-top: 10px;
        width: 100%;
        max-width: 100vw;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Force injected widgets to not break the layout */
    .escapada-rates-scroll {
        min-width: unset !important;
        width: max-content;
    }

    .escapada-rates-scroll div[style*="width:572px"] {
        width: 100% !important;
        min-width: 572px !important; /* Keep internal width for table layout */
    }

    /* Brute-force fix for 3rd party iframes breaking Android layout */
    .escapada-widget-container iframe,
    .escapada-widget-container div {
        max-width: 100% !important;
    }
    
    .escapada-rates-item iframe {
        min-width: 572px !important; /* Forces scroll instead of squishing */
    }

    .contact-option {
        padding: 16px;
    }

    /* CTA */
    .cta-banner {
        height: 350px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    /* Hero stats small mobile */
    .hero-stats {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 20px;
    }

    .hero-stat {
        flex: 1;
        text-align: center;
    }

    .hero-stat-divider {
        display: none !important;
    }

    .hero-stat-number {
        font-size: 1.1rem !important;
        display: block;
    }

    .hero-stat-label {
        font-size: 0.55rem !important;
        white-space: nowrap;
    }

    .hero-badge {
        display: inline-block !important;
        font-size: 0.6rem;
        padding: 4px 10px;
        margin-bottom: 8px;
    }

    /* Video */
    .video-wrapper {
        border-radius: var(--border-radius-sm);
    }

    .video-play-btn {
        width: 56px;
        height: 56px;
    }

    .video-play-btn svg {
        width: 48px;
        height: 48px;
    }

    /* Hide cursor custom on mobile */
    .cursor-dot, .cursor-ring { display: none !important; }

    /* Particles - lighter on mobile */
    .particles-canvas {
        opacity: 0.2;
    }

    /* Loading screen */
    .loading-logo {
        width: 180px; /* Increased from 100px */
        height: auto;
    }
    
    .loading-bar {
        width: 150px;
    }

    /* Desktop Sticky Bar & Zen Mode */
    .desktop-sticky-bar { display: none !important; }
    .zen-mode-btn { 
        bottom: 90px; /* Above mobile action bar */
        left: 20px; 
        width: 45px; 
        height: 45px; 
    }
    .zen-tooltip { display: none !important; }
}

/* --- Print --- */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .scroll-indicator,
    .lightbox,
    .loading-screen,
    .scroll-progress,
    .cursor-dot,
    .cursor-ring,
    .particles-canvas {
        display: none !important;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 40px 0;
    }

    .hero-bg {
        position: static;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        color: black;
    }

    .section {
        padding: 20px 0;
    }
}