/* ==========================================================================
   GROUND SERVICES (2026-10-30): the real operators from the ground catalogue
   (ground_catalogue.py) on /transport, /transport/choose and the bus and
   train Details step. Prefix .gx-. Built on flight-flow.css tokens (--fx-*).
   Phone first, fits 320 to 1440. Light only.
   ========================================================================== */

/* The operator badge: the name in a chip of its own colour (no copied logos). */
.gx-op { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px; border-radius: 999px;
         background: var(--gx-brand, #1d4ed8); color: #fff; font-size: .8rem; font-weight: 700; line-height: 1.35;
         overflow-wrap: anywhere; }
.gx-op img { width: 16px; height: 16px; border-radius: 4px; background: #fff; flex: none; }
.gx-emoji { font-size: 1.35rem; line-height: 1; }

/* The route photograph at the top of Choose. */
.gx-hero { margin: 4px 0 12px; position: relative; border-radius: 16px; overflow: hidden; background: var(--fx-soft); }
.gx-hero img { display: block; width: 100%; height: clamp(120px, 28vw, 220px); object-fit: cover; }
.gx-hero figcaption { position: absolute; right: 8px; bottom: 6px; padding: 1px 8px; border-radius: 999px;
                      background: rgba(15, 23, 42, .62); color: #fff; font-size: .68rem; }
.gx-hero figcaption a { color: #fff; }

/* Amenities, departures, confirmation line. */
.gx-amen { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; padding: 0; list-style: none; }
.gx-amen li { padding: 2px 9px; border-radius: 999px; background: var(--fx-soft); color: var(--fx-muted); font-size: .76rem; }
.gx-pick { margin: 0; }
.gx-times { border: 0; margin: 8px 0 0; padding: 0; min-width: 0; }
.gx-times legend { padding: 0; margin-bottom: 4px; font-size: .8rem; }
.gx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gx-time { position: relative; }
.gx-time input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gx-time span { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 40px;
                padding: 0 12px; border: 1px solid var(--fx-line, #e2e8f0); border-radius: 12px; background: #fff;
                font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.gx-time input:checked + span { border-color: var(--fx-blue); background: var(--fx-blue); color: #fff; }
.gx-time input:focus-visible + span { outline: 2px solid var(--fx-blue); outline-offset: 2px; }
.gx-when, .gx-confirm { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; font-size: .82rem; line-height: 1.4; }
.gx-confirm { color: var(--fx-ink); }
.gx-confirm .hx-i, .gx-when .hx-i { flex: none; margin-top: 2px; }
.gx-idnote { margin: -4px 0 0; font-size: .8rem; }

/* Home: the popular routes as photo cards. */
.gx-routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px;
             margin: 8px 0 0; padding: 0; list-style: none; }
.gx-route { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 16px; background: #fff;
            border: 1px solid var(--fx-line, #e2e8f0); color: var(--fx-ink); text-decoration: none; }
.gx-route:hover { border-color: var(--fx-blue); }
.gx-route img { display: block; width: 100%; height: 120px; object-fit: cover; background: var(--fx-soft); }
.gx-route__copy { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; min-width: 0; }
.gx-route__copy b { line-height: 1.3; overflow-wrap: anywhere; }
.gx-route__ops { color: var(--fx-muted); font-size: .78rem; line-height: 1.35; overflow-wrap: anywhere; }
.gx-route__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; }
.gx-route__foot .gx-modes { font-size: 1.05rem; letter-spacing: 2px; }
.gx-route__foot small { color: var(--fx-muted); }
