/* ==========================================================================
   TRANSPORT (service flow 2026-10-29): what /transport and /transport/choose
   add on top of flight-flow.css, hotel-flow.css and service-flow.css.
   Prefix .svt-. Templates: travel/transport.html, travel/sv_choose_transport.html.
   Phone first (390), fits 320 to 1440. Light only.
   ========================================================================== */

/* --- Home: the ways to go. Phone: bus, train, ferry over car, scooter. --- */
.svt-home { padding-bottom: 24px; }
.svt-modecards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.svt-modecards > a { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 10px; color: var(--fx-ink); text-decoration: none; min-width: 0; }
.svt-modecards > a:nth-child(n+4) { grid-column: span 3; }
.svt-modecards > a:hover { border-color: var(--fx-blue); }
.svt-modecards > a.is-on { border-color: var(--fx-blue); box-shadow: 0 0 0 1px var(--fx-blue) inset; }
.svt-modecards b { line-height: 1.25; overflow-wrap: anywhere; }
.svt-modecards small { color: var(--fx-muted); line-height: 1.35; }
.svt-modecards__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--fx-blue-soft); color: var(--fx-blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.svt-modecards__ico .et-i { width: 22px; height: 22px; vertical-align: 0; }

/* --- Route rows (home and the Choose page's empty state) --- */
.svt-chips { margin-bottom: 4px; }
.svt-chips .et-i { width: 16px; height: 16px; }
.svt-group { margin: 14px 0 6px; font-weight: 800; color: var(--fx-ink); }
.svt-rows { margin-top: 0; }
.svt-rows a { min-height: 56px; }
.svt-route { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.svt-route b { line-height: 1.3; overflow-wrap: anywhere; }
.svt-arrow { color: var(--fx-muted); font-weight: 600; }
.svt-modes { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.svt-modes span { display: inline-flex; align-items: center; gap: 4px; }
.svt-modes .et-i { width: 14px; height: 14px; vertical-align: 0; }
.svt-from { display: flex; flex-direction: column; align-items: flex-end; flex: none; line-height: 1.2; }
.svt-from b { color: var(--fx-blue); }
.svt-fine { margin: 10px 0 0; }
.svt-fine a { color: var(--fx-blue); font-weight: 700; }

/* --- Home: included + departure times --- */
.svt-incl { display: grid; gap: var(--hx-gap); }
.svt-incl .sv-includes { margin-top: 0; }
.svt-note { display: grid; gap: 4px; }
.svt-note b { display: inline-flex; align-items: center; gap: 6px; }
.svt-note p { margin: 0; }
.svt-note .hx-i { color: var(--fx-blue); }

/* --- Choose: search sheet --- */
.svt-ends { position: relative; display: grid; gap: 8px; }
.svt-ends .hx-field { padding-right: 56px; }
.svt-swap { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 1; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--fx-line); background: #fff; color: var(--fx-blue); font: inherit; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.svt-swap:hover { border-color: var(--fx-blue); }
.svt-swap:focus-visible { outline: 2px solid var(--fx-blue); outline-offset: 2px; }
.svt-when { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 6px; }
.svt-when legend { padding: 0; margin-bottom: 6px; font-weight: 600; }

/* --- Choose: cards --- */
.svt-only { margin: 6px 0 0; color: var(--fx-muted); }
.svt-only a { color: var(--fx-blue); font-weight: 700; }
.svt-opt__top { display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px 0; }
.svt-opt__icon { margin: 0; flex: none; width: 48px; height: 48px; }
.svt-opt__icon .et-i { width: 24px; height: 24px; vertical-align: 0; }
.svt-opt__head { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.svt-opt .sv-meta .et-i { width: 14px; height: 14px; vertical-align: 0; }
.svt-opt .sv-opt__body { padding-top: 6px; }
.svt-opt .sv-price small { line-height: 1.35; }

/* --- Choose: the private-car door --- */
.svt-car { display: flex; align-items: center; gap: 12px; padding: 12px; margin-top: var(--hx-gap); color: var(--fx-ink); text-decoration: none; }
.svt-car:hover { border-color: var(--fx-blue); }
.svt-car > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.svt-car .sv-request__ico { flex: none; }
.svt-car .sv-request__ico .et-i { width: 20px; height: 20px; vertical-align: 0; }
.svt-car > .hx-i { color: var(--fx-muted); }

@media (min-width: 900px) {
    .svt-modecards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
    .svt-modecards > a, .svt-modecards > a:nth-child(n+4) { grid-column: auto; padding: 16px 14px; }
    .svt-incl { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 360px) {
    .svt-modecards > a { padding: 10px 8px; }
    .svt-modecards small { display: none; }
}

/* --- Home: section titles sit left, like the cards under them; the long
       tail of routes folds away. --- */
.svt-home .tv-h2 { text-align: left; margin: 0 0 8px; }
.svt-home .tv-h2::after { margin-left: 0; }
.svt-more { margin-top: 6px; }
.svt-more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--fx-blue); font-weight: 700; cursor: pointer; list-style: none; }
.svt-more > summary::-webkit-details-marker { display: none; }
.svt-more > summary::after { content: "▾"; }
.svt-more[open] > summary::after { content: "▴"; }

/* --- Choose: the aside's cards stack with a gap on the phone; the trust row
       stays two across in the narrow desktop column. --- */
#svChoose[data-product="transport"] .svt-note { margin-top: var(--hx-gap); }
#svChoose[data-product="transport"] .hx-calm { margin-top: 14px; }
@media (min-width: 900px) {
    #svChoose[data-product="transport"] .svt-note { margin-top: 0; }
    #svChoose[data-product="transport"] .sv-aside .hx-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
}
