/* =============================================================================
   Transfers (template-transfers.php), body.ca-transfers. A quote builder: the page's own line beside a
   compact request card that opens WhatsApp filled in; below, every route the page lists as a tappable
   card that fills the request card, then vehicles, how it works, questions. Same language as tour.css,
   contact.css and services-hub.css; the frame (header, footer, Jost 500/600, tokens --ui-*) is ui.css.
   House tokens only. Readability: Jost 400 minimum, 16px text and inputs, 13px labels at the smallest.
   Modern parts degrade quietly: :has() adds state only, container queries only widen rows, the
   scroll-driven reveal runs only where supported and motion is welcome.
   ============================================================================= */
body.ca-transfers { background: var(--ui-bg); }
html:has(body.ca-transfers), body.ca-transfers { overflow-x: clip; }

body.ca-transfers .tf { display: block; color: var(--ui-ink); background: var(--ui-bg); font-family: 'Jost', sans-serif; font-weight: 400; font-size: 17px; line-height: 1.6; }
body.ca-transfers .tf *, body.ca-transfers .tf *::before, body.ca-transfers .tf *::after { box-sizing: border-box; }
body.ca-transfers .tf-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }
body.ca-transfers .tf h1, body.ca-transfers .tf h2, body.ca-transfers .tf h3 { font-family: 'Jost', sans-serif; font-style: normal; text-transform: none; letter-spacing: -.005em; color: var(--ui-ink); text-align: left; }
body.ca-transfers .tf p, body.ca-transfers .tf li, body.ca-transfers .tf dd, body.ca-transfers .tf span, body.ca-transfers .tf small { font-weight: 400; }
body.ca-transfers .tf p { color: inherit; }
body.ca-transfers .tf a { color: var(--ui-ink); text-decoration: underline; text-decoration-color: var(--ui-accent); text-underline-offset: 4px; }
body.ca-transfers .tf a:hover { color: var(--ui-accent); }
body.ca-transfers .tf-ic { flex: none; display: block; }
body.ca-transfers .tf button { font-family: 'Jost', sans-serif; text-transform: none; letter-spacing: 0; }
body.ca-transfers .tf :focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }

/* Top: the page's own line on the left, the request card on the right (first on phones after the H1) */
body.ca-transfers .tf-top { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 3.5rem); }
body.ca-transfers .tf-top-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
body.ca-transfers .tf-crumb { font-size: 14px; color: var(--ui-ink-2); margin: 0 0 1rem; }
body.ca-transfers .tf-crumb a { color: var(--ui-ink-2); text-decoration: none; }
body.ca-transfers .tf-crumb a:hover { color: var(--ui-ink); }
body.ca-transfers .tf-h1 { font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.08; margin: 0 0 .85rem; max-width: 16ch; }
body.ca-transfers .tf-lead { margin: 0 0 1rem; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.5; color: var(--ui-ink); max-width: 34em; }
body.ca-transfers .tf-answer { margin: 0 0 1.5rem; font-size: 17px; color: var(--ui-ink-2); max-width: 36em; }
body.ca-transfers .tf-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--ui-line); }
body.ca-transfers .tf-facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--ui-line); }
body.ca-transfers .tf-facts dt { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ui-accent); padding-top: .15rem; }
body.ca-transfers .tf-facts dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ui-ink); }

/* The request card */
body.ca-transfers .tf-card { background: var(--ui-paper); border: 1px solid var(--ui-line); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow); padding: 1.25rem; scroll-margin-top: 96px; }
body.ca-transfers .tf .tf-card-h { font-weight: 600; font-size: 1.5rem; line-height: 1.2; margin: 0 0 1rem; }
body.ca-transfers .tf-form { display: grid; gap: 1rem; margin: 0; }
body.ca-transfers .tf-field { margin: 0; min-width: 0; border: 0; padding: 0; }
body.ca-transfers .tf-label { display: block; font-size: 15px; font-weight: 600; margin: 0 0 .4rem; color: var(--ui-ink); padding: 0; }
body.ca-transfers .tf-opt { font-weight: 400; color: var(--ui-ink-2); }
body.ca-transfers .tf-form input[type="text"], body.ca-transfers .tf-form input[type="date"], body.ca-transfers .tf-form input[type="time"] {
    display: block; width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: .6rem .85rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-sm);
    background: var(--ui-bg); color: var(--ui-ink); font: 400 16px/1.3 'Jost', sans-serif; color-scheme: light; box-shadow: none; -webkit-appearance: none; appearance: none; }
