/* Main flex container for image+info+table and map */
.content-flex {
    display: flex;
    flex-wrap: wrap; /* stacked on mobile */
    gap: 20px;
    align-items: flex-start;
}

/* Left container: image + info + table */
.left-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px; /* limit width of table and info */
}

/* Terrain image */
.map-image {
    max-height: 350px;
    width: 100%;
    object-fit: contain;
}

/* Leaflet map container */
.leaflet-container-wrapper {
    height: 350px;
    width: 350px; /* fixed map width on desktop */
}

/* Weather table container */
.weather-table-container {
    max-width: 390px;   /* limit table width */
    margin-top: 15px;
    margin-bottom: 15px;
    overflow-x: auto;   /* allow horizontal scroll on very small screens */
}

/* Table formatting */
.table-weather {
    border-collapse: collapse;
    width: 100%;        /* fills container, not full page */
    font-size: 12px;
}

.table-weather th, .table-weather td {
    border: 1px solid black;
    padding: 4px;
    text-align: center;
}

.table-weather th {
    background-color: #28a745;
    color: white;
}

/* Desktop: side-by-side image+info+table and map */
@media (min-width: 900px) {
    .content-flex {
        flex-wrap: nowrap;
    }
    .leaflet-container-wrapper {
        width: 350px;
    }
}

/* Mobile: stacked layout */
@media (max-width: 899px) {
    .leaflet-container-wrapper {
        width: 100%;
        margin-top: 20px;
    }
}
