/* Havana's Instagram Guide — styles */

:root {
  /* ── Palette — matched to cubansoulpics.com ──────────────────
     Variable names kept from the original design bundle so the
     rest of this stylesheet needs no changes; only the values
     were swapped to the main site's tokens. */
  --paper: #f4efe6;          /* sun-bleached ivory  (main --paper)  */
  --paper-deep: #ece5d6;     /* deeper paper        (main --paper-2)*/
  --paper-warm: #f9f5ec;     /* a touch lighter than paper          */
  --ink: #1a1714;            /* warm near-black     (main --ink)    */
  --ink-soft: #4a443c;       /* secondary ink       (main --ink-2)  */
  --ink-mute: #6b6357;       /* muted warm grey                     */
  --rule: #d8cfbe;           /* hairline rule       (main --rule)   */
  --rule-soft: #e5ddcd;      /* lighter hairline rule               */
  --terra: #b8553a;          /* terracotta accent   (main --accent) */
  --terra-deep: #8a3d27;     /* accent hover    (main --accent-ink) */

  /* Secondary tints — warmed into the terracotta family so the
     guide reads monochrome-warm like the rest of the site. These
     mostly tint empty <image-slot> placeholders; once real photos
     are dropped in they're rarely visible. */
  --ocean: #8a3d27;          /* was teal  — now deep terracotta     */
  --ocean-deep: #6e2f1d;     /* darker terracotta                   */
  --rose: #d98c6a;           /* light terracotta, legible on dark   */
  --mint: #c9b89a;           /* warm sand                           */
  --sun: #c98f3a;            /* muted ochre                         */

  /* ── Type — matched to cubansoulpics.com ─────────────────────
     Fraunces is a variable serif; italics come from font-style. */
  --display: "Fraunces", "GT Sectra", "Recoleta", Georgia, serif;
  --display-italic: "Fraunces", "GT Sectra", "Recoleta", Georgia, serif;
  --body: "Inter Tight", "Söhne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  /* Layout */
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "kern", "liga";
}

body.grain::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: multiply;
  opacity: 0.6;
  z-index: 999;
}

::selection { background: var(--terra); color: var(--paper-warm); }

/* Type */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(48px, 9vw, 124px); line-height: 0.95; }
h2 { font-size: clamp(40px, 5.5vw, 72px); line-height: 1; letter-spacing: -0.015em; }
h3 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.05; }
h4 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }

p { margin: 0 0 1em; max-width: 64ch; }
p.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
}

a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color .2s; }
a:hover { border-color: var(--terra); color: var(--terra); }

strong { font-weight: 600; }
em { font-style: italic; font-family: var(--display-italic); font-weight: 400; }

/* Eyebrows / chapter marks */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--terra);
}
.eyebrow.no-bar::before { display: none; }

.number {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(80px, 10vw, 140px) 0; }
section.tight { padding: clamp(40px, 6vw, 80px) 0; }

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: clamp(48px, 6vw, 80px) 0;
}

