.schedule-route__title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* Управление: дата + инфо + кнопки направления */
.schedule-route__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.schedule-route__form {
    display: flex;
    align-items: center;
}

.schedule-route__datepicker {
    padding: 8px 12px;
    border: 2px solid #333;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    width: 130px;
}

.schedule-route__info-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.schedule-route__num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.schedule-route__route-name {
    font-size: 14px;
    color: #555;
}

/* Анимированная кнопка направления */
.schedule-route__dir-btn {
    display: inline-block;
    position: relative;
    padding: 8px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    color: #fff;
    transition: background 0.3s;
}

.schedule-route__dir-btn--direct {
    background: #0097a7;
    border: 2px solid #0097a7;
}

.schedule-route__dir-btn--reverse {
    background: #f57c00;
    border: 2px solid #f57c00;
}

.schedule-route__dir-btn-current,
.schedule-route__dir-btn-hover {
    display: block;
    transition: opacity 0.3s, transform 0.3s;
}

.schedule-route__dir-btn-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.schedule-route__dir-btn:hover .schedule-route__dir-btn-current {
    opacity: 0;
    transform: translateY(-100%);
}

.schedule-route__dir-btn:hover .schedule-route__dir-btn-hover {
    opacity: 1;
}

.schedule-route__dir-btn--direct:hover {
    background: #f57c00;
    border-color: #f57c00;
}

.schedule-route__dir-btn--reverse:hover {
    background: #0097a7;
    border-color: #0097a7;
}

/* Список остановок */
.schedule-route__stops {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.schedule-route__stop {
    border-bottom: 1px solid #e0e0e0;
}

.schedule-route__stop:last-child {
    border-bottom: none;
}

.schedule-route__stop-header {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.15s;
    gap: 10px;
}

.schedule-route__stop-header:hover {
    background: #f5f5f5;
}

.schedule-route__stop-header--active {
    background: #0097a7;
    color: #fff;
}

.schedule-route__stop-header--active:hover {
    background: #00838f;
}

.schedule-route__stop-header--active .schedule-route__stop-toggle {
    color: #fff;
}

.schedule-route__stop-header--active .schedule-route__stop-time-badge {
    background: #fff;
    color: #0097a7;
}

.schedule-route__stop-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.schedule-route__stop-link {
    color: inherit;
    text-decoration: none;
}

.schedule-route__stop-link:hover {
    text-decoration: underline;
}

.schedule-route__stop-toggle {
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}

.schedule-route__stop-time-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #0097a7;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.schedule-route__stop-times {
    padding: 12px 18px 15px;
}

.schedule-route__times-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule-route__time {
    display: inline-block;
    padding: 3px 6px;
    font-size: 13px;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: box-shadow 0.15s, background 0.15s;
}

.schedule-route__time:hover {
    background: #e0f7fa;
}

.schedule-route__time--past {
    color: #bbb;
}

.schedule-route__time--past:hover {
    background: #f5f5f5;
}

.schedule-route__time--next {
    background: #0097a7;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
    padding: 3px 8px;
}

.schedule-route__time--next:hover {
    background: #00838f;
}

.schedule-route__time--selected {
    box-shadow: 0 0 0 2px #0097a7;
    border-radius: 4px;
    font-weight: 700;
}

.schedule-route__no-times {
    color: #999;
    font-size: 13px;
    padding: 5px 0;
}

/* Карта */
.schedule-route__map-section {
    margin-top: 30px;
}

.schedule-route__map-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.schedule-route__map-link-card {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 15px;
}

.schedule-route__map-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: #0097a7;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

.schedule-route__map-link-btn:hover {
    background: #00838f;
    color: #fff;
}

.schedule-route--reverse .schedule-route__map-link-btn {
    background: #f57c00;
}

.schedule-route--reverse .schedule-route__map-link-btn:hover {
    background: #e65100;
}

.schedule-route__map-link-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.schedule-route__map-iframe-wrap {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.schedule-route__map-iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Обратный маршрут — оранжевая цветовая схема */
.schedule-route--reverse .schedule-route__stop-header--active {
    background: #f57c00;
}

.schedule-route--reverse .schedule-route__stop-header--active:hover {
    background: #e65100;
}

.schedule-route--reverse .schedule-route__stop-header--active .schedule-route__stop-time-badge {
    background: #fff;
    color: #f57c00;
}

.schedule-route--reverse .schedule-route__stop-time-badge {
    background: #f57c00;
}

.schedule-route--reverse .schedule-route__time:hover {
    background: #fff3e0;
}

.schedule-route--reverse .schedule-route__time--next {
    background: #f57c00;
}

.schedule-route--reverse .schedule-route__time--next:hover {
    background: #e65100;
}

.schedule-route--reverse .schedule-route__time--selected {
    box-shadow: 0 0 0 2px #f57c00;
}

@media (max-width: 768px) {
    .schedule-route__controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-route__info-bar {
        width: 100%;
    }

    .schedule-route__map-iframe {
        height: 300px;
    }
}
