/*
 * The home hero, the "roadbook" (resources/views/common/hero/_roadbook.blade.php, public/js/home-hero-roadbook.js,
 * App\Support\Home\HomeHero).
 *
 * One markup for every width. From 1024px up the hero is a full-frame photo with the title and the search on the left and
 * the roadbook box on the right; below it is the photo with the text and the search under it. Mobile first: the rules
 * outside the media query are the phone, the 1024px block redraws the desktop.
 *
 * Where the photo sits: each stop carries --fx/--fy (where the vehicle is in the photo), --ar (the photo's ratio) and, per
 * mode (d desktop, m mobile), --vx/--vy (where the vehicle must land in the hero) and --wa/--wb (the two widths that make
 * the photo cover the hero, in cqw and cqh). The photo's box is the larger of the two, placed so the point (fx, fy) of the
 * photo falls on (vx, vy) of the hero. The marker sits at (fx, fy) in the box, so it stays on the vehicle at every size.
 * The size container is .rb on desktop and .rb-stage on a phone.
 *
 * Colours, type, radii and shadows come from the site's tokens (style.css); translucent panels and lines are built from a
 * token with color-mix.
 */

.rb {
    /* The header is pinned at 75px (.navbar-75) while .first-element only pads the page by 48px (64px from 768px):
       the hero starts under the header, and fills the screen down from it. */
    --rb-header: 75px;
    --rb-top: var(--r2e-space-12);
    --rb-ink: var(--r2e-secondary-100);
    --rb-accent: var(--bs-danger);
    --rb-panel: color-mix(in srgb, var(--r2e-secondary-800) 50%, transparent);
    --rb-panel-solid: color-mix(in srgb, var(--r2e-secondary-800) 88%, transparent);
    --rb-line: color-mix(in srgb, white 22%, transparent);
    --rb-ring: 64px;
    /* The trust bar under the hero (.home-trust-bar, home-hero-search.css) and how much of the next section shows under it:
       the hero is the screen minus the header, the bar and this peek, so the bar is always in view. */
    --rb-trust: 46px;
    --rb-peek: 0px;
    position: relative;
    z-index: 3;
    /* style.css pads every section; the size container below must be the whole hero. */
    padding: 0;
    display: flex;
    flex-direction: column;
    margin-top: calc(var(--rb-header) - var(--rb-top));
    min-height: calc(100vh - var(--rb-header) - var(--rb-trust) - var(--rb-peek));
    min-height: calc(100svh - var(--rb-header) - var(--rb-trust) - var(--rb-peek));
    background: var(--bs-secondary);
    color: var(--rb-ink);
    font-family: inherit;
}
@media (min-width: 768px) {
    .rb { --rb-top: var(--r2e-space-16); }
}
.rb [hidden] { display: none !important; }
.rb button { font-family: inherit; }
.rb button:focus-visible,
.rb a:focus-visible {
    outline: 2px solid var(--rb-ink);
    outline-offset: 3px;
}

/* Text kept for screen readers only. */
.rb-sr,
.rb-step-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* The shared bits: a small caps label, a value, a bar. */
.rb-k {
    display: block;
    font-size: var(--r2e-text-xs);
    font-weight: 600;
    letter-spacing: var(--r2e-tracking-caps);
    text-transform: uppercase;
    line-height: var(--r2e-leading-tight);
    color: color-mix(in srgb, var(--rb-ink) 70%, transparent);
}
.rb-v {
    display: block;
    font-size: var(--r2e-text-base);
    font-weight: 600;
    line-height: var(--r2e-leading-snug);
    color: var(--rb-ink);
}
.rb-bar {
    display: block;
    height: 3px;
    border-radius: var(--r2e-radius-pill);
    background: var(--rb-line);
    overflow: hidden;
}
.rb-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--rb-accent);
    transform: scaleX(0);
    transform-origin: left center;
}

/* ---------- The stage: the photos and everything drawn over them ---------- */

.rb-stage {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-height: 160px;
    overflow: hidden;
    container-type: size;
}
.rb-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.4s ease;
}
.rb-layer.is-active { opacity: 1; }