body.ca-transfers .tf-form input:focus { border-color: var(--ui-accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-dark) 22%, transparent); }
body.ca-transfers .tf-form input[aria-invalid="true"] { border-color: var(--ui-accent); background: var(--ui-tint); }
body.ca-transfers .tf-msg { font-size: 14px; font-weight: 500; color: var(--ui-accent); margin: .4rem 0 0; line-height: 1.4; }
body.ca-transfers .tf-hint { font-size: 14px; color: var(--ui-ink-2); margin: .45rem 0 0; line-height: 1.45; }

/* Segmented: kind of transfer */
body.ca-transfers .tf-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin: 0; padding: .3rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-sm); background: var(--ui-bg); }
body.ca-transfers .tf-seg label, body.ca-transfers .tf-filter label, body.ca-transfers .tf-veh-row label, body.ca-transfers .tf-check { position: relative; margin: 0; cursor: pointer; }
body.ca-transfers .tf-seg input, body.ca-transfers .tf-filter input, body.ca-transfers .tf-veh-row input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
body.ca-transfers .tf-seg span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 .5rem; border-radius: 7px; font-size: 15px; font-weight: 500; color: var(--ui-ink-2); text-align: center; line-height: 1.2; transition: background var(--ca-transition), color var(--ca-transition); }
body.ca-transfers .tf-seg input:checked + span { background: var(--ui-paper); color: var(--ui-ink); font-weight: 600; box-shadow: 0 1px 3px color-mix(in srgb, var(--obsidian) 14%, transparent); }
body.ca-transfers .tf-seg input:focus-visible + span, body.ca-transfers .tf-filter input:focus-visible + span, body.ca-transfers .tf-veh-row input:focus-visible + span, body.ca-transfers .tf-check input:focus-visible + span { outline: 2px solid var(--ui-accent); outline-offset: 2px; }

/* From / swap / To */
body.ca-transfers .tf-route { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; position: relative; }
body.ca-transfers .tf-swap { position: absolute; right: .6rem; top: calc(50% - 4px); z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--ui-line); background: var(--ui-paper); color: var(--ui-ink); cursor: pointer; box-shadow: 0 1px 3px color-mix(in srgb, var(--obsidian) 10%, transparent); transition: transform var(--ca-transition); }
body.ca-transfers .tf-swap:hover { transform: rotate(180deg); background: var(--ui-paper); color: var(--ui-ink); }
body.ca-transfers .tf-route .tf-field:first-child input { padding-right: 3.25rem; }
body.ca-transfers .tf-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }

/* Passenger stepper (same as tour.css) */
body.ca-transfers .tf-step { display: inline-grid; grid-template-columns: 48px 4rem 48px; align-items: center; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-sm); background: var(--ui-bg); overflow: hidden; }
body.ca-transfers .tf-step button { height: 48px; padding: 0; border: 0; background: transparent; color: var(--ui-ink); font-size: 22px; line-height: 1; cursor: pointer; }
body.ca-transfers .tf-step button:hover { background: var(--ui-tint); color: var(--ui-ink); }
body.ca-transfers .tf-step button:disabled { color: var(--ui-line); cursor: default; background: transparent; }
body.ca-transfers .tf-step output { text-align: center; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Vehicle class */
body.ca-transfers .tf-veh-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
body.ca-transfers .tf-veh-row span { display: grid; gap: .1rem; align-content: center; min-height: 58px; padding: .5rem .6rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-sm); background: var(--ui-bg); text-align: center; transition: border-color var(--ca-transition), background var(--ca-transition); }
body.ca-transfers .tf-veh-row strong { font-size: 15px; font-weight: 600; line-height: 1.2; }
body.ca-transfers .tf-veh-row small { font-size: 13px; line-height: 1.25; color: var(--ui-ink-2); }
body.ca-transfers .tf-veh-row input:checked + span { border-color: var(--ui-ink); background: var(--ui-paper); box-shadow: inset 0 0 0 1px var(--ui-ink); }

