/* BHH Holiday — site header.
   Layout: left-nav | centered logo | right-nav. Mega menu on Our Rooms.
   Tokens align with DESIGN-bhh-parent.md (airbnb-inspired).
*/

.bhh-header {
	position: sticky; top: 0; z-index: 60;
	background: #fff;
	border-bottom: 1px solid #ebebeb;
	font-family: "Inter", "Airbnb Cereal VF", Circular, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
.bhh-header__inner {
	width: 90vw; max-width: 1320px;
	margin: 0 auto;
	padding: 8px 0;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
}

/* Brand (left-anchored, sits in the first grid column). */
.bhh-header__brand {
	display: flex; align-items: center; justify-content: flex-start;
	grid-column: 1;
}
.bhh-header__brand img { height: 80px; width: auto; display: block; max-width: 100%; }
.bhh-header__brand span {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 22px; color: #222; font-weight: 600;
}

/* Nav (left + right) */
.bhh-header__nav {
	display: flex; align-items: center; gap: 28px;
}
.bhh-header__nav--left  { grid-column: 1; justify-content: flex-end; }
.bhh-header__nav--right { grid-column: 3; justify-content: flex-start; }

.bhh-header__link {
	color: #222;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 4px;
	display: inline-flex; align-items: center; gap: 6px;
	border-bottom: 2px solid transparent;
	transition: border-color .15s, color .15s;
	white-space: nowrap;
}
.bhh-header__link:hover { border-bottom-color: #ff385c; color: #222; }

/* CTA pill (right edge). Color swaps with brand context via data-bhh-cta. */
.bhh-header .bhh-header__cta,
a.bhh-header__cta {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin-left: 16px !important;
	padding: 14px 28px !important;
	background: #C8202F !important; /* default = BHHH logo red */
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	line-height: 1 !important;
	letter-spacing: 0.01em !important;
	transition: background .15s, transform .15s, color .15s;
	box-shadow: none !important;
}
.bhh-header .bhh-header__cta:hover,
a.bhh-header__cta:hover {
	transform: translateY(-1px);
	border-bottom-color: transparent !important;
	box-shadow: none !important;
}

/* Per-page color binding. */
.bhh-header__cta[data-bhh-cta="home"]          { background: #C8202F !important; color: #fff !important; }
.bhh-header__cta[data-bhh-cta="home"]:hover    { background: #a31525 !important; }

.bhh-header__cta[data-bhh-cta="nivanta"]       { background: #A6CE39 !important; color: #022E3D !important; }
.bhh-header__cta[data-bhh-cta="nivanta"]:hover { background: #b8db4f !important; color: #022E3D !important; }
.bhh-header__cta[data-bhh-cta="nivanta"] svg   { stroke: #022E3D !important; }

.bhh-header__cta[data-bhh-cta="creaze"]        { background: #4CADE2 !important; color: #022E3D !important; }
.bhh-header__cta[data-bhh-cta="creaze"]:hover  { background: #2e9bd6 !important; color: #fff !important; }
.bhh-header__cta[data-bhh-cta="creaze"]:hover svg { stroke: #fff !important; }
.bhh-header__cta[data-bhh-cta="creaze"] svg   { stroke: #022E3D !important; }

.bhh-header__cta svg { stroke: #fff; flex-shrink: 0; }
.bhh-header__link--mega .bhh-header__caret { transition: transform .15s; }
.bhh-header__item--has-mega { position: static; }
.bhh-header__item--has-mega.is-open .bhh-header__caret { transform: rotate(180deg); }
.bhh-header__item--has-mega.is-open .bhh-header__link--mega { border-bottom-color: #ff385c; }

/* Mega menu panel */
.bhh-header__mega {
	position: absolute; left: 0; right: 0; top: 100%;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0,0,0,0.10);
	border-top: 1px solid #ebebeb;
	opacity: 0; visibility: hidden; pointer-events: none;
	transform: translateY(-4px);
	transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
}
.bhh-header__item--has-mega.is-open .bhh-header__mega,
.bhh-header__item--has-mega:hover .bhh-header__mega {
	opacity: 1; visibility: visible; pointer-events: auto;
	transform: translateY(0);
}
.bhh-header__mega-inner {
	width: 90vw; max-width: 1320px; margin: 0 auto; padding: 28px 0;
	display: grid; grid-template-columns: 1fr 2fr; gap: 32px;
	align-items: start;
}
.bhh-header__mega-eyebrow {
	display: inline-block;
	font-size: 12px; font-weight: 700;
	letter-spacing: 0.08em; text-transform: uppercase;
	color: #6a6a6a;
	margin: 0 0 8px;
}
.bhh-header__mega-title { font-size: 22px; font-weight: 700; color: #222; margin: 0 0 8px; line-height: 1.2; }
.bhh-header__mega-sub { font-size: 14px; color: #6a6a6a; line-height: 1.5; margin: 0 0 14px; }
.bhh-header__mega-cta {
	display: inline-flex; align-items: center; gap: 4px;
	color: #ff385c; font-weight: 700; font-size: 14px; text-decoration: none;
}
.bhh-header__mega-cta:hover { color: #e00b41; }

.bhh-header__mega-list {
	list-style: none; padding: 0; margin: 0;
	display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.bhh-header__mega-card {
	display: flex; gap: 12px; align-items: center;
	padding: 10px;
	border: 1px solid #ebebeb;
	border-radius: 12px;
	background: #fff;
	text-decoration: none;
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.bhh-header__mega-card:hover { border-color: #222; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.bhh-header__mega-thumb {
	flex-shrink: 0;
	width: 56px; height: 56px;
	border-radius: 10px;
	background: #f7f7f7 center/cover no-repeat;
}
.bhh-header__mega-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bhh-header__mega-name { font-size: 14px; font-weight: 700; color: #222; }
.bhh-header__mega-meta { font-size: 12px; color: #6a6a6a; font-variant-numeric: tabular-nums; }

/* Mobile toggle */
.bhh-header__toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 8px;
	cursor: pointer;
	color: #222;
	grid-column: 3;
	justify-self: end;
}

/* Drawer (mobile) — default hidden; CSS `display: none` overridden when
   the `hidden` attribute is JS-removed by the drawer-open click handler. */
.bhh-drawer { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 100; justify-content: flex-end; }
.bhh-drawer[hidden] { display: none !important; }
.bhh-drawer:not([hidden]) { display: flex; }
.bhh-drawer__panel {
	background: #fff;
	width: min(360px, 100%);
	height: 100%;
	padding: 20px;
	display: flex; flex-direction: column; gap: 12px;
	overflow-y: auto;
}
.bhh-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding-bottom: 12px;
	border-bottom: 1px solid #ebebeb;
}
.bhh-drawer__close { background: transparent; border: 0; padding: 6px; cursor: pointer; color: #222; }
.bhh-drawer__nav { display: flex; flex-direction: column; gap: 2px; }
.bhh-drawer__link {
	color: #222; padding: 14px 8px; text-decoration: none;
	font-size: 16px; font-weight: 600;
	border-bottom: 1px solid #f0ece4;
}
.bhh-drawer__link--icon { display: flex; align-items: center; gap: 10px; }
.bhh-drawer__link--icon svg { flex: 0 0 auto; }

.bhh-drawer__details {
	border-bottom: 1px solid #f0ece4;
	padding: 0;
}
.bhh-drawer__details summary {
	padding: 14px 8px;
	font-size: 16px; font-weight: 600; color: #222;
	cursor: pointer; list-style: none;
	display: flex; align-items: center; justify-content: flex-start; gap: 8px;
}
/* Stay / Play match the Nivanta / Creaze label (same weight, size, colour). */
.bhh-drawer__details summary .bhh-drawer__sub { font-weight: 600; font-size: 16px; color: #222; }
.bhh-drawer__details summary::after { content: "+"; font-size: 22px; color: #ff385c; margin-left: auto; }
.bhh-drawer__details[open] summary::after { content: "\2013"; }

/* Smooth expand / collapse (native details-content, both directions). */
.bhh-drawer { interpolate-size: allow-keywords; }
.bhh-drawer__details::details-content {
	block-size: 0;
	overflow: hidden;
	transition: block-size .28s ease, content-visibility .28s allow-discrete;
}
.bhh-drawer__details[open]::details-content { block-size: auto; }
.bhh-drawer__sublink {
	display: block; padding: 10px 20px;
	color: #3f3f3f; font-size: 14px; text-decoration: none;
}
.bhh-drawer__sublink:hover { color: #ff385c; }
.bhh-drawer__sublink--all { color: #ff385c; font-weight: 700; }

.bhh-drawer__nav .bhh-btn { margin-top: 12px; text-align: center; }

@media (max-width: 1020px) {
	.bhh-header__inner { grid-template-columns: auto 1fr auto; gap: 12px; }
	.bhh-header__nav { display: none !important; }
	.bhh-header__brand { grid-column: 1; justify-content: flex-start; }
	.bhh-header__brand img { height: 48px; }
	.bhh-header__toggle { display: inline-flex !important; grid-column: 3; justify-self: end; }
	/* Hide switcher pill + CTA on mobile — both live in the drawer.
	   High specificity + !important to beat the base a.bhh-header__cta{display:inline-flex!important}
	   and the source-order-later base .bhh-switch{display:inline-flex}. */
	.bhh-header .bhh-header__cta,
	.bhh-header a.bhh-header__cta { display: none !important; }
	.bhh-header .bhh-switch { display: none !important; }
	/* Section strip moves into the drawer (Nivanta/Creaze accordions) on mobile. */
	.bhh-subnav { display: none !important; }
}

@media (max-width: 480px) {
	.bhh-header__brand img { height: 42px; }
	.bhh-header__inner { gap: 8px; }
}

/* ============================================================
   Brand switcher — sliding pill toggle between Nivanta + Creaze.
   ============================================================ */

.bhh-switch {
	grid-column: 2;
	justify-self: center;
	position: relative;
	display: inline-flex;
	align-items: stretch;
	gap: 0;
	padding: 4px;
	background: #f4f1ea;
	border: 1px solid #ebebeb;
	border-radius: 999px;
	height: 48px;
	isolation: isolate;
	overflow: hidden;
}

.bhh-switch__indicator {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	width: 0;
	background: #A6CE39;
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(166, 206, 57, 0.32);
	transition: transform 350ms cubic-bezier(0.32, 0.72, 0.16, 1),
				width 350ms cubic-bezier(0.32, 0.72, 0.16, 1),
				opacity 200ms ease-out;
	transform: translateX(0);
	opacity: 0;
	z-index: 0;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.bhh-switch__indicator { transition: opacity 200ms ease-out; }
}

.bhh-switch__seg {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	min-width: 130px;
	height: 100%;
	color: #022E3D;
	text-decoration: none;
	border-radius: 999px;
	transition: color 200ms ease-out;
	cursor: pointer;
}

.bhh-switch__seg img {
	display: block;
	max-height: 26px;
	width: auto;
	object-fit: contain;
	transition: filter 200ms ease-out, transform 200ms ease-out;
}

.bhh-switch__seg-fallback {
	font-family: "Inter", system-ui, sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: inherit;
}

/* STAY / PLAY sub-labels removed from compact header — keep visually hidden
   but reachable for screen readers via aria-hidden=false on the segment. */
.bhh-switch__seg-sub {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bhh-switch__seg:focus-visible {
	outline: 2px solid #022E3D;
	outline-offset: 2px;
}

/* Slight scale lift on the segment the indicator currently sits behind. */
.bhh-switch__seg.is-active img { transform: scale(1.04); }

/* On the home page (state="home") the indicator is hidden by default but
   re-appears on hover via JS. Give the segments a subtle hover background
   so the affordance survives even before pointer arrives. */
.bhh-switch[data-bhh-switch-state="home"] .bhh-switch__seg:hover { color: #022E3D; }

/* Adjust header grid to give the centered switcher room to breathe. */
@media (min-width: 1021px) {
	.bhh-header__inner { grid-template-columns: 1fr auto 1fr; }
	.bhh-header__cta { justify-self: end; grid-column: 3; }
}

/* ============================================================
   Brand-scoped sub-nav strip — below header on /nivanta/ + /creaze/.
   ============================================================ */
.bhh-subnav {
	background: #fff;
	border-top: 1px solid #ebebeb;
	border-bottom: 1px solid #ebebeb;
	overflow-x: auto;
}
.bhh-subnav__inner {
	width: 90vw;
	max-width: 1320px;
	margin: 0 auto;
	padding: 8px 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 4px;
	justify-content: center;
}
.bhh-subnav__link {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 999px;
	color: #022E3D;
	font-family: "Inter", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
	transition: background 200ms ease-out, color 200ms ease-out;
}
.bhh-subnav__link:hover,
.bhh-subnav__link:focus-visible {
	background: rgba(2, 46, 61, 0.06);
	color: #022E3D;
	outline: none;
}
.bhh-subnav--nivanta .bhh-subnav__link:hover,
.bhh-subnav--nivanta .bhh-subnav__link:focus-visible {
	background: rgba(166, 206, 57, 0.18);
}
.bhh-subnav--creaze .bhh-subnav__link:hover,
.bhh-subnav--creaze .bhh-subnav__link:focus-visible {
	background: rgba(76, 173, 226, 0.16);
}
@media (max-width: 720px) {
	.bhh-subnav__inner { justify-content: flex-start; padding-left: 5vw; padding-right: 5vw; }
	.bhh-subnav__link { font-size: 12px; padding: 6px 12px; }
}

/* ============================================================
   Per-brand header chrome — strict adherence to PDF brand pack.
   Nivanta = navy/lime/teal + Bricolage display + Open Sans body.
   Creaze  = navy/lime/sky  + Recling display + Montserrat body.
   ============================================================ */

/* ---------- Nivanta header ---------- */
.bhh-header--nivanta {
	background: #FBFAF7;
	border-bottom: 1px solid rgba(2, 46, 61, 0.10);
	font-family: "Open Sans", system-ui, sans-serif;
}
.bhh-header--nivanta .bhh-header__brand,
.bhh-header--nivanta .bhh-switch__seg-fallback,
.bhh-header--nivanta .bhh-header__cta,
.bhh-header--nivanta .bhh-header__toggle {
	font-family: "Open Sans", system-ui, sans-serif;
}
.bhh-header--nivanta .bhh-switch {
	background: rgba(2, 46, 61, 0.05);
	border-color: rgba(2, 46, 61, 0.10);
}
.bhh-header--nivanta .bhh-switch__indicator {
	background: #A6CE39;
	box-shadow: 0 2px 12px rgba(166, 206, 57, 0.36);
}
.bhh-header--nivanta .bhh-switch__seg { color: #022E3D; }
.bhh-header--nivanta .bhh-switch__seg:focus-visible { outline-color: #022E3D; }
.bhh-header--nivanta .bhh-header__cta {
	font-family: "Open Sans", system-ui, sans-serif !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	font-size: 13px !important;
}
.bhh-header--nivanta .bhh-subnav {
	background: #FBFAF7;
	border-top-color: rgba(2, 46, 61, 0.10);
	border-bottom-color: rgba(2, 46, 61, 0.10);
}
.bhh-header--nivanta .bhh-subnav__link {
	font-family: "Bricolage Grotesque", system-ui, sans-serif;
	font-weight: 500;
	color: #022E3D;
	letter-spacing: 0;
	font-size: 14px;
}
.bhh-header--nivanta .bhh-subnav__link:hover {
	background: rgba(166, 206, 57, 0.22);
	color: #022E3D;
}

/* ---------- Creaze header ---------- */
.bhh-header--creaze {
	background: #0B1F28;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-family: "Montserrat", system-ui, sans-serif;
	color: #FFFFFF;
}
/* BHHH logo is swapped to a white-fill SVG in header.php on Creaze pages — no
   filter trick needed. Keep this selector as a safety net for any rogue inline
   default <img>. */
.bhh-header--creaze .bhh-header__brand img:not([src*="bhh-logo-white"]) { filter: brightness(0) invert(1); }
.bhh-header--creaze .bhh-switch {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.10);
}
.bhh-header--creaze .bhh-switch__indicator {
	background: #4CADE2;
	box-shadow: 0 2px 12px rgba(76, 173, 226, 0.40);
}
.bhh-header--creaze .bhh-switch__seg {
	color: rgba(255, 255, 255, 0.86);
}
.bhh-header--creaze .bhh-switch__seg.is-active {
	color: #022E3D;
}
.bhh-header--creaze .bhh-switch__seg:focus-visible { outline-color: #4CADE2; }
.bhh-header--creaze .bhh-header__cta {
	font-family: "Montserrat", system-ui, sans-serif !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	font-size: 13px !important;
}
.bhh-header--creaze .bhh-header__toggle { color: #fff; }
.bhh-header--creaze .bhh-subnav {
	background: #0B1F28;
	border-top-color: rgba(255, 255, 255, 0.08);
	border-bottom-color: rgba(255, 255, 255, 0.08);
}
.bhh-header--creaze .bhh-subnav__link {
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.86);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 12px;
}
.bhh-header--creaze .bhh-subnav__link:hover {
	background: rgba(76, 173, 226, 0.18);
	color: #fff;
}

/* Override generic `.bhh-subnav--nivanta` / `--creaze` hover rules so the
   per-page brand chrome wins specificity even if the subnav modifier already
   set its own hover state earlier in cascade order. */
.bhh-header--nivanta .bhh-subnav--nivanta .bhh-subnav__link:hover {
	background: rgba(166, 206, 57, 0.22);
}
.bhh-header--creaze .bhh-subnav--creaze .bhh-subnav__link:hover {
	background: rgba(76, 173, 226, 0.22);
}

/* Creaze header → cream bg (matches Nivanta), colored BHHH + Nivanta logos, navy subnav text
   Appended 22/05/2026, revised same day to revert teal subnav. */
.bhh-header--creaze { background: #FBFAF7 !important; color: #022E3D; border-bottom-color: rgba(2, 46, 61, 0.10) !important; }
.bhh-header--creaze .bhh-switch { background: rgba(2, 46, 61, 0.05) !important; border-color: rgba(2, 46, 61, 0.10) !important; }
.bhh-header--creaze .bhh-switch__seg { color: rgba(2, 46, 61, 0.62) !important; }
.bhh-header--creaze .bhh-switch__seg.is-active { color: #022E3D !important; }
.bhh-header--creaze .bhh-header__toggle { color: #022E3D !important; }
.bhh-header--creaze .bhh-subnav { background: #FBFAF7 !important; border-top-color: rgba(2, 46, 61, 0.10) !important; border-bottom-color: rgba(2, 46, 61, 0.10) !important; }
.bhh-header--creaze .bhh-subnav__link { color: #022E3D !important; }
.bhh-header--creaze .bhh-subnav__link:hover { background: rgba(76, 173, 226, 0.18) !important; color: #022E3D !important; }
.bhh-header--creaze .bhh-subnav--creaze .bhh-subnav__link:hover { background: rgba(76, 173, 226, 0.22) !important; }
/* Override the original navy-header rule that inverts the brand img filter — keep colored on cream. */
.bhh-header--creaze .bhh-header__brand img:not([src*="bhh-logo-white"]) { filter: none !important; }
/* Active indicator → white on cream Creaze header (22/05/2026). */
.bhh-header--creaze .bhh-switch__indicator { background: #FFFFFF !important; box-shadow: 0 2px 12px rgba(2, 46, 61, 0.12) !important; }
/* BOOK A SLOT CTA → lime per request (22/05/2026). */
.bhh-header__cta[data-bhh-cta="creaze"] { background: #A6CE39 !important; color: #022E3D !important; }
.bhh-header__cta[data-bhh-cta="creaze"]:hover { background: #b8db4f !important; color: #022E3D !important; }
.bhh-header__cta[data-bhh-cta="creaze"]:hover svg { stroke: #022E3D !important; }

/* ============================================================
   Home (BHHH splash) — transparent overlay on hero, solid white
   on scroll. JS in header.php toggles `.is-scrolled` past 64px.
   ============================================================ */
.bhh-header--home {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	border-bottom-color: transparent;
	transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.bhh-header--home .bhh-header__inner {
	padding: 14px 0;
	transition: padding 240ms ease;
}
.bhh-header--home.is-scrolled {
	background: #fff;
	border-bottom-color: #ebebeb;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}
.bhh-header--home.is-scrolled .bhh-header__inner {
	padding: 8px 0;
}

/* Dual BHHH logo — white shows over hero, color shows once scrolled. */
.bhh-header__brand-img { display: block; }
.bhh-header--home .bhh-header__brand-img--white { display: block; }
.bhh-header--home .bhh-header__brand-img--color { display: none; }
.bhh-header--home.is-scrolled .bhh-header__brand-img--white { display: none; }
.bhh-header--home.is-scrolled .bhh-header__brand-img--color { display: block; }

/* Hamburger over transparent hero needs to stay legible. */
.bhh-header--home:not(.is-scrolled) .bhh-header__toggle { color: #fff; }

/* Switcher pill keeps its own beige bg so logos remain readable while
   the parent header is transparent — no extra rule needed. */

