 /* General reset and basic styling */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body styling */
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f0f4f8;
}

/* Header styling */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 10px 20px;
}

#header h1 {
    font-size: 1.5em;
}

button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #c82333;
}

/* Slider styling */
.slider-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.slider-container label {
    font-size: 14px;
}

#radius-slider {
    width: 100px;
}

#radius-display {
    font-weight: bold;
}

/* Map styling */
#map {
    flex: 1;
    width: 100%;
    height: calc(100vh - 50px); /* Adjust height based on header size */
}

/* Popup styling for commodity details */
.leaflet-popup-content {
    font-size: 14px;
}

.leaflet-popup-content div {
    display: flex;
    justify-content: space-between;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

#commodity-checkboxes {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
}