/* =============================================================================
   Tour product page v2 (2026-10-01). Loaded only by template-tour.php, scoped to body.ca-tour.
   Cem: "too elegant for a commercial place". So: a light, conversion-first page. Readable sans
   headings with weight, prices and facts that scan in a second, one solid action. House tokens only;
   the dark header and footer stay as the brand frame around a light product page.
   Readability rules (.claude/skills/luxury-design, 2026-09-30) still hold: Jost 400 minimum for
   reading UI, 16px running text, 13px labels, radius on panels, nothing on photographs.
   ============================================================================= */

/* Jost 500 and 600, self-hosted, loaded only on this template */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jost-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jost-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/jost-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/jost-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

body.ca-tour {
    /* One source: the light frame tokens in ui.css (body.ca-ui), aliased so the page reads the same values */
    --tr-bg: var(--ui-bg);
    --tr-paper: var(--ui-paper);
    --tr-ink: var(--ui-ink);
    --tr-ink-2: var(--ui-ink-2);
    --tr-line: var(--ui-line);
    --tr-tint: var(--ui-tint);
    --tr-accent: var(--ui-accent);
    --tr-radius: var(--ui-radius);
    --tr-radius-sm: var(--ui-radius-sm);
    --tr-shadow: var(--ui-shadow);
    --tr-gutter: clamp(1rem, 4vw, 2rem);
    background: var(--tr-bg);
}
/* The theme sets overflow-x: hidden on html and body, which makes body a scroll container that never
   scrolls, so position: sticky never engages. clip hides the same overflow without that side effect. */
html:has(body.ca-tour), body.ca-tour { overflow-x: clip; }
body.ca-tour #ca-chat-bubble { display: none !important; }

body.ca-tour .tr { display: block; color: var(--tr-ink); background: var(--tr-bg); font-family: 'Jost', sans-serif; font-weight: 400; font-size: 17px; line-height: 1.65; }
body.ca-tour .tr *, body.ca-tour .tr *::before, body.ca-tour .tr *::after { box-sizing: border-box; }
body.ca-tour .tr-wrap { max-width: 1200px; margin: 0 auto; padding: 1.25rem var(--tr-gutter) clamp(3rem, 8vw, 5rem); }
body.ca-tour .tr-ic { flex: none; color: var(--tr-accent); }
body.ca-tour .tr-muted { color: var(--tr-ink-2); }

/* Breadcrumb */
body.ca-tour .tr-crumb { display: flex; flex-wrap: wrap; gap: .4rem; font-size: 14px; color: var(--tr-ink-2); margin: 0 0 1rem; }
body.ca-tour .tr-crumb a { color: var(--tr-ink-2); text-decoration: none; }
body.ca-tour .tr-crumb a:hover { color: var(--tr-ink); text-decoration: underline; }
body.ca-tour .tr-crumb [aria-current] { color: var(--tr-ink); }

/* Title + chips */
body.ca-tour .tr-head { margin: 0 0 1.25rem; }
body.ca-tour .tr-title { font-family: 'Jost', sans-serif; font-weight: 600; font-style: normal; font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem) !important; line-height: 1.15 !important; letter-spacing: -.01em; margin: 0 0 .9rem; color: var(--tr-ink); text-transform: none; text-align: left; }
body.ca-tour .tr-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
body.ca-tour .tr-chips li { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .4rem .8rem; border-radius: 999px; background: var(--tr-tint); font-size: 15px; font-weight: 500; color: var(--tr-ink); }
body.ca-tour .tr-chips .tr-ic { width: 18px; height: 18px; }

/* Gallery: one large, four small, rounded as a whole */
body.ca-tour .tr-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(240px, 32vw, 430px); margin: 0 0 2rem; border-radius: var(--tr-radius); overflow: hidden; }
body.ca-tour .tr-ph { margin: 0; background: linear-gradient(150deg, var(--beige), color-mix(in srgb, var(--beige) 60%, var(--gold-pale))); overflow: hidden; }
body.ca-tour .tr-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.ca-tour .tr-ph-main { grid-row: 1 / 3; }
body.ca-tour .tr-gallery .tr-ph:nth-child(n+6) { display: none; }
/* The laptop grid follows the photo count, so no empty tile ever shows (2026-10-03):
   1 = one wide frame, 2 = large + one, 3 = large + two stacked, 4 = large + two + one wide, 5+ = large + four. */
