﻿.loading-locations {
    display: grid;
    place-items: center;
    width: 100%;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease; /* no class swap on bubbles */
}

    .loading-locations.is-active {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

.loader-wrap {
    display: grid;
    gap: .5rem;
    justify-items: center;
}

.loading-message {
    font-weight: 600;
    opacity: .9;
    text-align: center;
}


/* Match original SVG viewBox 150×45 */
.bub-row {
    --w: 150px;
    --h: 45px;
    --bubble-size: 20px; /* r=10 => 20px */
    width: var(--w);
    height: var(--h);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    justify-items: center;
    position: relative;
}

/* Base bubble */
.bubble {
    width: var(--bubble-size);
    height: var(--bubble-size);
    border-radius: 50%;
    border: 1px solid #000;
    position: relative;
    box-sizing: border-box;
    animation: bubbleFloat 1.2s ease-in-out infinite;
    will-change: transform;
}

    /* highlight */
    .bubble::before {
        content: "";
        position: absolute;
        width: calc(var(--bubble-size) * 0.6);
        height: calc(var(--bubble-size) * 0.6);
        border-radius: 50%;
        left: 55%;
        top: 35%;
        transform: translate(-50%, -50%);
        background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.55) 0 60%, transparent 61%);
        pointer-events: none;
    }

/* Colors + stagger */
.bubble-1 {
    background: #ff6161;
    animation-delay: 0s;
}

.bubble-2 {
    background: #e661ff;
    animation-delay: .08s;
}

.bubble-3 {
    background: #1fcfb0;
    animation-delay: .16s;
}

.bubble-4 {
    background: #ffb861;
    animation-delay: .24s;
}

.bubble-5 {
    background: #ffe266;
    animation-delay: .32s;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1.05);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bubble {
        animation: none;
    }
}