/* Return leg */
body.ca-transfers .tf-return { display: grid; gap: .75rem; }
body.ca-transfers .tf-check { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
body.ca-transfers .tf-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--gold-dark); flex: none; }
body.ca-transfers .tf-check span { font-size: 16px; font-weight: 500; }
body.ca-transfers .tf [hidden] { display: none !important; }

/* The one solid action */
body.ca-transfers .tf-cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 1.25rem; border: 0; border-radius: var(--ui-radius-sm); background: var(--wa-green); color: var(--ivory); font: 600 17px/1.2 'Jost', sans-serif; letter-spacing: .01em; cursor: pointer; transition: background var(--ca-transition); }
body.ca-transfers .tf-cta:hover { background: var(--wa-green-lt); color: var(--ivory); }
body.ca-transfers .tf-cta-n { font-size: 14px; line-height: 1.45; color: var(--ui-ink-2); margin: -.35rem 0 0; text-align: center; }
body.ca-transfers .tf-card.tf-flash { animation: tf-flash 1.1s ease-out 1; }
@keyframes tf-flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold-dark) 45%, transparent), var(--ui-shadow); } 100% { box-shadow: 0 0 0 14px transparent, var(--ui-shadow); } }

/* Sections */
body.ca-transfers .tf-sec { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
body.ca-transfers .tf-sec-tint { background: var(--ui-tint); }
body.ca-transfers .tf .tf-eyebrow { margin: 0 0 .5rem; font-family: 'Jost', sans-serif; font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ui-accent); }
body.ca-transfers .tf-h2 { font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); line-height: 1.15; margin: 0 0 .75rem; max-width: 26ch; }
body.ca-transfers .tf-h3 { font-weight: 600; font-size: 19px; line-height: 1.25; margin: 0 0 .4rem; }
body.ca-transfers .tf-intro { margin: 0 0 1.5rem; font-size: 17px; color: var(--ui-ink-2); max-width: 40em; }
body.ca-transfers .tf-note { margin: 1.25rem 0 0; font-size: 15px; line-height: 1.55; color: var(--ui-ink-2); max-width: 46em; }

/* Six ways */
body.ca-transfers .tf-ways { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.5rem; }
body.ca-transfers .tf-way { display: flex; flex-direction: column; background: var(--ui-paper); border: 1px solid var(--ui-line); border-radius: var(--ui-radius); padding: 1.25rem 1.25rem 1rem; }
body.ca-transfers .tf-way p { margin: 0 0 .75rem; font-size: 16px; line-height: 1.55; color: var(--ui-ink-2); }
body.ca-transfers .tf-way-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ui-tint); color: var(--ui-accent); margin: 0 0 .85rem; }
body.ca-transfers .tf-link { display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; margin-top: auto; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ui-ink); font-size: 16px; font-weight: 600; cursor: pointer; }
body.ca-transfers .tf-link .tf-ic { color: var(--ui-accent); transition: transform var(--ca-transition); }
body.ca-transfers .tf-link:hover { background: transparent; color: var(--ui-accent); }
body.ca-transfers .tf-link:hover .tf-ic { transform: translateY(-2px); }
body.ca-transfers .tf-prose { margin: clamp(2rem, 5vw, 3rem) 0 0; max-width: 42em; }
body.ca-transfers .tf-prose p { margin: 0 0 1rem; font-size: 17px; line-height: 1.7; }
body.ca-transfers .tf-prose p:first-child { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.5; font-weight: 500; }

