:root {
  --brand-navy: #1e5fb8;
  --brand-navy-dark: #164a94;
  --brand-navy-light: #3b82d6;
  --brand-navy-soft: #eaf3ff;
  --brand-gold: #a9791a;
  --brand-gold-bright: #e6c565;
  --brand-gold-soft: #fbf3e0;

  /* The header is a floating bar. Heroes run behind it and add --nav-h of top
     padding (see the product search sheets), so --header-top-h is 0. */
  --nav-h: 96px;
  --header-top-h: 0px;
  --site-header-h: 96px;
}

@media (max-width: 991.98px) {
  :root {
    --nav-h: 76px;
    --site-header-h: 76px;
  }
}

body {
  padding-top: var(--site-header-h);
}

body:has(:is(.flight-hero, .hotel-hero, .tour-hero, .visa-hero, .sightseeing-hero, .cruise-hero, .destinations-hero, .lst-hero, .td-hero, .sd-hero, .cd-hero, .vd-hero, .cp-hero, .svc-hero, .legal-hero, .acc-hero)) {
  padding-top: var(--header-top-h);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 10px 12px 0;
  pointer-events: none;
}

/* ---------- Floating bar ---------- */
.hdr-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
  max-width: 1760px;
  margin: 0 auto;
  min-height: 78px;
  padding: 8px 18px;
  border-radius: 18px;
  border: 1px solid #e3ecf8;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 60, 120, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hdr-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 14px;
}

.hdr-logo img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.hdr-collapse {
  justify-content: flex-end;
  flex: 1 1 auto;
  flex-basis: auto;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

/* ---------- Nav ---------- */
.hdr-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

/* Clean text links with an underline that grows on hover and stays under the
   current page. No pills or icons: the bar carries the state. */
.hdr-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  color: #26364f;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.hdr-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #f26a1b, #ff9d5c);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hdr-link:hover {
  color: var(--brand-navy);
  background: #f3f8ff;
}

.hdr-link:hover::after {
  transform: scaleX(0.45);
}

.hdr-link.active {
  color: var(--brand-navy);
  font-weight: 700;
}

.hdr-link.active::after {
  transform: scaleX(1);
}

.hdr-link:focus-visible {
  outline: 2px solid rgba(30, 95, 184, 0.4);
  outline-offset: 2px;
}

/* ---------- Right-hand pill ---------- */
.hdr-actions {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px;
  border-radius: 999px;
  background: #eaf3ff;
  box-shadow: none;
}

.hdr-sep {
  width: 1px;
  height: 30px;
  background: rgba(31, 79, 156, 0.18);
}

.hdr-support,
.hdr-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-navy);
  text-decoration: none;
  white-space: nowrap;
}

.hdr-ico {
  position: relative;
  display: inline-flex;
  color: #123a7a;
}

.hdr-ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hdr-support-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hdr-support-text b {
  font-size: 15px;
  font-weight: 600;
}

.hdr-support-text small {
  font-size: 11.5px;
  color: #6b7a96;
}

.hdr-action-text {
  font-size: 14.5px;
  font-weight: 600;
}

.hdr-action:hover .hdr-ico,
.hdr-support:hover .hdr-ico {
  color: var(--brand-gold);
}

.hdr-badge {
  position: absolute;
  top: -9px;
  right: -11px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e5262b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

/* ---------- Mobile toggler ---------- */
.custom-toggler {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.custom-toggler:focus {
  box-shadow: none;
}

.toggler-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-navy);
}

@media (max-width: 1399.98px) {
  .hdr-link { padding: 12px 11px; font-size: 14.5px; }
  .hdr-link::after { left: 11px; right: 11px; }
  .hdr-actions { gap: 10px; padding: 8px 14px; }
}


@media (max-width: 991.98px) {
  .hdr-bar { flex-wrap: wrap; min-height: 60px; padding: 8px 12px; gap: 8px; }
  .hdr-logo img { height: 46px; max-width: 170px; }
  .hdr-collapse { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 8px 0 6px; }
  .hdr-nav { margin-left: 0; flex-direction: column; align-items: stretch; }
  .hdr-link::after { left: 16px; right: auto; width: 28px; bottom: 6px; transform-origin: left; }
  .hdr-link.active { background: #f3f8ff; }
  .hdr-link { width: 100%; }
  .hdr-actions { margin-left: 0; justify-content: space-between; border-radius: 16px; flex-wrap: wrap; }
}
