/*
 * author Alex
 * 16.04.2026
 *
 * Trip card v2 - 3 section layout for search results
 * Loaded after style.css to guarantee cascade priority
 */

/* Sorting bar: results count + filter button */
.route-sorting {
	margin-top: 20px !important;
	margin-bottom: 20px !important;
	justify-content: flex-end !important;
	gap: 20px !important;
}
.sorting-count {
	font-weight: 400 !important;
	font-size: 16px !important;
}
.filter-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 5px !important;
	width: 150px !important;
	height: 40px !important;
	background: #fff !important;
	border: 1px solid #CFCFCF !important;
	border-radius: 100px !important;
	color: #000 !important;
	font-weight: 400 !important;
	font-size: 16px !important;
	text-decoration: none !important;
}
.filter-link:hover {
	border-color: #94C11F !important;
	color: #000 !important;
}
.filter-link svg {
	width: 24px !important;
	height: 24px !important;
}

/* Card shadow */
.Trip-box .Box-main {
	border: none !important;
	box-shadow: 0px 4px 20px 0px rgba(0,0,0,0.15) !important;
}

/* === SECTION 1: Top (white) === */
.tc-section-top {
	padding: 20px !important;
}
.tc-recommend-badge {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	background: rgba(99,43,183,0.1) !important;
	color: #632BB7 !important;
	font-size: 14px !important;
	padding: 4px 8px !important;
	border-radius: 100px !important;
	margin-bottom: 10px !important;
	line-height: 1.5 !important;
	white-space: nowrap !important;
}
.tc-recommend-badge svg {
	flex-shrink: 0 !important;
	width: 16px !important;
	height: 16px !important;
}
.tc-top-content {
	display: flex !important;
	align-items: flex-start !important;
	gap: 30px !important;
}
.tc-route-group {
	flex: 1 0 0% !important;
	min-width: 0 !important;
	display: flex !important;
	align-items: flex-start !important;
	gap: 20px !important;
}
.tc-departure,
.tc-arrival {
	flex-shrink: 0 !important;
	width: 63px !important;
}
.tc-date {
	font-size: 14px !important;
	color: #A6A6A6 !important;
	line-height: 1.5 !important;
}
.tc-time {
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 24px !important;
}
.tc-city {
	font-size: 16px !important;
	line-height: 1.5 !important;
	margin-top: 5px !important;
	white-space: nowrap !important;
}
.tc-station {
	font-size: 14px !important;
	color: #A6A6A6 !important;
	line-height: 1.5 !important;
	/* station overflows 63px parent, wraps at timeline end (63+20+300) */
	width: 380px !important;
}
.tc-timeline {
	flex-shrink: 0 !important;
	width: 300px !important;
	text-align: center !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
}
.tc-duration {
	font-size: 14px !important;
	line-height: 1.5 !important;
	white-space: nowrap !important;
}
.tc-timeline-line {
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
	width: 100% !important;
}
.tc-dot {
	width: 8px !important;
	height: 8px !important;
	border-radius: 50% !important;
	background: transparent !important;
	border: 2px solid #94C11F !important;
	box-sizing: border-box !important;
	flex-shrink: 0 !important;
}
.tc-line {
	flex: 1 !important;
	height: 0 !important;
	border-top: 2px dashed #94C11F !important;
}
.tc-bus-icon {
	flex-shrink: 0 !important;
}
.tc-price-group {
	flex-shrink: 0 !important;
	text-align: right !important;
	white-space: nowrap !important;
}
.tc-price-group .free_places {
	font-size: 16px !important;
	color: #E74011 !important;
}
.tc-cashback-badge {
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	border: 1px solid #94C11F !important;
	border-radius: 100px !important;
	padding: 3px 6px !important;
	font-size: 14px !important;
	color: #72971F !important;
	line-height: 1.5 !important;
	margin-top: 5px !important;
}
.tc-cashback-badge svg {
	flex-shrink: 0 !important;
}
.tc-cashback-info-btn {
	display: inline-flex !important;
	text-decoration: none !important;
	line-height: 0 !important;
	cursor: pointer !important;
}
.tc-buttons {
	flex-shrink: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-start !important;
}
.tc-buttons .bil-but {
	width: 130px !important;
	min-width: 130px !important;
	margin-left: 0 !important;
}
.tc-buttons .bil-but .green-btn,
.tc-buttons .bil-but .no_sale {
	width: 130px !important;
	min-width: 130px !important;
	height: 40px !important;
}

