/**
 * Travel26 Hero Slider
 *
 * Contents
 * 1. Variables and frame
 * 2. Slide, image and overlay
 * 3. Content
 * 4. Buttons and video link
 * 5. Arrows and dots
 * 6. Options (overlay, zoom, animation, alignment)
 * 7. Responsive
 *
 * Colours read the Inoforest Core Design System when it is active, with the Travel26 design as fallback.
 */

/* 1. Variables and frame ---------------------------------------------------- */
.travel26-hero {
	--travel26-hero-accent: var(--inoforest-color-accent, #ff6a3d);
	--travel26-hero-accent-dark: color-mix(in srgb, var(--travel26-hero-accent) 85%, #000);
	--travel26-hero-bg: #0d1b2a;
	--travel26-hero-container: 1240px;
	--travel26-hero-gutter: 24px;
	--swiper-pagination-bullet-horizontal-gap: 4px;
	position: relative;
	overflow: hidden;
	color: #fff;
	background: var(--travel26-hero-bg);
}

/* 2. Slide, image and overlay ----------------------------------------------- */
.travel26-hero__slide {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--travel26-hero-height, clamp(720px, 100vh, 980px));
	padding: 200px 0 220px;
}

.travel26-hero__bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.travel26-hero .travel26-hero__bg img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	transform: scale(1.12);
	transition: transform 7s linear;
}

.travel26-hero .swiper-slide-active .travel26-hero__bg img {
	transform: scale(1);
}

.travel26-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: var(--travel26-hero-overlay-opacity, 1);
	background:
		linear-gradient(90deg, rgba(13, 27, 42, 0.82) 0%, rgba(13, 27, 42, 0.45) 55%, rgba(13, 27, 42, 0.15) 100%),
		linear-gradient(0deg, rgba(13, 27, 42, 0.5) 0%, transparent 40%);
}

/* 3. Content ------------------------------------------------------------------ */
.travel26-hero__container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: calc(var(--travel26-hero-container) + var(--travel26-hero-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--travel26-hero-gutter);
}

.travel26-hero__content {
	max-width: 760px;
}

.travel26-hero__subtitle {
	display: inline-block;
	margin-bottom: 14px;
	font-family: "Caveat", cursive;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 700;
	line-height: 1;
	color: var(--travel26-hero-accent);
}

.travel26-hero .travel26-hero__title {
	margin: 0 0 22px;
	font-size: clamp(2.5rem, 5.5vw, 4.75rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #fff;
}

.travel26-hero__title em {
	font-style: normal;
	color: transparent;
	-webkit-text-stroke: 2px currentColor;
	-webkit-text-stroke-color: #fff;
}

.travel26-hero__text {
	max-width: 560px;
	margin: 0 0 36px;
	font-size: 1.125rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.85);
}

/* 4. Buttons and video link ---------------------------------------------------- */
.travel26-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
}

.travel26-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 62px;
	padding: 18px 38px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 999px;
	transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.travel26-hero__btn:hover,
.travel26-hero__btn:focus-visible {
	transform: translateY(-2px);
}

.travel26-hero__btn i,
.travel26-hero__btn svg {
	width: 1.15em;
	height: 1.15em;
	font-size: 1.15em;
	fill: currentColor;
	transition: transform 0.35s ease;
}

.travel26-hero__btn:hover i,
.travel26-hero__btn:hover svg,
.travel26-hero__btn:focus-visible i,
.travel26-hero__btn:focus-visible svg {
	transform: translateX(3px);
}

.travel26-hero__btn--accent,
.travel26-hero__btn--accent:focus {
	color: #fff;
	background: var(--travel26-hero-accent);
	border-color: var(--travel26-hero-accent);
}

.travel26-hero__btn--accent:hover,
.travel26-hero__btn--accent:focus-visible {
	color: #fff;
	background: var(--travel26-hero-accent-dark);
	border-color: var(--travel26-hero-accent-dark);
	box-shadow: 0 12px 24px -10px var(--travel26-hero-accent-dark);
}

.travel26-hero__btn--outline,
.travel26-hero__btn--outline:focus {
	color: #fff;
	background: transparent;
	border-color: rgba(255, 255, 255, 0.6);
}

.travel26-hero__btn--outline:hover,
.travel26-hero__btn--outline:focus-visible {
	color: #0d1b2a;
	background: #fff;
	border-color: #fff;
}

.travel26-hero__video {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
}

.travel26-hero__video:hover,
.travel26-hero__video:focus-visible {
	color: var(--travel26-hero-accent);
}

.travel26-hero__play {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	width: 60px;
	height: 60px;
	color: var(--travel26-hero-accent);
	background: #fff;
	border-radius: 50%;
	transition: transform 0.35s ease;
}

.travel26-hero__play svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.travel26-hero__play::before,
.travel26-hero__play::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	animation: travel26-hero-ripple 2.4s linear infinite;
}