.rb-box {
    --vx: var(--vx-m);
    --vy: var(--vy-m);
    --wa: var(--wa-m);
    --wb: var(--wb-m);
    --w: max(calc(var(--wa) * 1cqw), calc(var(--wb) * 1cqh));
    position: absolute;
    width: var(--w);
    aspect-ratio: var(--ar);
    left: calc(var(--vx) * 100cqw - var(--fx) * var(--w));
    top: calc(var(--vy) * 100cqh - var(--fy) * var(--w) / var(--ar));
    transform-origin: calc(var(--fx) * 100%) calc(var(--fy) * 100%);
    animation: rb-zoom 26s ease-in-out infinite alternate;
    animation-play-state: paused;
}
.rb-layer.is-active .rb-box { animation-play-state: running; }
.rb-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

/* The gradient under the text: a band at the foot of the photo on a phone, a veil on the left on desktop. */
.rb-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 90px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(var(--bs-secondary-rgb), 0), rgba(var(--bs-secondary-rgb), 0.85));
}

/* ---------- The marker ---------- */

.rb-marker {
    position: absolute;
    left: calc(var(--fx) * 100%);
    top: calc(var(--fy) * 100%);
    width: 0;
    height: 0;
}
.rb-halo,
.rb-ring {
    position: absolute;
    left: calc(var(--rb-ring) / -2);
    top: calc(var(--rb-ring) / -2);
    width: var(--rb-ring);
    height: var(--rb-ring);
    border-radius: 50%;
}
.rb-halo {
    border: 2px solid var(--rb-accent);
    pointer-events: none;
    animation: rb-ping 2.6s ease-out infinite;
    animation-play-state: paused;
}
.rb-layer.is-active .rb-halo { animation-play-state: running; }
.rb-ring {
    padding: 0;
    border: 3px solid var(--rb-accent);
    background: color-mix(in srgb, var(--rb-accent) 10%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, black 25%, transparent);
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.rb-ring::after {
    content: "";
    position: absolute;
    inset: min(0px, calc((var(--rb-ring) - 98px) / 2));
    border-radius: 50%;
}
.rb-layer.is-active .rb-ring { pointer-events: auto; }
.rb-ring:hover,
.rb[data-lock="1"] .rb-layer.is-active .rb-ring { background: color-mix(in srgb, var(--rb-accent) 24%, transparent); }

/* The viewfinder that locks on the vehicle: four corners and four ticks. */
.rb-vf {
    --vf: calc(var(--rb-ring) * 1.5);
    position: absolute;
    left: calc(var(--vf) / -2);
    top: calc(var(--vf) / -2);
    width: var(--vf);
    height: var(--vf);
    display: none;
    pointer-events: none;
}
.rb[data-lock="1"] .rb-layer.is-active .rb-vf {
    display: block;
    animation: rb-lock 450ms ease-out;
}
.rb-vf i {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 0 solid var(--rb-accent);
}
.rb-vf i:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; }
.rb-vf i:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; }
.rb-vf i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; }
.rb-vf i:nth-child(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; }
.rb-vf b {
    position: absolute;
    background: var(--rb-accent);
}
.rb-vf b:nth-of-type(1) { left: 50%; top: calc(var(--r2e-space-2) * -1); width: 2px; height: var(--r2e-space-2); }
.rb-vf b:nth-of-type(2) { left: 50%; bottom: calc(var(--r2e-space-2) * -1); width: 2px; height: var(--r2e-space-2); }
.rb-vf b:nth-of-type(3) { top: 50%; left: calc(var(--r2e-space-2) * -1); height: 2px; width: var(--r2e-space-2); }
.rb-vf b:nth-of-type(4) { top: 50%; right: calc(var(--r2e-space-2) * -1); height: 2px; width: var(--r2e-space-2); }

/* The label to the right of the ring. */
.rb-tag {
    position: absolute;
    left: calc(var(--rb-ring) / 2 + var(--r2e-space-3));
    top: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: var(--r2e-space-3);
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 1px 3px color-mix(in srgb, black 60%, transparent);
}
.rb-tag-line {
    width: calc(var(--r2e-space-1) * 7);
    height: 2px;
    background: var(--rb-accent);
}
.rb-tag-text { display: block; }
.rb-tag-name,
.rb-tag-coords { display: block; }
.rb-tag-name {
    font-size: var(--r2e-text-sm);
    font-weight: 600;
    letter-spacing: var(--r2e-tracking-cta);
    text-transform: uppercase;
    color: white;
}
.rb-tag-coords {
    font-size: var(--r2e-text-xs);
    font-variant-numeric: tabular-nums;
    color: var(--rb-ink);
}

