/* Cabeçalho clicável da legenda (alvo amplo + feedback de hover) */
.map-legend__header {
    width: 100%;
    padding: 8px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.map-legend__header:hover {
    background-color: var(--mantine-color-gray-1);
}

[data-mantine-color-scheme="dark"] .map-legend__header:hover {
    background-color: var(--mantine-color-dark-5);
}

.map-legend__header:active {
    transform: scale(0.99);
}

.map-legend__chevron {
    display: inline-flex;
    color: var(--mantine-color-gray-6);
    transition: transform 0.2s ease;
}

.legend-dot {
    position: relative;
}

.legend-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: legend-ripple 1.8s infinite;
}

@keyframes legend-ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}