/* ==========================================================================
   Holidaysify header navigation: white editorial bar, mega menus, mobile menu.
   Content comes from nav-data.js; behaviour from nav.js.
   ========================================================================== */
.hnav {
  --hnav-h: 84px;
  --hnav-ink: #0b0b0b;
  --hnav-muted: #6f6f6f;
  --hnav-line: rgba(11, 11, 11, .12);
  --hnav-accent: #d4f23b;              /* bright lime-yellow */
  --hnav-accent-hover: #c6e52a;
  --hnav-accent-press: #b8d61f;
  --hnav-ease: cubic-bezier(.2, .7, .2, 1);
  position: fixed; inset: 0 0 auto; z-index: 60;
  background: #fff; color: var(--hnav-ink);
  font-family: var(--font);
}
.hnav a { color: inherit; text-decoration: none; }
:where(.hnav) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.hnav :focus-visible { outline: 2px solid var(--hnav-ink); outline-offset: 3px; }
.hnav__wrap { width: calc(100% - 120px); max-width: 1570px; margin: 0 auto; }

/* ---------- Bar ---------- */
.hnav__bar {
  height: var(--hnav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border-bottom: 1px solid var(--hnav-ink);
}
.hnav__brand {
  flex: 1 1 0; min-width: max-content;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 26px; line-height: 1; font-weight: 800; letter-spacing: -.045em;
}
.hnav__brand svg { width: 32px; height: 32px; flex: none; }
.hnav__primary { flex: 0 1 auto; align-self: stretch; display: flex; }
/* Items stretch to the full bar height so the hover region runs from the label straight
   into the dropdown below it, with no gap for the pointer to fall through. */
.hnav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 14px; }
.hnav__list > li { display: flex; align-items: center; }
.hnav__trigger, .hnav__link {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 1000px;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .25s var(--hnav-ease), color .25s var(--hnav-ease);
}
.hnav__trigger:hover, .hnav__link:hover { background: rgba(11, 11, 11, .05); }
.hnav__trigger[aria-expanded="true"] { background: var(--hnav-accent); color: var(--hnav-ink); }
.hnav__chev { width: 14px; height: 14px; flex: none; transition: transform .3s var(--hnav-ease); }
.hnav__trigger[aria-expanded="true"] .hnav__chev { transform: rotate(180deg); }
.hnav__right { flex: 1 1 0; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
/* Primary CTA (replaces the phone number) */
.hnav__cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 1000px;
  background: var(--hnav-accent); color: var(--hnav-ink);
  font-size: 15px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .25s var(--hnav-ease);
}
.hnav__cta:hover { background: var(--hnav-accent-hover); }
.hnav__cta:active { background: var(--hnav-accent-press); }
.hnav__cta:focus-visible { outline: 2px solid var(--hnav-ink); outline-offset: 3px; }
.hnav__cta-short { display: none; }
.hnav__toggle { display: none; width: 44px; height: 44px; border-radius: 1000px; place-items: center; }
.hnav__toggle svg { width: 24px; height: 24px; }
.hnav__toggle .hnav__x { display: none; }
.hnav__toggle[aria-expanded="true"] .hnav__bars { display: none; }
.hnav__toggle[aria-expanded="true"] .hnav__x { display: block; }

/* ---------- Dropdown panels (desktop) ---------- */
.hnav__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--hnav-line);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .22s var(--hnav-ease), transform .3s var(--hnav-ease);
  max-height: calc(100vh - var(--hnav-h)); overflow-y: auto;
}
.hnav__panel.is-open { opacity: 1; transform: none; }
.hnav__mega {
  display: grid; gap: 48px; padding: 44px 0 40px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
}
.hnav__mega--wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.25fr); }
.hnav__colhead {
  margin: 0 0 22px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--hnav-muted);
}
.hnav__groups { display: grid; gap: 30px 40px; }
.hnav__mega--wide .hnav__col:first-child .hnav__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hnav__group h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--hnav-muted); }
.hnav__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hnav__links a {
  display: inline-block; padding: 6px 0;
  font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -.015em;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-size: 0 1px; background-position: 0 calc(100% - 4px);
  transition: background-size .3s var(--hnav-ease);
}
.hnav__links a:hover, .hnav__links a:focus-visible { background-size: 100% 1px; }
.hnav__featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-content: start; }
.hnav__card { display: flex; flex-direction: column; gap: 10px; }
.hnav__card-img { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: #eee; }
.hnav__card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--hnav-ease); }
.hnav__card:hover .hnav__card-img img { transform: scale(1.04); }
.hnav__card strong { font-size: 15px; font-weight: 600; line-height: 1.3; }
.hnav__card small { font-size: 13px; color: var(--hnav-muted); }
.hnav__card em { font-style: normal; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hnav__foot {
  display: flex; justify-content: flex-end; padding: 18px 0 22px; border-top: 1px solid var(--hnav-line);
}
.hnav__foot a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.hnav__foot svg { width: 16px; height: 16px; transition: transform .25s var(--hnav-ease); }
.hnav__foot a:hover svg { transform: translateX(3px); }

/* Small dropdown (Cruises) */
.hnav__panel--list { left: auto; right: auto; border: 1px solid var(--hnav-line); border-top: 0; border-radius: 0 0 16px 16px; min-width: 300px; }
.hnav__listmenu { list-style: none; margin: 0; padding: 12px; }
.hnav__listmenu a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; }
.hnav__listmenu a:hover, .hnav__listmenu a:focus-visible { background: rgba(11, 11, 11, .05); }
.hnav__listmenu strong { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 500; }
.hnav__listmenu small { font-size: 13px; color: var(--hnav-muted); }
.hnav__ext { width: 13px; height: 13px; }

