/**
 * MoroccoPlan site header — OTA-level UX (utility bar + main nav).
 * Scoped to .moroccoplan-site-header; does not affect checkout shell topbar.
 */

@font-face {
	font-family: "GT Eesti Pro Display";
	src: url("../fonts/gt-eesti-pro-display/gteestiprodisplay_regular.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "GT Eesti Pro Display";
	src: url("../fonts/gt-eesti-pro-display/gteestiprodisplay_medium.otf") format("opentype");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "GT Eesti Pro Display";
	src: url("../fonts/gt-eesti-pro-display/gteestiprodisplay_bold.otf") format("opentype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.moroccoplan-site-header {
	--mp-header-font: "GT Eesti Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--mp-header-navy: #0f2438;
	--mp-header-navy-2: #1b5f8b;
	--mp-header-orange: var(--main-color, #ff5533);
	--mp-header-orange-hover: #e8461b;
	--mp-header-text: #5a6675;
	--mp-header-border: #e3e8ef;
	--mp-header-surface: #ffffff;
	--mp-header-topbar-bg: #0f2438;
	--mp-header-topbar-text: rgba(255, 255, 255, 0.82);
	--mp-header-topbar-muted: rgba(255, 255, 255, 0.62);
	--mp-header-shadow: 0 1px 0 rgba(15, 36, 56, 0.06);
	--mp-header-shadow-scrolled: 0 8px 24px rgba(15, 36, 56, 0.08);
	--mp-header-shell-max: 1290px;
	--mp-header-shell-x: clamp(16px, 2.5vw, 32px);
	--mp-header-main-h: 72px;
	--mp-header-main-h-scrolled: 60px;
	--mp-header-topbar-h: 36px;
	--mp-site-header-height: 109px;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	font-family: var(--mp-header-font);
	position: sticky;
	top: 0;
	z-index: 1000;
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

html {
	scroll-padding-top: var(--mp-site-header-height, 0px);
}

/*
 * Traveler transparent-menu mode (body.stt-menu-transparent) sets header.header to
 * position:absolute on desktop, which removes the main nav from document flow and
 * makes the hero slide underneath. Keep the OTA header in normal flow always.
 */
body.stt-menu-transparent:not(.tour_solo) .moroccoplan-site-header .moroccoplan-header.header,
.moroccoplan-site-header .moroccoplan-header.header {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	width: 100% !important;
	z-index: auto;
	background: var(--mp-header-surface) !important;
	border-bottom: 1px solid var(--mp-header-border) !important;
	color: var(--mp-header-navy) !important;
}

body.stt-menu-transparent:not(.tour_solo) .moroccoplan-site-header .header__center #st-main-menu .main-menu > li > a,
body.stt-menu-transparent:not(.tour_solo) .moroccoplan-site-header .header__right .dropdown-currency .dropdown-toggle {
	color: var(--mp-header-navy) !important;
}

body.stt-menu-transparent:not(.tour_solo) .moroccoplan-site-header .header__center #st-main-menu .main-menu > li > a .fa,
body.stt-menu-transparent:not(.tour_solo) .moroccoplan-site-header .header__right .dropdown-currency .dropdown-toggle .fa:not(.input-icon) {
	color: inherit !important;
}

.moroccoplan-site-header + #st-content-wrapper {
	margin-top: 0;
}

body.admin-bar .moroccoplan-site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .moroccoplan-site-header {
		top: 46px;
	}
}

.moroccoplan-site-header.is-scrolled .moroccoplan-header {
	box-shadow: var(--mp-header-shadow-scrolled);
}

/* ---- Utility bar ---- */
.moroccoplan-site-header #topbar.moroccoplan-topbar.style-elementor {
	flex: 0 0 auto;
	background: var(--mp-header-topbar-bg);
	color: var(--mp-header-topbar-text);
	padding-top: 0;
	padding-bottom: 0;
	padding-left: var(--mp-header-shell-x);
	padding-right: var(--mp-header-shell-x);
	min-height: var(--mp-header-topbar-h);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: none;
	margin: 0;
}

.moroccoplan-site-header.is-scrolled #topbar.moroccoplan-topbar.style-elementor {
	display: none;
}