/* Ski resorts: route rows, each airport time a button that fills the card */
body.ca-transfers .tf-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; border: 0; }
body.ca-transfers .tf-filter span, body.ca-transfers .tf-chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--ui-line); background: var(--ui-paper); color: var(--ui-ink); font: 500 15px/1.2 'Jost', sans-serif; white-space: nowrap; transition: border-color var(--ca-transition), background var(--ca-transition), color var(--ca-transition); }
body.ca-transfers .tf-filter input:checked + span { background: var(--ui-ink); border-color: var(--ui-ink); color: var(--ivory); }
body.ca-transfers .tf-resorts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
body.ca-transfers .tf-resort { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: .7rem; margin: 0; padding: .85rem 1rem; background: var(--ui-paper); border: 1px solid var(--ui-line); border-radius: var(--ui-radius); }
body.ca-transfers .tf-resort-name { min-width: 0; }
body.ca-transfers .tf-resort .tf-h3 { margin: 0; font-size: 18px; }
body.ca-transfers .tf-resort-name p { margin: .15rem 0 0; font-size: 14px; line-height: 1.4; color: var(--ui-ink-2); }
body.ca-transfers .tf-resort-go { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
body.ca-transfers .tf-time { display: grid; justify-items: start; gap: 0; min-width: 5.75rem; min-height: 48px; padding: .35rem .7rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-sm); background: var(--ui-bg); color: var(--ui-ink); cursor: pointer; text-align: left; transition: border-color var(--ca-transition), background var(--ca-transition); }
body.ca-transfers .tf-time span { font-size: 13px; line-height: 1.2; color: var(--ui-ink-2); }
body.ca-transfers .tf-time strong { font-size: 16px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
body.ca-transfers .tf-time:hover, body.ca-transfers .tf-chip:hover { border-color: var(--ui-ink); background: var(--ui-paper); color: var(--ui-ink); }
body.ca-transfers .tf-resorts[data-ap="zrh"] .tf-resort[data-zrh="0"], body.ca-transfers .tf-resorts[data-ap="gva"] .tf-resort[data-gva="0"] { display: none; }
body.ca-transfers .tf-resorts[data-ap="zrh"] .tf-time[data-from="Geneva Airport"], body.ca-transfers .tf-resorts[data-ap="gva"] .tf-time[data-from="Zurich Airport"] { opacity: .45; }

/* Beyond Switzerland */
body.ca-transfers .tf-markets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
body.ca-transfers .tf-market { display: flex; flex-direction: column; padding: 1.25rem; background: var(--ui-paper); border: 1px solid var(--ui-line); border-radius: var(--ui-radius); }
body.ca-transfers .tf .tf-where { margin: 0 0 .35rem; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ui-accent); }
body.ca-transfers .tf-market > p:not(.tf-where) { margin: 0 0 1rem; font-size: 16px; line-height: 1.55; color: var(--ui-ink-2); }
body.ca-transfers .tf-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
body.ca-transfers .tf-chip { min-height: 40px; padding: 0 .85rem; font-size: 14px; cursor: pointer; white-space: normal; text-align: left; }
body.ca-transfers .tf-chip .tf-ic { color: var(--ui-accent); }

/* Vehicles */
body.ca-transfers .tf-cars { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin-top: 1.25rem; }
body.ca-transfers .tf-car { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 1rem; align-items: center; width: 100%; padding: 1rem 1.1rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: var(--ui-paper); color: var(--ui-ink); text-align: left; cursor: pointer; transition: border-color var(--ca-transition), box-shadow var(--ca-transition); }
body.ca-transfers .tf-car:hover { border-color: color-mix(in srgb, var(--obsidian) 35%, transparent); box-shadow: var(--ui-shadow); background: var(--ui-paper); color: var(--ui-ink); }
body.ca-transfers .tf-car .tf-way-ic { grid-row: 1 / span 2; margin: 0; }
body.ca-transfers .tf-car-h { font-size: 19px; font-weight: 600; line-height: 1.2; }
body.ca-transfers .tf-car-p { font-size: 16px; line-height: 1.45; color: var(--ui-ink-2); }

