/* UI-kit-specific layout. Tokens come from ../../colors_and_type.css */

* { box-sizing: border-box; }
html, body { background: var(--bone); }

#app { min-height: 100vh; }

.container { max-width: var(--max-content); margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* ===== Section base ===== */
section { padding: 96px 0; }
section.tight { padding: 56px 0; }
section.dark { background: var(--ink); color: var(--bone); }
section.dark p { color: var(--bone); }
section.alt { background: var(--paper); }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 48px; gap: 32px; flex-wrap: wrap;
}
.section-head h2 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); line-height: 1.1; letter-spacing: -0.02em; max-width: 700px; padding-bottom: 4px; }
.section-head h2 em { color: var(--emerald); font-style: italic; }
.section-link { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; white-space: nowrap; }
section.dark .section-head h2 { color: var(--bone); }
section.dark .section-link { color: var(--bone); border-bottom-color: var(--bone); }

/* ===== Header ===== */
.wa-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: rgba(246,239,224,0.84);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.wa-header.on-hero { background: linear-gradient(180deg, rgba(14,13,11,0.55), rgba(14,13,11,0.2)); border-bottom-color: rgba(246,239,224,0.18); color: var(--bone); backdrop-filter: blur(4px); }
.wa-header.on-hero a { color: var(--bone); }
.wa-header.on-hero .lang-switch { border-color: var(--bone); }

.wa-brand { font-family: var(--font-display); font-size: 26px; line-height: 1; color: inherit; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.wa-brand em { color: var(--emerald); font-style: italic; }
.wa-header.on-hero .wa-brand em { color: var(--lagoon); }

.wa-nav { display: flex; gap: 28px; }
.wa-nav a { font-size: 13px; font-weight: 500; text-decoration: none; color: inherit; opacity: 0.78; transition: opacity 140ms; }
.wa-nav a:hover, .wa-nav a.active { opacity: 1; }

.wa-header-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; overflow: hidden; opacity: 0.8; }
.lang-switch button { background: none; border: 0; padding: 4px 10px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: inherit; cursor: pointer; }
.lang-switch button.on { background: currentColor; }
.lang-switch button.on span { color: var(--bone); mix-blend-mode: difference; }

.icon-btn { background: none; border: 0; color: inherit; padding: 4px; cursor: pointer; opacity: 0.8; }
.icon-btn:hover { opacity: 1; }

/* ===== Hero ===== */
.wa-hero {
  position: relative; min-height: 88vh; min-height: 88svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--bone); overflow: hidden;
  margin-top: -73px;
  padding-top: 73px;
}
.wa-hero .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 35%;
  filter: saturate(0.92) contrast(1.02);
}
.wa-hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,13,11,0.7) 0%, rgba(14,13,11,0.15) 22%, rgba(14,13,11,0.4) 50%, rgba(14,13,11,0.95) 100%),
    linear-gradient(90deg, rgba(14,13,11,0.6) 0%, rgba(14,13,11,0) 60%);
}
.wa-hero .grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.wa-hero .content { position: relative; padding: 0 32px 80px; max-width: 1440px; margin: 0 auto; width: 100%; }
.wa-hero .eyebrow { color: var(--sun); }
.wa-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(56px, 8vw, 124px);
  line-height: 0.98; letter-spacing: -0.025em;
  margin: 18px 0 0; max-width: 18ch;
  color: var(--bone);
}
.wa-hero h1 em { color: var(--lagoon); font-style: italic; }
.wa-hero .hero-sub {
  margin: 24px 0 0; max-width: 44ch;
  font-family: var(--font-sans);
  font-size: 18px; line-height: 1.5; color: var(--bone);
  opacity: 0.92;
}
.wa-hero h1 em { color: var(--lagoon); font-style: italic; }
.wa-hero .meta-row {
  display: flex; gap: 36px; margin-top: 38px; padding-top: 24px;
  border-top: 1px solid rgba(246,239,224,0.4);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; flex-wrap: wrap; color: var(--bone);
}
.wa-hero .meta-row .key { display: block; opacity: 0.6; margin-bottom: 4px; font-size: 10px; }
.wa-hero .scroll-cue {
  position: absolute; right: 32px; bottom: 32px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; opacity: 0.78;
}

