/* Homepage hub (Oct 2026) — index.html + js/home-hub.js.
   Trip.com / Travelata-style: the tours-blue band, round product icons, and
   ONE search bar at a time. The three bars come from three different modules
   (flights: .hero-search-bar/sb-*, inline-styled in style.css; hotels:
   .htl-form, self-styled by js/hotel-search.js; tours: .tvs, css/tv.css), so
   everything here is scoped to .hub-hero and only re-skins them to one box:
   same width, same 76px height, same white surface, same label/value type,
   the same orange button. The product pages (/aviabilet, /hotels, /tours)
   keep their own bars untouched. */

.hub-hero {
  background: linear-gradient(135deg, #06248a 0%, #0B3AD6 50%, #1d4ed8 100%);
  overflow: visible;            /* the bars' dropdowns/calendars hang below */
  z-index: 5;
  padding-bottom: 44px;
}
.hub-hero .htl-hero-inner { max-width: 1080px; }
.hub-hero .htl-h1 { margin-bottom: 10px; }
.hub-hero .htl-hero-sub { margin-bottom: 0; min-height: 1.55em; max-width: none; }
/* One line on desktop whatever the tab's subline; phones wrap as usual. */
@media (min-width: 901px) { .hub-hero #hubSub { white-space: nowrap; } }   /* homepage only — product pages have longer sublines */

/* ── Product icons ─────────────────────────────────────────────────────── */
.hub-tabs { display: flex; justify-content: center; gap: 30px; margin: 24px 0 20px; }
.hub-tab {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none;
  color: #fff; font: 700 14px/1.2 Inter, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.hub-ic {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
}
.hub-ic svg { width: 28px; height: 28px; }
.hub-tab:hover .hub-ic { background: rgba(255,255,255,.26); transform: translateY(-2px); }
.hub-tab.on .hub-ic { background: #fff; color: #0B3AD6;  transform: none; }
.hub-tab-hot .hub-ic { color: #FFB38A; }
.hub-lbl { opacity: .9; white-space: nowrap; }
.hub-tab.on .hub-lbl { opacity: 1; }
.hub-tab:focus-visible { outline: none; }
.hub-tab:focus-visible .hub-ic { outline: 2px solid #fff; outline-offset: 3px; }

/* ── Panels ────────────────────────────────────────────────────────────── */
.hub-panels { width: 100%; max-width: 1080px; margin: 0 auto; text-align: left; position: relative; z-index: 20; }
.hub-panel[hidden] { display: none; }
.hub-wait { margin: 0; padding: 26px 0; text-align: center; font: 600 14px/1.4 Inter, system-ui, sans-serif; color: rgba(255,255,255,.8); }
.hub-wait[hidden] { display: none; }
.hub-wait a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hub-hero .hp-trust { margin-top: 22px; }
/* style.css left-aligns this row on phones; under the centred hub it centres. */
.hub-hero .hp-trust { justify-content: center; text-align: center; }
/* Every width: the three modules start at the same edge. On /hotels the
   wrapper is itself a white card around the form; here the form is the card. */
.hub-hero .hero-search-bar,
.hub-hero .tv-search-host,
.hub-hero .hotel-search-wrap { max-width: none; margin: 0; width: 100%; }
.hub-hero .hotel-search-wrap { background: none; padding: 0; box-shadow: none; border-radius: 0; min-height: 0; }
/* .hotel-hero sets color:#fff, and the flight form's popups have text with no
   colour of their own (the passenger counts) — white on white without this.
   The hotel and tour forms already set their own. */
.hub-hero .hero-search-bar { color: #1a1d2e; }
.hub-hero .quick-routes { margin-top: 14px; }

/* ── One bar, three modules (desktop; phones keep each module's own layout)
   The model is OUR flight form, untouched (style.css .hero-search-bar): a 68px
   bar — a #e6e8ef frame (4px, 14px corners) holding white field boxes 1px
   apart, an 11px grey label over a 16px bold value, and the orange gradient
   button joined to the right edge. The hotel and tour bars are re-skinned to
   that; the flight bar is left exactly as it is on /aviabilet. */
@media (min-width: 901px) {
  .hub-hero .htl-form,
  .hub-hero .tvs {
    height: 68px; box-sizing: border-box; padding: 4px; gap: 1px;
    background: #e6e8ef; border: 0; border-radius: 14px; box-shadow: none;
  }

  /* Fields: white boxes, square inside, rounded at the left end. */
  .hub-hero .htl-field,
  .hub-hero .tvs-tile {
    background: #fff; border: 0; border-radius: 0; box-shadow: none;
  }
  .hub-hero .htl-field { padding: 12px 16px; }
  .hub-hero .htl-dates { padding: 0; }
  .hub-hero .htl-datecol { padding: 12px 16px; }
  .hub-hero .htl-form > .htl-field:first-child,
  .hub-hero .tvs > .tvs-tile:first-of-type,
  .hub-hero .tvs > .tvs-tile:first-of-type .tvs-hit { border-radius: 10px 0 0 10px; }
  .hub-hero .htl-field:hover,
  .hub-hero .tvs-hit:hover { background: #f5f7ff; }
  .hub-hero .tvs-hit { border-radius: 0; min-height: 0; padding: 4px 30px 4px 16px; }
  .hub-hero .tvs-tile.on .tvs-hit { background: #eff2ff; }
  /* A tour field can carry a third line ("charter kunlari") — lock the row. */
  .hub-hero .tvs { grid-template-rows: 60px; }

  .hub-hero .htl-field > label,
  .hub-hero .htl-datecol label,
  .hub-hero .tvs-lbl {
    font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
    color: #6b7280; margin-bottom: 4px;
  }
  .hub-hero .tvs-txt { gap: 0; }
  .hub-hero .htl-input,
  .hub-hero .htl-datebox,
  .hub-hero .tvs-val { font-size: 16px; font-weight: 700; color: #1a1d2e; letter-spacing: -.2px; line-height: 1.2; }

  /* The button: the flight bar's — gradient, joined to the right edge. */
  .hub-hero .htl-submit,
  .hub-hero .tvs-go {
    align-self: stretch; margin: -4px -4px -4px 0; min-width: 150px; padding: 0 28px;
    border-radius: 0 10px 10px 0; background: linear-gradient(135deg, #ff7a45 0%, #ff5722 100%);
    color: #fff; font: 700 15px/1 Inter, system-ui, sans-serif; letter-spacing: .2px;
    transition: filter .15s;
  }
  .hub-hero .htl-submit:hover,
  .hub-hero .tvs-go:hover { background: linear-gradient(135deg, #ff7a45 0%, #ff5722 100%); filter: brightness(1.08); }
}

/* ── Phones: the hotel and tour forms drawn like the flight form's phone layout
   (style.css, ≤880px) — a white card, 60px rows on #f6f8fb with a 36px white
   icon tile, an 11.5px label over a 16px value, the orange gradient button.
   Homepage only (.hub-hero); /hotels and /tours keep their own. */
@media (max-width: 900px) {
  .hub-hero .htl-form {
    grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px;
    background: #fff; border-radius: 20px; box-shadow: none; color: #1a1d2e;
  }
  .hub-hero .htl-dest, .hub-hero .htl-dates, .hub-hero .htl-guests, .hub-hero .htl-submit { grid-column: 1 / -1; }
  .hub-hero .htl-dest, .hub-hero .htl-guests, .hub-hero .htl-datecol {
    position: relative; min-height: 60px; box-sizing: border-box;
    display: flex; flex-direction: column; justify-content: center;
    background: #f6f8fb; border: 1px solid #e6e8ef; border-radius: 14px;
  }
  .hub-hero .htl-dest, .hub-hero .htl-guests { padding: 9px 12px 9px 60px; }
  .hub-hero .htl-guests { padding-right: 34px; }
  /* Icon tile — the flight form's own icons. */
  .hub-hero .htl-dest::before, .hub-hero .htl-guests::before, .hub-hero .htl-datecol::before {
    content: ''; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; box-sizing: border-box; border-radius: 10px;
    background: #fff no-repeat center / 18px 18px; border: 1px solid #edf0f5;
  }
  .hub-hero .htl-dest::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3ad6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21c4-4.5 6-7.7 6-10.5a6 6 0 1 0-12 0C6 13.3 8 16.5 12 21Z'/%3E%3Ccircle cx='12' cy='10.5' r='2'/%3E%3C/svg%3E"); }
  .hub-hero .htl-guests::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3ad6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 20v-1.5a3.5 3.5 0 0 0-3.5-3.5h-5A3.5 3.5 0 0 0 4 18.5V20'/%3E%3Ccircle cx='10' cy='7.5' r='3.5'/%3E%3Cpath d='M20 20v-1.5a3.5 3.5 0 0 0-2.5-3.35M15.5 4.15a3.5 3.5 0 0 1 0 6.7'/%3E%3C/svg%3E"); }
  .hub-hero .htl-guests::after {
    content: '›'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    font-size: 22px; line-height: 1; color: #9ca3af;
  }
  /* Two date boxes side by side, a plain calendar icon each (as the flight's). */
  .hub-hero .htl-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; background: none; border: 0; }
  .hub-hero .htl-datesep { display: none; }
  .hub-hero .htl-datecol { padding: 9px 12px 9px 40px; height: auto; }
  .hub-hero .htl-datecol::before {
    left: 12px; width: 18px; height: 18px; border: 0; border-radius: 0;
    background: transparent no-repeat center / 18px 18px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3ad6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cline x1='16' y1='3' x2='16' y2='7'/%3E%3Cline x1='8' y1='3' x2='8' y2='7'/%3E%3Cline x1='3' y1='11' x2='21' y2='11'/%3E%3C/svg%3E");
  }
  .hub-hero .htl-field > label, .hub-hero .htl-datecol label {
    font-size: 11.5px; font-weight: 600; color: #6b7280; text-transform: none; letter-spacing: 0; margin-bottom: 2px;
  }
  .hub-hero .htl-input, .hub-hero .htl-datebox { font-size: 16px; font-weight: 700; color: #1a1d2e; }
  .hub-hero .htl-input::placeholder { color: #9ca3af; font-weight: 700; }
  /* A thin white frame round the rows (was 14px — read as a fat border).
     All three cards; the flight's swap button is placed from this padding. */
  .hub-hero .hero-search-bar .sb-fields, .hub-hero .htl-form, .hub-hero .tvs { padding: 8px; border-radius: 18px; }
  .hub-hero .hero-search-bar .sb-swap { top: calc(8px + 44px + 6px + 8px + 60px + 4px); right: 20px; }
  /* ONE icon column for every row of all three forms: a bare 20px icon
     centred 24px from the row's left edge, the text always starting at 44px.
     (Full rows had a 36px tile and half rows a bare icon, so neither the
     icons nor the text lined up; the tour tiles also read as too big.) */
  .hub-hero .hero-search-bar .sb-field,
  .hub-hero .hero-search-bar .sb-trip + .sb-field,
  .hub-hero .hero-search-bar #sbDepartWrap, .hub-hero .hero-search-bar #sbReturnWrap,
  .hub-hero .htl-dest, .hub-hero .htl-guests, .hub-hero .htl-datecol,
  .hub-hero .tvs-hit,
  .hub-hero .tvs-tile[data-k="nights"] .tvs-hit, .hub-hero .tvs-tile[data-k="pax"] .tvs-hit { padding-left: 44px; }
  .hub-hero .hero-search-bar .sb-type-input { left: 44px; }
  .hub-hero .hero-search-bar .sb-field::before,
  .hub-hero .hero-search-bar #sbDepartWrap::before, .hub-hero .hero-search-bar #sbReturnWrap::before,
  .hub-hero .htl-dest::before, .hub-hero .htl-guests::before, .hub-hero .htl-datecol::before {
    left: 14px; width: 20px; height: 20px; border: 0; border-radius: 0;
    background-color: transparent; background-size: 20px 20px;
  }
  .hub-hero .tvs-ico,
  .hub-hero .tvs-tile[data-k="nights"] .tvs-ico, .hub-hero .tvs-tile[data-k="pax"] .tvs-ico {
    display: grid; left: 14px; width: 20px; height: 20px; border: 0; border-radius: 0; background: none;
  }
  .hub-hero .tvs-ico svg { width: 20px; height: 20px; }
  /* Narrow phones (Samsung 360px): the two half-width flight date boxes are
     ~95px of text — a touch smaller so "Sana tanlang" is not cut. */
  @media (max-width: 380px) {
    .hub-hero #sbDepartVal, .hub-hero #sbReturnVal { font-size: 14.5px; letter-spacing: -.3px; }
  }
  /* Tour rows can carry a third line (charter days, warnings) — tighter
     spacing keeps them at the same 60px as every other row. */
  .hub-hero .tvs-hit { min-height: 60px; padding-top: 5px; padding-bottom: 5px; }
  .hub-hero .tvs-txt { gap: 1px; }
  .hub-hero .tvs-sub { margin-top: 0; line-height: 1.15; }
  /* The button: the flight's. */
  .hub-hero .htl-submit, .hub-hero .tvs-go {
    height: 54px; padding: 0; margin: 0; border-radius: 14px;
    background: linear-gradient(135deg, #ff7a45 0%, #ff5722 100%); color: #fff;
    font: 700 16.5px/1 Inter, system-ui, sans-serif;
  }
}

/* Phones: no headline text on the homepage — the phone header (css/mobile-head.css)
   and the product icons say it. Visually hidden, not removed: screen readers
   and search engines still read the H1. */
@media (max-width: 880px) {
  /* The phone header (css/mobile-head.css) lies over the top of this band. */
  /* (beats hotels.css: body.ob-app :is(.hp-hero, .hotel-hero) { padding-top: 24px }) */
  body:has(#mobileHead) .hotel-hero.hub-hero { padding-top: calc(70px + env(safe-area-inset-top, 0px)); }   /* homepage; product pages clear their navbar (hotels.css body.ob-app) */
  .hub-hero #hubTitle, .hub-hero #hubSub {
    position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .hub-tabs { margin-top: 0; }
}

/* Phones: the icons shrink to fit four across. */
@media (max-width: 600px) {
  .hub-tabs { gap: 0; justify-content: space-between; margin: 18px 0 16px; }
  .hub-tab { flex: 1 1 0; font-size: 12px; gap: 6px; }
  .hub-ic { width: 54px; height: 54px; }
  .hub-ic svg { width: 24px; height: 24px; }
  .hub-lbl { white-space: normal; text-align: center; }
}