/* The vehicle card (desktop): hidden on a phone, where the same lines open in the top left pane. */
.rb-vcard {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + var(--r2e-space-4));
    width: calc(var(--r2e-space-16) * 4);
    padding: var(--r2e-space-3) var(--r2e-space-4);
    border: 1px solid var(--rb-line);
    border-radius: var(--r2e-radius);
    background: var(--rb-panel-solid);
    white-space: normal;
    text-shadow: none;
    gap: var(--r2e-space-1);
    animation: rb-pop 280ms ease-out;
}
.rb-layer.is-active .rb-vcard { pointer-events: auto; }
/* The same two tight columns as the phone card, so the card stays short and fits between the roadbook box, the label and
   the steps: what the vehicle is on the left, its price on the name's line and the button on the spec's line. */
.rb-vcard {
    width: max-content;
    max-width: min(380px, 34cqw);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title title"
        "name  price"
        "spec  link";
    align-items: center;
    column-gap: var(--r2e-space-4);
    row-gap: var(--r2e-space-1);
}
.rb-vcard > .rb-vcard-title { grid-area: title; }
.rb-vcard > .rb-vcard-name { grid-area: name; }
.rb-vcard > .rb-vcard-price { grid-area: price; justify-self: end; white-space: nowrap; }
.rb-vcard > .rb-vcard-spec { grid-area: spec; }
.rb-vcard > .rb-vcard-link {
    grid-area: link;
    justify-self: end;
    margin: 0;
    padding: var(--r2e-space-1) var(--r2e-space-3);
    line-height: var(--r2e-leading-snug);
    white-space: nowrap;
}
/* Placed by public/js/home-hero-roadbook.js when the card above the label would land on the roadbook box. */
.rb-vcard.is-below { bottom: auto; top: calc(100% + var(--r2e-space-4)); }
.rb[data-road-aside="1"] .rb-road { opacity: 0; pointer-events: none; }
.rb-vcard-title {
    display: flex;
    align-items: center;
    gap: var(--r2e-space-2);
    font-size: var(--r2e-text-xs);
    font-weight: 700;
    letter-spacing: var(--r2e-tracking-caps);
    text-transform: uppercase;
    color: var(--r2e-danger-400);
}
.rb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rb-accent);
    animation: rb-blink 1s steps(2) infinite;
}
.rb-vcard-name { font-size: var(--r2e-text-base); font-weight: 700; line-height: var(--r2e-leading-snug); }
.rb-vcard-spec { font-size: var(--r2e-text-sm); color: color-mix(in srgb, var(--rb-ink) 80%, transparent); }
.rb-vcard-price { font-size: var(--r2e-text-sm); }
.rb-vcard-price strong { font-size: var(--r2e-text-base); font-weight: 700; }
.rb-vcard-link,
.rb-btn {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: var(--r2e-space-2);
    margin-top: var(--r2e-space-2);
    padding: var(--r2e-space-2) var(--r2e-space-4);
    border-radius: var(--r2e-radius);
    background: var(--rb-accent);
    color: white;
    font-size: var(--r2e-text-sm);
    font-weight: 600;
    text-decoration: none;
}
.rb-vcard-link:hover,
.rb-btn:hover { background: var(--r2e-danger-600); color: white; }

/* ---------- The info panels ---------- */

/* Desktop only: the roadbook box. */
.rb-road { display: none; }

