/* ═══════════════════════════════════════════════════════════════
   Al Tower Tours — Mobile Native Experience
   Gives mobile users an app-like interaction model
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* ─── Mobile Bottom Navigation ────────────────────────────── */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-top: 1px solid var(--border-color);
        z-index: 1000;
        padding: 8px 0 env(safe-area-inset-bottom, 8px);
        box-shadow: 0 -4px 25px rgba(0,0,0,0.1);
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(20px);
    }
    .dark-mode .mobile-bottom-nav {
        background: rgba(15,23,42,0.9);
        box-shadow: 0 -4px 25px rgba(0,0,0,0.4);
    }

    .mobile-bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 4px;
        font-size: 10px;
        font-weight: 500;
        color: var(--text-tertiary);
        transition: all 0.2s ease;
        text-decoration: none;
        position: relative;
    }

    .mobile-bottom-nav a i {
        font-size: 20px;
        transition: all 0.2s ease;
    }

    .mobile-bottom-nav a.active {
        color: var(--primary-500);
    }

    .mobile-bottom-nav a.active::before {
        content: '';
        position: absolute;
        top: -1px;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
        background: var(--gradient-primary);
        border-radius: 0 0 3px 3px;
    }

    /* Push body content above bottom nav */
    body {
        padding-bottom: 70px;
    }

    /* Hide desktop nav */
    .header .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 100px 24px 24px;
        gap: 4px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        z-index: 1000;
        align-items: stretch;
        overflow-y: auto;
    }

    .header .nav.open {
        right: 0;
    }

    /* Mobile overlay when nav open */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    /* ─── Mobile App Bar ─────────────────────────────────────── */
    .header {
        height: 60px;
        background: rgba(255,255,255,0.85) !important;
        backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        box-shadow: none !important;
    }
    
    .dark-mode .header {
        background: rgba(15,23,42,0.85) !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    
    .header .container {
        padding: 0 16px;
    }

    .header .nav, .header-cta, .menu-toggle {
        display: none !important; /* Hide standard web header elements */
    }

    .logo {
        flex: 1;
    }

    .logo img {
        height: 32px;
    }

    .logo-text .brand-name {
        font-size: 15px;
    }

    .logo-text .brand-tagline {
        display: none; /* Hide tagline on mobile for cleaner app bar */
    }

    /* ─── Mobile Hero (App Dashboard Header) ─────────────────── */
    .hero {
        min-height: auto;
        padding: 100px 20px 40px; 
        border-radius: 0 0 36px 36px;
        box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
    }

    .hero-content {
        text-align: left;
        max-width: 100%;
        padding: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 20px;
    }

    .hero-description,
    .hero-glass-stats,
    .hero-stats,
    .hero-float,
    .hero-badge {
        display: none !important; /* Hide website-specific heavy desktop elements */
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0;
        gap: 12px;
        margin-bottom: 24px;
    }

    .hero-buttons .btn {
        width: auto;
        flex: 1;
        font-size: 14px;
        padding: 12px 10px;
    }

    /* ─── Mobile Category Pills ──────────────────────────────── */
    .hero-vehicles {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 0 !important;
        justify-content: flex-start !important;
    }
    
    .hero-vehicle-chip {
        background: rgba(255, 255, 255, 0.2) !important;
        color: white !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        backdrop-filter: blur(10px) !important;
        padding: 8px 16px !important;
        font-weight: 600 !important;
    }

    .hero-vehicle-chip i {
        color: white !important;
    }

    /* ─── Mobile Stats ───────────────────────────────────────── */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 20px 16px;
    }

    .stat-card .stat-value {
        font-size: 28px;
    }

    .stat-card .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    /* ─── Mobile Cards Grid ──────────────────────────────────── */
    .tours-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }

    .tour-card {
        border-radius: var(--radius-lg);
        box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    }

    .tour-card-image {
        height: 220px;
    }

    .tour-card-body {
        padding: 20px;
    }

    /* ─── Mobile Features Grid ───────────────────────────────── */
    .features-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 12px;
    }

    /* ─── Mobile Gallery ─────────────────────────────────────── */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-filters {
        gap: 6px;
        padding: 0;
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -20px 30px;
        padding: 0 20px;
    }

    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .gallery-filter-btn {
        flex-shrink: 0;
        padding: 8px 18px;
        font-size: 13px;
    }

    /* ─── Mobile Testimonials ────────────────────────────────── */
    .testimonial-content {
        padding: 28px 20px;
    }

    .testimonial-text {
        font-size: 15px;
    }

    .testimonial-content::before {
        font-size: 80px;
        top: -5px;
        left: 20px;
    }

    /* ─── Mobile Footer ──────────────────────────────────────── */
    .footer {
        padding-bottom: 80px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* ─── Mobile Contact Page ────────────────────────────────── */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-card {
        padding: 24px;
    }

    /* ─── Mobile About Page ──────────────────────────────────── */
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image img {
        height: 280px;
    }

    .about-text h2 {
        font-size: 28px;
    }

    /* ─── Mobile Page Header ─────────────────────────────────── */
    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    /* ─── Mobile Booking ─────────────────────────────────────── */
    .booking-form-card {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* ─── Mobile Section Spacing ─────────────────────────────── */
    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .section-badge {
        font-size: 12px;
        padding: 6px 14px;
    }

    /* ─── Mobile WhatsApp Button ─────────────────────────────── */
    .whatsapp-float {
        bottom: 80px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .scroll-top {
        bottom: 140px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* ─── Tour Detail Mobile ─────────────────────────────────── */
    .tour-detail-hero {
        height: 260px;
    }

    .tour-detail-grid {
        grid-template-columns: 1fr;
    }

    .tour-booking-card {
        position: static;
        margin-top: 24px;
    }

    .tour-highlights {
        grid-template-columns: 1fr;
    }

    /* ─── Mobile CTA ─────────────────────────────────────────── */
    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 15px;
    }

    /* ─── Pull-to-feel effect (touch feedback) ───────────────── */
    .tour-card:active,
    .feature-card:active,
    .contact-info-card:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }
}

/* Extra small mobiles */
@media (max-width: 380px) {
    .hero-title { font-size: 28px; }
    .stat-card .stat-value { font-size: 24px; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-stat { flex: 0 0 100%; }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    .nav-overlay {
        display: none !important;
    }
}
