/**
 * Single safari product page
 */

.eys-product {
	--eys-bronze: #9a7b4f;
	--eys-gold: #c4a574;
	--eys-ink: #14110e;
	--eys-earth: #2c2620;
	--eys-muted: #6f6559;
	--eys-bone: #faf8f4;
	--eys-night: #1a1714;
	--eys-sand: #e8e0d4;
	--eys-font: "Outfit", "Segoe UI", sans-serif;
	--eys-display: "Cormorant Garamond", Georgia, serif;
	color: var(--eys-ink);
	font-family: var(--eys-font);
	background: var(--eys-bone);
}

.eys-product-hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(340px, 48vh, 480px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	color: var(--eys-bone);
	background: var(--eys-night);
}

.eys-product-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.eys-product-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
}

.eys-product-hero__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(20, 17, 14, 0.4) 0%, rgba(20, 17, 14, 0.55) 40%, rgba(20, 17, 14, 0.92) 100%);
}

.eys-product-hero__content {
	width: min(1180px, 92vw);
	margin: 0 auto;
	padding: clamp(5rem, 12vh, 6.5rem) 0 2.5rem;
}

.eys-product-hero__kicker {
	margin: 0 0 0.45rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--eys-gold);
}

.eys-product-hero__title {
	margin: 0 0 0.55rem;
	max-width: 18ch;
	font-family: var(--eys-display);
	font-size: clamp(2.1rem, 5vw, 3.5rem);
	font-weight: 600;
	line-height: 1.05;
}

.eys-product-hero__time {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: rgba(250, 248, 244, 0.82);
}

.eys-product-hero__price {
	margin: 0;
	font-size: 0.9rem;
	color: rgba(250, 248, 244, 0.7);
}

.eys-product-hero__price strong {
	color: var(--eys-gold);
	font-size: 1.35rem;
}

.eys-product-hero__price-note {
	margin: 0.4rem 0 0;
	max-width: 36ch;
	font-size: 0.78rem;
	line-height: 1.45;
	color: rgba(250, 248, 244, 0.68);
}

.eys-product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
	gap: clamp(1.5rem, 4vw, 2.75rem);
	width: min(1180px, 92vw);
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(3rem, 6vw, 4.5rem);
	align-items: start;
}

.eys-product-intro {
	font-size: 1.02rem;
	line-height: 1.7;
	color: var(--eys-muted);
}

.eys-product-intro p {
	margin: 0 0 1rem;
}

.eys-product-block {
	margin-top: 2.25rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--eys-sand);
}

.eys-product-block h2 {
	margin: 0 0 1rem;
	font-family: var(--eys-display);
	font-size: clamp(1.55rem, 2.5vw, 2rem);
	font-weight: 600;
	color: var(--eys-ink);
}

.eys-product-itin,
.eys-product-includes,
.eys-product-achieve {
	margin: 0;
	padding: 0;
	list-style: none;
}

.eys-product-itin li,
.eys-product-includes li,
.eys-product-achieve li {
	position: relative;
	padding: 0.55rem 0 0.55rem 1.35rem;
	border-bottom: 1px solid var(--eys-sand);
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--eys-earth);
}

.eys-product-itin li::before,
.eys-product-includes li::before,
.eys-product-achieve li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1rem;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--eys-gold);
}

.eys-product-achieve__note {
	margin: 1.15rem 0 0;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--eys-muted);
}

.eys-product-aside {
	position: sticky;
	/* Clear the pinned site header, and the admin bar when logged in. The theme
	   publishes both heights; the fallback is the header's desktop height. */
	top: calc(var(--eys-admin-bar-h, 0px) + var(--eys-header-h, 6.75rem) + 1rem);
}

.eys-product-book {
	padding: 1.15rem 1.1rem 1.25rem;
	background: #fff;
	border: 1px solid var(--eys-sand);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(20, 17, 14, 0.08);
}

.eys-product-book__title {
	margin: 0 0 0.85rem;
	font-family: var(--eys-display);
	font-size: 1.35rem;
	font-weight: 600;
}

.eys-product-book .eys-sidebar-book {
	max-width: none;
	width: 100%;
	margin: 0;
}

.eys-product-book__wa {
	margin: 0.75rem 0 0;
	text-align: center;
	font-size: 0.82rem;
}

.eys-product-book__wa a {
	color: var(--eys-bronze);
	text-decoration: none;
	font-weight: 600;
}

.eys-product-similar {
	padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
	background: var(--eys-night);
	color: var(--eys-bone);
}

.eys-product-similar__inner {
	width: min(1180px, 100%);
	margin: 0 auto;
}

.eys-product-similar h2 {
	margin: 0 0 1.35rem;
	font-family: var(--eys-display);
	font-size: clamp(1.65rem, 3vw, 2.25rem);
	font-weight: 600;
}

.eys-product-similar__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eys-product-card {
	display: block;
	overflow: hidden;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(196, 165, 116, 0.18);
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.eys-product-card:hover {
	transform: translateY(-3px);
	border-color: rgba(196, 165, 116, 0.45);
}

.eys-product-card img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.eys-product-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.9rem 1rem 1.05rem;
}

.eys-product-card__title {
	font-family: var(--eys-display);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--eys-bone);
}

.eys-product-card__meta {
	font-size: 0.78rem;
	color: rgba(250, 248, 244, 0.55);
}

.eys-product-card__price {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--eys-gold);
}

@media (max-width: 900px) {
	.eys-product-layout {
		grid-template-columns: 1fr;
	}

	.eys-product-aside {
		position: static;
	}

	.eys-product-similar__grid {
		grid-template-columns: 1fr;
	}
}

/* theme.json sets elements.heading to the dark "contrast" colour and emits it
   as a rule on h1-h6 directly, which beats inheritance. Without this the hero
   title and the "Similar Tours" heading render near-black on their dark
   backgrounds. */
.eys-product-hero :is(h1, h2, h3, h4, h5, h6),
.eys-product-similar :is(h1, h2, h3, h4, h5, h6) {
	color: inherit;
}
