body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }

.legend {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%); /* This centers it horizontally */
    background-color: rgba(255,255,255,0.9);
    padding: 10px 20px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    z-index: 1;
    text-align: center;
}

.legend h4 {
    margin: 0 0 8px;
    font-size: 20px;
}

/* Make items inline */
.legend-items {
    display: flex;
    gap: 16px; /* space between legend items */
    justify-content: center;
    flex-wrap: wrap; /* optional, wraps if too wide */
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend span {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
}

.float-form{
    position: absolute;
    z-index: 1;
    left: 30px;
    top: 10px;

    width: 30%;
}

.custom-popup{
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.486);
    display: none;

    animation: fadeInAnimation ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.show{
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.card {
    border-radius: 20px;
}


.btn-primary{
    background-color: #521262 !important;
    border-color: #521262 !important;
    color: white;
}

.btn-outline-primary{
    color: #521262;
    border-color: #521262 !important;
}

.btn-outline-primary:hover.active, .btn-outline-primary:active {
    background-color: #521262 !important;
    border-color: #521262 !important;
    color: white;
}

.btn-outline-primary:hover{
    background-color: #521262;
    border-color: #521262;
    color: white;
}

.btn-check:active+.btn-outline-primary, 
.btn-check:checked+.btn-outline-primary, 
.btn-outline-primary.active, 
.btn-outline-primary.dropdown-toggle.show, 
.btn-outline-primary:active {
    background-color: #521262 !important;
    border-color: #521262 !important;
    color: white;
}

.modal {
    z-index: 5000;
    border-radius: 20px;
}

.autocomplete{
    position:relative;
    margin-left: 0;
    margin-right: 0;
}

#suggestions {
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    position: absolute;
    justify-content: center;
    background: white;
    z-index: 1000;
    border-radius: 10px;
    width:100%;
    left: 0;

}

#suggestions::-webkit-scrollbar{
    width: 10px;
    border: 1px solid #cecece;
    border-radius: 10px;
}

#suggestions::-webkit-scrollbar-thumb{
    background-color: gray;
    border-radius: 10px;
}

#suggestions::-webkit-scrollbar-track{
    background-color: white;
    border-radius: 10px;
}
.suggestion-item {
    padding: 10px;
    cursor: pointer;
    font-size: 15px;
}
.suggestion-item:hover {
    background-color: #f0f0f0;
}

/* error text */
.error_hints{
    color: rgb(167, 0, 0);
    font-style: italic; 
    text-align: center;
}

.accordion-button::after {
    filter: invert(1);
}