.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-left,
.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-right {
	flex: 0 1 auto;
	padding: 0;
	max-width: none;
}

.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-items {
	gap: 0;
	margin: 0;
	padding: 0;
}

.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-items > li:not(:last-child) {
	margin-right: 20px;
}

.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-items > li:not(:last-child)::after {
	height: 12px;
	width: 1px;
	background: rgba(255, 255, 255, 0.18);
	right: -10px;
	margin-top: -6px;
}

.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-item.link.normal a {
	color: var(--mp-header-topbar-text);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	transition: color 160ms ease-out;
}

.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-item.link.normal a i {
	font-size: 14px;
	color: var(--mp-header-topbar-muted);
	transition: color 160ms ease-out;
}

.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-item.link.normal a:hover,
.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-item.link.normal a:focus-visible {
	color: #fff;
}

.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-item.link.normal a:hover i,
.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-item.link.normal a:focus-visible i {
	color: #fff;
}

.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-item.link.social {
	margin-right: 0;
}

.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-item.link.social::after {
	display: none;
}

.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-item.link.social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	color: var(--mp-header-topbar-muted);
	transition: color 160ms ease-out, background-color 160ms ease-out;
}

.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-item.link.social a:hover,
.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-item.link.social a:focus-visible {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.moroccoplan-site-header #topbar.moroccoplan-topbar .topbar-right .topbar-items {
	gap: 4px;
}

/* ---- Main header shell ---- */
.moroccoplan-site-header .moroccoplan-header {
	padding: 0 !important;
	background: var(--mp-header-surface);
	border-bottom: 1px solid var(--mp-header-border);
	box-shadow: var(--mp-header-shadow);
	min-height: var(--mp-header-main-h);
	transition: min-height 200ms ease-out, box-shadow 200ms ease-out;
}

.moroccoplan-site-header.is-scrolled .moroccoplan-header {
	min-height: var(--mp-header-main-h-scrolled);
}

.moroccoplan-site-header .moroccoplan-header__shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(12px, 2vw, 28px);
	width: 100%;
	max-width: var(--mp-header-shell-max);
	margin: 0 auto;
	padding: 0 var(--mp-header-shell-x);
	min-height: inherit;
}

.moroccoplan-site-header .header__left {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	min-width: 0;
}

.moroccoplan-site-header .header__left .logo img,
.moroccoplan-site-header .header__left .custom-logo-link img {
	display: block;
	width: auto;
	height: auto;
	max-height: 44px;
	max-width: min(220px, 42vw);
	object-fit: contain;
}

.moroccoplan-site-header.is-scrolled .header__left .logo img,
.moroccoplan-site-header.is-scrolled .header__left .custom-logo-link img {
	max-height: 38px;
}

.moroccoplan-site-header .header__center {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.moroccoplan-site-header .header__right {
	flex: 0 0 auto;
	position: relative;
	overflow: visible;
	z-index: 2;
}

.moroccoplan-site-header .header__right .items {
	gap: 12px;
	margin: 0;
	padding: 0;
	overflow: visible;
}

.moroccoplan-site-header .header__right .items > li:not(:first-child) {
	margin-left: 0;
}

/* ---- Desktop navigation ---- */
.moroccoplan-site-header .header__center #st-main-menu .main-menu > li > a {
	padding: 22px 12px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--mp-header-navy);
	position: relative;
	transition: color 160ms ease-out;
}

.moroccoplan-site-header .header__center #st-main-menu .main-menu > li > a::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 14px;
	height: 2px;
	border-radius: 1px;
	background: var(--mp-header-orange);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 180ms ease-out;
}

.moroccoplan-site-header.is-scrolled .header__center #st-main-menu .main-menu > li > a {
	padding-top: 16px;
	padding-bottom: 16px;
}

.moroccoplan-site-header.is-scrolled .header__center #st-main-menu .main-menu > li > a::after {
	bottom: 10px;
}

.moroccoplan-site-header .header__center #st-main-menu .main-menu > li:hover > a,
.moroccoplan-site-header .header__center #st-main-menu .main-menu > li.current-menu-item > a,
.moroccoplan-site-header .header__center #st-main-menu .main-menu > li.current-menu-ancestor > a {
	color: var(--mp-header-orange);
}

