/* Popular Routes Widget */
.ct-popular-routes {
	--ct-routes-accent: #eab308;
	direction: rtl;
}

.ct-popular-routes *,
.ct-popular-routes *::before,
.ct-popular-routes *::after {
	box-sizing: border-box;
}

.ct-popular-routes .container {
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 16px;
	padding-right: 16px;
}

.ct-popular-routes .section-header {
	margin-bottom: 48px;
	text-align: center;
}

.ct-popular-routes .section-title {
	margin: 0 0 16px;
	color: #1e293b;
	font-size: 30px;
	line-height: 36px;
	font-weight: 700;
}

.ct-popular-routes .section-description {
	margin: 0;
	color: #64748b;
	font-size: 18px;
	line-height: 28px;
}

.ct-popular-routes .section-divider {
	width: 96px;
	height: 4px;
	margin: 24px auto 0;
	background-color: var(--ct-routes-accent, #eab308);
	border-radius: 9999px;
}

.ct-popular-routes .routes-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

.ct-popular-routes .route-card {
	overflow: hidden;
	background-color: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 16px;
	box-shadow:
		0 4px 6px -1px rgb(0 0 0 / 0.1),
		0 2px 4px -2px rgb(0 0 0 / 0.1);
	transition:
		box-shadow 300ms ease,
		transform 300ms ease;
}

.ct-popular-routes .route-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.ct-popular-routes .route-card__image-wrapper {
	position: relative;
	height: 192px;
	overflow: hidden;
	background-color: #0f172a;
}

.ct-popular-routes .route-card__poster {
	width: 100%;
	height: 100%;
}

.ct-popular-routes .route-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 10;
	background-color: rgb(30 41 59 / 0.2);
	transition: background-color 300ms ease;
	pointer-events: none;
}

.ct-popular-routes .route-card:hover .route-card__overlay {
	background-color: transparent;
}

.ct-popular-routes .route-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform 500ms ease;
	display: block;
}

.ct-popular-routes .route-card__image--placeholder {
	width: 100%;
	height: 100%;
}

.ct-popular-routes .route-card:hover .route-card__image {
	transform: scale(1.1);
}

.ct-popular-routes .route-card__video-source {
	display: none !important;
}

.ct-popular-routes .route-card__play-btn {
	position: absolute;
	z-index: 25;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	cursor: pointer;
	background-image: none;
	box-shadow: none;
	transition:
		transform 200ms ease,
		background-color 200ms ease,
		opacity 200ms ease;
}

.ct-popular-routes .route-card__play-btn {
	top: 50%;
	left: 50%;
	width: 56px;
	height: 56px;
	color: #1f2937;
	background-color: rgb(250 204 21 / 0.95);
	transform: translate(-50%, -50%);
}

.ct-popular-routes .route-card__play-btn:hover,
.ct-popular-routes .route-card__play-btn:focus {
	color: #1f2937;
	background-color: #facc15;
	transform: translate(-50%, -50%) scale(1.06);
}

.ct-popular-routes .route-card__play-btn[hidden] {
	display: none !important;
}

.ct-popular-routes .route-card__play-icon,
.ct-popular-routes .route-card__play-icon svg,
.ct-popular-routes .route-card__play-icon i {
	width: 28px;
	height: 22px;
	font-size: 22px;
	line-height: 1;
	margin-left: 3px;
}

.ct-popular-routes .route-card__image--placeholder {
	background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.ct-popular-routes .route-card__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 40;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	box-shadow:
		0 1px 3px 0 rgb(0 0 0 / 0.1),
		0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.ct-popular-routes .route-card__badge--yellow {
	color: #0f172a;
	background-color: var(--ct-routes-accent, #eab308);
}

.ct-popular-routes .route-card__badge--dark {
	color: #facc15;
	background-color: #1e293b;
}

.ct-popular-routes .route-card__body {
	padding: 24px;
}

.ct-popular-routes .route-card__title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.ct-popular-routes .route-card__title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #1e293b;
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
}

.ct-popular-routes .route-card__city {
	display: inline;
}

.ct-popular-routes .route-card__arrow-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ct-routes-accent, #eab308);
}

.ct-popular-routes .route-card__arrow-icon,
.ct-popular-routes .route-card__arrow-icon svg,
.ct-popular-routes .route-card__arrow-icon i {
	width: 18px;
	height: 18px;
	font-size: 16px;
	line-height: 1;
}

.ct-popular-routes .route-card__info-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 24px;
}

.ct-popular-routes .route-card__info {
	display: flex;
	align-items: center;
	color: #475569;
	font-size: 14px;
	line-height: 20px;
}

.ct-popular-routes .route-card__info-icon-wrap,
.ct-popular-routes .route-card__button-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ct-popular-routes .route-card__info-icon,
.ct-popular-routes .route-card__info-icon svg,
.ct-popular-routes .route-card__info-icon i {
	width: 16px;
	height: 16px;
	font-size: 14px;
	line-height: 1;
}

