/* Destinations pages: Short Tours, Domestic Tours, International Tours. Built by Build/site-setup/destinations.js.
   The search, filters and grid are Core's browse.css; this file is the hero, breadcrumb, intro and spacing.
   Every go-dest container sets its padding itself, because Elementor adds a 10 px padding and a row flow. */

@media (prefers-reduced-motion: no-preference) {
	html:has(.go-dest-hero) {
		scroll-behavior: smooth;
	}
}

/* ---------- Hero: a wide photo with a light navy wash on the left, where the words sit ---------- */
.e-con.go-dest-hero {
	--padding-top: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
	position: relative;
	display: flex;
	align-items: center;
	min-height: 400px;
	overflow: hidden;
	background-color: var(--go-forest-950);
	isolation: isolate;
}

.go-dest-hero__photo.elementor-widget {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	max-width: none;
	margin: 0;
}

.go-dest-hero__photo .elementor-widget-container,
.go-dest-hero__photo img {
	display: block;
	width: 100%;
	height: 100%;
}

.go-dest-hero__photo img {
	max-width: none;
	object-fit: cover;
	object-position: var(--go-dest-focus, center);
}

.e-con.go-dest-hero::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(10, 59, 97, .78) 0%, rgba(10, 59, 97, .45) 45%, rgba(10, 59, 97, 0) 78%);
	content: "";
}

.e-con.go-dest-hero__inner {
	--padding-top: 72px;
	--padding-bottom: 72px;
	--padding-left: var(--go-gutter);
	--padding-right: var(--go-gutter);
	--row-gap: 16px;
	width: 100%;
	max-width: var(--go-content-width);
	margin-inline: auto;
}

.go-dest-hero .elementor-widget-heading h1.elementor-heading-title {
	max-width: 14ch;
	margin: 0;
	color: #fff;
	font-family: var(--go-font-display);
	font-size: 60px;
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -.015em;
	text-wrap: balance;
	text-shadow: 0 1px 24px rgba(10, 59, 97, .35);
}

.go-dest-hero .elementor-widget-text-editor,
.go-dest-hero .elementor-widget-text-editor p {
	max-width: 520px;
	margin: 0;
	color: rgba(255, 255, 255, .92);
	font-family: var(--go-font-body);
	font-size: 19px;
	line-height: 1.55;
	text-shadow: 0 1px 16px rgba(10, 59, 97, .35);
}

/* ---------- Breadcrumb ---------- */
.go-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font: 500 14px/1.4 var(--go-font-body);
}

.go-crumbs li {
	color: rgba(255, 255, 255, .92);
}

.go-crumbs li + li::before {
	margin: 0 8px;
	opacity: .7;
	content: "\203A";
}

.go-crumbs a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, .45);
	text-underline-offset: 3px;
}

.go-crumbs a:hover {
	text-decoration-color: var(--go-fresh-green);
}

.go-crumbs [aria-current] {
	color: var(--go-fresh-green);
	font-weight: 700;
}

/* ---------- Intro ---------- */
.e-con.go-dest-intro {
	--padding-top: 64px;
	--padding-bottom: 8px;
	--padding-left: var(--go-gutter);
	--padding-right: var(--go-gutter);
	--row-gap: 16px;
	align-items: flex-start;
}

.go-dest-intro .elementor-widget-heading h2.elementor-heading-title {
	max-width: 22ch;
	margin: 0;
	color: var(--go-forest-800);
	font-family: var(--go-font-display);
	font-size: 36px;
	font-weight: 400;
	line-height: 1.15;
	text-wrap: balance;
}

.go-dest-intro .elementor-widget-text-editor,
.go-dest-intro .elementor-widget-text-editor p {
	max-width: var(--go-measure);
	margin: 0;
	color: var(--go-text-muted);
	font-family: var(--go-font-body);
	font-size: 18px;
	line-height: 1.65;
}

.go-dest-intro::before {
	display: block;
	width: 56px;
	height: 4px;
	margin-bottom: 4px;
	border-radius: 2px;
	background: var(--go-fresh-green);
	content: "";
}

/* ---------- Browse ---------- */
.e-con.go-dest-browse {
	--padding-top: 32px;
	--padding-bottom: 88px;
	--padding-left: var(--go-gutter);
	--padding-right: var(--go-gutter);
	scroll-margin-top: 80px;
}

@media (max-width: 1023px) {
	.e-con.go-dest-hero {
		min-height: 340px;
	}

	.e-con.go-dest-hero__inner {
		--padding-top: 56px;
		--padding-bottom: 56px;
	}

	.go-dest-hero .elementor-widget-heading h1.elementor-heading-title {
		font-size: 48px;
	}

	.e-con.go-dest-intro {
		--padding-top: 48px;
	}
}

@media (max-width: 767px) {
	.e-con.go-dest-hero {
		min-height: 224px;
	}

	.e-con.go-dest-hero__inner {
		--padding-top: 28px;
		--padding-bottom: 28px;
		--row-gap: 10px;
	}

	.e-con.go-dest-hero::after {
		background: linear-gradient(180deg, rgba(10, 59, 97, .55) 0%, rgba(10, 59, 97, .7) 100%);
	}

	.go-dest-hero .elementor-widget-heading h1.elementor-heading-title {
		font-size: 34px;
	}

	.go-dest-hero .elementor-widget-text-editor,
	.go-dest-hero .elementor-widget-text-editor p {
		font-size: 16px;
	}

	.e-con.go-dest-intro {
		--padding-top: 28px;
		--row-gap: 10px;
	}

	.go-dest-intro .elementor-widget-heading h2.elementor-heading-title {
		font-size: 22px;
	}

	.go-dest-intro .elementor-widget-text-editor,
	.go-dest-intro .elementor-widget-text-editor p {
		font-size: 15px;
		line-height: 1.55;
	}

	.e-con.go-dest-browse {
		--padding-bottom: 56px;
	}
}

/* The site's page background is a light grey; these pages are white (brief), so the tour cards stand out. */
body:has(.go-dest-hero) {
	background: #fff;
}

/* Keep the intro and the tours in the same centred column as the header and footer (the hero photo stays full width). */
.e-con.go-dest-intro,
.e-con.go-dest-browse {
	width: 100%;
	max-width: var(--go-wide-width, 1320px);
	margin-inline: auto;
}

/* Room between the Customize Your Dream Trip band and the footer; same column as the tours, like the Home page band. */
body:has(.go-dest-hero) .e-con.go-cta-band {
	width: min(100% - 32px, var(--go-wide-width, 1320px));
	max-width: none;
	margin-inline: auto;
	margin-bottom: 80px;
}

@media (max-width: 767px) {
	body:has(.go-dest-hero) .e-con.go-cta-band {
		margin-top: 72px; /* Tern stands 56 px above the band on phones: keep him clear of the last tour card */
		margin-bottom: 56px;
	}
}
