/* ========================================
   Responsive
   ======================================== */

/* --- Prevent horizontal overflow globally --- */
html, body { overflow-x: clip; }

/* ========================================
   Mobile Nav Drawer
   ======================================== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 999;
}
.mobile-nav-overlay.active { display: block; }

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    max-width: 80vw;
    height: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-nav-drawer.open { right: 0; }

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.mobile-nav-header .logo {
    font-size: 18px;
}
.mobile-nav-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text);
    background: none;
    cursor: pointer;
}

.mobile-nav-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav-body a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.mobile-nav-body a:last-child { border-bottom: none; }
.mobile-nav-body a:hover { color: var(--primary); }
.mobile-nav-body a:hover .mn-icon { color: var(--primary); }

.mn-label {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-ultra-light);
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.25s;
}
.mobile-nav-body a:hover .mn-icon {
    background: rgba(5,150,105,0.12);
}

.mobile-nav-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mobile-nav-footer .btn-orange {
    text-align: center;
    padding: 12px;
    font-size: 14px;
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 20px;
}
.mobile-nav-extras {
    padding: 8px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mn-extra {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
}
.mn-extra i {
    font-size: 15px;
    color: var(--dark-gray);
}
.mn-extra:hover {
    color: var(--primary);
}
.mn-extra:hover i {
    color: var(--primary);
}

/* ========================================
   Tablet  (max-width: 992px)
   ======================================== */