/* ── Top bar / nav ─────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.topbar-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.brand-col {
  display: flex; flex-direction: column;
  gap: 2px; line-height: 1.1;
}
.back-home {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: none;
  border: 0;
  transition: color 0.15s ease;
}
.back-home:hover { color: var(--terra); }
.brand {
  font-family: var(--display);
  font-size: 18px; letter-spacing: -0.01em;
  border: 0;
}
.brand em { color: var(--terra); font-family: var(--display-italic); }
.nav {
  display: flex; gap: 22px; margin-left: auto;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a { border: 0; color: var(--ink-soft); padding: 4px 0; }
.nav a:hover, .nav a.active { color: var(--terra); }
.nav a.active { border-bottom: 1px solid var(--terra); }

@media (max-width: 880px) { .nav { display: none; } }

/* ── Language toggle ─────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  background: color-mix(in oklab, var(--paper-warm) 80%, transparent);
}
.lang-toggle button {
  background: transparent;
  border: 0;
  padding: 6px 12px;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  transition: background .15s, color .15s;
}
.lang-toggle button:hover { color: var(--terra); }
.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper-warm);
}
@media (max-width: 880px) {
  .lang-toggle { margin-left: auto; }
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
}
.hero-photo {
  position: relative;
  height: 92vh;
  min-height: 600px;
  max-height: 920px;
  width: 100%;
}
.hero-photo image-slot,
.hero-photo img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,12,6,0.15) 0%, rgba(20,12,6,0.05) 40%, rgba(20,12,6,0.65) 100%),
    linear-gradient(90deg, rgba(20,12,6,0.55) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 4vw, 56px) var(--gutter);
  pointer-events: none;
}
.hero-top, .hero-bottom {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero-bottom .scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue::before { content: "↓"; font-family: var(--body); font-size: 14px; }
.hero-title {
  align-self: end;
  color: var(--paper-warm);
}
.hero-title h1 {
  color: var(--paper-warm);
  font-size: clamp(54px, 11vw, 168px);
  line-height: 0.92;
  margin-bottom: 14px;
}
.hero-title h1 em {
  color: var(--rose);
  font-family: var(--display-italic);
  font-style: italic;
}
.hero-title .subtitle {
  font-family: var(--display-italic);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 32px);
  color: var(--paper);
  opacity: 0.9;
  max-width: 28ch;
  line-height: 1.25;
}

/* ── Section heading block ───────────────────── */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 5vw, 80px);
  margin-bottom: clamp(40px, 5vw, 64px);
  align-items: end;
}
.section-head .meta { padding-top: 8px; }
.section-head h2 .accent { color: var(--terra); font-family: var(--display-italic); font-style: italic; }

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

/* ── About / Intro ──────────────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.intro-grid .portrait image-slot,
.intro-grid .portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  display: block;
  object-fit: cover;
}
.intro-grid .caption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.intro-grid .copy p { max-width: 56ch; }
.intro-grid .copy p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 4.6em;
  float: left;
  line-height: 0.84;
  padding: 4px 12px 0 0;
  color: var(--terra);
}
.signature {
  display: flex; flex-wrap: wrap; gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  margin-top: 24px;
  align-items: baseline;
}
.signature .name { font-family: var(--display); font-size: 22px; }
.signature .handle { font-family: var(--mono); font-size: 12px; color: var(--terra); letter-spacing: 0.06em; }

@media (max-width: 880px) { .intro-grid { grid-template-columns: 1fr; } }

/* ── Timeline ──────────────────────────────── */
.timeline-section { background: var(--paper-warm); }
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.timeline .row {
  padding: 22px 22px 26px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-warm);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
}
.timeline .row .year {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 38px);
  color: var(--ink);
  line-height: 1;
}
.timeline .row .year em { color: var(--terra); font-style: italic; font-family: var(--display-italic); }
.timeline .row .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.timeline .row p { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--ink-soft); max-width: none; }

/* ── Pre-trip checklist ───────────────────── */
.checklist {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 1.5vw, 28px);
}
.card {
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  padding: clamp(20px, 2.2vw, 32px);
  position: relative;
}
.card .card-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.08em;
}
.card h4 { margin: 6px 0 12px; }
.card.span6 { grid-column: span 6; }
.card.span4 { grid-column: span 4; }
.card.span8 { grid-column: span 8; }
.card.span12 { grid-column: span 12; }
.card ul { margin: 8px 0 0; padding: 0; list-style: none; }
.card ul li { padding: 6px 0 6px 18px; position: relative; font-size: 15px; color: var(--ink-soft); border-bottom: 1px dashed var(--rule-soft); }
.card ul li:last-child { border-bottom: 0; }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px;
  background: var(--terra);
  border-radius: 50%;
}

@media (max-width: 880px) { .card.span6, .card.span4, .card.span8 { grid-column: span 12; } }

