/* ==========================================================================
   This Trip Goes to 11 — shared design system
   Clear water throughout: sunlit shallows for the bright surfaces, the
   drop-off for the deep ones, one warm sand accent. Polished, but easy going.
   ========================================================================== */

:root {
  /* Clear water, from the shallows down to the drop-off. Every surface on the
     site is drawn from this one scale, so the whole page reads as water. */

  /* The depths — nav, footer, the sections that carry white type */
  --deep-navy: #0a5570;   /* deepest, 8.3:1 with white */
  --deep-ocean: #0d6280;  /* 6.8:1 with white */
  --deep-pine: #0f6a80;   /* 6.2:1 with white */
  --sea: #0f6a80;         /* links and eyebrows — 5.8:1 on the shallows */
  --sea-bright: #2ba7b3;

  /* The shallows — sections that carry deep-blue type */
  --mist: #eafaf8;
  --mist-warm: #f2fcfb;
  --surface: #ffffff;
  --surface-alt: #d4f2ef;

  /* Sunlit band used for the hero and each trip header */
  --shallow-01: #e8faf7;
  --shallow-02: #9ce4e2;
  --shallow-03: #5ccbcf;  /* deepest hero stop — 5.0:1 with the muted ink */

  /* Accents */
  --sand: #e0b874;
  --sand-soft: #f0dcb8;
  --foam: #7fe8dd;

  /* Clear water — sunlit shallows through to the drop-off. Used for the
     cards that link between pages. Stops stay light enough that the ink
     below clears AA everywhere on the gradient. */
  --lagoon-light: #cdf5ea;
  --lagoon-mid: #8adcd2;
  --lagoon-deep: #4cc6c6;
  --reef-light: #c7f0f7;
  --reef-mid: #86d9ea;
  --reef-deep: #52c4de;
  --ink-water: #08304a;        /* headings on water — 6.4:1 at the deepest stop */
  --ink-water-muted: #0f4a5e;  /* body on water — 4.6:1 at the deepest stop */

  /* Text — white on dark surfaces, deep blue on light ones */
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  --on-light: #0b2545;        /* deep navy blue — 14.1:1 on --mist */
  --on-light-muted: #3c5a7d;  /* same hue, dialled back — 6.5:1 on --mist */

  --border-light: #c2e8e4;
  --border-dark: rgba(255, 255, 255, 0.16);

  --shadow-soft: 0 12px 30px -18px rgba(10, 85, 112, 0.32);
  --shadow-lift: 0 24px 55px -24px rgba(10, 85, 112, 0.42);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--on-light);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.4em;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--on-light);
}

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

a { color: var(--sea); }
.on-dark a { color: var(--foam); }

.container { width: min(1180px, 90%); margin: 0 auto; }
.container--narrow { width: min(820px, 90%); margin: 0 auto; }

/* Surfaces decide their own text color ------------------------------------ */

