/*
 * MyEvergreeneHomes main menu rebuild overrides.
 *
 * Scope: rebuilt desktop burger/main menu only.
 * Purpose: make the rebuilt desktop menu behave like a simple right-side drawer
 * without editing hashed Vite-generated CSS assets directly.
 */

.nav-main__wrap-burger .rt-main-menu-desktop-panel {
	display: none !important;
}

.nav-main__wrap-burger .rt-main-menu-mobile-panel {
	display: block !important;
}

@media (min-width: 801px) {
	.nav-main__wrap-burger {
		width: 560px;
		max-width: 100vw;
		-webkit-box-shadow: -1px 0 20px 5px rgba(0, 0, 0, 0.2);
		box-shadow: -1px 0 20px 5px rgba(0, 0, 0, 0.2);
	}

	.nav-main__wrap-burger .nav-main {
		width: 100%;
		height: 100%;
		overflow: hidden;
	}

	.nav-main__wrap-burger .rt-main-menu-desktop-panel {
		display: block !important;
	}

	.nav-main__wrap-burger .rt-main-menu-mobile-panel {
		display: none !important;
	}

	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__bottom.-navstates,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__bottom.-navstates .links-list,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__bottom.-navstates .links-list__item {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__bottom.-navstates {
		margin-bottom: 5px;
	}

	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__bottom.-navstates .links-list {
		display: flex !important;
		flex-wrap: wrap;
		gap: 0 32px;
		align-items: center;
	}

	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item > a,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item > .plain-menu-item,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger .sub-menu a,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__bottom.-navstates .links-list__btn {
		font-size: 14px !important;
		line-height: 1.25 !important;
	}

	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children > .sub-menu {
		display: block !important;
		position: static !important;
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: 0 !important;
		margin: 0 !important;
		padding: 0 0 0 20px !important;
		overflow: hidden !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		clip: auto !important;
		clip-path: none !important;
		background: transparent !important;
		box-shadow: none !important;
		-webkit-transform: none !important;
		transform: none !important;
		-webkit-transition: none !important;
		transition: none !important;
	}

	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children:hover > .sub-menu,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children:focus-within > .sub-menu,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children[aria-expanded="true"] > .sub-menu,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children.is-open > .sub-menu,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children.active > .sub-menu {
		display: block !important;
		max-height: none !important;
		padding-top: 5px !important;
		overflow: visible !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}

	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children:hover > .sub-menu > .menu-item,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children:focus-within > .sub-menu > .menu-item,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children[aria-expanded="true"] > .sub-menu > .menu-item,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children.is-open > .sub-menu > .menu-item,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children.active > .sub-menu > .menu-item,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children:hover > .sub-menu a,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children:focus-within > .sub-menu a,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children[aria-expanded="true"] > .sub-menu a,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children.is-open > .sub-menu a,
	.nav-main__wrap-burger .rt-main-menu-desktop-panel .nav-main__links.desktop-burger > .menu-item-has-children.active > .sub-menu a {
		display: block !important;
		position: static !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}
	.wrapper-custom-tab-2 {
		min-height: 113rem;
	}

}

@media (max-width: 800px) {
	.nav-main__wrap-burger .rt-main-menu-desktop-panel {
		display: none !important;
	}

	.nav-main__wrap-burger .rt-main-menu-mobile-panel {
		display: block !important;
	}
	.wrapper-custom-tab-2 {
		min-height: 550px;
	}
}

@media (min-width: 1441px) {
	.site-header__burger {
		--burger-menu-padding: 150px 0 50px 60px;
	}
}