/* Phone: one panel top left that becomes the guide or the vehicle. */
.rb-hud {
    position: absolute;
    z-index: 4;
    left: calc(var(--r2e-space-1) * 2.5);
    top: calc(var(--r2e-space-1) * 2.5);
}
.rb[data-guide="1"] .rb-hud,
.rb[data-lock="1"] .rb-hud { right: calc(var(--r2e-space-1) * 2.5); }
.rb-hud-info,
.rb-hud-guide,
.rb-hud-vehicle {
    border: 1px solid var(--rb-line);
    border-radius: var(--r2e-radius);
    background: var(--rb-panel);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--rb-ink);
}
.rb-hud-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--r2e-space-2) calc(var(--r2e-space-1) * 2.5);
    padding: calc(var(--r2e-space-1) * 2) calc(var(--r2e-space-1) * 3);
    text-align: left;
    cursor: pointer;
}
.rb-hud-info .rb-v { font-size: var(--r2e-text-sm); }
.rb-hud-sep { width: 1px; align-self: stretch; background: var(--rb-line); }
.rb-hud-info .rb-bar { flex: 1 0 100%; height: 2px; }
.rb-pin {
    position: relative;
    display: inline-flex;
    color: var(--rb-accent);
}
.rb-pin svg { animation: rb-hop 2.4s ease-in-out infinite; }
.rb-pin-shadow {
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 10px;
    height: 3px;
    margin-left: calc(var(--r2e-space-1) * -1.25);
    border-radius: 50%;
    background: color-mix(in srgb, black 45%, transparent);
    animation: rb-pin-shadow 2.4s ease-in-out infinite;
}
.rb-hud-guide,
.rb-hud-vehicle {
    display: none;
    align-items: flex-start;
    gap: calc(var(--r2e-space-1) * 2.5);
    padding: calc(var(--r2e-space-1) * 2.5) var(--r2e-space-3);
    background: color-mix(in srgb, var(--r2e-secondary-800) 85%, transparent);
    animation: rb-pop 280ms ease-out;
}
.rb[data-guide="1"] .rb-hud-guide,
.rb[data-lock="1"] .rb-hud-vehicle { display: flex; }
.rb[data-guide="1"] .rb-hud-info,
.rb[data-lock="1"] .rb-hud-info { display: none; }
.rb-back,
.rb-x {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--rb-line);
    border-radius: 50%;
    background: transparent;
    color: var(--rb-ink);
    font-size: var(--r2e-text-base);
    line-height: 1;
    cursor: pointer;
}
.rb-back:hover,
.rb-x:hover { background: var(--rb-line); }
/* Two tight columns: what the vehicle is on the left (title, name, spec), what it costs and where to go on the right
   (price on the name's line, a compact button on the spec's line). No row is taller than its content, so the spec sits
   right under the name. */
.rb-hud-vehicle-text {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title title"
        "name  price"
        "spec  btn";
    align-items: center;
    column-gap: var(--r2e-space-3);
    row-gap: var(--r2e-space-1);
    min-width: 0;
}
.rb-hud-vehicle-text > .rb-vcard-title { grid-area: title; }
.rb-hud-vehicle-text > .rb-vcard-name { grid-area: name; }
.rb-hud-vehicle-text > .rb-vcard-price { grid-area: price; justify-self: end; white-space: nowrap; }
.rb-hud-vehicle-text > .rb-vcard-spec { grid-area: spec; }
.rb-hud-vehicle-text > .rb-btn {
    grid-area: btn;
    justify-self: end;
    margin: 0;
    padding: var(--r2e-space-1) var(--r2e-space-3);
    line-height: var(--r2e-leading-snug);
    white-space: nowrap;
}

/* The guide: a book cover, what it is, where it is sold. */
.rb-book {
    flex: none;
    width: 58px;
    height: auto;
    border-radius: var(--r2e-radius-sm);
    box-shadow: var(--r2e-shadow-sm);
}
.rb-guide-text { display: grid; gap: var(--r2e-space-1); min-width: 0; }
.rb-guide-title {
    font-size: var(--r2e-text-xs);
    font-weight: 700;
    letter-spacing: var(--r2e-tracking-caps);
    text-transform: uppercase;
    color: var(--r2e-primary-300);
}
.rb-guide-tag {
    font-size: var(--r2e-text-xs);
    font-weight: 600;
    letter-spacing: var(--r2e-tracking-caps);
    text-transform: uppercase;
    color: color-mix(in srgb, var(--rb-ink) 80%, transparent);
}
.rb-guide-track { font-size: var(--r2e-text-sm); color: color-mix(in srgb, var(--rb-ink) 85%, transparent); }
.rb-guide-link {
    justify-self: start;
    font-size: var(--r2e-text-sm);
    font-weight: 600;
    color: var(--rb-accent);
    text-decoration: none;
}
.rb-guide-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.rb-guide-soon { font-size: var(--r2e-text-sm); font-style: italic; color: color-mix(in srgb, var(--rb-ink) 80%, transparent); }