body.ca-tour .tr-gallery-n0, body.ca-tour .tr-gallery-n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
body.ca-tour .tr-gallery-n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
body.ca-tour .tr-gallery-n0 .tr-ph-main, body.ca-tour .tr-gallery-n1 .tr-ph-main, body.ca-tour .tr-gallery-n2 .tr-ph-main { grid-row: auto; }
body.ca-tour .tr-gallery-n3 { grid-template-columns: 2fr 1fr; }
body.ca-tour .tr-gallery-n4 .tr-ph:nth-child(4) { grid-column: span 2; }
/* No photo at all: one typographic tile with the title on the tint, never a blank box */
body.ca-tour .tr-ph-type { background: var(--ui-tint); }
body.ca-tour .tr-ph-type span { display: flex; align-items: center; justify-content: center; height: 100%; padding: 1.5rem; text-align: center;
    font-family: 'Jost', sans-serif; font-weight: 600; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); line-height: 1.2; color: var(--ui-ink); }

/* Layout */
body.ca-tour .tr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
body.ca-tour .tr-side { position: sticky; top: calc(var(--tr-top, 84px) + 16px); }

/* Section nav: the partner's Description / Itinerary / Pick-up, as anchors */
body.ca-tour .tr-secnav { position: sticky; top: var(--tr-top, 84px); z-index: 5; display: flex; gap: .25rem; overflow-x: auto; background: var(--tr-bg); border-bottom: 1px solid var(--tr-line); margin: 0 0 1.5rem; scrollbar-width: none; }
body.ca-tour .tr-secnav a { padding: .85rem .9rem; font-size: 16px; font-weight: 500; color: var(--tr-ink-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
body.ca-tour .tr-secnav a:hover, body.ca-tour .tr-secnav a[aria-current="true"] { color: var(--tr-ink); border-bottom-color: var(--tr-accent); }

/* Sections */
body.ca-tour .tr-sec { padding: 0 0 2.25rem; margin: 0 0 2.25rem; border-bottom: 1px solid var(--tr-line); scroll-margin-top: calc(var(--tr-top, 84px) + 72px); }
body.ca-tour .tr-sec:last-child { border-bottom: 0; }
body.ca-tour .tr-sec p { margin: 0 0 1rem; max-width: 44em; }
body.ca-tour .tr-lead { font-size: 19px; font-weight: 500; line-height: 1.55; }
body.ca-tour .tr-h2 { font-family: 'Jost', sans-serif; font-weight: 600; font-style: normal; font-size: 1.5rem; line-height: 1.25; margin: 0 0 1.1rem; color: var(--tr-ink); text-transform: none; letter-spacing: 0; text-align: left; }

/* Facts grid */
body.ca-tour .tr-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; margin: 1.5rem 0 0; }
body.ca-tour .tr-facts > div { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: start; padding: .9rem 1rem; border: 1px solid var(--tr-line); border-radius: var(--tr-radius-sm); background: var(--tr-paper); }
body.ca-tour .tr-facts .tr-ic { grid-row: 1 / 3; margin-top: .15rem; }
body.ca-tour .tr-facts dt { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--tr-ink-2); }
body.ca-tour .tr-facts dd { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.4; }

/* Itinerary */
body.ca-tour .tr-stops { list-style: none; margin: 0; padding: 0; counter-reset: stop; }
body.ca-tour .tr-stops li { position: relative; padding: 0 0 1.4rem 3rem; margin: 0; counter-increment: stop; }
body.ca-tour .tr-stops li::before { content: counter(stop); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tr-ink); color: var(--ivory); font-size: 14px; font-weight: 600; display: grid; place-items: center; }
body.ca-tour .tr-stops li::after { content: ""; position: absolute; left: 1rem; top: 2.25rem; bottom: .3rem; border-left: 2px solid var(--tr-line); }
body.ca-tour .tr-stops li:last-child { padding-bottom: 0; }
body.ca-tour .tr-stops li:last-child::after { display: none; }
body.ca-tour .tr-stops h3 { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 17px; line-height: 1.4; margin: .2rem 0 .25rem; color: var(--tr-ink); text-transform: none; letter-spacing: 0; text-align: left; }
body.ca-tour .tr-stops p { margin: 0; color: var(--tr-ink-2); }