/* Cruises: external booking partners */
.hnav__mega.hnav__mega--ext { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.hnav__intro { margin: 0; max-width: 32ch; font-size: 18px; line-height: 1.45; letter-spacing: -.01em; }
.hnav__extcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hnav__extcard {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border: 1px solid var(--hnav-line); border-radius: 18px;
  transition: background-color .25s var(--hnav-ease), border-color .25s var(--hnav-ease);
}
.hnav__extcard:hover, .hnav__extcard:focus-visible { background: rgba(11, 11, 11, .03); border-color: rgba(11, 11, 11, .3); }
.hnav__extcard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hnav__extcard strong { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.hnav__extcard-icon {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: 1000px; background: var(--hnav-accent);
  transition: transform .25s var(--hnav-ease);
}
.hnav__extcard-icon .hnav__ext { width: 16px; height: 16px; }
.hnav__extcard:hover .hnav__extcard-icon { transform: translate(2px, -2px); }
.hnav__extcard small { font-size: 15px; line-height: 1.45; color: var(--hnav-muted); }
.hnav__extcard-host {
  margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--hnav-ink);
}
.hnav__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Mobile panel ---------- */
.hnav__mobile {
  position: fixed; inset: var(--hnav-h) 0 0; background: #fff; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 0 0;
}
.hnav__mobile[hidden] { display: none; }
.hnav__mlist { list-style: none; margin: 0; padding: 0; }
.hnav__mlist > li { border-bottom: 1px solid var(--hnav-line); }
.hnav__macc, .hnav__mlink {
  width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between;
  font-size: 20px; font-weight: 600; letter-spacing: -.02em; text-align: left;
}
.hnav__macc .hnav__chev { width: 18px; height: 18px; }
.hnav__macc[aria-expanded="true"] .hnav__chev { transform: rotate(180deg); }
.hnav__msub { padding: 0 0 18px; }
.hnav__msub[hidden] { display: none; }
.hnav__msub h4 { margin: 14px 0 4px; font-size: 13px; font-weight: 600; color: var(--hnav-muted); }
.hnav__msub a { display: flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 500; }
.hnav__mintro { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: var(--hnav-muted); }
.hnav__msub a.hnav__mext { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0; border-top: 1px solid var(--hnav-line); }
.hnav__mext span { display: inline-flex; align-items: center; gap: 8px; }
.hnav__mext small { font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--hnav-muted); }
.hnav__mext .hnav__mhost { font-weight: 600; color: var(--hnav-ink); font-size: 13px; }
/* CTA stays pinned to the bottom of the open mobile menu so it's always in reach. */
.hnav__mfoot {
  position: sticky; bottom: 0; display: flex; flex-direction: column;
  margin-top: 16px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: #fff;
}
.hnav__mfoot .hnav__mcta {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px;
  border-radius: 1000px; background: var(--hnav-accent); color: var(--hnav-ink);
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-align: center; transition: background-color .25s var(--hnav-ease);
}
.hnav__mfoot .hnav__mcta:hover { background: var(--hnav-accent-hover); }
body.hnav-locked { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1439.98px) {
  .hnav__list { gap: 6px; }
  .hnav__trigger, .hnav__link { padding: 0 14px; }
  .hnav__mega, .hnav__mega--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hnav__mega--wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .hnav__featured { display: none; }
}
@media (max-width: 1239.98px) {
  .hnav__cta-full { display: none; }
  .hnav__cta-short { display: inline; }
}
@media (max-width: 1099.98px) {
  .hnav__bar { gap: 16px; }
  .hnav__brand { font-size: 23px; }
  .hnav__trigger, .hnav__link { padding: 0 12px; font-size: 14px; }
  .hnav__mega--wide .hnav__col:first-child .hnav__groups { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 959.98px) {
  .hnav__primary, .hnav__cta, .hnav__panel { display: none; }
  .hnav__toggle { display: grid; }
}
@media (max-width: 809.98px) {
  .hnav { --hnav-h: 76px; }
  .hnav__wrap { width: calc(100% - 60px); }
  .hnav__brand { font-size: 22px; }
  .hnav__brand svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .hnav *, .hnav__panel { transition-duration: .01s !important; }
}
