/* ==========================================================================
   TLS Mobiel Menu — tanzanialodgeandsafaris.com
   Huisstijl: oranje #d96f32, zand #e8e4da, inkt #2b2b2b, fonts Quicksand/Combo
   ========================================================================== */

.tls-mm-root,
.tls-mm-toggle {
	--tls-accent: #d96f32;
	--tls-accent-dark: #b8551f;
	--tls-ink: #2b2b2b;
	--tls-ink-soft: rgba(43, 43, 43, .62);
	--tls-sand: #e8e4da;
	--tls-cream: #faf7f1;
	--tls-line: rgba(43, 43, 43, .10);
	--tls-ease: cubic-bezier(.22, 1, .36, 1);
	--tls-font: 'Quicksand', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--tls-display: 'Combo', 'Quicksand', var(--tls-font);
}

/* --------------------------------------------------------------------------
   1. Hamburger
   -------------------------------------------------------------------------- */

.tls-mm-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0 -8px 0 4px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--tls-accent);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .25s ease;
}

.tls-mm-toggle:focus-visible {
	outline: 2px solid var(--tls-accent);
	outline-offset: 2px;
}

.tls-mm-bars {
	position: relative;
	display: block;
	width: 26px;
	height: 16px;
}

.tls-mm-bars i {
	position: absolute;
	left: 0;
	display: block;
	width: 100%;
	height: 2px;
	background: currentColor;
	transition: transform .35s var(--tls-ease), opacity .2s ease, width .35s var(--tls-ease);
}

.tls-mm-bars i:nth-child(1) { top: 0; }
.tls-mm-bars i:nth-child(2) { top: 7px; width: 78%; }
.tls-mm-bars i:nth-child(3) { top: 14px; }

.tls-mm-toggle.is-active .tls-mm-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tls-mm-toggle.is-active .tls-mm-bars i:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.tls-mm-toggle.is-active .tls-mm-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Vangnet: geen plek in de header gevonden -> zwevende knop. */
.tls-mm-toggle--float {
	position: fixed;
	top: 14px;
	right: 14px;
	z-index: 100000;
	background: #fff;
	box-shadow: 0 6px 20px rgba(31, 25, 20, .18);
}

/* --------------------------------------------------------------------------
   2. Divi's eigen mobiele menu uitschakelen
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
	html[data-tls-mm="ready"] .et_mobile_nav_menu,
	html[data-tls-mm="ready"] .et_pb_menu .et_mobile_nav_menu,
	html[data-tls-mm="ready"] .et_mobile_menu {
		display: none !important;
	}

	.tls-mm-toggle {
		display: inline-flex;
	}
}

/* --------------------------------------------------------------------------
   3. Drawer
   -------------------------------------------------------------------------- */

.tls-mm-root {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	font-family: var(--tls-font);
	line-height: 1.4;
}

.tls-mm-root[data-state="open"],
.tls-mm-root[data-state="closing"] {
	display: block;
}

.tls-mm-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(31, 25, 20, .55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .38s ease;
}

.tls-mm-root[data-state="open"] .tls-mm-backdrop {
	opacity: 1;
}

.tls-mm-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(90vw, 400px);
	background: var(--tls-cream);
	box-shadow: -26px 0 60px rgba(31, 25, 20, .3);
	transform: translateX(100%);
	transition: transform .45s var(--tls-ease);
	overflow: hidden;
}

.tls-mm-root[data-state="open"] .tls-mm-panel {
	transform: translateX(0);
}

.tls-mm-panel:focus {
	outline: none;
}

/* Zon-gloed uit het logo, subtiel in de hoek. */
.tls-mm-panel::before {
	content: "";
	position: absolute;
	top: -110px;
	right: -80px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(217, 111, 50, .26) 0%, rgba(217, 111, 50, 0) 70%);
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. Kop met logo + sluitknop
   -------------------------------------------------------------------------- */

.tls-mm-head {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px 16px;
	border-bottom: 1px solid var(--tls-line);
}

.tls-mm-logo {
	display: block;
	max-width: 150px;
	max-height: 52px;
	width: auto;
	height: auto;
}

.tls-mm-wordmark {
	font-family: var(--tls-display);
	font-size: 19px;
	letter-spacing: .04em;
	color: var(--tls-ink);
}