/* ── Itinerary tabs ───────────────────────── */
.itin {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(20px, 3vw, 56px);
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.itin-list { display: flex; flex-direction: column; gap: 2px; }
.itin-list button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-soft);
  padding: 16px 12px 16px 0;
  text-align: left;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  transition: color .2s, padding .2s;
}
.itin-list button:hover { color: var(--terra); padding-left: 8px; }
.itin-list button[aria-selected="true"] { color: var(--terra); font-weight: 600; padding-left: 12px; }
.itin-list button[aria-selected="true"]::before {
  content: "▶"; font-size: 9px; color: var(--terra);
}
.itin-list button .hours { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-mute); }
.itin-panel { padding-top: 4px; }
.itin-panel h3 { margin-bottom: 14px; }
.itin-panel h3 em { color: var(--terra); font-family: var(--display-italic); font-style: italic; }
.itin-panel .panel-eyebrow { margin-bottom: 8px; }

@media (max-width: 880px) {
  .itin { grid-template-columns: 1fr; }
  .itin-list { flex-direction: row; overflow-x: auto; gap: 0; padding-bottom: 4px; }
  .itin-list button { white-space: nowrap; flex: 0 0 auto; padding: 10px 14px; border-bottom: 0; border-right: 1px solid var(--rule-soft); }
}

/* ── Photography primer grid ────────────── */
.prim {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 36px);
}
.prim .tile {
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  padding: clamp(20px, 2vw, 32px);
}
.prim .tile h4 { margin-bottom: 10px; }
.prim .tile .number { margin-bottom: 14px; }
.prim .tile p { font-size: 14.5px; line-height: 1.55; max-width: none; color: var(--ink-soft); }
.prim .tile ul { margin: 8px 0 0; padding-left: 18px; font-size: 14.5px; color: var(--ink-soft); }
.prim .tile ul li { padding: 2px 0; }
.prim .wide { grid-column: span 2; background: var(--ink); color: var(--paper-warm); border-color: var(--ink); }
.prim .wide h4 { color: var(--paper-warm); }
.prim .wide p { color: color-mix(in oklab, var(--paper-warm) 80%, transparent); }

@media (max-width: 880px) { .prim { grid-template-columns: 1fr; } .prim .wide { grid-column: span 1; } }

/* Settings table */
.settings {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
}
.settings .row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  border-bottom: 1px solid var(--rule-soft);
  padding: 14px 0;
  align-items: baseline;
  gap: 24px;
}
.settings .row .scene { font-family: var(--display); font-size: 18px; }
.settings .row .desc { color: var(--ink-soft); font-size: 14.5px; }
.settings .row .spec { font-family: var(--mono); font-size: 12px; color: var(--terra); letter-spacing: 0.04em; text-align: right; }

@media (max-width: 720px) {
  .settings .row { grid-template-columns: 1fr; gap: 4px; }
  .settings .row .spec { text-align: left; }
}

/* ── The Tour ──────────────────────────────── */
.tour-intro { background: var(--ink); color: var(--paper); }
.tour-intro .eyebrow { color: var(--rose); }
.tour-intro .eyebrow::before { background: var(--rose); }
.tour-intro h2 { color: var(--paper-warm); }
.tour-intro p { color: color-mix(in oklab, var(--paper) 75%, transparent); max-width: 50ch; }

.spot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(56px, 8vw, 120px) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.spot.reverse { direction: rtl; }
.spot.reverse > * { direction: ltr; }
.spot .photo image-slot {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  display: block;
}
.spot.wide .photo image-slot { height: auto; aspect-ratio: 3/4; }
.spot .photo .photo-caption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 16px;
}
.spot .photo .photo-caption .loc { color: var(--ink-mute); }
.spot .photo .photo-caption .n { color: var(--terra); }
.spot .copy .spot-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--terra);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.spot .copy .spot-num::before { content: ""; width: 32px; height: 1px; background: var(--terra); }
.spot .copy h3 {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1;
  margin-bottom: 10px;
}
.spot .copy h3 em { color: var(--terra); font-family: var(--display-italic); font-style: italic; }
.spot .copy .tagline {
  font-family: var(--display-italic);
  font-style: italic;
  font-size: 22px;
  color: var(--ocean);
  margin-bottom: 24px;
  line-height: 1.25;
  max-width: 28ch;
}
.spot .copy p { color: var(--ink-soft); }

