/*
 * Current Location Button
 * Native MapLibre control rebuilt from scratch.
 */

.maplibregl-ctrl-group > #current-location-button.focaxis-current-location-button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    background-image: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    color: #556176;
    opacity: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.maplibregl-ctrl-group > #current-location-button.focaxis-current-location-button:hover {
    background: rgba(67, 67, 67, 0.08);
    color: #435065;
}

.maplibregl-ctrl-group > #current-location-button.focaxis-current-location-button:disabled {
    cursor: wait;
    opacity: 0.5;
}

.maplibregl-ctrl-group > #current-location-button.focaxis-current-location-button .current-location-icon {
    width: 19px;
    height: 19px;
    display: block;
    color: currentColor;
    opacity: 1;
}

.maplibregl-ctrl-group > #current-location-button.focaxis-current-location-button .current-location-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
    opacity: 1;
}

.maplibregl-ctrl-group > #current-location-button.focaxis-current-location-button .spin {
    animation: current-location-spin 0.9s linear infinite;
}

@keyframes current-location-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
