/* tour.css: moved out of src/views/Tour.astro on 2026-10-27, so a style fix is a single file upload. */
@scope (main) to (.tour-card > *, .inquiry > *, .map > *, .climate > *, .profile > *) {
  /* Holds only the hidden breadcrumb: a thin gap under the header on desktop, none on phones. */
  .intro {
    padding-top: 12px;
  }

  /* Page grid: gallery and text on the left, trip card on the right */
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-rows: auto 1fr;
    gap: 26px clamp(24px, 3vw, 40px);
    width: min(100% - var(--gutter) * 2, 1320px);
    margin-inline: auto;
    padding-bottom: clamp(48px, 7vw, 88px);
  }
  .gallery,
  .body {
    grid-column: 1;
  }
  .side {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  /* Gallery */
  .gallery {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
  }
  .thumbs {
    position: relative;
  }
  .thumbs-in {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 6px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .thumbs button {
    flex: none;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 12px;
    background: var(--paper-deep);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    opacity: 0.72;
    cursor: pointer;
    transition: opacity 0.18s, border-color 0.18s;
  }
  .thumbs button:hover {
    opacity: 1;
  }
  .thumbs button[aria-current='true'] {
    border-color: var(--accent-deep);
    opacity: 1;
  }
  .thumbs img,
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .stage {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper-deep);
  }
  .track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .track::-webkit-scrollbar {
    display: none;
  }
  .slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    scroll-snap-align: center;
    cursor: zoom-in;
  }
  /* A light dark veil over the photo; the lightbox shows it clear. It lifts a little on hover. */
  .slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0.16);
    transition: background-color 0.3s ease;
    pointer-events: none;
  }
  .slide:hover::after,
  .slide:focus-visible::after {
    background: rgb(0 0 0 / 0.06);
  }
  .arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: rgb(12 34 45 / 0.78);
    color: var(--paper);
    translate: 0 -50%;
    cursor: pointer;
    transition: background 0.18s;
  }
  .arrow:hover {
    background: var(--ink-deep);
  }
  .arrow.prev {
    left: 16px;
  }
  .arrow.next {
    right: 16px;
  }
  .arrow::before {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid;
    border-right: 2px solid;
    transform: translateX(-2px) rotate(45deg);
  }
  .arrow.prev::before {
    transform: translateX(2px) rotate(-135deg);
  }
  .count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgb(12 34 45 / 0.82);
    color: var(--paper);
    font: 700 0.82rem/1 var(--head);
    pointer-events: none;
  }

  /* Category badge and opening text */
  .badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--ink-deep);
    font: 800 0.8rem/1 var(--head);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .badge:hover {
    background: #89dbab;
  }
  .copy {
    margin-top: 16px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent);
  }
  .tagline {
    font-weight: 700;
  }

  /* Section tabs */
  .jump {
    position: sticky;
    top: calc(var(--header) + 8px);
    z-index: 30;
    margin-block: 20px 16px;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--ink-deep);
    box-shadow: var(--shadow);
  }
  .jump ul {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .jump li {
    flex: 1 0 auto;
  }
  .jump a {
    display: block;
    padding: 15px 12px;
    text-align: center;
    border-radius: 10px;
    color: var(--paper);
    font: 700 0.82rem/1 var(--head);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
  }
  .jump a:hover {
    background: rgb(255 255 255 / 0.14);
  }

  .main > section + section {
    margin-top: clamp(44px, 6vw, 72px);
  }
  .main h2 {
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--line);
    font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  }
  .sec-body > h2:not(:first-child) {
    margin-top: clamp(36px, 5vw, 56px);
  }

  /* The section bars exist for phones only. */
  .sec-bar {
    display: none;
  }

  @media (min-width: 961px) {
    .jump a[aria-current='true'] {
      background: var(--paper);
      color: var(--ink);
    }
    /* One panel at a time */
    .main > section + section {
      margin-top: 0;
    }
    .main > section {
      display: none;
      padding: clamp(22px, 2.4vw, 30px);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 1px 2px rgb(18 48 63 / 0.05);
    }
    /* A day opened from "See the full day" stops a little below the sticky tabs. */
    .acc.day {
      scroll-margin-top: 18px;
    }
    .main[data-tab='overview'] > #overview,
    .main[data-tab='itinerary'] > #itinerary,
    .main[data-tab='included'] > #included,
    .main[data-tab='prices'] > #prices,
    .main[data-tab='packing'] > #packing,
    .main[data-tab='guide'] > #guide,
    .main[data-tab='faqs'] > #faqs {
      display: block;
    }
  }

  .insight {
    margin: 30px 0 0;
    padding: 22px 26px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--card);
  }
  .insight p {
    font-style: italic;
  }

  /* Timelines */
  .glance,
  .stops {
    display: grid;
    gap: 0;
  }
  .glance li,
  .stops li {
    position: relative;
    padding: 0 0 24px 58px;
  }
  .glance li:last-child,
  .stops li:last-child {
    padding-bottom: 0;
  }
  .glance li::before,
  .stops li::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 42px;
    bottom: 0;
    width: 2px;
    background: var(--line);
  }
  .glance li:last-child::before,
  .stops li:last-child::before {
    display: none;
  }
  .dot {
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--accent);
  }
  .glance h3,
  .stops h3 {
    padding-top: 9px;
    margin-bottom: 4px;
    font-size: 1.08rem;
  }
  .glance p,
  .stops p {
    color: var(--ink-soft);
  }
  /* One day trips: the time of each step as a label and the step itself as the text. */
  .glance li h3 {
    display: inline-block;
    margin: 8px 0 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgb(111 207 151 / 0.16);
    color: var(--accent-deep);
    font: 700 0.8rem/1.2 var(--head);
    letter-spacing: 0.04em;
  }
  .glance li p {
    color: var(--ink);
  }

  /* The trip at a glance on trips of several days (2026-10-27): every day as a photo with its large number, the day,
     a title, the text and a link to that day in the itinerary. A dashed trail joins the photos. In a narrow column
     (phones, or the tab panel beside the trip card) each day becomes a card with the photo above the text. */
  .journey {
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    container: journey / inline-size;
    display: grid;
  }
  .journey li {
    --pw: 280px;
    --ph: calc(var(--pw) * 0.75);
    position: relative;
    display: grid;
    grid-template-columns: var(--pw) minmax(0, 1fr);
    gap: 0 32px;
    align-items: start;
    padding-bottom: 40px;
  }
  .journey li:last-child {
    padding-bottom: 0;
  }
  .journey li:not(:last-child)::before {
    content: '';
    position: absolute;
    left: calc(var(--pw) / 2 - 1px);
    top: calc(var(--ph) + 10px);
    bottom: 10px;
    border-left: 2px dashed rgb(27 127 82 / 0.45);
    transform-origin: top;
  }
  .j-photo {
    position: relative;
    height: var(--ph);
    overflow: hidden;
    border-radius: 18px;
    background: var(--paper-deep);
    box-shadow: 0 22px 40px -26px rgb(18 48 63 / 0.6);
  }
  .j-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
  }
  .journey li:hover .j-photo img {
    transform: scale(1.06);
  }
  /* Shade under the number */
  .j-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(20deg, rgb(8 18 26 / 0.62), rgb(8 18 26 / 0) 55%);
    pointer-events: none;
  }
  .j-num {
    position: absolute;
    left: 16px;
    bottom: 10px;
    z-index: 1;
    color: #fff;
    font: 300 3.1rem/1 var(--title);
    letter-spacing: -0.03em;
  }
  .j-text {
    padding-top: 6px;
  }
  .j-day {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-deep);
    font: 700 0.74rem/1 var(--head);
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .journey h3 {
    margin: 12px 0 10px;
    font-size: clamp(1.2rem, 1.7vw, 1.42rem);
    line-height: 1.22;
  }
  .journey p {
    color: var(--ink-soft);
  }
  .j-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--accent);
    color: var(--ink);
    font: 700 0.78rem/1 var(--head);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.25s, border-color 0.25s;
  }
  .j-more svg {
    transition: translate 0.3s var(--ease);
  }
  .j-more:hover {
    color: var(--accent-deep);
    border-color: var(--accent-deep);
  }
  .j-more:hover svg {
    translate: 4px 0;
  }
  @container journey (max-width: 600px) {
    .journey li {
      grid-template-columns: minmax(0, 1fr);
      padding-bottom: 46px;
    }
    /* A short stretch of trail between two cards, under the numbers */
    .journey li:not(:last-child)::before {
      left: 34px;
      top: auto;
      bottom: 8px;
      height: 30px;
    }
    .j-photo {
      height: auto;
      aspect-ratio: 16 / 10;
      border-radius: 16px;
    }
    .j-num {
      left: 14px;
      bottom: 8px;
      font-size: 2.6rem;
    }
    .j-text {
      padding-top: 16px;
    }
    .journey h3 {
      margin: 10px 0 8px;
      font-size: 1.15rem;
    }
    .j-more {
      margin-top: 12px;
    }
  }
  /* Each day rises into view, its photo settles and the trail draws itself down to the next day. */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      /* A fixed distance, not a share of the card: a tall card on a phone must not stay half faded. */
      .journey li {
        animation: journey-rise linear both;
        animation-timeline: view();
        animation-range: entry 0px entry 180px;
      }
      .j-photo img {
        animation: journey-settle linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 55%;
      }
      .journey li:not(:last-child)::before {
        animation: journey-trail linear both;
        animation-timeline: view();
        animation-range: entry 20% cover 70%;
      }
    }
  }

  /* Panels split by hairlines: cells share one frame, and a short last row stretches to fill it. */
  .highlights,
  .specs {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
  }
  .highlights li,
  .specs div {
    margin: 0 -1px -1px 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .highlights {
    counter-reset: point;
  }
  .highlights li {
    flex: 1 1 300px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 16px;
    padding: 22px 24px;
    counter-increment: point;
  }
  .highlights li::before {
    content: counter(point, decimal-leading-zero);
    grid-row: span 2;
    color: var(--accent-deep);
    font: 700 1.05rem/1.25 var(--title);
  }
  .highlights h3 {
    font-size: 1.05rem;
    line-height: 1.25;
  }
  .highlights p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Accordions in the Andean Moments style: a tinted bar with a dark square "+" on the right.
   Only on the tour page; the home and destination FAQs sit on dark panels and keep their own look. */
  .acc,
  .acc:first-of-type {
    margin-bottom: 8px;
    border: 0;
  }
  .acc > summary {
    gap: 14px;
    min-height: 50px;
    padding: 13px 0 13px 18px;
    border-radius: 6px;
    background: rgb(111 207 151 / 0.14);
    font: 700 1rem/1.35 var(--title);
    transition: background 0.18s;
  }
  .acc > summary:hover {
    background: rgb(111 207 151 / 0.24);
  }
  /* The square runs the full height of the bar: the negative margins cancel the summary padding. */
  .acc > summary::after {
    content: '+';
    display: grid;
    place-items: center;
    align-self: stretch;
    width: 46px;
    height: auto;
    margin: -13px 0 -13px auto;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: var(--ink);
    color: var(--accent);
    font: 400 1.5rem/1 var(--head);
    transform: none;
  }
  .acc[open] > summary::after {
    content: '\2212';
    transform: none;
  }
  .acc > .acc-body {
    padding: 18px 18px 14px;
  }

  /* Itinerary */
  .day > summary {
    justify-content: flex-start;
  }
  .day > summary .t {
    flex: 1;
  }
  .day .n {
    flex: none;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .day-intro {
    margin-bottom: 22px;
  }
  .specs {
    margin: 26px 0 0;
  }
  .specs div {
    flex: 1 1 190px;
    padding: 16px 20px;
  }
  .specs dt {
    color: var(--accent-deep);
    font: 700 0.72rem/1.2 var(--head);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .specs dd {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.4;
  }
  .note {
    margin-top: 18px;
    padding: 14px 20px;
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: #eef8f2;
    color: var(--ink);
    font-size: 1rem;
  }
  .choices {
    margin-top: 26px;
  }
  .choices > h3 {
    margin-bottom: 14px;
    color: var(--ink);
  }
  .choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 14px;
  }
  .choice {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
  }
  .choice h4 {
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 1.05rem;
  }
  .choice ul {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.95rem;
  }
  .choice li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
  }
  .pro svg {
    flex: none;
    margin-top: 3px;
    color: #1f7a4d;
  }
  .con svg {
    flex: none;
    margin-top: 3px;
    color: #b0452c;
  }

  /* Elevation */
  .elevation {
    margin-top: 36px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .elevation h3 {
    margin-bottom: 8px;
  }
  .elevation svg {
    display: block;
    width: 100%;
    height: auto;
  }
  @media (max-width: 700px) {
    .elevation circle {
      r: 15px;
    }
    .elevation text {
      font-size: 15px;
      transform: translateY(2px);
    }
    .line {
      stroke-width: 3.5;
    }
  }
  .area {
    fill: rgb(111 207 151 / 0.22);
  }
  .line {
    fill: none;
    stroke: var(--accent-deep);
    stroke-width: 2.5;
    stroke-linejoin: round;
  }
  .elevation circle {
    fill: var(--ink);
  }
  .elevation text {
    fill: var(--paper);
    font: 700 10px var(--head);
    text-anchor: middle;
  }
  .places {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding-bottom: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .places li {
    position: relative;
    flex: 0 0 150px;
    display: grid;
    gap: 2px;
    align-content: start;
    font-size: 0.86rem;
    line-height: 1.35;
    color: var(--ink-soft);
    scroll-snap-align: start;
  }
  .places img {
    width: 100%;
    aspect-ratio: 3 / 2;
    margin-bottom: 6px;
    border-radius: 8px;
    object-fit: cover;
  }
  .places .num {
    position: absolute;
    left: 6px;
    top: 6px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font: 700 0.72rem/1 var(--head);
  }
  .places li:not(:has(img)) {
    padding-top: 32px;
  }
  .places b {
    color: var(--ink);
    font-family: var(--head);
  }
  .places em {
    font-style: normal;
    font-weight: 700;
    color: var(--accent-deep);
  }

  /* Included */
  .ticks {
    display: grid;
    gap: 12px;
  }
  .ticks li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  .ticks b {
    color: var(--ink);
  }

  /* Prices */
  .switch {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 16px;
    padding: 4px;
    border-radius: 999px;
    background: var(--paper-deep);
  }
  .switch button {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: none;
    font: 700 0.92rem/1 var(--head);
    cursor: pointer;
  }
  .switch button[aria-selected='true'] {
    background: var(--ink);
    color: var(--paper);
  }
  .price-table {
    width: 100%;
    border: 1px solid var(--line);
    border-spacing: 0;
    border-radius: 12px;
  }
  .price-table caption {
    padding-bottom: 10px;
    text-align: left;
    font-size: 0.9rem;
    color: var(--ink-soft);
  }
  .price-table :is(th, td) {
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-weight: 500;
  }
  .price-table tr:last-child :is(th, td) {
    border-bottom: 0;
  }
  .price-table td {
    text-align: right;
    font: 800 1.15rem/1 var(--head);
    white-space: nowrap;
  }
  .price-notes {
    margin-top: 18px;
    padding: 20px 24px;
    border-radius: 12px;
    background: var(--card);
    font-size: 1rem;
  }
  .price-notes h3 {
    margin-bottom: 10px;
    font-size: 1.02rem;
  }
  .price-notes ul,
  .why {
    display: grid;
    gap: 8px;
    padding-left: 1.1em;
    list-style: disc;
  }
  .sub {
    margin: 30px 0 12px;
  }
  .addons {
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .addons li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 20px;
  }
  .addons li + li {
    border-top: 1px solid var(--line);
  }
  .addons div {
    display: grid;
    gap: 2px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .addons span {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.4;
  }
  .addons strong {
    font: 800 1.08rem/1 var(--head);
    white-space: nowrap;
  }
  .private {
    display: grid;
    gap: 16px;
    margin-top: 30px;
    padding: 24px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--ink);
    border-radius: 12px;
  }

  /* Packing */
  .pack-group + .pack-group {
    margin-top: 26px;
  }
  .pack-group h3 {
    margin-bottom: 12px;
    font-size: 1.02rem;
  }
  .pack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
  }
  .pack li {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 16px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    /* Long single words (Polish, Dutch) break inside the tile instead of widening the grid. */
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .pack img {
    width: 64px;
    height: 64px;
    object-fit: contain;
  }

  /* Trip card, weather and contact */
  .side {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .book {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .book h1 {
    padding: 14px 24px;
    background: var(--ink-deep);
    color: var(--paper);
    font-size: clamp(1.1rem, 2vw - 5px, 1.4rem);
    line-height: 1.3;
  }
  .book-body {
    padding: 24px;
  }
  .price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .tag {
    padding: 7px 11px;
    border-radius: 6px;
    background: var(--ink);
    color: var(--paper);
    font: 800 0.74rem/1 var(--head);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .from {
    margin: 0;
    color: var(--ink-soft);
  }
  .from b {
    color: var(--ink);
    font: 800 2.5rem/1 var(--head);
    letter-spacing: -0.02em;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-block: 20px 24px;
  }
  .side .btn {
    min-height: 58px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
  }
  .book h2 {
    margin-bottom: 16px;
    font-size: 1.2rem;
    text-align: center;
  }
  /* Two columns while each one fits the longest single word of any language, one column below that. */
  .facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
    gap: 18px 16px;
  }
  .facts :is(b, span) {
    overflow-wrap: anywhere;
  }
  .facts li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 12px;
    line-height: 1.3;
  }
  .facts svg {
    grid-row: span 2;
    color: var(--accent-deep);
  }
  .facts b {
    font-size: 1rem;
  }
  .facts span {
    color: var(--ink-soft);
    font-size: 0.97rem;
  }

  .weather {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 30px 24px;
    border-radius: var(--radius);
    background: var(--ink-deep);
    color: var(--paper);
    text-align: center;
  }
  .weather svg {
    color: var(--accent);
  }
  .weather dl {
    display: flex;
    margin: 0;
  }
  .weather dl div {
    padding-inline: 20px;
  }
  .weather dl div + div {
    border-left: 1px solid rgb(255 255 255 / 0.28);
  }
  .weather dt {
    font: 700 0.74rem/1.2 var(--head);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.7);
  }
  .weather dd {
    margin: 4px 0 0;
    font: 800 1.7rem/1 var(--head);
  }
  .weather > b {
    font-size: 1rem;
  }

  /* The inquiry form stays in view while the long sections scroll by */
  .contact {
    position: sticky;
    top: calc(var(--header) + 16px);
    max-height: calc(100dvh - var(--header) - 32px);
    overflow-y: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    scrollbar-width: thin;
  }

  /* Inquiry */
  .back {
    margin-top: 32px;
  }

  /* Why us */
  .trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgb(255 255 255 / 0.18);
  }
  .trust li {
    padding: 28px clamp(16px, 2vw, 28px) 0;
  }
  .trust li:first-child {
    padding-left: 0;
  }
  .trust li:last-child {
    padding-right: 0;
  }
  .trust li + li {
    border-left: 1px solid rgb(255 255 255 / 0.18);
  }
  .trust svg {
    color: var(--accent);
  }
  .trust h3 {
    margin: 14px 0 8px;
  }
  .trust p {
    font-size: 0.98rem;
    line-height: 1.5;
    color: rgb(255 255 255 / 0.76);
  }

  /* How booking works */
  .path {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 56px);
  }
  .path li {
    position: relative;
    padding-top: 30px;
    border-top: 1px solid var(--line);
  }
  .path li::before {
    content: '';
    position: absolute;
    left: 0;
    top: -5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-deep);
  }
  .path span {
    display: block;
    margin-bottom: 18px;
    font: 600 clamp(2.4rem, 4.4vw, 3.2rem) / 1 var(--title);
    color: transparent;
    -webkit-text-stroke: 1.4px var(--accent-deep);
  }
  .path h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
  }
  .path p {
    color: var(--ink-soft);
  }
  .path-go {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(28px, 4vw, 44px);
  }
  @media (max-width: 900px) {
    .trust {
      grid-template-columns: 1fr 1fr;
    }
    .trust li,
    .trust li:first-child,
    .trust li:last-child {
      padding: 24px 16px 24px 0;
    }
    .trust li + li {
      border-left: 0;
    }
    .trust li:nth-child(even) {
      padding-left: 16px;
      padding-right: 0;
      border-left: 1px solid rgb(255 255 255 / 0.18);
    }
    .trust li:nth-child(n + 3) {
      border-top: 1px solid rgb(255 255 255 / 0.18);
    }
    .path {
      grid-template-columns: 1fr;
    }
    .path-go .btn {
      flex: 1 1 200px;
    }
  }

  /* Lightbox */
  .lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgb(8 22 30 / 0.96);
  }
  .lightbox[open] {
    display: grid;
    place-items: center;
  }
  .lightbox::backdrop {
    background: rgb(8 22 30 / 0.96);
  }
  .lightbox img {
    max-width: min(94vw, 1500px);
    max-height: 88dvh;
    border-radius: 8px;
  }
  .lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.14);
    color: var(--paper);
    cursor: pointer;
  }
  .lightbox button:hover {
    background: rgb(255 255 255 / 0.28);
  }
  .lightbox .close {
    top: 16px;
    right: 16px;
  }
  .lightbox .prev {
    left: 16px;
    top: 50%;
  }
  .lightbox .next {
    right: 16px;
    top: 50%;
  }
  .lightbox :is(.prev, .next)::before {
    content: '';
    width: 11px;
    height: 11px;
    border-top: 2px solid;
    border-right: 2px solid;
    transform: translateX(-2px) rotate(45deg);
  }
  .lightbox .prev::before {
    transform: translateX(2px) rotate(-135deg);
  }

  @media (max-width: 960px) {
    .layout {
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: none;
    }
    /* The cards join the single column, and the form moves below the sections */
    .side {
      display: contents;
    }
    .contact {
      position: static;
      order: 1;
      max-height: none;
      overflow: visible;
    }
    /* The photos run edge to edge on a phone. */
    .gallery {
      display: block;
      margin-inline: calc(var(--gutter) * -1);
    }
    .thumbs {
      display: none;
    }
    .stage {
      aspect-ratio: 4 / 3;
      border-radius: 0;
    }
    .arrow {
      width: 42px;
      height: 42px;
    }
    .intro {
      padding-top: 0;
    }

    /* Trip card: only the name sits on a dark band, joined to the photos. Length, price
     and the two buttons follow compact on white, then the trip details. */
    .book {
      margin: -26px calc(var(--gutter) * -1) 0;
      overflow: visible;
      border-radius: 0;
      box-shadow: none;
    }
    .book h1 {
      padding: 14px var(--gutter);
      font-size: clamp(1.45rem, 6vw, 1.85rem);
      line-height: 1.2;
    }
    .book-body {
      padding: 0;
    }
    .price {
      gap: 8px 12px;
      margin-inline: var(--gutter);
      padding: 16px 0 14px;
    }
    .from b {
      font-size: 2.1rem;
    }
    .actions {
      gap: 10px;
      margin: 0;
      padding: 14px var(--gutter) 6px;
    }
    .book .actions .btn {
      min-height: 48px;
      padding: 6px 10px;
      border-radius: 8px;
      font-size: 0.8rem;
      letter-spacing: 0.06em;
      line-height: 1.15;
    }
    .book .actions .btn svg {
      width: 18px;
      height: 18px;
    }
    .book h2 {
      margin: 0;
      padding: 26px var(--gutter) 18px;
      text-align: left;
    }
    .book .facts {
      padding: 0 var(--gutter) 26px;
      border-bottom: 1px solid var(--line);
    }

    /* Trip details in two columns, and the weather as one slim row. */
    .facts {
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr));
      gap: 16px 12px;
    }
    .facts li {
      grid-template-columns: 22px minmax(0, 1fr);
      column-gap: 10px;
    }
    .facts svg {
      width: 22px;
      height: 22px;
    }
    .facts b {
      font-size: 0.94rem;
    }
    .facts span {
      font-size: 0.92rem;
    }
    .weather {
      grid-template-columns: auto auto minmax(0, 1fr);
      align-items: center;
      justify-items: start;
      gap: 14px;
      padding: 16px 18px;
      text-align: left;
    }
    .weather svg {
      width: 34px;
      height: 34px;
    }
    .weather dl div {
      padding-inline: 12px;
    }
    .weather dl div:first-child {
      padding-left: 0;
    }
    .weather dd {
      font-size: 1.25rem;
    }
    .weather > b {
      justify-self: end;
      font-size: 0.9rem;
      line-height: 1.3;
      text-align: right;
    }

    /* Sections: closed bars in the Andean Moments style (navy bar, mint label and a "+"),
     each one unfolding its own content. The tabs bar is for desktop only. */
    .jump {
      display: none;
    }
    .main {
      margin-top: 18px;
    }
    .main > section + section {
      margin-top: 8px;
    }
    /* No scroll anchoring on tour pages: otherwise the browser follows the next bar down
     when a section unfolds, and the reader lands at the end of the opened section. */
    .main > section {
      scroll-margin-top: calc(var(--header) + 12px);
    }
    .sec-bar {
      display: flex;
      align-items: center;
      width: 100%;
      min-height: 54px;
      padding: 0 0 0 18px;
      border: 0;
      border-radius: 8px;
      background: var(--ink-deep);
      color: var(--accent);
      font: 700 1.02rem/1.2 var(--head);
      letter-spacing: 0.02em;
      text-align: left;
      cursor: pointer;
    }
    .sec-bar::after {
      content: '+';
      display: grid;
      place-items: center;
      align-self: stretch;
      width: 52px;
      margin-left: auto;
      font: 400 1.6rem/1 var(--head);
    }
    .open > .sec-bar {
      border-radius: 8px 8px 0 0;
    }
    .open > .sec-bar::after {
      content: '\2212';
    }
    .sec-body {
      display: none;
      padding: 18px 16px 20px;
      border: 1px solid var(--line);
      border-top: 0;
      border-radius: 0 0 8px 8px;
    }
    .open > .sec-body {
      display: block;
    }

    /* Compact reading inside the sections */
    .main p,
    .main li {
      font-size: 0.95rem;
      line-height: 1.55;
    }
    .main h2 {
      margin-bottom: 14px;
      padding-bottom: 10px;
      font-size: 1.2rem;
    }
    .sec-body > h2:not(:first-child) {
      margin-top: 28px;
    }
    .glance li,
    .stops li {
      padding: 0 0 16px 44px;
    }
    .glance li::before,
    .stops li::before {
      left: 15px;
      top: 32px;
    }
    .dot {
      width: 32px;
      height: 32px;
    }
    .dot svg {
      width: 17px;
      height: 17px;
    }
    .glance h3,
    .stops h3 {
      padding-top: 6px;
      margin-bottom: 2px;
      font-size: 1rem;
    }
    .glance li h3 {
      margin-top: 3px;
      font-size: 0.74rem;
    }
    .highlights li {
      gap: 2px 12px;
      padding: 14px 16px;
    }
    .highlights h3,
    .highlights li::before {
      font-size: 0.98rem;
    }
    .highlights p {
      font-size: 0.9rem;
    }
    .insight {
      margin-top: 20px;
      padding: 16px 18px;
    }
    .acc > summary {
      min-height: 46px;
      padding-block: 11px;
      font-size: 0.95rem;
    }
    .acc > summary::after {
      margin-block: -11px;
      width: 42px;
    }
    .acc > .acc-body {
      padding: 14px 4px 10px;
    }
    .day-intro {
      margin-bottom: 16px;
    }
    .pack {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .pack li {
      gap: 4px;
      padding: 10px 6px;
      font-size: 0.8rem;
    }
    .pack img {
      width: 42px;
      height: 42px;
    }
    .pack-group + .pack-group {
      margin-top: 18px;
    }
    .specs {
      margin-top: 18px;
    }
    .specs div {
      flex: 1 1 130px;
      padding: 10px 14px;
    }
    .specs dt {
      font-size: 0.66rem;
    }
    .specs dd {
      margin-top: 4px;
      font-size: 0.9rem;
    }
  }

  @media (max-width: 800px) {
    .private {
      padding: 18px;
    }
  }
}

@media (max-width: 960px) {
  html {
    overflow-anchor: none;
  }
}

/* The trip at a glance (see .journey above) */
@keyframes journey-rise {
  from {
    opacity: 0;
    translate: 0 36px;
  }
  to {
    opacity: 1;
    translate: none;
  }
}
@keyframes journey-settle {
  from {
    scale: 1.16;
  }
  to {
    scale: 1;
  }
}
@keyframes journey-trail {
  from {
    scale: 1 0;
  }
  to {
    scale: 1 1;
  }
}
