/* VOYAGER_RESULTS_CSS_V1 - new result-card architecture: no table, a
   route block + carrier/baggage chips + price/select, two-column layout
   on desktop (list + sticky selection summary rail), stacked cards +
   bottom sticky summary bar on mobile. */
.voy-results-page{padding:28px 0 64px}
.voy-results-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.voy-results-route{font-family:var(--voy-font-display);font-size:22px}
.voy-results-back{
  display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--voy-color-ink-soft);
  padding:8px 14px;border-radius:var(--voy-radius-pill);border:1px solid var(--voy-color-border);background:var(--voy-color-surface);
}
.voy-results-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.voy-results-legs{display:flex;flex-direction:column;gap:28px;min-width:0}
/* SKYEXPRESS_RESULTS_HEADER_V1: replaces the removed per-date tile grid
   (.voy-date-strip/.voy-date-option, a live production bug - a wall of
   date boxes above each leg) with a single bold section header carrying
   the real route, plus an explicit divider so each leg group reads as a
   clearly separated section. */
.voy-leg-group h2{font-size:18px;font-weight:800;color:var(--voy-color-ink);
  font-family:var(--voy-font-display);margin:0 0 14px;padding-bottom:12px;
  border-bottom:2px solid var(--voy-color-border-strong)}
.voy-flight-list{display:flex;flex-direction:column;gap:10px}

.voy-flight-card{
  display:block;width:100%;text-align:left;background:var(--voy-color-surface);border:1px solid var(--voy-color-border);
  border-radius:var(--voy-radius-lg);padding:20px;cursor:pointer;
}
.voy-flight-card:hover{border-color:var(--voy-color-border-strong)}
/* SKYEXPRESS_UX_V1 (item F), narrowed by owner correction #4/#5: a
   clearly GREEN selected state, but from the border + soft glow only -
   the card background stays normal white/surface, and there is no
   separate round selector control any more (the whole card is the
   control; see search_results.html). */
.voy-flight-card[data-selected="true"]{
  border-color:var(--voy-color-success);border-width:2px;
  background:var(--voy-color-surface);
  box-shadow:0 0 0 3px rgba(14,122,74,.16),0 4px 16px rgba(14,122,74,.18);
}
.voy-flight-card.voy-flight-locked{opacity:.55;cursor:not-allowed;pointer-events:none}
/* VOYAGER_POLISH_V1: when a leg only has one bookable option, the single
   card in a wide `1fr` column read as sparse/lost - a max-width keeps it
   from stretching edge-to-edge while still filling naturally when there
   are several. */
.voy-flight-list{max-width:640px}
.voy-flight-card input{position:absolute;opacity:0;pointer-events:none}
.voy-flight-row{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}
.voy-flight-carrier{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--voy-color-muted);margin-bottom:8px}
.voy-flight-route{display:flex;align-items:center;gap:14px}
.voy-flight-time{font-size:20px;font-weight:800;color:var(--voy-color-ink)}
.voy-flight-airport{font-size:11px;color:var(--voy-color-muted)}
.voy-flight-path{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:60px}
.voy-flight-path-line{width:100%;height:1px;background:var(--voy-color-border-strong);position:relative}
.voy-flight-path-line::after{content:"";position:absolute;right:0;top:-3px;width:7px;height:7px;border-radius:50%;background:var(--voy-color-primary)}
.voy-flight-duration{font-size:11px;color:var(--voy-color-muted)}
.voy-flight-baggage{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.voy-baggage-chip{
  font-size:11px;font-weight:600;color:var(--voy-color-ink-soft);background:var(--voy-color-surface-alt);
  border:1px solid var(--voy-color-border);border-radius:var(--voy-radius-pill);padding:4px 10px;
}
.voy-flight-price{text-align:right}
.voy-flight-price strong{font-size:22px;font-weight:800;color:var(--voy-color-primary-dark);display:block}
.voy-flight-price span{font-size:11px;color:var(--voy-color-muted)}
.voy-flight-sold-out{opacity:.45;cursor:not-allowed;pointer-events:none}

/* ---- baggage picker (item D) - expands directly under the selected
   flight card, one instance at a time per leg ---- */
/* SKYEXPRESS_UX_V1 owner corrections #6/#7/#8/#9: nothing is preselected
   any more (results-widget.js starts state.*BagId empty), and once the
   customer explicitly picks a package the choice grid collapses into a
   compact summary bar (the real allowance text, never just the package
   name) with a small centered arrow that reopens it. results-widget.js
   keeps the same panel DOM node across that transition so max-height/
   opacity can actually animate instead of popping. */
.voy-baggage-panel{
  margin:-2px 0 10px;border:2px solid var(--voy-color-success);border-top:0;
  border-radius:0 0 var(--voy-radius-lg) var(--voy-radius-lg);background:var(--voy-color-surface);
  overflow:hidden;
}
.voy-baggage-summary{
  display:block;width:100%;border:0;background:var(--voy-color-success-tint);cursor:pointer;text-align:left;
  font:inherit;padding:12px 16px;
}
/* same [hidden] override as .voy-leg-lock-message above - an author
   "display:block" always beats the UA [hidden]{display:none} rule, so
   without this the empty bar rendered even before any package was
   picked (invisible in a quick glance only because its text spans were
   still empty at that point, but real - offsetHeight > 0, confirmed
   live). */
.voy-baggage-summary[hidden]{display:none}
.voy-baggage-summary-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.voy-baggage-summary-text{font-size:13px;font-weight:600;color:var(--voy-color-ink)}
.voy-baggage-summary-price{font-size:13px;font-weight:700;color:var(--voy-color-primary-dark);flex-shrink:0}
.voy-baggage-summary-arrow{display:flex;justify-content:center;margin-top:4px;color:var(--voy-color-ink-soft);transition:transform .2s ease}
.voy-baggage-summary-arrow svg{display:block}
.voy-baggage-summary[data-open="true"] .voy-baggage-summary-arrow{transform:rotate(180deg)}
.voy-baggage-collapsible{max-height:0;opacity:0;overflow:hidden;transition:max-height .25s ease,opacity .2s ease;padding:0 16px}
.voy-baggage-panel-title{font-size:12px;font-weight:700;color:var(--voy-color-ink-soft);margin:14px 0 10px}
.voy-baggage-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding-bottom:16px}
.voy-baggage-option{
  display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border-radius:var(--voy-radius-md);
  border:1px solid var(--voy-color-border);background:var(--voy-color-surface);cursor:pointer;text-align:left;
}
.voy-baggage-option:hover{border-color:var(--voy-color-border-strong)}
.voy-baggage-option[data-selected="true"]{border-color:var(--voy-color-primary);box-shadow:0 0 0 2px var(--voy-color-primary-tint)}
.voy-baggage-option-dot{
  width:16px;height:16px;border-radius:50%;border:2px solid var(--voy-color-border-strong);flex-shrink:0;margin-top:2px;
}
.voy-baggage-option[data-selected="true"] .voy-baggage-option-dot{
  border-color:var(--voy-color-primary);background:var(--voy-color-primary);
  box-shadow:inset 0 0 0 3px var(--voy-color-surface);
}
.voy-baggage-option-name{font-size:13px;font-weight:700;color:var(--voy-color-ink)}
.voy-baggage-option-summary{font-size:12px;color:var(--voy-color-muted);margin-top:2px}
.voy-baggage-option-price{font-size:12px;font-weight:700;color:var(--voy-color-primary-dark);margin-top:4px}

