svg {
    border: 1px solid black;
    width: 100%;
    height: auto;
}

#error_alert {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
}

.tooltip {
    position: absolute;
    text-align: center;
    width: auto;
    max-width: 200px;
    padding: 8px;
    font: 14px Arial, sans-serif;
    color: white;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 5px;
    pointer-events: none;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reset-zoom-btn {
    top: 10px;
    left: 10px;
    z-index: 10;
    background-color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.reset-zoom-btn svg {
    width: 20px;
    height: 20px;
}

#unionsContainer {
    max-height: 400px;
    overflow-y: scroll;
    overflow-x: hidden;
    margin-top: 20px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Fondo semitransparente */
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 150px;
    height: 150px;
    background-color: #ff3d00;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 30px 4px rgba(0, 0, 0, 0.5) inset,
    0 5px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.loader:before,
.loader:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 45%;
    top: -40%;
    background-color: #fff;
    animation: wave 5s linear infinite;
}

.loader:before {
    border-radius: 30%;
    background: rgba(255, 255, 255, 0.4);
    animation: wave 5s linear infinite;
}

@keyframes wave {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}
