/*
 * Project Environments (html/places.html)
 *
 * Sections: hero map morph (.places-hero / .map-morph), location ticker
 * (.location-field), category drawer (.places-drawer: tabs + proof cards on
 * desktop, a label/chevron slider on mobile) and the homepage return link.
 *
 * Breakpoints (all from the original):
 *   ≤ 900                mobile: map above title, slider instead of tabs
 *   ≤ 900 landscape      phone landscape: tall map, three cards across
 *   901–1180 landscape   tablet landscape: narrow tabs, small pads, NZ y-slider
 *   ≤ 1220               tablet / small desktop: tighter page and drawer
 *   ≥ 901 and ≤ 760 tall short desktops (incl. the 1280×720 canvas)
 *   ≥ 1737               extra-wide (only reached without the canvas)
 *   ≥ 1921 × ≥ 1081      high-res type (only reached without the canvas)
 * Windows larger than 1280×720 in both dimensions render the page inside a
 * magnified 1280×720 canvas (js/core/page-canvas.js), so the desktop
 * composition is always the 720p one.
 */

:root {
  color-scheme: dark;
  --places-sans: "Inter", Arial, sans-serif;
  --places-serif: "Playfair Display", Georgia, serif;
  --places-ink: #060504;
  --places-gold: #d9a45e;
  --places-gold-strong: #f1c77d;
  --places-title: #f0c77f;
  --places-ease: cubic-bezier(0.19, 1, 0.22, 1);
  --places-title-shadow:
    0 1px 0 rgba(255, 246, 220, 0.28),
    0 10px 34px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(217, 164, 94, 0.1);
}

/* --- Page ------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--places-ink);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #f4ead8;
  font-family: var(--places-sans);
  background:
    radial-gradient(circle at 62% 18%, rgba(60, 96, 92, 0.18) 0%, rgba(60, 96, 92, 0.07) 18%, transparent 42%),
    radial-gradient(circle at 28% 28%, rgba(158, 96, 42, 0.18) 0%, rgba(158, 96, 42, 0.075) 24%, transparent 52%),
    radial-gradient(circle at 84% 72%, rgba(180, 116, 52, 0.1) 0%, transparent 36%),
    linear-gradient(180deg, #111713 0%, #0b1110 38%, #090b09 100%);
}

button {
  font: inherit;
}

.places-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.places {
  position: relative;
  isolation: isolate;
  width: min(1680px, calc(100vw - 56px));
  min-height: 100vh;
  margin: 0 auto;
  padding: max(var(--header-height, 70px), clamp(12px, 1.65vw, 30px)) 0 clamp(12px, 1.65vw, 30px);
  display: grid;
  align-content: center;
}

/* Fixed atmosphere behind the page: warm/teal glows + a faint 72px grid. */
.places::before,
.places::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
}

.places::before {
  z-index: -2;
  background:
    radial-gradient(ellipse at 68% 16%, rgba(59, 109, 106, 0.16), transparent 34%),
    radial-gradient(ellipse at 22% 34%, rgba(194, 118, 48, 0.12), transparent 42%),
    radial-gradient(ellipse at 50% 110%, rgba(115, 68, 30, 0.2), transparent 48%),
    linear-gradient(135deg, rgba(255, 184, 91, 0.025), transparent 34%, rgba(58, 112, 111, 0.035) 62%, transparent);
}

.places::after {
  z-index: -1;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(224, 163, 83, 0.06), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(224, 163, 83, 0.045), transparent 18%);
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%;
  mix-blend-mode: screen;
}

.places__shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 164, 94, 0.34);
  background:
    radial-gradient(circle at 72% 18%, rgba(70, 124, 120, 0.12), transparent 32%),
    radial-gradient(circle at 18% 22%, rgba(190, 112, 46, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(18, 24, 21, 0.94) 0%, rgba(8, 12, 11, 0.96) 100%);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 236, 194, 0.08),
    inset 0 0 0 1px rgba(255, 236, 194, 0.025);
}

.places__shell::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.8;
  background:
    radial-gradient(circle at 24% 18%, rgba(217, 164, 94, 0.12), transparent 22%),
    radial-gradient(circle at 58% 2%, rgba(65, 121, 116, 0.1), transparent 14%),
    linear-gradient(120deg, transparent 0 34%, rgba(255, 233, 193, 0.035) 35%, transparent 36% 100%);
}

/* --- Hero ------------------------------------------------------------- */

.places-hero {
  /* Morph stretch factors; js/pages/places-map.js alternates the axis. */
  --map-morph-duration: 1900ms;
  --map-out-start-x: 1;
  --map-out-end-x: 0.7;
  --map-out-start-y: 1;
  --map-out-end-y: 1.05;
  --map-in-start-x: 1.08;
  --map-in-start-y: 0.46;
  --map-in-end-x: 1;
  --map-in-end-y: 1;
  position: relative;
  min-height: clamp(300px, 36vw, 580px);
  padding: clamp(24px, 3.45vw, 60px) clamp(42px, 4.9vw, 76px);
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: clamp(34px, 5vw, 86px);
  overflow: hidden;
  border-bottom: 1px solid rgba(241, 199, 125, 0.28);
  background: #0b1110;
  box-shadow: 0 0 22px rgba(217, 164, 94, 0.08);
  user-select: none;
}

.places-hero__content {
  position: relative;
  z-index: 7;
  grid-column: 1;
  pointer-events: none;
  transition:
    opacity 620ms cubic-bezier(0.42, 0, 0.2, 1),
    transform 620ms var(--places-ease);
}

/* Australia: title block on the right. */
.places-hero__content.is-title-right {
  grid-column: 2;
  justify-self: end;
}

.places-hero__content.is-title-leaving {
  opacity: 0;
  transform: translate3d(-24px, 0, 0);
}

.places-hero__content.is-title-right.is-title-leaving {
  transform: translate3d(24px, 0, 0);
}

