/*
 * The customer's trips.
 *
 * Depends on flipside.css for the custom properties and flipside-cars.css for
 * the panel, status-pill and summary-line primitives.
 *
 * The operations back office used to share this file; it now runs on its own
 * layout and its own stylesheet, flipside-ops.css. Nothing here should be
 * anything but a public page's.
 */

:root {
  /* One colour per vertical, matching the back office's chart series so a
     traveller's flight icon and an operator's flight column are the same
     blue. The cars step is a touch darker than the kit's brand green, which
     does not reach 3:1 on white; the brand value is kept for the tinted icon
     chip, where it sits behind a label rather than carrying meaning alone. */
  --fl-v-flights: #009adc;
  --fl-v-hotels: #d1247c;
  --fl-v-cars: #4f9235;
  --fl-v-cars-brand: #63ab45;
}

/* ------------------------------------------------------------------ *
 * My trips
 * ------------------------------------------------------------------ */

.fl-head-row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}

.fl-trip-section > h2 {
  font-size: 20px;
  margin: 0 0 18px;
}

.fl-trip-list { display: grid; gap: 14px; }

.fl-trip {
  background: #fff;
  border: 1px solid var(--fl-border);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  grid-template-columns: 54px 1fr 190px;
  gap: 18px;
  align-items: center;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.fl-trip:hover { box-shadow: 0 12px 30px rgba(28, 35, 31, 0.08); border-color: transparent; }
@media (max-width: 767px) {
  .fl-trip { grid-template-columns: 44px 1fr; }
  .fl-trip-side { grid-column: 1 / -1; flex-direction: row !important; align-items: center; }
}

.fl-trip-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--fl-gray);
  color: var(--fl-text);
}
@media (max-width: 767px) { .fl-trip-icon { width: 44px; height: 44px; font-size: 21px; } }
.fl-trip.is-flights .fl-trip-icon { background: rgba(0, 154, 220, 0.11); color: var(--fl-v-flights); }
.fl-trip.is-hotels .fl-trip-icon { background: rgba(209, 36, 124, 0.1); color: var(--fl-v-hotels); }
.fl-trip.is-cars .fl-trip-icon { background: rgba(99, 171, 69, 0.12); color: var(--fl-v-cars-brand); }

.fl-trip-body { min-width: 0; }
.fl-trip-body h3 { font-size: 17px; margin: 4px 0 6px; line-height: 1.35; }
.fl-trip-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fl-text);
}
.fl-trip-when { font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fl-trip-when i { color: var(--fl-primary); font-size: 16px; }
.fl-trip-when .countdown {
  font-size: 12px;
  font-weight: 600;
  color: var(--fl-primary);
  background: rgba(99, 171, 69, 0.11);
  border-radius: 100px;
  padding: 3px 10px;
}

.fl-trip-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
@media (max-width: 767px) { .fl-trip-side { align-items: flex-start; } }
.fl-trip-amount {
  font-family: var(--fl-theme-heading-font-family);
  font-size: 18px;
  font-weight: 700;
  color: var(--fl-heading);
}
.fl-trip-note { font-size: 12px; color: var(--fl-text); }
/*
 * Everything the operations back office used to borrow from here now lives in
 * flipside-ops.css, which its own layout loads. Nothing below the customer's
 * trips belongs on a public page.
 */
