/* Site header */

.ae-header {
	position: relative;
	z-index: 50;
	background: var(--ae-teal);
	color: var(--ae-white);
	font-family: var(--ae-font-sans);
}

.ae-header .ae-container {
	padding-top: 20px;
}

/* Home page: header sits transparently over the full-screen hero film */
.ae-header-overlay #page {
	position: relative;
}

.ae-header-overlay header#masthead.ae-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
}

/* Sticky header (Global → Header Section → Sticky Header) */
.ae-sticky-header header#masthead.ae-header {
	position: sticky;
	top: 0;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.ae-sticky-header.ae-header-overlay header#masthead.ae-header {
	position: fixed;
}

.ae-sticky-header.admin-bar header#masthead.ae-header {
	top: 32px;
}

.ae-sticky-header header#masthead.ae-header.is-stuck {
	background: var(--ae-teal);
	box-shadow: 0 6px 18px rgba(4, 36, 39, 0.18);
}

.ae-sticky-header .ae-header.is-stuck .ae-container {
	padding-top: 12px;
}

.ae-sticky-header .ae-header.is-stuck .ae-header__bar {
	padding-bottom: 12px;
	border-bottom-color: transparent;
}

.ae-sticky-header .ae-header .ae-logo {
	transition: height 0.25s ease;
}

.ae-sticky-header .ae-header.is-stuck .ae-logo {
	height: 48px;
}

.ae-sticky-header .ae-header__panel {
	max-height: calc(100vh - 100px);
	max-height: calc(100dvh - 100px);
	overflow-y: auto;
}

html:has(body.ae-sticky-header) {
	scroll-padding-top: 96px;
}

@media (max-width: 782px) {
	.ae-sticky-header.admin-bar header#masthead.ae-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	/* The admin bar scrolls away on small screens. */
	.ae-sticky-header.admin-bar header#masthead.ae-header {
		top: 0;
	}
}

.ae-sticky-header header#masthead.ae-header.is-instant,
.ae-sticky-header .ae-header.is-instant .ae-logo {
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.ae-sticky-header header#masthead.ae-header,
	.ae-sticky-header .ae-header .ae-logo {
		transition: none;
	}
}

.ae-header__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--ae-line);
}

.ae-header__logo {
	display: block;
	flex-shrink: 0;
	line-height: 0;
}

.ae-header .ae-logo {
	display: block;
	width: auto;
	height: 60px;
	max-width: none;
}

/* Desktop menu */

.ae-header__menu {
	display: flex;
	align-items: center;
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ae-header__menu li {
	margin: 0;
	padding: 0;
}

.ae-header__menu a,
.ae-header__menu a:visited {
	font-size: 14px;
	line-height: 21px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--ae-white);
	text-decoration: none;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.ae-header__menu a:hover {
	color: var(--ae-white);
	opacity: 0.8;
}

.ae-header__menu .current-menu-item > a,
.ae-header__menu .current_page_item > a {
	color: var(--ae-gold-light);
}

.ae-header__actions {
	display: flex;
	align-items: center;
	gap: 24px;
}

.ae-header__phone,
.ae-header__phone:visited,
.ae-header__panel-whatsapp,
.ae-header__panel-whatsapp:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ae-header__phone .ae-wa-icon,
.ae-header__panel-whatsapp .ae-wa-icon {
	flex-shrink: 0;
}

.ae-header__phone,
.ae-header__phone:visited {
	min-height: 44px;
	font-size: 14px;
	white-space: nowrap;
	color: var(--ae-white);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ae-header__phone:hover {
	color: var(--ae-gold-light);
}

.ae-header__cta {
	white-space: nowrap;
}

/* Mobile toggle and panel */

.ae-header__toggle {
	display: none;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 4px;
	background: none;
	border: 0;
	font-family: var(--ae-font-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.2em;
	color: var(--ae-white);
	cursor: pointer;
}

.ae-header__toggle-open,
.ae-header__toggle-close {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.ae-header__toggle-close,
.ae-header__toggle[aria-expanded="true"] .ae-header__toggle-open {
	display: none;
}

.ae-header__toggle[aria-expanded="true"] .ae-header__toggle-close {
	display: inline-flex;
}

.ae-header__panel {
	position: absolute;
	top: calc(100% + 1px);
	right: 0;
	width: 260px;
	max-width: 100%;
	padding: 24px;
	background: var(--ae-teal);
	border: 1px solid var(--ae-line);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 18px;
	font-size: 15px;
}

.ae-header__panel[hidden] {
	display: none;
}

.ae-header__panel-menu {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ae-header__panel-menu li {
	margin: 0;
	padding: 0;
}

.ae-header__panel-menu a,
.ae-header__panel-menu a:visited {
	font-size: 15px;
	color: var(--ae-white);
	text-decoration: none;
}

.ae-header__panel-whatsapp,
.ae-header__panel-whatsapp:visited {
	font-size: 15px;
	color: var(--ae-gold-light);
	text-decoration: none;
}

.ae-header__panel .ae-btn {
	padding: 16px;
}

/* The full desktop bar only fits from about 1360px; tighten spacing below that. */
@media (max-width: 1359px) {
	.ae-header__menu {
		gap: 24px;
	}

	.ae-header__actions {
		gap: 20px;
	}

	.ae-header a.ae-header__cta {
		padding-left: 18px;
		padding-right: 18px;
		letter-spacing: 0.14em;
	}
}

@media (max-width: 1199px) {
	.ae-header__menu,
	.ae-header__phone {
		display: none;
	}

	.ae-header__toggle {
		display: flex;
	}
}

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

/* The header's own booking button is visible from 601px, so the panel doesn't repeat it. */
@media (min-width: 601px) {
	.ae-header__panel a.ae-header__panel-cta {
		display: none;
	}
}

@media (max-width: 600px) {
	.ae-header a.ae-header__cta {
		display: none;
	}

	.ae-header .ae-logo {
		height: 52px;
	}

	.ae-header__panel {
		width: 100%;
	}
}
