/**
 * WE Custourcore - Single Tour Hero
 * Step 3C.3: Hero CSS / Responsive
 *
 * Scope rules:
 * - Every production rule is anchored to `.wecustourcore-single-tour-hero`.
 * - No global `body`, heading, Bootstrap grid, button, header or theme rule is
 *   overridden here.
 * - Deep Tour design-system variables are consumed with safe fallbacks.
 * - Dynamic images enter through CSS custom properties generated by the Hero
 *   renderer; image URLs are never hard-coded in this stylesheet.
 */

.wecustourcore-single-tour-hero {
	--wecustourcore-hero-desktop-image: none;
	--wecustourcore-hero-mobile-image: var(--wecustourcore-hero-desktop-image);

	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 620px;
	padding: 92px 0 76px;
	color: #fff;
	background-color: var(--dt-primary-900, #071b42);
	background-image:
		linear-gradient(
			90deg,
			rgba(5, 24, 56, 0.94),
			rgba(5, 24, 56, 0.62) 54%,
			rgba(5, 24, 56, 0.25)
		),
		var(--wecustourcore-hero-desktop-image);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	isolation: isolate;
}

/* Bottom shade mirrors the approved prototype without introducing extra markup. */
.wecustourcore-single-tour-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(0deg, rgba(5, 24, 56, 0.35), transparent 45%);
	pointer-events: none;
}

/* Keep Hero content above both background layers. */
.wecustourcore-single-tour-hero > .dt-container-wide {
	position: relative;
	z-index: 1;
}

.wecustourcore-single-tour-hero .wecustourcore-single-tour-hero__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 30px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9rem;
}

.wecustourcore-single-tour-hero .wecustourcore-single-tour-hero__breadcrumb a {
	color: #fff;
}

.wecustourcore-single-tour-hero .wecustourcore-single-tour-hero__eyebrow {
	color: #f4c868;
}

.wecustourcore-single-tour-hero .wecustourcore-single-tour-hero__title {
	max-width: 980px;
	margin-top: 0;
	color: #fff;
	font-size: clamp(3.1rem, 6.4vw, 6.2rem);
	line-height: 0.98;
}

.wecustourcore-single-tour-hero .wecustourcore-single-tour-hero__copy {
	max-width: 730px;
	color: #edf3fb;
	font-size: 1.12rem;
}

.wecustourcore-single-tour-hero .wecustourcore-single-tour-hero__price {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	padding: 22px 0;
	color: #fff;
}

.wecustourcore-single-tour-hero .wecustourcore-single-tour-hero__price span,
.wecustourcore-single-tour-hero .wecustourcore-single-tour-hero__price small {
	color: #dbe6f6;
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wecustourcore-single-tour-hero .wecustourcore-single-tour-hero__price strong {
	margin: 4px 0;
	color: #fff;
	font-family: var(--dt-font-heading, inherit);
	font-size: 2.15rem;
	line-height: 1.1;
}

/* Tablet landscape / smaller desktop. */
@media (max-width: 1199.98px) {
	.wecustourcore-single-tour-hero {
		min-height: 560px;
	}
}

/* Tablet: price moves below content through the existing Bootstrap grid. */
@media (max-width: 991.98px) {
	.wecustourcore-single-tour-hero {
		min-height: 540px;
		padding: 72px 0 56px;
	}

	.wecustourcore-single-tour-hero .wecustourcore-single-tour-hero__price {
		align-items: flex-start;
		text-align: left;
	}
}

/* Mobile: switch to the dedicated Mobile Hero image contract. */
@media (max-width: 767.98px) {
	.wecustourcore-single-tour-hero {
		min-height: 500px;
		padding: 56px 0 44px;
		background-image:
			linear-gradient(
				90deg,
				rgba(5, 24, 56, 0.94),
				rgba(5, 24, 56, 0.62) 54%,
				rgba(5, 24, 56, 0.25)
			),
			var(--wecustourcore-hero-mobile-image);
		background-position: 58% center;
	}

	.wecustourcore-single-tour-hero .wecustourcore-single-tour-hero__title {
		font-size: clamp(2.6rem, 14vw, 4.3rem);
	}
}

/*
 * Step 3C.4 - Hero CTA layout only.
 *
 * Button visual tokens remain owned by the existing Deep Tour design system
 * (`dt-btn*`). These rules only control the Hero-local CTA group so this plugin
 * does not redefine global button components or compete with the active theme.
 */
.wecustourcore-single-tour-hero .wecustourcore-single-tour-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.5rem;
}

/* Keep CTA layout usable on narrow screens without changing global `.dt-btn`. */
@media (max-width: 767.98px) {
	.wecustourcore-single-tour-hero .wecustourcore-single-tour-hero__actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.wecustourcore-single-tour-hero .wecustourcore-single-tour-hero__cta {
		width: 100%;
	}
}
