/* --- Building Closest Stops Switcher Styles --- */
.building-closest-stops-options {
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.building-closest-stops-option {
    font-size: 1.3rem;
    color: var(--theme-color);
    border: 1px solid var(--theme-color);
    font-weight: 500;
    padding: 0.1rem 0.5rem;
    background: none;
    transition: background 0.15s, color 0.15s;
}

.building-closest-stops-option.only-option {
    border-radius: 0.8rem !important;
}

.building-closest-stops-option:first-child {
    /* border-radius: 0.8rem 0 0 0.8rem; */
    border-radius: 0.8rem;;
}

/* .building-closest-stops-option:last-child {
    border-radius: 0 0.8rem 0.8rem 0;
} */

.building-closest-stops-option.selected {
    background-color: var(--theme-color);
    color: var(--theme-bg);
}


.building-closest-stops-list {
    margin: 0 1rem 1rem 1rem;
}

.building-directions {
    aspect-ratio: auto;
    padding: 0 1rem;
    width: auto;
    position: relative;
    overflow: hidden;
    /* isolation: isolate; */
}

.building-directions > * {
    position: relative;
    z-index: 2;
}

/* Force white content above gradient */
.building-directions.building-directions,
.building-directions.building-directions > * {
    color: #fff;
}

/* --- Building Directions Gradient Animation --- */

.building-directions::before {
    content: "";
    position: absolute;
    /* top: -100%; */
    /* left: -100%; */
    width: 500%;
    height: 500%;
    background: conic-gradient(
        from 0deg,
        hsla(0, 100%, 70%, 1),
        hsla(30, 100%, 70%, 1),
        hsla(60, 100%, 70%, 1),
        hsla(120, 100%, 70%, 1),
        hsla(180, 100%, 70%, 1),
        hsla(240, 100%, 70%, 1),
        hsla(300, 100%, 70%, 1),
        hsla(360, 100%, 70%, 1)
    );
    filter: blur(40px) saturate(1.5);
    transform-origin: 50% 50%;
    animation: simGradientSwirl 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
    z-index: 0;
}

@keyframes simGradientSwirl {
    0%   { transform: translate(0%, 0%) rotate(0deg) scale(1); }
    23%  { transform: translate(-8%, -6%) rotate(120deg) scale(1.1); }
    47%  { transform: translate(6%, -10%) rotate(220deg) scale(0.95); }
    71%  { transform: translate(10%, 8%) rotate(310deg) scale(1.15); }
    100% { transform: translate(0%, 0%) rotate(360deg) scale(1); }
}

/* Stop Directions Button Styling */
.stop-directions {
    aspect-ratio: auto;
    padding: 0 1rem;
    width: auto;
    position: relative;
    overflow: hidden;
}

.stop-directions > * {
    position: relative;
    z-index: 2;
}

/* Force white content above gradient */
.stop-directions.stop-directions,
.stop-directions.stop-directions > * {
    color: #fff;
}

/* --- Stop Directions Gradient Animation --- */

.stop-directions::before {
    content: "";
    position: absolute;
    /* top: -100%; */
    /* left: -100%; */
    width: 500%;
    height: 500%;
    background: conic-gradient(
        from 0deg,
        hsla(0, 100%, 70%, 1),
        hsla(30, 100%, 70%, 1),
        hsla(60, 100%, 70%, 1),
        hsla(120, 100%, 70%, 1),
        hsla(180, 100%, 70%, 1),
        hsla(240, 100%, 70%, 1),
        hsla(300, 100%, 70%, 1),
        hsla(360, 100%, 70%, 1)
    );
    filter: blur(40px) saturate(1.5);
    transform-origin: 50% 50%;
    animation: simGradientSwirl 10s cubic-bezier(.4, 0, .2, 1) infinite alternate;
    z-index: 0;
}