/* Regional imagery stays within the existing page hero. */
.region-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 458px;
  padding-block: 68px 80px;
  align-items: center;
  background: #171411;
}

.region-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #171411 0%, rgba(23, 20, 17, .96) 24%, rgba(23, 20, 17, .88) 37%, transparent 57%);
}

.region-hero-copy { position: relative; z-index: 2; pointer-events: none; }
.region-hero-copy h1 { max-width: 42%; margin: 16px 0 20px; text-wrap: balance; }
.region-hero-copy p { max-width: 39%; color: #f0e9df; font-size: 16px; line-height: 1.85; text-wrap: pretty; }
.region-hero-copy h1, .region-hero-copy p { pointer-events: auto; }
.region-hero-copy .eyebrow-light,
.region-hero-copy .page-title-en { color: var(--cyan-300); }

.region-gallery { position: absolute; inset: 0; }
.region-stage {
  position: absolute;
  top: 18px;
  bottom: 82px;
  left: 30%;
  right: -4%;
  perspective: 1100px;
  transform-style: preserve-3d;
  touch-action: pan-y;
  pointer-events: none;
}

.region-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(214px, 21vw, 280px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: #302a23;
  transform: translate(-50%, -50%);
  backface-visibility: hidden;
  pointer-events: auto;
  transition: transform 720ms cubic-bezier(.22, 1, .36, 1), opacity 520ms ease;
}

.region-card[data-offset="-2"] { z-index: 1; transform: translate(-50%, -50%) translate3d(-133%, 0, -210px) rotateY(42deg); }
.region-card[data-offset="-1"] { z-index: 2; transform: translate(-50%, -50%) translate3d(-75%, 0, -105px) rotateY(34deg); }
.region-card[data-offset="0"] { z-index: 3; transform: translate(-50%, -50%) translateZ(0); }
.region-card[data-offset="1"] { z-index: 2; transform: translate(-50%, -50%) translate3d(75%, 0, -105px) rotateY(-34deg); }
.region-card[data-offset="2"] { z-index: 1; transform: translate(-50%, -50%) translate3d(133%, 0, -210px) rotateY(-42deg); }
.region-card.is-failed { visibility: hidden; opacity: 0; pointer-events: none; }
.region-gallery[data-static="true"] .region-card { transition: none; }
.region-card img { width: 100%; height: 100%; object-fit: cover; }
.region-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 13, 12, .05) 26%, rgba(14, 13, 12, .24) 52%, rgba(14, 13, 12, .8) 76%, rgba(14, 13, 12, .96) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.region-card:not([data-current])::after { background-color: rgba(14, 13, 12, .22); }
.region-card-caption { position: absolute; z-index: 1; left: 24px; right: 20px; bottom: 25px; color: #fff; transition: opacity 240ms ease; }
.region-card:not([data-current]) .region-card-caption { opacity: 0; }
.region-card-caption strong { display: block; font-size: 28px; font-weight: 500; letter-spacing: .06em; }
.region-card-caption span { display: block; margin-top: 5px; color: #f0e9df; font-size: 12px; letter-spacing: .06em; }
.region-card-pick { position: absolute; z-index: 2; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }

.region-controls { position: absolute; z-index: 3; bottom: 13px; left: 45%; right: max(24px, calc((100vw - 1240px) / 2)); max-width: 720px; }
.region-destinations { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.region-destinations button {
  position: relative;
  border: 0;
  padding: 10px 8px;
  min-height: 44px;
  color: #d8caba;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.region-destinations button::after { content: ""; position: absolute; bottom: 2px; left: 8px; right: 8px; height: 1px; background: transparent; }
.region-destinations button[aria-pressed="true"] { color: var(--cyan-300); }
.region-destinations button[aria-pressed="true"]::after { background: currentColor; }
.region-destinations button:hover { color: #fff; }
.region-destinations button:disabled { opacity: .55; cursor: default; }
.region-playback { display: flex; align-items: center; min-height: 40px; margin-top: 4px; }
.region-image-note { color: #c4b7a7; font-size: 11px; letter-spacing: .04em; }
.region-controls button:focus-visible { outline: 2px solid var(--cyan-300); outline-offset: 1px; border-radius: 2px; }

@media (min-width: 1800px) {
  .region-stage { left: 34%; right: 2%; }
  .region-controls { left: 50%; }
}

@media (max-width: 1100px) and (min-width: 900px) {
  .region-hero { min-height: 438px; }
  .region-hero-copy p { max-width: 42%; font-size: 15px; }
  .region-hero-copy h1 { font-size: 50px; }
  .region-card-caption { left: 18px; right: 14px; bottom: 22px; }
  .region-card-caption strong { font-size: 25px; }
  .region-card-caption span { font-size: 11px; }
}

@media (max-width: 899px) {
  .region-hero { display: block; min-height: 0; padding: 38px 0 20px; }
  .region-hero::after { display: none; }
  .region-hero-copy h1 { max-width: none; margin-top: 10px; font-size: clamp(40px, 6vw, 58px); }
  .region-hero-copy p { max-width: 650px; font-size: 15px; line-height: 1.8; }
  .region-gallery { position: relative; inset: auto; height: 370px; margin-top: 20px; }
  .region-stage { top: 0; bottom: 86px; left: 0; right: 0; perspective: 1000px; }
  .region-card { width: 228px; }
  .region-card-caption { left: 19px; right: 14px; bottom: 23px; }
  .region-card-caption strong { font-size: 25px; }
  .region-card-caption span { font-size: 11px; }
  .region-controls { left: 24px; right: 24px; bottom: 0; max-width: 600px; margin-inline: auto; }
}

@media (max-width: 480px) {
  .region-hero { padding-top: 28px; }
  .region-gallery { height: 333px; margin-top: 23px; }
  .region-stage { bottom: 83px; }
  .region-card { width: 200px; }
  .region-card-caption strong { font-size: 23px; }
  .region-card-caption span { font-size: 10px; letter-spacing: 0; }
  .region-controls { left: 18px; right: 18px; }
  .region-destinations button { padding-inline: 5px; font-size: 12px; }
  .region-destinations button::after { left: 5px; right: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .region-card { transition: none; }
}
