/* ========== Joanna Holidays — site header (separate from hero) ========== */
:root {
  --jh-red: #e11d2e;
  --jh-red-deep: #b0101e;
  --jh-ink: #111827;
  --jh-muted: #6b7280;
  --jh-line: #e5e7eb;
}

.jh-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100;
  background: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transform: translate3d(0, 0, 0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  will-change: transform;
}

.jh-site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.jh-site-header.is-hidden {
  transform: translate3d(0, -100%, 0);
  box-shadow: none;
  pointer-events: none;
}

/* Reserves space so content doesn't jump under the fixed header */
.jh-site-header-spacer {
  width: 100%;
  height: var(--jh-header-h, 78px);
  flex-shrink: 0;
}

.jh-site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.75rem);
}

/* Main row */
.jh-site-header__main {
  background: #fff;
  border-bottom: 1px solid var(--jh-line);
  position: relative;
}

.jh-site-header__main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.jh-site-header__logo {
  height: 58px;
  width: auto;
  display: block;
}

.jh-site-header__mobile-tools {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.jh-site-header__icon-btn--mobile-search {
  display: none;
}

.jh-site-header__toggler {
  display: none;
  border: 1px solid var(--jh-line);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.35rem;
  color: var(--jh-ink);
  place-items: center;
  cursor: pointer;
}

.jh-site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.jh-site-header__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.85rem;
  color: var(--jh-ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.jh-mega-chevron {
  transition: transform 0.2s ease;
}

.jh-site-header__item--mega.is-open .jh-mega-chevron {
  transform: rotate(180deg);
}

.jh-site-header__link:hover,
.jh-site-header__item:hover > .jh-site-header__link {
  color: var(--jh-red);
  background: #fff5f5;
}

.jh-site-header__item {
  position: static;
}

.jh-site-header__nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.5rem;
}

.jh-site-header__icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--jh-line);
  background: #f9fafb;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--jh-ink);
  font-size: 1.15rem;
}

.jh-site-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--jh-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(225, 29, 46, 0.28);
}

.jh-site-header__cta:hover {
  background: var(--jh-red-deep);
  color: #fff !important;
}

/* —— Packages mega dropdown —— */
.jh-site-header__item--mega {
  position: static;
}

.jh-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  /* Invisible bridge so hover doesn't drop while moving into panel */
  padding-top: 10px;
  margin-top: -2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1200;
}

.jh-site-header__item--mega:hover .jh-mega,
.jh-site-header__item--mega:focus-within .jh-mega,
.jh-site-header__item--mega.is-open .jh-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.jh-mega__inner {
  max-width: 1240px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--jh-line);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
  padding: 1.25rem 1.35rem 1.35rem;
}

.jh-mega__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--jh-line);
}

.jh-mega__head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--jh-ink);
}

.jh-mega__head p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--jh-muted);
}

.jh-mega__all {
  color: var(--jh-red);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.jh-mega__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem 1.25rem;
}

.jh-mega__cat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--jh-ink);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}

.jh-mega__cat img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.jh-mega__cat:hover { color: var(--jh-red); }

.jh-mega__subs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.jh-mega__subs a {
  display: block;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 0.84rem;
  font-weight: 550;
}

.jh-mega__subs a:hover {
  background: #fff5f5;
  color: var(--jh-red);
}

/* —— Category strip —— */
.jh-site-header__cats {
  background: #fafafa;
  border-bottom: 1px solid var(--jh-line);
  position: relative;
}

.jh-site-header__cats-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.1rem 0.15rem;
  overflow-x: visible;
}

.jh-cat {
  position: static;
  flex: 0 0 auto;
}

.jh-cat__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  color: var(--jh-ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.86rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.jh-cat__trigger i {
  font-size: 0.9rem;
  color: var(--jh-muted);
}

.jh-cat:hover > .jh-cat__trigger,
.jh-cat:focus-within > .jh-cat__trigger {
  color: var(--jh-red);
  border-bottom-color: var(--jh-red);
  background: #fff;
}

.jh-cat__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding-top: 8px;
  margin-top: -2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1150;
}

.jh-cat--has-panel.is-open .jh-cat__panel,
.jh-cat--has-panel:hover .jh-cat__panel,
.jh-cat--has-panel:focus-within .jh-cat__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.jh-cat__panel-inner {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--jh-line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 1.1rem 1.25rem 1.25rem;
}

.jh-cat__panel-grid--text {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  align-content: start;
}

.jh-cat__card--text {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--jh-ink);
  font-weight: 650;
  font-size: 0.86rem;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.jh-cat__card--text img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.jh-cat__placeholder {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #9ca3af;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  text-transform: uppercase;
}

.jh-cat__card--text:hover {
  background: #fff5f5;
  color: var(--jh-red);
  border-color: #fecaca;
}

/* —— Mobile —— */
@media (max-width: 1199.98px) {
  .jh-site-header__mobile-tools {
    display: flex;
  }

  .jh-site-header__icon-btn--mobile-search {
    display: grid;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .jh-site-header__toggler {
    display: grid;
  }

  .jh-site-header__nav-actions .jh-site-header__icon-btn {
    display: none;
  }

  .jh-site-header__nav {
    position: absolute;
    top: 100%;
    left: 0.5rem;
    right: 0.5rem;
    margin-top: 0.4rem;
    background: #fff;
    border: 1px solid var(--jh-line);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    padding: 0.65rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    display: none;
    max-height: min(82vh, 720px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1400;
  }

  .jh-site-header__nav.is-open {
    display: flex;
  }

  .jh-site-header__main {
    position: relative;
  }

  .jh-site-header__link {
    border-radius: 10px;
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
  }

  .jh-site-header__link--mega {
    background: #fff5f5;
    color: var(--jh-red);
  }

  .jh-site-header__item--mega.is-open > .jh-site-header__link--mega {
    background: var(--jh-red);
    color: #fff;
  }

  .jh-site-header__nav-actions {
    margin: 0.5rem 0 0;
    padding-top: 0.65rem;
    border-top: 1px solid var(--jh-line);
    width: 100%;
    justify-content: flex-start;
  }

  /* Packages mega → accordion panel on mobile */
  .jh-mega {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    display: none;
    padding: 0;
    margin: 0;
    z-index: auto;
    transition: none;
  }

  .jh-site-header__item--mega.is-open .jh-mega {
    display: block !important;
  }

  .jh-mega__inner {
    margin: 0.35rem 0 0.5rem;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid var(--jh-line);
    padding: 0.75rem;
    max-height: none;
  }

  .jh-mega__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .jh-mega__head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
  }

  .jh-mega__head h3 {
    font-size: 1rem;
  }

  .jh-mega__cat {
    font-size: 0.9rem;
  }

  .jh-mega__subs {
    padding-left: 0.25rem;
  }

  .jh-mega__subs a {
    display: block;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
  }

  .jh-mega__subs a:hover {
    background: #f9fafb;
  }

  .jh-site-header__cats-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .jh-cat__panel {
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    max-height: 55vh;
    overflow-y: auto;
  }

  .jh-cat__panel-inner {
    border-radius: 14px;
  }
}

@media (max-width: 575.98px) {
  .jh-site-header__logo {
    height: 48px;
  }

  .jh-cat__trigger {
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
  }
}

body.jh-nav-open {
  overflow: hidden;
}