.on-dark { color: var(--on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }
.on-dark .muted { color: var(--on-dark-muted); }

.on-light { color: var(--on-light); }
.on-light h1, .on-light h2, .on-light h3, .on-light h4 { color: var(--on-light); }
.on-light .muted { color: var(--on-light-muted); }

.muted { color: var(--on-light-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.on-dark .eyebrow { color: var(--sand); }
.on-light .eyebrow { color: var(--sea); }

/* ---------------------------------------------------------------------- */
/* Site nav                                                                */
/* ---------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 85, 112, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}

.site-nav__inner {
  width: min(1180px, 90%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-nav__logo {
  height: 52px;
  width: auto;
  display: block;
  flex: none;
  filter: brightness(0) invert(1);
}

.site-nav__brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--on-dark);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.site-nav__links a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--on-dark);
}

.site-nav__links a.is-active {
  background: linear-gradient(150deg, var(--lagoon-mid), var(--lagoon-deep));
  color: var(--ink-water);
  font-weight: 600;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--sand);
  color: var(--on-light);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--sand-soft); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(8, 48, 74, 0.25);
  color: var(--ink-water);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.9); }

.btn--outline {
  background: transparent;
  border-color: var(--sea);
  color: var(--sea);
}
.btn--outline:hover { background: var(--sea); color: var(--on-dark); }

.btn--small { padding: 8px 18px; font-size: 0.85rem; }

/* ---------------------------------------------------------------------- */
/* Dropzone — accepts a drop of any photo/doc format                       */
/* ---------------------------------------------------------------------- */

.dropzone {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  width: 100%;
  min-height: 220px;
  padding: 26px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(150deg, rgba(43, 167, 179, 0.35), rgba(10, 85, 112, 0.55)),
    var(--deep-ocean);
  color: var(--on-dark);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.dropzone:hover { border-color: var(--foam); }

.dropzone.is-dragover {
  border-color: var(--sand);
  border-style: solid;
  transform: scale(1.01);
  box-shadow: inset 0 0 0 4px rgba(224, 184, 116, 0.18);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone__icon { font-size: 1.9rem; line-height: 1; }

.dropzone__label {
  font-weight: 600;
  font-size: 0.98rem;
  max-width: 24ch;
}

/* An explicit button so the box reads as clickable, not just droppable.
   The file input covers the whole label, so this is purely an affordance. */
.dropzone__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 4px 0 2px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--sand);
  color: #3b2a0a;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s var(--ease);
}

.dropzone__cta::before { content: '＋'; font-size: 1.05em; line-height: 1; }
.dropzone:hover .dropzone__cta { background: var(--sand-soft); }
.dropzone.has-image .dropzone__cta,
.dropzone.has-doc .dropzone__cta { display: none; }

.dropzone__hint {
  font-size: 0.78rem;
  color: var(--on-dark-muted);
  letter-spacing: 0.02em;
}

.dropzone__filename {
  font-size: 0.78rem;
  color: var(--sand);
  word-break: break-word;
  max-width: 30ch;
}

/* Filled state: the photo becomes the box */
.dropzone__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.dropzone.has-image .dropzone__preview { opacity: 1; }

.dropzone.has-image .dropzone__icon,
.dropzone.has-image .dropzone__label,
.dropzone.has-image .dropzone__hint,
.dropzone.has-image .dropzone__filename {
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.dropzone.has-image:hover .dropzone__label,
.dropzone.has-image:hover .dropzone__hint {
  opacity: 1;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(10, 85, 112, 0.9);
}

.dropzone.has-image { border-style: solid; border-color: rgba(255, 255, 255, 0.18); }

.dropzone.has-file:not(.has-image) .dropzone__icon { opacity: 0.9; }

.dropzone__clear {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 85, 112, 0.75);
  color: var(--on-dark);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.dropzone.has-file .dropzone__clear,
.dropzone.has-image .dropzone__clear { display: block; }

/* Offers the decoded photo as a file to commit under assets/, which is how
   photos get published without spending the browser's storage budget. */
.dropzone__save {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: none;
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 85, 112, 0.85);
  color: var(--on-dark);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.dropzone.has-image .dropzone__save { display: block; }
.dropzone__save:hover { background: var(--sand); color: #3b2a0a; border-color: var(--sand); }

.dropzone__clear:hover { background: var(--deep-navy); }

/* Size variants */
.dropzone--tall { min-height: 480px; }
.dropzone--wide { min-height: 380px; }
.dropzone--square { min-height: 0; aspect-ratio: 1 / 1; }
.dropzone--short { min-height: 150px; }

/* ---------------------------------------------------------------------- */
/* Hero (home)                                                             */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(255, 255, 255, 0.75), transparent 62%),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.16) 0 3px, transparent 3px 26px),
    repeating-linear-gradient(-104deg, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 34px),
    linear-gradient(168deg, var(--shallow-01) 0%, var(--shallow-02) 46%, var(--shallow-03) 100%);
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.9rem, 6.4vw, 4.6rem);
  margin-bottom: 0.25em;
}

.hero__title em {
  font-style: normal;
  color: var(--sand);
  position: relative;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; }

.hero__stamp {
  position: absolute;
  bottom: -22px;
  left: -22px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--on-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: center;
  box-shadow: var(--shadow-lift);
  transform: rotate(-8deg);
}

/* Wave divider */
.wave {
  display: block;
  width: 100%;
  height: 70px;
  margin-top: -1px;
}

