/**
 * Mobile Responsive Styles
 * Comprehensive mobile and tablet optimization
 */

/* Base Mobile Adjustments */
@media (max-width: 992px) {
    /* Typography */
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    /* Containers */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Hero Section */
    .hero {
        min-height: 500px !important;
    }
    
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-content p {
        font-size: 1.2rem !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Sections */
    section {
        padding: 60px 20px !important;
    }
    
    /* Grid Layouts */
    .grid,
    .services-grid,
    .destinations-grid,
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Cards */
    .card,
    .destination-card,
    .service-card,
    .tour-card {
        margin-bottom: 20px;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 20px;
    }
    
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Buttons */
    .btn,
    .cta-btn,
    .submit-btn {
        padding: 12px 24px !important;
        font-size: 1rem !important;
        width: 100%;
        text-align: center;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center !important;
    }
}

/* Tablet Specific (768px - 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    .grid,
    .services-grid,
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .hero-content h1 {
        font-size: 3rem !important;
    }
    
    .hero-content p {
        font-size: 1.4rem !important;
    }
}

/* Mobile Specific (max-width: 768px) */
@media (max-width: 768px) {
    /* Hero */
    .hero {
        min-height: 400px !important;
    }
    
    .hero-content {
        padding: 0 1rem !important;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Sections */
    section {
        padding: 40px 15px !important;
    }
    
    /* About Section */
    .about-content {
        flex-direction: column !important;
    }
    
    .about-text,
    .about-image {
        width: 100% !important;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 20px !important;
    }
    
    .form-row {
        flex-direction: column !important;
    }
    
    .form-row .form-group {
        width: 100% !important;
    }
    
    /* Booking Form */
    .booking-form {
        padding: 20px !important;
    }
    
    .travelers-group {
        flex-direction: column !important;
    }
    
    .travelers-group > div {
        width: 100% !important;
    }
    
    /* Payment Methods */
    .payment-methods-grid {
        grid-template-columns: 1fr !important;
    }
    
    .payment-method-card {
        width: 100% !important;
    }
    
    /* Trust Badges */
    .trust-badges-wrapper {
        flex-direction: column !important;
    }
    
    .trust-badge-card {
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    /* Social Widgets */
    .social-widgets-grid {
        grid-template-columns: 1fr !important;
    }
    
    .social-widget-card {
        width: 100% !important;
    }
    
    /* Destinations Carousel */
    .destinations-track {
        flex-wrap: nowrap !important;
    }
    
    .destination-card {
        min-width: 280px !important;
        flex-shrink: 0;
    }
    
    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Modals */
    .modal-content {
        width: 95% !important;
        margin: 20px auto !important;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    /* Typography */
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* Hero */
    .hero {
        min-height: 350px !important;
    }
    
    .hero-content h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-content p {
        font-size: 0.95rem !important;
    }
    
    /* Sections */
    section {
        padding: 30px 15px !important;
    }
    
    /* Buttons */
    .btn,
    .cta-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
    
    /* Cards */
    .card,
    .destination-card,
    .service-card {
        padding: 15px !important;
    }
    
    /* Forms */
    .form-group label {
        font-size: 0.9rem;
    }
    
    input,
    textarea,
    select {
        padding: 10px !important;
        font-size: 14px !important;
    }
    
    /* Footer */
    .footer {
        padding: 30px 15px !important;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem !important;
    }
    
    /* Social Icons */
    .social-icon-img {
        width: 35px !important;
        height: 35px !important;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh !important;
    }
    
    .mobile-nav {
        padding: 10px !important;
    }
    
    .mobile-nav-links a {
        padding: 10px 15px !important;
        font-size: 0.95em !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    a,
    button,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .nav-links > a:hover,
    .dropdown-item:hover,
    .btn:hover {
        transform: none !important;
    }
    
    /* Add active states for touch */
    .nav-links > a:active,
    .btn:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* Print Styles */
@media print {
    .header,
    .mobile-nav,
    .mobile-overlay,
    .menu-btn,
    .whatsapp-widget,
    .chatbot-container,
    .footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

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