/* =========================================================
   Mobile & tablet navigation — 5starscarrental
   Self-contained drawer + bottom bar (no slicknav dependency)
   ========================================================= */

:root {
	--mn-accent: #623823;
	--mn-accent-soft: #8a5433;
	--mn-dark: #0b0b0b;
}

/* Kill the legacy slicknav output on small screens */
@media only screen and (max-width: 991px) {
	.responsive-menu,
	.slicknav_menu,
	.navbar-toggle .slicknav_btn {
		display: none !important;
	}

	.navbar-toggle {
		display: block !important;
	}
}

/* Hamburger */
.mn-burger {
	display: none;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(140deg, var(--mn-accent), var(--mn-accent-soft));
	box-shadow: 0 14px 26px -16px rgba(98, 56, 35, 0.9);
	cursor: pointer;
	padding: 0;
	position: relative;
	z-index: 100001;
}

.mn-burger span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px auto;
	border-radius: 4px;
	background: #fff;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

body.mn-open .mn-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.mn-open .mn-burger span:nth-child(2) { opacity: 0; }
body.mn-open .mn-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media only screen and (max-width: 991px) {
	.mn-burger { display: block; }
}

/* Drawer */
.mn-scrim {
	position: fixed;
	inset: 0;
	z-index: 99990;
	background: rgba(10, 6, 3, 0.6);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mn-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 99991;
	width: min(86vw, 360px);
	height: 100%;
	padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
	background: #0f0d0b;
	color: #fff;
	overflow-y: auto;
	transform: translateX(105%);
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	box-shadow: -30px 0 70px -40px rgba(0, 0, 0, 0.9);
}

body.mn-open .mn-scrim { opacity: 1; visibility: visible; }
body.mn-open .mn-drawer { transform: translateX(0); }
body.mn-open { overflow: hidden; }

.mn-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 20px;
	margin-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mn-drawer__head img { width: 120px; height: auto; }

.mn-close {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.3s ease, background 0.3s ease;
}

.mn-close:hover { background: var(--mn-accent); transform: rotate(90deg); }

.mn-list { list-style: none; margin: 0; padding: 0; }

.mn-list li {
	opacity: 0;
	transform: translateX(24px);
}

body.mn-open .mn-list li {
	animation: mnIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.mn-open .mn-list li:nth-child(1) { animation-delay: 0.08s; }
body.mn-open .mn-list li:nth-child(2) { animation-delay: 0.14s; }
body.mn-open .mn-list li:nth-child(3) { animation-delay: 0.2s; }
body.mn-open .mn-list li:nth-child(4) { animation-delay: 0.26s; }
body.mn-open .mn-list li:nth-child(5) { animation-delay: 0.32s; }
body.mn-open .mn-list li:nth-child(6) { animation-delay: 0.38s; }

@keyframes mnIn {
	to { opacity: 1; transform: translateX(0); }
}

.mn-list a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 14px;
	border-radius: 16px;
	color: rgba(255, 255, 255, 0.86);
	font-family: var(--accent-font, "Epilogue", sans-serif);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.mn-list a i {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.07);
	color: #e0b078;
	font-size: 14px;
	transition: all 0.3s ease;
}

.mn-list a:hover,
.mn-list a.is-current {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	transform: translateX(4px);
}

.mn-list a:hover i,
.mn-list a.is-current i {
	background: linear-gradient(140deg, var(--mn-accent), var(--mn-accent-soft));
	color: #fff;
}

.mn-drawer__cta {
	display: block;
	margin-top: 22px;
	padding: 18px;
	border-radius: 999px;
	text-align: center;
	font-family: var(--accent-font, "Epilogue", sans-serif);
	font-size: 16px;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none;
	background: linear-gradient(120deg, var(--mn-accent), var(--mn-accent-soft));
	box-shadow: 0 20px 36px -20px rgba(98, 56, 35, 0.95);
}

.mn-drawer__meta {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
	line-height: 2;
}

.mn-drawer__meta a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }

/* ===== Bottom navigation (mobile only) — full width, flush with the bottom edge ===== */
.mn-bottom {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
	border-radius: 22px 22px 0 0;
	background: linear-gradient(180deg, rgba(26, 21, 18, 0.97), rgba(11, 9, 7, 0.99));
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	border-top: 1px solid rgba(224, 176, 120, 0.2);
	box-shadow: 0 -18px 40px -18px rgba(0, 0, 0, 0.7);
	grid-template-columns: repeat(4, 1fr);
	gap: 2px;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

@media only screen and (max-width: 767px) {
	.mn-bottom { display: grid; }
	body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

body.mn-open .mn-bottom,
body.pay-sheet-open .mn-bottom {
	transform: translateY(110%);
	opacity: 0;
	pointer-events: none;
}

.mn-bottom a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 6px 2px 4px;
	color: rgba(255, 255, 255, 0.56);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.3s ease;
}

.mn-bottom a i {
	width: 48px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 15px;
	font-size: 16px;
	transition: background 0.3s ease, color 0.3s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.mn-bottom a:active i { transform: scale(0.9); }

/* current page */
.mn-bottom a.is-current { color: #fff; }
.mn-bottom a.is-current i { background: rgba(224, 176, 120, 0.18); color: #e0b078; }

/* Pay Now = the main action */
.mn-bottom a.mn-bottom__pay { color: #fff; }
.mn-bottom a.mn-bottom__pay i {
	width: 56px;
	background: linear-gradient(140deg, var(--mn-accent), var(--mn-accent-soft));
	color: #fff;
	box-shadow: 0 10px 20px -8px rgba(138, 84, 51, 0.95);
}
.mn-bottom a.mn-bottom__pay.is-current i { box-shadow: 0 0 0 2px rgba(224, 176, 120, 0.55), 0 10px 20px -8px rgba(138, 84, 51, 0.95); }

/* Keep the WhatsApp float clear of the bottom navigation */
@media only screen and (max-width: 767px) {
	.whatsapp-widget {
		bottom: calc(86px + env(safe-area-inset-bottom)) !important;
		z-index: 9989 !important;
		transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
	}

	body.mn-open .whatsapp-widget,
	body.pay-sheet-open .whatsapp-widget {
		opacity: 0;
		transform: translateY(30px);
		pointer-events: none;
	}
}