/* ---------------------------------------------------------------------- */
/* Alternating photo + text sections                                       */
/* ---------------------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
}

.feature--reverse .feature__media { order: 2; }

.feature__body p { font-size: 1.03rem; }

.section { padding: 92px 0; }
.section--light { background: var(--mist); }
.section--warm { background: linear-gradient(180deg, var(--mist-warm), var(--surface-alt)); }
.section--deep {
  background:
    repeating-linear-gradient(108deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 30px),
    linear-gradient(170deg, var(--deep-pine), var(--deep-navy));
}
.section--ocean {
  background:
    repeating-linear-gradient(-108deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 30px),
    linear-gradient(160deg, var(--deep-ocean), var(--deep-navy) 70%);
}

.section__head { max-width: 60ch; margin-bottom: 44px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

/* ---------------------------------------------------------------------- */
/* Postcard gallery                                                        */
/* ---------------------------------------------------------------------- */

.postcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
  gap: 20px;
}

.postcard {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.postcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.postcard .dropzone { border-radius: 0; border-width: 0 0 1px 0; }

.postcard__caption {
  width: 100%;
  border: 0;
  resize: none;
  overflow: hidden;
  padding: 14px 16px 16px;
  background: transparent;
  color: var(--on-light);
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 74px;
}

.postcard__caption:focus { outline: 2px solid var(--sea-bright); outline-offset: -2px; }
.postcard__caption::placeholder { color: var(--on-light-muted); }

/* Mosaic: two wide on the first row, three on the second — always a full row. */
.postcards--mixed { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.postcard--wide { grid-column: span 3; }
.postcard--third { grid-column: span 2; }

/* ---------------------------------------------------------------------- */
/* Tab / destination cards                                                 */
/* ---------------------------------------------------------------------- */

.tab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Shared water surface for every card that links to another page.
   Four layers, back to front: the body of the water, a depth shadow in the
   far corner, refracted light lines, and the sun hitting the near surface. */
.water-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  text-decoration: none;
  overflow: hidden;
  color: var(--ink-water);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(115% 78% at 14% 6%, rgba(255, 255, 255, 0.62), transparent 58%),
    radial-gradient(95% 75% at 90% 96%, rgba(8, 48, 74, 0.14), transparent 62%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.11) 0 2px, transparent 2px 24px),
    linear-gradient(155deg, var(--lagoon-light) 0%, var(--lagoon-mid) 44%, var(--lagoon-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 14px 34px -20px rgba(8, 48, 74, 0.55);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* The bluer, deeper pool. */
.water-card--reef {
  background:
    radial-gradient(115% 78% at 14% 6%, rgba(255, 255, 255, 0.62), transparent 58%),
    radial-gradient(95% 75% at 90% 96%, rgba(8, 48, 74, 0.14), transparent 62%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.11) 0 2px, transparent 2px 24px),
    linear-gradient(155deg, var(--reef-light) 0%, var(--reef-mid) 44%, var(--reef-deep) 100%);
}

.water-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 26px 52px -24px rgba(8, 48, 74, 0.6);
}

.water-card:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
}

/* Ink on water beats the .on-dark rules of the section the cards sit in. */
.water-card,
.water-card h2,
.water-card h3 { color: var(--ink-water); }

.water-card p { color: var(--ink-water-muted); }

/* --- The trip cards on the About page --- */

.tab-card {
  padding: 36px 32px 32px;
  min-height: 230px;
}

.tab-card__num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: rgba(8, 48, 74, 0.16);
  position: absolute;
  top: 18px;
  right: 26px;
}

.tab-card h3 { font-size: 1.5rem; margin-bottom: 0.2em; max-width: 20ch; }

.tab-card__when {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-water-muted);
  margin-bottom: 0.9em;
}
.tab-card p { margin-bottom: 18px; max-width: 34ch; }

.tab-card__go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-water);
  letter-spacing: 0.02em;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.tab-card:hover .tab-card__go { background: rgba(255, 255, 255, 0.85); transform: translateX(3px); }

/* ---------------------------------------------------------------------- */
/* Trips                                                                   */
/* ---------------------------------------------------------------------- */

.trip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-light);
}

.trip:last-child { border-bottom: 0; }
.trip--reverse .trip__media { order: 2; }

