/* VOYAGER_THEME_SEARCH_CSS_V1
   Hero + search panel + trip-type + calendar popover + passenger popover.
   Product tiles live in the header nav (app.css .voy-nav-products /
   mobile sheet), not inside this card.

   VOYAGER_HOMEPAGE_REVISION_V1: admin feedback removed the text hero copy
   entirely - the booking card is now the ONLY hero content, left-aligned
   (a plain block with no margin:auto sits at the container's left edge by
   default) instead of confined to a narrow right-hand grid column. */
.voy-hero{
  background:linear-gradient(180deg,var(--voy-color-primary-tint) 0%,var(--voy-color-bg) 78%);
  padding:clamp(20px,4vw,36px) 0 clamp(28px,5vw,48px);
}

/* ---- search panel ---- */
/* VOYAGER_POLISH_V1: strengthened separation from the pale hero band - a
   hairline border plus a deeper, closer shadow reads as "the one thing on
   this page that matters" instead of blending into the gradient. */
.voy-search-panel{
  background:var(--voy-color-surface);border-radius:var(--voy-radius-lg);
  border:1px solid var(--voy-color-border);
  box-shadow:0 1px 2px rgba(22,35,31,.06), var(--voy-shadow-lg);
  padding:clamp(16px,2.2vw,24px);position:relative;max-width:min(600px,calc(100% - 32px));
}
.voy-trip-type{display:flex;gap:6px;margin-bottom:16px;background:var(--voy-color-surface-alt);
  border-radius:var(--voy-radius-pill);padding:4px}
.voy-trip-type label{
  flex:1;text-align:center;font-size:13px;font-weight:700;color:var(--voy-color-ink-soft);
  padding:9px 8px;border-radius:var(--voy-radius-pill);cursor:pointer;
  border:1.5px solid transparent;
}
.voy-trip-type input{position:absolute;opacity:0;pointer-events:none}
.voy-trip-type input:checked + span{color:var(--voy-color-trip-active-text)}
/* SKYEXPRESS_UX_V1 correction #12: the calm tinted fill alone was
   too hard to tell apart from the inactive pills - a clear (but still
   calm) blue border now marks the active one, without returning to the
   old solid dark fill. */
.voy-trip-type label:has(input:checked){background:var(--voy-color-trip-active-bg);border-color:var(--voy-color-primary)}
.voy-trip-type label:has(input:checked) span{color:var(--voy-color-trip-active-text)}

.voy-search-fields{display:flex;flex-direction:column;gap:10px}
.voy-od-row{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.voy-swap-btn{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:34px;height:34px;
  border-radius:var(--voy-radius-pill);border:1px solid var(--voy-color-border);background:var(--voy-color-surface);
  display:flex;align-items:center;justify-content:center;box-shadow:var(--voy-shadow-sm);z-index:2;
}
.voy-date-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.voy-date-row[data-trip="one_way"] .voy-return-field{opacity:.45;pointer-events:none}
.voy-pax-cta-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:stretch}
.voy-search-cta{border-radius:var(--voy-radius-md);padding:0 22px;font-size:15px}

@media (max-width:640px){
  .voy-hero{padding:20px 0 28px}
  .voy-search-panel{max-width:none}
  .voy-od-row,.voy-date-row{grid-template-columns:1fr}
  .voy-swap-btn{top:auto;left:auto;right:10px;bottom:-17px;transform:none}
  .voy-pax-cta-row{grid-template-columns:1fr}
}

/* ---- calendar popover (new interaction: inline dropdown panel, not
   full-screen overlay / side panel) ---- */
/* PANEL_OPEN_CLOSE_ANIMATION_V1 (item 3): was a bare display:none/block
   toggle with zero transition - opened/closed instantly with no way to
   animate a "display" jump at all. Kept in the layout permanently
   (display never toggles any more) and instead drives opacity/transform,
   which *do* transition, while visibility + pointer-events keep it out
   of the accessibility tree and unclickable while closed - so this is
   never "display:none toggling as the only mechanism". Opacity/transform
   only (no max-height) so there is no accordion-style height to get
   wrong/stuck on a second open - the panel's own natural size never
   changes, only its visibility. */
