/* IMV Tour Hero --------------------------------------------------------- */


/*
 * Horizontal scrollbar guard.
 * The JS adds .imv-tour-hero-page only on pages where this widget exists.
 * This prevents the small 100vw/scrollbar-width overflow seen on desktop
 * and mobile without affecting other pages.
 */
html.imv-tour-hero-page,
body.imv-tour-hero-page {
	max-width: 100%;
	overflow-x: hidden !important;
}

@supports (overflow: clip) {
	html.imv-tour-hero-page,
	body.imv-tour-hero-page {
		overflow-x: clip !important;
	}
}

.imv-tour-hero,
.imv-tour-hero * {
	box-sizing: border-box;
}

.imv-tour-hero {
	--imv-overlay-top: rgba(0, 0, 0, 0);
	--imv-overlay-mid: rgba(0, 0, 0, .18);
	--imv-overlay-bottom: rgba(0, 0, 0, .88);
	--imv-glass-bg: rgba(255,255,255,.13);
	--imv-glass-border: rgba(255,255,255,.30);

	position: relative;

	/*
	 * Full-bleed layout.
	 * 100vw is retained for Elementor boxed containers, while page-level
	 * horizontal overflow is clipped by the widget page class below.
	 */
	width: 100vw !important;
	max-width: 100vw !important;
	height: 100vh;
	min-height: 100vh;

	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;

	overflow: hidden;
	overflow-x: clip;
	background: #111;
	font-family: "Inter", Arial, sans-serif;
}


.imv-tour-hero__content,
.imv-tour-hero__info,
.imv-tour-hero__thumbs {
	min-width: 0;
}

.imv-tour-hero__backgrounds,
.imv-tour-hero__overlay,
.imv-tour-hero__content {
	max-width: 100%;
}

.imv-tour-hero__backgrounds,
.imv-tour-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.imv-tour-hero__backgrounds {
	z-index: 1;
}

.imv-tour-hero__bg {
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	will-change: opacity, transform;
}

.imv-tour-hero__bg--current {
	z-index: 1;
	opacity: 1;
	transform: scale(1);
}

.imv-tour-hero__bg--next {
	z-index: 2;
	opacity: 0;
	transform: scale(1.035);
}

.imv-tour-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background:
		linear-gradient(
			180deg,
			var(--imv-overlay-top) 0%,
			var(--imv-overlay-top) 30%,
			var(--imv-overlay-mid) 58%,
			var(--imv-overlay-bottom) 100%
		);
}

.imv-tour-hero__content {
	position: absolute;
	z-index: 5;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 50px;
	padding: 0 90px 64px;
}

.imv-tour-hero__info {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 900px;
}

.imv-tour-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 20px;
	color: rgba(255, 255, 255, .68);
	font-family: "Inter", Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	transition: color .3s ease;
}

.imv-tour-hero__back:hover {
	color: #fff;
}

.imv-tour-hero__back-arrow {
	display: inline-block;
	font-size: 20px;
	line-height: 1;
	transform: translateY(-1px);
}

.imv-tour-hero__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 23px;
}

.imv-tour-hero__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 15px;
	border-radius: 100px;
	background: #0069b4;
	color: #fff;
	font-family: "Inter", Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
}

.imv-tour-hero__duration {
	color: rgba(255, 255, 255, .55);
	font-family: "Inter", Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
}

.imv-tour-hero__title {
	margin: 0;
	color: #fff;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0;
}

.imv-tour-hero__thumbs {
	flex: 0 1 auto;
	max-width: 100%;
	display: flex;
	align-items: flex-end;
	gap: 12px;
	padding: 8px 0 8px;
	overflow: visible;
	scrollbar-width: none;
}

.imv-tour-hero__thumbs::-webkit-scrollbar {
	display: none;
}