.moroccoplan-site-header .header__center #st-main-menu .main-menu > li:hover > a::after,
.moroccoplan-site-header .header__center #st-main-menu .main-menu > li.current-menu-item > a::after,
.moroccoplan-site-header .header__center #st-main-menu .main-menu > li.current-menu-ancestor > a::after {
	transform: scaleX(1);
}

.moroccoplan-site-header .header__center #st-main-menu .main-menu > li > a:focus-visible {
	outline: 2px solid var(--mp-header-navy-2);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---- Currency control (attached to EUR toggle; compact panel) ---- */
.moroccoplan-site-header .dropdown-currency {
	list-style: none;
	position: relative;
	display: flex;
	align-items: center;
	width: max-content;
	max-width: 100%;
}

.moroccoplan-site-header .dropdown-currency .dropdown-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--mp-header-border);
	border-radius: 8px;
	background: var(--mp-header-surface);
	color: var(--mp-header-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: border-color 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}

.moroccoplan-site-header .dropdown-currency .dropdown-toggle:hover,
.moroccoplan-site-header .dropdown-currency .dropdown-toggle:focus-visible,
.moroccoplan-site-header .dropdown-currency.show .dropdown-toggle {
	border-color: #c9d3df;
	background: #f7f9fb;
	color: var(--mp-header-navy);
}

.moroccoplan-site-header .dropdown-currency .dropdown-toggle .fa-angle-down {
	font-family: inherit !important;
	font-size: 11px !important;
	font-weight: 700;
	color: var(--mp-header-text) !important;
	margin-left: 2px !important;
	transform: none !important;
}

.moroccoplan-site-header .dropdown-currency .dropdown-toggle .fa-angle-down::before {
	content: "▾" !important;
}

/*
 * Static placement: same width + left edge as EUR button, 6px gap, compact.
 * Feels attached (matching toggle radius) rather than a floating card.
 */
.moroccoplan-site-header .dropdown-currency .dropdown-menu,
.moroccoplan-site-header .dropdown-currency .dropdown-menu.dropdown-menu-end {
	position: absolute !important;
	top: calc(100% + 6px) !important;
	left: 0 !important;
	right: auto !important;
	bottom: auto !important;
	inset: calc(100% + 6px) auto auto 0 !important;
	transform: none !important;
	margin: 0 !important;
	z-index: 10050;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none;
	box-sizing: border-box;
	border: 1px solid var(--mp-header-border);
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(15, 36, 56, 0.1);
	padding: 4px !important;
	background: var(--mp-header-surface);
	overflow: hidden;
}

.moroccoplan-site-header .dropdown-currency .dropdown-menu.show {
	animation: moroccoplan-currency-menu-in 140ms ease-out;
}

@keyframes moroccoplan-currency-menu-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.moroccoplan-site-header .dropdown-currency .dropdown-menu li {
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
	list-style: none;
}

.moroccoplan-site-header .dropdown-currency .dropdown-menu li + li {
	margin-top: 2px !important;
}

.moroccoplan-site-header .dropdown-currency .dropdown-menu li a,
.moroccoplan-site-header .dropdown-currency .dropdown-menu li a.moroccoplan-header-currency__option {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	min-height: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	color: var(--mp-header-navy);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 140ms ease-out, color 140ms ease-out;
}

.moroccoplan-site-header .dropdown-currency .dropdown-menu li a:hover,
.moroccoplan-site-header .dropdown-currency .dropdown-menu li a:focus-visible {
	background: #f3f6f9;
	color: var(--mp-header-orange);
	outline: none;
}

/* ---- Language control (separate from currency; header bar only) ---- */
.moroccoplan-site-header .header__right .dropdown-language {
	list-style: none;
	position: relative;
	display: flex;
	align-items: center;
}

.moroccoplan-site-header .header__right .dropdown-language .dropdown-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--mp-header-border);
	border-radius: 8px;
	background: var(--mp-header-surface);
	color: var(--mp-header-navy);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: border-color 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}

.moroccoplan-site-header .dropdown-language .dropdown-toggle:hover,
.moroccoplan-site-header .dropdown-language .dropdown-toggle:focus-visible,
.moroccoplan-site-header .dropdown-language.show .dropdown-toggle {
	border-color: #c9d3df;
	background: #f7f9fb;
	color: var(--mp-header-navy);
}

