/* Map Layout Fixes */
.map-section-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.map-container-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

.gmap-fixed {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Google Maps Link Overlay */
.map-link-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.map-link-overlay:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.map-link-overlay a {
    display: inline-flex;
    align-items: center;
    color: #15803d;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.map-link-overlay a:hover {
    color: #166534;
}

.map-link-overlay a i {
    margin-right: 8px;
    font-size: 16px;
}

/* Header Section */
.map-header-section {
    background: white;
    padding: 2rem 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .map-link-overlay {
        bottom: 0.75rem;
        left: 0.75rem;
        padding: 10px 12px;
    }
    
    .map-link-overlay a {
        font-size: 13px;
    }
    
    .map-header-section {
        padding: 1.5rem 0;
    }
}

/* Ensure no horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Fix any potential z-index conflicts */
.leaflet-pane, .leaflet-map-pane {
    z-index: 1 !important;
}

.leaflet-control-container {
    z-index: 999 !important;
}