/* Steps */
body.ca-transfers .tf-steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; counter-reset: none; }
body.ca-transfers .tf-steps li { display: grid; align-content: start; align-items: start; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; margin: 0; padding: 1.25rem; background: var(--ui-paper); border: 1px solid var(--ui-line); border-radius: var(--ui-radius); }
body.ca-transfers .tf-steps p { margin: 0; font-size: 16px; line-height: 1.6; }
body.ca-transfers .tf .tf-step-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ui-ink); color: var(--ivory); font-weight: 600; font-size: 16px; }

/* Questions */
body.ca-transfers .tf-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 3rem; }
body.ca-transfers .tf-faq { border-top: 1px solid var(--ui-line); }
body.ca-transfers .tf-faq details { border-bottom: 1px solid var(--ui-line); }
body.ca-transfers .tf-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .85rem 0; cursor: pointer; list-style: none; }
body.ca-transfers .tf-faq summary::-webkit-details-marker { display: none; }
body.ca-transfers .tf-faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ui-line); font-size: 18px; line-height: 1; color: var(--ui-ink); transition: transform var(--ca-transition); }
body.ca-transfers .tf-faq details[open] summary::after { transform: rotate(45deg); }
body.ca-transfers .tf .tf-q { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
body.ca-transfers .tf-a p { margin: 0 0 1rem; font-size: 16px; line-height: 1.65; color: var(--ui-ink-2); max-width: 40em; }

/* Close */
body.ca-transfers .tf-close { background: var(--ui-paper); border-top: 1px solid var(--ui-line); }
body.ca-transfers .tf-close-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 2rem; }
body.ca-transfers .tf-sub { margin: 0 0 .75rem; color: var(--ui-ink-2); max-width: 34em; }
body.ca-transfers .tf-aside { margin: 0; font-size: 15px; color: var(--ui-ink-2); max-width: 38em; }
body.ca-transfers .tf-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
body.ca-transfers .tf .tf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.4rem; border-radius: var(--ui-radius-sm); font: 600 16px/1.2 'Jost', sans-serif; text-decoration: none; text-transform: none; letter-spacing: .01em; transition: background var(--ca-transition), border-color var(--ca-transition); }
body.ca-transfers .tf .tf-btn-wa { background: var(--wa-green); color: var(--ivory); border: 1px solid var(--wa-green); }
body.ca-transfers .tf .tf-btn-wa:hover { background: var(--wa-green-lt); border-color: var(--wa-green-lt); color: var(--ivory); }
body.ca-transfers .tf .tf-btn-ghost { background: transparent; color: var(--ui-ink); border: 1px solid color-mix(in srgb, var(--obsidian) 35%, transparent); }
body.ca-transfers .tf .tf-btn-ghost:hover { border-color: var(--ui-ink); color: var(--ui-ink); }

/* Tablet */
@media (min-width: 640px) {
    body.ca-transfers .tf-card { padding: 1.5rem; }
    body.ca-transfers .tf-seg { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    body.ca-transfers .tf-ways, body.ca-transfers .tf-markets, body.ca-transfers .tf-resorts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.ca-transfers .tf-cars, body.ca-transfers .tf-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.ca-transfers .tf-car { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; row-gap: .35rem; align-content: start; padding: 1.25rem; }
    body.ca-transfers .tf-car .tf-way-ic { grid-row: auto; margin: 0 0 .5rem; }
    body.ca-transfers .tf-steps li { grid-template-columns: minmax(0, 1fr); }
}
/* Desktop: line beside card, card sticky while the line is read */
@media (min-width: 960px) {
    body.ca-transfers .tf-top-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); }
    body.ca-transfers .tf-head { padding-top: 1rem; }
    body.ca-transfers .tf-ways, body.ca-transfers .tf-markets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.ca-transfers .tf-resorts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.ca-transfers .tf-faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}
