/* РАЗДЕЛ МАРШРУТОВ */

.routes-archive {
	position: relative;
	padding-bottom: 120px;
}

/* HERO */
.routes-archive-hero {
	position: relative;
	padding: 180px 0 105px;
	margin-bottom: 50px;
	overflow: hidden;
	color: #fff;
}

.routes-archive-hero-bg {
	position: absolute;
	inset: 0;
	background:
		url('/wp-content/themes/newTheme/img/hero.png') center/cover no-repeat;
	transform: scale(1.04);
}

/* .routes-archive-hero-bg img {
	width: 100%;
    height: 100%;
    object-fit: cover;
} */

.routes-archive-hero-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			180deg,
			rgba(10,16,14,0.16) 0%,
			rgba(10,16,14,0.46) 42%,
			rgba(10,16,14,0.9) 100%
		);
}

.routes-archive-head {
	position: relative;
	z-index: 2;
	max-width: 840px;
}

.routes-archive-label {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 16px;
	margin-bottom: 20px;
	border-radius: 999px;
	background: rgba(255,255,255,0.14);
	backdrop-filter: blur(10px);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.routes-archive-title {
	margin: 0 0 20px;
	font-size: clamp(44px, 6vw, 90px);
	line-height: .92;
	font-weight: 800;
	letter-spacing: -0.055em;
}

.routes-archive-desc {
	max-width: 700px;
	font-size: 18px;
	line-height: 1.85;
	color: rgba(255,255,255,0.86);
}

/* GRID */
.routes-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px;
}

/* CARD */
.route-card {
	position: relative;
	border-radius: 34px;
	overflow: hidden;
	background: rgba(255,255,255,0.78);
	border: 1px solid rgba(28,43,38,0.06);
	box-shadow: 0 24px 60px rgba(21,39,33,0.08);
	transition: .35s ease;
}

.route-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 36px 90px rgba(21,39,33,0.14);
}

.route-card-image {
	position: relative;
	display: block;
	height: 320px;
	overflow: hidden;
}

.route-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s ease;
}

.route-card:hover .route-card-image img {
	transform: scale(1.08);
}

.route-card-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			180deg,
			rgba(10,16,14,0.02) 0%,
			rgba(10,16,14,0.16) 50%,
			rgba(10,16,14,0.52) 100%
		);
}

.route-card-badge {
	position: absolute;
	top: 22px;
	left: 22px;
	z-index: 2;
	height: 36px;
	padding: 0 16px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	background: rgba(255,255,255,0.92);
	color: var(--green-deep);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.route-card-content {
	padding: 28px;
}

.route-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 18px;
}

.route-card-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
}

.route-card-title {
	margin: 0 0 16px;
	font-size: 34px;
	line-height: .98;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.route-card-title a {
	color: var(--green-deep);
}

.route-card-text {
	font-size: 15px;
	line-height: 1.8;
	color: var(--muted);
	margin-bottom: 22px;
}

/* ОСТАНОВКИ */
.route-card-stops {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 26px;
}

.route-card-stop {
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(46,91,79,0.08);
	color: var(--green-deep);
	font-size: 12px;
	font-weight: 700;
}

/* BOTTOM */
.route-card-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.route-card-price {
	font-size: 24px;
	font-weight: 800;
	color: var(--green-deep);
}

.route-card-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--green);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.route-card-link:hover {
	background: var(--green-deep);
	color: #fff;
}

.route-single {
	position: relative;
}

/* HERO */
.route-hero {
	position: relative;
	min-height: 720px;
	display: flex;
	align-items: flex-end;
	padding: 180px 0 110px;
	overflow: hidden;
	color: #fff;
}

.route-hero-bg {
	position: absolute;
	inset: 0;
	background: #1f3f37;
}

.route-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.route-hero-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(10,16,14,0.12) 0%, rgba(10,16,14,0.36) 42%, rgba(10,16,14,0.88) 100%),
		linear-gradient(110deg, rgba(24,53,47,0.42) 0%, rgba(24,53,47,0.08) 58%, transparent 100%);
}

.route-hero-content {
	position: relative;
	z-index: 2;
	max-width: 900px;
}

.route-title {
	margin: 0 0 20px;
	font-size: clamp(44px, 6vw, 88px);
	line-height: .92;
	font-weight: 800;
	letter-spacing: -0.055em;
	text-shadow: 0 12px 34px rgba(0,0,0,0.24);
}

.route-short {
	max-width: 720px;
	font-size: 20px;
	line-height: 1.75;
	color: rgba(255,255,255,0.88);
}

/* INFO */
.route-info {
	position: relative;
	z-index: 4;
	margin-top: -58px;
	padding-bottom: 70px;
}

.route-info-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.route-info-item {
	padding: 24px;
	border-radius: 26px;
	background: rgba(255,255,255,0.84);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255,255,255,0.55);
	box-shadow: 0 22px 55px rgba(21,39,33,0.12);
}

.route-info-item span {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--muted);
}

.route-info-item strong {
	display: block;
	font-size: 26px;
	line-height: 1.1;
	font-weight: 800;
	color: var(--green-deep);
}