@media (max-width: 992px) {
    /* Header */
    .main-nav { display: none; }
    .mobile-toggle { display: flex; }
    .mega-menu { display: none !important; }
    .header-right { gap: 6px; }
    .header-right .login-btn { display: none; }
    .header-right .currency-btn { font-size: 12px; padding: 5px 10px; }
    .search-btn { width: 36px; height: 36px; font-size: 14px; }
    .mobile-toggle { width: 36px; height: 36px; font-size: 18px; }

    /* Hero Slider */
    .hero-section { min-height: 420px; }
    .hero-slides-track { height: 420px; }
    .hero-photo.left-1  { width: 80px; height: 100px; }
    .hero-photo.left-2  { width: 75px; height: 95px; }
    .hero-photo.right-1 { width: 80px; height: 100px; }
    .hero-photo.right-2 { width: 75px; height: 95px; }
    .hero-slide-content { padding: 80px 24px 50px; }
    .hero-slide-content h1 { font-size: 34px; }
    .hero-subtitle { font-size: 15px; margin-bottom: 24px; }
    .hero-arrow { width: 40px; height: 40px; font-size: 18px; }
    .hero-arrow-prev { left: 12px; }
    .hero-arrow-next { right: 12px; }

    /* Destination tabs — compact for tablet */
    .tab-scroll-arrow { display: none; }
    .dest-tab { padding: 8px 12px; min-width: 64px; }
    .dest-tab-brand { font-size: 15px; padding-right: 12px; }
    .dest-tab-brand-icon { font-size: 19px; }

    /* Tours — two columns */
    .tours-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .tours-scroll-arrow { display: none; }
    .tours-scroll-wrapper { padding: 0; }

    /* Footer */
    .footer-bottom-section {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-tabs-nav { gap: 20px; flex-wrap: wrap; }

    /* Currency picker */
    .cp-grid { grid-template-columns: repeat(3, 1fr); }

    /* Search dropdown */
    .sr-dropdown { width: 90vw; max-width: 480px; }
}

/* ========================================
   Mobile  (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Header */
    .main-header { height: 56px; }
    .header-inner { height: 56px; }
    .header-right .currency-btn { display: none; }
    .header-right { gap: 6px; }
    .search-btn { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; }
    .mobile-toggle { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }

    /* Hero Slider */
    .hero-section { min-height: 380px; }
    .hero-slides-track { height: 380px; }
    .hero-photo { display: none !important; }
    .hero-slide-content {
        padding: 0 20px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        box-sizing: border-box;
    }
    .hero-slide-content h1 { font-size: 26px; line-height: 1.3; margin-bottom: 12px; }
    .hero-subtitle { font-size: 14px; max-width: 90%; margin-bottom: 22px; }
    .hero-arrow { width: 36px; height: 36px; font-size: 16px; }
    .hero-arrow-prev { left: 8px; }
    .hero-arrow-next { right: 8px; }
    .hero-controls { bottom: 24px; }
    .hero-silhouette-bar svg { height: 40px; }
    .hero-cta { padding: 12px 28px; font-size: 14px; border-radius: 50px; }

    /* Destination tabs — full-width sticky bar */
    .dest-tabs-section { top: 0; }
    .dest-tabs-section.dest-pinned .dest-tab-brand { display: none; }
    .dest-tabs-scroll { padding: 8px 0; }
    .dest-tab { padding: 6px 10px; min-width: 58px; }
    .dest-tab .tab-icon { width: 24px; height: 24px; font-size: 18px; }
    .dest-tab .tab-label { font-size: 10px; }

    /* Tours — single column */
    .tours-grid { grid-template-columns: 1fr; }
    .tour-card-img { height: 260px; }
    .tour-card { border-radius: 16px; }
    .tour-card-img img { border-radius: 16px 16px 0 0; }
    .section-header { margin-bottom: 16px; }
    .section-header h2 { font-size: 20px; }
    .tours-section { padding: 24px 0; }
    .tours-scroll-wrapper { padding: 0; }

    /* Live Stats */
    .live-stats { padding: 40px 0; }
    .ls-counters { flex-direction: column; gap: 24px; }
    .ls-divider { width: 60px; height: 1px; }
    .ls-number { font-size: 36px; }
    .ls-title { font-size: 24px; }

    /* Support */
    .sp-grid { grid-template-columns: 1fr; gap: 28px; }
    .sp-phone { width: 260px; }
    .support-section { padding: 32px 0 20px; }

    /* Footer */
    .footer-bottom-section { grid-template-columns: 1fr; gap: 20px; }
    .footer-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .footer-tabs-nav {
        gap: 12px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }
    .footer-tabs-nav::-webkit-scrollbar { display: none; }
    .footer-tab-link { font-size: 13px; white-space: nowrap; }
    .footer-packages-grid { gap: 6px 16px; }

    /* Currency picker */
    .cp-modal { max-width: 96vw; max-height: 80vh; }
    .cp-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-header { padding: 16px 20px 0; }
    .cp-header h3 { font-size: 18px; }
    .cp-body { padding: 16px 20px 24px; }
    .cp-search { margin: 16px 20px 0; width: calc(100% - 40px); }

    /* Search dropdown */
    .sr-overlay { padding-top: 0; align-items: flex-start; }
    .sr-dropdown {
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
    }
    .sr-body { padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .sr-pills { gap: 8px; flex-wrap: wrap; }
    .sr-pill { padding: 7px 14px; font-size: 12px; }
    .sr-input-wrap { padding: 14px 16px; }
    .sr-minmax { gap: 10px; }
    .sr-minmax-box { padding: 8px 10px; }
    .sr-label { font-size: 13px; margin-bottom: 10px; }
    .sr-footer { padding: 12px 16px 16px; }
    .sr-submit { padding: 12px 32px; font-size: 14px; width: 100%; }
}

/* ========================================
   Small Mobile  (max-width: 576px)
   ======================================== */
@media (max-width: 576px) {
    .container { padding: 0 12px; }

    /* Header */
    .main-header { height: 52px; }
    .header-inner { height: 52px; }
    .logo { font-size: 17px; gap: 4px; }
    .logo .logo-icon { font-size: 22px; }
    .search-btn { width: 34px; height: 34px; font-size: 13px; border-radius: 8px; }
    .mobile-toggle { width: 34px; height: 34px; font-size: 17px; border-radius: 8px; }

    /* Hero Slider */
    .hero-section { min-height: 340px; }
    .hero-slides-track { height: 340px; }
    .hero-slide-content h1 { font-size: 22px; }
    .hero-slide-content { padding: 0 14px; height: 100%; }
    .hero-subtitle { font-size: 13px; margin-bottom: 18px; }
    .hero-cta { padding: 10px 24px; font-size: 13px; }
    .hero-controls { bottom: 18px; }
    .hero-dot { width: 9px; height: 9px; }
    .hero-arrow { width: 32px; height: 32px; font-size: 14px; }

    /* Destination tabs */
    .dest-tab { padding: 5px 7px; min-width: 52px; }
    .dest-tab .tab-icon { width: 22px; height: 22px; font-size: 16px; }
    .dest-tab .tab-label { font-size: 9px; }
    .dest-tabs-inner { padding: 0; }

    /* Tours */
    .tour-card-body { padding: 12px 14px 14px; }
    .card-title { font-size: 14px; }
    .card-pricing .final-price { font-size: 16px; }
    .card-cta .btn-orange { padding: 8px 12px; font-size: 13px; }
    .card-route { font-size: 11px; padding: 5px 8px; }
    .tour-card-img { height: 240px; }

    /* Section headers */
    .section-header h2 { font-size: 18px; }
    .view-all-link { font-size: 13px; }

    /* Live stats */
    .live-stats { padding: 32px 0; }
    .ls-title { font-size: 20px; }
    .ls-number { font-size: 32px; }
    .ls-label { font-size: 12px; }

    /* Support */
    .sp-title { font-size: 20px; }
    .sp-card { padding: 12px; gap: 10px; }
    .sp-card-icon { width: 34px; height: 34px; font-size: 15px; }
    .sp-card h4 { font-size: 14px; }
    .sp-card p { font-size: 12px; }

    /* Footer */
    .footer-tabs { padding: 24px 0 0; }
    .footer-col h4 { font-size: 13px; margin-bottom: 10px; }
    .footer-col a { font-size: 12px; }
    .footer-bar .footer-logo-bottom { font-size: 16px; }
    .footer-packages { padding: 16px 0 20px; }

    /* Currency picker */
    .cp-grid { grid-template-columns: 1fr 1fr; }
    .cp-modal { border-radius: 8px; max-height: 85vh; }
    .cp-item { padding: 8px 10px; gap: 8px; }
    .cp-code { font-size: 12px; }
    .cp-name { font-size: 10px; }

    /* Search dropdown */
    .sr-dropdown { width: 100vw; max-width: 100vw; border-radius: 0; max-height: 100vh; max-height: 100dvh; }
    .sr-label { font-size: 12px; }
    .sr-submit { width: 100%; }
}

/* ========================================
   Extra Small  (max-width: 400px)
   ======================================== */
@media (max-width: 400px) {
    .container { padding: 0 10px; }

    /* Header */
    .main-header { height: 48px; }
    .header-inner { height: 48px; }
    .logo { font-size: 16px; }
    .logo .logo-icon { font-size: 20px; }
    .search-btn { width: 32px; height: 32px; font-size: 12px; border-radius: 8px; }
    .mobile-toggle { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }

    /* Hero */
    .hero-section { min-height: 300px; }
    .hero-slides-track { height: 300px; }
    .hero-slide-content h1 { font-size: 20px; }
    .hero-slide-content { padding: 0 10px; height: 100%; }
    .hero-subtitle { font-size: 12px; margin-bottom: 16px; }
    .hero-cta { padding: 10px 20px; font-size: 12px; }
    .hero-arrow { display: none; }
    .hero-controls { bottom: 16px; }

    /* Dest tabs */
    .dest-tab { min-width: 48px; padding: 5px 5px; }
    .dest-tab .tab-icon { width: 20px; height: 20px; font-size: 14px; }
    .dest-tab .tab-label { font-size: 8px; }

    /* Tours */
    .tour-card-img { height: 220px; }
    .card-title { font-size: 13px; }
    .card-cta { flex-direction: column; }
    .card-cta .btn-orange { width: 100%; text-align: center; }
    .card-phone-btn { width: 100%; justify-content: center; }

    /* Stats / Support */
    .ls-number { font-size: 28px; }
    .ls-title { font-size: 18px; }
    .sp-title { font-size: 18px; }

    /* Section */
    .section-header h2 { font-size: 16px; }

    /* Currency picker */
    .cp-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-packages-grid a { font-size: 11px; }
}