.note {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--paper-warm);
  border-left: 3px solid var(--terra);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.note .label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 8px;
}
.note p { margin: 0; max-width: none; }
.note + .note { margin-top: 12px; }

/* ── Spot photo carousel ──────────────────────────────────────
   Each spot's photo frame is a swipeable carousel: one frame,
   several photos of that spot, a caption riding on each. Native
   CSS scroll-snap handles touch/trackpad swipe; spot-carousel.js
   injects the prev/next arrows + dot indicators. Carried over
   from the print edition, which gave most spots several photos.
   ─────────────────────────────────────────────────────────── */
.spot-carousel { position: relative; width: 100%; }
.spot-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  aspect-ratio: 4 / 5;
}
.spot-track::-webkit-scrollbar { display: none; }
.spot-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  margin: 0;
}
/* More specific than `.spot .photo image-slot` so it wins. Covers
   both the empty <image-slot> placeholder and a real <img> once
   photos are dropped in. */
.spot .photo .spot-slide image-slot,
.spot .photo .spot-slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  display: block;
}
.spot .photo .spot-slide img { object-fit: cover; }

/* Wide group shots — show the whole photo (no crop). The slide keeps
   the 4:5 frame; the image is contained inside it, and the letterbox
   area is filled with a blurred, zoomed copy of the same photo so it
   never reads as flat empty bars. Add class "is-wide" to the slide and
   set the same image as its inline background-image. */
.spot-slide.is-wide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.spot-slide.is-wide::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: rgba(20, 17, 14, 0.28);
  z-index: 0;
}
.spot .photo .spot-slide.is-wide img {
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.spot-slide .slide-cap { z-index: 2; }

/* ── Characters panel ─────────────────────────────────────────
   A combined grid of the costumed characters that gather around
   a spot (used at Plaza de la Catedral), echoing the print
   edition's 2×2 spread: intro text on the left, photo grid on
   the right. Spans both columns of the parent .spot. */
.spot-characters {
  grid-column: 1 / -1;
  margin-top: clamp(32px, 5vw, 60px);
  padding-top: clamp(28px, 3.5vw, 44px);
  border-top: 1px dashed var(--rule-soft);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.spot-characters .ch-intro h4 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  margin-bottom: 14px;
}
.spot-characters .ch-intro h4 em {
  color: var(--terra);
  font-family: var(--display-italic);
  font-style: italic;
}
.spot-characters .ch-intro p { font-size: 15px; color: var(--ink-soft); }
.spot-characters .ch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.spot-characters .ch-grid figure { margin: 0; }
.spot-characters .ch-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.spot-characters .ch-grid figcaption {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
}
@media (max-width: 880px) {
  .spot-characters { grid-template-columns: 1fr; }
}
.spot-slide .slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 46px 18px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--paper);
  background: linear-gradient(to top, rgba(20,17,14,0.85), rgba(20,17,14,0));
}
/* Prev / next arrows (injected by spot-carousel.js) */
.spot-carousel .car-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border: 0; border-radius: 999px;
  background: rgba(244,239,230,0.92);
  color: var(--ink);
  font-family: var(--display); font-size: 17px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  z-index: 2;
}
.spot-carousel .car-arrow:hover { background: var(--paper); }
.spot-carousel .car-arrow.prev { left: 12px; }
.spot-carousel .car-arrow.next { right: 12px; }
.spot-carousel .car-arrow[disabled] { opacity: 0; pointer-events: none; }
/* Dot indicators */
.spot-carousel .car-dots {
  display: flex; gap: 7px; justify-content: center;
  margin-top: 12px;
}
.spot-carousel .car-dot {
  width: 7px; height: 7px; border-radius: 999px;
  border: 0; padding: 0; cursor: pointer;
  background: var(--rule);
  transition: background 0.2s, transform 0.2s;
}
.spot-carousel .car-dot.active { background: var(--terra); transform: scale(1.3); }
/* Single-photo spots: no arrows, no dots. */
.spot-carousel[data-count="1"] .car-arrow,
.spot-carousel[data-count="1"] .car-dots { display: none; }

