/* ===== My Trips — the page a customer opens at an airport =====
   Built on the site's own tokens (styles.css), so nothing here invents a colour or a radius.
   One card per booking: status first (it is the question being asked), then the locator and the
   ticket numbers, then the flight itself. */

.trips-body { background: var(--bg); color: var(--ink); font-family: Cairo, system-ui, sans-serif; }

/* No bar of its own: this page wears the site's header (`site-header.js`) and the site's footer,
   like every other secondary page. */
.tpwrap { max-width: 880px; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; width: 100%; }
.tp__h1 { font-size: 1.5rem; font-weight: 800; margin: .5rem 0 1.1rem; }
.tp__load { padding: 3rem 0; text-align: center; }
.tp__load .spinner { border-color: #d9dde3; border-top-color: var(--orange); width: 26px; height: 26px; }

.tpempty { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; }
.tpempty p { color: var(--muted); margin: .6rem 0 1.2rem; }

.tpcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem; margin-bottom: 1rem; }
.tpcard__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .9rem; }

/* The status is the first thing the page says, and it is one of exactly four sentences. */
.tpchip { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .86rem;
  padding: .35rem .7rem; border-radius: 999px; border: 1px solid transparent; }
.tpchip--ticketed { background: #e8f7ee; color: #16794a; border-color: #bfe6cf; }
.tpchip--confirmed { background: #e8f3fd; color: #175d9c; border-color: #c4ddf5; }
.tpchip--processing { background: #fff5e6; color: #9a5b00; border-color: #f6dcb4; }
.tpchip--attention { background: #fdeceb; color: #a32d24; border-color: #f5c9c5; }
/* The money is its own fact and it is settled: quieter than the booking status next to it, never
   competing with it, and never standing in for it (§J). */
.tpchip--paid { background: #f4f6f9; color: #4b5565; border-color: #e2e6ec; font-weight: 600; }
.tpchips { display: inline-flex; gap: .4rem; flex-wrap: wrap; align-items: center; }

.tpref { font-size: .85rem; color: var(--muted); }
.tpref b { color: var(--ink); font-weight: 700; letter-spacing: .04em; }

.tproute { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.tproute:first-of-type { border-top: 0; }
.tproute__air { width: 40px; height: 40px; border-radius: 10px; background: #f2f5f9; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.tproute__air { position: relative; }
.tproute__air img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #f2f5f9; }
.tproute__ini { font-size: .8rem; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.tproute__b { flex: 1; min-width: 0; }
.tproute__l { display: flex; align-items: baseline; gap: .5rem; font-weight: 700; }
.tproute__l small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.tproute__m { color: var(--muted); font-size: .84rem; margin-top: .15rem; }
.tproute__tag { font-size: .75rem; color: var(--muted); background: #f2f5f9; border-radius: 6px; padding: .1rem .4rem; }

.tpgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-top: .9rem; }
.tpbox { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: .55rem .7rem; }
.tpbox span { display: block; font-size: .74rem; color: var(--muted); margin-bottom: .15rem; }
.tpbox b { font-size: .95rem; letter-spacing: .03em; }

.tppax { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem 0; border-top: 1px dashed var(--line); font-size: .9rem; }
.tppax small { color: var(--muted); }

.tpacts { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.tpacts .btn { flex: 1 1 150px; text-align: center; }

.tpnote { font-size: .85rem; color: var(--muted); margin-top: .7rem; line-height: 1.7; }

@media (max-width: 520px) {
  .tp__h1 { font-size: 1.25rem; }
  .tpcard { padding: .95rem; }
}