.tls-mm-close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--tls-sand);
	color: var(--tls-ink);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .25s ease, color .25s ease, transform .35s var(--tls-ease);
}

.tls-mm-close .tls-mm-i {
	width: 20px;
	height: 20px;
}

.tls-mm-close:focus-visible {
	outline: 2px solid var(--tls-accent);
	outline-offset: 2px;
}

@media (hover: hover) {
	.tls-mm-close:hover {
		background: var(--tls-accent);
		color: #fff;
		transform: rotate(90deg);
	}
}

/* --------------------------------------------------------------------------
   5. Scrollgebied
   -------------------------------------------------------------------------- */

.tls-mm-scroll {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 20px 22px calc(28px + env(safe-area-inset-bottom, 0px));
}

.tls-mm-scroll > * + * {
	margin-top: 22px;
}

.tls-mm-kicker {
	margin: 0 0 10px;
	padding: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--tls-ink-soft);
}

/* --------------------------------------------------------------------------
   6. Zoekveld
   -------------------------------------------------------------------------- */

.tls-mm-search {
	position: relative;
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--tls-line);
	border-radius: 0;
	padding: 4px 4px 4px 18px;
	transition: border-color .25s ease, box-shadow .25s ease;
}

.tls-mm-search:focus-within {
	border-color: var(--tls-accent);
	box-shadow: 0 0 0 3px rgba(217, 111, 50, .14);
}

.tls-mm-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 10px 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	color: var(--tls-ink);
	-webkit-appearance: none;
	appearance: none;
}

.tls-mm-search input[type="search"]:focus {
	outline: none;
}

.tls-mm-search input::placeholder {
	color: var(--tls-ink-soft);
	opacity: 1;
}

.tls-mm-search button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--tls-accent);
	color: #fff;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .25s ease;
}

.tls-mm-search button .tls-mm-i {
	width: 18px;
	height: 18px;
}

@media (hover: hover) {
	.tls-mm-search button:hover {
		background: var(--tls-ink);
	}
}

/* --------------------------------------------------------------------------
   7. Navigatie
   -------------------------------------------------------------------------- */

.tls-mm-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tls-mm-item {
	border-bottom: 1px solid var(--tls-line);
}

.tls-mm-item:first-child {
	border-top: 1px solid var(--tls-line);
}

.tls-mm-row {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

.tls-mm-link {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 2px;
	font-family: var(--tls-font);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--tls-ink);
	text-decoration: none;
	transition: color .25s ease, transform .3s var(--tls-ease);
}

.tls-mm-link::before {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	background: var(--tls-accent);
	opacity: 0;
	transform: scale(.4);
	transition: opacity .25s ease, transform .3s var(--tls-ease);
}

.tls-mm-item.is-current > .tls-mm-row .tls-mm-link {
	color: var(--tls-accent);
}

.tls-mm-item.is-current > .tls-mm-row .tls-mm-link::before {
	opacity: 1;
	transform: scale(1);
}

@media (hover: hover) {
	.tls-mm-link:hover {
		color: var(--tls-accent);
		transform: translateX(3px);
	}
}

.tls-mm-link:focus-visible,
.tls-mm-sub a:focus-visible,
.tls-mm-sub-toggle:focus-visible,
.tls-mm-contact a:focus-visible,
.tls-mm-lang:focus-visible,
.tls-mm-cta:focus-visible {
	outline: 2px solid var(--tls-accent);
	outline-offset: 3px;
}

.tls-mm-sub-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	margin: 6px 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--tls-sand);
	color: var(--tls-ink);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .25s ease, color .25s ease;
}

.tls-mm-sub-toggle .tls-mm-i {
	width: 16px;
	height: 16px;
	transition: transform .35s var(--tls-ease);
}

.tls-mm-item.is-open > .tls-mm-row .tls-mm-sub-toggle {
	background: var(--tls-accent);
	color: #fff;
}

.tls-mm-item.is-open > .tls-mm-row .tls-mm-sub-toggle .tls-mm-i {
	transform: rotate(180deg);
}

.tls-mm-sub {
	height: 0;
	overflow: hidden;
	transition: height .36s var(--tls-ease);
}

.tls-mm-sub[hidden] {
	display: none;
}