@media (max-width: 880px) {
  .spot, .spot.reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* ── Etiquette ──────────────────────────── */
.etiq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
}
@media (max-width: 880px) { .etiq { grid-template-columns: 1fr; } }

.phrases {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.phrase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.phrase .es { font-family: var(--display); font-size: 19px; color: var(--ink); }
.phrase .es em { color: var(--terra); font-family: var(--display-italic); font-style: italic; }
.phrase .en { font-size: 14.5px; color: var(--ink-mute); font-family: var(--mono); letter-spacing: 0.02em; }

.tipping {
  border-top: 1px solid var(--rule);
}
.tipping .row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
  gap: 16px;
}
.tipping .row .what { font-family: var(--display); font-size: 18px; }
.tipping .row .amt { font-family: var(--mono); font-size: 13px; color: var(--terra); text-align: right; }

/* ── Eat / Drink ──────────────────────── */
.places {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 36px);
}
.places .col {
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  padding: clamp(24px, 2.4vw, 36px);
}
.places .col h4 { font-size: 28px; margin-bottom: 4px; }
.places .col .sub { font-family: var(--display-italic); font-style: italic; color: var(--ocean); margin-bottom: 22px; font-size: 16px; }
.place {
  padding: 18px 0;
  border-top: 1px solid var(--rule-soft);
}
.place:first-of-type { border-top: 0; }
.place .name { font-family: var(--display); font-size: 22px; line-height: 1.15; }
.place .name em { color: var(--terra); font-family: var(--display-italic); font-style: italic; }
.place .handle { font-family: var(--mono); font-size: 11px; color: var(--ocean); letter-spacing: 0.06em; margin-top: 2px; }
.place .why { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin-top: 8px; max-width: none; }

@media (max-width: 880px) { .places { grid-template-columns: 1fr; } }

/* ── Closing ───────────────────────────── */
.closing {
  text-align: center;
  background: var(--ink);
  color: var(--paper-warm);
}
.closing .eyebrow { color: var(--rose); justify-content: center; }
.closing .eyebrow::before { background: var(--rose); }
.closing h2 { color: var(--paper-warm); max-width: 18ch; margin: 0 auto 24px; }
.closing p { color: color-mix(in oklab, var(--paper) 75%, transparent); margin: 0 auto 16px; max-width: 50ch; }
.closing .sign {
  margin-top: 48px;
  font-family: var(--display-italic);
  font-style: italic;
  font-size: 30px;
  color: var(--rose);
}
.closing .meta {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
}

/* ── Footer ─────────────────────────── */
footer {
  padding: 40px var(--gutter);
  border-top: 1px solid var(--rule-soft);
  display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── Image-slot styling (the placeholder look) ── */
image-slot {
  --hue: var(--rose);
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--hue) 30%, var(--paper-warm)) 0%,
    color-mix(in oklab, var(--hue) 12%, var(--paper-warm)) 100%);
  position: relative;
  overflow: hidden;
}
/* paper-like diagonal stripe effect removed */

/* color-keyed slots */
image-slot.h-terra   { --hue: var(--terra); }
image-slot.h-ocean   { --hue: var(--ocean); }
image-slot.h-rose    { --hue: var(--rose); }
image-slot.h-mint    { --hue: var(--mint); }
image-slot.h-sun     { --hue: var(--sun); }
image-slot.h-ink     { --hue: var(--ink); }

/* ── Map section ─────────────────── */
.map-section { background: var(--paper-warm); }
.map-controls {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}
.map-controls .play {
  background: var(--terra);
  color: var(--paper-warm);
  border: 0;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .2s, transform .15s;
}
.map-controls .play:hover { background: var(--terra-deep); transform: translateY(-1px); }
.map-controls .play.playing { background: var(--ocean); }
.map-controls .play::before {
  content: "▶";
  font-size: 10px;
}
.map-controls .play.playing::before { content: "■"; }

