/* Route d'Égypte – Header */
.rdeh,
.rdeh-drawer {
	--rdeh-accent: #c79a3c;
	--rdeh-ink: #402e32;
	--rdeh-muted: #6a5c58;
	--rdeh-line: #ece6de;
	--rdeh-logo-h: 64px;
	font-family: "Poppins", sans-serif;
}
.rdeh *,
.rdeh-drawer * { box-sizing: border-box; }
.rdeh a,
.rdeh-drawer a { text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, transform .2s, opacity .2s; }
.rdeh ul,
.rdeh-drawer ul { list-style: none; margin: 0; padding: 0; }
.rdeh button,
.rdeh-drawer button { font: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; color: inherit; }
/* The theme styles every <button>; neutralise it for the sub-menu arrows. */
.rdeh .rdeh-sub-toggle,
.rdeh .rdeh-burger { background: transparent !important; box-shadow: none !important; min-width: 0; min-height: 0; line-height: 1; text-transform: none; letter-spacing: 0; }
.rdeh .rdeh-sub-toggle { border: 0 !important; padding: 0 !important; }
.rdeh .rdef-ico,
.rdeh-drawer .rdef-ico { width: 1em; height: 1em; flex: 0 0 auto; display: inline-block; }

.rdeh-wrap { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

.rdeh {
	position: relative;
	z-index: 1040; /* above Bootstrap .sticky-top (1020), below modals (1050) */
	background: #fff;
}
.rdeh--sticky {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--rdeh-top-h, 0px));
}
.rdeh.is-scrolled .rdeh-bar { box-shadow: 0 8px 24px rgba(30, 15, 10, .08); }

/* ---------- Top bar ---------- */
.rdeh-top { border-bottom: 1px solid var(--rdeh-line); font-size: 14px; }
.rdeh-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; }
.rdeh-top__contact { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 28px; }
.rdeh .rdeh-contact,
.rdeh-drawer .rdeh-contact { display: inline-flex; align-items: center; gap: 9px; color: var(--rdeh-muted); line-height: 1.4; }
.rdeh .rdeh-contact .rdef-ico,
.rdeh-drawer .rdeh-contact .rdef-ico { color: var(--rdeh-accent); font-size: 16px; }
.rdeh .rdeh-contact:hover,
.rdeh-drawer .rdeh-contact:hover { color: var(--rdeh-accent); }