/* ---------- The steps ---------- */

.rb-steps {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 var(--r2e-space-4) var(--r2e-space-1);
}
.rb-steps-cap {
    display: block;
    margin-bottom: var(--r2e-space-1);
    font-size: var(--r2e-text-sm);
    font-weight: 600;
    text-shadow: 0 1px 3px color-mix(in srgb, black 60%, transparent);
}
.rb-steps-list { display: flex; gap: calc(var(--r2e-space-1) * 1.5); }
.rb-step {
    position: relative;
    flex: 1 1 0;
    padding: var(--r2e-space-2) 0;
    border: 0;
    background: transparent;
    color: var(--rb-ink);
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.rb-step.is-active,
.rb-step:hover { opacity: 1; }
.rb-step .rb-bar { margin: 0; }
/* Phone touch (Victor, 2026-11-14): the thin bar and its label sit in a 44px button. */
@media (max-width: 767.98px) {
    .rb-step { min-height: var(--r2e-tap-target); }
}
.rb-step.is-done .rb-fill { transform: scaleX(1); }

/* ---------- The title, the tagline and the search ---------- */

.rb-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: calc(var(--r2e-space-1) * 3);
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: calc(var(--r2e-space-1) * 3.5) calc(var(--r2e-space-1) * 5) calc(var(--r2e-space-1) * 5.5);
}
.rb-title {
    margin: 0;
    font-size: var(--r2e-text-4xl);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: var(--r2e-tracking-tight);
    color: var(--rb-ink);
}
@media (max-width: 379.98px) {
    .rb-title { font-size: var(--r2e-text-3xl); }
}
.rb-title-1 { display: block; color: var(--bs-primary); }
.rb-title-2 { display: block; }
.rb-tagline {
    margin: 0;
    font-size: var(--r2e-text-sm);
    line-height: var(--r2e-leading-body);
    color: color-mix(in srgb, var(--rb-ink) 90%, transparent);
}
.rb-tagline-accent { font-weight: 700; color: var(--r2e-danger-600); }
.rb-tagline-underline {
    font-weight: 700;
    color: var(--rb-ink);
    text-decoration: underline;
    text-decoration-color: var(--rb-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* The search card, compact: one column, the labels left to screen readers, a 44px control per row. */
.rb .home-hero-search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: var(--r2e-space-2);
    padding: var(--r2e-space-3);
    border-radius: var(--r2e-radius-lg);
}
.rb .home-hero-search .hhs-group,
.rb .home-hero-search .hhs-group-dates,
.rb .home-hero-search .hhs-group-btn { min-width: 0; width: 100%; }
.rb .home-hero-search .hhs-group-btn .hhs-label { display: none; }
.rb .home-hero-search .hhs-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.rb .home-hero-search .hhs-group { position: relative; }
.rb .home-hero-search .hhs-input,
.rb .home-hero-search .hhs-btn { height: 44px; }
.rb .home-hero-search .r2e-country-choices .choices__inner { height: 44px; min-height: 44px; }
.rb .home-hero-search .hhs-btn { width: 100%; }

/* ---------- Desktop ---------- */

@media (min-width: 1024px) {
    .rb {
        --rb-ring: 110px;
        display: block;
        --rb-trust: 42px;
        /* The peek of the next section grows with the screen: a 14-inch laptop (about 620px of viewport) keeps the trust bar
           and a strip of white under it in view, a tall screen shows up to 140px of the next section. */
        --rb-peek: clamp(24px, 8vh, 140px);
        /* The screen minus the header, the trust bar and the peek, kept between 420px (the text and search column still fit)
           and 960px. */
        height: clamp(420px, calc(100vh - var(--rb-header) - var(--rb-trust) - var(--rb-peek)), 960px);
        height: clamp(420px, calc(100svh - var(--rb-header) - var(--rb-trust) - var(--rb-peek)), 960px);
        min-height: 0;
        container-type: size;
    }
    .rb-stage {
        position: absolute;
        inset: 0;
        min-height: 0;
        container-type: normal;
    }
    .rb-box {
        --vx: var(--vx-d);
        --vy: var(--vy-d);
        --wa: var(--wa-d);
        --wb: var(--wb-d);
        --rb-foot: 190px;
    }
    /* A dark band at the foot of the hero so the step labels read on a pale photo. It is drawn inside the photo's box, after the
       photo and before the marker, so it sits over the photo and under the marker; the offsets cancel the box's own placement
       to pin it to the bottom of the hero. */
    .rb-box::before {
        content: "";
        position: absolute;
        left: calc((var(--vx) * 100cqw - var(--fx) * var(--w)) * -1);
        width: 100cqw;
        top: calc(100cqh - var(--rb-foot) - (var(--vy) * 100cqh - var(--fy) * var(--w) / var(--ar)));
        height: calc(var(--rb-foot) + 120px);
        pointer-events: none;
        background: linear-gradient(to bottom,
            color-mix(in srgb, var(--r2e-secondary-800) 0%, transparent) 0,
            color-mix(in srgb, var(--r2e-secondary-800) 45%, transparent) calc(var(--rb-foot) * 0.55),
            color-mix(in srgb, var(--r2e-secondary-800) 85%, transparent) var(--rb-foot),
            color-mix(in srgb, var(--r2e-secondary-800) 85%, transparent) 100%);
    }
    .rb-shade {
        inset: 0;
        height: auto;
        background: linear-gradient(90deg,
            rgba(var(--bs-secondary-rgb), 0.94) 0%,
            rgba(var(--bs-secondary-rgb), 0.7) 38%,
            rgba(var(--bs-secondary-rgb), 0) 60%);
    }

    .rb-tag { left: calc(var(--rb-ring) / 2 + var(--r2e-space-4)); gap: var(--r2e-space-4); }
    .rb-tag-line { width: calc(var(--r2e-space-1) * 10); }
    .rb-tag-name { font-size: var(--r2e-text-base); }
    .rb-tag-coords { font-size: var(--r2e-text-sm); }
    .rb[data-lock="1"] .rb-layer.is-active .rb-vcard { display: grid; }

    .rb-hud { display: none; }

    /* The roadbook box, top right. */
    .rb-road {
        position: absolute;
        z-index: 4;
        display: block;
        right: 3cqw;
        top: 5cqh;
        padding: var(--r2e-space-4) calc(var(--r2e-space-1) * 4.5);
        border: 1px solid var(--rb-line);
        border-radius: var(--r2e-radius);
        background: var(--rb-panel);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }
    .rb-road-stats { display: grid; grid-template-columns: repeat(3, auto); gap: var(--r2e-space-1) var(--r2e-space-8); }
    .rb-road .rb-bar { height: 2px; margin: calc(var(--r2e-space-1) * 2.5) 0; }
    .rb-road-line { display: flex; align-items: center; gap: calc(var(--r2e-space-1) * 2.5); }
    .rb-road-track { flex: 1; font-size: var(--r2e-text-sm); font-weight: 600; }
    .rb-q {
        flex: none;
        width: 19px;
        height: 19px;
        padding: 0;
        border: 1.5px solid var(--rb-accent);
        border-radius: 50%;
        background: transparent;
        color: var(--rb-accent);
        font-size: var(--r2e-text-xs);
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
    }
    .rb-q:hover,
    .rb[data-guide="1"] .rb-q { background: color-mix(in srgb, var(--rb-accent) 20%, transparent); }

    .rb-guide {
        position: absolute;
        top: calc(100% + var(--r2e-space-3) - 2px);
        right: 0;
        display: none;
        align-items: flex-start;
        gap: var(--r2e-space-4);
        width: min(450px, max(34cqw, 340px));
        padding: var(--r2e-space-4);
        padding-right: calc(var(--r2e-space-8) + var(--r2e-space-3));
        border: 1px solid var(--rb-line);
        border-radius: var(--r2e-radius);
        background: var(--rb-panel-solid);
        animation: rb-pop 280ms ease-out;
    }
    .rb[data-guide="1"] .rb-guide { display: flex; }
    .rb-guide .rb-book { width: 96px; }
    /* The subtitle stays on one line; it may run into the card's right padding, below the close button. */
    .rb-guide-tag {
        white-space: nowrap;
        font-size: clamp(10px, 0.85cqw, var(--r2e-text-xs));
    }
    .rb-guide .rb-x {
        position: absolute;
        top: var(--r2e-space-2);
        right: var(--r2e-space-2);
        width: 28px;
        height: 28px;
    }

    .rb-steps {
        left: auto;
        right: 3cqw;
        bottom: 5cqh;
        padding: 0;
    }
    .rb-steps-cap { display: none; }
    .rb-steps-list { gap: var(--r2e-space-6); }
    .rb-step { flex: none; width: 112px; text-align: left; }
    .rb-step-label {
        position: static;
        width: auto;
        height: auto;
        margin: 0 0 var(--r2e-space-2);
        overflow: visible;
        clip: auto;
        display: block;
        font-size: var(--r2e-text-xs);
        font-weight: 600;
        letter-spacing: var(--r2e-tracking-caps);
        text-transform: uppercase;
    }
    .rb-step .rb-bar { height: 2px; }

    /* The title, the tagline and the search sit over the veil, on the left, on the page's container edge, under the logo
       (the previous hero's place): Bootstrap's container width per breakpoint, plus its 12px gutter. */
    .rb { --rb-wrap: 960px; }
    .rb-copy {
        position: absolute;
        left: max(32px, calc((100cqw - var(--rb-wrap)) / 2 + 12px));
        top: 19cqh;
        width: min(760px, 50cqw);
        max-width: none;
        margin: 0;
        padding: 0;
        gap: 0;
    }
    .rb-title {
        font-size: clamp(44px, 4cqw, 76px);
        line-height: var(--r2e-leading-tight);
    }
    .rb-tagline {
        max-width: 34em;
        margin: var(--r2e-space-4) 0 var(--r2e-space-8);
        font-size: clamp(17px, 1.15cqw, 22px);
    }

    .rb .home-hero-search {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        width: min(700px, max(46cqw, 560px));
        gap: var(--r2e-space-4);
        padding: var(--r2e-space-6);
    }
    .rb .home-hero-search .hhs-group { flex: 1 1 150px; width: auto; min-width: 0; }
    .rb .home-hero-search .hhs-group-dates { flex: 1.6 1 200px; width: auto; }
    .rb .home-hero-search .hhs-group-btn { flex: 0 0 auto; width: auto; }
    .rb .home-hero-search .hhs-group-btn .hhs-label { display: block; }
    .rb .home-hero-search .hhs-label {
        position: static;
        width: auto;
        height: auto;
        margin: 0 0 var(--r2e-space-1);
        overflow: visible;
        clip: auto;
        white-space: normal;
    }
    .rb .home-hero-search .hhs-input,
    .rb .home-hero-search .hhs-btn { height: 46px; }
    .rb .home-hero-search .r2e-country-choices .choices__inner { height: 46px; min-height: 46px; }
    /* The button reads "Search" next to its icon and sits on the fields' line: same height, same bottom edge. */
    .rb .home-hero-search .hhs-group-btn .hhs-label { display: none; }
    .rb .home-hero-search .hhs-group-btn { align-self: flex-end; display: flex; }
    .rb .home-hero-search .hhs-btn { width: auto; margin: 0; padding: 0 var(--r2e-space-6); font-weight: 700; }
}
@media (min-width: 1200px) {
    .rb { --rb-wrap: 1140px; }
}
@media (min-width: 1400px) {
    .rb { --rb-wrap: 1320px; }
}

/* ---------- Motion ---------- */

@keyframes rb-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes rb-ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.2); opacity: 0; } }
@keyframes rb-pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes rb-lock { from { opacity: 0; transform: scale(1.9) rotate(45deg); } to { opacity: 1; transform: none; } }
@keyframes rb-blink { 50% { opacity: 0.2; } }
@keyframes rb-hop { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-5px); } 50% { transform: translateY(0); } 75% { transform: translateY(-1.5px); } }
@keyframes rb-pin-shadow { 0%, 50%, 100% { transform: scaleX(1); opacity: 0.45; } 25% { transform: scaleX(0.6); opacity: 0.25; } 75% { transform: scaleX(0.85); opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
    .rb *,
    .rb *::before,
    .rb *::after {
        animation: none !important;
        transition: none !important;
    }
}
