/**
 * Sticky header — white nav only
 *
 * Ollie sticks the entire <header> when it contains a sticky child
 * (header:has(> .is-position-sticky)). That pins the blue utility row
 * and breadcrumb too.
 *
 * display: contents removes the header box so the white nav's sticky
 * containing block becomes .wp-site-blocks (the page), not the short
 * header. Without that, sticky would only last for the breadcrumb's
 * height before scrolling away with the header.
 */

body:not(.wp-admin) header.site-header,
body:not(.wp-admin) header.site-header:has(> .is-position-sticky) {
	display: contents;
	position: static !important;
	top: auto !important;
	z-index: auto !important;
}

header.site-header > .is-position-sticky {
	position: sticky !important;
	top: calc(0px + var(--wp-admin--admin-bar--position-offset, 0px)) !important;
	z-index: 100;
}

/*
 * Anchor scroll offset for #book-now.
 * --peak1-book-now-scroll-offset is set by assets/js/book-now-scroll.js
 * to sticky nav height + its CSS top (admin bar position offset).
 */
#book-now {
scroll-margin-top: var(--peak1-book-now-scroll-offset, 0px);
}

/* Hide header Book Now when the page has no booking form */
/*body:not(:has(#book-now)) .main-menu-book-now-container
 * {
 *	display: none !important;
 * }*/

@media (max-width: 360px)
{
	header > div > div > div:has(.custom-logo)
	{
		display: none!important
	}
}

@media (min-width: 1319px)
{
	.main-menu-book-now-container *
	{
		display: none!important
	}
}