/* Lists with icons */
body.ca-tour .tr-incl { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 2rem; }
body.ca-tour .tr-ul { list-style: none; margin: 0; padding: 0; }
body.ca-tour .tr-ul li { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 .7rem; font-size: 16px; line-height: 1.5; }
body.ca-tour .tr-ul .tr-ic { margin-top: .1rem; }
body.ca-tour .tr-yes .tr-ic { color: var(--wa-green); }
body.ca-tour .tr-no .tr-ic { color: var(--tr-ink-2); }
body.ca-tour .tr-no li { color: var(--tr-ink-2); }

/* Pick-up box */
body.ca-tour .tr-box { display: flex; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: var(--tr-radius-sm); background: var(--tr-tint); }
body.ca-tour .tr-box p { margin: 0 0 .3rem; }
body.ca-tour .tr-box p:last-child { margin: 0; }

/* Booking card */
body.ca-tour .tr-book { background: var(--tr-paper); border: 1px solid var(--tr-line); border-radius: var(--tr-radius); box-shadow: var(--tr-shadow); padding: 1.5rem; display: grid; gap: 1.1rem; }
body.ca-tour .tr-price { display: grid; gap: .1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--tr-line); }
body.ca-tour .tr-price-k { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--tr-ink-2); }
body.ca-tour .tr-price-v { font-size: 1.75rem; font-weight: 600; line-height: 1.2; color: var(--tr-ink); }
body.ca-tour .tr-price-n { font-size: 14px; color: var(--tr-ink-2); }
body.ca-tour .tr-field { margin: 0; }
body.ca-tour .tr-label { display: block; font-size: 15px; font-weight: 600; margin: 0 0 .45rem; color: var(--tr-ink); }
body.ca-tour .tr-step { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--tr-line); border-radius: var(--tr-radius-sm); padding: .3rem; background: var(--tr-bg); }
body.ca-tour .tr-step button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--tr-line); background: var(--tr-paper); color: var(--tr-ink); font: 500 22px/1 'Jost', sans-serif; padding: 0; margin: 0; display: grid; place-items: center; min-width: 0; letter-spacing: 0; cursor: pointer; }
body.ca-tour .tr-step button:hover:not(:disabled) { border-color: var(--tr-ink); }
body.ca-tour .tr-step button:disabled { opacity: .35; cursor: not-allowed; }
body.ca-tour .tr-step output { font-size: 18px; font-weight: 600; min-width: 2ch; text-align: center; }
body.ca-tour .tr-book input[type="date"] { width: 100%; min-height: 48px; padding: .6rem .9rem; border: 1px solid var(--tr-line); border-radius: var(--tr-radius-sm); background: var(--tr-bg); color: var(--tr-ink); font: 400 16px 'Jost', sans-serif; color-scheme: light; cursor: text; }
body.ca-tour .tr-book input:focus-visible, body.ca-tour .tr-step button:focus-visible, body.ca-tour .tr-cta:focus-visible { outline: 2px solid var(--tr-accent); outline-offset: 2px; }
body.ca-tour .tr-book input[aria-invalid="true"] { border-color: var(--tr-accent); background: var(--tr-tint); }
body.ca-tour .tr-hint, body.ca-tour .tr-cta-n { font-size: 14px; color: var(--tr-ink-2); margin: .45rem 0 0; line-height: 1.45; }
body.ca-tour .tr-cta-n { margin: -.4rem 0 0; text-align: center; }
body.ca-tour .tr-msg { font-size: 14px; font-weight: 500; color: var(--tr-accent); margin: .45rem 0 0; }
body.ca-tour .tr-cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 1.25rem; border: 0; border-radius: var(--tr-radius-sm); background: var(--wa-green); color: var(--ivory); font: 600 17px/1.2 'Jost', sans-serif; letter-spacing: .01em; text-transform: none; text-decoration: none; cursor: pointer; transition: background var(--ca-transition); }
body.ca-tour .tr-cta:hover { background: var(--wa-green-lt); color: var(--ivory); }
body.ca-tour .tr-trust { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--tr-line); display: grid; gap: .55rem; }
body.ca-tour .tr-trust li { display: flex; gap: .6rem; align-items: center; margin: 0; font-size: 15px; }
/* Tripadvisor's rating widget sits in the body after Included: the sticky card has no room left at 1366x650 (510 of
   544px used). With consent 'all' their script draws its own bordered box; without it the logo link stays, 24px tall. */
