body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    /* Forces body to take full viewport height */
    height: 100vh;
    display: flex;
    /* Stacks header, filter, and main content vertically */
    flex-direction: column;
    /* Prevents scrollbars on the main body */
    overflow: hidden;
}

/* Header styling */
header {
    background-color: #1a3c5e;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

header h1 {
    margin: 5px;
    font-size: 1.5rem;
}

/* Filterbar */
.filter-bar {
    background-color: #f4f4f4;
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-item {
    font-weight: bold;
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Main content area */
.main-content {
    /* Enables side-by-side layout for map and sidebar */
    display: flex;
    /* Takes up all remaining vertical space */
    flex: 1;
    overflow: hidden;
}

/* Map container(left column) */
#map {
    flex: 3;
    /* Takes up 3 parts (approx. 75%) of the width */
    position: relative;
    height: 100%;
    width: 100%;
}

/* Statistics sidebar (right column) */
.stats-panel {
    flex: 1;
    /* Takes up 1 part (approx. 25%) of the width */
    background-color: #fafafa;
    border-left: 2px solid #ddd;
    padding: 20px;
    /* Adds scrollbar if content exceeds height */
    overflow-y: auto;
    min-width: 250px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.05);
}

.stats-panel h3 {
    margin-top: 0;
    border-bottom: 2px solid #1a3c5e;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Information tiles styling */
.tile {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.tile-title {
    font-size: 15px;
    color: #7a7878;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.tile-value {
    font-size: 30px;
    font-weight: bold;
    color: #000000;
}

/* Detail info area*/
.detail-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #1a3c5e;
}

/* Leaflet Map Tooltip/Popup Styling */
.info {
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background: white;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.info h4 {
    margin: 0 0 5px;
    color: #777;
}