@import url('../fonts/fonts.css');

/* ==========================================================================
   New Zealand Travel Handbook — design system
   Modern travel-app look: full-bleed photography, bold display type,
   generous whitespace, light + dark themes.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Palette — pounamu green against warm paper, with a sunset accent. */
  --paper: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f4f2ed;
  --surface-3: #ebe8e0;
  --ink: #14181c;
  --ink-2: #454e57;
  --ink-3: #737d87;
  --line: #e4e0d7;
  --line-strong: #d2ccbf;

  --accent: #0b6e5e;
  --accent-hover: #095748;
  --accent-soft: #e6f2ef;
  --accent-ink: #084b40;

  --warm: #c2571f;
  --warm-soft: #fbeee4;
  --warm-ink: #8d3d13;

  --info: #1c5f8f;
  --info-soft: #e7f0f8;

  --shadow-sm: 0 1px 2px rgb(20 24 28 / 0.06), 0 1px 3px rgb(20 24 28 / 0.04);
  --shadow-md: 0 4px 12px rgb(20 24 28 / 0.07), 0 2px 4px rgb(20 24 28 / 0.04);
  --shadow-lg: 0 12px 32px rgb(20 24 28 / 0.11), 0 4px 8px rgb(20 24 28 / 0.05);

  --font-display: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --bar-h: 60px;
  --page-max: 1120px;
  --prose-max: 68ch;

  color-scheme: light;
}

:root[data-theme='dark'],
:root:not([data-theme='light']) {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0e1216;
    --surface: #161b21;
    --surface-2: #1d242b;
    --surface-3: #262f37;
    --ink: #eef1f4;
    --ink-2: #b3bcc5;
    --ink-3: #828d97;
    --line: #2a333b;
    --line-strong: #3a444e;

    --accent: #4fc3a9;
    --accent-hover: #6ad3bb;
    --accent-soft: #12312b;
    --accent-ink: #9fe4d3;

    --warm: #f0915c;
    --warm-soft: #3a2113;
    --warm-ink: #f7bd97;

    --info: #6fb2e0;
    --info-soft: #14283a;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 4px 12px rgb(0 0 0 / 0.45);
    --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.55);

    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --paper: #0e1216;
  --surface: #161b21;
  --surface-2: #1d242b;
  --surface-3: #262f37;
  --ink: #eef1f4;
  --ink-2: #b3bcc5;
  --ink-3: #828d97;
  --line: #2a333b;
  --line-strong: #3a444e;

  --accent: #4fc3a9;
  --accent-hover: #6ad3bb;
  --accent-soft: #12312b;
  --accent-ink: #9fe4d3;

  --warm: #f0915c;
  --warm-soft: #3a2113;
  --warm-ink: #f7bd97;

  --info: #6fb2e0;
  --info-soft: #14283a;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 0.45);
  --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.55);

  color-scheme: dark;
}

/* Simplified Chinese sets its own stack — CJK webfonts are far too heavy to ship. */
:root:lang(zh),
html[lang^='zh'] {
  --font-display: 'Bricolage Grotesque', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC',
    'Microsoft YaHei', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei',
    ui-sans-serif, system-ui, sans-serif;
}

/* --- Reset ---------------------------------------------------------------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

/* A <picture> is a real box in the layout, so anywhere we crop an image to a
   fixed aspect the wrapper has to fill the frame too — otherwise `height: 100%`
   on the <img> resolves against an auto-height parent and the crop is lost. */
.hero-media picture,
.stay-card-media picture,
.shot picture {
  width: 100%;
  height: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

/* --- Typography ----------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.eyebrow {
  font-size: 0.688rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 4px;
}

.section-sub {
  color: var(--ink-3);
  font-size: 0.938rem;
  margin-bottom: 22px;
}

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.section {
  padding-block: clamp(36px, 6vw, 64px);
}

.section + .section {
  padding-top: 0;
}

/* --- App bar -------------------------------------------------------------- */

.appbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: clamp(12px, 3vw, 24px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.appbar[data-scrolled='true'] {
  border-bottom-color: var(--line);
}

.appbar-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.813rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.appbar-back:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  transform: translateX(-2px);
}

.appbar-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.938rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.appbar[data-scrolled='true'] .appbar-title {
  opacity: 1;
  transform: none;
}

.appbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Theme toggle swaps which glyph is visible. */
.icon-btn .icon-moon {
  display: none;
}

:root[data-theme='dark'] .icon-btn .icon-moon {
  display: block;
}

:root[data-theme='dark'] .icon-btn .icon-sun {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-btn .icon-moon {
    display: block;
  }

  :root:not([data-theme='light']) .icon-btn .icon-sun {
    display: none;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.813rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang-switch:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(74svh, 620px);
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 6vw, 56px) 0 clamp(28px, 5vw, 48px);
  margin-top: calc(var(--bar-h) * -1);
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      to bottom,
      rgb(8 12 16 / 0.55) 0%,
      rgb(8 12 16 / 0.15) 28%,
      rgb(8 12 16 / 0.5) 68%,
      rgb(8 12 16 / 0.85) 100%
    ),
    linear-gradient(to right, rgb(8 12 16 / 0.45), transparent 60%);
}

