/**
 * WE Custourcore - Tour Card Style 3
 * Step 4D.2C - Independent Style 3 CSS Asset
 *
 * Presentation ownership:
 * - This file styles only the `style3` Tour Card variant.
 * - Default and Style 2 assets remain independently owned and unchanged.
 * - Slider layout/motion/navigation remain out of scope for this step.
 *
 * The visual direction is intentionally travel/editorial: image-led discovery,
 * compact facts, strong price hierarchy and restrained actions. R3 aligns
 * body rhythm, facts and footer geometry with the proven Style 2 language while
 * preserving Style 3 image-led media and duration presentation. All selectors
 * are scoped beneath `.wecustourcore-tour-card--style3` to prevent leakage.
 */

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 {
	--wecustourcore-style3-accent: var(--dt-accent, #f28c28);
	--wecustourcore-style3-accent-hover: #dd7416;
	--wecustourcore-style3-heading: var(--dt-primary-900, #10284b);
	--wecustourcore-style3-text: #667085;
	--wecustourcore-style3-muted: #98a2b3;
	--wecustourcore-style3-border: #e4e7ec;
	--wecustourcore-style3-surface: #ffffff;
	--wecustourcore-style3-soft: #f7f9fc;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	background: var(--wecustourcore-style3-surface);
	border: 1px solid var(--wecustourcore-style3-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: none;
	transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3:hover {
	border-color: #c9d0db;
	box-shadow: 0 12px 28px rgba(16, 40, 75, 0.09);
	transform: translateY(-2px);
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3.wecustourcore-tour-card--most-popular {
	border: 2px solid var(--wecustourcore-style3-accent);
	box-shadow: none;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__media--style3 {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 11;
	background: #e9edf3;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__image-link--style3 {
	display: block;
	width: 100%;
	height: 100%;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__media--style3 img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3:hover .wecustourcore-tour-card__media--style3 img {
	transform: scale(1.035);
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__media--style3::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(5, 24, 56, 0.22) 0%, rgba(5, 24, 56, 0) 40%);
	content: "";
	pointer-events: none;
}

/*
 * Align Style 3 badge presentation with the frozen Style 2 visual contract.
 * Duration remains in the normalized/renderer contract but is not presented as
 * a separate overlay chip so the media header matches Style 2.
 */
:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__badge--style3 {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	max-width: calc(100% - 40px);
	padding: 9px 24px;
	background: var(--wecustourcore-style3-accent);
	border: 0;
	border-radius: 0 0 8px 8px;
	clip-path: none;
	color: #ffffff;
	font-size: 0.74rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	transform: translateX(-50%);
	white-space: normal;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__duration--style3 {
	display: none;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__body--style3 {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	padding: 28px 24px 24px;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__title--style3 {
	margin: 0 0 16px;
	min-height: 80px;
	color: var(--wecustourcore-style3-heading);
	font-size: clamp(1.35rem, 1.75vw, 1.75rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__title--style3 a {
	color: inherit;
	text-decoration: none;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__title--style3 a:hover,
:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__title--style3 a:focus-visible {
	color: var(--wecustourcore-style3-accent);
	text-decoration: none;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__title--style3 a:focus-visible,
:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__actions--style3 a:focus-visible {
	outline: 2px solid var(--wecustourcore-style3-accent);
	outline-offset: 3px;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__facts--style3 {
	display: grid;
	gap: 12px;
	margin-top: 24px;
	padding: 0;
	background: transparent;
	border-radius: 0;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__fact--style3 {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: var(--wecustourcore-style3-text);
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.45;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__fact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20px;
	width: 20px;
	min-height: 20px;
	font-size: 0.96rem;
	line-height: 1.2;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__fact-text {
	min-width: 0;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__footer--style3 {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-top: auto;
	padding-top: 25px;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__price--style3 {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	border: 0;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__price--style3 small {
	color: var(--wecustourcore-style3-muted);
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__price-values {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 5px 8px;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__price-values strong {
	color: var(--wecustourcore-style3-heading);
	font-size: 1.22rem;
	font-weight: 800;
	line-height: 1.15;
	white-space: nowrap;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__price-original {
	color: var(--wecustourcore-style3-muted);
	font-size: 0.72rem;
	font-weight: 600;
	white-space: nowrap;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__discount-badge {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding: 4px 7px;
	background: #fff1df;
	border-radius: 999px;
	color: #9d4e00;
	font-size: 0.65rem;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__actions--style3 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	flex: 0 1 252px;
	width: 252px;
	max-width: 100%;
	min-width: 0;
	margin: 0 0 1px;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__actions--style3.wecustourcore-tour-card__actions--single {
	grid-template-columns: minmax(0, 1fr);
	width: 126px;
}


:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__view-link--style3,
:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__book-link--style3 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-width: 0;
	height: 46px;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: 7px;
	box-shadow: none;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.035em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__view-link--style3 {
	background: var(--wecustourcore-style3-accent);
	border-color: var(--wecustourcore-style3-accent);
	color: #ffffff;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__book-link--style3 {
	background: var(--wecustourcore-style3-heading);
	border-color: var(--wecustourcore-style3-heading);
	color: #ffffff;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__view-link--style3:hover {
	background: var(--wecustourcore-style3-accent-hover);
	border-color: var(--wecustourcore-style3-accent-hover);
	color: #ffffff;
	text-decoration: none;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__book-link--style3:hover {
	background: var(--wecustourcore-style3-heading);
	border-color: var(--wecustourcore-style3-heading);
	color: #ffffff;
	text-decoration: none;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__view-arrow {
	display: inline-block;
	font-size: 1.08em;
	line-height: 1;
	transition: transform 0.18s ease;
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__view-link--style3:hover .wecustourcore-tour-card__view-arrow {
	transform: translateX(3px);
}

:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__book-icon {
	display: inline-block;
	font-size: 0.98rem;
	line-height: 1;
}

@media (max-width: 1199.98px) {
	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__body--style3 {
		padding: 22px 21px 20px;
	}
}

@media (max-width: 767.98px) {
	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__footer--style3 {
		gap: 10px;
	}

	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__actions--style3 {
		flex: 1 1 auto;
		width: auto;
		max-width: none;
		gap: 7px;
	}

	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__view-link--style3,
	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__book-link--style3 {
		height: 44px;
		padding: 0 10px;
		font-size: 0.69rem;
	}

	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 {
		border-radius: 16px;
	}

	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__media--style3 {
		aspect-ratio: 16 / 10.5;
	}


	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__body--style3 {
		padding: 21px 19px 19px;
	}

	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__title--style3 {
		min-height: 80px;
		font-size: 1.35rem;
	}

	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__facts--style3 {
		margin-top: 16px;
		padding: 14px;
	}
}

@media (max-width: 420px) {
	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__footer--style3 {
		gap: 8px;
	}

	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__actions--style3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 5px;
	}

	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__view-link--style3,
	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__book-link--style3 {
		padding: 0 7px;
		font-size: 0.63rem;
		letter-spacing: 0.02em;
	}
}

@media (prefers-reduced-motion: reduce) {
	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3,
	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__media--style3 img,
	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__view-link--style3,
	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__book-link--style3,
	:is(.wecustourcore-tours, .wecustourcore-single-tour-related) .wecustourcore-tour-card--style3 .wecustourcore-tour-card__view-arrow {
		transition: none;
	}
}
