/**
 * Vastus Core — Header + Language Switcher (Elementor Free widgets).
 * Homepage/footer section helpers live in the theme: assets/css/library.css
 * F01 header pass: 1.5.3
 */

/* Let the logo + glow overlay the hero without growing the sticky bar. */
.elementor-location-header,
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-element,
.elementor-location-header .elementor-widget-wrap,
.elementor-location-header .elementor-widget-container,
.elementor-location-header .e-con,
.elementor-location-header .e-con-inner {
	overflow: visible !important;
}

.vy-header {
	position: relative;
	width: 100%;
	background: #fff;
	border-bottom: 1px solid var(--vy-border, #dce2e8);
	z-index: 1000;
	overflow: visible;
}

.vy-header.is-sticky {
	position: sticky;
	top: 0;
}

.vy-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	max-width: 1360px;
	margin: 0 auto;
	padding: 0.85rem clamp(1.25rem, 3vw, 2.5rem);
	min-height: 84px;
	overflow: visible;
}

.vy-header__brand {
	position: relative;
	flex: 0 0 auto;
	min-width: 0;
	z-index: 3;
	/* Keep bar height stable; logo may extend below into the hero. */
	display: flex;
	align-items: center;
	align-self: center;
}

.vy-header__logo-glow {
	position: absolute;
	left: 50%;
	top: 52%;
	transform: translate(-50%, -18%);
	width: clamp(150px, 18vw, 220px);
	height: clamp(130px, 16vw, 190px);
	border-radius: 50%;
	background:
		radial-gradient(
			ellipse 58% 55% at 50% 42%,
			rgba(255, 255, 255, 0.98) 0%,
			rgba(236, 244, 250, 0.88) 38%,
			rgba(255, 255, 255, 0.35) 62%,
			rgba(255, 255, 255, 0) 76%
		);
	pointer-events: none;
	z-index: 0;
}

.vy-header__logo {
	position: relative;
	z-index: 1;
	display: block;
	line-height: 0;
}

.vy-header__logo img {
	display: block;
	max-height: 108px;
	width: auto;
	position: relative;
	z-index: 1;
}

/* Older header templates nested a second Language Switcher under the header. */
body .elementor-widget-vastus_language_switcher {
	display: none !important;
}

.vy-header__site-title {
	font-weight: 700;
	text-decoration: none;
	color: var(--vy-ink, #10243c);
}

.vy-header__nav--desktop {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.vy-header__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 1.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vy-header__menu a {
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.45rem 0;
	color: var(--vy-ink, #10243c);
}

.vy-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 0 0 auto;
}

.vy-header__lang {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--vy-ink, #10243c);
	position: relative;
}

.vy-header__lang-flag,
.vy-lang__flag,
.vy-lang__flag-svg {
	display: block;
	width: 18px;
	height: 12px;
	flex-shrink: 0;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(16, 36, 60, 0.12);
	object-fit: cover;
}

.vy-lang__flag-svg {
	overflow: hidden;
}

/* BOOK NOW — F01: rectangular, small radius, gold bevel / emboss (not pill). */
.vy-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 48px;
	padding: 0.65rem 1.25rem;
	border-radius: 7px;
	background: linear-gradient(180deg, #e8b84a 0%, #da9e2c 45%, #c48920 100%) !important;
	color: #fff !important;
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-transform: uppercase;
	border: 1px solid rgba(166, 112, 24, 0.55);
	cursor: pointer;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.55),
		inset 0 -1px 0 rgba(120, 70, 10, 0.28),
		0 1px 0 rgba(255, 220, 140, 0.35),
		0 3px 0 rgba(150, 95, 18, 0.45),
		0 6px 14px rgba(16, 36, 60, 0.16);
	transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.vy-header__cta:hover,
.vy-header__cta:focus {
	background: linear-gradient(180deg, #efc45a 0%, #e0a833 45%, #cc9224 100%) !important;
	filter: brightness(1.03);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.6),
		inset 0 -1px 0 rgba(120, 70, 10, 0.25),
		0 1px 0 rgba(255, 220, 140, 0.4),
		0 3px 0 rgba(150, 95, 18, 0.4),
		0 8px 16px rgba(16, 36, 60, 0.18);
}

.vy-header__cta:active {
	transform: translateY(1px);
	box-shadow:
		inset 0 1px 2px rgba(120, 70, 10, 0.35),
		0 1px 0 rgba(150, 95, 18, 0.35),
		0 2px 6px rgba(16, 36, 60, 0.14);
}

.vy-header__cta--disabled {
	/* Keep F01 gold weight even without a booking URL. */
	opacity: 1;
	cursor: not-allowed;
	background: linear-gradient(180deg, #e8b84a 0%, #da9e2c 45%, #c48920 100%) !important;
	filter: none;
}

.vy-header__cta-icon {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.vy-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.vy-header__toggle-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 22px;
}

.vy-header__toggle-box span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--vy-ink, #10243c);
	border-radius: 1px;
}

.vy-header__panel {
	border-top: 1px solid var(--vy-border, #dce2e8);
	background: #fff;
	padding: 0.75rem 1.25rem 1.25rem;
}

.vy-header__menu--mobile {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.vy-header__menu--mobile a {
	display: block;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--vy-border, #dce2e8);
	min-height: 44px;
}

/* Language switcher widget */
.vy-lang {
	position: relative;
	display: inline-block;
}

.vy-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 44px;
	padding: 0.25rem 0.4rem;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-weight: 700;
	color: inherit;
}

.vy-lang__chevron {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
}

.vy-lang__menu {
	position: absolute;
	right: 0;
	top: calc(100% + 0.25rem);
	z-index: 1001;
	min-width: 10rem;
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--vy-border, #dce2e8);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(16, 36, 60, 0.12);
}

.vy-lang__link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 0.85rem;
	text-decoration: none;
	color: var(--vy-ink, #10243c);
	min-height: 44px;
}

.vy-lang__link--disabled {
	opacity: 0.55;
	cursor: default;
}

.vy-lang__label {
	font-weight: 400;
	font-size: 0.85em;
	color: var(--vy-text-muted, #657487);
}

@media (max-width: 767px) {
	.vy-header__nav--desktop {
		display: none;
	}

	.vy-header__toggle {
		display: inline-flex;
		flex-shrink: 0;
	}

	.vy-header__inner {
		gap: 0.5rem;
		flex-wrap: nowrap;
	}

	.vy-header__brand {
		min-width: 0;
		flex: 1 1 auto;
	}

	.vy-header__logo-glow {
		width: 96px;
		height: 88px;
		top: 48%;
	}

	.vy-header__logo img {
		max-height: 52px;
	}

	.vy-header__actions {
		flex-shrink: 0;
		gap: 0.35rem;
	}

	.vy-header__cta {
		min-height: 44px;
		padding: 0.45rem 0.7rem;
		font-size: 0.68rem;
		border-radius: 6px;
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.5),
			inset 0 -1px 0 rgba(120, 70, 10, 0.25),
			0 2px 0 rgba(150, 95, 18, 0.4),
			0 4px 10px rgba(16, 36, 60, 0.14);
	}

	.vy-header__panel {
		max-height: min(70vh, 28rem);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 379px) {
	/* Prefer keeping Book Now; collapse compact lang label if ultra-narrow */
	.vy-header__lang-code {
		display: none;
	}
}

@media (min-width: 768px) {
	.vy-header__panel {
		display: none !important;
	}
}