/* === SECTION 2: Middle (gray) === */
.tc-section-middle {
	background: #F8F8F8 !important;
	padding: 15px 20px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
}
.tc-route-info {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	flex-shrink: 0 !important;
}
.tc-route-info > svg {
	flex-shrink: 0 !important;
}
.tc-route-name {
	font-size: 16px !important;
	line-height: 1.5 !important;
}
.tc-carrier-info {
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
}
.tc-carrier-logo {
	height: 20px !important;
	width: 86px !important;
	display: block !important;
	margin-top: -4px !important;
}
.tc-gps-badge {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	background: rgba(24,119,242,0.15) !important;
	color: #1877F2 !important;
	font-size: 14px !important;
	padding: 2px 6px !important;
	border-radius: 100px !important;
	line-height: 1.5 !important;
	margin-top: -4px !important;
}

/* === SECTION 3: Bottom (white) === */
.tc-section-bottom {
	padding: 10px 20px 20px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
}
.tc-badges-left {
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
	flex-shrink: 0 !important;
}
.tc-eticket-badge {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	height: 24px !important;
	padding: 0 6px 0 8px !important;
	border-radius: 100px !important;
	background: rgba(114,151,31,0.15) !important;
	color: #72971F !important;
	font-size: 14px !important;
	white-space: nowrap !important;
}
.tc-eticket-badge svg {
	flex-shrink: 0 !important;
}
.tc-badges-right {
	display: flex !important;
	align-items: center !important;
}
.tc-badges-right .facilities {
	margin: 0 !important;
	padding: 0 !important;
}
/* facility icons: transparent bg, icons already have fill #B0B3D3 in SVG */
.tc-section-bottom .facilities li a,
.tc-section-bottom .facilities li a:hover,
.tc-section-bottom .facilities li a.active {
	background: transparent !important;
	width: 30px !important;
	height: 30px !important;
}
.tc-badges-left .payment-on-boarding-bage {
	height: 24px !important;
	padding: 0 8px !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	margin-right: 0 !important;
	position: static !important;
	border-radius: 100px !important;
}

/* === MOBILE === */
@media screen and (max-width: 991px) {
	.tc-section-top {
		padding: 15px !important;
	}
	.tc-recommend-badge {
		font-size: 12px !important;
		margin-bottom: 8px !important;
	}
	.tc-top-content {
		flex-wrap: wrap !important;
		gap: 10px !important;
	}
	.tc-route-group {
		flex: 0 0 100% !important;
		flex-wrap: wrap !important;
		gap: 0 !important;
	}
	.tc-departure,
	.tc-arrival {
		width: 45% !important;
	}
	.tc-arrival {
		text-align: right !important;
	}
	.tc-station {
		font-size: 12px !important;
		white-space: normal !important;
		width: auto !important;
	}
	.tc-date {
		font-size: 12px !important;
	}
	.tc-time {
		font-size: 20px !important;
		line-height: 1.2 !important;
	}
	.tc-city {
		font-size: 14px !important;
	}
	.tc-timeline {
		flex: 0 0 100% !important;
		width: 100% !important;
		order: 3 !important;
		padding: 5px 0 !important;
	}
	.tc-timeline-line {
		max-width: 280px !important;
		margin: 0 auto !important;
	}
	.tc-duration {
		font-size: 12px !important;
	}
	.tc-price-group {
		flex: 1 1 0% !important;
		text-align: left !important;
	}
	.tc-price-group .free_places {
		font-size: 12px !important;
	}
	.tc-buttons {
		align-self: flex-start !important;
	}
	.tc-buttons .bil-but {
		width: auto !important;
		min-width: auto !important;
	}
	.tc-buttons .bil-but .green-btn {
		width: auto !important;
		min-width: 100px !important;
		height: 36px !important;
		font-size: 14px !important;
		padding: 0 16px !important;
	}
	.tc-section-middle {
		padding: 10px 15px !important;
		gap: 5px !important;
	}
	.tc-route-name {
		font-size: 12px !important;
	}
	.tc-carrier-info {
		font-size: 12px !important;
	}
	.tc-section-bottom {
		padding: 8px 15px 15px !important;
		flex-wrap: wrap !important;
		gap: 8px !important;
	}
	.tc-eticket-badge {
		font-size: 12px !important;
		height: 22px !important;
	}
	.tc-badges-left .payment-on-boarding-bage {
		height: 22px !important;
		font-size: 12px !important;
	}
	.tc-badges-right {
		width: 100% !important;
	}
	.tc-badges-right .facilities {
		justify-content: flex-start !important;
	}
}