.places-hero__eyebrow {
  margin: 0 0 clamp(16px, 2vw, 26px);
  color: rgba(241, 199, 125, 0.82);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.places-hero__title {
  max-width: 560px;
  margin: 0;
  color: var(--places-title);
  font-family: var(--places-serif);
  font-size: clamp(38px, 4.35vw, 70px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: var(--places-title-shadow);
}

.places-hero__title.is-australia-title {
  max-width: 680px;
}

.places-hero__title-line {
  display: block;
}

.places-hero__microcopy {
  position: relative;
  width: max-content;
  margin: clamp(20px, 2vw, 28px) 0 0;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(12px, 0.95vw, 15px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.places-hero__microcopy[hidden] {
  display: none;
}

/* Gold rule down the left edge. */
.places-hero__microcopy::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, #f1c77d, rgba(241, 199, 125, 0.16));
  box-shadow: 0 0 10px rgba(241, 199, 125, 0.28);
}

.places-hero__microcopy-kicker {
  color: rgba(201, 231, 227, 0.76);
  font-size: 0.78em;
  letter-spacing: 0.23em;
}

.places-hero__microcopy-detail {
  margin-top: 6px;
}

.places-hero__microcopy-detail + .places-hero__microcopy-detail {
  margin-top: 3px;
}

.places-hero__microcopy.is-new-zealand .places-hero__microcopy-detail {
  margin-top: 0;
}

.places-hero__microcopy strong {
  color: rgba(201, 231, 227, 0.94);
  font-family: var(--places-serif);
  font-size: 1.8em;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-shadow: 0 0 14px rgba(217, 164, 94, 0.2);
}

/* --- Map morph -------------------------------------------------------- */

.map-morph,
.map-morph__slides,
.map-morph__slide,
.map-morph__media,
.map-morph__advance {
  position: absolute;
  inset: 0;
}

.map-morph {
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}

/* Soft-light veil over the maps; it swells during a morph. */
.map-morph::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  content: "";
  pointer-events: none;
  opacity: 0.68;
  mix-blend-mode: soft-light;
  background:
    linear-gradient(90deg, rgba(255, 247, 226, 0.12), transparent 18% 82%, rgba(105, 174, 165, 0.1)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), transparent 42%, rgba(0, 0, 0, 0.2));
}

.map-morph.is-morphing::after {
  animation: places-map-veil var(--map-morph-duration) cubic-bezier(0.2, 0.7, 0.18, 1) both;
}

.map-morph__slide {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* Authored crops (the JS pan writes these properties afterwards). */
.map-morph__slide[data-map-name="New Zealand"] {
  --map-bg-x: 82%;
  --map-bg-y: 50%;
}

.map-morph__slide[data-map-name="Cook Islands"] {
  --map-bg-x: 80%;
  --map-bg-y: 50%;
}

.map-morph__slide.is-current {
  z-index: 2;
  opacity: 1;
}

.map-morph__slide.is-leaving {
  z-index: 3;
  opacity: 1;
}

.map-morph__slide.is-entering {
  z-index: 4;
  opacity: 1;
}

.map-morph__media {
  overflow: hidden;
  backface-visibility: hidden;
}

/* Light sweep across both maps during a morph. */
.map-morph__media::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transform: translateX(-120%) skewX(-10deg);
  background: linear-gradient(90deg, transparent, rgba(255, 238, 205, 0.24) 47%, rgba(105, 174, 165, 0.13) 51%, transparent);
}

.map-morph__slide.is-leaving .map-morph__media::before,
.map-morph__slide.is-entering .map-morph__media::before {
  animation: places-map-sheen var(--map-morph-duration) cubic-bezier(0.2, 0.7, 0.18, 1) forwards;
}

.map-morph__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--map-bg-x, 50%) var(--map-bg-y, 50%);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-drag: none;
}

.map-morph__slide.is-current .map-morph__media img {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.map-morph__slide.is-leaving .map-morph__media img {
  animation:
    places-map-leave var(--map-morph-duration) cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
    places-map-leave-fade var(--map-morph-duration) cubic-bezier(0.42, 0, 0.2, 1) forwards;
}

.map-morph__slide.is-entering .map-morph__media img {
  animation:
    places-map-enter var(--map-morph-duration) cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
    places-map-enter-fade var(--map-morph-duration) cubic-bezier(0.42, 0, 0.2, 1) forwards;
}

/* Opening (desktop): NZ glides from its top edge to its bottom edge. */
.map-morph.is-opening .map-morph__slide.is-current .map-morph__media img {
  animation: places-map-opening 4200ms cubic-bezier(0.42, 0, 0.18, 1) both;
}

.map-morph.is-opening .map-morph__advance,
.map-morph.is-opening .map-morph__nav,
.map-morph.is-morphing .map-morph__dot {
  pointer-events: none;
}

/* Whole-map button: advances to the next map. */
.map-morph__advance {
  z-index: 6;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: transparent;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.map-morph__advance:focus-visible {
  outline: 2px solid rgba(241, 199, 125, 0.92);
  outline-offset: -5px;
}

/* "NEXT VIEW" disc (follows a fine pointer; a static hint on touch). */
.map-morph__hover-cue {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 246, 224, 0.42);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background:
    linear-gradient(145deg, rgba(255, 248, 232, 0.24), rgba(105, 174, 165, 0.34)),
    rgba(10, 18, 17, 0.62);
  backdrop-filter: blur(14px) saturate(1.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.16);
  transform: translate3d(-50%, -50%, 0) scale(0.88);
  box-shadow:
    0 28px 74px rgba(0, 0, 0, 0.44),
    0 0 34px rgba(105, 174, 165, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition:
    opacity 0.1s ease,
    transform 0.12s ease,
    visibility 0s linear 0.1s;
}

.map-morph__hover-cue span {
  color: rgba(201, 231, 227, 0.94);
  font-family: var(--places-sans);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
}

.map-morph__hover-cue::after {
  position: absolute;
  inset: -4.5px;
  content: "";
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-radius: inherit;
  pointer-events: none;
}

.map-morph__hover-cue.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, -50%, 0) scale(1);
  transition:
    opacity 0.1s ease,
    transform 0.12s ease,
    visibility 0s linear 0s;
}

.map-morph__hover-cue.is-suppressed {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-50%, -50%, 0) scale(0.88);
}

.map-morph__trail-layer {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

.map-morph__trail-layer.is-suppressed {
  opacity: 0;
}

.map-morph__trail-dot {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  filter: blur(6px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 248, 232, 0.72) 0%, rgba(105, 174, 165, 0.3) 36%, transparent 78%);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .map-morph,
  .map-morph .map-morph__advance {
    cursor: none;
  }

  .map-morph__controls,
  .map-morph__controls *,
  .map-morph__locations,
  .map-morph__locations * {
    cursor: pointer;
  }
}

/* --- Location pads ---------------------------------------------------- */

.map-morph__locations {
  position: absolute;
  inset: 0;
  z-index: 7;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 220ms ease,
    visibility 0s linear 220ms;
}

