


.mobile-nav-overlay {
    display: none;
}

@media (min-width: 1200px) {
    .config-banner-wide { min-height: 320px; }
}

@media (max-width: 1024px) {
    body.theme-pro .pro-container { padding: 0 20px; }
    body.theme-pro .footer-grid { grid-template-columns: 1fr 1fr; }
    body.theme-pro .header-pro-wrapper { top: 10px; padding: 0 10px; }
    body.theme-pro .nav-links { display: none; }
}

.mobile-only-auth { display: none; }
.mobile-booking-cta { display: none; }

@media (min-width: 901px) {
    .hide-on-desktop {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .top-bar-center, .top-bar-right { display: none; }
    .top-bar { text-align: center; justify-content: center; padding: 4px 0; }
    .top-bar-left { gap: 4px; font-size: 0.6rem; flex-wrap: wrap; justify-content: center; padding: 0 5px; }
    .top-bar-left span { white-space: normal; line-height: 1.2; }
    .top-bar-left .divider { margin: 0 2px; }
    
    .mobile-only-auth { display: flex; flex-direction: column; width: 100%; align-items: center; gap: 15px; margin-top: 10px; }
    .mobile-menu-separator { width: 60px; height: 2px; background: rgba(212, 175, 55, 0.3); margin: 5px 0 15px 0; border-radius: 2px; }
    .top-bar-container { justify-content: center; }
    .header { height: 60px; }
    .mobile-menu-btn { display: flex; }
    .header-actions .btn { display: none; }
    
    .nav-icon { display: block; width: 24px; height: 24px; margin-bottom: 6px; stroke-width: 1.5; transition: transform 0.3s; }
    
    .nav-links { display: none; } 

    
    .mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--primary);
        z-index: 9998;
        overflow: hidden;
        flex-direction: column;
    }
    .mobile-nav-overlay.active {
        display: flex;
        animation: fadeInMenu 0.3s ease-out forwards;
    }
    @keyframes fadeInMenu {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .mobile-menu-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

    .mobile-nav-view {
        position: absolute;

        left: 0;
        width: 100%;
        height: calc(100% - 0px);
        display: flex;
        flex-direction: column;
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
    }
    .mobile-nav-view.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-nav-view.hidden-left {
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
    }

    .mobile-nav-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 1fr;
        gap: 10px;
        padding: 20px 15px 140px;
        overflow-y: auto;
        align-content: flex-start;
    }
    .mobile-nav-grid a {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
        border-radius: 12px; padding: 12px 5px;
        font-size: 0.65rem; font-weight: 600; text-align: center; 
        color: #fff; text-transform: uppercase;
        position: relative; z-index: 2; transition: all 0.3s;
        height: 100px;
    }
    .mobile-nav-grid a:hover, .mobile-nav-grid a.active {
        background: rgba(212, 175, 55, 0.15); border-color: var(--accent); color: var(--accent);
    }
    .mobile-nav-grid a .nav-icon {
        width: 24px; height: 24px; margin-bottom: 6px; stroke-width: 1.5;
    }

    
    .sub-view-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        background: rgba(0,0,0,0.2);
        z-index: 10;
    }
    .sub-view-header h3 {
        color: white;
        margin: 0;
        font-size: 1.2rem;
    }
    .sub-view-header .back-btn, .sub-view-header .view-all-btn {
        background: none;
        border: none;
        color: var(--accent);
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        padding: 5px 10px;
    }

    .sub-view-carousel {
        flex: 1;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        display: flex;
        flex-direction: column;
        padding: 0 20px;
        scrollbar-width: none;
    }
    .sub-view-carousel::-webkit-scrollbar { display: none; }

    .carousel-padding {
        min-height: calc(50vh - 150px);
        flex-shrink: 0;
        width: 100%;
    }

    .carousel-item {
        scroll-snap-align: center;
        width: 100%;
        max-width: 320px;
        height: 240px;
        margin: 15px auto;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s, filter 0.4s;
        transform: scale(0.85);
        opacity: 0.5;
        filter: grayscale(0.5);
        display: block;
        text-decoration: none;
        background: #1e293b;
        border: 1px solid rgba(255,255,255,0.1);
    }
    .carousel-item.active-center {
        transform: scale(1.05);
        opacity: 1;
        filter: grayscale(0);
        border-color: var(--accent);
        box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
        z-index: 5;
    }

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .carousel-item-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 20px;
    }
    .carousel-item-title {
        color: white;
        font-size: 1.2rem;
        font-weight: 700;
        margin: 0 0 5px 0;
        line-height: 1.2;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    .carousel-item-price {
        color: var(--accent);
        font-weight: 800;
        font-size: 1.1rem;
    }
    
    .search-strip { top: 60px; padding: 12px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom-inner { flex-direction: column; gap: 15px; text-align: center; }
    .marketing-grid { grid-template-columns: 1fr; gap: 40px; }
    .marketing-img { transform: rotate(0deg); }
    
    .tour-gallery-grid { grid-template-columns: 1fr; grid-template-rows: 250px auto; }
    .tour-gallery-main { grid-row: 1; grid-column: 1; }
    .tour-gallery-side { display: none; }
    .tour-content-layout { grid-template-columns: 1fr; }
    .tour-sticky-sidebar { position: static; }
    .mobile-booking-cta { display: block; }
    
    #configStickyBar { padding: 10px 15px !important; top: 60px !important; }
    .config-bar-inner { flex-direction: column; align-items: stretch !important; gap: 10px !important; }
    .config-bar-left { width: 100%; justify-content: space-between; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px; }
    .config-bar-right { width: 100%; justify-content: space-between; gap: 8px !important; }
    .config-bar-right .btn { flex: 1; padding: 10px 5px !important; font-size: 0.85rem !important; display: flex; align-items: center; justify-content: center; text-align: center; }
    .config-price-box { text-align: left !important; margin-right: 0 !important; display: flex; align-items: center; gap: 10px; }
    .config-price-label { display: none; }
}
@media (max-width: 768px) {
    .container-max, .footer-container, .header-container { padding-left: 10px; padding-right: 10px; }
    .section-padding { padding: 40px 0; }
    .section-padding > .container-max { padding-left: 10px; padding-right: 10px; }
    
    .page-container, .page-container-narrow { padding: 10px 21px; }
    .hero-wrapper { height: auto; min-height: 500px; padding-bottom: 40px; align-items: center; }
    .hero-content { padding: 37px 25px 5px; }
    
    .marketing-grid { gap: 30px; }
    .marketing-badge { left: 10px; bottom: -20px; }
    
    .search-strip { top: 60px; padding: 10px 0; width: 100%; transition: transform 0.3s ease-in-out; }
    .search-strip-inner { flex-direction: row; gap: 0; padding: 0 10px; width: 100%; }
    .search-input-group { max-width: 100%; flex: 1; width: 100%; border-radius: 8px; }
    .search-results-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: -10px;
        width: 100vw;
        max-width: 100vw;
        border-radius: 0 0 16px 16px;
        border-left: none;
        border-right: none;
    }
    .action-link-all { display: none; }
    
    .hero-actions-wrapper { display: flex; width: 100%; gap: 10px; justify-content: space-between; }
    .hero-actions-wrapper .btn { flex: 1; text-align: center; padding: 14px 15px; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
    
    .grid-responsive, .grid-responsive-sm { grid-template-columns: 1fr; gap: 15px; }
    .mb-40 { margin-bottom: 20px; }
    .mb-50 { margin-bottom: 30px; }
    
    .gv-slider { height: 250px; border-radius: 0; }
    
    .ai-panel { width: 90%; right: 5%; bottom: 90px; height: 60vh; }
    
    .guide-zigzag-line { left: 20px; transform: none; }
    .guide-zigzag-item { width: 100%; left: 0 !important; padding-left: 60px !important; padding-right: 0 !important; text-align: left !important; }
    .guide-zigzag-item.left .guide-bubble-arrow, .guide-zigzag-item.right .guide-bubble-arrow { left: -8px; right: auto; border-right: none; border-top: none; }
    .guide-zigzag-dot { left: 20px !important; right: auto !important; transform: translateX(-50%); }
    .point-card, .guide-zigzag-content { width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
    
    body.theme-modern .modern-container { padding: 0 20px; }
    body.theme-modern .section-header-modern h2 { font-size: 2.2rem; }
    body.theme-modern .trust-strip { display: none; }
    body.theme-modern .inner-header h1 { font-size: 2.5rem; }

    #instant-booking-card {
        border-color: #c5a044;
        box-shadow: 0 8px 25px rgba(197, 160, 68, 0.2);
        transform: translateY(-2px);
    }
    #instant-booking-card .epic-icon-wrapper-light {
        background: #c5a044;
        color: #fff;
    }

    .coupon-input-group {
        flex-direction: column;
        gap: 8px !important;
    }
    .coupon-input-group input {
        width: 100%;
    }
    .coupon-input-group button {
        width: 100%;
    }
}


@media (max-width: 900px) {
    .header-search-btn {
        display: flex;
    }
}