/* 
   Mobile Responsive Enhancements
   Optimized for all mobile devices and tablets
*/

/* ===== MOBILE-FIRST BASE IMPROVEMENTS ===== */
@media screen and (max-width: 1024px) {
    /* Tablet optimizations */
    .container {
        width: 95%;
        padding: 0 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

/* ===== MOBILE LANDSCAPE (768px - 991px) ===== */
@media screen and (max-width: 991px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 70vh;
        padding: 100px 1rem 50px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 1rem;
    }
}

/* ===== MOBILE PORTRAIT & GENERAL (max-width: 768px) ===== */
@media screen and (max-width: 768px) {
    /* Typography improvements */
    html {
        font-size: 15px;
    }
    
    body {
        overflow-x: hidden;
    }
    
    /* Header mobile improvements */
    #header {
        padding: 0.5rem 0;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.98);
    }
    
    nav {
        padding: 0.3rem 0;
    }
    
    nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Ensure logo section doesn't overflow */
    .logo-section {
        flex: 1;
        min-width: 0; /* Allow flex item to shrink */
    }
    
    /* Logo section improvements */
    .logo-section {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: auto;
    }
    
    .main-logo {
        text-align: center;
    }
    
    .main-logo img {
        max-height: 50px;
    }
    
    /* Hide certification logos in header on mobile */
    .certification-logos {
        display: none !important;
    }
    
    .cert-logo {
        display: none !important;
    }
    
    /* ===== MODERN HAMBURGER MENU ===== */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 40px;
        height: 40px;
        padding: 8px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1002;
        position: relative;
        transition: var(--transition);
    }
    
    .hamburger-line {
        width: 100%;
        height: 3px;
        background-color: var(--castleton-green);
        border-radius: 3px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    /* Hamburger to X animation */
    .menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* ===== MOBILE MENU OVERLAY ===== */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    /* ===== MOBILE NAVIGATION MENU ===== */
    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        flex-direction: column;
        gap: 0;
        padding: 0;
        overflow-y: auto;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1001;
    }
    
    .navigation.active {
        right: 0;
    }
    
    /* ===== MOBILE MENU HEADER ===== */
    .mobile-menu-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 1.5rem;
        background: linear-gradient(135deg, var(--castleton-green) 0%, var(--castleton-green-dark) 100%);
        border-bottom: none;
        position: sticky;
        top: 0;
        z-index: 10;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu-logo {
        flex: 1;
    }
    
    .mobile-menu-logo img {
        max-height: 45px;
        width: auto;
        filter: brightness(0) invert(1);
    }
    
    .mobile-menu-close {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }
    
    .mobile-menu-close:active {
        transform: rotate(90deg) scale(0.9);
    }
    
    /* Hide mobile menu header on desktop */
    @media screen and (min-width: 769px) {
        .mobile-menu-header {
            display: none !important;
        }
    }
    
    /* ===== MOBILE MENU ITEMS ===== */
    .navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 93, 72, 0.1);
        animation: slideInRight 0.3s ease forwards;
        opacity: 0;
    }
    
    .navigation.active li {
        animation: slideInRight 0.4s ease forwards;
    }
    
    .navigation.active li:nth-child(2) { animation-delay: 0.1s; }
    .navigation.active li:nth-child(3) { animation-delay: 0.15s; }
    .navigation.active li:nth-child(4) { animation-delay: 0.2s; }
    .navigation.active li:nth-child(5) { animation-delay: 0.25s; }
    .navigation.active li:nth-child(6) { animation-delay: 0.3s; }
    
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .navigation a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.2rem 1.5rem;
        font-size: 1.05rem;
        font-weight: 500;
        width: 100%;
        color: var(--gray-dark);
        transition: all 0.3s ease;
        position: relative;
    }
    
    .navigation a i {
        font-size: 1.2rem;
        color: var(--castleton-green);
        width: 24px;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .navigation a:hover,
    .navigation a.active {
        background: linear-gradient(90deg, rgba(0, 93, 72, 0.08) 0%, transparent 100%);
        color: var(--castleton-green);
        padding-left: 2rem;
    }
    
    .navigation a:hover i,
    .navigation a.active i {
        transform: scale(1.2);
    }
    
    .navigation a.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background: var(--castleton-green);
    }
    
    /* ===== MOBILE MENU CTA BUTTON ===== */
    .mobile-menu-cta {
        margin-top: auto;
        border-bottom: none !important;
        padding: 1.5rem;
        background: linear-gradient(135deg, rgba(0, 93, 72, 0.05) 0%, rgba(0, 93, 72, 0.02) 100%);
    }
    
    .mobile-menu-cta .btn-primary {
        width: 100%;
        padding: 1.2rem;
        font-size: 1.1rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 93, 72, 0.3);
        background: linear-gradient(135deg, var(--castleton-green) 0%, var(--castleton-green-dark) 100%);
        border: none;
    }
    
    .mobile-menu-cta .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 93, 72, 0.4);
        background: linear-gradient(135deg, var(--castleton-green-dark) 0%, var(--castleton-green) 100%);
    }
    
    .mobile-menu-cta .btn-primary:active {
        transform: translateY(0);
    }
    
    .mobile-menu-cta .btn-primary i {
        color: white;
        font-size: 1.2rem;
    }
    
    /* Hero section mobile */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 1rem 80px; /* Reduced top padding since header is smaller */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
        font-weight: 700;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    }
    
    .brand-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
        font-style: italic;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Search form mobile */
    .search-form {
        padding: 1.5rem 1rem;
        margin-top: 1.5rem;
        margin-bottom: 3rem; /* Add bottom margin */
        border-radius: 12px;
        z-index: 10; /* Ensure it stays on top */
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .search-form h3 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
        color: var(--castleton-green);
        font-weight: 600;
    }
    
    .search-fields {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-group {
        width: 100%;
    }
    
    .search-group label {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--gray-dark);
    }
    
    .search-group input,
    .search-group select {
        padding: 0.9rem;
        font-size: 1rem;
        width: 100%;
        border-radius: 8px;
    }
    
    .search-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 8px;
        font-weight: 600;
    }
    
    /* Sections mobile */
    section {
        padding: 3rem 0;
    }
    
    /* Add padding to last sections to account for cert bar */
    section:last-of-type {
        padding-bottom: 6rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        padding: 0 0.5rem;
    }
    
    .section-header p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Destination/Package grids mobile */
    .destination-grid,
    .package-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }
    
    /* Improved Destination Cards Mobile */
    .destination-card {
        display: flex;
        flex-direction: column;
        background: white;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        transition: all 0.3s ease;
    }
    
    .destination-card:active {
        transform: scale(0.98);
    }
    
    .destination-image-wrapper {
        position: relative;
        width: 100%;
        height: 280px;
        overflow: hidden;
    }
    
    .destination-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }
    
    .destination-card:active .destination-image {
        transform: scale(1.05);
    }
    
    .destination-placeholder {
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(0, 93, 72, 0.1) 0%, rgba(0, 93, 72, 0.05) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .placeholder-content {
        text-align: center;
        color: var(--castleton-green);
    }
    
    .placeholder-content i {
        font-size: 3rem;
        margin-bottom: 0.8rem;
        opacity: 0.6;
    }
    
    .placeholder-content h4 {
        font-size: 1.2rem;
        font-weight: 600;
        opacity: 0.7;
    }
    
    .destination-overlay {
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--castleton-green);
        font-size: 1.2rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        opacity: 0.9;
    }
    
    .destination-info {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .destination-info h3 {
        font-size: 1.4rem;
        color: var(--gray-dark);
        font-weight: 700;
        margin: 0;
        line-height: 1.3;
    }
    
    .destination-description {
        font-size: 0.95rem;
        color: #666;
        line-height: 1.6;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .destination-meta {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        margin-top: 0.5rem;
    }
    
    .destination-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: linear-gradient(135deg, rgba(0, 93, 72, 0.1) 0%, rgba(0, 93, 72, 0.05) 100%);
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--castleton-green);
    }
    
    .destination-badge i {
        font-size: 0.9rem;
    }
    
    /* Service tabs mobile */
    .service-tabs-section {
        padding: 2rem 0; /* Increase padding */
        margin-top: 2rem; /* Add top margin */
        position: relative;
        z-index: 1; /* Lower than search form */
    }
    
    .service-tabs {
        flex-direction: column;
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .tab {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        padding: 1rem 1.5rem;
        min-width: auto;
    }
    
    .tab i {
        margin-bottom: 0;
        margin-right: 1rem;
        font-size: 1.5rem;
    }
    
    .tab span {
        font-size: 0.9rem;
        text-align: left;
    }
    
    .tab-panel {
        padding: 2rem 1.5rem;
    }
    
    .tab-panel h3 {
        font-size: 1.6rem;
    }
    
    .tab-panel p {
        font-size: 1rem;
    }
    
    .additional-services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .service-item i {
        font-size: 2.2rem;
    }
    
    .service-item h4 {
        font-size: 1.1rem;
    }
    
    /* Testimonials mobile */
    .testimonials-container {
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .testimonial {
        min-width: 280px;
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    /* Video gallery mobile */
    .video-gallery {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .video-scroll-track {
        padding: 1rem 0.5rem;
        gap: 1rem;
    }
    
    .video-item {
        flex: 0 0 260px;
        min-width: 260px;
    }
    
    .video-item video {
        height: 360px;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-info h4 {
        font-size: 1rem;
    }
    
    .video-info p {
        font-size: 0.85rem;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-column {
        width: 100%;
    }
    
    .footer-column ul {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .social-icons {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .footer-certifications {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .certification-badge {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem 0;
    }
    
    /* Booking form mobile */
    .booking-form,
    .comprehensive-booking-form {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .form-section h3 {
        font-size: 1.3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 1rem;
    }
    
    .checkbox-label {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions button {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Modal mobile */
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    /* WhatsApp button mobile */
    .whatsapp-chat {
        bottom: 90px; /* Move up to avoid cert bar */
        right: 20px;
    }
    
    .whatsapp-chat a {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
    
    /* Scroll to top mobile */
    .scroll-to-top {
        bottom: 155px; /* Move up to avoid cert bar and WhatsApp */
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* IATA overlay mobile */
    .iata-left-overlay {
        display: none !important; /* Completely hide on mobile - now shown in bottom bar */
    }
    
    /* Remove old certification logos styles from header */
    .certification-logos {
        display: none !important;
    }
    
    .cert-logo {
        display: none !important;
    }
    
    /* Page banner mobile */
    .page-banner {
        height: 40vh;
        min-height: 300px;
        padding-top: 80px;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    /* Touch-friendly improvements */
    button,
    .btn-primary,
    .btn-secondary,
    a {
        min-height: 44px; /* iOS recommended touch target */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent text selection on buttons */
    button,
    .btn-primary,
    .btn-secondary {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
}

/* ===== SMALL MOBILE (max-width: 576px) ===== */
@media screen and (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .container {
        width: 100%;
        padding: 0 0.8rem;
    }
    
    /* Header extra small */
    #header {
        padding: 0.4rem 0;
    }
    
    .logo-section {
        gap: 0.4rem;
    }
    
    .main-logo img {
        max-height: 45px;
    }
    
    .cert-logo {
        height: 25px !important;
    }
    
    .menu-toggle {
        font-size: 1.6rem;
        padding: 0.3rem;
    }
    
    /* Hero extra small */
    .hero {
        padding: 90px 0.8rem 60px; /* Reduced top padding */
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 0 0.3rem;
    }
    
    .hero h1 {
        font-size: 1.7rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    }
    
    .hero p {
        font-size: 0.95rem;
        line-height: 1.4;
        text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9);
    }
    
    .brand-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    /* Search form extra small */
    .search-form {
        padding: 1.2rem 0.8rem;
        margin-top: 1rem;
        max-width: 98%;
    }
    
    .search-form h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .search-group label {
        font-size: 0.9rem;
    }
    
    .search-group input,
    .search-group select {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .search-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    /* Sections extra small */
    section {
        padding: 2.5rem 0;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    /* Cards extra small */
    .destination-card img,
    .package-image img {
        height: 200px;
    }
    
    .destination-placeholder {
        height: 200px;
    }
    
    .placeholder-content i {
        font-size: 2.5rem;
    }
    
    .placeholder-content h4 {
        font-size: 1.3rem;
    }
    
    /* Service tabs extra small */
    .tab {
        padding: 0.9rem 1.2rem;
    }
    
    .tab i {
        font-size: 1.3rem;
    }
    
    .tab span {
        font-size: 0.85rem;
    }
    
    .tab-panel {
        padding: 1.5rem 1rem;
    }
    
    .tab-panel h3 {
        font-size: 1.4rem;
    }
    
    .tab-panel p {
        font-size: 0.95rem;
    }
    
    /* Video gallery extra small */
    .video-item {
        flex: 0 0 220px;
        min-width: 220px;
    }
    
    .video-item video {
        height: 320px;
    }
    
    .video-info {
        padding: 0.8rem;
    }
    
    .video-info h4 {
        font-size: 0.95rem;
    }
    
    .video-info p {
        font-size: 0.8rem;
    }
    
    /* Testimonials extra small */
    .testimonial {
        min-width: 260px;
        padding: 1.2rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    /* Footer extra small */
    .footer-content {
        gap: 2rem;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Booking form extra small */
    .form-section {
        padding: 1.2rem;
    }
    
    .form-section h3 {
        font-size: 1.2rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .checkbox-label {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* WhatsApp button extra small */
    .whatsapp-chat a {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    /* Scroll to top extra small */
    .scroll-to-top {
        bottom: 150px; /* Adjust for cert bar */
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Page banner extra small */
    .page-banner {
        height: 35vh;
        min-height: 250px;
    }
    
    .page-banner h1 {
        font-size: 1.6rem;
    }
}

/* ===== EXTRA SMALL MOBILE (max-width: 375px) ===== */
@media screen and (max-width: 375px) {
    html {
        font-size: 13px;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .navigation {
        width: 90%;
    }
    
    .video-item {
        flex: 0 0 200px;
        min-width: 200px;
    }
    
    .video-item video {
        height: 300px;
    }
}

/* ===== LANDSCAPE ORIENTATION FIXES ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 1rem 50px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .navigation {
        padding: 60px 0 1rem;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .destination-card:hover,
    .package-card:hover,
    .service-card:hover {
        transform: none;
    }
    
    /* Add active states for touch */
    .destination-card:active,
    .package-card:active,
    .service-card:active {
        transform: scale(0.98);
    }
    
    button:active,
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.95);
    }
    
    /* Improve touch scrolling */
    .video-scroll-track,
    .testimonials-container {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== HIGH DPI SCREENS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images for retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}