body.ca-tour .tr-proofrow { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.25rem; margin: -.35rem 0 .85rem; }
body.ca-tour .tr-proofrow .tr-rating { margin: 0; }
body.ca-tour .tr-proof { line-height: 0; padding: 0; margin: 0; }
body.ca-tour .tr-head > .tr-proof { margin: -.35rem 0 .85rem; }
body.ca-tour .tr-proof ul.TA_links { list-style: none; margin: 0; padding: 0; }
body.ca-tour .tr-proof ul.TA_links li { margin: 0; padding: 0; }
body.ca-tour .tr-proof ul.TA_links a { display: inline-flex; align-items: center; min-height: 44px; }
body.ca-tour .tr-proof ul.TA_links img { display: block; height: 24px; width: auto; }

/* More days */
body.ca-tour .tr-more { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--tr-line); }
body.ca-tour .tr-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
body.ca-tour .tr-card { display: block; text-decoration: none; color: var(--tr-ink); background: var(--tr-paper); border: 1px solid var(--tr-line); border-radius: var(--tr-radius); overflow: hidden; transition: box-shadow var(--ca-transition); }
body.ca-tour .tr-card:hover { box-shadow: var(--tr-shadow); color: var(--tr-ink); }
body.ca-tour .tr-card-img { aspect-ratio: 16 / 10; background: linear-gradient(150deg, var(--beige), color-mix(in srgb, var(--beige) 60%, var(--gold-pale))); }
body.ca-tour .tr-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.ca-tour .tr-card-img-type { display: flex; align-items: center; justify-content: center; padding: 1rem; background: var(--ui-tint); }
body.ca-tour .tr-card-img-type span { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.3; text-align: center; color: var(--ui-ink); }
body.ca-tour .tr-card h3 { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 17px; line-height: 1.35; margin: .9rem 1rem .3rem; color: var(--tr-ink); text-transform: none; letter-spacing: 0; text-align: left; }
body.ca-tour .tr-card p { margin: 0 1rem 1rem; font-size: 15px; color: var(--tr-ink-2); }

/* Mobile action bar: hidden on desktop */
body.ca-tour .tr-bar { display: none; }

@media (max-width: 960px) {
    body.ca-tour .tr-grid { grid-template-columns: minmax(0, 1fr); }
    body.ca-tour .tr-side { position: static; scroll-margin-top: 80px; }
    body.ca-tour .tr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.ca-tour .tr-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; align-items: center; justify-content: space-between; gap: 1rem;
        padding: .7rem var(--tr-gutter) calc(.7rem + env(safe-area-inset-bottom)); background: var(--tr-paper); border-top: 1px solid var(--tr-line); box-shadow: 0 -6px 20px color-mix(in srgb, var(--obsidian) 8%, transparent); transition: transform var(--ca-transition); }
    body.ca-tour .tr-bar div { display: grid; line-height: 1.25; }
    body.ca-tour .tr-bar strong { font-size: 18px; font-weight: 600; }
    body.ca-tour .tr-bar .tr-cta { width: auto; min-height: 48px; padding: 0 1.3rem; font-size: 16px; }
    body.ca-tour .tr-bar[data-hide] { transform: translateY(110%); }
    body.ca-tour .tr { padding-bottom: 80px; }
}
@media (max-width: 640px) {
    body.ca-tour .tr-crumb > :not(:nth-child(3)) { display: none; }
    /* Phones: the same 4:3 frame, a ux-snap carousel through every photo (Cem 2026-10-02; S2-2 primitives).
       ux.css gives the track, momentum, one-per-swipe and the 48px dots; this only sets the bleed and the frame. */
    body.ca-tour .tr-gallery.ux-snap { height: auto; margin: 0 calc(var(--tr-gutter) * -1) 0; border-radius: 0; grid-template-columns: none; grid-template-rows: none; }
    body.ca-tour .tr-gallery.ux-snap > .tr-ph:nth-child(n) { aspect-ratio: 4 / 3; display: block; grid-row: auto; grid-column: auto; }
    body.ca-tour .tr-gallery.ux-snap > div.tr-ph:not(.tr-ph-main) { display: none; }
    body.ca-tour .tr-gallery.ux-snap + .ux-snap-ui { margin: 0 0 .9rem; touch-action: none; user-select: none; }
    /* ux.js adds the dots row after first paint; until it does, hold the same height (target + the .9rem above) so the
       grid below never drops by a row (measured 2026-10-20: tr-grid 746 to 810, CLS 0.011). */
    body.ca-tour .tr-gallery.ux-snap[data-ux-dots]:not(:has(+ .ux-snap-ui)) { margin-bottom: calc(var(--ux-target, 48px) + .9rem); }
    body.ca-tour .tr-incl { grid-template-columns: 1fr; }
    body.ca-tour .tr-cards { grid-template-columns: 1fr; }
    body.ca-tour .tr-book { padding: 1.25rem; }
}