.map-stage {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
  aspect-ratio: 1200 / 760;
  width: 100%;
}
.map-stage svg.custom-map {
  display: block;
  width: 100%;
  height: 100%;
}
.map-stage svg.custom-map[hidden] { display: none; }

/* Custom map styling */
.custom-map .ocean {
  fill: var(--ocean);
  opacity: 0.10;
}
.custom-map .ocean-deep {
  fill: var(--ocean);
  opacity: 0.18;
}
.custom-map .land-blob {
  fill: var(--paper-deep);
  stroke: var(--rule);
  stroke-width: 1;
}
.custom-map .street {
  stroke: var(--rule);
  stroke-width: 1;
  fill: none;
  opacity: 0.7;
}
.custom-map .street.major {
  stroke-width: 2;
  opacity: 0.85;
}
.custom-map .plaza {
  fill: var(--paper-warm);
  stroke: var(--rule);
  stroke-width: 0.8;
}
.custom-map .label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--ink-mute);
}
.custom-map .label-major {
  font-family: var(--display-italic);
  font-style: italic;
  font-size: 16px;
  fill: var(--ink-soft);
  letter-spacing: 0;
}
.custom-map .compass text {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--ink-mute);
}
.custom-map .route {
  fill: none;
  stroke: var(--terra);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.85;
}
.custom-map .route.drive {
  stroke: var(--terra-deep);
  stroke-dasharray: 3 5;
  opacity: 0.7;
}
.custom-map .drive-icon text { font-family: var(--mono); }
.custom-map .route-progress {
  fill: none;
  stroke: var(--terra);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(194,85,53,0.4));
}
.custom-map .walker {
  fill: var(--terra);
  stroke: var(--paper-warm);
  stroke-width: 2;
  r: 7;
  pointer-events: none;
}
.custom-map .walker.hidden { opacity: 0; }

.custom-map .pin {
  cursor: pointer;
}
.custom-map .pin .pin-bg {
  fill: var(--paper-warm);
  stroke: var(--ink);
  stroke-width: 1.5;
  transition: fill .15s, stroke .15s, r .15s;
}
.custom-map .pin .pin-num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  transition: fill .15s;
}
.custom-map .pin:hover .pin-bg,
.custom-map .pin.active .pin-bg {
  fill: var(--terra);
  stroke: var(--terra-deep);
}
.custom-map .pin:hover .pin-num,
.custom-map .pin.active .pin-num {
  fill: var(--paper-warm);
}
.custom-map .pin.active .pin-bg { r: 16; }

.custom-map .pin-tip {
  pointer-events: none;
}
.custom-map .pin-tip rect {
  fill: var(--ink);
  rx: 4;
}
.custom-map .pin-tip text {
  fill: var(--paper-warm);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
}

.custom-map .inset {
  fill: var(--paper);
  stroke: var(--rule);
  stroke-dasharray: 4 3;
}
.custom-map .inset-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--ink-mute);
}

.map-legend {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.map-legend li {
  border-right: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.map-legend li.legend-header {
  grid-column: 1 / -1;
  background: var(--paper-warm);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--terra);
  text-transform: uppercase;
  border-right: 0;
}
.map-legend li button {
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  font-family: var(--body);
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.map-legend li button:hover,
.map-legend li.active button {
  background: var(--paper-warm);
  color: var(--terra);
}
.map-legend li button .num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink);
  letter-spacing: 0.04em;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 3px 0;
  text-align: center;
  font-weight: 500;
}
.map-legend li button .num.aux {
  color: var(--ocean);
  border-color: var(--ocean);
}
.map-legend li button .num.transit {
  color: var(--terra-deep);
  border-color: var(--terra-deep);
  border-style: dashed;
}
.map-legend li.active button .num {
  background: var(--terra); color: var(--paper-warm); border-color: var(--terra);
}