.map-morph__locations.is-map-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* Glowing amber bead; green when hovered / focused / open. */
.map-morph__location-pad {
  --location-pad-size: clamp(0.5rem, 0.54vw, 0.65rem);
  position: absolute;
  width: var(--location-pad-size);
  height: var(--location-pad-size);
  margin: 0;
  padding: 0;
  aspect-ratio: 1;
  border: 0.08rem solid rgba(255, 221, 166, 0.96);
  border-radius: 50%;
  outline: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at 36% 30%,
    rgb(255, 247, 224) 0 10%,
    rgb(255, 188, 96) 24%,
    rgb(232, 111, 30) 58%,
    rgb(139, 49, 9) 100%
  );
  box-shadow:
    inset 0 0.08rem 0.13rem rgba(255, 246, 218, 0.58),
    inset 0 -0.1rem 0.14rem rgba(83, 22, 2, 0.55),
    0 0 0 0.1rem rgba(190, 74, 13, 0.44),
    0 0 0.52rem rgba(240, 103, 25, 0.72),
    0 0.14rem 0.34rem rgba(0, 0, 0, 0.66);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
}

.map-morph__locations.is-location-flying .map-morph__location-pad {
  animation: places-pad-fly var(--pad-flight-duration, 1900ms) cubic-bezier(0.18, 0.72, 0.2, 1) both;
  will-change: transform, opacity, filter;
}

.map-morph__location-pad.is-featured {
  --location-pad-size: clamp(1.22rem, 1.4vw, 1.7rem);
  z-index: 8;
  border-width: 0.14rem;
  box-shadow:
    inset 0 0.1rem 0.16rem rgba(255, 246, 218, 0.65),
    inset 0 -0.12rem 0.17rem rgba(83, 22, 2, 0.58),
    0 0 0 0.13rem rgba(190, 74, 13, 0.52),
    0 0 0.75rem rgba(240, 103, 25, 0.88),
    0 0.17rem 0.42rem rgba(0, 0, 0, 0.72);
}

.map-morph__location-pad.is-medium {
  --location-pad-size: clamp(0.86rem, 0.96vw, 1.17rem);
  z-index: 7;
}

/* Bright core. */
.map-morph__location-pad::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24%;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 241, 207, 0.98);
  box-shadow:
    0 0 0 0.07rem rgba(121, 38, 4, 0.72),
    0 0 0.35rem rgba(255, 204, 128, 0.78);
}

/* Outer ring. */
.map-morph__location-pad::after {
  position: absolute;
  inset: -0.25rem;
  content: "";
  border: 0.0625rem solid rgba(241, 119, 39, 0.48);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 0.08rem rgba(255, 196, 116, 0.05),
    0 0 0.34rem rgba(216, 79, 18, 0.24);
}

.map-morph__location-pad:hover,
.map-morph__location-pad:focus-visible,
.map-morph__location-pad.is-active {
  z-index: 50;
  border-color: rgba(204, 255, 226, 0.98);
  transform: translate(-50%, -50%) scale(1.1);
  background: radial-gradient(
    circle at 36% 30%,
    rgb(241, 255, 247) 0 10%,
    rgb(139, 239, 181) 24%,
    rgb(43, 177, 99) 58%,
    rgb(8, 80, 45) 100%
  );
  box-shadow: none;
}

.map-morph__location-pad:hover::before,
.map-morph__location-pad:focus-visible::before,
.map-morph__location-pad.is-active::before {
  background: rgba(229, 255, 240, 0.99);
  box-shadow: none;
}

.map-morph__location-pad:hover::after,
.map-morph__location-pad:focus-visible::after,
.map-morph__location-pad.is-active::after {
  border-color: transparent;
  box-shadow: none;
}

/* Label pill above the pad (below it near the top edge). */
.map-morph__location-label {
  position: absolute;
  bottom: calc(100% + 0.72rem);
  left: 50%;
  z-index: 4;
  width: max-content;
  max-width: min(13rem, 34vw);
  padding: 0.38rem 0.58rem 0.4rem;
  border: 0.0625rem solid rgba(236, 126, 53, 0.58);
  border-radius: 999px;
  color: rgba(255, 240, 211, 0.98);
  background: linear-gradient(180deg, rgba(48, 27, 18, 0.97), rgba(20, 15, 12, 0.98));
  box-shadow:
    inset 0 0.0625rem rgba(255, 231, 190, 0.12),
    0 0.4rem 1.2rem rgba(0, 0, 0, 0.5),
    0 0 0.7rem rgba(225, 91, 24, 0.15);
  font-family: var(--places-sans);
  font-size: clamp(0.58rem, 0.62vw, 0.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(0.35rem);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 180ms;
}

.map-morph__location-label::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0.44rem;
  aspect-ratio: 1;
  content: "";
  border-right: 0.0625rem solid rgba(236, 126, 53, 0.46);
  border-bottom: 0.0625rem solid rgba(236, 126, 53, 0.46);
  background: rgba(20, 15, 12, 0.98);
  transform: translate(-50%, -48%) rotate(45deg);
}

