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

.schedule-route__note-before {
    color: #c62828;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

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

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

.schedule-route__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;
}

.schedule-route__form img {position: absolute;right: 16px;pointer-events: none;}
    
.schedule-route__info-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
	padding: 8px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
	flex: 0 0 calc(100% - 262px);
}

.schedule-route__num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: #F5F5F5;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 500;
    color: #232323;
    white-space: nowrap;
	font-family: "Gilroy-Medium";
	align-items: baseline;
    justify-content: center;
	gap: 4px;
}

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

/* Анимированная кнопка направления */
.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: #008BEF;
    border: 2px solid #008BEF;
	color:#fff;
}

.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-current {    
	z-index: 9;
    position: relative;}


.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--reverse:hover {
    
}

.content-wrap a.blob-btn:active {
	    color: #fff;
}
.schedule-city__num-prefix {color: #797979; font-size: 14px;}
.content-wrap a.schedule-tabs__item--active:active {color: #fff}

body a.blob-btn {
  z-index: 1;
  position: relative;
  padding: 6px 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  background-color: transparent;
  outline: none;
  border: none;
  transition: color 0.5s;
  cursor: pointer;
  border-radius: 8px;
  text-decoration: none !important;
  color: #fff;
  background: #008BEF;
  height: 40px;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  width: 104px;
  justify-content: center;
}

body .schedule-route--reverse a.blob-btn {background: #FF9802;}

body .schedule-route--reverse .blob-btn__blob{background: #008BEF;}

.blob-btn:before {
  content: "";
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
}
.blob-btn:after {
  content: "";
  z-index: -2;
  position: absolute;
  left: 3px;
  top: 3px;
  width: 100%;
  height: 100%;
  transition: all 0.3s 0.2s;
  border-radius: 8px;
}
.content-wrap .blob-btn:hover {
  color: #ffffff;
}
.blob-btn:hover:after {
  transition: all 0.3s;
  left: 0;
  top: 0;
  border-radius: 8px;
}
.blob-btn__inner {
  z-index: -1;
  overflow: hidden;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;

}
.blob-btn__blobs {
  position: relative;
  display: block;
  height: 100%;
  filter: url("#goo");
}
.blob-btn__blob {
  position: absolute;
  top: 2px;
  width: 29%;
  height: 100%;
  background: #FF9802;
  border-radius: 100%;
  transform: translate3d(0, 150%, 0) scale(1.7);
  transition: transform 0.45s;
}

.blob-svg {position: absolute; right:0; z-index: -1;}

@supports (filter: url("#goo")) {
  .blob-btn__blob {
    transform: translate3d(0, 150%, 0) scale(1.4);
  }
}
.blob-btn__blob:nth-child(1) {
  left: 0%;
  transition-delay: 0s;
}
.blob-btn__blob:nth-child(2) {
  left: 30%;
  transition-delay: 0.08s;
}
.blob-btn__blob:nth-child(3) {
  left: 60%;
  transition-delay: 0.16s;
}
.blob-btn__blob:nth-child(4) {
  left: 90%;
  transition-delay: 0.24s;
}
.blob-btn:hover .blob-btn__blob {
  transform: translateZ(0) scale(1.7);
}
@supports (filter: url("#goo")) {
  .blob-btn:hover .blob-btn__blob {
    transform: translateZ(0) scale(1.4);
  }
}

/* Список остановок */
.content-wrap .schedule-route__stop-link {color: #000000; text-decoration: none; font-weight: 500;} 
.content-wrap .schedule-route__stops .schedule-route__stop-header--active a:active,
.content-wrap .schedule-route__stops .schedule-route__stop-header--active a {color: #fff}

.schedule-route__stops {
  
    overflow: hidden;
    margin-bottom: 30px;
}

.schedule-route__stop {
   border-radius: 8px;
   margin-bottom: 4px;
}

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

.schedule-route__stop-header {
    display: flex;
    align-items: center;
	gap: 16px;
}


.schedule-route__stop-header .schedule-route__stop-row {
    display: flex;
    align-items: center;
    padding: 6px 18px;
    cursor: pointer;
    transition: background 0.15s;
    gap: 10px;
	background:#fff;
	border-radius: 8px;
	flex: 1 0;
	height: 40px;
}

.schedule-route__stop-header:hover {}

.schedule-route__stop-header--active .schedule-route__stop-row {
    background: #008BEF;
    color: #fff;
}

.schedule-route__stop-header--active:hover .schedule-route__stop-row {
    background: #008BEF;
}

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

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

.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;
	height: 24px;
}

.schedule-route__stop-time-badge {
    display: inline-flex;
    padding: 4px 23px;
    background: rgba(0, 139, 239, 0.1);
	height: 40px; 
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
	align-items: center;
	width: 81px;
    justify-content: center;
}

.schedule-route__stop-times {
    padding: 12px 12px 15px;
	max-width: calc(100% - 99px);
}

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

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

.schedule-route__time:hover {
   background: rgba(1, 122, 63, 0.1);
}

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

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

.schedule-route__time--next {
    background: rgba(1, 122, 63, 0.1);
    font-weight: 600;
    color:  var(--main);
    border-radius: 4px;
    padding: 3px 8px;
}

.schedule-route__time--next:hover, .schedule-route__time:hover {
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
}

.schedule-route__time--selected {

    font-weight: 600;
    color: var(--main);
    border-radius: 4px;
	box-shadow: 0 0 0 2px rgba(1, 122, 63, 0.1);
    border-radius: 4px;

}

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

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

.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;
}

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

.content-wrap a.schedule-route__map-link-btn:hover {
    background: #008BEF;
    color: #fff;
}

.content-wrap .schedule-route--reverse a.schedule-route__map-link-btn {
    background: #FF9802;
}

.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  .schedule-route__stop-row {
    background: #FF9802;
}

.schedule-route--reverse .schedule-route__stop-header--active:hover .schedule-route__stop-row {
    
}

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

.schedule-route--reverse .schedule-route__stop-time-badge {
    background: rgba(255, 152, 2, 0.1);
}

.schedule-route--reverse .schedule-route__time:hover {
   background: rgba(1, 122, 63, 0.1);
}

.schedule-route--reverse .schedule-route__time--next {
    background: rgba(1, 122, 63, 0.1);
}


.schedule-route--reverse .schedule-route__time--selected {
    box-shadow: ;
}
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;}
.flatpickr-days { justify-content: center;}
.desktop-hidden {display: none !important}

@media (max-width: 991px) {
	.schedule-search-layout__content {
		width: 100%;
	}
}
@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;
    }
}


@media (max-width: 480px) {
	.desktop-hidden {display: inline-flex !important}
	.mobile-hidden {display: none !important}
    .schedule-route__controls {
        flex-direction: row;
        align-items: flex-start;
    }
	body a.blob-btn	{height: 56px;}
    .schedule-route__info-bar {width: 100%;flex-grow: 1;}
    .schedule-route__map-iframe {height: 300px;}
	.schedule-route__datepicker {width: 100%;}
	.schedule-route__stop-header {gap: 8px;}
	.schedule-route__form {flex-basis: calc(100% - 120px);}
	.schedule-route__stop-times {padding: 12px 10px 15px;}
	.schedule-route__stop-header .schedule-route__stop-row {padding: 6px 16px;}
}
