body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin: 15px 0;
    text-align: center;
}

.filters {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    display: flex;
    gap: 15px; /* Spacing between items */
    align-items: center; /* Align items vertically */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center items */
    width: 80%;
    max-width: 1000px;
}

.filters label {
    font-weight: bold;
}

.filters select, .filters button {
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

.filters button {
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
}

.filters button:hover {
    background-color: #45a049;
}

.plate-toggle {
    display: inline-flex; /* Use flex to align checkbox and label */
    align-items: center;
    gap: 5px; /* Space between checkbox and label */
    margin-left: 10px; /* Add some space from the button */
}

.plate-toggle label {
    font-weight: normal; /* Override the general filter label bolding */
    cursor: pointer;
}

#map {
    height: 500px; /* Define a height for the map container */
    width: 80%;   /* Make the map responsive */
    max-width: 1000px; /* Optional: Set a max width */
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

#info {
    width: 80%;
    max-width: 1000px;
    padding: 10px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    min-height: 50px; /* Ensure it has some height even when empty */
}

#info p {
    margin: 5px 0;
}

/* Geo Questions Section Styles */
#geo-questions {
    width: 80%;
    max-width: 1000px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #fdfdfd;
    border-radius: 5px;
}

#geo-questions h2 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

#geo-questions details {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#geo-questions details:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#geo-questions summary {
    cursor: pointer;
    font-weight: bold; /* Make question stand out */
    color: #0056b3; /* Question color */
    list-style: none; /* Remove default marker */
    padding: 5px 0;
}

#geo-questions summary::marker { /* Hide marker in Firefox */
    display: none;
}
#geo-questions summary::-webkit-details-marker { /* Hide marker in Chrome/Safari */
    display: none;
}

#geo-questions summary:hover {
    color: #003d80;
}

#geo-questions details[open] summary {
     margin-bottom: 5px; /* Add space below open summary */
}

#geo-questions p {
    margin-left: 20px; /* Indent the answer/guidance */
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
}

#info strong {
    margin-right: 5px;
}

/* Legend Styles */
.legend {
    line-height: 18px;
    color: #555;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    padding: 6px 8px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    text-align: left; /* Explicitly align text content to the left */
}
.legend i {
    width: 18px;
    height: 18px;
    display: inline-block; /* Use inline-block instead of float */
    margin-right: 5px; /* Adjust spacing */
    opacity: 0.9;
    border: 1px solid #ccc;
    vertical-align: middle; /* Align square vertically with text */
}

.legend span {
    display: inline-block; /* Ensure span behaves predictably */
    vertical-align: middle; /* Align text vertically with square */
}

.legend strong {
    display: block;
    margin-bottom: 5px;
}

/* Footer Styles */
footer {
    margin-top: 20px;
    padding: 10px;
    text-align: center;
    font-size: 0.8em;
    color: #666;
    width: 80%;
    max-width: 1000px;
    border-top: 1px solid #eee;
}

footer p {
    margin: 5px 0;
}