.trip__media { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.trip__media .dropzone--tall { grid-column: span 2; min-height: 340px; }

.trip__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-alt);
  color: var(--sea);
}

.chip--sand { background: var(--sand-soft); color: #6b4d15; }
.chip--dark { background: rgba(255, 255, 255, 0.6); color: var(--ink-water); }

.field-title,
.field-line,
.field-notes {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 4px 0;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s var(--ease);
}

.field-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.field-notes { resize: none; overflow: hidden; min-height: 96px; line-height: 1.6; }

.field-title:hover, .field-line:hover, .field-notes:hover { border-bottom-color: var(--border-light); }
.field-title:focus, .field-line:focus, .field-notes:focus {
  outline: none;
  border-bottom-color: var(--sea-bright);
}

.field-title::placeholder, .field-line::placeholder, .field-notes::placeholder {
  color: var(--on-light-muted);
  opacity: 0.7;
}

.on-dark .field-title::placeholder,
.on-dark .field-line::placeholder,
.on-dark .field-notes::placeholder {
  color: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.on-dark .field-title:hover,
.on-dark .field-line:hover,
.on-dark .field-notes:hover { border-bottom-color: var(--border-dark); }

.page-head {
  background: linear-gradient(165deg, var(--deep-navy), var(--deep-pine));
  padding: 72px 0 78px;
}

.page-head__title { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.page-head__lede { max-width: 54ch; font-size: 1.05rem; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.filter {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--on-light-muted);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter:hover { border-color: var(--sea-bright); color: var(--sea); }
.filter.is-active { background: var(--deep-pine); border-color: var(--deep-pine); color: var(--on-dark); }
.filter.is-active .muted { color: rgba(255, 255, 255, 0.65); }

/* ---------------------------------------------------------------------- */
/* Recommendations                                                         */
/* ---------------------------------------------------------------------- */

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 26px;
}

.rec-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.rec-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.rec-card .dropzone { border-radius: 0; border-width: 0; min-height: 200px; }

.rec-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.rec-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.cat-select {
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--surface-alt);
  color: var(--sea);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.cat-select:focus { outline: 2px solid var(--sea-bright); outline-offset: 1px; }

.rec-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  border: 0;
  background: transparent;
  color: var(--on-light);
  width: 100%;
  padding: 0;
  resize: none;
  overflow: hidden;
}
.rec-card__title:focus { outline: none; }

.rec-card__where {
  font-size: 0.82rem;
  color: var(--on-light-muted);
  border: 0;
  background: transparent;
  width: 100%;
  padding: 0;
}
.rec-card__where:focus { outline: none; }

.rec-card__notes {
  border: 0;
  background: transparent;
  resize: none;
  overflow: hidden;
  min-height: 84px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--on-light);
  padding: 0;
  flex: 1;
}
.rec-card__notes:focus { outline: none; }

.rec-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.rating { display: flex; gap: 2px; }

.rating__star {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px;
  color: var(--border-light);
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}

.rating__star:hover { transform: scale(1.15); }
.rating__star.is-on { color: var(--sand); }

.link-btn {
  border: 0;
  background: transparent;
  color: var(--on-light-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px;
}
.link-btn:hover { color: #a4372f; }

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--on-light-muted);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
}

/* ---------------------------------------------------------------------- */
/* Quote / why block                                                       */
/* ---------------------------------------------------------------------- */

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.9vw, 2rem);
  line-height: 1.35;
  max-width: 24ch;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.stat__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

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

.site-footer {
  background: var(--deep-navy);
  color: var(--on-dark-muted);
  padding: 46px 0 40px;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-footer__brand span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--on-dark);
  letter-spacing: -0.01em;
}

.site-footer__logo {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.site-footer strong { color: var(--on-dark); }

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.site-footer__links a { color: var(--foam); text-decoration: none; }

.site-footer__disclosure {
  margin-top: 16px;
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.75;
}
.site-footer__links a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------- */
/* Scroll reveal                                                           */
/* ---------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Toast for storage warnings */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 90;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--deep-navy);
  color: var(--on-dark);
  font-size: 0.86rem;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  max-width: 90vw;
  text-align: center;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

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