/* Pin variants in the SVG */
.custom-map .pin.aux .pin-bg {
  stroke: var(--ocean);
}
.custom-map .pin.aux:hover .pin-bg,
.custom-map .pin.aux.active .pin-bg {
  fill: var(--ocean);
  stroke: var(--ocean-deep);
}
.custom-map .pin.aux:hover .pin-num,
.custom-map .pin.aux.active .pin-num {
  fill: var(--paper-warm);
}
.custom-map .pin.outlier .pin-bg {
  stroke-dasharray: 3 2;
}

@media (max-width: 880px) {
  .map-legend { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .map-legend { grid-template-columns: 1fr; }
}

/* Spot number → map link */
.spot .copy .spot-num a.map-link {
  border: 0;
  margin-left: auto;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  display: inline-flex; align-items: center; gap: 6px;
  text-transform: uppercase;
  transition: color .15s;
}
.spot .copy .spot-num { display: flex; align-items: center; }
.spot .copy .spot-num a.map-link:hover { color: var(--terra); }
.spot .copy .spot-num a.map-link::before {
  content: "◉";
  color: var(--terra);
  font-size: 13px;
}

/* ── Misc ─────────────────────────── */
.kicker {
  font-family: var(--display-italic);
  font-style: italic;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.2;
  max-width: 30ch;
  color: var(--terra);
}
.pullquote {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
  color: var(--ink);
  max-width: 24ch;
  margin: 0;
}
.pullquote em { color: var(--terra); font-family: var(--display-italic); font-style: italic; }
.divider-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 80px); align-items: center;
}
@media (max-width: 880px) { .divider-section { grid-template-columns: 1fr; } }

/* ───────────────────────────────────────────────────────────────
   BOOKING CTA BAND
   Dark editorial band that routes guide readers toward bookable
   Cuban Soul sessions. Links point at the main site (absolute
   paths, since the guide lives at /havana-instagram-guide/).
   ─────────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 8vw, 104px) 0;
}
.cta-band .cta-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 820px) {
  .cta-band .cta-inner { grid-template-columns: 1fr; gap: 28px; }
}
.cta-band .eyebrow { color: var(--rose); }
.cta-band .eyebrow::before { background: var(--rose); }
.cta-band h3 {
  color: var(--paper);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.04;
  margin-top: 14px;
}
.cta-band h3 em {
  color: var(--rose);
  font-style: italic;
  font-family: var(--display-italic);
}
.cta-band p {
  color: color-mix(in oklab, var(--paper) 72%, transparent);
  margin: 16px 0 0;
  font-size: 16px;
  max-width: 52ch;
}
.cta-band .cta-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
@media (max-width: 820px) {
  .cta-band .cta-action { align-items: stretch; }
}
/* Button — overrides the global <a> underline/border styling */
.cta-btn {
  display: inline-block;
  background: var(--terra);
  color: var(--paper);
  border: 0;
  padding: 16px 30px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.2s ease;
}
.cta-btn:hover {
  background: var(--terra-deep);
  color: var(--paper);
  border: 0;
}
.cta-btn.ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid color-mix(in oklab, var(--paper) 38%, transparent);
}
.cta-btn.ghost:hover {
  background: color-mix(in oklab, var(--paper) 10%, transparent);
  border-color: var(--paper);
  color: var(--paper);
}

/* ── Photo lightbox ───────────────────────────────────────────
   Tap any carousel photo or character grid photo to open it at
   full size in a dark overlay. .lb-overlay is created on demand
   by lightbox.js. */
.spot-slide img,
.ch-grid img { cursor: zoom-in; }

.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 9, 7, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  -webkit-tap-highlight-color: transparent;
}
.lb-overlay.open { display: flex; }
.lb-img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  border-radius: 2px;
  cursor: default;
}
.lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(244, 239, 230, 0.85);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}
.lb-close:hover { color: var(--terra); }

/* Prev/next nav inside the lightbox */
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  color: rgba(244, 239, 230, 0.9);
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-nav:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.55);
  color: var(--terra);
}
.lb-nav:disabled {
  opacity: 0.25;
  cursor: default;
}
.lb-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(244, 239, 230, 0.6);
  pointer-events: none;
}
@media (max-width: 600px) {
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}