.voy-leg-lock-message{
  display:flex;align-items:center;gap:8px;padding:12px 16px;margin-bottom:10px;font-size:13px;
  color:var(--voy-color-ink-soft);background:var(--voy-color-surface-alt);border:1px dashed var(--voy-color-border-strong);
  border-radius:var(--voy-radius-md);
}
/* live-verification bug fix: an author "display:flex" rule always beats
   the UA [hidden]{display:none} rule regardless of specificity (origin
   wins before specificity is even compared) - so results-widget.js
   toggling .hidden on this element never actually hid it once the
   return leg unlocked. This explicit [hidden] override is what makes
   the JS toggle work. */
.voy-leg-lock-message[hidden]{display:none}

.voy-empty-results{
  text-align:center;padding:56px 24px;border:1px dashed var(--voy-color-border-strong);border-radius:var(--voy-radius-lg);
}
.voy-empty-results h2{font-size:18px;margin-bottom:8px}
.voy-empty-results p{color:var(--voy-color-muted);font-size:14px}

/* selection summary rail (desktop) / sticky bar (mobile) */
/* VOYAGER_POLISH_V1: a top accent bar in the same primary color the
   selected flight card's border/ring uses ties the rail visually back to
   "the card you just picked", instead of reading as an unrelated box that
   happens to sit beside the list. */
.voy-summary-rail{
  position:sticky;top:calc(var(--voy-header-h) + 16px);background:var(--voy-color-surface);
  border:1px solid var(--voy-color-border);border-top:3px solid var(--voy-color-primary);
  border-radius:var(--voy-radius-lg);padding:20px;box-shadow:var(--voy-shadow-sm);
}
.voy-summary-rail h3{font-size:14px;font-family:var(--voy-font-body);font-weight:700;margin-bottom:12px}
.voy-summary-leg{font-size:13px;padding:8px 0;border-bottom:1px solid var(--voy-color-border)}
.voy-summary-leg[data-empty="true"]{color:var(--voy-color-muted)}
.voy-summary-leg-route{display:flex;justify-content:space-between;color:var(--voy-color-ink);font-weight:600}
.voy-summary-leg-baggage{display:flex;justify-content:space-between;font-size:12px;color:var(--voy-color-ink-soft);margin-top:4px}
.voy-summary-leg-baggage strong{color:var(--voy-color-ink)}
.voy-summary-total{display:flex;justify-content:space-between;align-items:baseline;margin:14px 0}
.voy-summary-total strong{font-size:24px;color:var(--voy-color-primary-dark)}
.voy-summary-breakdown-row{display:flex;justify-content:space-between;font-size:13px;color:var(--voy-color-ink-soft);padding:4px 0}

@media (max-width:980px){
  .voy-results-layout{grid-template-columns:1fr}
  /* The summary rail becomes a fixed bottom sheet on mobile - its real
     height varies (1 vs 2 legs), so the page needs enough bottom padding
     that the LAST flight card's price/select-indicator is never hidden
     underneath it. Bounded via max-height + its own internal scroll
     instead of trusting a fixed padding number to always be enough. */
  .voy-results-page{padding-bottom:240px}
  .voy-summary-rail{
    position:fixed;left:0;right:0;bottom:0;top:auto;border-radius:var(--voy-radius-lg) var(--voy-radius-lg) 0 0;z-index:45;
    box-shadow:0 -8px 24px rgba(22,35,31,.14);max-height:70vh;overflow-y:auto;
  }
}
@media (max-width:640px){
  .voy-flight-row{grid-template-columns:1fr;gap:10px}
  .voy-flight-price{text-align:left;display:flex;align-items:center;justify-content:space-between}
}