@media (max-width: 900px) {
  .hero__grid,
  .feature,
  .trip { grid-template-columns: 1fr; gap: 34px; }

  .feature--reverse .feature__media,
  .trip--reverse .trip__media { order: 0; }

  .hero { padding: 56px 0 68px; }
  .section { padding: 64px 0; }
  .dropzone--tall { min-height: 320px; }
  .postcards--mixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .postcard--wide { grid-column: span 2; }
  .postcard--third { grid-column: span 1; }
  .hero__stamp { width: 88px; height: 88px; font-size: 0.72rem; left: -10px; bottom: -16px; }
}

@media (max-width: 620px) {
  .site-nav__inner { flex-direction: column; gap: 10px; padding: 12px 0; }
  .site-nav__logo { height: 42px; }
  .site-nav__brand-text { font-size: 1.05rem; }
  .site-nav__links { width: 100%; justify-content: center; }
  .site-nav__links a { padding: 7px 14px; font-size: 0.86rem; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .trip__media { grid-template-columns: 1fr; }
  .trip__media .dropzone--tall { grid-column: span 1; }
  .postcards--mixed { grid-template-columns: minmax(0, 1fr); }
  .postcard--wide, .postcard--third { grid-column: span 1; }
}

/* ---------------------------------------------------------------------- */
/* Published (view) mode                                                   */
/* ---------------------------------------------------------------------- */

.photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--deep-ocean);
  box-shadow: var(--shadow-soft);
}

.photo img { width: 100%; height: auto; display: block; }

/* The dial logo's own lines are black; give it a white card instead of the usual teal fill. */
#why-eleven .photo { background: #ffffff; }

/* The dropzone--* variants size the *empty* frame. Once a frame holds a
   picture it takes that picture's shape, otherwise the frame's background
   shows as a band under a photo that doesn't happen to match its height. */
.photo.dropzone--tall,
.photo.dropzone--wide,
.photo.dropzone--short { min-height: 0; }

/* Frames with a shape to keep crop to fill it instead. */
.photo.dropzone--square { aspect-ratio: 1 / 1; min-height: 0; }
.photo.dropzone--square img { height: 100%; object-fit: cover; }

.postcard .photo { border-radius: 0; box-shadow: none; }
.rec-card .photo { border-radius: 0; box-shadow: none; }
.rec-card .photo img { height: 200px; }

.postcard__caption--static {
  padding: 14px 16px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--on-light-muted);
}

.postcard__caption--static:empty { display: none; }

.trip__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 0.2em; }
.trip__when { font-size: 0.95rem; margin-bottom: 0.9em; }
.trip__notes { font-size: 1.03rem; }

.trip--textonly { grid-template-columns: minmax(0, 1fr); }

.rec-card__title--static { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.rec-card__where--static { font-size: 0.82rem; color: var(--on-light-muted); margin: 0; }
.rec-card__notes--static { font-size: 0.92rem; line-height: 1.55; margin: 0; flex: 1; }

.rec-card__foot .rating__star { cursor: default; }

/* ---------------------------------------------------------------------- */
/* Edit-mode toolbar                                                       */
/* ---------------------------------------------------------------------- */

.editbar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 85, 112, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-lift);
  color: var(--on-dark);
  max-width: min(94vw, 780px);
}

.editbar__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--foam);
  flex: none;
}

.editbar__label { font-size: 0.82rem; color: var(--on-dark-muted); }

.editbar .btn { padding: 7px 14px; font-size: 0.82rem; }
.editbar .btn:hover { transform: none; }

.editbar__import { cursor: pointer; margin: 0; }

.editbar__exit {
  font-size: 0.8rem;
  color: var(--foam);
  text-decoration: none;
  white-space: nowrap;
}

.editbar__exit:hover { text-decoration: underline; }

/* Keep the toolbar clear of the footer */
body.is-editing .site-footer { padding-bottom: 90px; }

@media (max-width: 620px) {
  .editbar { justify-content: center; text-align: center; border-radius: var(--radius-md); }
  .editbar__label { width: 100%; }
}

/* A section whose photo frame is empty collapses to a single column. */
.feature--textonly { grid-template-columns: minmax(0, 1fr); }
.feature--textonly .feature__body { max-width: 68ch; }

