/*
 * Trip Cart — web client styling (L5).
 *
 * The demo audience is an Expedia SVP, so the look-and-feel deliberately
 * echoes a familiar large-OTA search experience: a dark-navy header, a
 * tabbed search bar, and card-based result tiles. Layout/typography/colour
 * only — NO Expedia logos, wordmarks, or other trademarked assets.
 *
 * Day 2-3 scope: the Start and Results screens. Cart / package screens
 * follow Day 4-5; the cart rail here is a visible placeholder.
 */

/*
 * Color tokens — Day 6-7 polish for the Expedia SVP demo.
 *
 * Warren's literal direction: primary CTA "suspiciously like Expedia". Their
 * 2025-era primary action is a saturated mid-blue (#1668E3-ish) against a
 * deep-navy header (#191E3B), with a warm-yellow accent (#FFC72C). We pin
 * those token values verbatim — they're industry-standard CTA-blue territory,
 * not trademarked assets. NO Expedia logos, wordmarks, or icons in the build.
 */
:root {
  --navy: #191e3b;          /* header / hero — Expedia-suspicious deep navy */
  --navy-deep: #11152c;
  --blue: #1668e3;          /* primary CTA — Expedia-suspicious action blue */
  --blue-dark: #0e54bf;
  --accent: #ffc72c;        /* warm-yellow accent — logo mark + hero highlight */
  --accent-deep: #f5a623;
  --ink: #1a1a2e;
  --muted: #5a6478;
  --line: #e3e6ed;
  --bg: #f4f5f8;
  --card: #ffffff;
  --ok: #1c7a45;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(20, 30, 60, 0.12), 0 6px 18px rgba(20, 30, 60, 0.08);
  --shadow-hover: 0 2px 6px rgba(20, 30, 60, 0.16), 0 12px 28px rgba(20, 30, 60, 0.14);
}

* { box-sizing: border-box; }

/* Several .tc-* classes set `display: flex|grid|block`, which overrides the
   implicit `display: none` from the HTML `hidden` attribute. Re-assert it
   globally so any element marked `hidden` is reliably invisible — otherwise
   empty enrich/savings/cart-rail panels leak as blank white boxes. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}

a { color: var(--blue); }

/* --- Header ------------------------------------------------------------- */

.tc-header {
  background: var(--navy);
  color: #fff;
  padding: 0;
}

.tc-header__bar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
}

