/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-mdi0agdwsn] {
    background: var(--surface);
    color: var(--text);
    border-top: 1px solid var(--red);
    bottom: 0;
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-mdi0agdwsn] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-aaszsz6qku],
.components-reconnect-repeated-attempt-visible[b-aaszsz6qku],
.components-reconnect-failed-visible[b-aaszsz6qku],
.components-pause-visible[b-aaszsz6qku],
.components-resume-failed-visible[b-aaszsz6qku],
.components-rejoining-animation[b-aaszsz6qku] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-aaszsz6qku],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-aaszsz6qku],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-aaszsz6qku],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-aaszsz6qku],
#components-reconnect-modal.components-reconnect-retrying[b-aaszsz6qku],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-aaszsz6qku],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-aaszsz6qku],
#components-reconnect-modal.components-reconnect-failed[b-aaszsz6qku],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-aaszsz6qku] {
    display: block;
}


#components-reconnect-modal[b-aaszsz6qku] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-aaszsz6qku 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-aaszsz6qku 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-aaszsz6qku 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-aaszsz6qku]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-aaszsz6qku 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-aaszsz6qku {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-aaszsz6qku {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-aaszsz6qku {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-aaszsz6qku] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-aaszsz6qku] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-aaszsz6qku] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-aaszsz6qku] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-aaszsz6qku] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-aaszsz6qku] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-aaszsz6qku] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-aaszsz6qku 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-aaszsz6qku] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-aaszsz6qku {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Features/LiveMap/LiveMap.razor.rz.scp.css */
.map[b-jb7zo716mq] {
    position: fixed;
    inset: 0;
    background: var(--bg);
}

.panel[b-jb7zo716mq] {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 2;
    width: 300px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 14px 16px 16px 18px;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    box-shadow: var(--panel-shadow);
}

/* ---------- header (also the collapsed bar) ---------- */

.panel-head[b-jb7zo716mq] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title[b-jb7zo716mq] {
    flex: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.accent[b-jb7zo716mq] {
    color: var(--blue);
}

.collapse[b-jb7zo716mq] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: none;
    color: var(--muted);
    cursor: pointer;
}

    .collapse:hover[b-jb7zo716mq] {
        color: var(--text);
        border-color: var(--border-strong);
    }

    .collapse:focus-visible[b-jb7zo716mq] {
        outline: 1px solid var(--blue);
        outline-offset: 2px;
    }

    .collapse svg[b-jb7zo716mq] {
        transition: transform 0.2s ease;
    }

/* collapsed: a small bar with the name only */
.panel.collapsed[b-jb7zo716mq] {
    width: auto;
    padding: 5px 6px 5px 12px;
    border-radius: 10px;
}

    .panel.collapsed .panel-body[b-jb7zo716mq] {
        display: none;
    }

    .panel.collapsed .panel-head[b-jb7zo716mq] {
        gap: 8px;
    }

    .panel.collapsed .title[b-jb7zo716mq] {
        font-size: 14px;
    }

    .panel.collapsed .collapse[b-jb7zo716mq] {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }

    .panel.collapsed .collapse svg[b-jb7zo716mq] {
        width: 16px;
        height: 16px;
        transform: rotate(180deg);
    }

/* ---------- body ---------- */