/* COMMON */
.route-map-section,
.route-content-section,
.route-stops,
.route-gallery-section,
.route-booking {
	position: relative;
}

.route-map-section {
	padding: 0 0 90px;
}

.section-heading {
	margin-bottom: 30px;
}

.section-heading h2 {
	margin: 0;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.035em;
	color: var(--green-deep);
}

/* КАРТА */
.route-map {
	width: 100%;
	height: 560px;
	border-radius: 34px;
	overflow: hidden;
	background: #dcd4c5;
	box-shadow: 0 26px 70px rgba(21,39,33,0.14);
}

/* CONTENT */
.route-content-section {
	padding: 0 0 90px;
}

.route-content {
	font-size: 18px;
	line-height: 1.9;
	color: var(--text);
}

.route-content > *:first-child {
	margin-top: 0;
}

.route-content p {
	margin-bottom: 1.25em;
}

.route-content h2,
.route-content h3,
.route-content h4 {
	color: var(--green-deep);
	font-weight: 800;
	line-height: 1.15;
	margin-top: 1.8em;
	margin-bottom: .7em;
	letter-spacing: -0.02em;
}

.route-content img {
	max-width: 100%;
	height: auto;
	border-radius: 24px;
	/* margin: 28px 0; */
}

/* ОСТАНОВКИ */
.route-stops {
	padding: 0 0 var(--section-space-md);
}

.route-stops-list {
	display: grid;
	gap: 18px;
}

.route-stop-card {
	position: relative;
	display: grid;
	grid-template-columns: 86px 220px 1fr;
	gap: 24px;
	align-items: center;
	padding: 20px;
	border-radius: 30px;
	background: rgba(255,255,255,0.78);
	border: 1px solid rgba(28,43,38,0.06);
	box-shadow: 0 18px 48px rgba(21,39,33,0.08);
	overflow: hidden;
}

.route-stop-card::before {
	content: "";
	position: absolute;
	left: 42px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(180deg, transparent, rgba(46,91,79,0.22), transparent);
}

.route-stop-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 26px 70px rgba(21,39,33,0.12);
}

.route-stop-number {
	position: relative;
	z-index: 2;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--green) 0%, #4f8c7b 100%);
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	box-shadow: 0 14px 32px rgba(46,91,79,0.26);
}

.route-stop-image {
	position: relative;
	overflow: hidden;
	border-radius: 22px;
	aspect-ratio: 4 / 3;
	background: #e8dfd1;
}

.route-stop-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.route-stop-card:hover .route-stop-image img {
	transform: scale(1.06);
}

.route-stop-content h3 {
	margin: 0 0 10px;
	font-size: 26px;
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--green-deep);
}

.route-stop-content p {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--muted);
}

/* ГАЛЕРЕЯ */
.route-gallery-section {
	padding: 0 0 110px;
}

.route-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.route-gallery-item {
	position: relative;
	display: block;
	border-radius: 26px;
	overflow: hidden;
	background: #e8dfd1;
	box-shadow: 0 16px 42px rgba(21,39,33,0.08);
}

.route-gallery-item::after {
	content: "\f00e";
	font-family: FontAwesome;
	position: absolute;
	right: 18px;
	bottom: 18px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.88);
	color: var(--green-deep);
	box-shadow: 0 10px 24px rgba(0,0,0,0.12);
	opacity: 0;
	transform: translateY(8px);
	transition: .35s ease;
}

.route-gallery-item img {
	width: 100%;
	height: 340px;
	object-fit: cover;
	transition: transform .7s ease;
}

.route-gallery-item:hover img {
	transform: scale(1.06);
}

.route-gallery-item:hover::after {
	opacity: 1;
	transform: translateY(0);
}

/* CTA */
.route-booking {
	padding: 0 0 120px;
}

.route-booking-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 28px;
	align-items: center;
	padding: 34px;
	border-radius: 32px;
	background:
		radial-gradient(circle at 12% 18%, rgba(215,169,75,0.16), transparent 28%),
		linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,248,237,0.78));
	border: 1px solid rgba(28,43,38,0.06);
	box-shadow: 0 24px 70px rgba(21,39,33,0.10);
}

.route-booking-content h2 {
	margin: 6px 0 12px;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.045em;
	color: var(--green-deep);
}

.route-booking-content p {
	max-width: 680px;
	margin: 0;
	font-size: 16px;
	line-height: 1.75;
	color: var(--muted);
}

.route-booking-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.route-booking .container {
	display: flex;
	justify-content: center;
}

.route-booking-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	border: 0;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none !important;
	cursor: pointer;
	white-space: nowrap;
	transition: .25s ease;
}

.route-booking-btn:hover {
	transform: translateY(-3px);
	color: #2d2412;
}

.route-booking-btn-main {
	background: var(--green);
	color: #fff !important;
}

.route-booking-btn-main:hover {
	background: var(--green-deep);
	color: #fff !important;
	transform: translateY(-2px);
}

.route-booking-btn-pay {
	background: rgba(127,66,84,0.10);
	color: var(--berry) !important;
}

.route-booking-btn-pay:hover {
	background: var(--berry);
	color: #fff !important;
	transform: translateY(-2px);
}

