/* ============================================
   MOBILE FIXES - COMPREHENSIVE MOBILE OPTIMIZATION
   ============================================ */

/* ===== DESKTOP: Hide Mobile-Only Elements ===== */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    
    /* ===== BASE STRUCTURE ===== */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    body {
        padding-top: 70px; /* Space for fixed navbar */
        cursor: auto !important; /* Remove custom cursor on mobile */
    }
    
    /* Hide custom cursor on mobile */
    .cursor, .cursor-follower {
        display: none !important;
    }
    
    /* ===== NAVBAR - FIXED & OPTIMIZED ===== */
    .navbar {
        height: 70px !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: rgba(11, 12, 9, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4) !important;
        border-bottom: 1px solid rgba(255, 153, 182, 0.2) !important;
        border-left: none !important;
        border-right: none !important;
    }
    
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 70px !important;
        padding: 0 20px !important;
        max-width: 100% !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Logo */
    .nav-logo {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        z-index: 10000 !important;
    }
    
    .nav-logo .logo {
        height: 45px !important;
        width: auto !important;
        filter: drop-shadow(0 2px 8px rgba(255, 153, 182, 0.4)) !important;
    }
    
    .logo-text {
        display: none !important;
    }
    
    /* ===== NAVIGATION ACTIONS ===== */
    .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        z-index: 10000 !important;
        border: none !important;
        background: transparent !important;
    }
    
    /* RESERVATION CTA BUTTON - Prominent & Accessible */
    .nav-cta {
        background: linear-gradient(135deg, #ff6b9d, #ff8fab) !important;
        color: white !important;
        padding: 10px 16px !important;
        border-radius: 25px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        box-shadow: 0 4px 15px rgba(255, 107, 157, 0.5) !important;
        border: none !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important;
    }
    
    .nav-cta:active {
        transform: scale(0.95) !important;
        box-shadow: 0 2px 10px rgba(255, 107, 157, 0.4) !important;
    }
    
    .nav-cta i {
        font-size: 14px !important;
    }
    
    .nav-cta span {
        display: none !important;
    }
    
    /* ===== HAMBURGER BUTTON - MODERN & CLEAR ===== */
    .nav-toggle {
        width: 36px !important;
        height: 36px !important;
        position: relative !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 8px 6px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        z-index: 10000 !important;
        box-shadow: none !important;
        outline: none !important;
    }
    
    .nav-toggle .bar {
        width: 26px !important;
        height: 3px !important;
        background-color: #ff6b9d !important;
        background: #ff6b9d !important;
        border-radius: 3px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        display: block !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Remove any pseudo-elements that might create bars */
    .nav-toggle .bar::before,
    .nav-toggle .bar::after,
    .nav-toggle::before,
    .nav-toggle::after {
        display: none !important;
        content: none !important;
    }
    
    /* Ensure bars are always visible */
    #nav-toggle .bar {
        background-color: #ff6b9d !important;
        background: #ff6b9d !important;
    }
    
    /* Animated X Transform */
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translateY(8px) !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0) !important;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px) !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
    }
    
    /* ===== MOBILE MENU - FULL SCREEN OVERLAY ===== */
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: linear-gradient(135deg, rgba(11, 12, 9, 0.98) 0%, rgba(26, 27, 23, 0.98) 100%) !important;
        backdrop-filter: blur(20px) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 30px 20px !important;
        z-index: 9998 !important;
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .nav-menu.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Menu Links - Modern Cards */
    .nav-menu .nav-link {
        color: #ffffff !important;
        font-size: 20px !important;
        font-weight: 600 !important;
        padding: 16px 30px !important;
        margin: 10px 0 !important;
        text-align: center !important;
        width: 85% !important;
        max-width: 400px !important;
        border-radius: 16px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 2px solid rgba(255, 153, 182, 0.2) !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
        backdrop-filter: blur(10px) !important;
        opacity: 0 !important;
        transform: translateY(20px) !important;
        position: relative !important;
    }
    
    /* Remove underline on links */
    .nav-menu .nav-link::after {
        display: none !important;
    }
    
    /* Stagger Animation */
    .nav-menu.active .nav-link {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s !important; }
    .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.15s !important; }
    .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.2s !important; }
    .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.25s !important; }
    .nav-menu.active .nav-link:nth-child(5) { transition-delay: 0.3s !important; }
    .nav-menu.active .nav-link:nth-child(6) { transition-delay: 0.35s !important; }
    
    .nav-menu .nav-link:active {
        transform: scale(0.98) !important;
        background: rgba(255, 107, 157, 0.9) !important;
        border-color: #ff6b9d !important;
        color: white !important;
    }
    
    .nav-menu .nav-link.active {
        background: linear-gradient(135deg, #ff6b9d, #ff8fab) !important;
        border-color: #ff6b9d !important;
        color: white !important;
        box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4) !important;
    }
    
    /* Special Mobile CTA Button in Menu */
    .nav-menu .nav-cta-mobile {
        background: linear-gradient(135deg, #ff6b9d, #ff8fab) !important;
        color: white !important;
        font-weight: 700 !important;
        font-size: 18px !important;
        margin-top: 25px !important;
        padding: 18px 35px !important;
        box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6) !important;
        border: 3px solid rgba(255, 255, 255, 0.3) !important;
        animation: pulse-subtle 2s infinite !important;
    }
    
    @keyframes pulse-subtle {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.03); }
    }
    
    /* ===== HERO SECTION ===== */
    .hero {
        padding-top: 30px !important;
        min-height: auto !important;
        margin-top: 0 !important;
        padding-bottom: 40px !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 20px !important;
        text-align: center !important;
    }
    
    .hero-title {
        font-size: 32px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    
    .title-line {
        font-size: 18px !important;
        color: #ff99b6 !important;
    }
    
    .title-main {
        font-size: 36px !important;
    }
    
    .hero-subtitle {
        font-size: 18px !important;
        color: #ff99b6 !important;
        margin-bottom: 15px !important;
    }
    
    .hero-description {
        font-size: 16px !important;
        color: rgba(250, 236, 221, 0.9) !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
    }
    
    /* Hero Buttons */
    .hero-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        max-width: 300px !important;
        padding: 14px 24px !important;
        font-size: 15px !important;
        justify-content: center !important;
    }
    
    /* Hero Image */
    .hero-image {
        margin-top: 30px !important;
    }
    
    .hero-placeholder {
        height: 300px !important;
    }
    
    /* ===== BUTTONS - MOBILE OPTIMIZED ===== */
    .btn {
        padding: 14px 24px !important;
        font-size: 15px !important;
        border-radius: 30px !important;
        font-weight: 600 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        min-height: 48px !important; /* Touch target size */
        transition: all 0.3s ease !important;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #ff6b9d, #ff8fab) !important;
        color: white !important;
        box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4) !important;
    }
    
    .btn-primary:active {
        transform: scale(0.98) !important;
    }
    
    .btn-secondary {
        background: rgba(250, 236, 221, 0.1) !important;
        color: #faecdd !important;
        border: 2px solid rgba(250, 236, 221, 0.4) !important;
    }
    
    .btn i {
        font-size: 16px !important;
    }
    
    /* ===== SECTIONS - MOBILE SPACING ===== */
    section {
        padding: 50px 0 !important;
    }
    
    .section-title {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }
    
    .section-subtitle {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
    
    /* ===== SERVICES SECTION ===== */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .service-card {
        padding: 24px !important;
    }
    
    .service-icon {
        font-size: 40px !important;
    }
    
    .service-content h3 {
        font-size: 20px !important;
    }
    
    /* ===== RESERVATION CTA SECTION ===== */
    .reservation-header .section-title {
        font-size: 26px !important;
    }
    
    .reservation-features {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .btn-large {
        width: 100% !important;
        font-size: 16px !important;
        padding: 16px 30px !important;
    }
    
    /* ===== ABOUT & CONTACT SECTIONS ===== */
    .about-content,
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .about-placeholder {
        height: 300px !important;
    }
    
    /* ===== GALLERY ===== */
    .gallery-masonry {
        column-count: 2 !important;
        column-gap: 15px !important;
    }
    
    .gallery-item {
        margin-bottom: 15px !important;
    }
    
    /* ===== CONTACT FORM ===== */
    .contact-form {
        padding: 24px !important;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 14px !important;
    }
    
    /* ===== FOOTER ===== */
    .footer {
        padding: 30px 0 !important;
    }
    
    /* ===== SCROLL TO TOP BUTTON ===== */
    .scroll-to-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 48px !important;
        height: 48px !important;
    }
    
    /* ===== FLOATING ELEMENTS - REDUCED ON MOBILE ===== */
    .floating-element {
        font-size: 20px !important;
        opacity: 0.3 !important;
    }
}

/* ===== SMALL MOBILE DEVICES ===== */
@media (max-width: 480px) {
    body {
        padding-top: 65px !important;
    }
    
    .navbar {
        height: 65px !important;
    }
    
    .nav-container {
        padding: 0 15px !important;
        height: 65px !important;
    }
    
    .nav-logo .logo {
        height: 40px !important;
    }
    
    .nav-cta {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
    
    .nav-toggle .bar {
        width: 24px !important;
        background-color: #ff6b9d !important;
        background: #ff6b9d !important;
    }
    
    .nav-menu {
        top: 65px !important;
        height: calc(100vh - 65px) !important;
    }
    
    .nav-menu .nav-link {
        font-size: 18px !important;
        padding: 14px 25px !important;
        width: 90% !important;
    }
    
    .hero-title {
        font-size: 28px !important;
    }
    
    .title-main {
        font-size: 32px !important;
    }
    
    .section-title {
        font-size: 24px !important;
    }
    
    .gallery-masonry {
        column-count: 1 !important;
    }
    
    .container {
        padding: 0 15px !important;
    }
}