.hero__grid--textonly {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}
.hero__grid--textonly .hero__body { max-width: 62ch; }
.hero__grid--textonly .hero__lede { margin-left: auto; margin-right: auto; }
.hero__grid--textonly .hero__actions { justify-content: center; }

/* Published postcard wall: even tiles, however many made the cut. */
.postcards--even {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.postcards--even .postcard--wide,
.postcards--even .postcard--third { grid-column: auto; }

.postcards--even .photo { aspect-ratio: 4 / 3; }
.postcards--even .photo img { height: 100%; object-fit: cover; }

/* Copy that differs between the published page and the editor. */
.only-edit { display: none; }
body.is-editing .only-edit { display: block; }
body.is-editing .only-view { display: none; }

/* ======================================================================== */
/* Empty photo frames, waiting on the real picture                          */
/* ======================================================================== */

.photo-slot {
  /* Palette lives in tokens so a frame can be flipped to the light or dark
     set independently of the section it happens to sit in. */
  --slot-border: var(--border-light);
  --slot-hatch: rgba(23, 96, 92, 0.045);
  --slot-ground: var(--surface-alt);
  --slot-text: var(--on-light-muted);
  --slot-label: var(--on-light);

  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  width: 100%;
  min-height: 220px;
  padding: 26px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px dashed var(--slot-border);
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, var(--slot-hatch) 10px 20px),
    var(--slot-ground);
  color: var(--slot-text);
}

.photo-slot__icon { font-size: 1.6rem; line-height: 1; opacity: 0.5; }

.photo-slot__label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--slot-label);
  max-width: 26ch;
  line-height: 1.35;
}

.photo-slot__note {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* An empty frame offers the action rather than just announcing itself. */
.photo-slot__add {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--slot-border);
  background: var(--surface);
  color: var(--sea);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.photo-slot__add::before { content: '＋'; font-size: 1.05em; line-height: 1; }

.photo-slot__add:hover {
  background: var(--sand);
  border-color: var(--sand);
  color: #3b2a0a;
  transform: translateY(-1px);
}

.photo-slot__add:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

.on-dark .photo-slot__add {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--on-dark);
}
.on-dark .photo-slot__add:hover { background: var(--sand); border-color: var(--sand); color: #3b2a0a; }

.on-dark .photo-slot {
  --slot-border: var(--border-dark);
  --slot-hatch: rgba(255, 255, 255, 0.03);
  --slot-ground: rgba(255, 255, 255, 0.05);
  --slot-text: var(--on-dark-muted);
  --slot-label: var(--on-dark);
}

/* A frame sitting on a white card keeps the light palette even when the
   section around the card is dark — otherwise it renders white on white. */
.postcard .photo-slot,
.city .photo-slot,
.callout:not(.callout--dark) .photo-slot {
  --slot-border: var(--border-light);
  --slot-hatch: rgba(23, 96, 92, 0.045);
  --slot-ground: var(--surface-alt);
  --slot-text: var(--on-light-muted);
  --slot-label: var(--on-light);
}

.photo-slot.dropzone--tall { min-height: 420px; }
.photo-slot.dropzone--wide { min-height: 320px; }
.photo-slot.dropzone--short { min-height: 150px; }
.photo-slot.dropzone--square { min-height: 0; aspect-ratio: 1 / 1; }

.postcard .photo-slot { border-radius: 0; border-width: 0 0 1px 0; }

/* ======================================================================== */
/* A PDF dropped into a frame                                               */
/* ======================================================================== */

.photo--doc { background: var(--surface-alt); }

.doccard {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 220px;
  height: 100%;
  padding: 26px;
  text-align: center;
  text-decoration: none;
  color: var(--on-light-muted);
  background: var(--surface-alt);
  transition: background 0.2s var(--ease);
}

.doccard:hover { background: var(--surface); }
.doccard__icon { font-size: 2rem; line-height: 1; }

.doccard__name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--on-light);
  max-width: 26ch;
  line-height: 1.35;
  word-break: break-word;
}

.doccard__note {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
}

/* In edit mode, a slot holding a PDF shows the doc icon rather than a blank
   image preview. */
.dropzone.has-doc .dropzone__icon { opacity: 1; }
.dropzone.has-doc .dropzone__icon::after { content: ' 📄'; }

