
/*
   Safari Plug Safaris - Mobile Responsive Styles
   Enhanced mobile responsive design for optimal viewing on all devices
*/

/* General Container Adjustments for Mobile */
@media (max-width: 992px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Mobile Menu - Triggered typically below 992px or 768px */
@media (max-width: 991.98px) { /* Common Bootstrap breakpoint, adjust if needed */
    .menu-toggle {
        display: flex; /* Use flex to align icon properly if needed */
        align-items: center;
        justify-content: center;
        font-size: 1.6rem; /* Slightly larger tap target */
        cursor: pointer;
        z-index: 1001; /* Above nav */
        padding: 5px; /* Add some padding */
    }

    header nav { /* The nav element itself */
        position: fixed;
        top: 0; /* Align to top */
        left: -100%; /* Start off-screen */
        width: 80%; /* Or a fixed width like 280px */
        max-width: 300px;
        height: 100vh; /* Full viewport height */
        background-color: var(--header-bg); /* Use theme variable */
        z-index: 1000; /* Below menu-toggle icon but above content */
        padding: 60px 20px 20px; /* Add top padding for close button or branding */
        overflow-y: auto;
        transition: left 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition */
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.15);
    }

    header nav.active {
        left: 0; /* Slide in */
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start; /* Align links to the left */
    }

    header nav ul li {
        margin: 0 0 10px 0; /* Remove left margin, add bottom margin */
        width: 100%; /* Make list items full width */
    }

    header nav ul li a {
        display: block; /* Make links block elements for full-width tap target */
        padding: 12px 15px; /* Generous padding */
        font-size: 1.1rem; /* Slightly larger font */
        border-bottom: 1px solid var(--border-color); /* Separator */
        width: 100%;
    }
    header nav ul li:last-child a {
        border-bottom: none;
    }
    header nav ul li a::after { /* Hide underline effect in mobile nav */
        display: none;
    }
    header nav ul li a.active {
        background-color: rgba(240, 129, 15, 0.1); /* Subtle highlight for active link */
        border-radius: 4px;
    }


    /* Mobile Overlay (defined inline in head.ejs, can be controlled via JS) */
    /* .mobile-overlay.active is handled by JS */
}


/* Header adjustments on smaller screens */
@media (max-width: 768px) {
    header {
        padding: 12px 0; /* Slightly reduced padding */
    }
    .logo a {
        /* Font size for logo text handled by logo-fix.css */
    }
    .logo img.main-logo {
        max-height: 30px; /* Adjust logo size */
    }
    .nav-right {
        gap: 15px; /* Adjust gap for theme toggle and menu icon */
    }
}


/* Hero Section adjustments */
@media (max-width: 992px) {
    .hero {
        height: 75vh; /* Reduce height */
    }
    .hero h1 {
        font-size: 2.8rem; /* Adjust font size */
    }
    .hero p {
        font-size: 1.15rem;
    }
}
@media (max-width: 768px) {
    .hero {
        height: auto; /* Auto height based on content */
        min-height: 60vh;
        padding: 80px 0; /* Add padding */
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px; /* Max width for buttons */
    }
}

/* Section Heading adjustments */
@media (max-width: 768px) {
    .section-heading h2 {
        font-size: 2rem;
    }
    .section-heading p {
        font-size: 1rem;
    }
}

/* Grid Layouts (2-column to 1-column) */
@media (max-width: 991.98px) { /* Target common 2-column layouts */
    .about-content,
    .mission-vision .container, /* Assuming .container is direct child for this grid */
    .contact-content {
        grid-template-columns: 1fr; /* Stack columns */
    }
    .about-text { order: 1; } /* Ensure text can be ordered if needed */
    .about-mission { order: 2; margin-top: 30px; }

    .contact-info {
        margin-bottom: 30px; /* Add space when stacked */
    }
}

/* Packages & Destinations Grid */
@media (max-width: 767.98px) {
    .packages-grid, .destinations-grid, .team-grid, .testimonial-slider {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Ensure cards don't get too small */
    }
}
@media (max-width: 480px) { /* For very small screens, force 1 column */
    .packages-grid, .destinations-grid, .team-grid, .testimonial-slider {
        grid-template-columns: 1fr;
    }
}


/* Footer adjustments */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* Stack footer columns */
        gap: 30px; /* Adjust gap */
        text-align: center; /* Center align text in footer columns */
    }
    .footer-about h3::after,
    .footer-links h3::after,
    .footer-contact h3::after,
    .footer-newsletter h3::after {
        margin-left: auto; /* Center separator */
        margin-right: auto;
    }
    .social-links {
        justify-content: center; /* Center social links */
    }
    .footer-contact ul li {
        justify-content: center; /* Center contact items if text is centered */
        text-align: left; /* Keep text within item left-aligned */
        align-items: center;
    }
    .footer-contact ul li i {
        margin-top: 0; /* Reset margin-top for centered icon */
    }
    .footer-newsletter form {
        /* flex-direction: column; /* Stack newsletter input and button */
        /* gap: 10px; */
        /* Styles for stacked form are now handled by .newsletter-form-container directly if needed */
    }
    .footer-newsletter .newsletter-form-container { /* Target the inner container for stacking */
        flex-direction: column;
        gap: 10px;
        border: none; /* Remove border from container if elements are stacked */
    }

    .footer-newsletter input[type="email"],
    .footer-newsletter button[type="submit"] {
        width: 100%;
        max-width: 320px; /* Max width for form elements */
        margin-left: auto;
        margin-right: auto;
    }
    .footer-newsletter input[type="email"] {
        border-radius: 4px !important; /* Override original split radius */
        border: 1px solid var(--border-color) !important; /* Add back border if container loses it */
    }
    [data-theme="dark"] .footer-newsletter input[type="email"] {
         border: 1px solid var(--border-color) !important;
    }
    .footer-newsletter button[type="submit"] {
        border-radius: 4px !important;
        border: 1px solid var(--primary) !important; /* Ensure button border is visible */
    }

}

/* Modal adjustments on mobile (inline styles in head.ejs might need !important or more specific selectors if overridden) */
@media (max-width: 768px) {
    /* .modal-content defined inline, this would be an override if needed */
    /* For example:
    .modal-content {
        width: 95% !important;
        margin: 20px auto !important;
        max-height: 85vh !important;
    }
    .modal-header h2 { font-size: 1.3rem; }
    .modal-body { padding: 15px; }
    .destination-modal-image { height: 180px; }
    */
}


/* Contact Form Rows */
@media (max-width: 767.98px) {
    .form-row { /* Defined inline in head.ejs */
        grid-template-columns: 1fr !important; /* Force single column for form rows */
    }
}


/* Page Banner text size */
@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 2.2rem;
    }
    .breadcrumb {
        font-size: 0.9rem;
    }
}