.moroccoplan-site-header .dropdown-language .moroccoplan-header-language__flag {
	flex: 0 0 auto;
	width: 18px;
	height: 12px;
	object-fit: cover;
	border-radius: 2px;
	display: block;
}

.moroccoplan-site-header .dropdown-language .moroccoplan-header-language__name {
	flex: 0 1 auto;
	min-width: 0;
	line-height: 1.2;
}

.moroccoplan-site-header .dropdown-language .dropdown-toggle .fa-angle-down {
	font-family: inherit !important;
	font-size: 11px !important;
	font-weight: 700;
	color: var(--mp-header-text) !important;
	margin-left: 2px !important;
	transform: none !important;
}

.moroccoplan-site-header .dropdown-language .dropdown-toggle .fa-angle-down::before {
	content: "▾" !important;
}

/*
 * Static placement (data-bs-display="static"): avoid Popper translateY gap over the hero.
 * Right-align under the language control; keep above hero/content.
 */
.moroccoplan-site-header .dropdown-language .dropdown-menu,
.moroccoplan-site-header .dropdown-language .dropdown-menu.dropdown-menu-end {
	position: absolute !important;
	inset: auto 0 auto auto !important;
	top: calc(100% + 6px) !important;
	right: 0 !important;
	left: auto !important;
	transform: none !important;
	margin: 0 !important;
	z-index: 10050;
	min-width: max(100%, 11.5rem);
	width: max-content;
	max-width: min(18rem, calc(100vw - 24px));
	border: 1px solid var(--mp-header-border);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(15, 36, 56, 0.14);
	padding: 6px;
	background: var(--mp-header-surface);
	overflow: hidden;
}

.moroccoplan-site-header .dropdown-language .dropdown-menu li {
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
	list-style: none;
}

.moroccoplan-site-header .dropdown-language .dropdown-menu li + li {
	margin-top: 2px !important;
}

.moroccoplan-site-header .dropdown-language .dropdown-menu li a,
.moroccoplan-site-header .dropdown-language .dropdown-menu li a.moroccoplan-header-language__option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--mp-header-navy);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 160ms ease-out, color 160ms ease-out;
}

.moroccoplan-site-header .dropdown-language .dropdown-menu li a:hover,
.moroccoplan-site-header .dropdown-language .dropdown-menu li a:focus-visible {
	background: #f3f6f9;
	color: var(--mp-header-orange);
	outline: none;
}

.moroccoplan-site-header .dropdown-language .dropdown-menu li.is-active a,
.moroccoplan-site-header .dropdown-language .dropdown-menu li.is-active a:hover,
.moroccoplan-site-header .dropdown-language .dropdown-menu li.is-active a:focus-visible {
	background: rgba(255, 85, 51, 0.1);
	color: var(--mp-header-orange);
	font-weight: 700;
}

/* ---- Live Support ---- */
.moroccoplan-site-header .header__right .items li.st-header-link.moroccoplan-header-support a.moroccoplan-header-support__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 8px !important;
	background: var(--mp-header-navy-2) !important;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	filter: none !important;
	transition: background-color 160ms ease-out, transform 120ms ease-out;
}

.moroccoplan-site-header .header__right .items li.st-header-link.moroccoplan-header-support a.moroccoplan-header-support__link:hover,
.moroccoplan-site-header .header__right .items li.st-header-link.moroccoplan-header-support a.moroccoplan-header-support__link:focus-visible {
	background: var(--mp-header-navy) !important;
	filter: none !important;
	transform: translateY(-1px);
}

.moroccoplan-site-header .header__right .items li.st-header-link.moroccoplan-header-support a.moroccoplan-header-support__link:active {
	transform: translateY(0);
}

.moroccoplan-site-header .header__right .moroccoplan-header-support__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
}

.moroccoplan-site-header .header__right .moroccoplan-header-support__label {
	white-space: nowrap;
}

/* ---- Mobile WhatsApp icon ---- */
.moroccoplan-site-header .header__right .items li.st-header-whatsapp-mobile {
	display: none;
	list-style: none;
}

