/**
 * Homepage hero layout.
 *
 * Preserve the original side-by-side composition on desktop and tablet.
 * Only narrow phone layouts stack the text above the images.
 *
 * The overlapping search card shares --jeepa-search-overlap with
 * assets/css/trip-search.css.
 */
:root {
	--jeepa-search-overlap: 94px;
}

.jeepa-hero {
	position: relative;
	overflow: hidden;
	background: var(--jeepa-mint);
}

.jeepa-slider {
	position: relative;
	min-height: 948px;
}

.jeepa-slider-track {
	position: relative;
	min-height: 920px;
}

.jeepa-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .35s ease, visibility .35s;
}

.jeepa-slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.jeepa-slide[hidden] {
	display: none;
}

.jeepa-hero-inner {
	width: min(1800px, calc(100% - 8vw));
	min-height: 840px;
	display: grid;
	grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
	align-items: center;
	gap: clamp(28px, 3vw, 56px);
}

.jeepa-hero-copy {
	width: 100%;
	max-width: 620px;
}

.jeepa-hero-eyebrow {
	margin: 0;
	color: var(--jeepa-orange);
	font-size: clamp(23px, 1.45vw, 30px);
	font-weight: 700;
	line-height: 1.25;
}

.jeepa-hero-heading {
	margin: 2px 0 22px;
	color: var(--jeepa-ink);
	font-size: clamp(23px, 1.38vw, 29px);
	font-weight: 750;
	line-height: 1.3;
	letter-spacing: -.2px;
}

.jeepa-hero-description {
	margin: 0 0 29px;
	color: var(--jeepa-copy);
	font-size: clamp(17px, 1.05vw, 21px);
	line-height: 1.68;
	font-weight: 400;
}

.jeepa-hero-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 53px;
	padding: 13px 34px;
	border-radius: 11px;
	background: var(--jeepa-orange);
	color: #fff;
	font-size: clamp(16px, .96vw, 19px);
	line-height: 1.3;
	font-weight: 750;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.jeepa-hero-button:hover {
	background: var(--jeepa-orange-dark);
}

/*
 * One responsive media canvas controls both image sizes.
 * Percentages are relative to the canvas, never to a squeezed grid cell.
 */
.jeepa-hero-images {
	position: relative;
	width: min(108%, 760px);
	aspect-ratio: 1.15;
	justify-self: start;
	isolation: isolate;
}

.jeepa-oval {
	position: absolute;
	display: block;
	overflow: hidden;
	box-sizing: border-box;
	border: clamp(14px, 1.1vw, 20px) solid #fff;
	border-radius: 50%;
	background: #fff;
}

.jeepa-oval-large {
	top: 3%;
	left: 0;
	width: 64%;
	aspect-ratio: .82;
}

.jeepa-oval-small {
	top: 27%;
	right: 0;
	width: 45%;
	aspect-ratio: .86;
}

.jeepa-hero-photo {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.jeepa-slide-dots {
	position: absolute;
	z-index: 5;
	bottom: calc(var(--jeepa-search-overlap) + 24px);
	left: 50%;
	display: flex;
	align-items: center;
	gap: 22px;
	transform: translateX(-50%);
}

.jeepa-slide-dots::before {
	position: absolute;
	top: 50%;
	right: 35px;
	left: 35px;
	height: 5px;
	background: var(--jeepa-orange);
	content: "";
	transform: translateY(-50%);
}

.jeepa-slide-dot {
	position: relative;
	z-index: 1;
	flex: 0 0 70px;
	width: 70px;
	height: 70px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--jeepa-orange);
	font-size: 25px;
	font-weight: 700;
}

.jeepa-slide-dot.is-active {
	background: var(--jeepa-orange);
	color: #fff;
}

@media (max-width: 1550px) {
	.jeepa-hero-inner {
		grid-template-columns: minmax(0, 43%) minmax(0, 1fr);
		gap: 26px;
	}

	.jeepa-slider {
		min-height: 875px;
	}

	.jeepa-slider-track {
		min-height: 850px;
	}
}