/* The card rides along only on a window tall enough to hold all of it under the header (checklist 7:
   top + height within the window). On a laptop at 100% (1366 x 650) it stays in the flow beside the line. */
@media (min-width: 960px) and (min-height: 1160px) {
    body.ca-transfers .tf-card { position: sticky; top: 104px; }
}
/* Phones: the card is the second thing on the page; the facts follow it */
@media (max-width: 959px) {
    body.ca-transfers .tf-top-grid { display: flex; flex-direction: column; }
    body.ca-transfers .tf-head { display: contents; }
    body.ca-transfers .tf-crumb, body.ca-transfers .tf-h1, body.ca-transfers .tf-lead { order: 0; }
    body.ca-transfers .tf-crumb, body.ca-transfers .tf-h1 { margin-bottom: 0; }
    body.ca-transfers .tf-lead { margin-bottom: 0; }
    body.ca-transfers .tf-card { order: 1; }
    body.ca-transfers .tf-answer, body.ca-transfers .tf-facts { order: 2; }
    body.ca-transfers .tf-answer { margin: .5rem 0 0; }
}
@media (max-width: 639px) {
    body.ca-transfers .tf-actions { width: 100%; }
    body.ca-transfers .tf-actions .tf-btn { flex: 1 1 100%; }
    body.ca-transfers .tf-facts > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
    body.ca-transfers .tf-veh-row span { padding: .5rem .3rem; }
}

/* Scroll-driven reveal, only where supported and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        @keyframes tf-rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
        body.ca-transfers .tf-way, body.ca-transfers .tf-market, body.ca-transfers .tf-steps li, body.ca-transfers .tf-car { animation: tf-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    }
}
@media (prefers-reduced-motion: reduce) {
    body.ca-transfers .tf-card.tf-flash { animation: none; }
    body.ca-transfers .tf-swap, body.ca-transfers .tf-link .tf-ic, body.ca-transfers .tf-faq summary::after { transition: none; }
}

/* The customizer prints h1:not(.entry-title)... { font-size: 24px } inline (0,3,1), and the same for h2/h3.
   These selectors outrank it so the type scale above holds. */
body.ca-transfers main.tf h1.tf-h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem) !important; line-height: 1.08 !important; }
body.ca-transfers main.tf h2.tf-h2 { line-height: 1.15 !important; }
body.ca-transfers main.tf h2.tf-h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem) !important; }
body.ca-transfers main.tf h2.tf-card-h { font-size: 1.5rem !important; line-height: 1.2 !important; }
body.ca-transfers main.tf h3.tf-h3 { font-size: 19px !important; }
body.ca-transfers main.tf .tf-resort h3.tf-h3 { font-size: 18px !important; }
body.ca-transfers main.tf h3.tf-q { font-size: 17px !important; }

