body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

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

#sidebar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    max-width: 300px;
}

h1 {
    margin-top: 0;
    font-size: 1.5em;
}

#filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

select, button {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
}

#incidentFilter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

#applyFilter {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
}

#error {
    color: red;
    margin-top: 10px;
}

/* Styles for the custom popup */
.custom-popup .leaflet-popup-content-wrapper {
    background-color: white;
    color: #333;
    border-radius: 5px;
    padding-right: 10px;
}

.custom-popup .leaflet-popup-content {
    max-height: 300px;
    overflow-y: auto;
    margin: 13px;
    width: 280px !important;
}

.custom-popup .leaflet-popup-tip-container {
    width: 30px;
    height: 15px;
}

.custom-popup .leaflet-popup-tip {
    background-color: white;
}

.crash-popup h4 {
    margin: 5px 0;
    color: #333;
}

.crash-popup p {
    margin: 3px 0;
}

.crash-popup hr {
    margin: 10px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.crash-popup ul {
    margin: 5px 0;
    padding-left: 20px;
}

.crash-popup li {
    margin-bottom: 3px;
}

/* Custom scrollbar styles */
.custom-popup .leaflet-popup-content::-webkit-scrollbar {
    width: 8px;
}

.custom-popup .leaflet-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-popup .leaflet-popup-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.custom-popup .leaflet-popup-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}
