#mapid {
    height: 100vh;
}

.marker-cluster-small {
    background-color: #F5B7B1;
}

.marker-cluster-medium {
    background-color: #EC7063;
}

.marker-cluster-large {
    background-color: #CB4335;
}

.legend {
    padding: 6px 8px;
    font: 14px 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;
    line-height: 18px;
    color: #555;
}

.legend h4 {
    text-align: center;
    font-size: 16px;
    margin: 2px 12px 8px;
    color: #777;
}

.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}

.leaflet-popup-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-height: 80vh;
}

/* Style for the custom settings control icon */
.leaflet-control-custom {
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
}

.leaflet-control-custom:hover {
    background-color: #f4f4f4;
}


/* Modal Styles */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Below modal, above map */
    display: none; /* Initially hidden */
}

#settings-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Above overlay */
    display: none; /* Initially hidden */
    min-width: 300px; /* Ensure some minimum width */
    max-width: 90%;
}

#settings-modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.close-modal-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-content {
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#origin-airports-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in width */
}

#save-settings-button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #4CAF50; /* Green */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#save-settings-button:hover {
    background-color: #45a049;
}

/* Class to activate/show modal and overlay */
#settings-modal.modal-active,
#modal-overlay.modal-active {
    display: block;
} 