#bus-tracking  {
    margin: 0 auto;
	display:block;
}

#bus-tracking .wrap-schedule-item {
	max-height:788px;
	overflow:auto;
	display:flex;
	height: 65vh;
	gap:12px;
	flex-direction: column;
	padding-top:5px;
	padding-bottom:12px;
}

#bus-tracking .schedule-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 15px;
	cursor:pointer;
}
#bus-tracking .schedule-item.arrow {
    padding: 13px;
}
#bus-tracking .schedule-item.active {
    outline: 4px solid rgba(0, 171, 255, 1);
}

#bus-tracking .schedule-item span.carrier-name {
    font-weight:bold;
    font-size: 16px;
}

#bus-tracking .schedule-details {
    display: flex;
    justify-content: space-between;
	flex-direction: column;
}

#bus-tracking .schedule-details p {
    margin: 0;
    font-size: 14px;
}

#bus-tracking .schedule-details .dt-flex{
	display:flex;
	align-items: center;
	gap:4px;
}

#map-buses {
	display: block;
	width: 100%;
	height: 65vh;
	z-index: 1;
	border-radius:16px;
}

#bus-tracking .arrow-icon .arrow {
    width: 26px;
    height: 22px;
    transition: transform 0.3s ease;
	background:url('/img/infobus_7/arrow_direct.svg?v=4') no-repeat;
}

#bus-tracking #description_route .description {
	display:flex;
	flex-direction: column;
	gap:12px;
}

#bus-tracking #description_route {
	position: absolute;
    z-index: 999;
    padding: 10px;
    left: 16px;
    right: 16px;
    bottom: 16px;
	max-height:220px;
	overflow:auto;
	background-color:#FFF;
	display:none;
	border-radius:16px;
	border:1px solid #CCC;
}

#bus-tracking #description_route .dt-flex{
	display:flex;
	gap:2px;
}

#bus-tracking #description_route .dt-flex.dt-route-name > div {
	flex-grow: 1;
}


#bus-tracking .dt-flex.dt-route-name {
	justify-content: space-between;
}

#bus-tracking #description_route .dt-schedule {
	flex-direction: column;
	gap:8px;
}

#bus-tracking #description_route .dt-bus-photo {
	width:60px;
	height:40px;
	border-radius:4px;
}

#bus-tracking #description_route .dt-carrier {
	justify-content: space-between;
	align-items: center;
}

#bus-tracking #description_route .dt-schedule > div,
#bus-tracking #description_route .dt-carrier > div {
	display:flex;
	color:rgba(0, 171, 255, 1);
	align-items: center;
	gap:4px;
}
#bus-tracking .schedule-details .dt-flex .icon-bus:before,
#bus-tracking #description_route .dt-carrier .icon-bus:before {
	color:#000 !important;
}

#bus-tracking #description_route span.icon-refresh {
	background:url('/img/infobus_7/icon/routes/ic24-rotate.svg') 50% 50% no-repeat;
	width:24px;
	height:24px;
	display:inline-block;
}

#bus-tracking #description_route span.icon-schedule {
	background:url('/img/infobus_7/icon/routes/24_Clock.svg') 50% 50% no-repeat;
	width:24px;
	height:24px;
	display:inline-block;
}

#bus-tracking .arrow-active {
    width: 61px;
    height: 61px;
    position: relative; /* Контейнер должен быть relative */
    z-index: 1; /* Базовый z-index для контейнера */
}

#bus-tracking .arrow-active::after {
    content: '';
    display: block;
    width: 61px;
    height: 61px;
    animation: pulse 1.5s ease-out infinite;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* Анимация ниже основного элемента */
    opacity: 0.7;
}

#bus-tracking .arrow-active::before {
    content: '';
    display: block;
    width: 61px;
    height: 61px;
    background: url('/img/infobus_7/icon/routes/active_pointer.svg') 50% 50% no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Изображение выше анимации */
    transition: transform 0.3s ease;
}

 /* Анимация пульсации */
@keyframes pulse {
	0% {
		transform: scale(0.3);
		background-color: #3498db; /* Светло-синий */
		opacity: 0.2;
	}

	50% {
		transform: scale(0.9);
		background-color:rgba(0, 171, 255, 1); /* Темно-синий */
		opacity: 0.3;
	}

	100% {
		transform: scale(0.6);
		background-color: #3498db; /* Возврат к светло-синему */
		opacity: 0.6;
	}
}