.map-morph__location-pad:hover .map-morph__location-label,
.map-morph__location-pad:focus-visible .map-morph__location-label,
.map-morph__location-pad.is-active .map-morph__location-label {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

.map-morph__location-pad.label-below .map-morph__location-label {
  top: calc(100% + 0.72rem);
  bottom: auto;
  transform: translateX(-50%) translateY(-0.35rem);
}

.map-morph__location-pad.label-below:hover .map-morph__location-label,
.map-morph__location-pad.label-below:focus-visible .map-morph__location-label,
.map-morph__location-pad.label-below.is-active .map-morph__location-label {
  transform: translateX(-50%) translateY(0);
}

.map-morph__location-pad.label-below .map-morph__location-label::after {
  top: auto;
  bottom: 100%;
  border: 0;
  border-top: 0.0625rem solid rgba(236, 126, 53, 0.46);
  border-left: 0.0625rem solid rgba(236, 126, 53, 0.46);
  transform: translate(-50%, 48%) rotate(45deg);
}

/* --- Map controls (country + dots) ------------------------------------ */

.map-morph__controls {
  position: absolute;
  right: clamp(14px, 1.5vw, 24px);
  bottom: clamp(12px, 1.35vw, 21px);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 14px;
}

.map-morph__country {
  flex: 0 0 auto;
  margin: 0;
  color: rgba(241, 199, 125, 0.92);
  font-family: var(--places-serif);
  font-size: clamp(13px, 1.1vw, 18px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.82);
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 720ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
    color 720ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.map-morph__country.is-swapping {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
}

.map-morph__nav {
  flex: 0 0 auto;
  display: flex;
  gap: 7px;
}

.map-morph__dot {
  --map-dot-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --map-dot-duration: 900ms;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(241, 199, 125, 0.68);
  border-radius: 50%;
  background: rgba(7, 9, 8, 0.66);
  box-shadow: 0 0 0 transparent;
  cursor: pointer;
  opacity: 0.78;
  transform: scale(1);
  transition:
    background var(--map-dot-duration) var(--map-dot-ease),
    border-color var(--map-dot-duration) var(--map-dot-ease),
    box-shadow calc(var(--map-dot-duration) + 80ms) var(--map-dot-ease),
    transform calc(var(--map-dot-duration) + 80ms) var(--map-dot-ease),
    opacity 680ms var(--map-dot-ease);
}

.map-morph__dot.is-active {
  border-color: rgba(255, 236, 194, 0.92);
  background: var(--places-gold-strong);
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(241, 199, 125, 0.28),
    0 0 14px rgba(241, 199, 125, 0.48),
    0 0 28px rgba(217, 164, 94, 0.22);
  transform: scale(1.22);
}

/* NZ vertical pan slider — only on tablet landscape (see below). */
.map-morph__y-rail {
  display: none;
}

/* Touch: the cue sits centred on the opening map until the first morph. */
.map-morph__hover-cue.is-touch-hint {
  top: 50%;
  left: 50%;
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, -50%, 0) scale(1);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0s linear 0s;
}

.map-morph.has-dismissed-touch-cue .map-morph__hover-cue.is-touch-hint {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-50%, -50%, 0) scale(0.88);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0s linear 0.28s;
}

/* --- Location ticker -------------------------------------------------- */

.location-field {
  position: relative;
  z-index: 2;
  height: clamp(230px, 17vw, 260px);
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  border-top: 1px solid rgba(241, 199, 125, 0.38);
  border-bottom: 1px solid rgba(241, 199, 125, 0.34);
  color: var(--places-gold);
  background: rgba(6, 12, 11, 0.97);
  box-shadow:
    inset 0 1px 0 rgba(255, 237, 198, 0.035),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7);
}

.location-field__rows {
  min-height: 0;
  padding: 4px 0 7px;
  display: grid;
  grid-template-rows: 0.72fr 0.86fr 1fr 1.2fr;
  align-items: center;
}

.location-field__pause {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 3;
  padding: 6px 10px;
  border: 1px solid rgba(241, 199, 125, 0.5);
  border-radius: 3px;
  color: var(--places-gold);
  background: #0a1411;
  font: 600 11px/1.4 var(--places-sans);
  cursor: pointer;
}

.location-field__pause:focus-visible {
  outline: 2px solid var(--places-gold);
  outline-offset: 3px;
}

/* Rows grow in size, opacity and duration from top to bottom. */
.location-row {
  --row-size: 13px;
  --row-opacity: 0.42;
  --row-duration: 88s;
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(217, 164, 94, 0.055);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
}

.location-row:last-child {
  border-bottom: 0;
}

.location-row:nth-child(2) {
  --row-size: 17px;
  --row-opacity: 0.56;
  --row-duration: 103s;
}

.location-row:nth-child(3) {
  --row-size: 23px;
  --row-opacity: 0.73;
  --row-duration: 116s;
}

.location-row:nth-child(4) {
  --row-size: 31px;
  --row-opacity: 0.94;
  --row-duration: 132s;
}

.location-row__track {
  --location-set-offset: 0px;
  width: max-content;
  display: flex;
  align-items: center;
  will-change: transform;
  animation: places-ticker-forward var(--row-duration) linear infinite;
}

.location-row:nth-child(even) .location-row__track {
  animation-name: places-ticker-reverse;
}

.location-field.is-paused .location-row__track {
  animation-play-state: paused;
}

.location-row__set {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  color: rgba(241, 199, 125, var(--row-opacity));
  font-family: var(--places-serif);
  font-size: var(--row-size);
  font-weight: 520;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.46);
  white-space: nowrap;
}

.location-row__name,
.location-row__dot {
  flex: 0 0 auto;
}

.location-row__dot {
  padding: 0 0.62em;
  color: rgba(217, 164, 94, 0.66);
  font-size: 0.72em;
}

/* --- Category drawer: tabs + proof cards ------------------------------ */

.places-drawer {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 2.55vw, 46px) clamp(32px, 3.7vw, 60px) clamp(24px, 2.85vw, 50px) clamp(12px, 1.25vw, 20px);
  display: grid;
  grid-template-columns: minmax(240px, 0.66fr) minmax(0, 3.15fr);
  gap: clamp(14px, 1.8vw, 34px);
  align-items: start;
  background:
    radial-gradient(circle at 32% 18%, rgba(74, 130, 124, 0.08), transparent 38%),
    radial-gradient(circle at 20% 74%, rgba(177, 101, 41, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(11, 17, 16, 0.68), rgba(7, 9, 8, 0.82));
}

/* Desktop: the mobile slider wrappers dissolve so the grid is tabs | cards. */
.places-cat-slider,
.places-cat-slider__stage,
.places-cat-panel {
  display: contents;
}

.places-cat-slider__head {
  display: none;
}

.places-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-self: stretch;
  border: 1px solid rgba(241, 199, 125, 0.22);
  background:
    linear-gradient(180deg, rgba(217, 164, 94, 0.06), transparent),
    rgba(9, 13, 12, 0.82);
  box-shadow: 0 0 22px rgba(217, 164, 94, 0.08);
}

.places-tab {
  position: relative;
  min-height: clamp(72px, 6vw, 92px);
  padding: 14px clamp(16px, 1.7vw, 26px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(10px, 1vw, 16px);
  border: 0;
  border-bottom: 1px solid rgba(217, 164, 94, 0.2);
  color: rgba(244, 234, 216, 0.76);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(22, 29, 26, 0.92), rgba(8, 11, 10, 0.96)),
    radial-gradient(circle at 50% 0%, rgba(217, 164, 94, 0.08), transparent 54%);
  cursor: pointer;
  transition:
    color 260ms var(--places-ease),
    background 260ms var(--places-ease),
    box-shadow 260ms var(--places-ease);
}

.places-tab:last-child {
  border-bottom: 0;
}

/* Right-edge highlight of the selected tab. */
.places-tab::after {
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 1px;
  content: "";
  background: transparent;
  transition:
    background 260ms var(--places-ease),
    box-shadow 260ms var(--places-ease);
}

