/**
 * Tour archive — premium cinematic hero
 */

.tt-tours-archive {
	overflow-x: hidden;
}

.tt-tours-archive-hero {
	position: relative;
	color: #fff;
	overflow: visible;
}

.tt-tours-archive-hero__gallery {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
	min-height: clamp(520px, 62vh, 720px);
}

.tt-tours-archive-hero__overlay {
	background:
		linear-gradient(180deg, rgba(26, 10, 46, 0.35) 0%, rgba(26, 10, 46, 0.55) 42%, rgba(26, 10, 46, 0.94) 100%),
		linear-gradient(90deg, rgba(91, 33, 182, 0.42) 0%, rgba(26, 10, 46, 0.15) 48%, transparent 72%);
}

.tt-tours-archive-hero__grain {
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
	background-size: 180px 180px;
	mix-blend-mode: overlay;
	pointer-events: none;
}

.tt-tours-archive-hero__content {
	position: relative;
	margin-top: 0;
	padding-top: calc(var(--tt-header-offset, 116px) + 1.5rem);
	padding-bottom: 4.5rem;
	z-index: 3;
}

.tt-tours-archive-hero__thumbs {
	z-index: 4;
	left: 50%;
	transform: translateX(-50%);
	right: auto;
	width: min(100% - 2rem, 720px);
	justify-content: center;
	padding: 0 0.5rem;
}

.tt-tours-archive-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.75fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: end;
}

.tt-tours-archive-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.95rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 1rem;
	color: var(--tt-accent);
}

.tt-tours-archive-hero__title {
	margin-bottom: 1rem;
	text-shadow:
		0 2px 24px rgba(26, 10, 46, 0.65),
		0 1px 4px rgba(0, 0, 0, 0.35);
}

.tt-tours-archive-hero__subtitle {
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	line-height: 1.65;
	max-width: 560px;
	margin: 0 0 1.5rem;
	opacity: 0.94;
	text-shadow: 0 1px 12px rgba(26, 10, 46, 0.45);
}

.tt-tours-archive-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-bottom: 1.65rem;
}

.tt-tours-archive-hero__stat {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.75rem 1rem;
	min-width: 6.5rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 8px 32px rgba(26, 10, 46, 0.18);
}

.tt-tours-archive-hero__stat strong {
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.tt-tours-archive-hero__stat strong .bi-star-fill {
	color: var(--tt-accent);
	font-size: 0.95rem;
}

.tt-tours-archive-hero__stat span {
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.72);
}

.tt-tours-archive-hero__stat--accent strong {
	color: var(--tt-accent);
}

.tt-tours-archive-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tt-tours-archive-hero__visual {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1rem;
	pointer-events: none;
}

.tt-tours-archive-hero__mosaic,
.tt-tours-archive-hero__featured {
	pointer-events: auto;
}

.tt-tours-archive-hero__mosaic {
	position: relative;
	width: min(100%, 340px);
	height: 320px;
	perspective: 900px;
}

.tt-tours-archive-hero__mosaic-item {
	position: absolute;
	border-radius: 1.15rem;
	overflow: hidden;
	box-shadow:
		0 12px 40px rgba(26, 10, 46, 0.45),
		0 0 0 1px rgba(255, 255, 255, 0.12);
	will-change: transform;
	transition:
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.4s ease,
		z-index 0s;
}

.tt-tours-archive-hero__mosaic-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	will-change: transform;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.tt-tours-archive-hero__mosaic-item--1 {
	top: 0;
	right: 0;
	width: 72%;
	height: 58%;
	z-index: 2;
	animation: tt-mosaic-float-1 7s ease-in-out infinite;
}

.tt-tours-archive-hero__mosaic-item--1 img {
	animation: tt-mosaic-kenburns-1 14s ease-in-out infinite alternate;
}

.tt-tours-archive-hero__mosaic-item--2 {
	bottom: 8%;
	left: 0;
	width: 52%;
	height: 46%;
	z-index: 3;
	animation: tt-mosaic-float-2 8.5s ease-in-out infinite 0.8s;
}

.tt-tours-archive-hero__mosaic-item--2 img {
	animation: tt-mosaic-kenburns-2 16s ease-in-out infinite alternate 1.2s;
}

.tt-tours-archive-hero__mosaic-item--3 {
	top: 38%;
	left: 28%;
	width: 44%;
	height: 38%;
	z-index: 1;
	opacity: 0.88;
	animation: tt-mosaic-float-3 9.5s ease-in-out infinite 1.6s;
}

.tt-tours-archive-hero__mosaic-item--3 img {
	animation: tt-mosaic-kenburns-3 18s ease-in-out infinite alternate 2s;
}