/* ======================================================================== */
/* Long-form article typography                                             */
/* ======================================================================== */

.prose { max-width: 68ch; }
.prose > *:last-child { margin-bottom: 0; }

.prose p { font-size: 1.04rem; margin-bottom: 1.1em; }

.prose h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.prose h3:first-child { margin-top: 0; }

.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; font-size: 1.02rem; }
.prose li::marker { color: var(--sea-bright); }

.prose a { color: var(--sea); text-underline-offset: 3px; }
.on-dark .prose a { color: var(--foam); }

.prose strong { font-weight: 600; }

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.55;
  max-width: 54ch;
}

/* A quiet aside for prices, distances, disclosures */
.fineprint {
  font-size: 0.85rem;
  color: var(--on-light-muted);
  font-style: italic;
}

.on-dark .fineprint { color: var(--on-dark-muted); }

/* ======================================================================== */
/* The dial — 11 notches, because that is the whole point                   */
/* ======================================================================== */

.dial {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.07);
}

.dial__notches { display: flex; align-items: flex-end; gap: 4px; height: 20px; }

.dial__notch {
  width: 4px;
  height: 9px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  transition: height 0.3s var(--ease), background 0.3s var(--ease);
}

.dial__notch.is-on { background: var(--foam); height: 14px; }
.dial__notch--peak.is-on { background: var(--sand); height: 20px; }

.dial__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
}

.on-light .dial { border-color: var(--border-light); background: var(--surface); }
.on-light .dial__notch { background: var(--border-light); }
.on-light .dial__notch.is-on { background: var(--sea-bright); }
.on-light .dial__notch--peak.is-on { background: var(--sand); }
.on-light .dial__label { color: var(--sea); }

/* ======================================================================== */
/* Trip page header                                                         */
/* ======================================================================== */

.trip-head {
  position: relative;
  background:
    radial-gradient(880px 400px at 82% -12%, rgba(255, 255, 255, 0.72), transparent 60%),
    repeating-linear-gradient(-112deg, rgba(255, 255, 255, 0.16) 0 3px, transparent 3px 26px),
    repeating-linear-gradient(104deg, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 34px),
    linear-gradient(200deg, var(--shallow-01) 0%, var(--shallow-02) 48%, var(--shallow-03) 100%);
  padding: 76px 0 84px;
  overflow: hidden;
}

.trip-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 52px;
  align-items: center;
}

.trip-head__title { font-size: clamp(2.4rem, 5.2vw, 3.7rem); margin-bottom: 0.3em; }

.trip-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 26px;
}

/* Two labelled blocks under the trip title: the facts, then the contents.
   Each carries its own heading so nothing reads as loose scattered pills. */
.head-groups {
  display: grid;
  gap: 26px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(8, 48, 74, 0.14);
}

.head-group__title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-water-muted);
  margin: 0 0 12px;
}

.head-group__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Four contents links sit as an even 2x2 rather than wrapping 3-and-1. */
.head-group__items.jumpbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
}

/* ======================================================================== */
/* Callout boxes — timing, tips, logistics                                  */
/* ======================================================================== */

.callout {
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
}

.callout + .callout { margin-top: 22px; }

.callout__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.6em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.callout__title::before {
  content: '';
  width: 4px;
  align-self: stretch;
  min-height: 1.1em;
  border-radius: 2px;
  background: var(--sand);
  flex: none;
}

.callout ul { margin: 0; padding-left: 1.2em; }
.callout li { margin-bottom: 0.55em; }
.callout li:last-child { margin-bottom: 0; }
.callout > *:last-child { margin-bottom: 0; }

.callout--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-dark);
  box-shadow: none;
  color: var(--on-dark);
}

.callout--tight { padding: 24px 26px; }

.callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  align-items: start;
}

.callout-grid .callout + .callout { margin-top: 0; }

/* ======================================================================== */
/* The Top 11 list                                                          */
/* ======================================================================== */

.eleven { display: grid; gap: 22px; }

.eleven__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.eleven__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.eleven__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(150deg, var(--sea-bright), var(--deep-pine));
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
}