.places-tab:hover,
.places-tab:focus-visible {
  outline: none;
  color: rgba(246, 220, 179, 0.92);
  background:
    radial-gradient(circle at 50% 100%, rgba(241, 199, 125, 0.13), transparent 52%),
    linear-gradient(180deg, rgba(24, 31, 28, 0.94), rgba(8, 11, 10, 0.96));
}

.places-tab[aria-selected="true"] {
  color: rgba(255, 238, 200, 0.96);
  background:
    radial-gradient(circle at 100% 50%, rgba(241, 199, 125, 0.21), transparent 54%),
    linear-gradient(180deg, rgba(39, 39, 31, 0.96), rgba(13, 15, 12, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 200, 0.14),
    0 0 36px rgba(217, 164, 94, 0.15);
}

.places-tab[aria-selected="true"]::after {
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(241, 199, 125, 0.95), rgba(217, 164, 94, 0.75), transparent);
  box-shadow:
    0 0 18px rgba(241, 199, 125, 0.32),
    0 0 42px rgba(217, 164, 94, 0.16);
}

/* Keyboard focus: an inset gold ring (neighbouring tabs abut), declared
   after the selected state so it shows over it too. */
.places-tab:focus-visible,
.places-tab[aria-selected="true"]:focus-visible {
  outline: 2px solid rgba(241, 199, 125, 0.92);
  outline-offset: -5px;
}

.places-tab__icon {
  width: clamp(34px, 2.8vw, 52px);
  height: clamp(34px, 2.8vw, 52px);
  flex: 0 0 auto;
  color: rgba(217, 164, 94, 0.78);
  filter:
    drop-shadow(0 0 8px rgba(217, 164, 94, 0.1))
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.65));
}

.places-tab[aria-selected="true"] .places-tab__icon {
  color: rgba(241, 199, 125, 0.96);
  filter:
    drop-shadow(0 0 10px rgba(241, 199, 125, 0.26))
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7));
}

.places-tab__label {
  max-width: 142px;
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: 0.28em;
  text-align: left;
  text-transform: uppercase;
}

/* Diamond notch pointing at the cards. */
.places-tab[aria-selected="true"] .places-tab__notch {
  position: absolute;
  top: 50%;
  right: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(241, 199, 125, 0.68);
  border-bottom: 1px solid rgba(241, 199, 125, 0.68);
  background: #0d1110;
  transform: translateY(-50%) rotate(-45deg);
  box-shadow: 4px 4px 14px rgba(217, 164, 94, 0.14);
}

.proof-cards {
  margin-left: clamp(9px, 0.9vw, 15px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(10px, 0.95vw, 16px);
  transition:
    opacity 280ms ease,
    transform 360ms var(--places-ease),
    filter 360ms var(--places-ease);
}

.proof-cards.is-switching {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(2px);
}

.proof-card {
  position: relative;
  min-height: var(--architectural-card-height, 0px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(217, 164, 94, 0.34);
  background: linear-gradient(180deg, rgba(17, 23, 21, 0.96) 0%, rgba(8, 10, 9, 0.98) 100%);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 238, 200, 0.07);
}

.proof-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d1412;
}

.proof-card__image::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.24)),
    linear-gradient(90deg, rgba(217, 164, 94, 0.1), transparent 26% 74%, rgba(0, 0, 0, 0.28));
}

.proof-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06) brightness(0.88);
  transform: scale(1.001);
}

.proof-card__body {
  min-height: clamp(206px, 15.6vw, 252px);
  padding: clamp(16px, 1.5vw, 24px) clamp(18px, 1.8vw, 27px) 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 0%, rgba(217, 164, 94, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(16, 21, 19, 0.96), rgba(7, 9, 8, 0.98));
}

.proof-card__title {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
  color: var(--places-title);
  font-family: var(--places-serif);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 520;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: var(--places-title-shadow);
}

