/* Mobile-First UX Enhancements CSS */

/* === CRITICAL MOBILE OPTIMIZATIONS === */

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    width: 100%;

/* Enhanced Touch Targets */
a, button, input, select, textarea {
    min-height: 44px;
    min-width: 44px;
}

/* Improved Text Readability */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
        padding-top: 70px; /* Account for smaller fixed navbar */
    }

    /* === MOBILE NAVIGATION IMPROVEMENTS === */
    .navbar {
        height: 70px;
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 1rem;
        min-height: 70px;
    }

    .nav-brand .brand-name {
        font-size: 1.2rem;
    }

    .nav-brand .brand-tagline {
        font-size: 0.75rem;
        display: none; /* Hide on very small screens */
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    /* Enhanced Mobile Menu */
    .mobile-menu-toggle {
        display: flex !important;
        padding: 8px;
        margin-left: auto;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .mobile-nav.active {
        transform: translateX(0);
    }

    .mobile-nav-content {
        background: white;
        width: 85%;
        height: 100%;
        padding: 2rem 1.5rem;
        overflow-y: auto;
    }

    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #f0f0f0;
    }

    .mobile-nav-close {
        background: #ff6b35;
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-links li {
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        padding: 1rem 0;
        color: #333;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .mobile-nav-link:hover {
        color: #ff6b35;
    }

    .mobile-nav-link i {
        margin-right: 1rem;
        width: 20px;
        color: #ff6b35;
    }

    /* === HERO SECTION MOBILE === */
    .hero {
        height: 70vh;
        min-height: 500px;
    }

    .hero-text {
        padding: 0 1.5rem;
        max-width: 90%;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
        border-radius: 25px;
        min-height: 48px;
    }

    /* === CARDS AND CONTENT === */
    .destination-grid,
    .feature-grid,
    .experience-grid,
    .blog-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .destination-card,
    .experience-card,
    .preview-post {
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        margin-bottom: 1.5rem;
    }

    .destination-card:hover,
    .experience-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

    .destination-card img,
    .experience-card img {
        height: 200px;
        object-fit: cover;
    }

    .destination-card h3,
    .experience-card h3 {
        font-size: 1.25rem;
        padding: 1rem;
        margin: 0;
    }

    .destination-card p,
    .experience-card p {
        padding: 0 1rem 1rem;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* === IMPROVED BUTTONS === */
    .card-actions {
        padding: 0 1rem 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .card-link,
    .secondary-button,
    .mobile-book-btn {
        padding: 12px 20px;
        text-align: center;
        border-radius: 25px;
        font-weight: 600;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .card-link {
        background: #ff6b35;
        color: white;
    }

    .secondary-button {
        background: transparent;
        color: #ff6b35;
        border: 2px solid #ff6b35;
    }

    .card-link:hover,
    .secondary-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }

    /* === SECTIONS SPACING === */
    section {
        padding: 3rem 1rem;
    }

    section h2 {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    section p {
        text-align: center;
        margin-bottom: 2rem;
        font-size: 1rem;
        line-height: 1.6;
        color: #666;
    }

    /* === FOOTER MOBILE === */
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-links {
        list-style: none;
        padding: 0;
    }

    .footer-links li {
        margin: 0.5rem 0;
    }

    .footer-links a {
        font-size: 0.95rem;
        color: #ccc;
    }

    .contact-items {
        text-align: center;
    }

    .contact-item {
        margin: 1rem 0;
    }

    .social-links {
        justify-content: center;
        gap: 1rem;
        margin: 1rem 0;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    /* === FORMS MOBILE === */
    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        display: block;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
        border: 2px solid #ddd;
        border-radius: 8px;
        min-height: 48px;
    }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

    /* === ACCESSIBILITY IMPROVEMENTS === */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 6px;
        background: #ff6b35;
        color: white;
        padding: 8px;
        text-decoration: none;
        border-radius: 4px;
        z-index: 10000;
    }

    .skip-link:focus {
        top: 6px;
    }

    /* === LOADING STATES === */
    .loading-skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
        border-radius: 8px;
    }

    @keyframes loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
}

/* === TABLET OPTIMIZATIONS === */
@media (min-width: 769px) and (max-width: 1024px) {
    .destination-grid,
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

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

    .nav-brand .brand-tagline {
        font-size: 0.8rem;
    }
}

/* === SMALL MOBILE (< 480px) === */
@media (max-width: 480px) {
    body {
        font-size: 14px;
        padding-top: 65px;
    }

    .navbar {
        height: 65px;
    }

    .nav-container {
        min-height: 65px;
        padding: 0 0.75rem;
    }

    .nav-brand .brand-name {
        font-size: 1rem;
    }

    .nav-brand .brand-tagline {
        display: none;
    }

    .logo-img {
        width: 30px;
        height: 30px;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

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

    .hero-text p {
        font-size: 0.9rem;
    }

    section {
        padding: 2rem 0.75rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .mobile-nav-content {
        width: 90%;
        padding: 1.5rem 1rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.mobile-btn:active {
    transform: scale(0.98);
}

    /* Swipeable Gallery */
    .mobile-gallery {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        display: flex;
        gap: 15px;
        padding: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-gallery-item {
        flex: 0 0 280px;
        scroll-snap-align: center;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    /* Bottom Sheet UI */
    .bottom-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 20px 20px 0 0;
        padding: 20px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .bottom-sheet.active {
        transform: translateY(0);
    }

    .bottom-sheet-handle {
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 0 auto 20px;
    }

    /* Mobile Typography */
    .mobile-heading {
        font-size: clamp(24px, 5vw, 32px);
        line-height: 1.2;
        margin-bottom: 15px;
        text-align: center;
    }

    .mobile-text {
        font-size: 16px;
        line-height: 1.6;
        color: #555;
        text-align: left;
    }

    /* Mobile Forms */
    .mobile-form-group {
        margin-bottom: 20px;
    }

    .mobile-input {
        width: 100%;
        padding: 15px;
        font-size: 16px;
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        background: #f9f9f9;
        transition: all 0.3s ease;
    }

    .mobile-input:focus {
        border-color: #ff6b35;
        background: white;
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    }

    /* Pull to Refresh */
    .pull-to-refresh {
        position: relative;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pull-to-refresh::before {
        content: '';
        position: absolute;
        top: -50px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 30px;
        border: 3px solid #ff6b35;
        border-top: 3px solid transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .pull-to-refresh.refreshing::before {
        opacity: 1;
    }

    /* Mobile Search */
    .mobile-search {
        position: relative;
        margin: 20px;
    }

    .mobile-search-input {
        width: 100%;
        padding: 15px 50px 15px 20px;
        font-size: 16px;
        border: none;
        border-radius: 25px;
        background: #f5f5f5;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .mobile-search-icon {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
    }

    /* Floating Action Button */
    .fab {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ff6b35, #f7931e);
        border: none;
        color: white;
        font-size: 24px;
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
        z-index: 1000;
        transition: all 0.3s ease;
    }

    .fab:hover {
        transform: scale(1.1);
        box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
    }

    /* Mobile Tabs */
    .mobile-tabs {
        display: flex;
        background: white;
        border-radius: 15px;
        margin: 20px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .mobile-tab {
        flex: 1;
        padding: 15px 10px;
        text-align: center;
        background: transparent;
        border: none;
        font-size: 14px;
        font-weight: 600;
        color: #666;
        transition: all 0.3s ease;
    }

    .mobile-tab.active {
        background: linear-gradient(135deg, #ff6b35, #f7931e);
        color: white;
    }

    /* Loading States */
    .mobile-skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
        border-radius: 8px;
        height: 20px;
        margin: 10px 0;
    }

    @keyframes loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    /* Touch Feedback */
    .touch-feedback {
        position: relative;
        overflow: hidden;
    }

    .touch-feedback::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.6);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .touch-feedback:active::before {
        width: 300px;
        height: 300px;
    }
}

/* === ACCESSIBILITY IMPROVEMENTS === */
/* High Contrast Mode */
@media (prefers-contrast: high) {
    .tour-card, .package-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .tour-card, .package-card {
        background: #2d2d2d;
        border: 1px solid #404040;
    }
    
    .mobile-input {
        background: #2d2d2d;
        color: #e0e0e0;
        border-color: #404040;
    }
}

/* === PROGRESSIVE WEB APP STYLES === */
.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1001;
}

.pwa-install-prompt.show {
    transform: translateY(0);
    opacity: 1;
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pwa-install-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #667eea;
}

.pwa-install-text {
    flex: 1;
}

.pwa-install-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.pwa-install-description {
    font-size: 14px;
    opacity: 0.9;
}

.pwa-install-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.pwa-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pwa-btn-primary {
    background: white;
    color: #667eea;
}

.pwa-btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* === PERFORMANCE OPTIMIZATIONS === */
/* Image Loading */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Critical CSS Above the Fold */
.above-fold {
    contain: layout style paint;
}

/* GPU Acceleration */
.gpu-accelerated {
    will-change: transform;
    transform: translateZ(0);
}

/* === MICRO-INTERACTIONS === */
.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 0.8; }
    70% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

.slide-up {
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fade-in-delayed {
    animation: fadeInDelayed 0.8s ease-out 0.2s both;
}

@keyframes fadeInDelayed {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === HAPTIC FEEDBACK SIMULATION === */
.haptic-light {
    animation: hapticLight 0.1s ease-out;
}

@keyframes hapticLight {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.haptic-medium {
    animation: hapticMedium 0.15s ease-out;
}

@keyframes hapticMedium {
    0% { transform: scale(1); }
    25% { transform: scale(0.95); }
    75% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