/* МОДАЛКА ЗАПИСИ */
.route-booking-modal .modal-content {
	border: 0;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 30px 90px rgba(0,0,0,0.26);
}

.route-booking-modal .modal-header {
	align-items: flex-start;
	padding: 24px 28px;
	border-bottom: 1px solid rgba(28,43,38,0.08);
	background:
		radial-gradient(circle at 20% 20%, rgba(215,169,75,0.12), transparent 28%),
		linear-gradient(135deg, rgba(46,91,79,0.08), rgba(127,66,84,0.08));
}

.route-booking-modal .modal-title {
	margin: 0;
	font-size: 26px;
	line-height: 1.15;
	font-weight: 800;
	color: var(--green-deep);
	letter-spacing: -0.03em;
}

.route-modal-subtitle {
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 700;
	color: var(--muted);
}

.route-booking-modal .close {
	padding: 0;
	margin: 0;
	margin-left: auto;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,0.85);
	opacity: 1;
	color: var(--green-deep);
	text-shadow: none;
	cursor: pointer;
}

.route-booking-modal .modal-body {
	padding: 28px;
}

.route-card-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-right: auto;
}

.route-card-booking {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 15px;
	border-radius: 999px;
	background: rgba(127,66,84,0.09);
	color: var(--berry);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none !important;
}

.route-card-booking:hover {
	background: var(--berry);
	color: #fff;
}

/* MAP PINS */
/* .route-map-pin {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
}

.route-map-pin-img {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	border: 4px solid #fff;
	box-shadow: 0 10px 24px rgba(0,0,0,0.22);
	transition: transform .35s ease;
}

.route-map-pin:hover .route-map-pin-img {
	transform: scale(1.08);
}

.route-map-pin-title {
	margin-top: 8px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,0.96);
	color: var(--green-deep);
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
} */

/* BALLOON */
/* .route-map-balloon {
	width: 240px;
}

.route-map-balloon-image {
	height: 140px;
	border-radius: 16px;
	background-size: cover;
	background-position: center;
	margin-bottom: 14px;
}

.route-map-balloon-body strong {
	display: block;
	font-size: 18px;
	line-height: 1.2;
	margin-bottom: 10px;
	color: var(--green-deep);
}

.route-map-balloon-body a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--green);
} */

@media (max-width: 1199.98px) {
	.route-info-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.route-stop-card {
		grid-template-columns: 70px 180px 1fr;
	}
	.route-card-title {
		font-size: 28px;
	}
}

@media (max-width: 991.98px) {
	.routes-grid {
		grid-template-columns: 1fr;
	}

	.routes-archive-hero {
		padding: 180px 0 100px;
	}

	.route-booking-card {
		grid-template-columns: 1fr;
	}

	.route-booking-actions {
		justify-content: flex-start;
	}

	.route-hero {
		min-height: 600px;
		padding: 150px 0 90px;
	}

	.route-title {
		font-size: 54px;
	}

	.route-short {
		font-size: 18px;
	}

	.route-map {
		height: 460px;
		border-radius: 28px;
	}

	.route-stop-card {
		grid-template-columns: 64px 1fr;
	}

	.route-stop-image {
		grid-column: 1 / -1;
		order: -1;
	}

	.route-stop-card::before {
		display: none;
	}

	.route-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.routes-archive {
		padding-bottom: 80px;
	}

	.routes-archive-hero {
		padding: 150px 0 80px;
		margin-bottom: 34px;
	}

	.routes-archive-title {
		font-size: 42px;
		line-height: 1;
	}

	.routes-archive-desc {
		font-size: 16px;
		line-height: 1.7;
	}

	.route-card {
		border-radius: 26px;
	}

	.route-card-image {
		height: 240px;
	}

	.route-card-content {
		padding: 20px;
	}

	.route-card-title {
		font-size: 24px;
	}

	.route-card-bottom {
		flex-direction: column;
		align-items: stretch;
	}

	.route-card-link {
		width: 100%;
		justify-content: center;
	}
	.route-hero {
		min-height: 500px;
		padding: 130px 0 70px;
	}

	.route-title {
		font-size: 38px;
		line-height: 1;
	}

	.route-short {
		font-size: 16px;
		line-height: 1.65;
	}

	.route-info {
		margin-top: -38px;
		padding-bottom: 56px;
	}

	.route-info-grid,
	.route-gallery-grid {
		grid-template-columns: 1fr;
	}

	.route-info-item {
		padding: 20px;
		border-radius: 22px;
	}

	.route-info-item strong {
		font-size: 22px;
	}

	.route-map {
		height: 380px;
		border-radius: 22px;
	}

	.route-content {
		font-size: 16px;
		line-height: 1.8;
	}

	.route-stop-card {
		grid-template-columns: 1fr;
		padding: 16px;
		border-radius: 24px;
	}

	.route-stop-number {
		width: 52px;
		height: 52px;
		font-size: 17px;
	}

	.route-stop-content h3 {
		font-size: 22px;
	}

	.route-gallery-item img {
		height: 260px;
	}

	.route-booking-btn {
		width: 100%;
	}
}