@media screen and (max-width: 1200px) {
	.moroccoplan-site-header .header__right .items li.st-header-whatsapp-mobile {
		display: flex;
		align-items: center;
	}
}

.moroccoplan-site-header .header__right .st-header-whatsapp-mobile .st-header-whatsapp-mobile__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--mp-header-border);
	border-radius: 8px;
	color: var(--mp-header-navy-2);
	background: var(--mp-header-surface);
	text-decoration: none;
	line-height: 1;
	transition: border-color 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}

.moroccoplan-site-header .header__right .st-header-whatsapp-mobile .st-header-whatsapp-mobile__link:hover,
.moroccoplan-site-header .header__right .st-header-whatsapp-mobile .st-header-whatsapp-mobile__link:focus-visible {
	border-color: #c9d3df;
	background: #f7f9fb;
	color: var(--mp-header-navy);
}

.moroccoplan-site-header .header__right .st-header-whatsapp-mobile .st-header-whatsapp-mobile__link i {
	font-size: 22px;
}

/* ---- Menu toggle (mobile/tablet) ---- */
.moroccoplan-site-header .header__left .menu-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--mp-header-border);
	border-radius: 8px;
	background: var(--mp-header-surface);
	cursor: pointer;
	flex-shrink: 0;
}

.moroccoplan-site-header .header__left .menu-toggle::before,
.moroccoplan-site-header .header__left .menu-toggle::after,
.moroccoplan-site-header .header__left .menu-toggle span {
	content: "";
	position: absolute;
	left: 11px;
	right: 11px;
	height: 2px;
	border-radius: 1px;
	background: var(--mp-header-navy);
	transition: transform 180ms ease-out, opacity 180ms ease-out, top 180ms ease-out;
}

.moroccoplan-site-header .header__left .menu-toggle::before {
	top: 15px;
}

.moroccoplan-site-header .header__left .menu-toggle span {
	top: 21px;
}

.moroccoplan-site-header .header__left .menu-toggle::after {
	top: 27px;
}

.moroccoplan-site-header .header__left .menu-toggle:focus-visible {
	outline: 2px solid var(--mp-header-navy-2);
	outline-offset: 2px;
}

.moroccoplan-site-header .header__left .menu-toggle.is-open::before {
	top: 21px;
	transform: rotate(45deg);
}

.moroccoplan-site-header .header__left .menu-toggle.is-open span {
	opacity: 0;
}

.moroccoplan-site-header .header__left .menu-toggle.is-open::after {
	top: 21px;
	transform: rotate(-45deg);
}