.subtitle[b-jb7zo716mq] {
    margin: 6px 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.num[b-jb7zo716mq] {
    font-family: var(--font-mono);
    font-weight: 600;
}

.total[b-jb7zo716mq] {
    margin: 0 0 6px;
    color: var(--muted);
}

    .total .num[b-jb7zo716mq] {
        color: var(--text);
        font-size: 24px;
        margin-right: 4px;
    }

.counts ul[b-jb7zo716mq],
.legend[b-jb7zo716mq] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.counts li + li[b-jb7zo716mq] {
    border-top: 1px solid var(--border);
}

/* closes the list, so the last type does not run into the legend */
.counts li:last-child[b-jb7zo716mq] {
    border-bottom: 1px solid var(--border);
}

/* "All" check box above the types (checked / empty / dash for some) */
.counts li.all[b-jb7zo716mq] {
    border-bottom: 1px solid var(--border-strong);
}

    .counts li.all + li[b-jb7zo716mq] {
        border-top: 0;
    }

/* "37 of 817 vehicles" while a filter is on */
.total .of[b-jb7zo716mq] {
    margin-right: 4px;
}

    .total .of .num[b-jb7zo716mq] {
        color: var(--muted);
        font-size: 15px;
        margin-right: 0;
    }

/* transport type filter: check box · name · count */
.type-toggle[b-jb7zo716mq] {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 6px 4px;
    margin: 0 -4px;
    box-sizing: content-box;
    background: none;
    border: 0;
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

    .type-toggle:hover[b-jb7zo716mq] {
        background: rgba(122, 162, 247, 0.07);
    }

    .type-toggle:focus-visible[b-jb7zo716mq] {
        outline: 1px solid var(--blue);
        outline-offset: 1px;
    }

.check[b-jb7zo716mq] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid var(--blue);
    border-radius: 4px;
    background: var(--blue);
    color: var(--bg);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .check svg[b-jb7zo716mq] {
        transition: transform 0.15s ease;
    }

/* not shown on the map: empty box, muted text – no strike-through */
.type-toggle.off[b-jb7zo716mq] {
    color: var(--muted);
}

    .type-toggle.off .check[b-jb7zo716mq] {
        background: transparent;
        border-color: var(--border-strong);
    }

        .type-toggle.off .check svg[b-jb7zo716mq] {
            transform: scale(0);
        }

    .type-toggle.off:hover .check[b-jb7zo716mq] {
        border-color: var(--blue);
    }

/* no vehicle of this type right now (e.g. the funicular at night) */
.type-toggle.empty .type-name[b-jb7zo716mq],
.type-toggle.empty .num[b-jb7zo716mq] {
    color: var(--muted);
}

.legend[b-jb7zo716mq] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
}

    .legend li[b-jb7zo716mq] {
        display: flex;
        align-items: center;
        gap: 6px;
    }

.dot[b-jb7zo716mq] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: none;
}

    .dot.on-time[b-jb7zo716mq] { background: var(--delay-on-time); }
    .dot.slight[b-jb7zo716mq] { background: var(--delay-slight); }
    .dot.late[b-jb7zo716mq] { background: var(--delay-late); }
    .dot.unknown[b-jb7zo716mq] { background: var(--delay-unknown); }

.status[b-jb7zo716mq] {
    margin: 14px 0 0;
    min-height: 1.4em;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}

    .status[data-state="live"][b-jb7zo716mq]::before {
        content: "";
        display: inline-block;
        width: 7px;
        height: 7px;
        margin-right: 7px;
        border-radius: 50%;
        background: var(--green);
        box-shadow: 0 0 0 0 rgba(158, 206, 106, 0.6);
        animation: live-pulse-b-jb7zo716mq 2s infinite;
    }

    .status[data-state="warn"][b-jb7zo716mq] { color: var(--amber); }
    .status[data-state="error"][b-jb7zo716mq] { color: var(--red); }

@keyframes live-pulse-b-jb7zo716mq {
    0% { box-shadow: 0 0 0 0 rgba(158, 206, 106, 0.6); }
    70% { box-shadow: 0 0 0 7px rgba(158, 206, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(158, 206, 106, 0); }
}

.lang[b-jb7zo716mq] {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    padding: 3px;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: 10px;
}

    .lang a[b-jb7zo716mq] {
        padding: 4px 10px;
        border-radius: 7px;
        color: var(--muted);
        font-family: var(--font-mono);
        font-size: 12px;
        text-decoration: none;
    }

        .lang a.active[b-jb7zo716mq] {
            background: var(--border);
            color: var(--text);
        }

/* light/dark switch, first in the language pill, separated by a hairline */
.theme-toggle[b-jb7zo716mq] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    margin-right: 3px;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--border);
    border-radius: 7px 0 0 7px;
    background: none;
    color: var(--muted);
    cursor: pointer;
}

    .theme-toggle:hover[b-jb7zo716mq] {
        color: var(--text);
    }

    .theme-toggle:focus-visible[b-jb7zo716mq] {
        outline: 1px solid var(--blue);
        outline-offset: 1px;
    }

