/*
 * WAAD front page hero: slider + floating TourMaster search.
 * Everything is scoped to .waad-hero.
 */

.waad-hero {
	--hero-navy: #14284b;
	--hero-teal: #1f627c;
	--hero-gold: #c29b57;
	--hero-gold-strong: #94703a;
	--hero-gold-hover: #7c5d2f;
	--hero-gold-light: #ecd6a8;
	--hero-text: #1e2a3b;
	--hero-muted: #2f3642;
	--hero-line: #ece7dd;
	--hero-soft: #f7f4ee;
	--hero-height: 650px;
	--hero-overlap: 52px;
	--hero-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	position: relative;
	margin: 0 0 12px;
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.5;
}

.waad-hero *,
.waad-hero *::before,
.waad-hero *::after {
	box-sizing: border-box;
}

/* The Slider Revolution element replaced by this hero (see inc/home-hero.php). */
.gdlr-core-pbf-element:has(.waad-legacy-slider-removed) {
	display: none;
}

/* --------------------------------------------------------------------------
   Stage and slides
   -------------------------------------------------------------------------- */

.waad-hero-stage {
	position: relative;
	height: var(--hero-height);
	overflow: hidden;
	background-color: var(--hero-navy);
	isolation: isolate;
}

.waad-hero-slides {
	position: absolute;
	inset: 0;
}

.waad-hero-slide {
	position: absolute;
	inset: 0;
	background-color: var(--hero-navy);
	opacity: 0;
	transform: scale(1.045);
	transition: opacity 1s ease, transform 7s linear;
}

.waad-hero-slide picture {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.waad-hero-slide-img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
	object-position: var(--waad-hero-img-pos, center);
	display: block;
}

.waad-hero-slide.is-active {
	z-index: 1;
	opacity: 1;
	transform: scale(1);
}

.waad-hero-stage::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 60% at 50% 45%, rgba(20, 40, 75, 0.28) 0%, rgba(20, 40, 75, 0) 70%),
		linear-gradient(180deg, rgba(20, 40, 75, 0.1) 0%, rgba(20, 40, 75, 0.25) 55%, rgba(20, 40, 75, 0.55) 100%);
}

/* --------------------------------------------------------------------------
   Copy
   -------------------------------------------------------------------------- */

.waad-hero-inner {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 1000px;
	height: 100%;
	margin: 0 auto;
	padding: 40px 96px calc(var(--hero-overlap) + 64px);
	text-align: center;
	color: #ffffff;
}

.waad-hero-copy {
	display: grid;
	width: 100%;
}

.waad-hero-text {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: opacity 0.5s ease, transform 0.6s var(--hero-ease), visibility 0s linear 0.6s;
}

.waad-hero-text.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.7s ease 0.25s, transform 0.8s var(--hero-ease) 0.25s, visibility 0s;
}

.waad-hero .waad-hero-heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
	color: #ffffff;
}

.waad-hero .waad-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--hero-gold-light);
	text-shadow: 0 1px 12px rgba(10, 20, 40, 0.45);
}

.waad-hero .waad-hero-eyebrow::before,
.waad-hero .waad-hero-eyebrow::after {
	content: "";
	width: 32px;
	height: 1px;
	background: currentColor;
	opacity: 0.8;
}

.waad-hero .waad-hero-title {
	display: block;
	max-width: 880px;
	font-size: clamp(34px, 4.1vw, 60px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	color: #ffffff;
	text-shadow: 0 2px 28px rgba(10, 20, 40, 0.4);
	text-wrap: balance;
}

.waad-hero .waad-hero-lead {
	max-width: 640px;
	margin: 20px auto 0;
	font-size: clamp(16px, 1.3vw, 19px);
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.94);
	text-shadow: 0 1px 14px rgba(10, 20, 40, 0.45);
	text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.waad-hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 32px;
}

.waad-hero .waad-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	padding: 0 28px;
	border: 1.5px solid transparent;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.waad-hero .waad-hero-btn--primary {
	background-color: var(--hero-gold-strong);
	color: #ffffff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 32px -16px rgba(124, 93, 47, 0.95);
}

.waad-hero .waad-hero-btn--primary:hover,
.waad-hero .waad-hero-btn--primary:focus-visible {
	background-color: var(--hero-gold-hover);
	color: #ffffff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 34px -14px rgba(124, 93, 47, 1);
}