/* Frame (header, footer, consent bar, back-to-top) comes from ui.css on every ca-ui page (2026-10-03);
   the tour-only copy of it, and its obsidian consent bar, were removed. Only what is particular to this page stays. */
body.ca-tour .tr-wrap { padding-left: clamp(1.25rem, 5vw, 3rem); padding-right: clamp(1.25rem, 5vw, 3rem); }
body.ca-tour { --tr-gutter: clamp(1.25rem, 5vw, 3rem); }
@media (max-width: 960px) { body.ca-tour #ca-back-top { display: none !important; } }
/* Password form for partner previews */
body.ca-tour .tr-locked { max-width: 520px; padding-top: 4rem; padding-bottom: 6rem; }
body.ca-tour .tr-locked .post-password-form p { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
body.ca-tour .tr-locked label { display: grid; gap: .4rem; font-weight: 500; flex: 1 1 240px; }
body.ca-tour .tr-locked input[type="password"] { min-height: 48px; padding: .6rem .9rem; border: 1px solid var(--tr-line); border-radius: var(--tr-radius-sm); background: var(--tr-paper); font: 400 16px 'Jost', sans-serif; color: var(--tr-ink); }
body.ca-tour .tr-locked input[type="submit"] { min-height: 48px; padding: 0 1.5rem; border: 0; border-radius: var(--tr-radius-sm); background: var(--tr-ink); color: var(--ivory); font: 600 16px 'Jost', sans-serif; cursor: pointer; text-transform: none; letter-spacing: 0; }
/* Sticky must fit the window (UI checklist 7; Cem 2026-10-03, a laptop at 100% zoom is 1366x650). The card is
   compacted on short windows below; the cap is the safety net, so the card scrolls inside rather than spill. */
@media (min-width: 961px) {
    body.ca-tour .tr-book { max-height: calc(100vh - var(--tr-top, 84px) - 22px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (min-width: 961px) and (max-height: 900px) {
    body.ca-tour .tr-book { padding: 1.25rem; gap: .7rem; }
    body.ca-tour .tr-price { padding-bottom: .7rem; }
    body.ca-tour .tr-price-v { font-size: 1.5rem; }
    /* label beside its control instead of above it */
    body.ca-tour .tr-book .tr-field { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); align-items: center; column-gap: .75rem; }
    body.ca-tour .tr-book .tr-field .tr-label { margin: 0; }
    body.ca-tour .tr-book .tr-field .tr-hint, body.ca-tour .tr-book .tr-field .tr-msg { grid-column: 1 / -1; }
    body.ca-tour .tr-step { padding: .2rem; }
    body.ca-tour .tr-book .tr-cta { min-height: 50px; }
    body.ca-tour .tr-trust { padding-top: .7rem; gap: .3rem; }
    body.ca-tour .tr-trust li { font-size: 14px; line-height: 1.45; }
}
/* Motion beyond a colour fade is cancelled for readers who ask for less (UI checklist 5) */
@media (prefers-reduced-motion: reduce) {
    body.ca-tour .tr-bar, body.ca-tour .tr-card { transition: none; }
}

/* =============================================================================
   Benchmark gold, 2026-10-08 (factory/office/BENCHMARK-CLASSES-2026-10.md classes 7, 8, 12):
   rating line under the H1, one verbatim quote above the booking card, "Prefer email?" beside WhatsApp,
   three how-it-works steps in the card, the adapts line, and the price and practical questions.
   ============================================================================= */
body.ca-tour .tr-rating { margin: -.35rem 0 .85rem; font-size: 15px; font-weight: 500; }
body.ca-tour .tr-rating a { display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; color: var(--tr-ink); text-decoration: underline; text-decoration-color: var(--tr-line); text-underline-offset: 4px; }
body.ca-tour .tr-rating a:hover { text-decoration-color: var(--tr-accent); }
body.ca-tour .tr-stars { color: var(--tr-accent); letter-spacing: .08em; font-size: 16px; text-decoration: none; }

body.ca-tour .tr-adapt { display: flex; gap: .6rem; align-items: center; margin: 1.1rem 0 0; font-weight: 500; }

/* The column stretches to the grid's height so the card itself can stick; the quote above it scrolls away.
   The card keeps its own height, so the 1366x650 fit of the sticky element is unchanged. */
body.ca-tour .tr-side { position: static; align-self: stretch; display: flex; flex-direction: column; gap: 1rem; }
body.ca-tour .tr-book { position: sticky; top: calc(var(--tr-top, 84px) + 16px); }
body.ca-tour .tr-quote { margin: 0; padding: 1.1rem 1.25rem; border-radius: var(--tr-radius); background: var(--tr-tint); }
body.ca-tour .tr-quote blockquote { margin: 0; padding: 0; border: 0; background: none; font-family: 'Jost', sans-serif; font-style: normal; font-weight: 400; font-size: 16px; line-height: 1.55; color: var(--tr-ink); text-align: left; quotes: none; }
body.ca-tour .tr-quote blockquote::before, body.ca-tour .tr-quote blockquote::after { content: none; display: none; }
body.ca-tour .tr-quote blockquote p { margin: 0; font: inherit; color: inherit; }
body.ca-tour .tr-quote blockquote, body.ca-tour .tr-quote blockquote p { font-weight: 400 !important; letter-spacing: 0; }
body.ca-tour .tr-quote figcaption { margin: .6rem 0 0; font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--tr-ink-2); }
body.ca-tour .tr-quote figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

body.ca-tour .tr-mail { color: var(--tr-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--tr-accent); text-underline-offset: 3px; white-space: nowrap; }
body.ca-tour .tr-mail:hover { color: var(--tr-accent); }
body.ca-tour .tr-cta-n .tr-mail { display: inline-flex; align-items: center; min-height: 32px; padding: 0 .1rem; margin: -.35rem 0; vertical-align: middle; } /* WCAG 2.2 target >= 24px (QA LOW-2) */

body.ca-tour .tr-how { display: grid; gap: .45rem; }
body.ca-tour .tr-how ol { list-style: none; margin: 0; padding: 0; counter-reset: how; display: grid; gap: .4rem; }
body.ca-tour .tr-how li { position: relative; margin: 0; padding: 0 0 0 2rem; counter-increment: how; font-size: 14px; line-height: 1.45; color: var(--tr-ink); }
body.ca-tour .tr-how li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 1px solid var(--tr-line); font-size: 13px; font-weight: 600; line-height: 1; display: grid; place-items: center; color: var(--tr-ink); }

body.ca-tour .tr-faq { border-top: 1px solid var(--tr-line); }
body.ca-tour .tr-faq details { border-bottom: 1px solid var(--tr-line); }
body.ca-tour .tr-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 52px; padding: .75rem 0; font-size: 17px; font-weight: 600; color: var(--tr-ink); }
body.ca-tour .tr-faq summary::-webkit-details-marker { display: none; }
body.ca-tour .tr-faq summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; line-height: 1; color: var(--tr-accent); }
body.ca-tour .tr-faq details[open] summary::after { content: "\2212"; }
body.ca-tour .tr-faq summary:focus-visible { outline: 2px solid var(--tr-accent); outline-offset: 2px; }
body.ca-tour .tr-faq details p { margin: 0 0 1rem; color: var(--tr-ink-2); }
body.ca-tour .tr-faq details ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--tr-ink-2); }
body.ca-tour .tr-faq details li { margin: 0 0 .3rem; }

