/* ========================================
   MOBILE OPTION B: MORPHING SIDEBAR
   Full-height animated sidebar with 3D transforms
   ======================================== */

@media (max-width: 1200px) {

    /* NAVBAR - Minimal with floating hamburger */
    .navbar {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
        padding: 1rem 0;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1000;
        height: 60px;
        /* Explicit height */
    }

    .nav-container {
        padding: 0 1.25rem;
    }

    .logo {
        font-size: 1.4rem;
        color: #FFFFFF !important;
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
        z-index: 100000;
        /* Ensure logo is visible */
        position: relative;
    }

    /* ANIMATED HAMBURGER */
    .mobile-menu-toggle {
        display: flex !important;
        width: 45px;
        height: 45px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
        transition: all 0.3s;
        /* FIX: High z-index and fixed position to stay above logo banner and menu overlay */
        position: fixed !important;
        top: 8px !important;
        right: 15px !important;
        /* Move to RIGHT */
        left: auto !important;
        /* Reset Left */
        z-index: 100001 !important;
    }

    .mobile-menu-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        background: #FFFFFF;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        position: absolute;
    }

    .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(-6px);
    }

    .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(6px);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* FULL-HEIGHT MORPHING SIDEBAR */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(180deg, #1a1a2e 0%, #0f0f23 50%, #16213e 100%);
        flex-direction: column;
        justify-content: flex-start;
        /* Start from top to allow scrolling */
        align-items: center;
        gap: 0;
        padding: 5rem 2rem 2rem 2rem;
        /* Top padding for hamburger clearance */
        clip-path: circle(0% at calc(100% - 40px) 30px);
        /* Updated clip path origin */
        transition: clip-path 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 999;
        overflow-y: auto;
        /* Enable scrolling */
    }

    .nav-links.active {
        clip-path: circle(150% at calc(100% - 40px) 30px);
    }

    .nav-links li {
        width: 100%;
        max-width: 300px;
        opacity: 0;
        transform: translateX(50px);
        /* Slide from right */
        transition: all 0.4s ease;
        margin-bottom: 0.5rem;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered transition helper - expanded for more items */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-links.active li:nth-child(7) {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(8) {
        transition-delay: 0.45s;
    }

    .nav-links.active li:nth-child(9) {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(10) {
        transition-delay: 0.55s;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        color: #FFFFFF;
        font-size: 1.25rem;
        font-weight: 700;
        text-align: center;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
        transition: all 0.3s;
        text-decoration: none;
    }

    /* Dropdown Styles */
    .dropdown-content,
    .opening-hours-content {
        display: none;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        margin-top: 5px;
        border-radius: 12px;
        padding: 0.5rem;
        overflow: hidden;
        animation: fadeIn 0.3s;
    }

    .dropdown.active .dropdown-content,
    .dropdown.active .opening-hours-content {
        display: block;
    }

    .dropdown-content li {
        width: 100%;
        transform: none !important;
        /* Disable slide animation for nested items */
        opacity: 1 !important;
        margin-bottom: 0.25rem;
    }

    .dropdown-content a {
        font-size: 1rem;
        padding: 0.75rem;
        background: transparent;
        border: none;
    }

    .nav-links .btn-book-now {
        background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%) !important;
        border: none !important;
        padding: 1.25rem 2rem;
        font-size: 1.4rem;
        color: white !important;
        box-shadow: 0 10px 30px rgba(255, 75, 43, 0.4);
        margin-top: 1rem;
        margin-bottom: 2rem;
        /* Bottom spacing */
    }

    /* Different gradient borders for visual appeal */
    .nav-links li:nth-child(odd) a {
        border-left: 4px solid #FF6B6B;
    }

    .nav-links li:nth-child(even) a {
        border-left: 4px solid #4ECDC4;
    }


    /* HERO - Offset for fixed nav */
    .hero {
        min-height: auto;
        margin-top: 0;
        padding-top: 60px !important;
        /* Match header height exactly */
    }

    .hero h1 {
        font-size: 1.5rem !important;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        border-radius: 16px;
        padding: 1.2rem 2rem;
    }

    /* SECTIONS - Dark theme compatible */
    .section {
        padding: 1rem 0;
    }

    .section-title {
        margin-bottom: 1.25rem;
    }

    .section-title h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

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

    .section-title h2 {
        font-size: 1.8rem;
        word-wrap: break-word;
    }

    /* CARDS with subtle glow */
    .card {
        border-radius: 20px;
        padding: 1.5rem 1rem;
        background: linear-gradient(145deg, #FFFFFF 0%, #F8F9FA 100%);
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
        transition: all 0.4s;
        width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
    }

    /* GRIDS */
    .grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100%;
        gap: 0.5rem !important;
    }

    .card {
        padding: 0.75rem !important;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .card .btn {
        margin-top: auto !important;
        align-self: center;
        width: fit-content;
    }

    .card-icon {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
        font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Android Emoji", EmojiSymbols, sans-serif;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        background: var(--gray-100);
        border-radius: 50%;
        margin-left: auto;
        margin-right: auto;
    }

    .card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }

    .card p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }

    /* GALLERY */
    /* GALLERY SLIDER SYNC */
    .gallery-container {
        width: 100%;
        overflow: visible !important;
        /* Allow nav buttons to show */
        padding: 0 45px !important;
        /* Slightly more space */
        position: relative;
        z-index: 5;
    }

    .gallery-track-container {
        width: 100%;
        overflow: hidden;
        border-radius: var(--radius-md);
    }

    .gallery-track {
        display: flex !important;
        gap: 0.75rem !important;
        width: max-content !important;
        min-width: 100% !important;
        align-items: center;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        touch-action: pan-y;
    }

    .gallery-item {
        flex: 0 0 calc(100vw - 90px) !important;
        /* Proper mobile scaling */
        width: calc(100vw - 90px) !important;
        max-width: 450px;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .gallery-item img,
    .gallery-item video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .gallery-nav {
        display: flex !important;
        /* Force visible on mobile */
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        z-index: 10001 !important;
        /* Above EVERYTHING */
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* BOOKING */
    .booking-container {
        width: 100%;
        padding: 0;
    }

    .booking-form {
        padding: 1.25rem 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .form-row {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px !important;
        /* Prevents iOS zoom on focus */
    }

    /* HERO */
    .hero h1 {
        font-size: 1.5rem !important;
        padding: 0 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    /* FOOTER */
    .footer {
        padding: 2rem 0;
    }
}