.disclaimer[b-jb7zo716mq] {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

/* ---------- phones ---------- */

@media (max-width: 640px) {
    .panel[b-jb7zo716mq] {
        top: 8px;
        left: 8px;
        right: 132px; /* room for the theme and language switch */
        width: auto;
        padding: 10px 12px;
        max-height: 55dvh;
    }

    .title[b-jb7zo716mq] {
        font-size: 17px;
    }

    /* before the browser reports the remembered state, phones start collapsed */
    .panel:not(.expanded)[b-jb7zo716mq] {
        right: auto;
        padding: 5px 6px 5px 12px;
        border-radius: 10px;
    }

        .panel:not(.expanded) .panel-body[b-jb7zo716mq] {
            display: none;
        }

        .panel:not(.expanded) .panel-head[b-jb7zo716mq] {
            gap: 8px;
        }

        .panel:not(.expanded) .title[b-jb7zo716mq] {
            font-size: 14px;
        }

        .panel:not(.expanded) .collapse[b-jb7zo716mq] {
            width: 24px;
            height: 24px;
            border-radius: 6px;
        }

        .panel:not(.expanded) .collapse svg[b-jb7zo716mq] {
            width: 16px;
            height: 16px;
            transform: rotate(180deg);
        }

    .subtitle[b-jb7zo716mq] {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .total .num[b-jb7zo716mq] {
        font-size: 18px;
    }

    /* two columns of check boxes, types without vehicles left out */
    .counts ul[b-jb7zo716mq] {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 14px;
    }

    .counts li + li[b-jb7zo716mq] {
        border-top: 0;
    }

    .counts li:last-child[b-jb7zo716mq] {
        border-bottom: 0;
    }

    .counts li.all[b-jb7zo716mq] {
        grid-column: 1 / -1;
    }

    .counts li:has(.empty)[b-jb7zo716mq] {
        display: none;
    }

    .type-toggle[b-jb7zo716mq] {
        gap: 8px;
        padding: 5px 4px;
        font-size: 12px;
    }

    .legend[b-jb7zo716mq] {
        margin-top: 8px;
        grid-template-columns: repeat(2, auto);
    }

    .status[b-jb7zo716mq] {
        margin-top: 8px;
    }

    .lang[b-jb7zo716mq] {
        top: 10px;
        right: 8px;
    }

    .disclaimer[b-jb7zo716mq] {
        margin-top: 8px;
        padding-top: 6px;
        font-size: 10px;
    }
}
/* /Features/LiveMap/VehicleDetail.razor.rz.scp.css */
.detail[b-q297njk8js] {
    position: fixed;
    top: 64px;
    right: 16px;
    z-index: 3;
    width: 320px;
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    padding: 14px 16px 16px;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    box-shadow: var(--panel-shadow);
    font-size: 13px;
}

.head[b-q297njk8js] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge[b-q297njk8js] {
    flex: none;
    min-width: 40px;
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--blue);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.title[b-q297njk8js] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.type[b-q297njk8js] {
    color: var(--muted);
    font-size: 12px;
}

.headsign[b-q297njk8js] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}

.close[b-q297njk8js] {
    flex: none;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: none;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

    .close:hover[b-q297njk8js] {
        color: var(--text);
        border-color: var(--muted);
    }

.note[b-q297njk8js] {
    margin: 10px 0 0;
    color: var(--muted);
}

.facts[b-q297njk8js] {
    display: flex;
    gap: 24px;
    margin: 12px 0 0;
}

    .facts dt[b-q297njk8js] {
        color: var(--muted);
        font-size: 11px;
    }

    .facts dd[b-q297njk8js] {
        margin: 2px 0 0;
        font-size: 15px;
    }

.mono[b-q297njk8js] {
    font-family: var(--font-mono);
}

.chips[b-q297njk8js] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

    .chips li[b-q297njk8js] {
        padding: 2px 8px;
        border: 1px solid var(--border);
        border-radius: 999px;
        color: var(--muted);
        font-size: 11px;
    }

h3[b-q297njk8js] {
    margin: 14px 0 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stops[b-q297njk8js] {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .stops li[b-q297njk8js] {
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 8px;
        padding: 5px 0;
        border-bottom: 1px solid var(--border);
    }

        .stops li.current .time[b-q297njk8js],
        .stops li.current .name[b-q297njk8js] {
            color: var(--green);
        }

.time[b-q297njk8js] {
    color: var(--text);
}

.scheduled[b-q297njk8js] {
    grid-column: 2;
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 640px) {
    .detail[b-q297njk8js] {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        max-height: 48dvh;
        border-radius: 14px 14px 0 0;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}