.hero-inner {
  width: 100%;
}

.hero .eyebrow {
  color: rgb(255 255 255 / 0.75);
}

.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4.75rem);
  letter-spacing: -0.035em;
  margin: 10px 0 14px;
  max-width: 15ch;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.35);
}

.hero h1 em {
  font-style: normal;
  display: block;
  color: color-mix(in srgb, var(--accent) 55%, #ffffff);
}

.hero-lede {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgb(255 255 255 / 0.85);
  max-width: 46ch;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.4);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 48px);
  margin-top: clamp(24px, 4vw, 36px);
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.22);
}

.hero-stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-stat .label {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.7);
}

.hero-credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 0.625rem;
  color: rgb(255 255 255 / 0.5);
  z-index: 1;
}

.hero-credit a {
  color: inherit;
}

/* Compact hero used on stay pages. */
.hero--stay {
  min-height: min(58svh, 480px);
}

.hero--stay h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.25rem);
  max-width: 20ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 14px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}

.hero-chip--solid {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

/* --- Journey rail (index) ------------------------------------------------- */

.rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar {
  height: 6px;
}

.rail::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: var(--r-pill);
}

.rail-day {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 78px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rail-day:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.rail-day .d-num {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rail-day .d-date {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 3px 0 2px;
}

.rail-day .d-place {
  display: block;
  font-size: 0.688rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 92px;
}

.rail-day[data-kind='travel'] {
  background: var(--surface-2);
}

/* Once every day fits, stop scrolling and show the whole trip at a glance. */
@media (min-width: 1000px) {
  .rail {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    overflow: visible;
  }

  .rail-day {
    min-width: 0;
  }

  .rail-day .d-place {
    max-width: 100%;
  }
}

/* --- Stay cards (index) --------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.stay-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.stay-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.stay-card:has(.stay-card-link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.stay-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}

.stay-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.stay-card:hover .stay-card-media img {
  transform: scale(1.05);
}

.stay-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(8 12 16 / 0.55), transparent 45%);
}

.stay-card-daytag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.92);
  color: #14181c;
  font-size: 0.688rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.stay-card-island {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  font-size: 0.688rem;
  font-weight: 600;
  color: rgb(255 255 255 / 0.92);
  text-shadow: 0 1px 6px rgb(0 0 0 / 0.5);
}

.stay-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  flex: 1;
}

.stay-card-dates {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.stay-card h3 {
  font-size: 1.188rem;
  letter-spacing: -0.02em;
}

.stay-card-link {
  color: inherit;
  text-decoration: none;
}

/* Whole-card click target without nesting interactive elements. */
.stay-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

.stay-card-place {
  font-size: 0.875rem;
  color: var(--ink-3);
}

.stay-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.688rem;
  font-weight: 600;
  color: var(--ink-2);
}

.mini-tag--accent {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent-ink);
}