/* ---- Mobile drawer ---- */
@media screen and (max-width: 991px) {
	.moroccoplan-site-header {
		--mp-site-header-height: 65px;
	}

	.moroccoplan-site-header .moroccoplan-header {
		min-height: 64px;
		padding: 0 !important;
	}

	.moroccoplan-site-header .header__left {
		flex: 1 1 auto;
		justify-content: flex-start;
		align-items: center;
		gap: 10px;
		min-width: 0;
		position: relative;
	}

	.moroccoplan-site-header .header__left .menu-toggle {
		display: block;
		order: -1;
		flex-shrink: 0;
	}

	/*
	 * Override Traveler elementorv2 (≤782px) absolute-centered logo:
	 *   .st-mod-style .header__left .logo { position:absolute; left:50%; transform:translate(-50%,-50%); }
	 * Keep logo in normal flex flow immediately after the hamburger.
	 */
	.moroccoplan-site-header .header__left .logo,
	.moroccoplan-site-header .header__left .custom-logo-link {
		position: static !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		transform: none !important;
		margin: 0 !important;
		flex: 0 1 auto;
		min-width: 0;
		line-height: 0;
	}

	.moroccoplan-site-header .header__right .st-header-whatsapp-mobile .st-header-whatsapp-mobile__link {
		width: 48px;
		height: 48px;
	}

	.moroccoplan-site-header .header__right .st-header-whatsapp-mobile .st-header-whatsapp-mobile__link i {
		font-size: 24px;
	}

	/* Mobile header cluster: [Language] [WhatsApp] — currency stays in drawer */
	.moroccoplan-site-header .header__right .items {
		flex-wrap: nowrap;
		gap: 8px;
		flex-shrink: 0;
	}

	.moroccoplan-site-header .header__right .dropdown-currency,
	.moroccoplan-site-header .header__right .moroccoplan-header-support {
		display: none !important;
	}

	.moroccoplan-site-header .header__right .dropdown-language {
		display: flex !important;
		flex-shrink: 0;
		order: 1;
	}

	.moroccoplan-site-header .header__right .st-header-whatsapp-mobile {
		order: 2;
		flex-shrink: 0;
	}

	.moroccoplan-site-header .header__right .dropdown-language .dropdown-toggle {
		min-height: 48px;
		height: 48px;
		padding: 0 10px;
		gap: 6px;
		border: 1px solid var(--mp-header-border);
		border-radius: 8px;
		background: var(--mp-header-surface);
	}

	.moroccoplan-site-header .header__right .dropdown-language .dropdown-toggle .moroccoplan-header-language__flag {
		display: block;
	}

	.moroccoplan-site-header .header__right .dropdown-language .dropdown-toggle .moroccoplan-header-language__name {
		display: inline;
		font-size: 13px;
		font-weight: 600;
		color: var(--mp-header-navy);
	}

	.moroccoplan-site-header .header__right .dropdown-language .dropdown-menu {
		right: 0 !important;
		left: auto !important;
		min-width: max(100%, 12.5rem);
		max-width: calc(100vw - 16px);
		z-index: 10050;
	}

	.moroccoplan-site-header .header__right .dropdown-language .dropdown-menu .moroccoplan-header-language__flag {
		display: block;
	}

	.moroccoplan-site-header .header__right .dropdown-language .dropdown-menu .moroccoplan-header-language__name {
		display: inline;
	}

	/* Larger left logo; width-led sizing keeps aspect ratio; max-height protects header height */
	.moroccoplan-site-header .header__left .logo img,
	.moroccoplan-site-header .header__left .custom-logo-link img {
		display: block;
		width: auto;
		height: auto;
		max-width: min(160px, 44vw);
		max-height: 42px;
		object-fit: contain;
	}

	.moroccoplan-site-header .header__center {
		position: static;
		flex: 0 0 auto;
		width: 0;
		min-width: 0;
		overflow: visible;
	}

	.moroccoplan-site-header .header__right {
		margin-left: auto;
		flex-shrink: 0;
	}

	.moroccoplan-site-header .header__center #st-main-menu {
		position: fixed;
		left: -150%;
		top: 0;
		width: min(320px, 88vw);
		height: 100dvh;
		max-width: none;
		background: var(--mp-header-surface);
		box-shadow: 8px 0 32px rgba(15, 36, 56, 0.12);
		z-index: 10001;
		transform: none;
		transition: left 240ms ease-out;
		overflow: auto;
		padding-bottom: 24px;
	}

	.moroccoplan-site-header .header__center #st-main-menu.open {
		left: 0;
		transform: none;
	}

	.moroccoplan-site-header .header__center #st-main-menu .back-menu {
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 14px 20px;
		background: #f3f6f9;
		border-bottom: 1px solid var(--mp-header-border);
		color: var(--mp-header-navy);
		font-size: 14px;
		font-weight: 600;
	}

	.moroccoplan-site-header .header__center #st-main-menu .main-menu {
		padding: 8px 16px 0;
	}

	.moroccoplan-site-header .header__center #st-main-menu .main-menu > li > a {
		padding: 16px 4px;
		font-size: 16px;
		font-weight: 600;
		border-bottom: 1px solid var(--mp-header-border);
	}

	.moroccoplan-site-header .header__center #st-main-menu .main-menu > li > a::after {
		display: none;
	}

	.moroccoplan-site-header .header__center .overlay {
		position: fixed;
		inset: 0;
		background: rgba(15, 36, 56, 0.45);
		z-index: 10000;
		opacity: 0;
		pointer-events: none;
		transition: opacity 200ms ease-out;
	}

	.moroccoplan-site-header .header__center .overlay[style*="display: block"],
	.moroccoplan-site-header .header__center .overlay.is-visible {
		opacity: 1;
		pointer-events: auto;
	}

	/* Hidden in collapsed header bar; only shown at bottom of open drawer */
	.moroccoplan-site-header .header__center .st-list-mobile {
		display: none;
	}

	.moroccoplan-site-header .header__center #st-main-menu.open ~ .st-list-mobile {
		display: flex;
		justify-content: flex-start;
		position: fixed;
		left: 0;
		bottom: 0;
		width: min(320px, 88vw);
		padding: 12px 16px 0;
		margin: 0 0 10px;
		border-top: 1px solid var(--mp-header-border);
		z-index: 10002;
	}

	.moroccoplan-site-header .header__center #st-main-menu.open ~ .st-list-mobile .dropdown-currency .dropdown-toggle {
		width: 100%;
		justify-content: space-between;
	}

	/* Drawer sits at viewport bottom — open menu upward, same width as EUR. */
	.moroccoplan-site-header .header__center #st-main-menu.open ~ .st-list-mobile .dropdown-currency {
		width: 100%;
		max-width: 100%;
	}

	.moroccoplan-site-header .header__center #st-main-menu.open ~ .st-list-mobile .dropdown-currency .dropdown-menu,
	.moroccoplan-site-header .header__center #st-main-menu.open ~ .st-list-mobile .dropdown-currency .dropdown-menu.dropdown-menu-end {
		top: auto !important;
		bottom: calc(100% + 6px) !important;
		left: 0 !important;
		right: 0 !important;
		inset: auto 0 calc(100% + 6px) 0 !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none;
		padding: 4px !important;
	}
}

