/* ============================================
   Modern Mobile Navbar Enhancements
   ============================================ */

/* Fix horizontal scroll on mobile - minimal approach */
html, body {
    overflow-x: hidden;
}

#page {
    overflow-x: hidden;
}

/* Prevent horizontal scroll when menu is open */
@media (max-width: 991.98px) {
    body.menu-open,
    html.menu-open {
        overflow-x: hidden;
    }
}

/* Standard Mobile Menu Block */
@media (max-width: 991.98px) {
    /* Prevent body scroll when menu is open */
    body:has(.menu-block.active) {
        overflow-x: hidden !important;
    }

    .menu-block {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        max-width: 85vw;
        background: #ffffff;
        z-index: 999;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        overflow-y: auto;
        overflow-x: hidden;
        height: 100vh;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

    .menu-block.active {
        left: 0;
    }

    /* Menu Header - Standard styling */
    .navbar .menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 1rem;
    }

    .navbar .menu-head .logo-sub {
        display: flex;
        align-items: center;
    }

    .navbar .menu-head .logo-sub img {
        height: 40px;
        width: auto;
        max-width: 150px;
    }

    /* Larger logo for About Us, Services, and Contact pages mobile navigation bar */
    /* Target Bootstrap navbar pages (About Us, Services, Contact) */
    nav.navbar.bg-white .navbar-brand img,
    nav.navbar.navbar-light.bg-white .navbar-brand img {
        height: 50px !important;
        width: auto !important;
        max-width: 200px !important;
    }

    /* Also increase logo in mobile menu side panel if present on those pages */
    nav.navbar.bg-white .menu-block .menu-head .logo-sub img,
    nav.navbar.navbar-light.bg-white .menu-block .menu-head .logo-sub img {
        height: 50px !important;
        width: auto !important;
        max-width: 180px !important;
    }

    /* Standard Menu Close Button */
    .menu-close {
        width: 36px;
        height: 36px;
        border-radius: 4px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .menu-close:hover {
        background: #e9ecef;
    }

    .menu-close svg {
        width: 20px;
        height: 20px;
        stroke: #212529;
        stroke-width: 2;
    }

    /* Standard Navigation Items */
    .menu-block .navbar-nav {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .menu-block .navbar-nav .nav-item {
        margin: 0;
    }

    .menu-block .navbar-nav .nav-item .nav-link {
        color: #212529;
        padding: 0.75rem 1rem;
        border-radius: 4px;
        font-weight: 500;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        display: block;
        text-decoration: none;
    }

    .menu-block .navbar-nav .nav-item .nav-link:hover,
    .menu-block .navbar-nav .nav-item .nav-link:focus {
        background: #f8f9fa;
        color: #212529;
    }

    /* Menu Bottom - Standard CTA Button */
    .navbar .menu-bottom {
        display: flex;
        margin-top: auto;
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }

    .menu-bottom .btn,
    .menu-bottom .btn-darkgreen {
        width: 100%;
        padding: 0.75rem 1.5rem;
        border-radius: 4px;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        background-color: #B8FB04 !important;
        border-color: #B8FB04 !important;
        color: #212529 !important;
    }

    .menu-bottom .btn:hover,
    .menu-bottom .btn-darkgreen:hover {
        background-color: #a8e804 !important;
        border-color: #a8e804 !important;
        color: #212529 !important;
        opacity: 1;
    }

    /* Standard Menu Overlay */
    .navbar .menu-overlay {
        position: fixed;
        background: rgba(0, 0, 0, 0.5);
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 998;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .navbar .menu-overlay.active {
        visibility: visible;
        opacity: 1;
    }

    /* Standard Mobile Menu Trigger Button */
    .mobile-menu-trigger {
        width: 40px;
        height: 40px;
        border-radius: 4px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        padding: 0;
    }

    .mobile-menu-trigger:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .mobile-menu-trigger svg {
        stroke: #ffffff;
        width: 20px;
        height: 20px;
        stroke-width: 2;
    }

    /* Standard scrollbar for menu */
    .menu-block::-webkit-scrollbar {
        width: 6px;
    }

    .menu-block::-webkit-scrollbar-track {
        background: #f8f9fa;
    }

    .menu-block::-webkit-scrollbar-thumb {
        background: #dee2e6;
        border-radius: 3px;
    }

    .menu-block::-webkit-scrollbar-thumb:hover {
        background: #adb5bd;
    }

    /* Logo sizing and positioning on mobile */
    .navbar-brand {
        padding: 0.5rem 0;
    }

    .navbar-brand .logo img,
    .navbar-brand .nav-logo-light,
    .navbar-brand .nav-logo-dark {
        height: 40px;
        width: auto;
        max-width: 150px;
        object-fit: contain;
    }

    @media (max-width: 480px) {
        .navbar-brand .logo img,
        .navbar-brand .nav-logo-light,
        .navbar-brand .nav-logo-dark {
            height: 35px;
            max-width: 130px;
        }
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .menu-block {
        width: 280px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .menu-block {
        width: 100%;
        max-width: 100vw;
        padding: 1.25rem;
    }
}

/* ============================================
   Modern Responsive Google Maps Section
   ============================================ */

.map-section {
    padding: 0;
    margin: 0;
    width: 100%;
}

.map-section section {
    max-width: 1920px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
    font-family: 'Sora', Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

/* Decorative elements - Theme colors */
.map-section section:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 251, 4, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.map-section section:after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 251, 4, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.map-section h2 {
    color: #212529;
    margin-bottom: 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease-out;
}

.map-section h2 span {
    color: #B8FB04;
}

.map-section p {
    color: #495057;
    margin-bottom: 2rem;
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    font-weight: 400;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Map Container - Fully Responsive */
.map-section section > div[style*="position: relative"],
.map-section div[style*="padding-bottom"] {
    position: relative !important;
    padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
    height: 0 !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    border: 3px solid rgba(184, 251, 4, 0.2) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(184, 251, 4, 0.1) !important;
    background: #ffffff !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    animation: scaleIn 0.8s ease-out 0.4s both;
    transition: all 0.3s ease;
}

.map-section section > div[style*="position: relative"]:hover,
.map-section div[style*="padding-bottom"]:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(184, 251, 4, 0.3) !important;
    border-color: rgba(184, 251, 4, 0.4) !important;
    transform: translateY(-5px);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.map-section iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 17px !important;
    filter: grayscale(0%) contrast(1.05) brightness(1.02);
    transition: filter 0.3s ease;
}

.map-section iframe:hover {
    filter: grayscale(0%) contrast(1.08) brightness(1.05);
}

/* Responsive adjustments for map - Maintain 16:9 aspect ratio */
@media (max-width: 1400px) {
    .map-section section {
        padding: 3.5rem 1.5rem;
    }
}

@media (max-width: 1200px) {
    .map-section section {
        padding: 3rem 1.25rem;
    }

    .map-section section > div[style*="position: relative"],
    .map-section div[style*="padding-bottom"] {
        border-radius: 16px !important;
    }

    .map-section iframe {
        border-radius: 13px !important;
    }
}

@media (max-width: 992px) {
    .map-section section {
        padding: 2.5rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .map-section section {
        padding: 2rem 1rem;
    }

    .map-section section:before,
    .map-section section:after {
        width: 300px;
        height: 300px;
    }

    .map-section section > div[style*="position: relative"],
    .map-section div[style*="padding-bottom"] {
        border-radius: 12px !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
        border-width: 2px !important;
    }

    .map-section iframe {
        border-radius: 10px !important;
    }
}

@media (max-width: 576px) {
    .map-section section {
        padding: 1.5rem 1rem;
    }

    .map-section h2 {
        margin-bottom: 0.5rem;
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .map-section p {
        margin-bottom: 1.5rem;
        font-size: clamp(0.875rem, 3vw, 1rem);
    }

    .map-section section > div[style*="position: relative"],
    .map-section div[style*="padding-bottom"] {
        border-radius: 10px !important;
        border-width: 2px !important;
    }

    .map-section iframe {
        border-radius: 8px !important;
    }
}

@media (max-width: 480px) {
    .map-section section {
        padding: 1.25rem 0.75rem;
    }
}

/* Add smooth reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
    .map-section section {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .map-section section.aos-animate {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Print styles */
@media print {
    .map-section section:before,
    .map-section section:after {
        display: none;
    }

    .map-section div[style*="position: relative"] {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