@media (max-width: 960px) {
    body.ca-tour .tr-book { position: static; }
    body.ca-tour .tr-bar div { gap: .1rem; }
    body.ca-tour .tr-bar strong { font-size: 16px; }
    body.ca-tour .tr-bar .tr-mail { font-size: 14px; padding: .15rem 0; }
}
@media (max-width: 400px) {
    body.ca-tour .tr-bar { gap: .6rem; }
    body.ca-tour .tr-bar .tr-cta { padding: 0 1rem; }
}
/* Short laptop windows: the chips above already say private and hotel pick-up, so the card drops those two
   trust lines to make room for the three steps and keeps "Nothing is charged to ask". */
@media (min-width: 961px) and (max-height: 900px) {
    body.ca-tour .tr-trust li:not(:last-child) { display: none; }
    body.ca-tour .tr-trust li.tr-cancel { display: flex; } /* the cancellation line is a decision fact: it stays */
    body.ca-tour .tr-book { gap: .55rem; }
    body.ca-tour .tr-cta-n { margin: 0; }
    body.ca-tour .tr-price { padding-bottom: .5rem; }
    body.ca-tour .tr-book .tr-hint { margin-top: .3rem; }
    body.ca-tour .tr-trust { padding-top: .5rem; }
    body.ca-tour .tr-how { gap: .3rem; }
    body.ca-tour .tr-how ol { gap: .25rem; }
    body.ca-tour .tr-how li { font-size: 13.5px; line-height: 1.4; }
}
body.ca-tour .tr-main > .tr-sec:last-child { margin-bottom: 0; padding-bottom: 0; }