.stay-card--travel .stay-card-media {
  aspect-ratio: 16 / 7;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

.stay-card--travel .stay-card-media::after {
  display: none;
}

.stay-card--travel .plane {
  width: 46px;
  height: 46px;
  stroke: rgb(255 255 255 / 0.9);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Section nav (stay pages) --------------------------------------------- */

.subnav {
  position: sticky;
  top: var(--bar-h);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.subnav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-inner::-webkit-scrollbar {
  display: none;
}

.subnav a {
  flex: 0 0 auto;
  padding: 14px 14px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.subnav a:hover {
  color: var(--ink);
}

.subnav a[aria-current='true'] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --- Panels --------------------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}

.panel + .panel {
  margin-top: 20px;
}

.prose {
  max-width: var(--prose-max);
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.72;
}

/* --- Room summary --------------------------------------------------------- */

.room-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.room-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.room-badge .k {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.room-badge .v {
  font-size: 0.938rem;
  font-weight: 700;
  color: var(--accent-ink);
  letter-spacing: -0.01em;
}

/* --- Amenities ------------------------------------------------------------ */

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.amenity {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.amenity[data-state='yes'] {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
}

.amenity[data-state='note'] {
  background: var(--warm-soft);
  border-color: color-mix(in srgb, var(--warm) 26%, transparent);
}

.amenity[data-state='no'] {
  opacity: 0.6;
}

.amenity .a-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.amenity .a-name {
  font-size: 0.688rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.amenity .a-val {
  font-size: 0.813rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.amenity[data-state='yes'] .a-val {
  color: var(--accent-ink);
}

.amenity[data-state='note'] .a-val {
  color: var(--warm-ink);
}

/* --- Photo grid + gallery ------------------------------------------------- */

.photo-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.photo-grid[data-count='1'] {
  grid-template-columns: 1fr;
}

.shot {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  width: 100%;
}

.photo-grid[data-count='1'] .shot {
  aspect-ratio: 16 / 9;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.shot:hover img {
  transform: scale(1.045);
}

.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
  border-radius: inherit;
  pointer-events: none;
}

/* --- Attractions ---------------------------------------------------------- */

.day-block + .day-block {
  margin-top: 30px;
}

.day-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.day-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding-inline: 10px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.813rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.day-heading h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.attr-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.attr {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.attr:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.attr-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
}

.attr-photos:only-child {
  grid-template-columns: 1fr;
}

.attr-photos .shot {
  border-radius: 0;
  aspect-ratio: 16 / 10;
}

.attr-body {
  display: flex;
  gap: 12px;
  padding: 16px 18px 18px;
}

.attr-icon {
  font-size: 1.35rem;
  line-height: 1.1;
  flex-shrink: 0;
}

.attr h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.attr p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-3);
}

/* --- Notes / callouts ----------------------------------------------------- */

.note {
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  line-height: 1.6;
  border: 1px solid;
}

.note-icon {
  flex-shrink: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.note--info {
  background: var(--info-soft);
  border-color: color-mix(in srgb, var(--info) 26%, transparent);
  color: color-mix(in srgb, var(--info) 78%, var(--ink));
}

.note--warm {
  background: var(--warm-soft);
  border-color: color-mix(in srgb, var(--warm) 28%, transparent);
  color: var(--warm-ink);
}

.note--muted {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink-3);
}

.note a {
  color: inherit;
  font-weight: 600;
}

/* --- Flight timeline ------------------------------------------------------ */

.timeline {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.leg {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: baseline;
  padding-left: 26px;
  position: relative;
}

.leg::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--accent);
  z-index: 1;
}

.leg-time {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.leg-place {
  color: var(--ink-2);
  font-size: 0.938rem;
  line-height: 1.5;
}

.leg-gap {
  position: relative;
  padding-left: 26px;
  min-height: 34px;
  display: flex;
  align-items: center;
}

.leg-gap::before {
  content: '';
  position: absolute;
  left: 9px;
  top: -6px;
  bottom: -6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    color-mix(in srgb, var(--accent) 30%, transparent)
  );
}

.leg-gap span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --- Pager (prev / next stay) --------------------------------------------- */

.pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-top: 8px;
}

.pager a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pager a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}

.pager a:first-child:hover {
  transform: translateX(-3px);
}

.pager a:last-child:hover {
  transform: translateX(3px);
}

.pager .dir {
  font-size: 0.688rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pager .who {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.pager a:last-child {
  text-align: right;
}

/* --- Contact strip -------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}

.fact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-2);
  text-decoration: none;
}

a.fact:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.fact .k {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.fact .v {
  display: block;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(40px, 7vw, 72px);
  padding-block: 32px 44px;
  border-top: 1px solid var(--line);
  font-size: 0.813rem;
  color: var(--ink-3);
}

.site-footer p + p {
  margin-top: 8px;
}

.site-footer a {
  color: var(--ink-2);
}

/* --- Lightbox ------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  border: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop {
  background: rgb(6 9 12 / 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-stage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  gap: 14px;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.5);
}

.lightbox-cap {
  max-width: 62ch;
  text-align: center;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.78);
}

.lightbox-cap .credit {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.5);
}

.lightbox-cap .credit a {
  color: inherit;
}

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.25);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.15s ease;
}

.lb-btn:hover {
  background: rgb(255 255 255 / 0.24);
}

.lb-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lb-prev {
  left: clamp(8px, 2vw, 24px);
}

.lb-next {
  right: clamp(8px, 2vw, 24px);
}

.lb-close {
  top: clamp(12px, 2vw, 22px);
  right: clamp(12px, 2vw, 22px);
  transform: none;
}

.lightbox[hidden] {
  display: none;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 720px) {
  .leg {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .attr-body {
    padding: 14px 15px 16px;
  }

  .appbar-back span {
    display: none;
  }

  .appbar-back {
    padding: 7px 11px;
  }

  .pager a:last-child {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .amenity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .attr-photos {
    grid-template-columns: 1fr;
  }

  .attr-photos .shot:nth-child(n + 2) {
    display: none;
  }
}

/* --- Print ---------------------------------------------------------------- */

@media print {
  .appbar,
  .subnav,
  .pager,
  .rail,
  .lightbox {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .hero {
    min-height: auto;
    color: #000;
    margin-top: 0;
  }

  .hero-media,
  .hero::after {
    display: none;
  }

  .hero .eyebrow,
  .hero-lede,
  .hero-stat .label {
    color: #444;
  }

  .panel,
  .attr,
  .stay-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
