/* ========================================
   MOBILE RESPONSIVE ENHANCEMENTS
   ======================================== */

/* ========== ENHANCED MOBILE BREAKPOINTS ========== */

/* Tablets and below (992px) */
@media (max-width: 992px) {
    /* Container padding */
    .container {
        padding: 0 1.5rem;
    }
    
    /* Grid layouts */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Form improvements */
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    /* Page banner */
    .page-banner-content h1 {
        font-size: 2.5rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1.5rem;
    }
    
    /* Inline styles override */
    div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile devices (768px) */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }
    
    h3 {
        font-size: 1.4rem !important;
    }
    
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0 !important;
    }
    
    /* All grids to single column */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Page banner */
    .page-banner {
        height: 300px;
    }
    
    .page-banner-content h1 {
        font-size: 2rem;
    }
    
    .page-banner-content p {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Hero section */
    .hero {
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    /* Quick booking/contact cards */
    div[style*="display: flex"][style*="gap: 2rem"] {
        gap: 1rem !important;
    }
    
    /* Stats section */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* CTA Section */
    .cta-content {
        padding: 2rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem !important;
    }
    
    .cta-content p {
        font-size: 1rem !important;
    }
    
    /* About page - What We Do Best */
    .grid-2[style*="align-items: center"] > div[style*="order: 1"],
    .grid-2[style*="align-items: center"] > div[style*="order: 2"] {
        order: 0 !important;
    }
    
    /* Image heights */
    img[style*="height: 400px"] {
        height: 250px !important;
    }
    
    /* Padding overrides for mobile */
    div[style*="padding: 2.5rem"] {
        padding: 1.5rem !important;
    }
    
    /* Thank you page */
    div[style*="width: 120px; height: 120px"] {
        width: 100px !important;
        height: 100px !important;
    }
    
    div[style*="width: 120px; height: 120px"] i {
        font-size: 3rem !important;
    }
}

/* Small mobile devices (480px) */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.6rem !important;
    }
    
    h2 {
        font-size: 1.4rem !important;
    }
    
    h3 {
        font-size: 1.2rem !important;
    }
    
    /* Container */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0 !important;
    }
    
    /* Page banner */
    .page-banner {
        height: 250px;
    }
    
    .page-banner-content h1 {
        font-size: 1.6rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Hero */
    .hero {
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem !important;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    /* Icon sizes */
    div[style*="width: 70px; height: 70px"] {
        width: 60px !important;
        height: 60px !important;
    }
    
    div[style*="width: 70px; height: 70px"] i {
        font-size: 1.5rem !important;
    }
    
    div[style*="width: 55px; height: 55px"] {
        width: 45px !important;
        height: 45px !important;
    }
    
    div[style*="width: 50px; height: 50px"] {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Stats grid - single column on very small screens */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Logo */
    .logo span {
        font-size: 1.1rem;
    }
    
    .logo i {
        font-size: 1.3rem;
    }
    
    /* Social links */
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* WhatsApp float */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    /* Scroll to top */
    .scroll-top {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
    
    /* Font size adjustments */
    p {
        font-size: 0.95rem;
    }
    
    /* Image heights */
    img[style*="height: 400px"],
    img[style*="height: 250px"] {
        height: 200px !important;
    }
    
    /* Padding reductions */
    div[style*="padding: 2rem"] {
        padding: 1rem !important;
    }
    
    div[style*="padding: 1.5rem"] {
        padding: 1rem !important;
    }
    
    /* Gap reductions */
    div[style*="gap: 1.5rem"] {
        gap: 1rem !important;
    }
    
    div[style*="gap: 2rem"] {
        gap: 1rem !important;
    }
}

/* ========== SPECIFIC PAGE FIXES ========== */

/* Contact & Booking Forms */
@media (max-width: 768px) {
    /* Form grid layouts */
    form div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Form labels */
    .form-label {
        font-size: 0.9rem;
    }
    
    /* reCAPTCHA */
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: 0 0;
    }
}

@media (max-width: 480px) {
    /* reCAPTCHA smaller */
    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: 0 0;
    }
}

/* Things To Do Page */
@media (max-width: 992px) {
    /* Activity cards layout */
    .activity-card {
        margin-bottom: 2rem;
    }
    
    /* Booking sidebar */
    .quick-booking {
        position: relative !important;
        top: 0 !important;
    }
}

/* About Page - What We Do Best Section */
@media (max-width: 768px) {
    /* Reset order for mobile */
    div[class*="grid-2"] > div {
        order: 0 !important;
    }
}

/* Safari Cards */
@media (max-width: 768px) {
    .safari-card {
        margin-bottom: 1.5rem;
    }
}

/* Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========== UTILITY OVERRIDES ========== */
@media (max-width: 768px) {
    /* Text alignment on mobile */
    .section-header {
        text-align: center !important;
    }
    
    /* Full width buttons on mobile */
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Flex direction changes */
    div[style*="display: flex"][style*="flex-wrap: wrap"] {
        flex-direction: column;
    }
}

/* ========== LANDSCAPE MOBILE FIX ========== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .page-banner {
        height: 100vh;
    }
}

/* ========== PREVENT HORIZONTAL SCROLL ========== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    
    .container {
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
    }
}
