/* Mountain-road scroll map (homepage, pairs with js/home-route.js) */
.home-route {
    position: fixed;
    z-index: 55;
    top: 50%;
    left: 28px;
    width: 56px;
    height: min(560px, 62vh);
    opacity: 0;
    pointer-events: none;
    transform: translate(-16px, -50%);
    transition: opacity .5s, transform .7s cubic-bezier(.16, 1, .3, 1);
}
.home-route.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
}
@media (max-width: 1199px) {
    .home-route { display: none; }
}
.home-route__map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.home-route__road {
    fill: none;
    stroke: rgba(35, 50, 59, .13);
    stroke-width: 9;
    stroke-linecap: round;
}
.home-route__lane {
    fill: none;
    stroke: #fff;
    stroke-width: 1.2;
    stroke-dasharray: 4 6;
}
.home-route__trail {
    fill: none;
    stroke: #e63b2a;
    stroke-width: 3;
    stroke-linecap: round;
}

.home-route__stop {
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    padding: 0;
    border: 2px solid rgba(35, 50, 59, .28);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: background-color .35s, border-color .35s, transform .35s cubic-bezier(.16, 1, .3, 1);
}
.home-route__stop:hover,
.home-route__stop:focus-visible {
    outline: none;
    transform: scale(1.3);
}
.home-route__stop.is-passed {
    border-color: #e63b2a;
    background: #e63b2a;
}
.home-route__label {
    position: absolute;
    top: 50%;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(7, 48, 72, .14);
    color: #23323b;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-8px, -50%) scale(.96);
    transition: opacity .35s, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.home-route__icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}
.home-route__icon:empty {
    display: none;
}
.home-route__icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.home-route__icon svg path,
.home-route__icon svg circle,
.home-route__icon svg rect,
.home-route__icon svg line,
.home-route__icon svg polyline {
    stroke: #e63b2a;
}
.home-route__stop:hover .home-route__label,
.home-route__stop:focus-visible .home-route__label,
.home-route__stop.is-announce .home-route__label {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
}

.home-route__van {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border-radius: 50%;
    background: #e63b2a;
    box-shadow: 0 8px 20px rgba(230, 59, 42, .4);
    pointer-events: none;
    will-change: transform;
}
.home-route__van svg {
    width: 18px;
    height: 18px;
}
.home-route__van::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(230, 59, 42, .35);
    border-radius: 50%;
    animation: home-route-pulse 2s ease-out infinite;
}
@keyframes home-route-pulse {
    from { opacity: 1; transform: scale(.8); }
    to { opacity: 0; transform: scale(1.5); }
}
@media (prefers-reduced-motion: reduce) {
    .home-route__van::after { animation: none; }
}