/* Labels keep their weight even when they are spans (the generic 400 above would win otherwise) */
body.ca-transfers .tf .tf-label, body.ca-transfers .tf .tf-label > span:not(.tf-opt) { font-weight: 600; }
/* Phones: the six ways read as compact rows, icon beside the heading */
@media (max-width: 639px) {
    body.ca-transfers .tf-way { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .85rem; align-items: center; padding: 1rem 1rem .5rem; }
    body.ca-transfers .tf-way .tf-way-ic { margin: 0; width: 40px; height: 40px; }
    body.ca-transfers .tf-way .tf-h3 { margin: 0; }
    body.ca-transfers .tf-way p, body.ca-transfers .tf-way .tf-link { grid-column: 1 / -1; }
    body.ca-transfers .tf-way p { margin: .6rem 0 0; }
}
/* Phones: each resort is one compact row, name left, airport times right */
@media (max-width: 639px) {
    body.ca-transfers .tf-resorts { gap: .45rem; }
    body.ca-transfers .tf-resort { flex-direction: row; flex-wrap: wrap; align-items: center; padding: .6rem .6rem .6rem .9rem; gap: .5rem .75rem; }
    body.ca-transfers .tf-resort-name { flex: 1 1 7rem; }
    body.ca-transfers .tf-resort-go { display: flex; flex: none; gap: .35rem; margin-left: auto; }
    body.ca-transfers .tf-time { min-width: 4.9rem; min-height: 46px; padding: .3rem .55rem; }
    /* Airport filter: one segmented row of three, the same language as the request form's tabs */
    body.ca-transfers .tf-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; padding: .3rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-sm); background: var(--ui-bg); }
    body.ca-transfers .tf-filter span { justify-content: center; width: 100%; padding: 0 .25rem; border: 0; border-radius: 7px; background: transparent; color: var(--ui-ink-2); font-size: 14px; text-align: center; }
    body.ca-transfers .tf-filter input:checked + span { background: var(--ui-ink); color: var(--ivory); font-weight: 600; }
}
/* The theme's button rule sets nowrap; card buttons carry sentences */
body.ca-transfers .tf .tf-car, body.ca-transfers .tf .tf-chip { white-space: normal; }
body.ca-transfers .tf .tf-car > * { min-width: 0; }

/* Phone action bar (checklist 6): the page's WhatsApp action stays one tap away. It replaces the chat
   bubble on phones, steps aside behind the drawer, and slides away while the request card's own button,
   the closing button or the footer is on screen (transfers.js). */
body.ca-transfers .tf-mbar { display: none; }
@media (max-width: 760px) {
    body.ca-transfers { padding-bottom: 74px; }
    body.ca-transfers #ca-chat-bubble { display: none !important; }
    body.ca-transfers .tf-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: .65rem clamp(1.25rem, 5vw, 3rem) calc(.65rem + env(safe-area-inset-bottom));
        background: var(--ui-paper); border-top: 1px solid var(--ui-line); box-shadow: 0 -6px 20px color-mix(in srgb, var(--obsidian) 8%, transparent); }
    body.ca-transfers .tf .tf-mbar .tf-btn { flex: 1 1 100%; min-height: 48px; }
    body.ca-transfers .tf-mbar[data-hide] { transform: translateY(110%); visibility: hidden; }
    body.ca-transfers.ca-nav-open .tf-mbar { display: none; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
    body.ca-transfers .tf-mbar { transition: transform 240ms ease, visibility 240ms; }
}

/* ---- Native feel (S2-2, 2026-10-08) -------------------------------------------------------------------------
   Phones: the vehicle is one row that opens a pull-up sheet of the classes (ux.css), so three cramped tiles become
   three full-width choices with the page's own line under each. From 640px the inline tiles stay. */
body.ca-transfers .tf-veh-pick { display: none; }
body.ca-transfers .tf-vlist { display: grid; gap: .6rem; }
body.ca-transfers .tf-vopt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; width: 100%; min-height: 64px; margin: 0;
    padding: .7rem .9rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-sm); background: var(--ui-bg); color: var(--ui-ink); text-align: left;
    font: 400 16px/1.4 'Jost', sans-serif; text-transform: none; letter-spacing: 0; white-space: normal; cursor: pointer; box-shadow: none; }
