/* Shared by all Elementor header templates, including Customizer previews. */
@media (max-width: 1024px) {
	body.ehf-header #masthead {
		position: relative;
		z-index: 10020;
		overflow: visible;
	}

	/* Keep the navigation above the language selector and other header widgets. */
	#masthead .elementor-widget-navigation-menu {
		z-index: 10002;
		overflow: visible;
	}

	#masthead .hfe-nav-menu__toggle {
		position: relative;
		z-index: 10001;
		min-width: 44px;
		min-height: 44px;
	}

	/* The templates' -45px dropdown margin covered the close button. */
	#masthead .elementor-widget-navigation-menu nav.hfe-dropdown.menu-is-active {
		margin-top: 8px !important;
		background: #fff;
		max-height: var(--property-menu-height, 60vh);
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	#masthead .hfe-nav-menu__toggle.hfe-active-menu {
		color: #032059;
		background: #fff;
	}

	#masthead .hfe-nav-menu__toggle:focus-visible {
		outline: 2px solid #032059;
		outline-offset: 2px;
	}

	/* Some properties have a fixed agent contact bar outside the header's layer. */
	body:has(#masthead .hfe-nav-menu__toggle.hfe-active-menu) #property-agent-contact-methods-wrapper {
		visibility: hidden;
		pointer-events: none;
	}
}