/* ===== Live trip strip ===== */
.live-strip {
  display: flex; align-items: stretch; justify-content: space-between;
  gap: 24px; padding: 28px 32px;
  background: var(--bone); border-bottom: 1px solid var(--line);
}
.live-strip .pulse { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.22em; color: var(--emerald); text-transform: uppercase; }
.live-strip .pulse::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(30,139,122,0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(30,139,122,0.18); } 50% { box-shadow: 0 0 0 9px rgba(30,139,122,0.04); } }
.live-strip h3 { font-family: var(--font-display); font-size: 32px; line-height: 1; margin: 8px 0 4px; }
.live-strip .meta-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: center; }
.live-strip .meta-cells .key { display: block; font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 4px; }
.live-strip .meta-cells .value { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); }

/* ===== Trip grid ===== */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.trip-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--bone-soft); border: 1px solid var(--line); border-radius: 2px;
  display: flex; flex-direction: column; transition: transform 240ms var(--ease-out);
}
.trip-card .photo {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background-size: cover; background-position: center;
}
.trip-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 520ms var(--ease-slow); display: block; }
.trip-card:hover .photo img { transform: scale(1.04); }
.trip-card .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14,13,11,0.4) 100%); }
.trip-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.trip-card h3 { font-family: var(--font-display); font-size: 28px; line-height: 1.05; margin: 8px 0 8px; }
.trip-card .blurb { font-size: 13px; color: var(--fg-2); line-height: 1.5; margin-bottom: auto; }
.trip-card .meta { display: flex; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--fg-2); text-transform: uppercase; }

.trip-card.feature { grid-column: span 4; grid-row: span 2; }
.trip-card.feature .photo { aspect-ratio: 5/3; }
.trip-card.feature h3 { font-size: 56px; line-height: 1; }
.trip-card.feature .blurb { font-size: 15px; max-width: 56ch; }
.trip-card:not(.feature) { grid-column: span 2; }

/* ===== World map ===== */
.world-map {
  position: relative; aspect-ratio: 2/1;
  background: var(--ink); color: var(--bone);
  border-radius: 2px; overflow: hidden;
}
.world-map svg { width: 100%; height: 100%; display: block; }
.world-map .marker {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ochre); border: 2px solid var(--bone); transform: translate(-50%, -50%);
  cursor: pointer; transition: transform 200ms, box-shadow 200ms;
  padding: 0; appearance: none; -webkit-appearance: none;
  z-index: 2;
}
.world-map .marker:hover,
.world-map .marker:focus-visible { transform: translate(-50%, -50%) scale(1.45); outline: none; box-shadow: 0 0 0 4px rgba(232,163,61,0.25); }
.world-map .marker.has-trip { background: var(--ochre); }
.world-map .marker.has-trip:hover { box-shadow: 0 0 0 4px rgba(232,163,61,0.35); }
.world-map .marker.active {
  transform: translate(-50%, -50%) scale(1.6);
  box-shadow: 0 0 0 6px rgba(232,163,61,0.32);
}
.world-map .marker.live { background: var(--ember); animation: pulse 2.4s ease-in-out infinite; }
.world-map .marker.live.active { box-shadow: 0 0 0 6px rgba(216,71,44,0.32); animation: none; }

/* ===== Map hover tooltip — small inline label ===== */
.world-map .map-tooltip {
  position: absolute;
  background: rgba(14,13,11,0.94);
  color: var(--bone);
  padding: 10px 14px;
  border: 1px solid rgba(246,239,224,0.16);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
  max-width: 320px;
}
.world-map .map-tooltip.below { transform: translate(-50%, 0); margin-top: 16px; }
.world-map .map-tooltip.above { transform: translate(-50%, -100%); margin-top: -16px; }
.world-map .map-tooltip .iso {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; color: var(--accent);
  font-weight: 600;
}
.world-map .map-tooltip .name { font-weight: 600; }
.world-map .map-tooltip .kind {
  color: var(--fg-3);
  font-size: 12px;
  border-left: 1px solid rgba(246,239,224,0.16);
  padding-left: 10px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.world-map .map-tooltip .kind.live { color: var(--ember); font-weight: 600; }
.world-map .map-tooltip .live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ember);
  animation: pulse 2s ease-in-out infinite;
}

