/* ============================================
   Responsive Styles — All Media Queries
   ============================================ */

/* ---- Large Desktop (1200px and below) ---- */
@media (max-width: 1200px) {
    :root {
        --font-size-hero: 3rem;
        --font-size-3xl: 2.2rem;
    }

    .footer-grid {
        gap: var(--space-xl);
    }
}

/* ---- Tablet Landscape (1024px and below) ---- */
@media (max-width: 1024px) {
    :root {
        --font-size-hero: 2.5rem;
        --font-size-3xl: 2rem;
        --font-size-2xl: 1.75rem;
        --space-section: 4rem;
    }

    .why-choose-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }

    .tours-grid,
    .tours-page-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-md);
    }

    .about-grid {
        gap: var(--space-xl);
    }

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

    .reviews-grid .review-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ---- Tablet Portrait (768px and below) ---- */
@media (max-width: 768px) {
    :root {
        --font-size-hero: 2.2rem;
        --font-size-3xl: 1.8rem;
        --font-size-2xl: 1.5rem;
        --space-section: 3.5rem;
    }

    /* Top Bar */
    .top-bar-left {
        gap: var(--space-md);
    }

    .top-bar-phone-tert {
        display: none !important;
    }

    .top-bar-left span.email-text {
        display: none;
    }

    /* Navigation - Mobile Luxury Drawer */
    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(8, 10, 15, 0.75);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(340px, 86vw);
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, #111624 0%, #0a0d15 100%);
        border-left: 1px solid rgba(255, 255, 255, 0.09);
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.75);
        z-index: 999;
        display: flex;
        flex-direction: column;
        padding: 0 0 1.25rem 0;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        transform: translateX(105%);
        visibility: hidden;
        transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.38s ease;
        scrollbar-width: thin;
        scrollbar-color: rgba(243, 112, 33, 0.3) transparent;
    }

    .nav-menu::-webkit-scrollbar {
        width: 4px;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(243, 112, 33, 0.3);
        border-radius: 4px;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    /* Drawer Header */
    .nav-drawer-header {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        padding: 1.2rem 1.25rem 0.5rem;
        background: transparent;
        position: sticky;
        top: 0;
        z-index: 10;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-drawer-close {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.14);
        color: #cbd5e1;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 0;
        flex-shrink: 0;
    }

    .nav-drawer-close:hover {
        background: #F37021;
        border-color: #F37021;
        color: #ffffff;
        transform: rotate(90deg);
    }

    /* Drawer Menu Items */
    .nav-menu li.nav-item {
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .nav-menu li.nav-item:first-of-type {
        margin-top: 0.75rem;
    }

    .nav-menu li.nav-item a {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        margin-bottom: 4px;
        border-radius: 12px;
        color: #cbd5e1;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 0.92rem;
        font-weight: 700;
        letter-spacing: 0.3px;
        background: transparent;
        border: 1px solid transparent;
        transition: all 0.25s ease;
        text-decoration: none;
        text-transform: none;
        box-sizing: border-box;
    }

    .nav-menu li.nav-item a::after {
        display: none !important;
    }

    .nav-menu li.nav-item a:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
        transform: translateX(3px);
    }

    .nav-menu li.nav-item a.active {
        background: linear-gradient(135deg, rgba(243, 112, 33, 0.18) 0%, rgba(243, 112, 33, 0.04) 100%);
        border-color: rgba(243, 112, 33, 0.35);
        color: #F37021 !important;
        box-shadow: 0 4px 15px rgba(243, 112, 33, 0.12);
    }

    .nav-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.05);
        margin-right: 12px;
        flex-shrink: 0;
        transition: all 0.25s ease;
    }

    .nav-icon svg {
        width: 16px;
        height: 16px;
        fill: #94a3b8;
        transition: fill 0.25s ease;
    }

    .nav-icon-crown {
        font-size: 1.1rem;
        background: rgba(243, 112, 33, 0.12);
    }

    .nav-menu li.nav-item a:hover .nav-icon {
        background: rgba(243, 112, 33, 0.15);
    }

    .nav-menu li.nav-item a:hover .nav-icon svg {
        fill: #F37021;
    }

    .nav-menu li.nav-item a.active .nav-icon {
        background: rgba(243, 112, 33, 0.22);
    }

    .nav-menu li.nav-item a.active .nav-icon svg {
        fill: #F37021;
    }

    .nav-text {
        flex: 1;
        text-align: left;
    }

    .nav-vip-badge {
        display: inline-flex !important;
        font-size: 0.65rem;
        font-weight: 800;
        padding: 2px 7px;
        border-radius: 100px;
        background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
        color: #ffffff;
        letter-spacing: 0.5px;
        margin-right: 8px;
        box-shadow: 0 2px 8px rgba(243, 112, 33, 0.35);
    }

    .nav-arrow {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .nav-arrow svg {
        width: 16px;
        height: 16px;
        fill: #475569;
        transition: all 0.25s ease;
    }

    .nav-menu li.nav-item a:hover .nav-arrow svg,
    .nav-menu li.nav-item a.active .nav-arrow svg {
        fill: #F37021;
        transform: translateX(2px);
    }

    /* Drawer CTA Button */
    .nav-cta-mobile {
        display: block !important;
        width: 100%;
        padding: 0.85rem 1rem 1.75rem;
        box-sizing: border-box;
    }

    .btn-drawer-book {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 14px 18px;
        background: linear-gradient(135deg, #F97316 0%, #EA580C 50%, #C2410C 100%);
        color: #ffffff !important;
        border-radius: 14px;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-weight: 800;
        font-size: 0.9rem;
        letter-spacing: 0.8px;
        text-decoration: none;
        box-shadow: 0 8px 24px rgba(243, 112, 33, 0.38);
        border: 1px solid rgba(255, 255, 255, 0.22);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-sizing: border-box;
    }

    .btn-drawer-book:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(243, 112, 33, 0.52);
    }

    .btn-drawer-book svg {
        flex-shrink: 0;
    }

    /* Hero */
    .hero {
        min-height: 480px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-bg::after {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.5) 100%
        );
    }

    /* Why Choose */
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tours */
    .tours-grid,
    .tours-page-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-xl);
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-content {
        padding-left: 0;
    }

    .about-image-wrapper img {
        min-height: 300px;
    }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid .review-card:last-child {
        max-width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Page Banner */
    .page-banner {
        padding: 60px 0 40px;
    }

    .page-banner h1 {
        font-size: var(--font-size-2xl);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Contact Form */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ---- Mobile (576px and below) ---- */
@media (max-width: 576px) {
    :root {
        --font-size-hero: 1.8rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.3rem;
        --space-section: 3rem;
        --container-padding: 1rem;
    }

    .top-bar {
        padding: 6px 0;
    }

    .top-bar-left {
        gap: var(--space-sm);
        font-size: var(--font-size-xs);
    }

    .top-bar-phone-sec {
        display: none !important;
    }

    .navbar-logo img {
        height: 45px;
    }

    .hero {
        min-height: 420px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hero-rating {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .why-choose-icon {
        width: 70px;
        height: 70px;
    }

    .why-choose-icon svg {
        width: 30px;
        height: 30px;
    }

    .tours-grid,
    .tours-page-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-xl);
    }

    .cta-section h2 {
        font-size: var(--font-size-2xl);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom p {
        font-size: var(--font-size-xs);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ---- Extra Small (400px and below) ---- */
@media (max-width: 400px) {
    :root {
        --font-size-hero: 1.5rem;
    }

    .hero {
        min-height: 380px;
    }

    .hero .container {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }
}

/* ---- Button Ripple ---- */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-anim 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: translate(-50%, -50%) scale(30);
        opacity: 0;
    }
}
