/* CSS for the new location section */

.new-location {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 60px 40px;
    background-color: #f9fafb;
    text-align: center;
}

.new-location h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 15px;
}

.new-location > p {
    font-size: 18px;
    line-height: 1.6;
    color: #4B5563;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.location-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
}

/* Map container with fixed z-index to stay below navbar */
.map-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    flex: 1;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Force all Leaflet elements to stay below navbar */
#map {
    height: 400px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.leaflet-pane,
.leaflet-top,
.leaflet-bottom,
.leaflet-control {
    z-index: 1 !important;
}

.leaflet-tile-container {
    z-index: 1 !important;
}

.building-info {
    flex: 1;
    text-align: center;
}

.building-info img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.building-info h3 {
    font-size: 28px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 10px;
}

.building-info p {
    font-size: 16px;
    line-height: 1.8;
    color: #4B5563;
    margin-bottom: 15px;
}

.building-info p:last-child {
    font-weight: 500;
    color: #1F2937;
    margin-top: 20px;
}

/* Navbar stays on top - adjust selector to match your navbar class/id */
.navbar,
header,
nav {
    position: relative;
    z-index: 1001 !important;
}

/* If your navbar is fixed or sticky, use this instead */
.navbar-fixed,
.navbar-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001 !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .location-grid {
        max-width: 1100px;
    }
}

@media (max-width: 992px) {
    .new-location {
        padding: 50px 30px;
    }
    
    .location-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .new-location {
        padding: 40px 20px;
    }
    
    .location-grid {
        flex-direction: column;
        align-items: center;
    }

    .map-image,
    .building-info {
        max-width: 100%;
    }

    .new-location h2 {
        font-size: 26px;
    }

    .new-location > p {
        font-size: 16px;
    }
    
    .building-info h3 {
        font-size: 24px;
    }

    .building-info p {
        font-size: 15px;
    }

    #map {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .new-location {
        padding: 30px 15px;
    }
    
    .new-location h2 {
        font-size: 24px;
    }
    
    .new-location > p {
        font-size: 14px;
    }

    #map {
        height: 250px;
    }
}