.tls-mm-nav .tls-mm-sub-inner {
	position: relative;
	margin: 0 0 14px 3px;
	padding: 0 0 0 16px;
	list-style: none;
}

.tls-mm-sub-inner::before {
	content: "";
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	width: 2px;
	background: linear-gradient(to bottom, var(--tls-accent), rgba(217, 111, 50, .15));
}

.tls-mm-sub a {
	display: block;
	padding: 9px 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--tls-ink-soft);
	text-decoration: none;
	transition: color .22s ease, transform .28s var(--tls-ease);
}

.tls-mm-subitem.is-current > a {
	color: var(--tls-accent);
	font-weight: 600;
}

@media (hover: hover) {
	.tls-mm-sub a:hover {
		color: var(--tls-accent);
		transform: translateX(3px);
	}
}

/* --------------------------------------------------------------------------
   8. CTA-knop (menu-item met class "menu-knop")
   -------------------------------------------------------------------------- */

.tls-mm-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 17px 24px;
	border-radius: 0;
	background: var(--tls-accent);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 10px 24px -12px rgba(217, 111, 50, .9);
	transition: background-color .25s ease, transform .3s var(--tls-ease), box-shadow .3s ease;
}

@media (hover: hover) {
	.tls-mm-cta:hover {
		background: #000;
		transform: translateY(-2px);
		box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .55);
	}
}

/* --------------------------------------------------------------------------
   9. Contactblok
   -------------------------------------------------------------------------- */

.tls-mm-contact {
	padding: 20px;
	border-radius: 0;
	background: var(--tls-ink);
	color: var(--tls-sand);
}

.tls-mm-contact .tls-mm-kicker {
	color: rgba(232, 228, 218, .6);
}

.tls-mm-contact a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--tls-sand);
	text-decoration: none;
	transition: color .22s ease;
}

/* Lange e-mailadressen mogen de kaart niet uitlopen. */
.tls-mm-contact a span {
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.tls-mm-contact a .tls-mm-i {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	color: var(--tls-accent);
	transition: color .22s ease;
}

@media (hover: hover) {
	.tls-mm-contact a:hover {
		color: #fff;
	}

	.tls-mm-contact a:hover .tls-mm-i {
		color: #fff;
	}
}

/* --------------------------------------------------------------------------
   10. Taalwisselaar
   -------------------------------------------------------------------------- */

.tls-mm-langs-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tls-mm-lang {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border: 1px solid var(--tls-line);
	border-radius: 0;
	background: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--tls-ink);
	text-decoration: none;
	transition: border-color .22s ease, background-color .22s ease, color .22s ease;
}

.tls-mm-lang img {
	display: block;
	width: 18px;
	height: 12px;
}

.tls-mm-lang.is-current {
	border-color: var(--tls-accent);
	background: rgba(217, 111, 50, .1);
	color: var(--tls-accent-dark);
}

@media (hover: hover) {
	.tls-mm-lang:hover {
		border-color: var(--tls-accent);
		color: var(--tls-accent-dark);
	}
}

/* --------------------------------------------------------------------------
   11. Animatie
   -------------------------------------------------------------------------- */

/* Ruststand is bewust zichtbaar: draait de animatie niet (achtergrondtab,
   prefers-reduced-motion), dan staat het menu er gewoon. */
.tls-mm-root[data-state="open"] [data-anim] {
	animation: tls-mm-in .55s var(--tls-ease) backwards;
	animation-delay: calc(var(--i, 0) * 45ms + 130ms);
}

@keyframes tls-mm-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tls-mm-panel,
	.tls-mm-backdrop,
	.tls-mm-sub,
	.tls-mm-bars i,
	.tls-mm-link,
	.tls-mm-cta,
	.tls-mm-close {
		transition-duration: .01ms !important;
	}

	.tls-mm-root[data-state="open"] [data-anim] {
		animation: none !important;
	}
}

/* --------------------------------------------------------------------------
   12. Scroll-lock
   -------------------------------------------------------------------------- */

html.tls-mm-locked,
html.tls-mm-locked body {
	overflow: hidden !important;
	overscroll-behavior: none;
}

/* Boven de breakpoint nooit iets tonen. */
@media (min-width: 981px) {
	.tls-mm-root,
	.tls-mm-toggle {
		display: none !important;
	}
}