@media (min-width: 768px) and (max-width: 1150px) {
	.jeepa-slider { min-height: 820px; }
	.jeepa-slider-track { min-height: 790px; }
	.jeepa-hero-inner { min-height: 735px; }
}
@media (max-width: 767px) {
	:root {
		--jeepa-search-overlap: 76px;
	}

	/* Narrow phone layout only: use a single column. */
	.jeepa-slider,
	.jeepa-slider-track {
		min-height: 0;
	}

	.jeepa-hero-inner {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		gap: 32px;
		padding-block: 66px 12px;
	}

	.jeepa-hero-copy {
		max-width: 720px;
	}

	.jeepa-hero-images {
		width: min(100%, 690px);
		aspect-ratio: 1.22;
		align-self: center;
		justify-self: unset;
	}

	.jeepa-oval-large {
		top: 1%;
		width: 65%;
		aspect-ratio: .94;
	}

	.jeepa-oval-small {
		top: 24%;
		width: 46%;
		aspect-ratio: .96;
	}

	.jeepa-slide-dots {
		position: relative;
		bottom: auto;
		left: auto;
		justify-content: center;
		padding: 10px 0 calc(var(--jeepa-search-overlap) + 27px);
		transform: none;
	}

	.jeepa-slide-dots::before {
		top: 45px;
		right: calc(50% - 122px);
		left: calc(50% - 122px);
	}

	.jeepa-slide-dot {
		flex-basis: 65px;
		width: 65px;
		height: 65px;
		font-size: 22px;
	}
}

@media (max-width: 700px) {
	:root {
		--jeepa-search-overlap: 58px;
	}

	.jeepa-hero-inner {
		gap: 25px;
		padding-top: 48px;
		padding-bottom: 4px;
	}

	.jeepa-hero-eyebrow {
		font-size: clamp(20px, 4.8vw, 26px);
	}

	.jeepa-hero-heading {
		font-size: clamp(23px, 5.1vw, 29px);
	}

	.jeepa-hero-description {
		margin-bottom: 23px;
		font-size: 17px;
		line-height: 1.7;
	}

	.jeepa-hero-button {
		padding: 13px 20px;
		font-size: 15px;
	}

	.jeepa-hero-images {
		width: min(100%, 520px);
		aspect-ratio: 1.16;
	}

	.jeepa-oval {
		border-width: clamp(10px, 2.7vw, 14px);
	}

	.jeepa-oval-large {
		top: 1%;
		width: 67%;
		aspect-ratio: 1;
	}

	.jeepa-oval-small {
		top: 25%;
		width: 50%;
		aspect-ratio: 1;
	}

	.jeepa-slide-dots {
		gap: 20px;
		padding: 8px 0 calc(var(--jeepa-search-overlap) + 28px);
	}

	.jeepa-slide-dots::before {
		top: 38px;
		right: calc(50% - 110px);
		left: calc(50% - 110px);
	}

	.jeepa-slide-dot {
		flex-basis: 60px;
		width: 60px;
		height: 60px;
	}
}

@media (max-width: 430px) {
	.jeepa-hero-inner {
		width: calc(100% - 36px);
		padding-top: 42px;
	}

	/*
	 * Let the photo group use the nearly full 360px viewport width,
	 * while keeping the text comfortably padded.
	 */
	.jeepa-hero-images {
		width: calc(100% + 16px);
		max-width: none;
		margin-left: -8px;
		aspect-ratio: 1.12;
	}

	.jeepa-oval-large {
		width: 68%;
	}

	.jeepa-oval-small {
		width: 51%;
	}

	.jeepa-slide-dots {
		gap: 15px;
	}

	.jeepa-slide-dots::before {
		right: calc(50% - 100px);
		left: calc(50% - 100px);
	}
}
