/* One-pass correction package: scoped refinements only. */

/* Asia Journey: remove the pre-section bridge in markup and give the route a tighter ending. */
@media (min-width: 56.3125rem) {
  .asia-journey {
    min-height: clamp(35rem, 45vw, 45rem);
    padding-bottom: clamp(2.125rem, 3vw, 3.25rem);
  }

  .asia-journey .journey__content {
    min-height: clamp(26rem, 32vw, 32.5rem);
  }

  .journey-stops {
    grid-template-columns:
      minmax(0, 1fr)
      clamp(4.5rem, 7vw, 8.25rem)
      minmax(0, 1fr)
      clamp(4.5rem, 7vw, 8.25rem)
      minmax(0, 1fr);
    align-items: end;
    gap: clamp(1rem, 2vw, 2rem);
  }

  .journey-stop {
    min-height: 7rem;
    justify-content: flex-end;
  }

  .journey-stop__title {
    font-size: clamp(1.35rem, 1.85vw, 2.1rem);
  }

  .journey-stop-arrow {
    position: static;
    display: block;
    width: 100%;
    height: 1.5rem;
    align-self: center;
    opacity: 1;
    transform: none;
  }

  .journey-stop-arrow img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* Who it’s for: only the body copy changes from muted grey to the site off-white. */
.community__copy,
.community__copy p {
  color: var(--color-ivory);
}

/* Day 0/5 stays inside its own stacking context at every desktop width. */
.day05-section {
  isolation: isolate;
  overflow: hidden;
}

.day05-section .extra-days__image {
  z-index: 0;
}

.day05-section .extra-days__veil {
  z-index: 1;
}

.day05-section .extra-days__content {
  position: relative;
  z-index: 2;
}

.day05-section .extra-days__features img,
.stay__features img {
  filter: brightness(0) invert(1);
  opacity: .96;
}

/* Concierge: use the supplied feathered route graphic as a full-height static layer.
   Its soft left edge starts at the text-column boundary rather than at the viewport edge. */
.concierge {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.concierge__route-graphic {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  /* Pull the feathered map into the unused centre column, so its visual
     edge begins immediately after the copy instead of near the viewport edge. */
  left: 40%;
  right: 0;
  background: url("/assets/images/concierge/concierge-route-centred-feathered.png") 65% center / cover no-repeat;
  pointer-events: none;
}

.concierge__layout {
  position: relative;
  z-index: 1;
}

@media (max-width: 56.25rem) {
  .journey-stop-arrow {
    display: none;
  }
}

@media (max-width: 53.75rem) {
  .concierge__route-graphic {
    display: none;
  }
}

/* Final mobile refinement: retain the compact hero rhythm and make each visual
   gallery work as a touch-first, full-screen preview. */
@media (max-width: 50rem) {
  .hero__prelude {
    align-self: flex-end;
    max-width: none;
    margin: 0;
    font-size: clamp(.95rem, 4.1vw, 1.18rem);
    line-height: 1.05;
    white-space: nowrap;
  }

  .hero__facts {
    box-sizing: border-box;
    padding-inline: 1.2rem;
  }

  .hero__facts div,
  .hero__facts div + div {
    padding-inline: 0;
  }

  .day05-stamp {
    display: none;
  }

  .programme__slider,
  .stay__gallery,
  .experience__gallery {
    touch-action: pan-y;
  }

  .programme__slide-image,
  .stay__main-image,
  .experience__gallery > img {
    cursor: zoom-in;
  }

  .gallery-lightbox {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100dvw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 1rem;
    border: 0;
    background: rgb(5 5 4 / 98%);
  }

  .gallery-lightbox::backdrop {
    background: rgb(5 5 4 / 92%);
  }

  .gallery-lightbox[open] {
    display: grid;
    place-items: center;
  }

  .gallery-lightbox img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }

  .gallery-lightbox__close {
    position: absolute;
    z-index: 1;
    top: max(1rem, env(safe-area-inset-top));
    right: max(1rem, env(safe-area-inset-right));
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid rgb(244 240 231 / 74%);
    border-radius: 50%;
    background: rgb(8 8 6 / 72%);
    color: var(--color-ivory);
  }

  .gallery-lightbox__close span {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-.06em);
  }
}
