/* ============================================================================
   Latitude Key — site-wide header: top bar + slide-in drawer.
   Built/injected by header.js. Colours per design standards
   (ink #16303C, corporate blue #5581A2, palm #2E7D57).

   Base .lk-topbar = HOME variant: a transparent bar floating over the hero.
   .lk-topbar--inner = interior pages: a static, compact blue bar with the logo.
   ========================================================================== */

/* ---- Top bar (home: floats over the hero) ---- */
.lk-topbar {
	position: absolute; inset: 0 0 auto 0; z-index: 30;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: clamp(16px, 2.4vw, 26px) clamp(16px, 4vw, 52px);
	pointer-events: none; /* let clicks fall through the empty middle */
}
/* Soft legibility wash under the controls (home only — the hero can be bright). */
.lk-topbar::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px;
	background: linear-gradient(to bottom, rgba(6, 12, 16, .42), rgba(6, 12, 16, 0));
	pointer-events: none; z-index: -1;
}
.lk-topbar__side { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.lk-topbar__side > * { pointer-events: auto; }

/* Current-weather widget sitting in the top bar (next to Contact). */
.lk-topbar__weather { display: inline-flex; align-items: center; }
.lk-topbar .lk-weather {
	font-size: 13px; letter-spacing: .1em; color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}

.lk-top-link {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: "Work Sans", system-ui, sans-serif;
	font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
	color: #fff; text-decoration: none; white-space: nowrap;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
	transition: opacity .16s ease;
}
.lk-top-link:hover { opacity: .8; }
.lk-top-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* Book now = ghost (outlined) button */
.lk-btn-ghost {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: "Work Sans", system-ui, sans-serif;
	font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: #fff; text-decoration: none; white-space: nowrap;
	padding: 10px 18px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px;
	background: rgba(255, 255, 255, .04);
	text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.lk-btn-ghost svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.lk-btn-ghost:hover { background: #fff; color: #16303C; border-color: #fff; }

/* Force our colours over the site's global Elementor link/button kit. */
.lk-top-link, .lk-btn-ghost, .lk-drawer__cta { color: #fff !important; }
.lk-btn-ghost:hover { color: #16303C !important; }
.lk-drawer__close { color: #16303C !important; }
.lk-drawer__close:hover { color: #5581A2 !important; }

/* Hamburger button — Kempinski-style: two bold, square-ended white bars.
   The !important resets beat the site's global Elementor button style
   (elementor-kit → blue fill + radius on every <button>). */
.lk-burger {
	appearance: none; -webkit-appearance: none; cursor: pointer;
	background: transparent !important; border: 0 !important; box-shadow: none !important;
	border-radius: 0 !important; min-height: 0 !important; color: inherit !important;
	width: auto; height: auto; padding: 8px 4px !important;
	display: inline-flex; flex-direction: column; justify-content: center; gap: 8px;
}
.lk-burger:hover { background: transparent !important; }
.lk-burger span {
	display: block; width: 36px; height: 3px; background: #fff; border-radius: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
	transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
/* Sober hover: the two bars slide apart in opposite directions, then settle. */
.lk-burger:hover span:first-child { transform: translateX(-5px); }
.lk-burger:hover span:last-child  { transform: translateX(5px); }

/* Fake language selector (right of the hamburger — wired up later). */
.lk-lang {
	display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
	font-family: "Work Sans", system-ui, sans-serif;
	font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: #fff; white-space: nowrap;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
	transition: opacity .16s ease;
}
.lk-lang:hover { opacity: .8; }
.lk-lang svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.lk-lang__caret {
	width: 0; height: 0; margin-left: 1px;
	border-left: 4px solid transparent; border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
}
.lk-topbar--inner .lk-lang { text-shadow: none; }

/* Language dropdown (built by header.js from the ACX Auto Translate switcher).
   The trigger keeps its look; this is the panel that opens on click. */
.lk-lang { position: relative; }
.lk-lang__caret { transition: transform .16s ease; }
.lk-lang.is-open .lk-lang__caret { transform: rotate(180deg); }
.lk-lang__menu {
	position: absolute; top: calc(100% + 12px); right: 0;
	min-width: 156px; margin: 0; padding: 6px 0; list-style: none;
	background: #fff; border: 1px solid #E3E8EA; border-radius: 10px;
	box-shadow: 0 14px 34px rgba(22, 48, 60, .16);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .16s ease, transform .16s ease, visibility 0s .16s;
	z-index: 1200; text-shadow: none;
}
.lk-lang.is-open .lk-lang__menu {
	opacity: 1; visibility: visible; transform: translateY(0);
	transition: opacity .16s ease, transform .16s ease, visibility 0s;
}
.lk-lang__menu li { margin: 0; }
.lk-lang__menu a {
	display: block; padding: 8px 16px;
	font-family: "Work Sans", system-ui, sans-serif;
	font-size: 13px; font-weight: 500; letter-spacing: .02em;
	text-transform: none; color: #16303C; text-decoration: none; white-space: nowrap;
	transition: background .14s ease, color .14s ease;
}
.lk-lang__menu a:hover, .lk-lang__menu a:focus { background: #F4F6F7; color: #5581A2; }
.lk-lang__menu li.is-current a { color: #5581A2; font-weight: 600; }

/* ============================================================================
   Interior variant: static, compact, blue. Logo centred (reversed to white).
   Temporary look ("blue bar for now") — final interior header design TBD.
   ========================================================================== */
.lk-topbar--inner {
	position: relative;              /* anchor the centred logo; sits in normal flow */
	inset: auto; z-index: 40;
	background: #5581A2;
	padding: 10px clamp(16px, 4vw, 52px);
	pointer-events: auto;
}
.lk-topbar--inner::before { display: none; }       /* no wash on the solid bar */
.lk-topbar--inner .lk-top-link,
.lk-topbar--inner .lk-btn-ghost { text-shadow: none; }

/* Centred logo (absolute so it never shifts the side clusters). */
.lk-topbar__logo {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	display: inline-flex; line-height: 0; pointer-events: auto;
}
/* The centred "Latitude Key" wordmark. Its paths inherit fill from a parent
   <g fill="#5581a2">, so !important whitens them on the blue bar. The wordmark
   is ~3:1, so it's shorter than the old square compass; max-width keeps it clear
   of the side clusters on the narrowest phones. */
.lk-topbar__logo svg { height: 52px; width: auto; max-width: min(360px, 52vw); display: block; }
.lk-topbar__logo svg path { fill: #ffffff !important; stroke: none; }

@media (max-width: 600px) {
	.lk-topbar__logo svg { height: 39px; max-width: 46vw; }
}

/* ---- Interior pages: white logo band above the header (header.js). Not fixed;
   it collapses (auto-hides) on scroll or after 3s. While it's up, the header's
   centred compass is hidden and fades back when the band collapses. ---- */
.lk-topbanner {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	padding: 0 20px;
	overflow: hidden;
	max-height: 220px;
	transition: max-height .5s cubic-bezier(.4, 0, .2, 1), opacity .4s ease, padding .5s cubic-bezier(.4, 0, .2, 1);
}
.lk-topbanner a { display: inline-flex; line-height: 0; max-width: 100%; }
.lk-topbanner img {
	height: clamp(64px, 9vw, 108px);
	width: auto;
	max-width: none;   /* keep the natural ratio — an 82% cap here squashed it once wrapped in the link */
	display: block;
}
.lk-topbanner--hidden {
	max-height: 0;
	opacity: 0;
	padding-top: 0;
	padding-bottom: 0;
}
/* Header compass: hidden while the band is up, fades back when it collapses. */
.lk-topbar__logo { transition: opacity .35s ease; }
body.lk-topbanner-visible .lk-topbar__logo { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
	.lk-topbanner, .lk-topbar__logo { transition: none; }
}

/* ---- Home: the standard header, fixed, sliding down on scroll (desktop only).
   Reuses .lk-topbar--inner (blue + centred compass); this only adds the fixed
   position and the slide-in. Toggled by body.lk-header-fixed from header.js. ---- */
.lk-topbar--fixed {
	position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
	box-shadow: 0 6px 22px rgba(16, 42, 56, .22);
	transform: translateY(-100%);
	transition: transform .84s cubic-bezier(.22, 1, .36, 1);
	will-change: transform;
}
body.lk-header-fixed .lk-topbar--fixed { transform: translateY(0); }
@media (max-width: 1024px) { .lk-topbar--fixed { display: none !important; } }

/* ---- Slide-in drawer (shared home + interior) ---- */
/* On close, keep the drawer visible for the .4s slide-out (delay the visibility
   flip by the panel's transition duration); on open, show it immediately. Without
   this the panel/scrim would vanish before the closing animation could play. */
.lk-drawer { position: fixed; inset: 0; z-index: 100000; visibility: hidden; transition: visibility 0s linear 1s; }
.lk-drawer.is-open { visibility: visible; transition: visibility 0s; }
html.lk-drawer-open { overflow: hidden; }

.lk-drawer__scrim {
	position: absolute; inset: 0; background: rgba(10, 20, 25, .5);
	opacity: 0; transition: opacity .9s ease;
}
.lk-drawer.is-open .lk-drawer__scrim { opacity: 1; }

.lk-drawer__panel {
	position: absolute; top: 0; left: 0; height: 100%; width: min(420px, 86vw);
	background: #fff; box-shadow: 0 0 60px rgba(0, 0, 0, .3);
	display: flex; flex-direction: column;
	padding: clamp(26px, 4vw, 44px); overflow-y: auto;
	transform: translateX(-100%);
	transition: transform 1s cubic-bezier(.22, 1, .36, 1);
	will-change: transform;
}
.lk-drawer.is-open .lk-drawer__panel { transform: none; }

.lk-drawer__close {
	align-self: flex-end; cursor: pointer;
	background: transparent !important; border: 0 !important; box-shadow: none !important;
	border-radius: 0 !important; min-height: 0 !important;
	color: #16303C; width: 40px; height: 40px; padding: 8px !important; margin: -6px -6px 0 0;
	transition: transform .2s ease, color .16s ease;
}
.lk-drawer__close:hover { background: transparent !important; }
.lk-drawer__close svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; }
.lk-drawer__close:hover { color: #5581A2; transform: rotate(90deg); }

.lk-drawer__logo { margin: 4px 0 28px; }
.lk-drawer__logo svg { width: 176px; height: auto; display: block; margin: 0 auto; }

.lk-drawer__nav { display: flex; flex-direction: column; }
/* Two drawer menus, same design: desktop shows the main menu, mobile (≤1024px)
   shows the alternate menu (id 284). Only the source list differs. */
.lk-drawer__nav--mobile { display: none; }
@media (max-width: 1024px) {
	.lk-drawer__nav--desktop { display: none; }
	.lk-drawer__nav--mobile { display: flex; }
}
/* Top-level leaf links (direct children only — sub-links are styled below). */
.lk-drawer__nav > a {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.05rem, 2.3vw, 1.35rem); letter-spacing: .05em; text-transform: uppercase;
	color: #16303C; text-decoration: none;
	padding: 14px 0; border-bottom: 1px solid #E3E8EA;
	transition: color .16s ease;
}
/* Hover = colour only. No padding shift (the word stays put → no reflow jerk),
   and force off the Elementor kit's a:hover underline. */
.lk-drawer__nav > a:hover { color: #5581A2; text-decoration: none !important; }

/* Item with a sub-menu: the "parent" is a <button> that toggles its children,
   but it must look EXACTLY like a top-level leaf link (Playfair, Ink, same
   size/padding, no button chrome, no chevron). Scoped + !important so it beats
   the Elementor kit's blue/white <button> styling. The group's border-bottom
   sits directly under the parent while collapsed → identical to the other rows. */
.lk-drawer__group { border-bottom: 1px solid #E3E8EA; }
.lk-drawer__nav .lk-drawer__parent {
	display: block; width: 100%; text-align: left; cursor: pointer;
	background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.05rem, 2.3vw, 1.35rem); font-weight: 400; letter-spacing: .05em; text-transform: uppercase;
	color: #16303C !important; padding: 14px 0;
	transition: color .16s ease;
}
.lk-drawer__nav .lk-drawer__parent:hover { color: #5581A2 !important; }
.lk-drawer__nav .lk-drawer__parent:focus-visible { outline: 2px solid #5581A2; outline-offset: 2px; }
/* Collapsible sub-list — grid-rows animation (0fr → 1fr). */
.lk-drawer__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.4, 0, .2, 1); }   /* same easing/speed as the amenities accordion + drawer */
.lk-drawer__group.is-open .lk-drawer__sub { grid-template-rows: 1fr; }
.lk-drawer__sub-inner { overflow: hidden; min-height: 0; }
.lk-drawer__sublink {
	display: block; padding: 11px 0 11px 18px;
	font-family: "Work Sans", system-ui, sans-serif;
	font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
	color: #5B6B73; text-decoration: none;
	transition: color .16s ease;
}
.lk-drawer__sublink:last-child { padding-bottom: 18px; }
.lk-drawer__sublink:hover { color: #5581A2; text-decoration: none !important; }
@media (prefers-reduced-motion: reduce) {
	.lk-drawer__sub { transition: none; }
}

.lk-drawer__cta {
	margin-top: 26px;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: #5581A2; color: #fff; text-decoration: none;
	padding: 14px 20px; border-radius: 999px;
	font-family: "Work Sans", system-ui, sans-serif; font-weight: 600;
	font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
	transition: background .18s ease;
}
.lk-drawer__cta svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.lk-drawer__cta:hover { background: #3C617D; }

.lk-drawer__meta { margin-top: auto; padding-top: 26px; }
.lk-drawer__meta a.lk-drawer__contact {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: "Work Sans", system-ui, sans-serif; font-size: 13px; letter-spacing: .06em;
	text-transform: uppercase; color: #5b6b73; text-decoration: none;
}
.lk-drawer__meta a.lk-drawer__contact:hover { color: #16303C; }
.lk-drawer__meta a.lk-drawer__contact svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.lk-drawer__social { display: flex; gap: 16px; margin-top: 18px; }
.lk-drawer__social a { color: #16303C; opacity: .85; transition: opacity .16s ease, color .16s ease; }
.lk-drawer__social a:hover { opacity: 1; color: #5581A2; }
.lk-drawer__social svg { width: 20px; height: 20px; }

/* On small screens keep the labels tidy: Contact/Sign in show icon only. */
@media (max-width: 600px) {
	.lk-top-link .lk-top-link__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.lk-topbar { padding-left: 14px; padding-right: 14px; }
	.lk-btn-ghost { padding: 9px 14px; }
}

/* Phones: no room for Book now in the bar (the drawer keeps it), so the weather sits
   at the far right. */
@media (max-width: 767px) {
	.lk-topbar .lk-btn-ghost { display: none !important; }
}
/* Tablets: a compact Book now, so long translations stay clear of the centred logo. */
@media (min-width: 768px) and (max-width: 1024px) {
	.lk-topbar .lk-btn-ghost { padding: 9px 14px; letter-spacing: .04em; }
	.lk-topbar .lk-btn-ghost svg { display: none; }
}
/* Phones and tablets: the language button is on the left, so its menu opens towards
   the right (aligned on the right edge, it left the screen). */
@media (max-width: 1024px) {
	.lk-lang__menu { left: 0; right: auto; }
}