@media screen and (max-width: 767px) {
	.moroccoplan-site-header #topbar.moroccoplan-topbar.style-elementor.mobile-hidden {
		display: none;
	}

	/* Slightly tighter gaps; keep logo in the preferred 145–165px band when space allows */
	.moroccoplan-site-header .moroccoplan-header__shell {
		padding-left: 12px;
		padding-right: 12px;
		gap: 8px;
	}

	.moroccoplan-site-header .header__left {
		gap: 8px;
	}

	.moroccoplan-site-header .header__right .items {
		gap: 6px;
	}

	.moroccoplan-site-header .header__left .logo img,
	.moroccoplan-site-header .header__left .custom-logo-link img {
		max-width: min(156px, 46vw);
		max-height: 42px;
	}
}

@media screen and (max-width: 360px) {
	.moroccoplan-site-header .moroccoplan-header__shell {
		padding-left: 10px;
		padding-right: 10px;
		gap: 6px;
	}

	.moroccoplan-site-header .header__left {
		gap: 6px;
	}

	.moroccoplan-site-header .header__right .items {
		gap: 4px;
	}

	.moroccoplan-site-header .header__left .logo img,
	.moroccoplan-site-header .header__left .custom-logo-link img {
		max-width: min(128px, 40vw);
		max-height: 40px;
	}

	.moroccoplan-site-header .header__right .dropdown-language .dropdown-toggle {
		padding: 0 8px;
	}
}

@media screen and (max-width: 320px) {
	.moroccoplan-site-header .moroccoplan-header__shell {
		padding-left: 8px;
		padding-right: 8px;
		gap: 4px;
	}

	.moroccoplan-site-header .header__left {
		gap: 4px;
	}

	.moroccoplan-site-header .header__right .items {
		gap: 4px;
	}

	.moroccoplan-site-header .header__left .logo img,
	.moroccoplan-site-header .header__left .custom-logo-link img {
		max-width: min(118px, 37vw);
		max-height: 38px;
	}

	.moroccoplan-site-header .header__right .dropdown-language .dropdown-toggle {
		padding: 0 6px;
	}
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
	.moroccoplan-site-header .header__center #st-main-menu .main-menu > li > a {
		padding-left: 8px;
		padding-right: 8px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.moroccoplan-site-header,
	.moroccoplan-site-header #topbar.moroccoplan-topbar.style-elementor,
	.moroccoplan-site-header .moroccoplan-header,
	.moroccoplan-site-header .header__center #st-main-menu,
	.moroccoplan-site-header .header__left .menu-toggle::before,
	.moroccoplan-site-header .header__left .menu-toggle::after,
	.moroccoplan-site-header .header__left .menu-toggle span {
		transition-duration: 0.01ms !important;
	}
}