#bus-tracking .point-finish {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
	background:url('/img/infobus_7/icon/routes/Pointer.svg') 50% 50% no-repeat;
	display:inline-block;
}

#bus-tracking .point-start {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
	background:url('/img/infobus_7/icon/routes/point_start.svg') 50% 50% no-repeat;
	display:inline-block;
}

#bus-tracking .point-end {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
	background:url('/img/infobus_7/icon/routes/point_finish.svg') 50% 50% no-repeat;
	display:inline-block;
}

#bus-tracking .point-bus {
    width:100%;
	background:url('/img/infobus_7/icon/routes/dash.svg') 50% 50% repeat-x;
    display: flex;
    align-items: center;
}

#bus-tracking .point-bus:before {
	content:'';
	height:2px;
	display:inline-block;
	background:rgba(0, 171, 255, 1);
}

#bus-tracking .point-bus:after {
	content:'';
    width:49px;
	height:14px;
	display:inline-block;
	background:url('/img/infobus_7/icon/routes/bus.svg') 50% 50% no-repeat;
}

#bus-tracking .arrow-down {
	background:url('/img/infobus_7/icon/arrow_down.svg') 100% 50% no-repeat;
	text-align:right;
}

#bus-tracking div.route-path.open .arrow-down {
	-webkit-transition: 0.27s ease-in-out;
    -o-transition: 0.27s ease-in-out;
    transition: 0.27s ease-in-out;
    -webkit-transform: scaleY(-1);
    -ms-transform: scaleY(-1);
    -o-transform: scaleY(-1);
    transform: scaleY(-1);
}

#bus-tracking #map-buses .back_to_routes {
	position:absolute;
	top:16px;
	left:16px;
	color:#000;
	z-index:999;
	font-size:20px;
}

#bus-tracking .leaflet-right .leaflet-control {
	background-color:#FFF;
	margin-right: 16px;
	margin-top: 16px;
	border: 1px solid #CCC;
}

#bus-tracking .leaflet-bar {
    display: flex;
    align-items: center;
    gap: 5px;
}
#bus-tracking .zoom-info {
    font-size: 14px;
    padding: 0 10px;
}

#bus-tracking .zoom-in, #bus-tracking .zoom-out {
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    color: #000;
    font-size: 18px;
	background: white;
    font-weight: 700;
	height:40px;
}

#bus-tracking #map-buses.map-active span.back_to_routes {
	display:flex !important;
}

/* Базовый стиль для скроллбара */
#bus-tracking .wrap-schedule-item::-webkit-scrollbar {
    width: 12px; /* ширина вертикального скролла */
    height: 12px; /* высота горизонтального скролла */
}

/* Убираем фон дорожки */
#bus-tracking .wrap-schedule-item::-webkit-scrollbar-track {
    background: transparent; /* полностью прозрачный фон */
}

/* Стилизуем ползунок */
#bus-tracking .wrap-schedule-item::-webkit-scrollbar-thumb {
    background: white; /* белый цвет ползунка */
    border-radius: 10px; /* скругленные углы */
    border: 2px solid transparent; /* можно добавить обводку если нужно */

    /* Плавный переход при наведении */
    transition: background 0.3s;
}

/* Опционально: эффект при наведении */
#bus-tracking .wrap-schedule-item::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.9); /* чуть более яркий белый */
}

/* Для Firefox (альтернативный способ) */
#bus-tracking .wrap-schedule-item {
    scrollbar-color: white transparent; /* цвет ползунка и фона */
    scrollbar-width: auto;
}