/* ===== Map click popup — full trip-preview card ===== */
.world-map .map-popup {
  position: absolute;
  width: 300px;
  background: var(--bone);
  color: var(--ink);
  border: 1px solid rgba(28,26,23,0.18);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.55), 0 0 0 1px rgba(246,239,224,0.05);
  z-index: 6;
}

.world-map .map-popup.right { margin-left: 22px; }
.world-map .map-popup.left  { margin-left: -22px; transform: translateX(-100%); }
.world-map .map-popup.up    { margin-top: -22px; }
.world-map .map-popup.up.right { transform: translateY(-100%); }
.world-map .map-popup.up.left  { transform: translate(-100%, -100%); }

.world-map .map-popup .close {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  background: rgba(14,13,11,0.55);
  color: var(--bone);
  border: 0;
  font-size: 18px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  z-index: 2;
  transition: background 140ms;
}
.world-map .map-popup .close:hover { background: rgba(14,13,11,0.85); }

.world-map .map-popup .cover {
  width: 100%; height: 150px;
  background-size: cover; background-position: center;
  position: relative;
}
.world-map .map-popup .cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.45) 100%);
}
.world-map .map-popup .cover .no {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--font-mono); font-size: 11px;
  font-weight: 700; letter-spacing: 0.16em;
  color: var(--bone);
  z-index: 1;
}

.world-map .map-popup .popup-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.world-map .map-popup .region {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.world-map .map-popup .title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 4px 0 6px;
  text-wrap: balance;
}
.world-map .map-popup .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-2);
}
.world-map .map-popup .hint {
  font-size: 12.5px;
  color: var(--fg-2);
  font-style: italic;
  margin-top: 4px;
}
.world-map .map-popup .cta {
  appearance: none; -webkit-appearance: none;
  background: var(--ink);
  color: var(--bone);
  border: 0;
  padding: 11px 16px;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms, transform 80ms;
  align-self: flex-start;
}
.world-map .map-popup .cta:hover { background: var(--accent); }
.world-map .map-popup .cta:active { transform: translateY(1px); }
.world-map .map-popup .no-trip { padding: 22px 18px 22px; }

.world-map .map-popup .live-body { padding: 22px 20px; }
.world-map .map-popup .live-banner {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 14px;
}
.world-map .map-popup .live-banner .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ember);
  animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 640px) {
  .world-map .map-popup { width: 260px; }
  .world-map .map-popup .cover { height: 130px; }
  .world-map .map-tooltip { font-size: 12px; padding: 8px 12px; max-width: 240px; }
}
.world-map .legend {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8;
}
.world-map .legend-totals { position: absolute; bottom: 20px; right: 24px; text-align: right; }
.world-map .legend-totals .big { font-family: var(--font-display); font-size: 64px; line-height: 1; display: block; }
.world-map .legend-totals .key { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; margin-top: 4px; display: block; }

.country-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; }
.country-pill { display: inline-flex; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; background: rgba(246,239,224,0.1); color: var(--bone); border: 1px solid rgba(246,239,224,0.25); }

/* ===== Journal ===== */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.journal-item .photo { aspect-ratio: 4/3; background-size: cover; background-position: center; border-radius: 2px; overflow: hidden; margin-bottom: 16px; }
.journal-item .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 520ms var(--ease-slow); }
.journal-item:hover .photo img { transform: scale(1.04); }
.journal-item h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.1; margin: 8px 0 8px; }
.journal-item p { font-size: 14px; color: var(--fg-2); line-height: 1.55; }
.journal-item .meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--fg-3); text-transform: uppercase; margin-top: 12px; }

/* ===== About ===== */
.about-block { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.about-block .portrait { aspect-ratio: 4/5; background-size: cover; background-position: center; border-radius: 2px; }
.about-block h2 { font-family: var(--font-display); font-size: 64px; line-height: 1; letter-spacing: -0.02em; margin: 0 0 24px; }
.about-block h2 em { color: var(--emerald); }
.about-block p { font-size: 17px; line-height: 1.6; max-width: 56ch; color: var(--fg-1); margin: 0 0 20px; }
.vehicle-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.vehicle-stats .stat .key { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); }
.vehicle-stats .stat .val { font-family: var(--font-display); font-size: 32px; line-height: 1.1; display: block; margin-top: 6px; }