body.ca-transfers .tf-vopt .tf-way-ic { margin: 0; }
body.ca-transfers .tf-vopt-t { display: grid; gap: .1rem; min-width: 0; }
body.ca-transfers .tf-vopt-t strong { font-size: 17px; font-weight: 600; }
body.ca-transfers .tf-vopt-t span { font-size: 15px; color: var(--ui-ink-2); }
body.ca-transfers .tf-vopt-tick { color: var(--ui-ink); opacity: 0; }
body.ca-transfers .tf-vopt[aria-pressed="true"] { border-color: var(--ui-ink); background: var(--ui-paper); box-shadow: inset 0 0 0 1px var(--ui-ink); }
body.ca-transfers .tf-vopt[aria-pressed="true"] .tf-vopt-tick { opacity: 1; }
body.ca-transfers .tf-vopt:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
body.ca-transfers .tf-sheet .tf-hint { margin-top: 1rem; }
@media (max-width: 639px) {
    body.ca-transfers .tf-veh-row { display: none; }
    body.ca-transfers .tf-veh-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; width: 100%; min-height: 56px; margin: 0;
        padding: .45rem .9rem .45rem .5rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-sm); background: var(--ui-bg); color: var(--ui-ink);
        font: 400 16px/1.3 'Jost', sans-serif; text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; cursor: pointer; box-shadow: none; }
    body.ca-transfers .tf-veh-pick-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ui-tint); color: var(--ui-accent); }
    body.ca-transfers .tf-veh-pick-t strong { font-weight: 600; }
    body.ca-transfers .tf-veh-pick-t small { font-size: 15px; color: var(--ui-ink-2); }
    body.ca-transfers .tf-veh-pick-go { font-size: 15px; font-weight: 600; color: var(--ui-accent); }
    body.ca-transfers .tf-veh-pick-go::after { content: " \203A"; }
    body.ca-transfers .tf-veh-pick:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
    /* Thumb-size targets for the route chips and airport times */
    body.ca-transfers .tf-chip, body.ca-transfers .tf-time { min-height: var(--ux-target, 48px); }
    body.ca-transfers .tf-filter span { min-height: var(--ux-target, 48px); }
    body.ca-transfers .tf-seg span { min-height: var(--ux-target, 48px); }
    body.ca-transfers .tf .tf-swap { width: 44px; height: 44px; }
    body.ca-transfers .tf-check { min-height: var(--ux-target, 48px); display: flex; align-items: center; }
}
/* Pressed states on touch, no hover needed */
body.ca-transfers :is(.tf-time, .tf-chip, .tf-car, .tf-link, .tf-cta, .tf-swap):active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { body.ca-transfers :is(.tf-time, .tf-chip, .tf-car, .tf-link, .tf-cta, .tf-swap):active { transform: none; } }

/* Rework 2026-11-16: no labels over headings, no step numbers, real cars on the vehicle cards. */
body.ca-transfers .tf-steps li { grid-template-columns: minmax(0, 1fr); }
body.ca-transfers .tf-car { overflow: hidden; }
body.ca-transfers .tf-car-img { grid-column: 1 / -1; display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: var(--ui-radius-sm, var(--ui-radius)); margin: 0 0 .75rem; }

/* Sami 2026-11-22 (transfers): additional requirements field, prose sections, steps with lead words. */
body.ca-transfers .tf-form textarea { display: block; width: 100%; min-width: 0; min-height: 64px; margin: 0; padding: .6rem .85rem; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-sm); background: var(--ui-bg); color: var(--ui-ink); font: 400 16px/1.4 'Jost', sans-serif; box-shadow: none; resize: vertical; -webkit-appearance: none; appearance: none; }
body.ca-transfers .tf-form textarea:focus { border-color: var(--ui-accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-dark) 22%, transparent); }
body.ca-transfers .tf-prose p { max-width: 44em; margin: 0 0 .9rem; color: var(--ui-ink-2); }
body.ca-transfers .tf-steps strong { color: var(--ui-ink); font-weight: 600; }
body.ca-transfers .tf-seg label:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) { body.ca-transfers .tf-seg span { padding: 0 .25rem; font-size: 14px; } }
body.ca-transfers .tf-hero-img { margin: 1.5rem 0 0; border-radius: var(--ui-radius); overflow: hidden; background: var(--ui-tint); aspect-ratio: 3 / 2; max-width: 560px; }
body.ca-transfers .tf-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
