/* ============================================================
   GOODWILL HOLIDAYS – Responsive CSS
   Mobile-first responsive overrides for all breakpoints
   320px → 767px (Mobile: 375px, 425px)
   768px → 1023px (Tablet: 768px)
   1024px → 1439px (Laptop: 1024px)
   1440px+ (Desktop)
   ============================================================ */

/* ─── GLOBAL OVERFLOW GUARD ───────────────────────────────────── */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ─── MOBILE: 320px – 767px (375px, 425px) ────────────────────── */

@media (max-width: 767px) {
    :root {
        --section-gap: 3.5rem;
        --space-6: 1rem;
        --nav-height: 68px;
    }

    /* Container */
    .container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Navbar */
    .navbar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .navbar__inner {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .navbar__logo {
        max-width: calc(100% - 56px);
        overflow: hidden;
        flex: 1;
        min-width: 0;
        gap: 0.5rem;
    }

    .navbar__logo-img {
        height: 38px;
        flex-shrink: 0;
        padding: 2px 4px;
    }

    .navbar__logo-text {
        overflow: hidden;
        min-width: 0;
    }

    .navbar__logo-name {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        line-height: 1.2;
    }

    .navbar__logo-tagline {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        line-height: 1.2;
    }

    /* Hide desktop nav */
    .navbar__nav,
    .navbar__cta {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-shrink: 0;
    }

    /* Hero */
    .hero {
        min-height: 100svh;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .hero__content {
        padding: calc(var(--nav-height) + 1.5rem) 1rem 3rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero__title {
        font-size: clamp(1.85rem, 7.5vw, 2.5rem);
    }

    .hero__subtitle {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero__cta-group {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero__cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    /* Search widget */
    .search-widget {
        padding: 1.25rem 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .search-form.active {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }

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

    /* Destinations Bento */
    .destinations-bento {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 1rem;
    }

    .dest-card:nth-child(1),
    .dest-card:nth-child(4) {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }

    /* Tours Grid */
    .tours-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 1.5rem;
    }

    /* Sightseeing & Stories Horizontal Carousels on Mobile */
    .sightseeing-carousel-wrap,
    .stories-carousel-wrap {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .sightseeing-carousel-track,
    .stories-carousel-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.5rem 0.25rem 1.25rem !important;
    }

    .sightseeing-carousel-track .sightseeing-card {
        flex: 0 0 85vw !important;
        min-width: 275px !important;
        max-width: 325px !important;
        scroll-snap-align: start !important;
        box-sizing: border-box !important;
    }

    .stories-carousel-track .story-card {
        flex: 0 0 85vw;
        min-width: 260px;
        max-width: 320px;
        padding: 1.25rem;
    }

    /* Services Bento */
    .services-bento {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .service-bento-card:nth-child(1),
    .service-bento-card:nth-child(4) {
        grid-column: span 1;
    }

    /* Why bento */
    .why-bento {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .why-card--large {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Stats */
    .stats-strip {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    /* How it works */
    .how-grid {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 1rem;
    }

    .how-grid::before { display: none; }

    /* Homestays */
    .homestays-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    /* Family & Airport Layouts */
    .family-layout,
    .airport-layout,
    .airport-page-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .family-features {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .family-feature {
        padding: 1.15rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .family-layout .btn,
    .airport-layout .btn,
    .family-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .family-actions,
    .airport-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    /* Floating Badges inside cards on mobile (prevent clipping) */
    .float-badge {
        padding: 0.45rem 0.75rem !important;
        font-size: 0.8rem !important;
        border-radius: var(--radius-lg) !important;
        box-shadow: var(--shadow-md) !important;
        animation: none !important;
        max-width: calc(100% - 1.5rem) !important;
    }

    .float-badge[style*="left:-"],
    .float-badge[style*="bottom:-"] {
        left: 0.75rem !important;
        bottom: 0.75rem !important;
        right: auto !important;
        top: auto !important;
    }

    .float-badge[style*="right:-"],
    .float-badge[style*="top:-"] {
        right: 0.75rem !important;
        top: 0.75rem !important;
        left: auto !important;
        bottom: auto !important;
    }

    .airport-transfer-form,
    .airport-info-card {
        padding: 1.5rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .form-input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }

    .vehicle-selection {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* Contact methods */
    .contact-methods-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    /* Trust badges */
    .trust-badges {
        gap: 0.75rem;
        width: 100%;
    }

    .trust-badge {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 2.5rem 1.25rem;
        width: 100%;
    }

    .cta-banner__actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-banner__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        width: 100%;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Sticky mobile CTA */
    .sticky-cta-mobile {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 900;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        box-shadow: 0 -4px 20px rgba(15, 41, 24, 0.12);
        border-top: 1px solid var(--clr-border);
        padding: 0.65rem 0.85rem;
        gap: 0.5rem;
        transform: translateY(100%);
        transition: transform 300ms ease;
        box-sizing: border-box;
    }

    .sticky-cta-mobile.is-visible {
        transform: translateY(0);
    }

    .sticky-cta-mobile .btn {
        flex: 1;
        padding: 0.65rem 0.5rem;
        font-size: 0.82rem;
        justify-content: center;
    }

    /* Back-to-top positioned right above sticky mobile bar */
    .back-to-top {
        bottom: 4.5rem;
        right: 1rem;
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }

    /* Hide redundant floating WhatsApp on mobile since WhatsApp is in sticky bar */
    .whatsapp-float {
        display: none !important;
    }

    /* Mobile Lightbox */
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        background: rgba(0, 0, 0, 0.7);
        z-index: 10;
    }

    .lightbox-prev {
        left: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        background: rgba(0, 0, 0, 0.6);
    }

    .lightbox-next {
        right: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        background: rgba(0, 0, 0, 0.6);
    }

    .lightbox-img {
        max-width: 94vw;
        max-height: 75vh;
    }

    .lightbox-counter {
        background: rgba(0, 0, 0, 0.7);
        padding: 4px 12px;
        border-radius: 999px;
        font-size: 0.8rem;
    }
}

/* ─── EXTRA SMALL: <= 480px (375px, 425px) ─────────────────────── */

@media (max-width: 480px) {
    .navbar__logo-tagline {
        display: none;
    }

    .hero__title {
        font-size: 1.85rem;
    }

    .stats-strip {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 4.5rem;
        right: 0.85rem;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .whatsapp-float {
        display: none !important;
    }
}

/* ─── TABLET: 768px – 1023px (768px) ──────────────────────────── */

@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1.5rem;
        box-sizing: border-box;
    }

    .navbar {
        width: 100%;
        max-width: 100%;
    }

    .navbar__inner {
        padding: 0 1.5rem;
        width: 100%;
    }

    .navbar__nav {
        display: none;
    }

    .navbar__cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .dest-card:nth-child(1),
    .dest-card:nth-child(4) {
        grid-column: span 2;
        aspect-ratio: 2.5 / 1;
    }

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

    .why-card--large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .family-layout,
    .airport-layout,
    .airport-page-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ─── LAPTOP: 1024px – 1439px (1024px) ────────────────────────── */

@media (min-width: 1024px) {
    .hamburger { display: none; }
    .mobile-menu { display: none !important; }
    .mobile-menu-overlay { display: none !important; }

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

@media (min-width: 1024px) and (max-width: 1279px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 2rem;
        box-sizing: border-box;
    }

    .tours-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1.2fr;
    }
}

/* ─── DESKTOP: 1440px+ ─────────────────────────────────────────── */

@media (min-width: 1440px) {
    :root {
        --container-max: 1360px;
    }
}

/* ─── PRINT ─────────────────────────────────────────────────────── */

@media print {
    .navbar,
    .mobile-menu,
    .back-to-top,
    .sticky-cta-mobile,
    .whatsapp-float,
    .testimonials-section,
    .cta-banner {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .tour-card,
    .homestay-card {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