/* ===== Newsletter ===== */
.newsletter-block { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.newsletter-block h2 { font-family: var(--font-display); font-size: 56px; line-height: 1.02; letter-spacing: -0.02em; margin: 0; color: var(--bone); }
.newsletter-block h2 em { color: var(--sun); font-style: italic; }
.newsletter-form { display: flex; border: 1.5px solid var(--bone); background: transparent; border-radius: 2px; overflow: hidden; }
.newsletter-form input { flex: 1; padding: 16px 18px; background: transparent; border: 0; outline: none; color: var(--bone); font-family: var(--font-sans); font-size: 15px; }
.newsletter-form input::placeholder { color: rgba(246,239,224,0.5); }
.newsletter-form button { padding: 0 28px; background: var(--bone); color: var(--ink); border: 0; font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.newsletter-block .small { font-size: 12px; opacity: 0.6; margin-top: 14px; }

/* ===== Footer ===== */
.wa-footer { background: var(--ink); color: var(--bone); padding: 80px 0 32px; }
.wa-footer p { color: var(--bone); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(246,239,224,0.15); }
.wa-footer h4 { font-family: var(--font-sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.6; margin: 0 0 14px; }
.wa-footer ul { list-style: none; padding: 0; margin: 0; }
.wa-footer li { margin-bottom: 8px; }
.wa-footer a { color: var(--bone); text-decoration: none; opacity: 0.85; font-size: 14px; }
.wa-footer a:hover { opacity: 1; color: var(--sun); }
.wa-footer .brand-block .wordmark { font-family: var(--font-display); font-size: 56px; line-height: 1; margin: 0 0 16px; }
.wa-footer .brand-block .wordmark em { color: var(--lagoon); font-style: italic; }
.wa-footer .brand-block p { font-size: 14px; line-height: 1.55; max-width: 36ch; opacity: 0.7; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; opacity: 0.5; flex-wrap: wrap; gap: 16px; }
.social-row { display: flex; gap: 18px; }

/* ===== Trip detail ===== */
.trip-detail { background: var(--bone); min-height: 100vh; }
.trip-detail .cover {
  position: relative; height: 88vh; min-height: 600px;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--bone); padding: 32px;
  margin-top: -73px; padding-top: 105px;
}
.trip-detail .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,13,11,0.65) 0%, rgba(14,13,11,0.1) 25%, rgba(14,13,11,0.45) 55%, rgba(14,13,11,0.95) 100%), linear-gradient(90deg, rgba(14,13,11,0.5) 0%, rgba(14,13,11,0) 55%); }
.trip-detail .cover .content { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; width: 100%; }
.trip-detail .cover h1 { font-family: var(--font-display); font-size: clamp(64px, 9vw, 160px); line-height: 0.96; letter-spacing: -0.02em; margin: 16px 0 0; max-width: 16ch; color: var(--bone); }
.trip-detail .cover h1 em { color: var(--sun); }
.trip-detail .cover .meta-row { display: flex; gap: 36px; margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(246,239,224,0.4); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; flex-wrap: wrap; color: var(--bone); }
.trip-detail .cover .meta-row .key { display: block; opacity: 0.6; margin-bottom: 4px; font-size: 10px; }

.trip-detail .overview { padding: 96px 32px; background: var(--bone); }
.trip-detail .overview-inner { max-width: var(--max-content); margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.trip-detail .overview h2 { font-family: var(--font-display); font-size: 40px; line-height: 1.05; }
.trip-detail .overview .lede { font-size: 19px; line-height: 1.6; color: var(--fg-1); max-width: 56ch; }
.trip-detail .overview .lede .drop-cap::first-letter { font-family: var(--font-display); font-size: 4.2em; line-height: 0.85; float: left; padding: 0.05em 0.1em 0 0; color: var(--ochre); }

.trip-detail .day { padding: 56px 32px; border-top: 1px solid var(--line); }
.trip-detail .day-inner { max-width: var(--max-content); margin: 0 auto; display: grid; grid-template-columns: 200px 1fr; gap: 40px; }
.trip-detail .day .day-marker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); }
.trip-detail .day .day-marker .num { display: block; font-family: var(--font-display); font-size: 56px; color: var(--ink); margin-bottom: 4px; line-height: 1; }
.trip-detail .day h3 { font-family: var(--font-display); font-size: 36px; line-height: 1.1; margin: 0 0 16px; }
.trip-detail .day p { font-size: 16px; line-height: 1.65; color: var(--fg-1); margin: 0 0 14px; max-width: 60ch; }
.trip-detail .day .photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.trip-detail .day .photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; }
.trip-detail .day .photos.three { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; }
.trip-detail .day .photos.three img:nth-child(1) { grid-row: span 2; aspect-ratio: 3/4; }

