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

/* Поиск */
.schedule-stops__search {
    margin-bottom: 30px;
}

.schedule-stops__search-wrap {
    position: relative;
}

.schedule-stops__search-input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
	border:none;
}
.schedule-stops__search-input::placeholder {
	color: #797979;
}

.content-wrap a.schedule-stops__item {
    text-decoration: none;
    color: #232323;
} 
.schedule-stops__search-input:focus {
    outline: none;
    border-color: #2e7d32;
}

.schedule-stops__search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
	height: 30px;
}

.schedule-stops__search-icon:hover {
    color: #333;
}

/* Выпадающий список подсказок */
.schedule-stops__suggest {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
}

.schedule-stops__suggest-item {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.1s;
}

.schedule-stops__suggest-item:hover,
.schedule-stops__suggest-item--active {
    background: #e8f5e9;
    color: #2e7d32;
}

.schedule-stops__suggest-item strong {
    color: #2e7d32;
    font-weight: 700;
}

.schedule-stops__suggest-empty {
    padding: 12px 18px;
    color: #999;
    font-size: 14px;
}

/* Алфавитный список — ряды по 4 колонки */
.schedule-stops__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 30px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .schedule-stops__row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .schedule-stops__row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .schedule-stops__row {
        grid-template-columns: 1fr;
    }
}

.schedule-stops__group {
    margin-bottom: 26px;
}

.schedule-stops__letter {
    font-size: 20px;
    font-weight: 600;
    padding: 0px 0 6px;
    color: #232323;
}

.schedule-stops__item {
    display: block;
    padding: 6px 0;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.15s;
}

.schedule-stops__item:hover {
    color: #2e7d32;
}

.schedule-stops__empty {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* Детальная страница остановки */
.schedule-stops__selected {
    margin-top: 15px;
}

.schedule-stops__selected-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.schedule-stops__date-filter {
    margin-bottom: 20px;
}

.schedule-stops__date-filter form {
    display: flex;
    align-items: center;
    gap: 10px;
	width: fit-content;
}

.schedule-stops__day-type {
    font-size: 13px;
    color: #888;
}

/* Карточки маршрутов: две колонки (слева — прямое направление, справа — обратное) */
.schedule-stops__route-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    align-items: start;
}

.schedule-stops__route-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .schedule-stops__route-cards {
        grid-template-columns: 1fr;
    }
}

.schedule-stops__route-card {
    border: none;
}

.schedule-stops__route-card-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    text-decoration: none;
    color: inherit;
}

.schedule-stops__route-card-link:hover .schedule-stops__route-card-name {
    color: #2e7d32;
}

.schedule-stops__route-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.schedule-stops__route-card-num {
    flex-shrink: 0;
    height: 40px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    background: #F5F5F5;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 500;
    margin-right:0;
    position: relative;
    padding: 8px 18px;
    color: #232323;
    font-family: "Gilroy-Medium"; 
    gap: 4px;
}

.schedule-stops__route-card-num-prefix {
    font-size: 14px;
    font-weight: 500;
    color: #797979;
}

.content-wrap a.schedule-stops__route-card-link {
	padding: 8px;
	border-radius: 8px;
	background: #fff;
	text-decoration: none;
	box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
}

.schedule-stops__route-card-name {
    font-size: 14px;
    color: #555;
    line-height: 1.3;
}

.schedule-stops__route-card-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
	    padding: 0 20px;
}

.schedule-stops__time {
    display: inline-block;
    padding: 3px 6px;
    font-size: 14px;
    color: #232323;
    border-radius: 4px;
    font-weight: 600;
   
}

.schedule-stops__time--past {
    color: #B2B2B2;
}

.schedule-stops__time-note {
    color: var(--main, #017A3F);
    font-size: 0.75em;
    font-weight: 700;
    margin-left: 1px;
    vertical-align: super;
    line-height: 0;
}

.schedule-stops__time--past .schedule-stops__time-note {
    color: #B2B2B2;
}

.schedule-stops__datepicker {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    width: 152px;
    height: 56px;
    border: none;
    padding-right: 45px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

body .flatpickr-weekdays {
	height: 40px;
	border-bottom: 1px solid #E0E0E0;
	border-top: 1px solid #E0E0E0;	
}
body .dayContainer {
	width: 276px;
    min-width: 276px;
	max-width: 276px;
	gap: 4px;
}

body .flatpickr-innerContainer {
	width: 300.875px;
    min-width: 300.875px;
	max-width: 300.875px;
}
body .flatpickr-current-month .flatpickr-monthDropdown-months {font-weight: 400;}
body .flatpickr-current-month .flatpickr-monthDropdown-months:hover {background: transparent;}
body .flatpickr-calendar {border-radius: 12px;}
body .flatpickr-rContainer, body .flatpickr-calendar, body .flatpickr-days {width: 300px;}
body .flatpickr-weekdays span.flatpickr-weekday {font-size: 12px;}
body span.flatpickr-weekday {color: #797979; font-size: 12px; font-weight: 400;}
body .flatpickr-day {max-width: 36px; height: 36px; line-height: 36px;}
body .flatpickr-day.selected:hover, body .flatpickr-day.selected:focus {background: var(--main);}
body .flatpickr-day.selected {
	background: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    color: #017A3F;
    border-color: #017A3F;
}
body .flatpickr-day.flatpickr-day--past:not(.selected):not(.today) {
    color: #c4c4c4;
    opacity: 0.55;
}
body .flatpickr-day.flatpickr-day--past:not(.selected):not(.today):hover {
    color: #797979;
    opacity: 0.85;
}
body .flatpickr-months .flatpickr-prev-month, 
body .flatpickr-months .flatpickr-next-month {padding: 0 10px}
body .flatpickr-current-month .flatpickr-monthDropdown-months,
body .flatpickr-months .flatpickr-prev-month svg, 
body .flatpickr-months .flatpickr-next-month svg,
body .flatpickr-months .flatpickr-month {height: 54px; font-weight: 400;}
body .flatpickr-current-month { padding: 0; height: 54px;}
body .flatpickr-current-month input.cur-year {font-weight: 400;}
.schedule-route__form {display: flex;align-items: center;position: relative;}
.schedule-route__form img {position: absolute;right: 16px;pointer-events: none;}
.flatpickr-days { justify-content: center;}

.schedule-stops__time--next {
    font-weight: 600;
    color: var(--main);
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(1, 122, 63, 0.1);
    border-radius: 4px;
	background: rgba(1, 122, 63, 0.1);
}

/* Timetable fallback */
.schedule-stops__timetable {
    width: 100%;
    border-collapse: collapse;
}

.schedule-stops__timetable th,
.schedule-stops__timetable td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 13px;
}

.schedule-stops__timetable th {
    background: #f5f5f5;
    font-weight: 600;
}

.schedule-stops__back {
    display: inline-block;
    margin-right: 15px;
    color: #2e7d32;
    text-decoration: none;
    font-size: 14px;
}

.schedule-stops__back:hover {
    text-decoration: underline;
}

/* Карта остановки */
.schedule-stops__map-section {
    margin-top: 30px;
}

.schedule-stops__map-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

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

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

.schedule-stops__map-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #2e7d32;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.schedule-stops__map-btn:hover {
    background: #1b5e20;
}

@media (max-width: 768px) {
    .schedule-stops__map-iframe {
        height: 300px;
    }
}