.tc-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: #fff;
  text-decoration: none;
}
.tc-logo:hover { color: #fff; }
.tc-logo:visited { color: #fff; }

/* T84 wordmark — rendered inline via <img src="assets/logo/plexor-bazaar-
   wordmark-on-navy.svg">. The SVG viewBox is 360x80; rendering at 40px tall
   keeps it readable in a 14px-padded header bar without overwhelming the
   nav. The legacy `.tc-logo__mark` chip below stays defined so any leftover
   reference (or fallback when the SVG fails to load) still renders. */
.tc-logo__wordmark {
  height: 40px;
  width: auto;
  display: block;
}

/* Legacy geometric mark — superseded by .tc-logo__wordmark (T84) but kept
   defined so a fallback render or a small-screen variant has the token. */
.tc-logo__mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: inline-block;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.tc-header__spacer { flex: 1; }

.tc-header__account {
  font-size: 13px;
  color: #c7d0e4;
}

/* --- Search-tabs bar ---------------------------------------------------- */

.tc-tabs {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 0 20px;
  /* T117 mobile fix (#2871): on narrow viewports the four tabs
   * (Flights / Stays / Cars / Things to do) cannot fit on a single row at
   * 393 px and the rightmost label gets clipped by the viewport edge. Allow
   * horizontal scroll with scroll-snap so each tab snaps into place; hide
   * the scrollbar chrome so the tab strip still reads as a nav bar, not a
   * scroller. Tabs themselves get flex-shrink:0 (below) so the labels stay
   * legible instead of squeezing. */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.tc-tabs::-webkit-scrollbar { display: none; } /* Chromium / WebKit */

.tc-tab {
  appearance: none;
  background: transparent;
  border: none;
  color: #c7d0e4;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  /* T117 (#2871): keep labels intact while the tab strip scrolls horizontally
   * on phone-class viewports. */
  flex: 0 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;
}

.tc-tab:hover { color: #fff; }

.tc-tab[aria-selected="true"] {
  color: #fff;
  border-bottom-color: var(--accent);
}

.tc-tab__icon { font-size: 17px; line-height: 1; }

/* --- Search panel ------------------------------------------------------- */

.tc-searchwrap {
  background: var(--navy);
  padding: 12px 0 22px;
}

/* T114 Expedia UX-match: lift the search card so it visually straddles the
 * boundary between the navy hero and the page body — every measured OTA
 * (Expedia, Kayak, Hotels.com lockup) floats the search wizard so part of
 * the card sits over the hero gradient and part over the page background.
 * The negative margin only applies on the results screen (.tc-searchwrap
 * inside .tc-header followed by .tc-main); the landing-page wizard stays
 * inside the hero because the landing has the destination-chip row
 * directly below and a value-prop trio after that. */
.tc-header .tc-searchwrap + * { /* no-op anchor for the rule above */ }
.tc-results-lift .tc-searchwrap {
  padding-bottom: 0;
}
.tc-results-lift .tc-search {
  margin-bottom: -32px;
  position: relative;
  z-index: 2;
}
.tc-results-lift + .tc-main {
  padding-top: 56px;
}

.tc-search {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.tc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 150px;
}

.tc-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.tc-field input,
.tc-field select {
  font: inherit;
  font-size: 14px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.tc-field input:focus,
.tc-field select:focus {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
  border-color: var(--blue);
}

/* Primary CTA — "suspiciously like Expedia" (Warren's brief). Saturated
   action-blue with a subtle press-lift and a hairline focus ring so the
   button reads as the obvious next step in every screen. */
.tc-btn {
  appearance: none;
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  padding: 11px 26px;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  /* Defend against `<a class="tc-btn">` inheriting the global underline +
     visited-purple from the `a { color: ... }` rule — buttons must look
     like buttons regardless of underlying element. */
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.06s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.tc-btn:hover { background: var(--blue-dark); box-shadow: 0 2px 6px rgba(22, 104, 227, 0.32); color: #fff; }
.tc-btn:visited { color: #fff; }
.tc-btn:active { transform: translateY(1px); }
.tc-btn:focus-visible {
  outline: 3px solid rgba(22, 104, 227, 0.35);
  outline-offset: 2px;
}

.tc-btn--search { flex: 0 0 auto; }

.tc-btn--ghost {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.tc-btn--ghost:hover { background: #eef4fe; color: var(--blue); }
.tc-btn--ghost:visited { color: var(--blue); }

.tc-btn--added {
  background: #e7f3ec;
  color: var(--ok);
  border: 1px solid #b6dcc4;
  cursor: default;
}

/* --- Page layout -------------------------------------------------------- */

.tc-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

@media (max-width: 880px) {
  .tc-main { grid-template-columns: 1fr; }
  .tc-search { flex-direction: column; align-items: stretch; }
}

/* T117 mobile fix (#2870): on phone-class viewports (iPhone 13 Pro = 393 px,
 * Pixel 7 = 412 px) the desktop two-column Results grid was overflowing
 * (scrollWidth 511 > viewport 393). The 880 px breakpoint above already
 * collapses the grid to a single column, but the header bar, search wizard,
 * results title, and card rows still need tightening at phone widths so
 * nothing pushes the body wider than 100vw. Everything below is CSS-only.
 *
 * Cart rail behaviour at phone+tablet-portrait widths (#2872, follow-up to
 * T112 mobile review): Expedia, Booking, and Airbnb all use a bottom-sheet
 * pattern on mobile rather than a desktop-derived side rail. The earlier
 * triage tried to make the rail a stacked block below the cards, but
 * `.tc-cart { position: sticky }` declared after the `@media` block won
 * the cascade, so on phones the rail still sat at viewport scroll-bottom
 * with no anchor. The real fix lives in the `@media (max-width: 768px)`
 * block further down (search for `#2872`): we promote `.tc-cart` to a
 * single fixed bottom bar that collapses its hint/items/note content into
 * a one-line CTA. The existing `<a id="cart-review" href="cart.html">`
 * anchor already provides the full-screen cart navigation, so this fix
 * is CSS-only — no JS restructure, no overlay state machine.
 */
@media (max-width: 480px) {
  /* Header: tighter horizontal padding so the wordmark + account chip
   * never push the bar wider than the viewport. */
  .tc-header__bar { padding: 14px 14px 6px; }
  .tc-tabs { padding: 0 14px; }
  .tc-searchwrap { padding: 8px 0 14px; }

  /* Search wizard: full-width stacked fields. .tc-field defaults to
   * `flex: 1 1 150px` which at 393 px caused two-up rows that wrapped
   * awkwardly; force a single column. */
  .tc-search { padding: 12px; gap: 8px; margin: 0 12px; }
  .tc-field { flex: 1 1 100%; }
  .tc-btn--search { width: 100%; padding: 12px; }

  /* On the results screen the search card lifts -32 px to overlap the
   * navy band; on phones that overlap reads as floating, so trim. */
  .tc-results-lift .tc-search { margin-bottom: -16px; }
  .tc-results-lift + .tc-main { padding-top: 32px; }

  /* Main grid: tighter side padding, single column already from 880 px. */
  .tc-main { padding: 16px 12px 96px; gap: 16px; }

  /* Result cards: stack thumb on top, body in the middle, foot below — the
   * desktop horizontal card was the second overflow culprit. */
  .tc-card { flex-direction: column; }
  .tc-card__thumb { flex: 0 0 120px; }
  .tc-card__body { padding: 14px 16px; }
  .tc-card__foot {
    flex: 0 0 auto;
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  /* Cart rail bottom-bar styling lives in the @media (max-width: 768px)
   * block below (#2872). The earlier `.tc-cart { position: static }` rule
   * here was overridden by the unconditional `position: sticky` declared
   * later in the cascade and never took effect, so it was removed when
   * #2872 landed the real bottom-sheet pattern. */

  /* Results header: keep title + count on the same line but allow wrap. */
  .tc-results__head { flex-wrap: wrap; gap: 6px; }
  .tc-results__title { font-size: 19px; }
}

.tc-results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 14px;
}

.tc-results__title { font-size: 21px; margin: 0; }

.tc-results__count { font-size: 13px; color: var(--muted); }

/* --- Result cards ------------------------------------------------------- */

.tc-cards { display: flex; flex-direction: column; gap: 16px; }

.tc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tc-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }

.tc-card__thumb {
  flex: 0 0 168px;
  background: linear-gradient(135deg, #cfe0fb, #eaf1fd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

/* T79 Expedia-fidelity pass — per-type thumbnail gradients. The card thumbs
 * were a single pale-blue rectangle regardless of type; CSS-only gradients
 * keyed by type give each card a coherent visual class without taking a
 * dependency on stock photos. The Hawaii palette is deliberate:
 * turquoise/sand for stays, tropical-sky blue for flights, warm-tan for
 * cars, sunset coral for activities.
 */
.tc-card__thumb--hotel {
  background: linear-gradient(135deg, #f5e8c7, #7ac4c2 70%, #2d8c8a);
}
.tc-card__thumb--flight {
  background: linear-gradient(135deg, #e9f3ff, #7fb5f0 60%, #2069c7);
}
.tc-card__thumb--car {
  background: linear-gradient(135deg, #f7e9d0, #cf9b66 70%, #8a5827);
}
.tc-card__thumb--activity {
  background: linear-gradient(135deg, #ffe2c4, #ff9b6c 60%, #d8462b);
}


.tc-card__body {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-card__title { font-size: 16px; font-weight: 700; margin: 0; }

.tc-card__meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 7px;
  border-radius: 5px;
}

.tc-badge--gds { background: #e7f0ff; color: var(--blue-dark); }
.tc-badge--agent { background: #fdeccc; color: #946000; }
.tc-badge--seeded { background: #ebedf1; color: var(--muted); }

.tc-card__foot {
  flex: 0 0 198px;
  border-left: 1px solid var(--line);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  text-align: right;
}

.tc-price { font-size: 22px; font-weight: 800; }

.tc-price__unit { font-size: 12px; color: var(--muted); font-weight: 600; }

/* --- Trip Cart rail ----------------------------------------------------- */

.tc-cart {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  position: sticky;
  top: 20px;
  align-self: start;
}

.tc-cart__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.tc-cart__count {
  font-size: 12px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 1px 8px;
}

.tc-cart__hint { font-size: 12px; color: var(--muted); margin: 0 0 12px; }

.tc-cart__items { list-style: none; margin: 0 0 12px; padding: 0; }

.tc-cart__item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.tc-cart__item-title { color: var(--ink); }

.tc-cart__item-price { font-weight: 700; white-space: nowrap; }

.tc-cart__empty {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 18px 0;
}

.tc-cart__total {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  padding-top: 6px;
}

/* Cart/package conversion lands Day 4-5 — surfaced, not yet wired. */
.tc-cart__note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 8px;
  padding: 8px 10px;
}

/* --- Mobile cart bottom-bar (#2872) ------------------------------------- *
 * Mobile T112 review (apps/tripcart/exec/mobile-review-2026-05-24.md) found
 * the desktop-derived sticky side rail loses its anchor on phones and reads
 * as a buried block well below the cards. Expedia, Booking, and Airbnb all
 * pin a single bottom bar on mobile that summarises cart state and tap-
 * opens the full cart view. This block converts `.tc-cart` to that pattern
 * at <=768px (covers iPhone 13 Pro 393x852, Pixel 7 412x915, and tablet-
 * portrait). Pure CSS — the existing `<a id="cart-review" href="cart.html">`
 * inside `.tc-cart` already handles the "open full cart" navigation, so no
 * JS slide-up animation is wired here (filed as #2872-followup if wanted).
 *
 * Desktop (>768px) is untouched: the rail keeps its `position: sticky;
 * top: 20px;` side-rail behaviour from the base `.tc-cart` rule above.
 */
@media (max-width: 768px) {
  /* Promote the rail to a full-width fixed bar pinned to the viewport
   * bottom. Override the unconditional `position: sticky` from the base
   * `.tc-cart` rule. */
  .tc-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 50;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 12px rgba(20, 30, 60, 0.12);
    padding: 8px 12px;
    /* Single-row inline layout: cart-head pill on the left, total + CTA on
     * the right. Children (`__head`, `__total`, `__review`) are laid out
     * with flexbox here; the empty-state `__hint` and the `__note` block
     * are hidden via display:none below to keep the bar to ~56px tall.
     * `overflow: hidden` clamps any child that exceeds bar width so the
     * CTA cannot escape the viewport edge on a 393 px screen. */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    overflow: hidden;
  }

  /* Hide the verbose elements that only make sense in the desktop side
   * rail. The empty-state hint and the long explanatory note do not fit
   * a 56px bar; the per-item list collapses into the count pill + total. */
  .tc-cart__hint,
  .tc-cart__items,
  .tc-cart__note {
    display: none;
  }

  /* Cart head ("[icon] Your cart [N]") sits on the left and stays visible
   * in empty state so the bar always reads as "Your cart 0". Allow it to
   * shrink so the dollar + CTA always have room on a 393 px viewport. */
  .tc-cart__head {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Total row (hidden when cart is empty via the existing `hidden`
   * attribute) sits inline between head and CTA. When visible, it
   * collapses its label + value into a tight $-only chip — the
   * "A la carte total" label is implicit on a phone bottom bar. */
  .tc-cart__total {
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
    font-size: 15px;
    font-weight: 800;
    gap: 4px;
    min-width: 0;
  }
  .tc-cart__total > span:first-child {
    /* "A la carte total" label — drop on phones, keep just the dollar
     * figure so the bar can fit the CTA in 393 px. */
    display: none;
  }

  /* Review-cart CTA: compact pill on the right. When the cart is empty
   * the anchor is `hidden` (the global `[hidden]{display:none}` rule
   * still applies) so the bar shows only "Your cart 0". The `.tc-cart`
   * compound selector bumps specificity above the base `.tc-cart__review`
   * rule (declared later in source under "Cart screen (Day 4-5)") so the
   * `display: block; width: 100%` desktop styling does not pull the CTA
   * to full-bar width on phones. */
  .tc-cart .tc-cart__review {
    display: inline-block;
    width: auto;
    margin: 0;
    flex: 0 0 auto;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }

  /* Push the page bottom-padding so the last result card never sits
   * underneath the fixed bar. 96px = ~56px bar + 40px breathing room. */
  .tc-main { padding-bottom: 96px; }
}

/* --- States ------------------------------------------------------------- */

.tc-state {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.tc-state--error {
  border-color: #e6b8b8;
  background: #fdf2f2;
  color: #9a3434;
}

/* --- Cart screen (Day 4-5) --------------------------------------------- */

/* Slightly wider summary rail on the cart screen than on Results. */
.tc-main--cart { grid-template-columns: 1fr 360px; }
@media (max-width: 880px) {
  .tc-main--cart { grid-template-columns: 1fr; }
}

.tc-cartpage { display: flex; flex-direction: column; gap: 16px; }

/* Per-card action row inside the card foot (Swap + Remove). */
.tc-card--cart .tc-card__foot { gap: 12px; }
.tc-card__actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  justify-content: flex-end;
}

.tc-btn--small {
  padding: 7px 12px;
  font-size: 13px;
}

.tc-btn--danger {
  color: #9a3434;
  border-color: #e6b8b8;
}
.tc-btn--danger:hover { background: #fdf2f2; }

.tc-cart__review {
  display: block;
  width: 100%;
  margin: 4px 0 12px;
  text-align: center;
  text-decoration: none;
}

/* Summary rail — the single opaque package price + savings. */
.tc-summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  position: sticky;
  top: 20px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-summary__head {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin: 0;
}

.tc-summary__price {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
  margin: 2px 0;
}

.tc-summary__strike {
  font-size: 13px;
  color: var(--muted);
}
.tc-summary__strike span { text-decoration: line-through; }

.tc-summary__save {
  display: inline-block;
  background: #e7f3ec;
  color: var(--ok);
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 8px;
  margin-top: 2px;
  align-self: flex-start;
}

.tc-summary__quotemeta {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 4px;
  min-height: 14px;
  transition: color 0.6s ease;
}
.tc-summary__quotemeta--pulse {
  color: var(--ok);
  font-weight: 700;
}

/* Enrich block on the cart screen. */
.tc-enrich {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tc-enrich__name { font-size: 18px; margin: 0; }
.tc-enrich__narrative {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.tc-enrich__upsell {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.tc-enrich__verdict {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
}
.tc-enrich__verdict--flagged {
  background: #fff5e0;
  color: #946000;
  border: 1px solid #f0d68a;
}

/* Swap dialog (native <dialog>). */
.tc-swap {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(520px, 96vw);
  box-shadow: var(--shadow-hover);
}
.tc-swap::backdrop { background: rgba(20, 30, 60, 0.45); }
.tc-swap__head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tc-swap__head h3 { margin: 0; font-size: 17px; }
.tc-swap__current { font-size: 13px; color: var(--muted); margin: 0; }
.tc-swap__head button { align-self: flex-end; }
.tc-swap__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 60vh;
  overflow-y: auto;
}
.tc-swap__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.tc-swap__row:last-child { border-bottom: none; }

/* --- Package screen (Day 4-5) ------------------------------------------ */

.tc-package {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.tc-package__hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.tc-package__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin: 0 0 6px;
  font-weight: 700;
}
.tc-package__name {
  font-size: 34px;
  margin: 0 0 18px;
  letter-spacing: -0.6px;
}
.tc-package__price-label {
  font-size: 13px;
  color: #c7d0e4;
  margin: 0;
}
.tc-package__price {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  margin: 6px 0 12px;
}
.tc-package__save {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
  justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 199, 44, 0.32);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 15px;
}
.tc-package__strike { color: #c7d0e4; }
.tc-package__save-amt { color: var(--accent); font-weight: 700; }
.tc-package__save-amt strong { color: #fff; font-size: 16px; }
.tc-package__hint {
  margin: 18px 0 0;
  font-size: 12px;
  color: #c7d0e4;
}

.tc-package__narrative,
.tc-package__included {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.tc-package__narrative h2,
.tc-package__included h2 {
  margin: 0 0 10px;
  font-size: 16px;
}
.tc-package__narrative p { margin: 0; font-size: 15px; line-height: 1.55; }

/* Opaque card variant: no price column. F4 invariant. */
.tc-card--opaque .tc-card__foot { display: none; }
.tc-card--opaque .tc-card__thumb { flex: 0 0 120px; font-size: 38px; }
.tc-card--opaque .tc-card__body { padding: 14px 16px; }

.tc-package__cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.tc-package__cta .tc-btn { padding: 12px 28px; }

.tc-package__boundary {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* --- Savings overlay (Task #12) ----------------------------------------
 * Floating chip in the lower-right of the viewport, deliberately small so
 * it never competes with the package price headline. Hidden when the
 * session has no Plexor-routed calls (ratio defaults to 1.0). The accent
 * ring + warm-yellow eyebrow tie back to the inference-cost narrative
 * (SPEC §6.6 / token-economics §5.1) without imitating the package hero.
 */
.tc-savings-overlay {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 340px;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  border: 1px solid rgba(255, 199, 44, 0.32);
  border-radius: var(--radius);
  padding: 14px 38px 14px 16px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: var(--shadow-hover);
  z-index: 50;
}
.tc-savings-overlay__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 0;
  color: #c7d0e4;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.tc-savings-overlay__close:hover { color: #fff; }
.tc-savings-overlay__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.tc-savings-overlay__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  font-weight: 700;
}
.tc-savings-overlay__headline {
  margin: 0;
  font-size: 13px;
  color: #fff;
}
.tc-savings-overlay__headline strong {
  font-size: 18px;
  color: var(--accent);
  font-weight: 800;
}
.tc-savings-overlay__baseline { color: #c7d0e4; }
.tc-savings-overlay__detail {
  margin: 6px 0 0;
  font-size: 11px;
  color: #c7d0e4;
}

/* --- Negotiation view (Day 12 D1 — CEO-critical demo screen) ----------
 *
 * Beat 5 of the SVP run-of-show (SPEC §3.1, §8.1). The only beat the SVP has
 * not seen before. Cards breathe, animations are deliberate. Tokens echo the
 * package hero (navy gradient + amber accent) so the screen feels like the
 * intellectual close of the deck, not an admin view.
 */

.tc-nego {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tc-nego__hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px 26px;
  box-shadow: var(--shadow);
}

.tc-nego__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  font-weight: 700;
}

.tc-nego__title {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.4px;
}

.tc-nego__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 15px;
  color: #c7d0e4;
}

.tc-nego__status--closed { color: var(--accent); font-weight: 700; }
.tc-nego__status--failed { color: #ffb3b3; }

.tc-nego__spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--accent);
  animation: tc-nego-spin 0.85s linear infinite;
  display: inline-block;
}

@keyframes tc-nego-spin {
  to { transform: rotate(360deg); }
}

.tc-nego__demo-boundary {
  margin: 8px 0 0;
  font-size: 12px;
  color: #c7d0e4;
}

/* Two-column split. */
.tc-nego__split {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 980px) {
  .tc-nego__split { grid-template-columns: 1fr; }
}

.tc-nego__left,
.tc-nego__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Generic card — used for roster, reasoning, task ledger, timeline. */
.tc-nego-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.tc-nego-card__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.1px;
}

.tc-nego-card__hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Supplier roster. */
.tc-nego-roster {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tc-nego-roster__row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.tc-nego-roster__row:first-child { border-top: none; }

.tc-nego-roster__glyph { font-size: 18px; line-height: 1; }
.tc-nego-roster__name { color: var(--ink); }

.tc-nego-roster__state {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ebedf1;
  color: var(--muted);
}

.tc-nego-roster__state--active {
  background: #fdeccc;
  color: #946000;
}

.tc-nego-roster__state--closed {
  background: #e7f3ec;
  color: var(--ok);
}

.tc-nego-roster__state--failed {
  background: #fdf2f2;
  color: #9a3434;
}

/* Agent reasoning ledger. */
.tc-nego-reasoning {
  list-style: decimal;
  padding-left: 18px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.tc-nego-reasoning__row { padding: 4px 0; }

.tc-nego-reasoning__row--placeholder {
  color: var(--muted);
  list-style: none;
  padding-left: 0;
  margin-left: -18px;
}

/* AI task ledger. */
.tc-nego-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tc-nego-tasks__row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fafbfd;
  font-size: 12px;
  line-height: 1.45;
}

.tc-nego-tasks__row--placeholder {
  background: none;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.tc-nego-tasks__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tc-nego-tasks__type {
  font-weight: 700;
  color: var(--ink);
  text-transform: lowercase;
  font-size: 12px;
}

.tc-nego-tasks__tier {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #ebedf1;
  color: var(--muted);
}
.tc-nego-tasks__tier--low { background: #e7f3ec; color: var(--ok); }
.tc-nego-tasks__tier--moderate { background: #e7f0ff; color: var(--blue-dark); }
.tc-nego-tasks__tier--higher { background: #fdeccc; color: #946000; }

/*
 * Supervisor verdict pill (BUG #2823 / BD-WORKFLOW).
 *
 * Four distinct visual states so the BD analyst can SEE rubber-stamp vs
 * real review at a glance, instead of reading "qualityVerdict: pass" on
 * everything and being unable to tell. Hovering shows the reasons list as
 * the browser-native tooltip (title attribute, joined with newlines).
 */
.tc-nego-tasks__supervisor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: help; /* signal that hover reveals reasons */
}

.tc-nego-tasks__supervisor-mark {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.tc-nego-tasks__supervisor-label {
  font-size: 10px;
}

.tc-nego-tasks__supervisor--absent {
  background: #f0f0f3;
  color: var(--muted);
}

.tc-nego-tasks__supervisor--rubberstamp {
  /* Yellowish — pass but no positive checks; analyst must spot it. */
  background: #fff5d6;
  color: #946000;
}

.tc-nego-tasks__supervisor--passed {
  background: #e7f3ec;
  color: var(--ok);
}

.tc-nego-tasks__supervisor--rejected {
  background: #fde2e2;
  color: #9b1e1e;
}

.tc-nego-tasks__model {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: var(--ink);
  margin-bottom: 4px;
}

.tc-nego-tasks__cost {
  color: var(--muted);
  font-size: 11.5px;
}

.tc-nego-tasks__cost strong { color: var(--ink); font-weight: 700; }

.tc-nego-tasks__cost-baseline {
  margin-left: 6px;
  color: var(--muted);
}

/* Timeline (right column). */
.tc-nego-card--timeline { padding: 20px 22px; }

.tc-nego-timeline__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.tc-nego-timeline__counter {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.tc-nego-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tc-nego-timeline__row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 30, 60, 0.05);
}

.tc-nego-timeline__row--placeholder {
  border-style: dashed;
  background: #fafbfd;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.tc-nego-timeline__row--agent {
  background: linear-gradient(180deg, #fff, #f4f8ff);
  border-color: #d6e4fb;
}

.tc-nego-timeline__row--accept {
  background: linear-gradient(180deg, #fff, #f0faf3);
  border-color: #b6dcc4;
  border-width: 2px;
}

.tc-nego-row__head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
}

.tc-nego-row__round {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.tc-nego-row__badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 5px;
  background: #ebedf1;
  color: var(--muted);
}

.tc-nego-row__badge--supplier { background: #fdeccc; color: #946000; }
.tc-nego-row__badge--agent { background: #e7f0ff; color: var(--blue-dark); }
.tc-nego-row__badge--accept { background: #c9eed5; color: var(--ok); }
.tc-nego-row__badge--reject { background: #fdf2f2; color: #9a3434; }

.tc-nego-row__rate {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-align: right;
  color: var(--ink);
}

.tc-nego-row__note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.tc-nego-row__routing {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  align-items: center;
}

.tc-nego-row__model {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f0f3f8;
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--ink);
}

.tc-nego-row__tier {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ebedf1;
  color: var(--muted);
}

.tc-nego-row__compression {
  color: var(--muted);
  font-size: 11px;
}

/* Reveal animation — rows fade + slide as the negotiation lands. */
.tc-nego-row--reveal {
  animation: tc-nego-reveal 0.38s ease-out both;
}

@keyframes tc-nego-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Close panel — the demo's lean-in moment. */
.tc-nego-close {
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 199, 44, 0.32);
}

.tc-nego-close__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  font-weight: 700;
}

.tc-nego-close__headline {
  margin: 0 0 4px;
  font-size: 22px;
}

.tc-nego-close__headline strong {
  font-size: 30px;
  color: var(--accent);
  letter-spacing: -0.4px;
  font-weight: 800;
  margin: 0 4px;
}

.tc-nego-close__pct {
  font-size: 14px;
  color: #c7d0e4;
}

.tc-nego-close__via {
  margin: 4px 0 0;
  font-size: 14px;
  color: #c7d0e4;
}

.tc-nego-close__via strong { color: #fff; }

.tc-nego-close__list {
  margin: 8px 0 0;
  font-size: 12px;
  color: #c7d0e4;
}

/* Routing pill — the Plexor cost case. */
.tc-nego-routing {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.tc-nego-routing__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--blue-dark);
}

.tc-nego-routing__headline {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
}

.tc-nego-routing__headline strong {
  color: var(--blue-dark);
  font-weight: 800;
}

.tc-nego-routing__ratio {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.tc-nego-routing__ratio strong {
  color: var(--ok);
  font-size: 16px;
  font-weight: 800;
}

/* Unreachable / failed honest panel. */
.tc-nego-unreachable {
  background: #fff5e0;
  border: 1px solid #f0d68a;
  border-radius: var(--radius);
  padding: 18px 20px;
}

.tc-nego-unreachable__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: #946000;
}

.tc-nego-unreachable__headline {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

.tc-nego-unreachable__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.tc-nego__cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Cached transcript badge — Day 14 D6b demo-day resilience.
 * Mounted dynamically by negotiation.js when the live /negotiate path is
 * degraded (5xx / 15s timeout / poll deadline) and the static cached seed=0
 * transcript renders in its place. Visual style is intentionally small and
 * calm — matches the dev-nav indicator strip on index.html (12px muted body
 * text, no chrome, no exclamation) so the SVP is not alarmed mid-demo but
 * the screen never silently misrepresents a cached run as a live one
 * (CLAUDE.md NO-SIMULATION). */
.tc-nego-cached-badge {
  margin: 10px 0 0;
  padding: 6px 10px;
  font-size: 12px;
  color: #c7d0e4;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 0.1px;
}

/* T79 — per-type card detail (stars, guest rating, chips, flight-time row).
 * Surfaces fields the seed JSON has always carried (starRating, guestRating,
 * city, amenities, carrier+cabin, outboundDepart/Arrive, vendor/class,
 * operator/location) that the old card never rendered. Aesthetic note (my
 * call, labeled per the honesty bar): the stars are textContent "★" repeat
 * rather than an SVG widget — cheap to render, ties cleanly to --accent.
 */
.tc-card__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}
.tc-stars {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--accent-deep);
  line-height: 1;
}
.tc-card__city {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.tc-card__rating {
  font-size: 13px;
  color: var(--ink);
}
.tc-card__rating strong {
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  margin-right: 6px;
}
.tc-card__sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.tc-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.tc-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  background: #eef1f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  letter-spacing: 0.2px;
}
.tc-chip--accent {
  background: #fff4d6;
  border-color: #f0d68a;
  color: #946000;
}
.tc-chip--urgent {
  background: #fdeaea;
  border-color: #e6b8b8;
  color: #9a3434;
}
/* Flight time strip — "8:05 AM SEA → 11:40 AM OGG" + duration · stops. */
.tc-flight-times {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  font-size: 14px;
}
.tc-flight-times__row {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
}
.tc-flight-times__row strong {
  font-weight: 700;
  font-size: 15px;
}
.tc-flight-times__code {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.tc-flight-times__arrow {
  color: var(--muted);
  margin: 0 4px;
}
.tc-flight-times__meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* T114 Expedia UX-match: value-prop trio under the landing hero.
 *
 * Measured baseline (apps/tripcart/demo/reports/expedia-ux-match-
 * 20260524T162500Z/plexor-before/01-landing.png): below the navy hero the
 * landing was a 1920x~600 empty grey void. Every measured OTA — including
 * Expedia's own App Store listing copy ("Save 10% or more on over 100,000
 * hotels worldwide", "Free cancellation on most hotels", "All your
 * reservations in one place") — leads the below-the-fold space with a
 * value-prop trio. The Plexor versions below are grounded in the SPEC's
 * core promises (haggled pricing, one opaque package, swap-able components),
 * not in any specific Expedia copy we could not measure.
 *
 * Three identically-shaped cards, no images, no logos. Layout-only.
 */
.tc-valueprops {
  max-width: 1120px;
  margin: 36px auto 8px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tc-valueprops__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tc-valueprops__icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 6px;
}
.tc-valueprops__title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.1px;
}
.tc-valueprops__body {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 880px) {
  .tc-valueprops { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
}

/* T79 — Hawaii hero glow + region label for the landing index. The hero
 * is currently solid navy; a subtle radial gradient + a Hawaii region eyebrow
 * gives the SVP a destination cue without changing the layout. CSS-only. */
.tc-hero--hawaii {
  background:
    radial-gradient(circle at 18% 80%, rgba(255, 199, 44, 0.18), transparent 55%),
    radial-gradient(circle at 92% 18%, rgba(125, 196, 194, 0.22), transparent 60%),
    var(--navy);
}
.tc-region-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}
.tc-region-eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 199, 44, 0.18);
}
.tc-destinations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1120px;
  margin: 6px auto 0;
  padding: 4px 20px 14px;
}
.tc-dest-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.tc-dest-chip--active {
  background: var(--accent);
  color: var(--navy-deep);
  border-color: var(--accent);
}
.tc-dest-chip__glyph {
  font-size: 16px;
  line-height: 1;
}
.tc-dest-chip__code {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  opacity: 0.78;
}

/* --- "Talk to a human" footer affordance (BUG #2854 / CS-OPS) -----------
 *
 * CS lead persona (Task #108) flagged the missing 1-click in-product
 * escalation as the #1 source of projected week-1 ticket volume: without
 * an in-band human off-ramp the failure mode "bot misunderstood me" has no
 * fix and travelers go to Twitter / chargeback / BBB at ~10x the cost of
 * a CS ticket. This footer + dialog is the in-band escalation.
 *
 * Styling: minimal — small text, muted colour, sits below the main flow so
 * it never competes with the primary CTA. The dialog reuses the .tc-swap
 * dialog scaffold (same border-radius, same backdrop) so the visual
 * language stays consistent.
 */
.tc-footer {
  max-width: 1120px;
  margin: 24px auto 0;
  padding: 18px 20px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.tc-footer__help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tc-footer__help-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.tc-footer__help-link {
  appearance: none;
  background: transparent;
  border: none;
  padding: 4px 6px;
  font: inherit;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tc-footer__help-link:hover { color: var(--blue-dark); }
.tc-footer__legal { font-size: 12px; opacity: 0.85; }

/* Contact dialog — reuses .tc-swap scaffold sizing. */
.tc-help-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(480px, 96vw);
  box-shadow: var(--shadow-hover);
}
.tc-help-dialog::backdrop { background: rgba(20, 30, 60, 0.45); }
.tc-help-dialog__head {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tc-help-dialog__title { margin: 0; font-size: 18px; color: var(--ink); }
.tc-help-dialog__sub { margin: 0; font-size: 13px; color: var(--muted); }
.tc-help-dialog__body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tc-help-dialog__field { display: flex; flex-direction: column; gap: 4px; }
.tc-help-dialog__field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.2px;
  text-transform: uppercase;
}
.tc-help-dialog__field textarea,
.tc-help-dialog__field input {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.tc-help-dialog__field textarea { min-height: 96px; }
.tc-help-dialog__sla {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  background: #f4f7fc;
  border-radius: 8px;
  padding: 8px 10px;
}
.tc-help-dialog__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 20px 18px;
}

/* --- BUG #2904: Live Haggle button + closed-state + evidence packet ----- */

/* Results-card actions column: stack Add-to-cart and Live Haggle vertically so
   both CTAs read as peer actions on the card. The price column on the left
   stays the visual anchor; the actions column on the right is the call to
   action. Keeps the foot row balanced at desktop widths and gracefully wraps
   on phone viewports (.tc-card flex-direction: column kicks in at <= 880px). */
.tc-card__actions--results {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-top: 0;
}

.tc-card__actions--results .tc-btn {
  min-width: 120px;
}

/* Live Haggle ghost variant — same blue-on-white as the standard ghost button,
   but with a subtle accent border so it reads as the "Plexor differentiator"
   action without out-shouting the primary Add-to-cart CTA above it. */
.tc-btn--haggle {
  letter-spacing: 0.01em;
}

/* In-flight inline spinner inside the Live Haggle button. Reuses the
   tc-nego-spin keyframes (defined for the negotiation view) so we don't
   ship a second animation declaration. */
.tc-haggle__spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tc-nego-spin 0.85s linear infinite;
}

/* Negotiated-price swap: the new price stays the loud number, the old price
   sits next to it with a strikethrough so the audience can SEE the delta at
   a glance. Inline so both fit in the card's existing price column. */
.tc-price--negotiated {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.tc-price__new {
  color: var(--ok, #1c7a3a);
  font-weight: 800;
}
.tc-price__old {
  color: var(--muted, #6b7280);
  font-size: 14px;
  font-weight: 600;
  text-decoration: line-through;
}

/* Honest-failure error band inside a card, used when /negotiate returns a 4xx
   (offer_not_found, unsupported_component_type, validation error). Same
   visual register as .tc-state--error so the error pattern is consistent
   across the app, but inline inside the card body. */
.tc-card__error {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fdf2f2;
  border: 1px solid #e6b8b8;
  color: #9a3434;
  font-size: 13px;
  line-height: 1.35;
}

/* Evidence packet panel: the 5-link signed sha256 chain appended under a
   card whose haggle closed AGREED. Compact — the audience sees that it is
   real and signed, but it does not crowd the card's primary content. */
.tc-evidence-packet {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #f7faff;
  border: 1px solid #d6e4ff;
  border-radius: 8px;
}
.tc-evidence-packet__head {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-dark, #0b3a8a);
}
.tc-evidence-packet__chain {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--muted, #6b7280);
}
.tc-evidence-packet__chain li {
  margin: 2px 0;
}
.tc-evidence-packet__chain a {
  color: var(--blue, #1668e3);
  text-decoration: underline;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.tc-evidence-packet__chain a[aria-disabled="true"] {
  pointer-events: none;
  color: var(--muted, #6b7280);
  text-decoration: none;
}

/* Card-foot layout: ensure the price column doesn't get squeezed by the new
   actions stack on narrow widths. The default .tc-card__foot is already a
   flex row (declared earlier in the file); we just add a sensible gap and
   flex sizing for the new tc-card__price wrapper. */
.tc-card__price {
  flex: 1 1 auto;
  min-width: 0;
}