.travel26-hero__play::after {
	animation-delay: 1.2s;
}

.travel26-hero__video:hover .travel26-hero__play,
.travel26-hero__video:focus-visible .travel26-hero__play {
	transform: scale(1.06);
}

@keyframes travel26-hero-ripple {
	from {
		opacity: 1;
		transform: scale(1);
	}
	to {
		opacity: 0;
		transform: scale(1.9);
	}
}

/* 5. Arrows and dots (dots out-rank Elementor's e-swiper rules) --------------------- */
.travel26-hero__nav {
	position: absolute;
	z-index: 5;
	top: 50%;
	inset-inline-end: max(var(--travel26-hero-gutter), calc((100% - var(--travel26-hero-container)) / 2));
	display: flex;
	flex-direction: column;
	gap: 12px;
	transform: translateY(-50%);
}

.travel26-hero__arrow {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	padding: 0;
	color: #fff;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	backdrop-filter: blur(6px);
	transition: background 0.35s ease, border-color 0.35s ease;
}

.travel26-hero__arrow:hover,
.travel26-hero__arrow:focus-visible {
	background: var(--travel26-hero-accent);
	border-color: var(--travel26-hero-accent);
}

.travel26-hero__arrow svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.travel26-hero .travel26-hero__slider .travel26-hero__pagination.swiper-pagination {
	position: absolute;
	z-index: 5;
	top: auto;
	inset-inline-end: max(var(--travel26-hero-gutter), calc((100% - var(--travel26-hero-container)) / 2));
	bottom: 190px;
	inset-inline-start: auto;
	display: flex;
	gap: 10px;
	width: auto;
}

.travel26-hero .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	margin: 0;
	background: #fff;
	border-radius: 10px;
	opacity: 0.5;
	transition: width 0.35s ease, background 0.35s ease;
}

.travel26-hero .swiper-pagination-bullet-active {
	width: 30px;
	background: var(--travel26-hero-accent);
	opacity: 1;
}

/* 6. Options --------------------------------------------------------------------- */
.travel26-hero[data-overlay="solid"] .travel26-hero__bg::after {
	background: var(--travel26-hero-overlay-color, rgba(13, 27, 42, 0.6));
}

.travel26-hero[data-overlay="none"] .travel26-hero__bg::after {
	display: none;
}

.travel26-hero[data-ken-burns="false"] .travel26-hero__bg img {
	transform: none;
	transition: none;
}

.travel26-hero .travel26-hero__content > * {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.travel26-hero .swiper-slide-active .travel26-hero__content > * {
	opacity: 1;
	transform: none;
}

.travel26-hero .swiper-slide-active .travel26-hero__content > *:nth-child(2) {
	transition-delay: 0.15s;
}

.travel26-hero .swiper-slide-active .travel26-hero__content > *:nth-child(3) {
	transition-delay: 0.3s;
}

.travel26-hero .swiper-slide-active .travel26-hero__content > *:nth-child(4) {
	transition-delay: 0.45s;
}

.travel26-hero[data-content-animation="fadeIn"] .travel26-hero__content > * {
	transform: none;
}

.travel26-hero[data-content-animation="zoomIn"] .travel26-hero__content > * {
	transform: scale(0.94);
}

.travel26-hero[data-content-animation="none"] .travel26-hero__content > *,
.travel26-hero:not(.travel26-hero--ready) .swiper-slide:first-child .travel26-hero__content > * {
	opacity: 1;
	transform: none;
}

.travel26-hero[data-align="center"] .travel26-hero__content {
	margin-inline: auto;
	text-align: center;
}

.travel26-hero[data-align="center"] .travel26-hero__text {
	margin-inline: auto;
}

.travel26-hero[data-align="center"] .travel26-hero__actions {
	justify-content: center;
}

.travel26-hero__hint {
	margin: 0;
	padding: 40px 24px;
	text-align: center;
	background: #f4f8f8;
}

/* Before Swiper starts, show only the first slide. */
.travel26-hero:not(.travel26-hero--ready) .swiper-slide + .swiper-slide {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.travel26-hero .swiper-slide .travel26-hero__bg img,
	.travel26-hero .swiper-slide .travel26-hero__content > * {
		transform: none;
		transition: none;
	}

	.travel26-hero__play::before,
	.travel26-hero__play::after {
		animation: none;
	}
}

/* 7. Responsive -------------------------------------------------------------------- */
@media (max-width: 991px) {
	.travel26-hero__nav {
		display: none;
	}
}

@media (max-width: 767px) {
	.travel26-hero__slide {
		min-height: var(--travel26-hero-height, 680px);
		padding: 150px 0 200px;
	}

	.travel26-hero .travel26-hero__slider .travel26-hero__pagination.swiper-pagination {
		inset-inline-end: auto;
		bottom: 140px;
		inset-inline-start: var(--travel26-hero-gutter);
	}
}