.rdeh-top__social,
.rdeh-drawer__social { display: flex; align-items: center; gap: 8px; }
.rdeh .rdeh-soc,
.rdeh-drawer .rdeh-soc {
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--rdeh-ink);
	color: #fff;
	font-size: 13px;
}
.rdeh .rdeh-soc:hover,
.rdeh-drawer .rdeh-soc:hover { transform: translateY(-2px); opacity: .9; color: #fff; }
.rdeh-soc--tripadvisor { background: #34e0a1 !important; color: #000 !important; font-size: 15px !important; }
.rdeh-soc--facebook { background: #1877f2 !important; }
.rdeh-soc--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important; }
.rdeh-soc--whatsapp { background: #25d366 !important; }
.rdeh-soc--linkedin { background: #0a66c2 !important; }
.rdeh-soc--youtube { background: #ff0000 !important; }
.rdeh-soc--tiktok { background: #000 !important; }

/* ---------- Main bar ---------- */
.rdeh-bar { background: #fff; transition: box-shadow .25s; }
.rdeh-bar__inner { display: flex; align-items: center; gap: 24px; min-height: 90px; }

.rdeh-logo { flex: 0 0 auto; display: flex; align-items: center; }
.rdeh-logo img { display: block; height: var(--rdeh-logo-h); width: auto; max-width: 220px; object-fit: contain; }
.rdeh-logo__text { font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 700; color: var(--rdeh-ink); }

.rdeh-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; min-width: 0; }
.rdeh-nav .rdeh-menu { display: flex; align-items: center; gap: 0; }
.rdeh-nav .rdeh-item { position: relative; display: flex; align-items: center; }
.rdeh-nav .rdeh-menu > .rdeh-item > a {
	position: relative;
	display: block;
	padding: 33px 9px;
	font-size: 14px;
	font-weight: 600;
	line-height: 24px;
	color: var(--rdeh-ink);
	white-space: nowrap;
}
.rdeh-nav .rdeh-menu > .rdeh-item.has-sub > a { padding-right: 23px; }
.rdeh-nav .rdeh-menu > .rdeh-item > a::after {
	content: "";
	position: absolute;
	left: 9px;
	right: 9px;
	bottom: 24px;
	height: 2px;
	border-radius: 2px;
	background: var(--rdeh-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s;
}
.rdeh-nav .rdeh-menu > .rdeh-item.has-sub > a::after { right: 23px; }
.rdeh-nav .rdeh-menu > .rdeh-item:hover > a,
.rdeh-nav .rdeh-menu > .rdeh-item.is-current > a { color: var(--rdeh-accent); }
.rdeh-nav .rdeh-menu > .rdeh-item:hover > a::after,
.rdeh-nav .rdeh-menu > .rdeh-item.is-current > a::after { transform: scaleX(1); }

.rdeh-nav .rdeh-sub-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	display: grid;
	place-items: center;
	color: var(--rdeh-ink);
}
.rdeh .rdeh-sub-toggle svg,
.rdeh-drawer .rdeh-sub-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.rdeh-nav .rdeh-item:hover > .rdeh-sub-toggle { color: var(--rdeh-accent); }
.rdeh-nav .rdeh-item:hover > .rdeh-sub-toggle svg { transform: rotate(180deg); }

/* Dropdown */
.rdeh-nav .rdeh-sub {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 250px;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--rdeh-line);
	border-top: 2px solid var(--rdeh-accent);
	border-radius: 0 0 12px 12px;
	box-shadow: 0 18px 40px rgba(30, 15, 10, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.rdeh-nav .rdeh-item:hover > .rdeh-sub,
.rdeh-nav .rdeh-item:focus-within > .rdeh-sub,
.rdeh-nav .rdeh-item.is-open > .rdeh-sub { opacity: 1; visibility: visible; transform: none; }
.rdeh-nav .rdeh-sub a {
	display: block;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--rdeh-ink);
	white-space: nowrap;
}
.rdeh-nav .rdeh-sub a:hover,
.rdeh-nav .rdeh-sub .is-current > a { background: #f4efe8; color: var(--rdeh-accent); }

/* Button */
.rdeh .rdeh-btn,
.rdeh-drawer .rdeh-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 26px;
	border-radius: 100px;
	background: var(--rdeh-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	white-space: nowrap;
}
.rdeh .rdeh-btn:hover,
.rdeh-drawer .rdeh-btn:hover { background: var(--rdeh-ink); color: #fff; transform: translateY(-1px); }
.rdeh-drawer .rdeh-btn--block { display: flex; width: 100%; }

/* Burger */
.rdeh .rdeh-burger {
	display: none;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin-left: auto;
	border-radius: 10px;
	border: 1px solid var(--rdeh-line);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}
.rdeh-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--rdeh-ink); }

/* ---------- Mobile drawer ---------- */
.rdeh-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(30, 15, 10, .5);
	opacity: 0;
	transition: opacity .3s;
}
.rdeh-overlay.is-visible { opacity: 1; }
.rdeh-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 100001;
	width: min(380px, 88vw);
	display: none; /* mounted by JS on open so the off-screen panel never widens the page */
	flex-direction: column;
	background: #fff;
	box-shadow: -10px 0 40px rgba(30, 15, 10, .18);
	transform: translateX(105%);
	visibility: hidden;
	transition: transform .3s ease, visibility .3s;
}
.rdeh-drawer.is-mounted { display: flex; }
.rdeh-drawer.is-open { transform: none; visibility: visible; }
.rdeh-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rdeh-line); }
.rdeh-drawer .rdeh-logo img { height: 46px; }
.rdeh-drawer .rdeh-close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #f4efe8; color: var(--rdeh-ink); }
.rdeh-drawer .rdeh-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.rdeh-drawer__nav { flex: 1 1 auto; overflow-y: auto; padding: 8px 20px; }
.rdeh-drawer .rdeh-item { position: relative; border-bottom: 1px solid var(--rdeh-line); }
.rdeh-drawer .rdeh-menu > .rdeh-item > a {
	display: block;
	padding: 15px 48px 15px 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--rdeh-ink);
}
.rdeh-drawer .rdeh-item.is-current > a,
.rdeh-drawer .rdeh-item > a:hover { color: var(--rdeh-accent); }
.rdeh-drawer .rdeh-sub-toggle {
	position: absolute;
	top: 8px;
	right: 0;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: #f4efe8;
	color: var(--rdeh-ink);
}
.rdeh-drawer .rdeh-item.is-open > .rdeh-sub-toggle svg { transform: rotate(180deg); }
.rdeh-drawer .rdeh-sub { display: none; padding: 0 0 12px 12px; border-left: 2px solid var(--rdeh-accent); margin-bottom: 12px; }
.rdeh-drawer .rdeh-item.is-open > .rdeh-sub { display: block; }
.rdeh-drawer .rdeh-sub .rdeh-item { border: 0; }
.rdeh-drawer .rdeh-sub a { display: block; padding: 9px 0 9px 6px; font-size: 14px; color: var(--rdeh-muted); }
.rdeh-drawer .rdeh-sub a:hover,
.rdeh-drawer .rdeh-sub .is-current > a { color: var(--rdeh-accent); }

.rdeh-drawer__foot { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-top: 1px solid var(--rdeh-line); background: #faf7f3; }
.rdeh-drawer__contact { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }

html.rdeh-lock,
html.rdeh-lock body { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1439px) {
	.rdeh-wrap { padding: 0 24px; }
	.rdeh-bar__inner { gap: 18px; }
	.rdeh-nav .rdeh-menu > .rdeh-item > a { font-size: 13px; padding-left: 7px; padding-right: 7px; }
	.rdeh-nav .rdeh-menu > .rdeh-item.has-sub > a { padding-right: 21px; }
	.rdeh-nav .rdeh-menu > .rdeh-item > a::after { left: 7px; right: 7px; }
	.rdeh-nav .rdeh-menu > .rdeh-item.has-sub > a::after { right: 21px; }
	.rdeh-nav .rdeh-sub-toggle { right: 4px; }
	.rdeh .rdeh-btn { padding: 11px 18px; font-size: 13px; }
	.rdeh-logo img { height: calc(var(--rdeh-logo-h) * .85); }
}

@media (max-width: 1279px) {
	.rdeh-nav,
	.rdeh-bar .rdeh-btn { display: none; }
	.rdeh .rdeh-burger { display: flex; }
	.rdeh-bar__inner { min-height: 76px; }
	.rdeh-logo img { height: 54px; }
}

@media (max-width: 767px) {
	.rdeh-wrap { padding: 0 16px; }
	.rdeh-top { font-size: 13px; }
	.rdeh-top__inner { min-height: 40px; }
	.rdeh-top .rdeh-contact--mail { display: none; }
	.rdeh-top__social { gap: 6px; }
	.rdeh .rdeh-soc { width: 26px; height: 26px; font-size: 12px; }
	.rdeh-bar__inner { min-height: 68px; }
	.rdeh-logo img { height: 46px; }
}

@media (max-width: 380px) {
	.rdeh-top__social .rdeh-soc--linkedin { display: none; }
}

/* Let the page banner sit flush under the header: drop Elementor's default 10px top padding
   on the first section of the page (only the page document, not the footer template). */
#rde-header ~ .elementor > .e-con:first-child { --padding-top: 0px; }

/* The Traveler theme pushes content down for its own fixed header on some templates. */
body.rdeh-active #header { display: none; }