.proof-card__location {
  margin: 0;
  color: rgba(241, 199, 125, 0.82);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.proof-card__rule {
  height: 1px;
  margin: 15px 0 14px;
  background: linear-gradient(90deg, rgba(241, 199, 125, 0.68), transparent);
  box-shadow: 0 0 22px rgba(217, 164, 94, 0.08);
}

.proof-card__description {
  margin: 0;
  color: rgba(244, 234, 216, 0.78);
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 455;
  line-height: 1.52;
}

.proof-card__tags {
  margin: auto 0 0;
  padding-top: 22px;
  color: rgba(241, 199, 125, 0.82);
  font-size: 9px;
  font-weight: 690;
  line-height: 1.4;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- Return link (matches the Gallery Wall's final link) -------------- */

.places-home-return {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(24px, 2.4vw, 40px) 20px 0;
  display: flex;
  justify-content: center;
}

.places-home-return__link {
  position: relative;
  z-index: 5;
  min-height: 44px;
  padding: 10px clamp(18px, 2vw, 30px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(224, 177, 105, 0.54);
  color: rgba(224, 177, 105, 0.96);
  font-family: var(--places-sans);
  font-size: clamp(11px, 0.82vw, 13px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.places-home-return__link:hover {
  border-color: rgba(246, 207, 142, 0.98);
  color: rgba(246, 207, 142, 0.98);
}

.places-home-return__link:focus-visible {
  outline: 2px solid rgba(224, 163, 83, 0.92);
  outline-offset: 4px;
}

/* --- Large-desktop canvas host (js/core/page-canvas.js) --------------- */

:root {
  --page-canvas-background: var(--places-ink);
}

/* --- Keyframes -------------------------------------------------------- */

@keyframes places-map-leave {
  from { transform: translate3d(0, 0, 0) scaleX(var(--map-out-start-x)) scaleY(var(--map-out-start-y)); }
  to { transform: translate3d(0, 0, 0) scaleX(calc(var(--map-out-end-x) * 1.4)) scaleY(calc(var(--map-out-end-y) * 1.4)); }
}

@keyframes places-map-enter {
  0%, 18% { transform: translate3d(0, 0, 0) scaleX(calc(var(--map-in-start-x) * 1.7)) scaleY(calc(var(--map-in-start-y) * 1.7)); }
  to { transform: translate3d(0, 0, 0) scaleX(var(--map-in-end-x)) scaleY(var(--map-in-end-y)); }
}

@keyframes places-map-leave-fade {
  0%, 40% { opacity: 1; }
  70% { opacity: 0.35; }
  88% { opacity: 0.08; }
  to { opacity: 0; }
}

@keyframes places-map-enter-fade {
  0%, 20% { opacity: 0; }
  46% { opacity: 0.66; }
  76%, 100% { opacity: 1; }
}

@keyframes places-map-sheen {
  from { opacity: 0; transform: translateX(-120%) skewX(-10deg); }
  28%, 52% { opacity: 0.3; }
  to { opacity: 0; transform: translateX(120%) skewX(-10deg); }
}

@keyframes places-map-veil {
  0%, 100% { opacity: 0.68; filter: saturate(1) brightness(1); }
  36%, 64% { opacity: 0.86; filter: saturate(1.06) brightness(1.03); }
}

@keyframes places-map-opening {
  0%, 12% { object-position: var(--map-bg-x, 50%) 0%; }
  88%, 100% { object-position: var(--map-bg-x, 50%) 100%; }
}

@keyframes places-pad-fly {
  0% {
    opacity: 0;
    filter: blur(3px);
    transform: translate(calc(-50% + var(--pad-flight-x)), calc(-50% + var(--pad-flight-y))) scale(0.38);
  }
  12% {
    opacity: 1;
  }
  52% {
    opacity: 1;
    filter: blur(0.7px);
    transform: translate(calc(-50% + var(--pad-flight-mid-x)), calc(-50% + var(--pad-flight-mid-y))) scale(0.78);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes places-ticker-forward {
  from { transform: translate3d(var(--location-set-offset), 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes places-ticker-reverse {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--location-set-offset), 0, 0); }
}

@keyframes places-cat-label-from-right {
  from { opacity: 0; transform: translate3d(118%, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes places-cat-label-from-left {
  from { opacity: 0; transform: translate3d(-118%, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes places-cat-panel-exit-left {
  from { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; filter: blur(1.2px); transform: translate3d(-108%, 0, 0) scale(0.97); }
}

@keyframes places-cat-panel-exit-right {
  from { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
  to { opacity: 0; filter: blur(1.2px); transform: translate3d(108%, 0, 0) scale(0.97); }
}

@keyframes places-cat-panel-from-right {
  from { opacity: 0; filter: blur(1.2px); transform: translate3d(108%, 0, 0) scale(0.97); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes places-cat-panel-from-left {
  from { opacity: 0; filter: blur(1.2px); transform: translate3d(-108%, 0, 0) scale(0.97); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0) scale(1); }
}

/* ======================================================================
 * Breakpoints (source order matters where ranges overlap)
 * ==================================================================== */

/* Brazil title sits lower on desktop / tablet. */
@media (min-width: 901px) {
  .places-hero__content.is-brazil-title {
    transform: translate3d(0, calc(clamp(7rem, 11vh, 9.5rem) - 1rem), 0);
  }

  .places-hero__content.is-brazil-title.is-title-leaving {
    transform: translate3d(-24px, calc(clamp(7rem, 11vh, 9.5rem) - 1rem), 0);
  }
}

/* Short desktops / tablets (includes the 1280×720 canvas). */
@media (min-width: 901px) and (max-height: 760px) {
  .places {
    padding: max(var(--header-height, 70px), 8px) 0 8px;
  }

  .places-hero__eyebrow {
    margin-bottom: 14px;
  }

  .places-hero__title {
    font-size: clamp(34px, 3.7vw, 54px);
  }

  .places-tab {
    min-height: 62px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .places-drawer {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .proof-card__body {
    min-height: 164px;
    padding-top: 14px;
    padding-bottom: 13px;
  }

  .proof-card__title {
    font-size: clamp(22px, 1.75vw, 28px);
  }

  .proof-card__rule {
    margin: 10px 0;
  }

  .proof-card__description {
    font-size: 12px;
    line-height: 1.34;
  }

  .proof-card__tags {
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .map-morph.is-opening .map-morph__slide.is-current .map-morph__media img {
    animation: none;
  }

  /* Ticker rows rest at fixed offsets. */
  .location-row__track {
    animation: none !important;
    transform: translate3d(-12%, 0, 0);
    will-change: auto;
  }

  .location-row:nth-child(even) .location-row__track {
    transform: translate3d(-38%, 0, 0);
  }
}

/* Tablets and small desktops. */
@media (max-width: 1220px) {
  .places {
    width: min(1180px, calc(100vw - 32px));
    align-content: start;
  }

  .places-home-return {
    padding-top: 28px;
  }

  .places-hero {
    padding: 32px 40px;
  }

  .places-drawer {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 16px;
    padding: 28px 28px 34px 12px;
  }

  .places-tab {
    padding-inline: 10px;
    gap: 8px;
  }

  .places-tab__label {
    letter-spacing: 0.22em;
  }

  .proof-card {
    min-height: 0;
  }

  .proof-card__body {
    min-height: 232px;
  }
}

/* Tablet landscape: taller map, narrow tabs, smaller pads, NZ y-slider. */
@media (orientation: landscape) and (min-width: 901px) and (max-width: 1180px) {
  .places-hero {
    min-height: clamp(420px, 58svh, 640px);
    padding-block: clamp(18px, 2.4vh, 28px);
  }

  .places-drawer {
    grid-template-columns: 164px minmax(0, 1fr);
    gap: 10px;
    padding: 22px 18px 26px 8px;
  }

  .places-tab {
    padding-inline: 6px;
    gap: 6px;
  }

  .places-tab__label {
    max-width: 96px;
    font-size: clamp(9px, 0.9vw, 10.5px);
    letter-spacing: 0.12em;
  }

  .proof-cards {
    margin-left: 2px;
    gap: clamp(10px, 1.1vw, 14px);
  }

  .map-morph__location-pad {
    --location-pad-size: clamp(0.36rem, 0.38vw, 0.47rem);
    border-width: 0.06rem;
    box-shadow:
      inset 0 0.06rem 0.1rem rgba(255, 246, 218, 0.58),
      inset 0 -0.08rem 0.11rem rgba(83, 22, 2, 0.55),
      0 0 0 0.08rem rgba(190, 74, 13, 0.44),
      0 0 0.38rem rgba(240, 103, 25, 0.68),
      0 0.1rem 0.26rem rgba(0, 0, 0, 0.66);
  }

  .map-morph__location-pad.is-medium {
    --location-pad-size: clamp(0.62rem, 0.67vw, 0.82rem);
  }

  .map-morph__location-pad.is-featured {
    --location-pad-size: clamp(0.84rem, 0.96vw, 1.11rem);
    border-width: 0.1rem;
    box-shadow:
      inset 0 0.08rem 0.12rem rgba(255, 246, 218, 0.65),
      inset 0 -0.09rem 0.13rem rgba(83, 22, 2, 0.58),
      0 0 0 0.1rem rgba(190, 74, 13, 0.5),
      0 0 0.52rem rgba(240, 103, 25, 0.8),
      0 0.12rem 0.3rem rgba(0, 0, 0, 0.7);
  }

  .map-morph__location-pad::after {
    inset: -0.18rem;
  }

  .map-morph__location-label {
    padding: 0.28rem 0.42rem 0.3rem;
    font-size: clamp(8px, 0.85vw, 10px);
  }

  .map-morph__y-rail.is-visible {
    position: absolute;
    top: 12%;
    right: 8px;
    bottom: 28%;
    z-index: 10;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .map-morph__y-rail.is-visible::before {
    width: 2px;
    height: 100%;
    content: "";
    border-radius: 1px;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(241, 199, 125, 0.22) 8%,
      rgba(241, 199, 125, 0.72) 50%,
      rgba(241, 199, 125, 0.22) 92%,
      transparent
    );
    box-shadow: 0 0 10px rgba(241, 199, 125, 0.22);
  }

  .map-morph__y-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 236, 194, 0.92);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgb(255, 247, 224) 0 18%, rgb(218, 166, 93) 58%, rgb(139, 88, 28) 100%);
    box-shadow:
      0 0 0 1px rgba(241, 199, 125, 0.28),
      0 0 12px rgba(241, 199, 125, 0.48);
    transform: translate(-50%, -50%);
    pointer-events: none;
  }
}

/* Mobile. */
@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  .places {
    width: min(100%, calc(100vw - 20px));
    max-width: 100%;
    margin-inline: auto;
    padding: calc(var(--header-height, 70px) + env(safe-area-inset-top, 0px) + 10px) 0 28px;
  }

  .places__shell {
    width: 100%;
    max-width: 100%;
  }

  .places-home-return {
    padding: 24px 12px calc(4px + env(safe-area-inset-bottom, 0px));
  }

  .places-home-return__link {
    width: max-content;
    max-width: calc(100% - 32px);
    min-height: 48px;
    padding: 12px 18px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  /* Hero: the map is its own block; the title sits underneath. */
  .places-hero {
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
  }

  .map-morph {
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    height: min(52svh, 440px);
    min-height: 280px;
    flex: 0 0 auto;
    overflow: hidden;
    border-bottom: 1px solid rgba(241, 199, 125, 0.28);
    background: #0b1110;
    box-shadow: 0 0 22px rgba(217, 164, 94, 0.08);
  }

  .map-morph__hover-cue:not(.is-touch-hint) {
    display: none;
  }

  .map-morph__controls {
    top: 14px;
    right: 14px;
    bottom: auto;
    left: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  .map-morph__country {
    font-size: 16px;
    letter-spacing: 0.14em;
  }

  .map-morph__nav {
    gap: 10px;
  }

  .map-morph__dot {
    --map-dot-duration: 980ms;
    width: 14px;
    height: 14px;
  }

  .map-morph__location-pad {
    --location-pad-size: 0.32rem;
    border-width: 0.05rem;
    box-shadow:
      inset 0 0.04rem 0.07rem rgba(255, 246, 218, 0.58),
      inset 0 -0.05rem 0.08rem rgba(83, 22, 2, 0.55),
      0 0 0 0.05rem rgba(190, 74, 13, 0.44),
      0 0 0.26rem rgba(240, 103, 25, 0.72),
      0 0.08rem 0.22rem rgba(0, 0, 0, 0.66);
  }

  .map-morph__location-pad.is-medium {
    --location-pad-size: 0.49rem;
  }

  .map-morph__location-pad.is-featured {
    --location-pad-size: 0.65rem;
    border-width: 0.07rem;
    box-shadow:
      inset 0 0.05rem 0.08rem rgba(255, 246, 218, 0.65),
      inset 0 -0.06rem 0.08rem rgba(83, 22, 2, 0.58),
      0 0 0 0.06rem rgba(190, 74, 13, 0.52),
      0 0 0.34rem rgba(240, 103, 25, 0.88),
      0 0.1rem 0.26rem rgba(0, 0, 0, 0.72);
  }

  .map-morph__location-pad::after {
    inset: -0.14rem;
    border-width: 0.04rem;
  }

  .map-morph__location-label {
    padding: 2px 4px;
    font-size: 7.5px;
    letter-spacing: 0.1em;
  }

  .map-morph__location-pad:hover,
  .map-morph__location-pad:focus-visible,
  .map-morph__location-pad.is-active {
    transform: translate(-50%, -50%) scale(1.06);
  }

  .places-hero__content,
  .places-hero__content.is-title-right {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 22px 16px 18px;
    grid-column: auto;
    justify-self: stretch;
    align-self: stretch;
    border-bottom: 1px solid rgba(241, 199, 125, 0.22);
    text-align: left;
    pointer-events: none;
    background:
      radial-gradient(circle at 18% 0%, rgba(217, 164, 94, 0.08), transparent 42%),
      linear-gradient(180deg, rgba(16, 21, 19, 0.98), rgba(8, 12, 11, 0.99));
  }

  .places-hero__content.is-title-leaving,
  .places-hero__content.is-title-right.is-title-leaving {
    transform: translate3d(0, 8px, 0);
  }

  .places-hero__eyebrow {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 0.28em;
  }

  .places-hero__title {
    max-width: none;
    font-size: clamp(28px, 7.6vw, 36px);
    line-height: 0.94;
  }

  .places-hero__title.is-australia-title {
    max-width: none;
    font-size: clamp(26px, 7.2vw, 34px);
  }

  .places-hero__microcopy {
    width: auto;
    max-width: 100%;
    margin-top: 14px;
    margin-bottom: 6px;
    padding-left: 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }

  .places-hero__microcopy-kicker {
    font-size: 0.85em;
    letter-spacing: 0.14em;
  }

  .places-hero__microcopy strong {
    font-size: 1.4em;
  }

  /* Ticker */
  .location-field {
    height: auto;
    min-height: 200px;
    padding-block: 10px;
  }

  .location-row:nth-child(1) { --row-size: 14px; }
  .location-row:nth-child(2) { --row-size: 17px; }
  .location-row:nth-child(3) { --row-size: 22px; }
  .location-row:nth-child(4) { --row-size: 28px; }

  /* Drawer: one label + chevrons instead of the tab strip. */
  .places-drawer {
    padding: 22px 14px 32px;
    display: block;
  }

  .places-tabs {
    display: none;
  }

  .places-cat-slider {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .places-cat-slider__head {
    width: 100%;
    min-height: 52px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
  }

  .places-cat-slider__chev {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(241, 199, 125, 0.34);
    border-radius: 999px;
    color: rgba(241, 199, 125, 0.92);
    background:
      linear-gradient(160deg, rgba(255, 236, 196, 0.1), transparent 55%),
      rgba(10, 14, 12, 0.72);
    box-shadow:
      inset 0 1px 0 rgba(255, 244, 220, 0.12),
      0 10px 28px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
      border-color 320ms ease,
      color 320ms ease,
      background 320ms ease,
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 420ms ease;
  }

  .places-cat-slider__chev svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .places-cat-slider__chev:active {
    transform: scale(0.94);
  }

  .places-cat-slider__chev:focus-visible {
    outline: 2px solid rgba(241, 199, 125, 0.85);
    outline-offset: 2px;
  }

  .places-cat-slider.is-sliding .places-cat-slider__chev {
    pointer-events: none;
    opacity: 0.55;
  }

  .places-cat-slider__label-stage {
    position: relative;
    min-width: 0;
    min-height: 1.2em;
    overflow: hidden;
    text-align: center;
  }

  .places-cat-slider__label {
    margin: 0;
    color: var(--places-title);
    font-family: var(--places-serif);
    font-size: clamp(22px, 6.4vw, 30px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow:
      0 1px 0 rgba(255, 246, 220, 0.22),
      0 8px 24px rgba(0, 0, 0, 0.45);
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
      transform 780ms cubic-bezier(0.19, 1, 0.22, 1),
      opacity 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform, opacity;
  }

  .places-cat-slider__label.is-exit-left {
    opacity: 0;
    transform: translate3d(-118%, 0, 0);
  }

  .places-cat-slider__label.is-exit-right {
    opacity: 0;
    transform: translate3d(118%, 0, 0);
  }

  .places-cat-slider__label.is-enter-from-right {
    animation: places-cat-label-from-right 780ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }

  .places-cat-slider__label.is-enter-from-left {
    animation: places-cat-label-from-left 780ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }

  .places-cat-slider__stage {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    touch-action: pan-y;
  }

  .places-cat-panel {
    width: 100%;
    display: block;
    will-change: transform, opacity;
  }

  .places-cat-panel.is-active {
    position: relative;
    z-index: 1;
  }

  /* The outgoing panel overlays the incoming one while both slide. */
  .places-cat-panel.is-animating {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    pointer-events: none;
  }

  .places-cat-panel.is-animating.is-active {
    position: relative;
  }

  .places-cat-panel.is-exit-left {
    animation: places-cat-panel-exit-left 860ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }

  .places-cat-panel.is-exit-right {
    animation: places-cat-panel-exit-right 860ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }

  .places-cat-panel.is-enter-from-right {
    animation: places-cat-panel-from-right 860ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }

  .places-cat-panel.is-enter-from-left {
    animation: places-cat-panel-from-left 860ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }

  /* Cards: one column. */
  .proof-cards {
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .proof-card {
    min-height: 0;
  }

  .proof-card__image {
    aspect-ratio: 4 / 3;
  }

  .proof-card__image::after {
    display: none;
  }

  .proof-card__image img {
    filter: none;
  }

  .proof-card__body {
    min-height: 0;
    padding: 18px 16px 16px;
  }

  .proof-card__title {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.05;
  }

  .proof-card__location {
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .proof-card__description {
    max-width: none;
    min-height: 0;
    font-size: 20px;
    line-height: 1.55;
  }

  .proof-card__tags {
    padding-top: 16px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .places-cat-slider__label,
  .places-cat-panel {
    animation: none !important;
    transition: none !important;
  }
}

/* Phone landscape: the map uses the short viewport; cards sit 3-across. */
@media (max-width: 900px) and (orientation: landscape) {
  .map-morph {
    height: min(96svh, 640px);
    min-height: 440px;
  }

  .places-home-return {
    padding-top: 20px;
  }

  .places-home-return__link {
    max-width: min(78vw, 640px);
  }

  .proof-cards {
    margin-left: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .proof-card__image {
    aspect-ratio: 16 / 10;
  }

  .proof-card__body {
    min-height: 0;
    padding: 12px 10px;
  }

  .proof-card__title {
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.08;
  }

  .proof-card__location {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .proof-card__tags {
    padding-top: 10px;
    font-size: 8px;
    letter-spacing: 0.08em;
  }
}

/* Phone portrait: crops and touch-hint position. */
@media (max-width: 900px) and (orientation: portrait) {
  .map-morph__slide[data-map-name="Brazil"] .map-morph__media img {
    --map-bg-x: 30%;
  }

  .map-morph__hover-cue.is-touch-hint {
    left: 25%;
  }
}

/* Extra-wide windows without the canvas (e.g. resized after load). */
@media (min-width: 1737px) {
  .places {
    width: calc(100vw - 56px);
    max-width: none;
  }

  .places-hero {
    min-height: min(820px, calc(580px + (100vw - 1737px) * 0.36));
  }

  .location-field {
    height: min(360px, calc(260px + (100vw - 1737px) * 0.17));
  }
}

/* Site high-resolution type scale (≥ 1921 × 1081 without the canvas):
   N px at 1920×1080, growing with min(vw, vh), capped at ×1.45–1.55. */
@media (min-width: 1921px) and (min-height: 1081px) {
  .places-hero__eyebrow { font-size: clamp(11px, min(0.572917vw, 1.018519vh), 17.05px); }
  .places-hero__title { font-size: clamp(70px, min(3.645833vw, 6.481481vh), 101.5px); }
  .places-hero__microcopy,
  .proof-card__description { font-size: clamp(15px, min(0.78125vw, 1.388889vh), 22.5px); }
  .places-hero__microcopy-kicker,
  .places-tab__label,
  .proof-card__location,
  .proof-card__tags,
  .places-cat-slider__label { font-size: clamp(12px, min(0.625vw, 1.111111vh), 18.6px); }
  .proof-card__title { font-size: clamp(34px, min(1.770833vw, 3.148148vh), 51px); }
  .map-morph__location-label { font-size: clamp(18px, min(0.9375vw, 1.666667vh), 27px); }
  .map-morph__country { font-size: clamp(11px, min(0.572917vw, 1.018519vh), 17.05px); }
  .places-home-return__link { font-size: clamp(13px, min(0.677083vw, 1.203704vh), 20.15px); }
}