.voy-calendar-pop{
  position:absolute;z-index:50;top:calc(100% + 8px);left:0;
  background:var(--voy-color-surface);border-radius:var(--voy-radius-lg);box-shadow:var(--voy-shadow-lg);
  border:1px solid var(--voy-color-border);width:min(680px,92vw);
  opacity:0;visibility:hidden;pointer-events:none;max-height:0;overflow:hidden;padding:0 18px;
  transition:opacity .3s ease,visibility .3s ease,max-height .34s cubic-bezier(.4,0,.2,1);
}
/* PANEL_SLIDE_ANIMATION_V2 (correction): a real slide-down/slide-up
   (max-height 0 -> a generous fixed ceiling that is never actually
   reached by real content, so nothing gets clipped) instead of the
   previous opacity/6px-nudge fade, which read as an instant flash open/
   close. 720px comfortably covers the tallest real state (2-month grid
   with price cells). */
.voy-calendar-pop[data-open="true"]{opacity:1;visibility:visible;pointer-events:auto;max-height:720px;padding:18px}
@media (prefers-reduced-motion:reduce){
  .voy-calendar-pop{transition-duration:.001s}
}
.voy-calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.voy-calendar-nav-btn{width:32px;height:32px;border-radius:var(--voy-radius-pill);border:1px solid var(--voy-color-border);
  background:var(--voy-color-surface);display:flex;align-items:center;justify-content:center}
