/* Main container styling */
.main-container {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    gap: 20px;
    height: 85vh;  /* Reduce height to avoid navbar collision */
    overflow: hidden;
    padding-bottom: 100px; /* Added padding to give more space from the footer */
}

/* Map container styling */
.map-container {
    flex: 1;
    height: 100%;
    min-height: 300px;  /* Ensure it doesn't collapse */
    background-color: #f0f0f0;
    border: 2px solid #397d7d;
}

#map {
    height: 100%;
    width: 100%;
    border: none;
}

/* Info container styling */
.info-container {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    border-left: 2px solid #397d7d;
}

.info-header {
    background-color: black;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

.info-content {
    flex: 1;
    background-color: #e0e0e0;
    padding: 20px;
    border-radius: 0 0 5px 5px;
    overflow-y: auto;
}

@media (min-width: 769px) {
    /* Padding for desktop view */
    .map-container {
        padding-left: 170px;
    }
}

@media (max-width: 768px) {
    /* Mobile styles for container */
    .main-container {
        flex-direction: column;
        height: auto;
    }

    /* Ensure both sections have enough space on mobile */
    .map-container,
    .info-container {
        width: 100%;
        height: 300px; /* Minimum height to ensure the map doesn't disappear */
    }

    /* Ensure the map is properly visible */
    #map {
        height: 100% !important;
        min-height: 300px; /* Ensure there's enough height to be visible */
    }
}