.ct-popular-routes .route-card__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding-top: 12px;
	padding-bottom: 12px;
	color: #334155;
	font-size: 16px;
	line-height: 24px;
	font-weight: 500;
	text-decoration: none;
	background-color: #f8fafc;
	background-image: none;
	border: 0;
	border-radius: 12px;
	box-shadow: none;
	cursor: pointer;
	transition:
		background-color 300ms ease,
		color 300ms ease;
}

.ct-popular-routes .route-card__button:hover,
.ct-popular-routes .route-card__button:focus,
.ct-popular-routes .route-card__button:active {
	color: #facc15;
	background-color: #1e293b;
	background-image: none;
	text-decoration: none;
}

.ct-popular-routes .route-card__info-icon-wrap {
	margin-left: 8px;
	color: #94a3b8;
}

.ct-popular-routes .route-card__button-icon,
.ct-popular-routes .route-card__button-icon svg,
.ct-popular-routes .route-card__button-icon i {
	width: 16px;
	height: 16px;
	font-size: 14px;
	line-height: 1;
	transform: rotate(180deg);
}

@media (min-width: 768px) {
	.ct-popular-routes .section-title {
		font-size: 36px;
		line-height: 40px;
	}

	.ct-popular-routes .routes-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.ct-popular-routes .routes-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Video modal popup */
body.ct-routes-modal-open {
	overflow: hidden;
}

.ct-routes-video-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	pointer-events: none;
}

.ct-routes-video-modal[hidden] {
	display: none !important;
}

.ct-routes-video-modal.is-open {
	pointer-events: auto;
}

.ct-routes-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 50% 20%, rgb(234 179 8 / 0.12), transparent 55%),
		rgb(15 23 42 / 0.82);
	backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity 280ms ease;
}

.ct-routes-video-modal.is-open .ct-routes-video-modal__backdrop {
	opacity: 1;
}

.ct-routes-video-modal__dialog {
	position: relative;
	z-index: 2;
	width: min(920px, 100%);
	overflow: hidden;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid rgb(241 245 249 / 0.9);
	border-radius: 24px;
	box-shadow:
		0 25px 50px -12px rgb(0 0 0 / 0.45),
		0 0 0 1px rgb(255 255 255 / 0.06) inset;
	opacity: 0;
	transform: translateY(24px) scale(0.96);
	transition:
		opacity 280ms ease,
		transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ct-routes-video-modal.is-open .ct-routes-video-modal__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.ct-routes-video-modal__accent {
	height: 4px;
	background: linear-gradient(90deg, #ca8a04 0%, var(--ct-routes-accent, #eab308) 45%, #fde047 100%);
}

.ct-routes-video-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 20px 16px;
	background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.ct-routes-video-modal__title-wrap {
	min-width: 0;
	flex: 1;
}

.ct-routes-video-modal__label {
	display: inline-block;
	margin-bottom: 6px;
	padding: 4px 10px;
	color: #fde047;
	font-size: 11px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	background-color: rgb(234 179 8 / 0.14);
	border: 1px solid rgb(250 204 21 / 0.28);
	border-radius: 9999px;
}

.ct-routes-video-modal__title {
	margin: 0;
	color: #f8fafc;
	font-size: 18px;
	line-height: 28px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ct-routes-video-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	color: #e2e8f0;
	background-color: rgb(255 255 255 / 0.08);
	background-image: none;
	border: 1px solid rgb(255 255 255 / 0.12);
	border-radius: 9999px;
	box-shadow: none;
	cursor: pointer;
	transition:
		background-color 200ms ease,
		color 200ms ease,
		border-color 200ms ease,
		transform 200ms ease;
}

.ct-routes-video-modal__close:hover,
.ct-routes-video-modal__close:focus {
	color: #0f172a;
	background-color: var(--ct-routes-accent, #eab308);
	border-color: #facc15;
	transform: scale(1.05);
}

.ct-routes-video-modal__close-icon,
.ct-routes-video-modal__close-icon svg,
.ct-routes-video-modal__close-icon i {
	width: 18px;
	height: 18px;
	font-size: 16px;
	line-height: 1;
}

.ct-routes-video-modal__body {
	padding: 16px;
	background-color: #0f172a;
}

.ct-routes-video-modal__player {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background-color: #000000;
	border-radius: 16px;
	box-shadow:
		0 0 0 1px rgb(255 255 255 / 0.08) inset,
		0 20px 40px -20px rgb(0 0 0 / 0.65);
}

.ct-routes-video-modal__player .route-card__video,
.ct-routes-video-modal__player .route-card__aparat-iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	object-fit: contain;
	background-color: #000000;
}

@media (min-width: 768px) {
	.ct-routes-video-modal {
		padding: 32px 24px;
	}

	.ct-routes-video-modal__header {
		padding: 24px 24px 18px;
	}

	.ct-routes-video-modal__title {
		font-size: 22px;
		line-height: 32px;
	}

	.ct-routes-video-modal__body {
		padding: 20px;
	}
}
