/**
 * Mobile menu — right-side slide-in panel.
 *
 * Visually and structurally mirrors the explore sidebar (.mtp-explore) so
 * that the two side panels feel like one consistent system: explore opens
 * from the LEFT (its trigger is the map icon at the left of the nav),
 * the mobile menu opens from the RIGHT (its trigger is the hamburger at
 * the right of the mobile nav).
 *
 * Open/close behavior is driven by JS (.is-open class + the [hidden]
 * attribute), so no viewport @media queries are required here. Visibility
 * of the trigger button itself (.mobile-show) is handled in responsive.css.
 */

.mtp-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 1002;
	pointer-events: none;
}
.mtp-mobile-menu[hidden] {
	display: none;
}

/* Scrim/backdrop */
.mtp-mobile-menu__scrim {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.55);
	opacity: 0;
	transition: opacity 0.3s var(--ease-out);
	pointer-events: none;
	cursor: pointer;
}
.mtp-mobile-menu.is-open .mtp-mobile-menu__scrim {
	opacity: 1;
	pointer-events: auto;
}

/* Sliding panel — right side */
.mtp-mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(360px, 88vw);
	max-width: 88vw;
	background: var(--brand-black);
	color: var(--brand-white);
	transform: translateX(100%);
	transition: transform 0.35s var(--ease-out);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	pointer-events: auto;
	box-shadow: var(--shadow-md);
}
.mtp-mobile-menu.is-open .mtp-mobile-menu__panel {
	transform: translateX(0);
}

/* Header */
.mtp-mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.25rem, 4vw, 2rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	flex-shrink: 0;
}
.mtp-mobile-menu__title {
	margin: 0;
	font-family: 'Modulus Pro Bold', var(--font-sans);
	font-size: clamp(1.35rem, 1.5vw + 1rem, 1.75rem);
	font-weight: bold;
	letter-spacing: -0.02em;
	color: var(--brand-white);
}
.mtp-mobile-menu__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--radius-full);
	color: rgba(255, 255, 255, 0.9);
	font-size: 1rem;
	cursor: pointer;
	transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.mtp-mobile-menu__close:hover {
	color: var(--brand-mint);
	border-color: var(--brand-mint);
}
.mtp-mobile-menu__close:focus-visible {
	outline: 2px solid var(--brand-mint);
	outline-offset: 2px;
}

/* Body / scroll area */
.mtp-mobile-menu__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: clamp(1.5rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2rem) clamp(2rem, 5vw, 2.5rem);
	display: flex;
	flex-direction: column;
	gap: clamp(1.5rem, 4vw, 2rem);
}

/* Primary nav links */
.mtp-mobile-menu__nav .menu,
.mtp-mobile-menu__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.mtp-mobile-menu__nav li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.mtp-mobile-menu__nav a {
	display: block;
	padding: 0.65rem 0;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-family: 'Modulus Pro Bold', var(--font-sans);
	font-size: 1.25rem;
	font-weight: bold;
	letter-spacing: -0.01em;
	line-height: 1.25;
	transition: color 0.2s var(--ease-out);
}
.mtp-mobile-menu__nav a:hover {
	color: var(--brand-lime);
}
.mtp-mobile-menu__nav .current-menu-item > a,
.mtp-mobile-menu__nav .current_page_item > a {
	color: var(--brand-mint);
}

/* Login slot — sits below the menu, above the bottom edge. */
.mtp-mobile-menu__login {
	margin-top: auto;
	padding-top: clamp(1rem, 3vw, 1.5rem);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mtp-mobile-menu__login .nav-login-trigger {
	width: 100%;
}

/* Body lock when menu is open. */
body.mtp-mobile-menu-open {
	overflow: hidden;
}