.tt-tours-archive-hero__mosaic-item:hover {
	z-index: 5;
	box-shadow:
		0 20px 56px rgba(26, 10, 46, 0.55),
		0 0 0 1px rgba(255, 255, 255, 0.22);
}

.tt-tours-archive-hero__mosaic-item--1:hover {
	animation-play-state: paused;
	transform: translateY(-6px) scale(1.03);
}

.tt-tours-archive-hero__mosaic-item--2:hover {
	animation-play-state: paused;
	transform: rotate(-4deg) translateY(-8px) scale(1.04);
}

.tt-tours-archive-hero__mosaic-item--3:hover {
	animation-play-state: paused;
	transform: rotate(5deg) translateY(-5px) scale(1.03);
}

.tt-tours-archive-hero__mosaic-item:hover img {
	animation-play-state: paused;
	transform: scale(1.08);
}

@keyframes tt-mosaic-float-1 {
	0%,
	100% {
		transform: translate3d(0, 0, 0);
	}
	35% {
		transform: translate3d(-6px, -12px, 0);
	}
	70% {
		transform: translate3d(4px, -6px, 0);
	}
}

@keyframes tt-mosaic-float-2 {
	0%,
	100% {
		transform: rotate(-4deg) translate3d(0, 0, 0);
	}
	40% {
		transform: rotate(-3deg) translate3d(8px, -10px, 0);
	}
	75% {
		transform: rotate(-5deg) translate3d(-4px, -4px, 0);
	}
}

@keyframes tt-mosaic-float-3 {
	0%,
	100% {
		transform: rotate(5deg) translate3d(0, 0, 0);
	}
	45% {
		transform: rotate(6deg) translate3d(-7px, -8px, 0);
	}
	80% {
		transform: rotate(4deg) translate3d(5px, -12px, 0);
	}
}

@keyframes tt-mosaic-kenburns-1 {
	0% {
		transform: scale(1) translate3d(0, 0, 0);
	}
	100% {
		transform: scale(1.1) translate3d(-2%, -2%, 0);
	}
}

@keyframes tt-mosaic-kenburns-2 {
	0% {
		transform: scale(1.05) translate3d(2%, 0, 0);
	}
	100% {
		transform: scale(1.14) translate3d(-3%, -3%, 0);
	}
}

@keyframes tt-mosaic-kenburns-3 {
	0% {
		transform: scale(1.02) translate3d(-1%, 1%, 0);
	}
	100% {
		transform: scale(1.12) translate3d(2%, -2%, 0);
	}
}

.tt-tours-archive-hero__featured {
	width: min(100%, 340px);
	padding: 1.15rem 1.25rem;
	border-radius: 1.15rem;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 16px 48px rgba(26, 10, 46, 0.28);
}

.tt-tours-archive-hero__featured-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--tt-accent);
	margin-bottom: 0.5rem;
}

.tt-tours-archive-hero__featured-title {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.35rem;
}

.tt-tours-archive-hero__featured-location {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8125rem;
	opacity: 0.88;
	margin: 0 0 0.75rem;
}

.tt-tours-archive-hero__featured-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--tt-accent);
	text-decoration: none;
	transition: gap 0.2s ease;
}

.tt-tours-archive-hero__featured-link:hover {
	gap: 0.55rem;
	color: #fff;
}

.tt-tours-archive-hero__wave {
	position: relative;
	margin-top: -1px;
	line-height: 0;
	z-index: 5;
}

.tt-tours-archive-hero__wave svg {
	display: block;
	width: 100%;
	height: clamp(48px, 6vw, 80px);
}

.tt-tours-archive__body {
	padding-top: 0.5rem;
}

@media (max-width: 991.98px) {
	.tt-tours-archive-hero__grid {
		grid-template-columns: 1fr;
	}

	.tt-tours-archive-hero__visual {
		display: none;
	}

	.tt-tours-archive-hero__content {
		padding-bottom: 5rem;
	}

	.tt-tours-archive-hero__thumbs {
		bottom: 1rem;
	}
}

@media (max-width: 575.98px) {
	.tt-tours-archive-hero__stats {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tt-tours-archive-hero__stat {
		min-width: 0;
	}

	.tt-tours-archive-hero__actions .btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tt-tours-archive-hero__mosaic-item,
	.tt-tours-archive-hero__mosaic-item img {
		animation: none !important;
	}

	.tt-tours-archive-hero__mosaic-item--2 {
		transform: rotate(-4deg);
	}

	.tt-tours-archive-hero__mosaic-item--3 {
		transform: rotate(5deg);
	}
}