.imv-tour-hero__thumb {
	position: relative;
	flex: 0 0 112px;
	width: 112px;
	height: 70px;
	padding: 0;
	margin: 0;
	border: 1px solid rgba(255,255,255,.10) !important;
	border-radius: 6px;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	color: inherit !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: none;
	text-shadow: none !important;
	filter: none !important;
	overflow: visible;
	outline: none;
	cursor: pointer;
	line-height: 1;
	font: inherit;
	transition:
		width .28s cubic-bezier(.2,.7,.2,1),
		height .28s cubic-bezier(.2,.7,.2,1),
		flex-basis .28s cubic-bezier(.2,.7,.2,1),
		border-color .2s ease,
		padding .2s ease,
		box-shadow .2s ease;
}

/* Prevent Elementor/theme global button hover/focus/active colors (including pink overlays). */
.imv-tour-hero__thumb:hover,
.imv-tour-hero__thumb:focus,
.imv-tour-hero__thumb:focus-visible,
.imv-tour-hero__thumb:active {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	color: inherit !important;
	filter: none !important;
	text-decoration: none !important;
}

.imv-tour-hero__thumb::before,
.imv-tour-hero__thumb::after {
	content: none !important;
	display: none !important;
}


.imv-tour-hero__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border: 0;
	border-radius: 6px;
	opacity: .82;
	transition: opacity .3s ease, transform .45s ease;
	pointer-events: none;
}

.imv-tour-hero__thumb:not(.is-active):hover img {
	opacity: 1;
}

.imv-tour-hero__thumb:not(.is-active):hover {
	border-color: rgba(255,255,255,.35) !important;
	background: transparent !important;
	background-color: transparent !important;
}

.imv-tour-hero__thumb.is-active,
.imv-tour-hero__thumb.is-active:hover,
.imv-tour-hero__thumb.is-active:focus,
.imv-tour-hero__thumb.is-active:focus-visible,
.imv-tour-hero__thumb.is-active:active {
	flex-basis: 165px;
	width: 165px;
	height: 92px;
	padding: 6px;
	background: var(--imv-glass-bg) !important;
	background-color: var(--imv-glass-bg) !important;
	background-image: none !important;
	border: 1px solid var(--imv-glass-border) !important;
	-webkit-backdrop-filter: blur(12px) saturate(145%);
	backdrop-filter: blur(12px) saturate(145%);
	box-shadow:
		0 8px 30px rgba(0,0,0,.22),
		inset 0 1px 0 rgba(255,255,255,.20);
	filter: none !important;
}

.imv-tour-hero__thumb.is-active img {
	opacity: 1;
}

.imv-tour-hero__active-arrow {
	position: absolute;
	left: 50%;
	bottom: -22px;
	width: 15px;
	height: 15px;
	opacity: 0;
	border-top: 4px solid #fff;
	border-left: 4px solid #fff;
	border-right: 0 !important;
	border-bottom: 0 !important;
	border-radius: 2px;
	transform: translateX(-50%) rotate(45deg);
	transition: opacity .3s ease, bottom .3s ease;
	pointer-events: none;
}

.imv-tour-hero__thumb.is-active .imv-tour-hero__active-arrow {
	opacity: 1;
	bottom: -22px;
}

.imv-tour-hero__editor-notice {
	padding: 18px 20px;
	border: 1px dashed #c8c8c8;
	background: #fff;
	color: #444;
	font: 14px/1.5 Arial, sans-serif;
}

/* Tablet */
@media (max-width: 1024px) {
	.imv-tour-hero__content {
		flex-direction: column;
		align-items: flex-start;
		gap: 28px;
		padding: 0 35px 50px;
	}

	.imv-tour-hero__info {
		width: 100%;
		max-width: 100%;
	}

	.imv-tour-hero__thumbs {
		width: 100%;
		overflow-x: auto;
		overflow-y: visible;
		padding-top: 8px;
		padding-bottom: 28px;
		-webkit-overflow-scrolling: touch;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.imv-tour-hero {
		height: 100svh;
		min-height: 100svh;
	}

	.imv-tour-hero__content {
		gap: 24px;
		padding: 0 20px 30px;
	}

	.imv-tour-hero__back {
		margin-bottom: 16px;
	}

	.imv-tour-hero__meta {
		gap: 10px;
		margin-bottom: 18px;
	}

	.imv-tour-hero__title {
		font-size: 30px;
	}

	.imv-tour-hero__thumbs {
		gap: 9px;
	}
}
