/* Home page redesign: hero with product tabs, popular destinations, trending
   packages, why-choose-us and CTA banner. Light-blue theme with orange CTAs. */
:root {
  --hx-blue: #1e5fb8;
  --hx-blue-dark: #164a94;
  --hx-sky: #eaf3ff;
  --hx-orange: #f26a1b;
  --hx-orange-dark: #d85a10;
  --hx-ink: #1c2b44;
  --hx-muted: #64748b;
}

/* ---------- Hero ---------- */
.hx-hero {
  position: relative;
  margin: 0 calc(50% - 50vw);
  padding: calc(var(--nav-h) + 56px) 16px 56px;
  background:
    linear-gradient(180deg, rgba(8, 30, 66, 0.62) 0%, rgba(8, 30, 66, 0.38) 45%, rgba(8, 30, 66, 0.55) 100%),
    radial-gradient(90% 70% at 0% 100%, rgba(30, 95, 184, 0.5), transparent 60%),
    var(--hx-hero-img) center / cover no-repeat;
  color: #fff;
}

.hx-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.hx-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}
.hx-hero h1 em {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-style: italic;
  background: linear-gradient(90deg, #ffd0a8, #ff9a52 40%, #ffe3c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hx-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  margin: 0 0 30px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hx-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(20, 60, 120, 0.22);
  color: var(--hx-ink);
  overflow: hidden;
}

.hx-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 14px 0;
  background: var(--hx-sky);
}

.hx-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: transparent;
  color: var(--hx-blue);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.hx-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.hx-tab:hover { background: rgba(255, 255, 255, 0.6); color: var(--hx-blue-dark); }
.hx-tab.active { background: #fff; color: var(--hx-orange); }

.hx-pane { padding: 22px; }

.hx-pkg-form {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.hx-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--hx-muted); }
.hx-field input,
.hx-field select {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d6e2f3;
  border-radius: 10px;
  background: #fff;
  color: var(--hx-ink);
  font: inherit;
}
.hx-field input:focus,
.hx-field select:focus { outline: 2px solid rgba(30, 95, 184, 0.25); border-color: var(--hx-blue); }

.hx-btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--hx-orange);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.hx-btn-orange:hover { background: var(--hx-orange-dark); color: #fff; }

/* Existing flight search form, embedded without its own hero overlap. */
.hx-pane-flights { padding: 0; }
.hx-pane-flights .flight-search-wrapper { margin: 0; }
.hx-pane-flights .flight-search-card { box-shadow: none; border: 0; border-radius: 0; }

.hx-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.hx-chip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--hx-ink);
  box-shadow: 0 6px 18px rgba(20, 60, 120, 0.12);
}
.hx-chip-item strong { display: block; font-size: 14px; }
.hx-chip-item small { color: var(--hx-muted); font-size: 12.5px; }
.hx-chip-ico {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--hx-sky);
  color: var(--hx-blue);
}
.hx-chip-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Sections ---------- */
.hx-section { padding: 44px 0 8px; }

.hx-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.hx-head h2,
.hx-why h2,
.hx-cta h2 { font-size: 1.6rem; font-weight: 800; color: var(--hx-ink); margin: 0; }
.hx-center { text-align: center; margin-bottom: 26px !important; }

.hx-viewall {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--hx-blue);
  font-weight: 600;
  text-decoration: none;
}
.hx-viewall svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.hx-dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.hx-dest {
  position: relative;
  display: block;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(20, 60, 120, 0.14);
}
.hx-dest img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hx-dest { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hx-dest:hover,
.hx-dest:focus-visible {
  color: #fff;
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(20, 60, 120, 0.28);
}
.hx-dest:hover img { transform: scale(1.08); }
.hx-dest-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(10, 40, 90, 0.8));
  transition: padding 0.3s ease, background 0.3s ease;
}
.hx-dest:hover .hx-dest-label { padding-bottom: 20px; background: linear-gradient(180deg, transparent, rgba(10, 40, 90, 0.92)); }
.hx-dest-label strong,
.hx-dest:hover .hx-dest-label strong { display: block; font-size: 1.1rem; color: #fff; }
.hx-dest-label small,
.hx-dest:hover .hx-dest-label small { color: #fff; opacity: 0.9; }

.hx-tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.hx-tour {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: var(--hx-ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(20, 60, 120, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hx-tour:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20, 60, 120, 0.18); color: var(--hx-ink); }
.hx-tour-photo { position: relative; display: block; height: 190px; }
.hx-tour-photo img { width: 100%; height: 100%; object-fit: cover; }
.hx-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 95, 184, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.hx-tour-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.hx-tour-body strong { font-size: 1.05rem; }
.hx-tour-meta { color: var(--hx-muted); font-size: 13px; }
.hx-tour-price { font-size: 13px; color: var(--hx-muted); }
.hx-tour-price b { color: var(--hx-ink); font-size: 1.25rem; }

.hx-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  padding: 11px;
  border-radius: 10px;
  background: var(--hx-blue);
  color: #fff;
  font-weight: 600;
}
.hx-btn-dark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

.hx-why { padding-top: 56px; }
.hx-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hx-why-item { text-align: center; padding: 8px 12px; }
.hx-why-item strong { display: block; margin-bottom: 4px; color: var(--hx-ink); }
.hx-why-item p { margin: 0; color: var(--hx-muted); font-size: 14px; }
.hx-why-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hx-sky);
  color: var(--hx-blue);
}
.hx-why-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hx-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: 48px calc(50% - 50vw) 0;
  padding: 34px 16px;
  background: linear-gradient(90deg, var(--hx-blue-dark), var(--hx-blue) 50%, #3b82d6);
}
.hx-cta h2 { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hx-pkg-form { grid-template-columns: 1fr 1fr; }
  .hx-field-wide { grid-column: 1 / -1; }
  .hx-search-btn { grid-column: 1 / -1; }
  .hx-chips,
  .hx-dest-grid,
  .hx-why-grid { grid-template-columns: repeat(2, 1fr); }
  .hx-tour-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .hx-hero { padding-top: calc(var(--nav-h) + 28px); }
  .hx-chips,
  .hx-dest-grid,
  .hx-why-grid,
  .hx-pkg-form { grid-template-columns: 1fr; }
  .hx-tab { padding: 10px 12px; }
}

/* ---------- Fit the flights hero to one screen ---------- */
.hx-hero { padding: calc(var(--nav-h) + 6px) 16px 28px; }
.hx-hero h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.08; margin: 0 0 6px; }
.hx-hero h1 br { display: none; }
.hx-hero h1 em { margin-left: 0.25em; }
.hx-hero p { font-size: clamp(0.95rem, 1.2vw, 1.05rem); margin: 0 0 16px; }
.hx-pane-flights .flight-search-card { padding: 1rem 1.4rem 1.2rem; }
.hx-pane-flights .fare-type-row { margin-top: 0.6rem; padding-bottom: 0.6rem; }
.hx-pane-flights .search-actions { margin-top: 0.8rem; }
.hx-chips { margin-top: 14px; gap: 12px; }
.hx-chip-item { padding: 8px 14px; }
@media (max-width: 767.98px) {
  .hx-chips { display: none; }
}

/* The airport / passenger popovers hang below the search card, so the card
   must not clip them and has to sit above the trust chips. */
.hx-card { overflow: visible; position: relative; z-index: 5; }
.hx-pane-flights .flight-search-wrapper,
.hx-pane-flights .flight-search-card { overflow: visible; }
.hx-chips { position: relative; z-index: 1; }