@media (max-width: 992px) {
	#map-buses {
		display: block;
		width: 100%;
		height: 100vh;
		z-index: 1;
		border-radius:16px;
		overflow: hidden;
		max-height:200px;
		margin:12px 0;
	}

	#map-buses.map-active {
	  max-height: calc(100vh - 130px); /* или конкретное значение в px */
	}


	#bus-tracking  div.row  {
		display:flex;
		flex-direction: column;
	}

	#map-buses  div.see_to_map {
		display:flex !important;
		flex-wrap: wrap;
		z-index:999;
		align-items: flex-end;
		justify-content: center;
		position:absolute;
		bottom:32px;
		left: 0;
        right: 0;
	}

	#map-buses #description_route  span.views-stations {
		display:flex;
		justify-content: space-between;
		gap: 4px;
        padding: 12px 0;
        color: #2D3745;
        font-family: 'Exo20-Medium', Arial, sans-serif;
    }

	#map-buses #description_route  span.views-stations > span {
		flex-grow: 1;
	}

	#map-buses:not(.map-active)  div.see_to_map button {
		display:flex !important;
		gap: 8px;
        align-items: center;
        max-width: 220px;
        width: 100%;
        justify-content: center;
		height:40px;
	}

	footer, #map-buses.map-active  div.see_to_map {
		display:none;
	}

	div.program-page .breadcrumb>.active {
		display:inline-block !important;
	}
	#bus-tracking #description_route .route-path > .path-route{
		display:none;
		overflow: hidden;
	}

	#bus-tracking #description_route {
		left:4px;
		right:4px;
		bottom:4px;
		max-height:85%;
		height: auto;
		transition: all 0.5s ease;
	}

	#map-buses.map-active .leaflet-control-attribution {
		display:none;
	}

	#bus-tracking h1.title-page {
		margin-top: 0;
	}
}

/* Loading spinner styles for carrier template */
#loader-container.showMainLoader {
    display: flex!important;
    z-index: 10000;
}

.main-loader-container {
    display: none;
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
	margin:0 auto;
}

.main-loader-container .main-loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 0.8s linear infinite;
	margin-right:10px;
}

.main-loader-container .text-loader {
	color:#FFF;
	font-size:24px;
	min-width:200px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.main-loading {
    position: relative;
}

body.main-loading::before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

@media (max-width: 992px) {
	.main-loader-container .text-loader {
		font-size:16px;
	}
}


/* Carrier-specific route styles */
#bus-tracking .time-date-destination {
    position: relative;
    display: block;
    margin: 6px 0;
    height: 22px;
}

#bus-tracking .views-stations span {
    display: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
}

#bus-tracking .path-route > *:not(.time-date-destination):not(.station-modal-detail) {
    display: none;
}

#bus-tracking .path-route * {
    font-size: initial;
}

#bus-tracking .time-date-destination .stationFullNameWrapper {
    position: absolute;
    top: 3px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
}

#bus-tracking .stationFullName {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding-left: 9px;
    font-size: 12px;
    font-weight: 600;
}

#bus-tracking .time-date-destination.startRoute .stationFullName,
#bus-tracking .time-date-destination.endRoute .stationFullName{
    padding-left: 0;
    font-size: 16px;
}

#bus-tracking .time-date-destination .graphics {
    position: relative;
    width: 130px;
    height: 20px;
}

#bus-tracking .time-date-destination .graphics::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 10px;
    background: black;
    z-index: 10;
    top: 21px;
    left: 55px;
}

#bus-tracking .time-date-destination .dotWrapper i {
    position: absolute;
}

#bus-tracking .time-date-destination .dotWrapper i::before {
    position: absolute;
    top: -12px;
    left: -20px;
    margin: 0;
    padding: 0;
    width: 20px;
    height: 20px;
    background: #fff;
    color: #333333;
    z-index: 2;
}

#bus-tracking .time-date-destination.endRoute .dotWrapper i::before {
    color: #00ABFF;
}

#bus-tracking .time-date-destination.endRoute .dotWrapper i::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -15px;
    width: 10px;
    height: 10px;
    margin: 0;
    background-color: #00ABFF;
    border-radius: 50%;
    z-index: 11;
}

#bus-tracking .time-date-destination .clickableStation {
    display: inline-block;
    transition: all 0.3s;
    font-size: 12px;
    padding-left: 30px;
    font-weight: 400;
    color: #949494;
    cursor: pointer;
}

#bus-tracking .time-date-destination .clickableStation:hover {
    text-decoration: underline;
}

#bus-tracking .time-date-destination .clickableStation i.flaticon-placeholders4 {
    display: none;
}

@media (max-width: 992px) {
    #bus-tracking .views-stations span {
        display: inline;
    }
}

@media (max-width: 1199px) {
    #bus-tracking .row {
        display: flex;
        flex-direction: column;
    }

    #bus-tracking .col-lg-8 {
        order: 0;
    }

    #bus-tracking .wrap-schedule-item {
        order: 1;
    }

	#bus-tracking  #description_route .dt-route-name h5 {
        font-size: 16px;
    }
}