/**
 * WE Custourcore - Single Tour Route
 * Step 3E.2
 *
 * Isolation rules:
 * - Every production selector is rooted at `.wecustourcore-single-tour-route`.
 * - Prototype utility/design-system classes are consumed but never redefined globally.
 * - No Bootstrap grid, global typography, header/footer or button rules are overridden.
 * - No JavaScript is required by the Route overview presentation.
 */

.wecustourcore-single-tour-route {
	background: #fff;
}

.wecustourcore-single-tour-route .wecustourcore-single-tour-route__content {
	max-width: 860px;
	padding: 0 0 64px;
	margin-bottom: 0;
	border-bottom: 1px solid var(--dt-border, #e4e8ef);
}

.wecustourcore-single-tour-route .wecustourcore-single-tour-route__eyebrow {
	display: block;
}

.wecustourcore-single-tour-route .wecustourcore-single-tour-route__heading {
	margin-bottom: 20px;
}

.wecustourcore-single-tour-route .wecustourcore-single-tour-route__card {
	padding: 32px;
	border: 1px solid var(--dt-border, #e4e8ef);
	border-radius: var(--dt-radius-lg, 20px);
	background: linear-gradient(180deg, #fff, var(--dt-surface-soft, #f6f8fb));
	overflow: hidden;
}

.wecustourcore-single-tour-route .wecustourcore-single-tour-route__line {
	position: relative;
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 30px;
}

.wecustourcore-single-tour-route .wecustourcore-single-tour-route__line::before {
	content: "";
	position: absolute;
	left: 5%;
	right: 5%;
	top: 18px;
	height: 2px;
	background: var(--dt-accent, #e6b84f);
	z-index: 0;
}

.wecustourcore-single-tour-route .wecustourcore-single-tour-route__stop {
	position: relative;
	z-index: 1;
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	color: var(--dt-primary-900, #071b42);
}

.wecustourcore-single-tour-route .wecustourcore-single-tour-route__stop span {
	display: flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	margin: 0 auto 8px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--dt-primary-900, #071b42);
	box-shadow: 0 0 0 1px var(--dt-border, #e4e8ef);
	color: #fff;
	font-weight: 800;
}

.wecustourcore-single-tour-route .wecustourcore-single-tour-route__stop strong {
	display: block;
	font-size: 0.82rem;
	overflow-wrap: anywhere;
}

.wecustourcore-single-tour-route .wecustourcore-single-tour-route__summary {
	margin: 0 0 12px;
	color: var(--dt-primary-900, #071b42);
}

.wecustourcore-single-tour-route .wecustourcore-single-tour-route__description > :last-child {
	margin-bottom: 0;
}

@media (max-width: 1199.98px) {
	.wecustourcore-single-tour-route .wecustourcore-single-tour-route__stop strong {
		font-size: 0.74rem;
	}
}

@media (max-width: 767.98px) {
	.wecustourcore-single-tour-route .wecustourcore-single-tour-route__content {
		padding-bottom: 48px;
	}

	.wecustourcore-single-tour-route .wecustourcore-single-tour-route__card {
		padding: 24px 18px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.wecustourcore-single-tour-route .wecustourcore-single-tour-route__line {
		min-width: 650px;
	}
}

/**
 * Step 4A - Route Items production section.
 *
 * Route Items deliberately reuses the Route asset and visual primitives while
 * keeping selectors scoped to its own section. It renders immediately after the
 * canonical Route section and preserves horizontal overflow on small screens.
 */
.wecustourcore-single-tour-route-items {
	background: #fff;
}

.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__content {
	max-width: 860px;
	padding: 0 0 64px;
	margin-bottom: 0;
	border-bottom: 1px solid var(--dt-border, #e4e8ef);
}

.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__eyebrow {
	display: block;
}

.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__heading {
	margin-bottom: 20px;
}

.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__card {
	padding: 32px;
	border: 1px solid var(--dt-border, #e4e8ef);
	border-radius: var(--dt-radius-lg, 20px);
	background: linear-gradient(180deg, #fff, var(--dt-surface-soft, #f6f8fb));
	overflow: hidden;
}

.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__line {
	position: relative;
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 0;
}

.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__line::before {
	content: "";
	position: absolute;
	left: 5%;
	right: 5%;
	top: 18px;
	height: 2px;
	background: var(--dt-accent, #e6b84f);
	z-index: 0;
}

.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__stop {
	position: relative;
	z-index: 1;
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	color: var(--dt-primary-900, #071b42);
}

.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__stop > span {
	display: flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	margin: 0 auto 8px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--dt-primary-900, #071b42);
	box-shadow: 0 0 0 1px var(--dt-border, #e4e8ef);
	color: #fff;
	font-weight: 800;
}

.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__stop strong,
.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__distance {
	display: block;
	overflow-wrap: anywhere;
}

.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__stop strong {
	font-size: 0.82rem;
}

.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__distance {
	margin-top: 4px;
	color: var(--dt-text-muted, #6b7280);
	font-size: 0.74rem;
}

@media (max-width: 1199.98px) {
	.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__stop strong {
		font-size: 0.74rem;
	}
}

@media (max-width: 767.98px) {
	.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__content {
		padding-bottom: 48px;
	}

	.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__card {
		padding: 24px 18px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.wecustourcore-single-tour-route-items .wecustourcore-single-tour-route-items__line {
		min-width: 650px;
	}
}