/* =============================================================================
   S2-2 native feel + S2-3 desktop craft (2026-10-08, m-home-tour).
   ============================================================================= */
/* Laptop and up: the gallery element carries ux-snap for phones; here it is the photo grid again (beats ux.css). */
@media (min-width: 641px) {
    body.ca-tour .tr-gallery.ux-snap { display: grid; grid-auto-flow: row; grid-auto-columns: auto; overflow: hidden;
        scroll-snap-type: none; padding-inline: 0; scroll-padding-inline: 0; scroll-behavior: auto; }
    body.ca-tour .tr-gallery.ux-snap > * { scroll-snap-align: none; }
    body.ca-tour .tr-gallery.ux-snap + .ux-snap-ui { display: none; }
    body.ca-tour .tr-gallery.ux-snap:focus-visible { outline-offset: 2px; }
}

/* Booking sheet (to 960px): the bar opens it, tour.js moves the one form in. The card's own frame falls away
   inside the sheet; the sheet is the card. */
body.ca-tour .tr-sheet-h { min-width: 0; }
body.ca-tour .tr-sheet .ux-sheet-head h2 { font-family: 'Jost', sans-serif !important; font-weight: 600; font-size: 20px; line-height: 1.25; margin: 0; color: var(--tr-ink); text-transform: none; letter-spacing: 0; }
body.ca-tour .tr-sheet-sub { margin: .15rem 0 0; font-size: 14px; line-height: 1.4; color: var(--tr-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body.ca-tour .tr-sheet .tr-book.tr-book { position: static; max-height: none; overflow: visible; border: 0 !important; box-shadow: none !important; padding: .25rem 0 0; background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-radius: 0 !important; gap: 1rem; }
body.ca-tour .tr-sheet .tr-book input[type="date"] { min-height: 52px; }
body.ca-tour .tr-sheet .tr-step button { width: 48px; height: 48px; }
body.ca-tour .tr-book-hold { border-radius: var(--tr-radius); background: var(--tr-tint); }
@media (min-width: 961px) { body.ca-tour .tr-sheet { display: none !important; } }

/* Phone bar: thumb reach and safe area via the frame's tokens */
@media (max-width: 960px) {
    body.ca-tour .tr-bar { padding-bottom: calc(.7rem + var(--ux-safe-bottom, env(safe-area-inset-bottom))); padding-left: calc(var(--tr-gutter) + var(--ux-safe-left, 0px)); padding-right: calc(var(--tr-gutter) + var(--ux-safe-right, 0px)); }
    body.ca-tour .tr-bar .tr-cta { min-height: 50px; }
}

/* FAQ: accordions (one open at a time, name="tr-faq") with tap feedback that needs no hover */
body.ca-tour .tr-faq summary { position: relative; border-radius: var(--tr-radius-sm); -webkit-user-select: none; user-select: none; }
body.ca-tour .tr-faq summary::before { content: ""; position: absolute; inset: 0 -.6rem; border-radius: inherit; background: var(--ux-tap-tint, var(--tr-tint)); opacity: 0; pointer-events: none; z-index: -1; }
body.ca-tour .tr-faq summary:active::before { opacity: 1; }
body.ca-tour .tr-faq details { isolation: isolate; }
@media (hover: hover) and (pointer: fine) { body.ca-tour .tr-faq summary:hover { color: var(--tr-accent); } }
@media (prefers-reduced-motion: no-preference) {
    body.ca-tour .tr-faq summary::after { transition: transform 240ms var(--ux-ease, ease); }
    body.ca-tour .tr-faq details[open] summary::after { transform: rotate(180deg); }
    @supports (interpolate-size: allow-keywords) {
        body.ca-tour .tr-faq { interpolate-size: allow-keywords; }
        body.ca-tour .tr-faq details::details-content { height: 0; overflow: clip; transition: height 280ms var(--ux-ease, ease), content-visibility 280ms allow-discrete; }
        body.ca-tour .tr-faq details[open]::details-content { height: auto; }
    }
}

/* Desktop craft, 1440 and 1920 (S2-3): a taller gallery at large widths, reading measure held near 70 characters,
   the sticky card a touch wider with air above it. */
@media (min-width: 1280px) {
    /* .tr-wrap keeps the shared 1200 frame: the header uses the same frame and gutter (ui.css, S2 close). */
    body.ca-tour .tr-gallery { height: min(clamp(430px, 34vw, 520px), max(430px, 52vh)); }
    body.ca-tour .tr-title { text-wrap: balance; max-width: 30em; }
    body.ca-tour .tr-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 4.5rem; }
    body.ca-tour .tr-sec p, body.ca-tour .tr-stops p, body.ca-tour .tr-ul li { max-width: 68ch; }
}
@media (min-width: 1280px) and (min-height: 901px) {
    body.ca-tour .tr-book { top: calc(var(--tr-top, 84px) + 28px); }
}

/* Our price (Cem 2026-10-10): party total under the stepper, the party-size table folded under it, and the
   2-guest note in the phone bar. Whole-party totals only, never per person. */
body.ca-tour .tr-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin: .6rem 0 0; padding: .55rem .8rem; border-radius: var(--tr-radius-sm); background: var(--tr-tint); font-size: 15px; color: var(--tr-ink); }
body.ca-tour .tr-total[hidden] { display: none; }
body.ca-tour .tr-total b { font-weight: 600; }
body.ca-tour .tr-total strong { font-size: 17px; font-weight: 600; white-space: nowrap; }
body.ca-tour .tr-ptab { grid-column: 1 / -1; margin: .45rem 0 0; font-size: 14px; color: var(--tr-ink-2); }
body.ca-tour .tr-ptab summary { cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; text-decoration: underline; text-decoration-color: var(--tr-line); text-underline-offset: 4px; }
body.ca-tour .tr-ptab table { width: 100%; margin: .35rem 0 0; border-collapse: collapse; font-size: 14px; color: var(--tr-ink); }
body.ca-tour .tr-ptab th { font-size: 13px; font-weight: 500; color: var(--tr-ink-2); text-align: left; padding: .3rem .5rem; border-bottom: 1px solid var(--tr-line); }
body.ca-tour .tr-ptab th:last-child, body.ca-tour .tr-ptab td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
body.ca-tour .tr-ptab td { padding: .3rem .5rem; border-bottom: 1px solid var(--tr-line); }
body.ca-tour .tr-ptab tr[aria-current] td { background: var(--tr-tint); font-weight: 600; }
body.ca-tour .tr-bar .tr-bar-n { font-size: 13px; color: var(--tr-ink-2); }
@media (min-width: 961px) and (max-height: 900px) {
    body.ca-tour .tr-total { margin-top: .35rem; padding: .4rem .7rem; }
}

/* Phone polish before go-live (2026-10-15, S3-0 and S3-5):
   - the section tabs read through the 64% glass of the bottom bar: glass.css gives the bottom bars a denser tint;
   - "Pick-up" was cut at 390: tighter tabs, and the strip fades at its right edge
     so the cut reads as "scroll", not as a broken word. */
@media (max-width: 430px) {
    body.ca-tour .tr-secnav { gap: 0; }
    body.ca-tour .tr-secnav a { padding: .85rem .55rem; font-size: 15px; }
}
@media (max-width: 430px) {   /* five tabs overflow every phone width (382px of strip) */
    body.ca-tour .tr-secnav { -webkit-mask-image: linear-gradient(to right, var(--obsidian) calc(100% - 28px), transparent);
                              mask-image: linear-gradient(to right, var(--obsidian) calc(100% - 28px), transparent); }
}