.trip-detail .gallery { padding: 96px 32px; background: var(--paper); }
.trip-detail .gallery h2 { font-family: var(--font-display); font-size: 48px; max-width: var(--max-content); margin: 0 auto 32px; }
.trip-detail .gallery-grid { max-width: var(--max-content); margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.trip-detail .gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block; }
.trip-detail .gallery-grid .g1 { grid-column: span 4; aspect-ratio: 3/4; }
.trip-detail .gallery-grid .g2 { grid-column: span 8; aspect-ratio: 16/10; }
.trip-detail .gallery-grid .g3 { grid-column: span 5; aspect-ratio: 4/3; }
.trip-detail .gallery-grid .g4 { grid-column: span 7; aspect-ratio: 5/3; }
.trip-detail .gallery-grid .g5 { grid-column: span 6; aspect-ratio: 4/3; }
.trip-detail .gallery-grid .g6 { grid-column: span 6; aspect-ratio: 4/3; }

.trip-detail .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  color: var(--bone); text-decoration: none;
}

/* ===== Misc helpers ===== */
.eyebrow { font-family: var(--font-sans); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: var(--fg-2); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ===== Video embeds (YouTube, lazy-loaded) ===================== */
.video-embed { margin: 0 0 8px; padding: 0; }
.video-embed .video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
  border-radius: 2px;
}
.video-embed .video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-embed .video-poster {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  position: absolute; inset: 0; width: 100%; height: 100%;
  cursor: pointer; display: block;
}
.video-embed .video-poster img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-base) var(--ease-out);
}
.video-embed .video-poster:hover img { transform: scale(1.02); filter: brightness(0.95); }
.video-embed .video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: transform var(--dur-base) var(--ease-out);
}
.video-embed .video-poster:hover .video-play { transform: scale(1.06); }

/* YouTube two-click consent notice — sits at bottom of the poster */
.video-embed .video-consent {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  display: flex; gap: 8px; align-items: flex-start;
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(246, 239, 224, 0.92);
  text-align: left;
  pointer-events: none;
  background: linear-gradient(to top, rgba(14,13,11,0.78) 0%, rgba(14,13,11,0.5) 60%, rgba(14,13,11,0) 100%);
  cursor: default;
}
.video-embed .video-consent a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(246, 239, 224, 0.55);
  pointer-events: auto;       /* let the link be clickable without firing play */
  white-space: nowrap;
}
.video-embed .video-consent a:hover {
  text-decoration-color: var(--bone);
  color: var(--bone);
}
.video-embed figcaption {
  display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap;
  padding: 12px 2px 0;
  font-family: var(--font-sans); font-size: 14px; color: var(--fg-2);
}
.video-embed figcaption strong {
  font-weight: 600; color: var(--ink); font-family: var(--font-display);
  font-size: 18px; letter-spacing: -0.01em;
}

/* Trip-level films block (between Days and Gallery) */
.trip-detail .films { padding: 80px 32px; background: var(--bone-soft); }
.trip-detail .films h2 { font-family: var(--font-display); font-size: 48px; max-width: var(--max-content); margin: 0 auto 32px; }
.trip-detail .films-grid {
  max-width: var(--max-content); margin: 0 auto;
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
.trip-detail .films-grid .video-embed:only-child .video-frame { aspect-ratio: 21 / 9; }
@media (min-width: 900px) {
  .trip-detail .films-grid:has(.video-embed:nth-child(2):last-child) {
    grid-template-columns: 1fr 1fr;
  }
}

/* Per-day video inside the day block */
.trip-detail .day .day-videos { margin-top: 28px; display: grid; gap: 24px; }
