/* Two-tier header + menu panel (tools/header.mjs). Tier 1: MENU · logo · BOOK; tier 2: the hotel's sections.
   Over the hero at the top of a page it is transparent with white type; on hover, after scrolling back up, or while
   the menu is open it turns sand. It slides away while scrolling down. The menu panel is The Solaria Group menu
   (same layout as thesolariagroup.com); on phones it lists the hotel's sections first. */
:root {
  --dh-ink: #3f3a36;
  --dh-sand: #f3eee7;
  --dh-light: #f7f4ef;
  --dh-line: rgba(63, 58, 54, .14);
  --dh-top: 80px;
  --dh-bar: 46px;
  --dh-ease: cubic-bezier(.22, 1, .36, 1);
  --dh-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
.dh {
  position: fixed; inset: 0 0 auto; z-index: 9990;
  color: #fff; background: transparent;
  transition: transform .5s var(--dh-ease), background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.dh.is-solid { color: var(--dh-ink); background: var(--dh-sand); box-shadow: 0 12px 30px rgba(0, 0, 0, .04); }
.dh.is-away { transform: translateY(-101%); }
.dh__top {
  height: var(--dh-top); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(18px, 3.4vw, 48px); border-bottom: 1px solid rgba(255, 255, 255, .28); transition: border-color .35s ease;
}
.dh__bar {
  height: var(--dh-bar); display: flex; justify-content: center; align-items: center; gap: clamp(22px, 3.2vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, .28); transition: border-color .35s ease;
}
.dh.is-solid .dh__top, .dh.is-solid .dh__bar { border-color: var(--dh-line); }

.dh__menu, .dm__close {
  justify-self: start; display: inline-flex; align-items: center; gap: 14px; margin: 0; padding: 10px 0 !important;
  border: 0 !important; background: none !important; color: inherit !important; cursor: pointer;
  font: 500 11px/1 var(--dh-sans) !important; letter-spacing: .2em; text-transform: uppercase; box-shadow: none !important;
}
.dh__burger { position: relative; width: 22px; height: 12px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.dh__burger::after { content: ""; position: absolute; left: 0; right: 6px; top: 5px; border-top: 1px solid currentColor; }
.dm__close::before { content: "✕"; font-size: 14px; letter-spacing: 0; }

.dh__logo { position: relative; display: block; width: 150px; height: 64px; line-height: 0; }
.dh__logo img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: contain; transition: opacity .3s ease; }
.dh__logo-d, .dh.is-solid .dh__logo-w, .dh__logo.is-dark .dh__logo-w { opacity: 0; }
.dh.is-solid .dh__logo-d, .dh__logo.is-dark .dh__logo-d { opacity: 1; }

.dh__right { justify-self: end; display: flex; align-items: center; }
.dh__book {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 24px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 3px;
  color: #fff !important; background: transparent; text-decoration: none !important;
  font: 600 11px/1 var(--dh-sans); letter-spacing: .18em; text-transform: uppercase;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.dh__book:hover { background: rgba(255, 255, 255, .14); }
.dh.is-solid .dh__book, .dm .dh__book { background: var(--dh-ink); border-color: var(--dh-ink); }
.dh.is-solid .dh__book:hover, .dm .dh__book:hover { background: #1f1b18; border-color: #1f1b18; }

.dh__link {
  position: relative; padding: 6px 0; color: inherit !important; text-decoration: none !important;
  font: 500 13px/1 var(--dh-sans); letter-spacing: .02em; white-space: nowrap;
}
.dh__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--dh-ease);
}
.dh__link:hover::after, .dh__link:focus-visible::after, .dh__link[aria-current]::after { transform: scaleX(1); }

/* Menu panel */
html.dm-open { overflow: hidden; }
.dm { position: fixed; inset: 0; z-index: 9999; overflow-y: auto; background: var(--dh-light); color: var(--dh-ink); opacity: 0; transition: opacity .45s var(--dh-ease); }
.dm.is-open { opacity: 1; }
.dm[hidden] { display: none; }
.dm__head {
  position: sticky; top: 0; z-index: 2; height: var(--dh-top); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(18px, 3.4vw, 48px); background: var(--dh-light); border-bottom: 1px solid var(--dh-line);
}
.dm__body { position: relative; min-height: calc(100svh - var(--dh-top)); padding: 52px clamp(18px, 3.4vw, 48px) 56px; }
.dm__left { width: 260px; }
.dm__hotel { display: none; }
.dm__label, .dm__nav a, .dm__group, .dm__all, .dm__hlink {
  display: block; color: var(--dh-ink) !important; text-decoration: none !important;
  font: 500 12px/14px var(--dh-sans); letter-spacing: .2em; text-transform: uppercase;
}
.dm__label { margin-bottom: 50px; }
.dm__cats { margin: 0 !important; padding: 0 0 35px !important; list-style: none; border-bottom: 1px solid rgba(55, 54, 53, .25); }
.dm__cats > li { margin: 0 !important; }
.dm__cats > li + li { margin-top: 32px !important; }
.dm__cat {
  padding: 0 !important; border: 0 !important; background: none !important; color: var(--dh-ink) !important; cursor: pointer; text-align: left;
  font: 500 14px/14px var(--dh-sans) !important; letter-spacing: normal; text-transform: none; box-shadow: none !important;
}
.dm__cat:hover, .dm__cat[aria-expanded="true"] { font-weight: 600 !important; }
.dm__nav { display: flex; flex-direction: column; gap: 22px; padding-top: 32px; }
.dm__nav a:hover, .dm__label:hover, .dm__all:hover { font-weight: 600; }
.dm__sub { position: absolute; top: 52px; left: 420px; width: 280px; animation: dm-in .5s var(--dh-ease); }
@keyframes dm-in { from { opacity: 0; } }
.dm__group { color: rgba(55, 54, 53, .6) !important; margin: 0 0 18px !important; }
.dm__sub ul { margin: 0 0 36px !important; padding: 0 !important; list-style: none; }
.dm__sub li { margin: 0 !important; }
.dm__sub li + li { margin-top: 16px !important; }
.dm__venue { color: var(--dh-ink) !important; text-decoration: none !important; font: 500 14px/14px var(--dh-sans); }
.dm__venue:hover, .dm__venue:focus-visible, .dm__venue[aria-current] { font-weight: 600; }
.dm__all { margin-top: 8px; }
.dm__pics { position: absolute; top: 52px; left: 740px; right: clamp(18px, 3.4vw, 48px); bottom: 56px; max-width: 678px; max-height: 712px; pointer-events: none; }
.dm__pics img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; opacity: 0; transition: opacity .5s cubic-bezier(.4, 0, .2, 1); }
.dm__pics img.is-on { opacity: 1; }

@media (max-width: 1180px) {
  .dm__pics { display: none; }
}
/* Tablets and phones: one bar; the hotel sections move into the menu panel, above the group menu */
@media (max-width: 1000px) {
  :root { --dh-top: 72px; }
  .dh__bar { display: none; }
  .dh__txt { display: none; }
  .dh__logo { width: 112px; height: 50px; }
  .dh__book { min-height: 38px; padding: 0 16px; font-size: 10px; letter-spacing: .16em; }
  .dm__body { padding: 30px 20px 48px; }
  .dm__left { width: 100%; }
  .dm__hotel { display: flex; flex-direction: column; gap: 22px; margin-bottom: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(55, 54, 53, .25); }
  .dm__hlink[aria-current] { font-weight: 600; }
  .dm__label { margin-bottom: 30px; }
  .dm__sub { position: static; width: auto; padding: 24px 0 4px 16px; }
  .dm__sub ul { margin-bottom: 24px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .dh, .dm, .dh__link::after { transition: none; }
  .dm__sub { animation: none; }
}
html.dm-open .sol-chat { display: none !important; }
/* pages without a photo at the top (tools/header.mjs FLAT) */
body:has(.dh[data-flat]) { padding-top: calc(var(--dh-top) + var(--dh-bar)); }
@media (max-width: 1000px) { body:has(.dh[data-flat]) { padding-top: var(--dh-top); } }
/* soft shade under the transparent header so it reads on bright photos (lamps, sky) */
.dh::before {
  content: ""; position: absolute; inset: 0 0 auto; height: calc(100% + 70px); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 16, 14, .42) 0%, rgba(20, 16, 14, .18) 60%, rgba(20, 16, 14, 0) 100%);
  transition: opacity .35s ease;
}
.dh.is-solid::before { opacity: 0; }