/* Number eleven is the one that goes past the end of the scale. */
.eleven__item--peak .eleven__num { background: linear-gradient(150deg, var(--sand), #c9964a); color: #3b2a0a; }
.eleven__item--peak { border-color: var(--sand); }

.eleven__title { font-size: 1.28rem; margin-bottom: 0.4em; }

.eleven__title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--sea-bright);
}

.eleven__title a:hover { color: var(--sea); }

/* Keep the measure readable even though the card itself is wide. */
.eleven__body p,
.eleven__body > ul,
.eleven__body > ol { max-width: 72ch; }

.eleven__body p { font-size: 1rem; margin-bottom: 0.9em; }
.eleven__body > ul, .eleven__body > ol { padding-left: 1.3em; margin: 0 0 1em; }
.eleven__body li { margin-bottom: 0.5em; }
.eleven__body li::marker { color: var(--sea-bright); }
.eleven__body > *:last-child { margin-bottom: 0; }

.eleven__media { margin-top: 18px; max-width: 620px; }

.eleven__media--side {
  float: right;
  margin: 0 0 14px 24px;
  max-width: 240px;
}

/* ======================================================================== */
/* A city leg — the intro to a city, above the stops that belong to it      */
/* ======================================================================== */

.leg {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-light);
}

.on-dark .leg { border-bottom-color: var(--border-dark); }

.leg__intro .section__title { margin-bottom: 0.5em; }

/* The city name links out, but should read as a heading first. */
.leg__intro .section__title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid var(--sea-bright);
}

.leg__intro .section__title a:hover { color: var(--sea); }

@media (max-width: 900px) {
  .leg { grid-template-columns: 1fr; gap: 30px; margin-bottom: 34px; padding-bottom: 30px; }
}

/* ======================================================================== */
/* City / stop profile cards                                                */
/* ======================================================================== */

/* Two up, so four cities land as a clean 2x2 rather than 3 and an orphan. */
.city-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 820px) {
  .city-grid { grid-template-columns: minmax(0, 1fr); }
}

.city {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
}

.city .photo-slot,
.city .dropzone { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; min-height: 170px; }
.city .photo img { height: 170px; object-fit: cover; }

.city__body { padding: 24px 26px 26px; flex: 1; }
.city__name { font-size: 1.3rem; margin-bottom: 0.15em; }

.city__tag {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 0.9em;
}

.city__body p { font-size: 0.96rem; margin-bottom: 0.8em; }
.city__body > *:last-child { margin-bottom: 0; }

/* ======================================================================== */
/* Pager between trips                                                      */
/* ======================================================================== */

.pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.pager__link { padding: 28px 30px; }

.pager__kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-water-muted);
  margin-bottom: 8px;
}

.pager__link .pager__title { font-size: 1.35rem; margin-bottom: 0.3em; color: var(--ink-water); }
.pager__link p { font-size: 0.95rem; margin: 0; }

/* ======================================================================== */
/* Jump links inside a long article                                         */
/* ======================================================================== */

.jumpbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jumpbar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(8, 48, 74, 0.2);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-water);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.jumpbar a::before {
  content: '↓';
  font-size: 0.8em;
  opacity: 0.55;
  flex: none;
}

.jumpbar a:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(8, 48, 74, 0.35);
}

.jumpbar a:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }

/* Anchored headings shouldn't hide under the sticky nav. */
[id] { scroll-margin-top: 90px; }

/* ======================================================================== */
/* Two-column article layout: prose beside a sticky frame                   */
/* ======================================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.split--reverse .split__aside { order: -1; }

.split__aside { position: sticky; top: 92px; }

@media (max-width: 900px) {
  .trip-head__grid,
  .split { grid-template-columns: 1fr; gap: 34px; }

  .split--reverse .split__aside { order: 0; }
  .split__aside { position: static; }
  .trip-head { padding: 54px 0 62px; }
  .photo-slot.dropzone--tall { min-height: 320px; }
}

@media (max-width: 620px) {
  .eleven__item { grid-template-columns: 1fr; gap: 16px; padding: 24px 22px; }
  .eleven__media--side { float: none; max-width: 100%; margin: 18px 0 0; }
  .callout { padding: 24px 22px; }
  .head-group__items.jumpbar { grid-template-columns: minmax(0, 1fr); }
}

