/* Mobile-specific improvements */

/* Hamburger menu for mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2D5016;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

/* Mobile navigation overlay */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(45, 80, 22, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 200px;
}

.nav-mobile a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide desktop navigation */
    .nav-links {
        display: none;
    }
    
    /* Improve button sizes for touch */
    .btn {
        min-height: 48px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Improve form inputs for mobile */
    input, select, textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better spacing for mobile */
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Improve card layouts */
    .excursion-card {
        margin-bottom: 2rem;
    }
    
    /* Better hero section for mobile */
    .hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin: 1.5rem 0;
    }
    
    /* Improve weather widget for mobile */
    .weather-widget {
        margin: 1rem auto;
        max-width: 280px;
    }
    
    /* Better Instagram grid for mobile */
    .instagram-posts {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Improve footer for mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Better modal for mobile */
    .modal-content {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Improve navigation breadcrumbs */
    .breadcrumb {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    
    /* Better image galleries */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .weather-widget {
        max-width: 100%;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    /* Stack form elements */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Improve table responsiveness */
    table {
        font-size: 0.9rem;
    }
    
    /* Better spacing */
    section {
        padding: 2rem 0;
    }
}

/* Landscape orientation improvements */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .nav-mobile {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 2rem;
    }
    
    .nav-mobile a {
        font-size: 1.2rem;
        min-width: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images look crisp on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .weather-widget {
        background: linear-gradient(135deg, #1a365d, #2c5282);
    }
    
    .modal-content {
        background: #2d3748;
        color: white;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #4a5568;
        color: white;
        border-color: #718096;
    }
}