.voy-calendar-months{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.voy-calendar-month h3{font-size:14px;font-weight:700;text-align:center;margin-bottom:10px;font-family:var(--voy-font-body)}
.voy-calendar-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:4px}
.voy-calendar-weekdays span{font-size:10px;text-align:center;color:var(--voy-color-muted);font-weight:700}
.voy-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.voy-calendar-day{
  aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  border-radius:var(--voy-radius-sm);font-size:12px;font-weight:600;color:var(--voy-color-ink);
  background:transparent;border:1px solid transparent;
}
.voy-calendar-day:not([data-disabled="true"]):hover{background:var(--voy-color-primary-tint)}
.voy-calendar-day .voy-day-price{font-size:9px;font-weight:500;color:var(--voy-color-muted)}
.voy-calendar-day[data-disabled="true"]{color:var(--voy-color-border-strong);cursor:not-allowed}
.voy-calendar-day[data-empty="true"]{visibility:hidden}
.voy-calendar-day[data-state="outbound"]{background:var(--voy-color-primary);color:#fff;border-color:var(--voy-color-primary)}
.voy-calendar-day[data-state="outbound"] .voy-day-price{color:#dff3ee}
.voy-calendar-day[data-state="return"]{background:var(--voy-color-accent);color:#241505;border-color:var(--voy-color-accent)}
.voy-calendar-day[data-state="in-range"]{background:var(--voy-color-primary-tint)}
.voy-calendar-foot{display:flex;justify-content:space-between;align-items:center;margin-top:14px;
  padding-top:14px;border-top:1px solid var(--voy-color-border)}
.voy-calendar-summary{font-size:13px;font-weight:600;color:var(--voy-color-ink-soft)}
.voy-calendar-summary strong{color:var(--voy-color-ink)}
@media (max-width:640px){
  .voy-calendar-pop{position:fixed;inset:auto 0 0 0;top:auto;width:auto;border-radius:var(--voy-radius-lg) var(--voy-radius-lg) 0 0;
    max-height:82vh;overflow-y:auto}
  .voy-calendar-months{grid-template-columns:1fr}
  .voy-calendar-months .voy-calendar-month[data-month-index="1"]{display:none}
}

/* ---- airport combobox (search_origin / search_destination fields) ---- */
/* SKYEXPRESS_UX_V1 correction #1: the popup's height is right,
   but 580px read as a "large panel" rather than an airport picker -
   narrowed to a compact, still-responsive width. */
/* PANEL_OPEN_CLOSE_ANIMATION_V1 follow-up (item 3 continued): unlike
   .voy-calendar-pop/.voy-pax-pop above (both kept permanently in the DOM,
   just toggling [data-open]), this picker is created fresh on open and
   .remove()d on close (search-widget.js) - so display:none was never the
   only problem, there was literally no "before" frame to transition from/
   to. Given the same opacity/transform pair as a resting "closed" look,
   with search-widget.js now inserting it closed, flipping [data-open] a
   frame later (real entrance transition) and, on close, flipping
   [data-open] back to false and deferring the actual .remove() until the
   transition would have finished (immediately under
   prefers-reduced-motion, matched below) - same open/close pattern engine,
   different lifecycle. */
.voy-combo-pop{
  position:absolute;z-index:55;top:calc(100% + 8px);left:0;width:min(360px,92vw);
  background:var(--voy-color-surface);border-radius:var(--voy-radius-lg);box-shadow:var(--voy-shadow-lg);
  border:1px solid var(--voy-color-border);cursor:default;
  opacity:0;max-height:0;overflow:hidden;padding:0 14px;
  transition:opacity .3s ease,max-height .3s cubic-bezier(.4,0,.2,1),padding .3s cubic-bezier(.4,0,.2,1);
}
/* PANEL_SLIDE_ANIMATION_V2 (correction): see .voy-calendar-pop above.
   520px covers the search field + scrollable option list with headroom. */
.voy-combo-pop[data-open="true"]{opacity:1;max-height:520px;padding:14px}
@media (prefers-reduced-motion:reduce){
  .voy-combo-pop{transition-duration:.001s}
}
.voy-combo-search{
  width:100%;padding:10px 12px;border-radius:var(--voy-radius-md);border:1px solid var(--voy-color-border);
  font:inherit;font-size:14px;margin-bottom:8px;background:var(--voy-color-surface-alt);
}
.voy-combo-search:focus{outline:none;border-color:var(--voy-color-primary)}
.voy-combo-list{max-height:450px;overflow-y:auto;display:flex;flex-direction:column;gap:1px}
/* SKYEXPRESS_UX_V1 correction #2: each country heading now sits
   in its own soft-blue strip (reusing the existing --voy-color-primary-
   tint token, never a new saturated colour) instead of reading as plain
   text indistinguishable from the options below it. */
.voy-combo-country{
  font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--voy-color-primary-dark);
  padding:6px 10px;margin:8px 0 4px;background:var(--voy-color-primary-tint);border-radius:var(--voy-radius-sm);
  position:sticky;top:0;
}
.voy-combo-country:first-child{margin-top:0}
.voy-combo-option{
  display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 8px;border-radius:var(--voy-radius-sm);
  background:transparent;border:0;text-align:left;width:100%;font:inherit;
}
.voy-combo-option:hover{background:var(--voy-color-primary-tint)}
/* SKYEXPRESS_UX_V1 (item B): city/airport LEFT, IATA code RIGHT - the
   explicit layout requirement (was reversed before this pass). */
.voy-combo-option span{font-size:14px;color:var(--voy-color-ink);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* SKYEXPRESS_UX_V1 correction #3: the IATA code gets its own
   subtle blue badge instead of floating as loose text. */
.voy-combo-option strong{
  font-size:11px;font-weight:700;color:var(--voy-color-primary-dark);flex-shrink:0;
  background:var(--voy-color-primary-tint);border:1px solid var(--voy-color-border);border-radius:var(--voy-radius-sm);
  padding:2px 7px;letter-spacing:.02em;
}
.voy-combo-empty{padding:16px 8px;font-size:13px;color:var(--voy-color-muted);text-align:center}
@media (max-width:640px){.voy-combo-pop{position:fixed;left:16px;right:16px;top:auto;bottom:16px;width:auto;max-height:80vh;overflow-y:auto}}

/* ---- passenger popover ---- */
/* PANEL_OPEN_CLOSE_ANIMATION_V1 (item 3): same fix/rationale as
   .voy-calendar-pop above - opacity/transform + visibility instead of a
   zero-transition display:none/block toggle. */
/* P0_REGRESSION_REPAIR_V1: #passenger-trigger (the .voy-field this
   popover lives inside) is the ANCHOR - it needs position:relative,
   set below, or absolute-positioned children with no positioned
   ancestor between them and .voy-search-panel resolve top/left against
   the WHOLE CARD instead of the field itself (confirmed live: this
   popover was opening anchored to the card's own right edge, not the
   passenger field's left edge). left:0 (was right:0) aligns the
   popover's own left edge with the field's left edge, per spec. */
#passenger-trigger{position:relative}
.voy-pax-pop{
  position:absolute;z-index:50;top:calc(100% + 8px);left:0;right:auto;
  background:var(--voy-color-surface);border-radius:var(--voy-radius-lg);box-shadow:var(--voy-shadow-lg);
  border:1px solid var(--voy-color-border);width:300px;
  opacity:0;visibility:hidden;pointer-events:none;max-height:0;overflow:hidden;padding:0 18px;
  transition:opacity .3s ease,visibility .3s ease,max-height .3s cubic-bezier(.4,0,.2,1);
}
/* PANEL_SLIDE_ANIMATION_V2 (correction): see .voy-calendar-pop above
   for the same real slide-down/up rationale. 420px covers the 3-row
   adult/children/infant stepper plus footer with headroom. */
.voy-pax-pop[data-open="true"]{opacity:1;visibility:visible;pointer-events:auto;max-height:420px;padding:18px}
@media (prefers-reduced-motion:reduce){
  .voy-pax-pop{transition-duration:.001s}
}
@media (max-width:640px){
  .voy-pax-pop{position:fixed;inset:auto 0 0 0;top:auto;width:auto;
    border-radius:var(--voy-radius-lg) var(--voy-radius-lg) 0 0;max-height:82vh;overflow-y:auto}
}
.voy-pax-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;
  border-bottom:1px solid var(--voy-color-border)}
.voy-pax-row:last-of-type{border-bottom:0}
.voy-pax-row-label{font-size:14px;font-weight:700;color:var(--voy-color-ink)}
.voy-pax-row-sub{font-size:12px;color:var(--voy-color-muted)}
.voy-pax-stepper{display:flex;align-items:center;gap:10px}
.voy-pax-stepper button{
  width:30px;height:30px;border-radius:var(--voy-radius-pill);border:1px solid var(--voy-color-border);
  background:var(--voy-color-surface);font-size:16px;font-weight:700;color:var(--voy-color-primary-dark);
  display:flex;align-items:center;justify-content:center;line-height:1;
}
.voy-pax-stepper button:disabled{opacity:.35;cursor:not-allowed}
.voy-pax-stepper output{min-width:16px;text-align:center;font-size:14px;font-weight:700}
.voy-pax-pop-foot{margin-top:14px}

/* ---- hotel search panel (voyager/_sections/hotel_booking_stage.html) ---
   VOYAGER_HOTEL_SEARCH_V1: additive only, scoped entirely under
   #voyager-hotel-search-panel / #hotel-guests-trigger so the flight
   search panel above (#voyager-search-panel / #passenger-trigger) is
   completely untouched. Reuses .voy-field/.voy-date-row/.voy-pax-* as-is
   - only a couple of hotel-specific tweaks live here: the plain text/
   date inputs need to visually match .voy-field-value's weight/size
   (the flight panel's own .voy-field inputs are visually hidden combo
   triggers, so that pairing was never needed before), and the guests
   popover trigger needs its own anchor rule (mirrors #passenger-trigger
   above, different id). */
#hotel-guests-trigger{position:relative}
#voyager-hotel-search-panel .voy-field input{font-size:15px;font-weight:700;color:var(--voy-color-ink)}
#voyager-hotel-search-panel .voy-field input::placeholder{color:var(--voy-color-muted);font-weight:500}
#voyager-hotel-search-panel .platform-date-input-wrap{width:100%}
