/* 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: owner 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 owner 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) ---- */
.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);padding:18px;width:min(680px,92vw);display:none;
}
.voy-calendar-pop[data-open="true"]{display:block}
.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 owner 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. */
.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);padding:14px;cursor:default;
}
.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 owner 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
   owner's 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 owner 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 ---- */
.voy-pax-pop{
  position:absolute;z-index:50;top:calc(100% + 8px);right:0;left: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);padding:18px;width:300px;display:none;
}
.voy-pax-pop[data-open="true"]{display:block}
.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}
