.trip-page-title h1 {
    display: inline-block;
    background-color: red;
    color: white;
    margin: 0 auto 16px auto;
    padding: 2px 18px;
    border-radius: 7px;
    width: fit-content;
    font-size: 1.7rem;
    font-weight: bold;
}

@media (min-width: 768px) {
    .trip-page-title h1 {
        margin: 0 auto 16px auto;
        padding: 2px 18px;
        border-radius: 7px;
        font-size: 2.5rem;
    }
}

#show-previous-stops-toggle,
#hide-previous-stops-toggle {
    display: flex;
    color: #007AFF;
}

#show-previous-stops-toggle .vertical-line {
    width: 24px;
    background-color: red;
    margin-right: 18px;
    margin-left: 9px;
    flex: 0 0 24px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    mask-image: linear-gradient(to top, black 20%, transparent 80%);
    -webkit-mask-image: linear-gradient(to top, black 20%, transparent 80%);
}

#hide-previous-stops-toggle {
    display: none;
    padding-left: 51px;
}

#show-previous-stops-toggle .title,
#hide-previous-stops-toggle .title {
    padding: 12px 0 12px 0;
}

#show-previous-stops-toggle:hover,
#hide-previous-stops-toggle:hover {
    background-color: #007AFF34;
}

@media (prefers-color-scheme: dark) {
    #show-previous-stops-toggle,
    #hide-previous-stops-toggle {
        color: #0A84FF;
    }

    #show-previous-stops-toggle:hover ,
    #hide-previous-stops-toggle:hover {
        background-color: #0A84FF34;
    }
}

.line-stop-list .stop {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.line-stop-list .stop .vertical-line {
    width: 24px;
    background-color: red;
    margin-right: 18px;
    margin-left: 9px;
    flex: 0 0 24px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line-stop-list .stop .stop-dot {
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
}

.line-stop-list .current-stop .stop-dot {
    width: 16px;
    height: 16px;
}

.line-stop-list .first-stop .vertical-line {
    border-radius: 12px;
    transform: translateY(calc(50% - 12px));
}

.line-stop-list .first-stop .stop-dot {
    transform: translateY(calc(-50% - 6px));
}

.line-stop-list .last-stop .vertical-line {
    border-radius: 12px;
    transform: translateY(calc(-50% + 12px));
}

.line-stop-list .last-stop .stop-dot {
    transform: translateY(calc(50% + 6px));
}

.line-stop-list .previous-stop {
    display: none;
}

.line-stop-list .previous-stop .vertical-line,
.line-stop-list .previous-stop .stop-name,
.line-stop-list .previous-stop .arrival-time {
    opacity: 0.5;
}

.line-stop-list .stop .stop-name-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 18px 12px 0;
}

.line-stop-list .stop:not(:last-child) .stop-name-container {
    border-bottom: solid 1px #0000001F;
}

@media (prefers-color-scheme: dark) {
    .line-stop-list .stop:not(:last-child) .stop-name-container {
        border-bottom: solid 1px #FFFFFF1F;
    }
}

.line-stop-list .stop p {
    margin: 0;
    padding: 0;
}

.line-stop-list .current-stop p {
    font-weight: bold;
}

.line-stop-list .stop .connections .line-name {
    background-color: red;
    color: white;
    margin: 0 1px 0 0;
    padding: 1px 4px;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
    font-size: 0.6rem;
    font-weight: bold;
}

.line-stop-list .stop .stop-time {
    display: flex;
    align-items: center;
    margin-left: 12px;
}

.line-stop-list .stop .stop-time .arrival-time {
    margin: 0 12px 0 6px;
}

.line-stop-list .stop .stop-time .arrival-time-real-time {
    color: #16A34A;
}

.line-stop-list .stop .stop-time .arrival-time-cancelled {
    color: #C52925;
}

@media (prefers-color-scheme: dark) {
    .line-stop-list .stop .stop-time .arrival-time-real-time {
        color: #75FB99;
    }

    .line-stop-list .stop .stop-time .arrival-time-cancelled {
        color: #ED7267;
    }
}

.line-stop-list .current-stop .stop-time .arrival-time {
    font-weight: bold;
}