.waad-hero .waad-hero-btn--secondary {
	border-color: rgba(255, 255, 255, 0.78);
	background-color: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.waad-hero .waad-hero-btn--secondary:hover,
.waad-hero .waad-hero-btn--secondary:focus-visible {
	border-color: var(--hero-teal);
	background-color: var(--hero-teal);
	color: #ffffff;
}

.waad-hero .waad-hero-btn-icon {
	flex: none;
	transition: transform 0.2s ease;
}

.waad-hero .waad-hero-btn:hover .waad-hero-btn-icon,
.waad-hero .waad-hero-btn:focus-visible .waad-hero-btn-icon {
	transform: translateX(3px);
}

.waad-hero .waad-hero-btn:focus-visible,
.waad-hero .waad-hero-arrow:focus-visible,
.waad-hero .waad-hero-dot:focus-visible {
	outline: 3px solid var(--hero-gold-light);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Slider controls
   -------------------------------------------------------------------------- */

.waad-hero-controls {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
}

.waad-hero .waad-hero-arrow {
	position: absolute;
	top: calc(50% - var(--hero-overlap) / 2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin: -25px 0 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.38);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	box-shadow: none;
	color: #ffffff;
	cursor: pointer;
	pointer-events: auto;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.waad-hero .waad-hero-arrow--prev {
	left: 28px;
}

.waad-hero .waad-hero-arrow--next {
	right: 28px;
}

.waad-hero .waad-hero-arrow:hover,
.waad-hero .waad-hero-arrow:focus-visible {
	border-color: var(--hero-gold-strong);
	background: var(--hero-gold-strong);
	color: #ffffff;
}

.waad-hero .waad-hero-arrow svg {
	display: block;
	width: 22px;
	height: 22px;
}

.waad-hero-dots {
	position: absolute;
	left: 50%;
	bottom: calc(var(--hero-overlap) + 18px);
	display: flex;
	align-items: center;
	gap: 4px;
	transform: translateX(-50%);
	pointer-events: auto;
}

.waad-hero .waad-hero-dot {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 13px;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
}

.waad-hero .waad-hero-dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: 0 1px 6px rgba(10, 20, 40, 0.35);
	transition: width 0.3s var(--hero-ease), background-color 0.3s ease;
}

.waad-hero .waad-hero-dot:hover::before {
	background: #ffffff;
}

.waad-hero .waad-hero-dot.is-active {
	width: 34px;
}

.waad-hero .waad-hero-dot.is-active::before {
	width: 24px;
	background: var(--hero-gold);
}

/* --------------------------------------------------------------------------
   Search panel
   -------------------------------------------------------------------------- */

.waad-hero-search-wrap {
	--waad-hero-search-enter-y: 45px;
	position: relative;
	z-index: 5;
	margin-top: calc(var(--hero-overlap) * -1);
	padding: 0 24px;
	/* Entrance only: transform/opacity, once on hero load (not slider/scroll). */
	animation: waad-hero-search-enter 800ms ease-out 250ms both;
}

@keyframes waad-hero-search-enter {
	from {
		opacity: 0;
		transform: translateY(var(--waad-hero-search-enter-y));
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.waad-hero .waad-hero-search {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	align-items: center;
	max-width: 1240px;
	margin: 0 auto;
	padding: 12px;
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 28px 60px -28px rgba(20, 40, 75, 0.38), 0 10px 24px -14px rgba(20, 40, 75, 0.16);
}

.waad-hero .waad-hero-field {
	position: relative;
	min-width: 0;
	height: 76px;
	border-radius: 14px;
	transition: background-color 0.2s ease;
}

.waad-hero .waad-hero-field + .waad-hero-field::before {
	content: "";
	position: absolute;
	top: 18px;
	bottom: 18px;
	left: 0;
	width: 1px;
	background: var(--hero-line);
	pointer-events: none;
}

.waad-hero .waad-hero-field:hover,
.waad-hero .waad-hero-field:focus-within {
	background: var(--hero-soft);
}

.waad-hero .waad-hero-field:focus-within {
	box-shadow: inset 0 0 0 2px rgba(148, 112, 58, 0.45);
}

.waad-hero .waad-hero-field:has(.waad-select.is-open) .waad-hero-field-chevron {
	transform: rotate(180deg);
}

.waad-hero .waad-hero-field:hover::before,
.waad-hero .waad-hero-field:focus-within::before,
.waad-hero .waad-hero-field:hover + .waad-hero-field::before,
.waad-hero .waad-hero-field:focus-within + .waad-hero-field::before {
	opacity: 0;
}

.waad-hero .waad-hero-field-icon {
	position: absolute;
	top: 50%;
	left: 12px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	border-radius: 12px;
	background: rgba(194, 155, 87, 0.13);
	color: var(--hero-gold-strong);
	pointer-events: none;
}

.waad-hero .waad-hero-field-icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.waad-hero .waad-hero-field-label {
	position: absolute;
	top: 17px;
	left: 60px;
	right: 30px;
	z-index: 1;
	display: block;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--hero-navy);
	white-space: nowrap;
	text-overflow: ellipsis;
	pointer-events: none;
}

.waad-hero .waad-hero-field-control {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	padding: 28px 30px 0 60px;
	border: 0;
	border-radius: 14px;
	outline: 0;
	background: transparent;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--hero-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.waad-hero .waad-hero-field.has-value .waad-hero-field-control,
.waad-hero .waad-hero-field.has-value .waad-hero-field-display {
	font-weight: 500;
	color: var(--hero-text);
}

.waad-hero select.waad-hero-field-control option {
	font-weight: 400;
	color: var(--hero-text);
}

.waad-hero .waad-hero-field-chevron {
	position: absolute;
	top: 50%;
	right: 10px;
	z-index: 1;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	color: var(--hero-gold-strong);
	pointer-events: none;
	transition: transform 0.2s ease;
}

.waad-hero .waad-hero-field-chevron svg {
	display: block;
	width: 18px;
	height: 18px;
}

/* Date field: native picker, formatted value shown on top once JS is running. */
.waad-hero .waad-hero-field-display {
	display: none;
}

.waad-hero .waad-hero-search.is-enhanced .waad-hero-field-display {
	position: absolute;
	top: 41px;
	left: 60px;
	right: 30px;
	z-index: 1;
	display: block;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.3;
	color: var(--hero-muted);
	white-space: nowrap;
	text-overflow: ellipsis;
	pointer-events: none;
}

.waad-hero .waad-hero-search.is-enhanced .waad-hero-field--date .waad-hero-field-control {
	color: transparent;
}

.waad-hero .waad-hero-search.is-enhanced .waad-hero-field--date .waad-hero-field-control::-webkit-datetime-edit {
	color: transparent;
}

.waad-hero .waad-hero-field--date .waad-hero-field-control::-webkit-calendar-picker-indicator {
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: pointer;
}

.waad-hero .waad-hero-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 64px;
	min-height: 0;
	margin: 0 0 0 10px;
	padding: 0 24px;
	border: 0;
	border-radius: 14px;
	background: var(--hero-gold-strong);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 30px -16px rgba(124, 93, 47, 0.95);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: none;
	color: #ffffff;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.waad-hero .waad-hero-submit:hover,
.waad-hero .waad-hero-submit:focus-visible {
	background: var(--hero-gold-hover);
	color: #ffffff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 32px -14px rgba(124, 93, 47, 1);
}

.waad-hero .waad-hero-submit:focus-visible {
	outline: 3px solid rgba(31, 98, 124, 0.45);
	outline-offset: 3px;
}

.waad-hero .waad-hero-submit svg {
	flex: none;
	width: 20px;
	height: 20px;
	transition: transform 0.2s ease;
}

.waad-hero .waad-hero-submit:hover svg,
.waad-hero .waad-hero-submit:focus-visible svg {
	transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 1600px) {
	.waad-hero {
		--hero-height: 620px;
	}
}

@media (max-width: 1439.98px) {
	.waad-hero .waad-hero-field-icon {
		left: 10px;
		width: 36px;
		height: 36px;
		margin-top: -18px;
	}

	.waad-hero .waad-hero-field-label,
	.waad-hero .waad-hero-search.is-enhanced .waad-hero-field-display {
		left: 56px;
		right: 30px;
	}

	.waad-hero .waad-hero-field-control {
		padding-left: 56px;
		padding-right: 30px;
		font-size: 13px;
	}

	.waad-hero .waad-hero-search.is-enhanced .waad-hero-field-display {
		font-size: 13px;
	}

	.waad-hero .waad-hero-field-chevron {
		right: 8px;
	}

	.waad-hero .waad-hero-submit {
		padding: 0 24px;
	}
}

@media (max-width: 1279.98px) {
	.waad-hero .waad-hero-search {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		row-gap: 10px;
	}

	.waad-hero .waad-hero-submit {
		grid-column: 1 / -1;
		width: 100%;
		height: 56px;
		margin: 0;
	}
}

@media (max-width: 1023.98px) {
	.waad-hero {
		/* Shorter than desktop so cover crops less of landscape photos. */
		--hero-height: 520px;
		--hero-overlap: 48px;
	}

	.waad-hero-slide-img {
		object-position: var(--waad-hero-img-pos-sm, var(--waad-hero-img-pos, center));
	}

	.waad-hero-inner {
		padding: 32px 84px calc(var(--hero-overlap) + 60px);
	}

	.waad-hero .waad-hero-search {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		max-width: 760px;
		padding: 14px;
	}

	.waad-hero .waad-hero-field {
		height: 72px;
		background: #ffffff;
		box-shadow: inset 0 0 0 1px var(--hero-line);
	}

	.waad-hero .waad-hero-field + .waad-hero-field::before {
		display: none;
	}

	.waad-hero .waad-hero-submit {
		grid-column: 1 / -1;
		width: 100%;
		height: 56px;
		margin: 0;
	}
}

@media (max-width: 767.98px) {
	.waad-hero {
		/*
		 * Fixed short heights (400px) crushed CTAs into the search card.
		 * Stage grows with copy; min-height keeps the photo readable without a hard zoom.
		 */
		--hero-height: auto;
		--hero-overlap: 48px;
	}

	.waad-hero-stage {
		height: auto;
		min-height: 460px;
	}

	.waad-hero-inner {
		height: auto;
		min-height: 460px;
		justify-content: center;
		padding: 72px 20px calc(var(--hero-overlap) + 68px);
	}

	.waad-hero .waad-hero-eyebrow {
		gap: 10px;
		margin-bottom: 10px;
		font-size: 11px;
		letter-spacing: 0.2em;
	}

	.waad-hero .waad-hero-eyebrow::before,
	.waad-hero .waad-hero-eyebrow::after {
		width: 20px;
	}

	.waad-hero .waad-hero-title {
		font-size: clamp(26px, 7vw, 34px);
		line-height: 1.14;
	}

	.waad-hero .waad-hero-lead {
		margin-top: 12px;
		font-size: 14px;
		line-height: 1.45;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	.waad-hero-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		width: 100%;
		max-width: 320px;
		margin-top: 18px;
	}

	.waad-hero .waad-hero-btn {
		height: 48px;
		padding: 0 20px;
	}

	/* Arrows join the dots in one row under the copy, above the search overlap. */
	.waad-hero-controls {
		inset: auto 0 calc(var(--hero-overlap) + 12px);
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 12px;
	}

	.waad-hero .waad-hero-arrow {
		position: static;
		width: 40px;
		height: 40px;
		margin: 0;
	}

	.waad-hero .waad-hero-arrow svg {
		width: 18px;
		height: 18px;
	}

	.waad-hero-dots {
		position: static;
		transform: none;
	}

	.waad-hero-search-wrap {
		--waad-hero-search-enter-y: 30px;
		padding: 0 16px;
		position: relative;
		z-index: 5;
	}

	.waad-hero .waad-hero-search {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		padding: 12px;
		border-radius: 18px;
	}

	.waad-hero .waad-hero-field {
		height: 66px;
	}

	.waad-hero .waad-hero-field-label {
		top: 12px;
		font-size: 13px;
	}

	/* 16px keeps iOS Safari from zooming in when a control gets focus. */
	.waad-hero .waad-hero-field-control {
		padding-top: 22px;
		font-size: 16px;
	}

	.waad-hero .waad-hero-search.is-enhanced .waad-hero-field-display {
		top: 32px;
		font-size: 15px;
	}

	.waad-hero .waad-hero-submit {
		height: 54px;
	}
}

@media (max-width: 359.98px) {
	.waad-hero-inner {
		padding-left: 16px;
		padding-right: 16px;
	}

	.waad-hero .waad-hero-eyebrow::before,
	.waad-hero .waad-hero-eyebrow::after {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.waad-hero-slide,
	.waad-hero-slide.is-active,
	.waad-hero-text,
	.waad-hero-text.is-active {
		transform: none;
		transition-duration: 0.01s;
		transition-delay: 0s;
	}

	.waad-hero-search-wrap {
		animation: none;
		opacity: 1;
		transform: none;
	}
}
