/* ─────────────────────────────────────────────────────────────
   Naše cesty — filmový tmavý styl.
   Satelitní snímek je hlavní záběr, všechno ostatní jsou titulky
   a černé pruhy kolem. Barvy a písma jsou jen tady nahoře.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg:        #08090A;
  --bg-2:      #0D0E10;
  --bg-3:      #15171A;
  --glass:     rgba(8, 9, 10, 0.62);

  --ink:       #EEE9E1;
  --ink-2:     rgba(238, 233, 225, 0.76);
  --ink-3:     rgba(238, 233, 225, 0.54);
  --ink-4:     rgba(238, 233, 225, 0.36);
  --line:      rgba(238, 233, 225, 0.16);
  --line-2:    rgba(238, 233, 225, 0.08);

  --accent:     #E9B872;                    /* wolframové světlo */
  --accent-dim: rgba(233, 184, 114, 0.14);
  --gold:       #F4D493;

  --display: "Cormorant Garamond", "Cormorant", Garamond, "Palatino Linotype", Georgia, serif;
  --ui:      "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;

  --ease:    cubic-bezier(.22, .75, .28, 1);
  --lanes:   2;                              /* řádky popisků na ose, nastavuje JS */
  --time-h:  calc(58px + var(--lanes) * 18px);
  --pad:     28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.trip { overflow: hidden; }

button { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--bg); }

.num { font-variant-numeric: tabular-nums lining-nums; }

.eyebrow,
.k {
  margin: 0;
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.eyebrow { color: var(--accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── HLAVIČKA ──────────────────────────────────────────────── */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px var(--pad) 0;
  pointer-events: none;
}
.masthead > * { pointer-events: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.brand-back {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-3);
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: color .2s, border-color .2s;
}
.brand-back svg { width: 16px; height: 16px; }
.brand:hover .brand-back { color: var(--ink); border-color: var(--ink-3); }
.brand-text { display: grid; gap: 2px; min-width: 0; }
.brand-couple {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.brand-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 14px rgba(0,0,0,.9);
}

.mast-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.icon-btn {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--ink-2);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn[aria-pressed="true"] { color: var(--accent); border-color: rgba(233,184,114,.55); }

.trip-switch[hidden] { display: none; }
.trip-switch select {
  appearance: none;
  height: 38px;
  padding: 0 34px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23EEE9E1' stroke-opacity='.6' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center / 11px;
  backdrop-filter: blur(10px);
  color: var(--ink-2);
  font: inherit;
  font-size: 12px;
  letter-spacing: .06em;
  cursor: pointer;
}
.trip-switch select:hover { color: var(--ink); border-color: var(--ink-3); }
.trip-switch option { background: var(--bg-2); color: var(--ink); }

/* ── MAPA ──────────────────────────────────────────────────── */
.stage {
  position: fixed;
  inset: 0 0 var(--time-h) 0;
  overflow: hidden;
}
#map { position: absolute; inset: 0; background: var(--bg); }

.vignette {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(8,9,10,.78) 0, rgba(8,9,10,0) 150px),
    linear-gradient(to top, rgba(8,9,10,.86) 0, rgba(8,9,10,0) 240px),
    radial-gradient(ellipse 75% 70% at 50% 48%, transparent 55%, rgba(0,0,0,.5) 100%);
}

.maplibregl-ctrl-attrib.maplibregl-compact {
  background: rgba(8,9,10,.6) !important;
  color: var(--ink-3);
}
.maplibregl-ctrl-attrib a { color: var(--ink-3) !important; }
.maplibregl-ctrl-attrib-button { filter: invert(1) opacity(.55); }
.maplibregl-ctrl-bottom-right { z-index: 3; }

/* body zastávek */
.marker {
  position: relative;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  cursor: pointer;
}
.marker .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(8,9,10,.55);
  border: 1.5px solid rgba(238,233,225,.85);
  box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.6);
  transition: background .3s, border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.marker.reached .dot { background: var(--accent); border-color: #FFF4E2; }
.marker.gold .dot { background: var(--gold); border-color: #fff; width: 12px; height: 12px; }
.marker:hover .dot { transform: scale(1.35); }
.marker.active .dot,
.marker.current .dot {
  transform: scale(1.5);
  box-shadow: 0 0 0 5px rgba(233,184,114,.18), 0 0 18px rgba(233,184,114,.55);
}

.marker .lbl {
  position: absolute;
  left: 22px; top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 3px rgba(0,0,0,1), 0 0 14px rgba(0,0,0,.9);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.marker.flip .lbl { left: auto; right: 22px; }
.marker:hover .lbl,
.marker.active .lbl,
.marker.current .lbl { opacity: 1; }
.marker.active .lbl { color: var(--accent); }

/* hlava čáry */
.head-marker { width: 18px; height: 18px; display: grid; place-items: center; pointer-events: none; }
.head-marker::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2s ease-out infinite;
}
.head-marker::after {
  content: "";
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #FFF1DA;
  box-shadow: 0 0 12px rgba(233,184,114,.9);
}
@keyframes ping {
  0%   { transform: scale(.5); opacity: .5; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* ── TITULEK MÍSTA (vlevo dole) ────────────────────────────── */
.caption {
  position: absolute;
  left: var(--pad);
  bottom: 30px;
  z-index: 5;
  max-width: min(640px, calc(100% - 120px));
  pointer-events: none;
  text-shadow: 0 2px 24px rgba(0,0,0,.85);
}
.caption[hidden],
body.panel-open .caption { display: none; }
.caption-k {
  display: flex; align-items: center; gap: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
}
.caption-k svg { width: 15px; height: 15px; flex: 0 0 auto; }
.caption.moving .caption-k { letter-spacing: .14em; text-transform: none; font-size: 12.5px; }
.caption-v {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.005em;
  color: var(--ink);
}
.caption-v i { font-style: normal; color: var(--ink-4); font-weight: 400; }
.caption.moving .caption-v { font-size: clamp(30px, 3.8vw, 50px); }
.caption-m {
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.map-tools {
  position: absolute;
  right: var(--pad);
  bottom: 30px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tools-gap { height: 6px; }

.notice {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: min(360px, calc(100% - 40px));
  padding: 22px 24px;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.notice p:not(.eyebrow) { margin: 10px 0 0; color: var(--ink-2); line-height: 1.6; }

/* ── ÚVODNÍ TITULEK ────────────────────────────────────────── */
.intro {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 80px 24px 40px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 46%, rgba(8,9,10,.7), rgba(8,9,10,.95) 100%);
  transition: opacity .9s ease, visibility .9s;
}
/* filmové pruhy nahoře a dole, při startu odjedou */
.intro::before,
.intro::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 11vh;
  background: #000;
  transition: transform .9s var(--ease);
}
.intro::before { top: 0; transform-origin: top; }
.intro::after { bottom: 0; transform-origin: bottom; }
.intro.hidden { opacity: 0; visibility: hidden; }
.intro.hidden::before,
.intro.hidden::after { transform: scaleY(0); }

.intro-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 900px;
}
.intro-inner > * { animation: rise 1.1s var(--ease) both; }
.intro-inner > :nth-child(2) { animation-delay: .12s; }
.intro-inner > :nth-child(3) { animation-delay: .26s; }
.intro-inner > :nth-child(4) { animation-delay: .38s; }
.intro-inner > :nth-child(5) { animation-delay: .5s; }
.intro-inner > :nth-child(6) { animation-delay: .62s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.intro-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--accent);
}
.intro-title {
  margin: 22px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(60px, 11.5vw, 156px);
  line-height: .88;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.intro-dates {
  margin: 22px 0 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(19px, 2vw, 24px);
  color: var(--ink-2);
}
.intro-lede {
  margin: 20px 0 0;
  max-width: 44ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-3);
  text-wrap: balance;
}
.intro-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0 0;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.intro-meta span { padding: 0 18px; border-left: 1px solid var(--line); }
.intro-meta span:first-child { border-left: 0; }
.intro-meta b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 26px;
  margin-top: 40px;
}
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 26px 7px 7px;
  border: 1px solid rgba(233,184,114,.55);
  border-radius: 999px;
  background: rgba(233,184,114,.06);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.btn-play-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  transition: transform .3s var(--ease);
}
.btn-play-icon svg { width: 14px; height: 14px; margin-left: 2px; }
.btn-play:hover { background: rgba(233,184,114,.14); border-color: var(--accent); }
.btn-play:hover .btn-play-icon { transform: scale(1.07); }
.btn-text {
  padding: 8px 4px;
  border: 0;
  background: none;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  transition: color .2s;
}
.btn-text:hover { color: var(--ink); }

/* ── ČASOVÁ OSA (spodní černý pruh) ────────────────────────── */
.timeline {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--time-h);
  z-index: 30;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 14px var(--pad) 0;
  background: var(--bg);
  border-top: 1px solid var(--line-2);
}
.play {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  margin-top: -1px;
  display: grid; place-items: center;
  border: 1px solid rgba(233,184,114,.55);
  border-radius: 50%;
  background: none;
  color: var(--accent);
  cursor: pointer;
  transition: background .2s, color .2s, transform .12s;
}
.play:hover { background: var(--accent); color: var(--bg); }
.play:active { transform: scale(.94); }
.play svg { width: 14px; height: 14px; }

.track-wrap {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  padding-top: 20px;
  cursor: pointer;
  touch-action: none;
}
.track { position: relative; height: 2px; background: var(--line); }
.track-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }
.track-knob {
  position: absolute;
  top: 50%; left: 0;
  width: 11px; height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(233,184,114,.7);
  pointer-events: none;
}

.track-ticks { position: relative; height: calc(12px + var(--lanes) * 18px); }
.tick {
  --lane: 0;
  position: absolute;
  top: 0;
  width: 0; height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-4);
  cursor: pointer;
  transition: color .2s;
}
/* svislá čárka od osy k popisku */
.tick::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px;
  height: calc(5px + var(--lane) * 18px);
  background: currentColor;
  opacity: .55;
}
/* širší neviditelná plocha pro kliknutí na čárku */
.tick::after {
  content: "";
  position: absolute;
  left: -6px; top: -12px;
  width: 12px; height: 20px;
}
.tick span {
  position: absolute;
  top: calc(7px + var(--lane) * 18px);
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1;
  padding: 1px 0;
}
.tick.edge-start span { transform: none; }
.tick.edge-end span { transform: translateX(-100%); }
.tick:hover, .tick.reached { color: var(--ink-3); }
.tick:hover { color: var(--ink); }
.tick.active { color: var(--accent); }

/* nevejde se → jen čárka, název až při najetí nebo u aktivní zastávky */
.tick.quiet span {
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  padding: 3px 7px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  top: 6px;
}
.tick.quiet:hover span,
.tick.quiet.active span { opacity: 1; }

.readout {
  flex: 0 0 auto;
  display: flex;
  gap: 24px;
  margin-top: 2px;
}
.readout-row { text-align: right; }
.readout-row .k { font-size: 9.5px; }
.readout-row .v {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

/* ── PANEL ZASTÁVKY ────────────────────────────────────────── */
.panel {
  position: fixed;
  top: 0; right: 0;
  z-index: 50;
  width: 460px;
  max-width: 100vw;
  height: calc(100dvh - var(--time-h));
  background: var(--bg-2);
  border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 80px -30px rgba(0,0,0,.9);
  transform: translateX(101%);
  visibility: hidden;
  transition: transform .55s var(--ease), visibility 0s .55s;
}
.panel.open { transform: none; visibility: visible; transition-delay: 0s; }
.panel-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.panel-close {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 4;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--ink-2);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.panel-close:hover { color: var(--ink); border-color: var(--ink-3); }

.panel-hero { display: none; }
.panel.has-hero .panel-hero {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-3);
}
.panel-hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(13,14,16,0) 45%, var(--bg-2) 100%);
}
.hero-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.hero-btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  animation: kenburns 14s ease-out both;
}
@keyframes kenburns {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.panel-head { position: relative; z-index: 1; padding: 70px 32px 0; }
.panel.has-hero .panel-head { margin-top: -96px; padding-top: 0; }
.panel-title {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: 56px;
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.01em;
  text-wrap: balance;
  padding-right: 20px;
}
.panel-meta {
  margin: 14px 0 0;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.panel-text { padding: 26px 32px 0; }
.via {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-2);
}
.via svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--accent); }
.note {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 0;
  padding: 8px 15px;
  border: 1px solid rgba(244,212,147,.5);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}

.gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 32px 14px;
}
.gallery-count { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--bg-3);
  cursor: zoom-in;
}
.tile.wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.tile img,
.tile video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease), filter .4s;
  filter: saturate(.92);
}
.tile:hover img,
.tile:hover video { transform: scale(1.045); filter: none; }
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 14px 11px;
  background: linear-gradient(to top, rgba(8,9,10,.85), transparent);
  font-size: 12px;
  text-align: left;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile .cap:empty { display: none; }
.tile .dur {
  position: absolute; top: 10px; right: 10px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink);
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
  font-variant-numeric: tabular-nums;
}
.play-badge { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.play-badge > span {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border: 1px solid rgba(238,233,225,.75);
  border-radius: 50%;
  background: rgba(8,9,10,.3);
  backdrop-filter: blur(3px);
  transition: transform .4s var(--ease), background .3s;
}
.tile:hover .play-badge > span { transform: scale(1.08); background: rgba(233,184,114,.85); border-color: transparent; }
.play-badge svg { width: 14px; height: 14px; color: #fff; margin-left: 2px; }
.tile:hover .play-badge svg { color: var(--bg); }
.tag-360 {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--accent);
  color: var(--bg);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0 32px;
  padding: 20px;
  border: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}
.gallery-empty code,
.home-empty code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 11.5px;
  color: var(--ink-2);
  background: rgba(238,233,225,.07);
  padding: 1px 5px;
  white-space: nowrap;
}

/* soubor zatím chybí */
.tile.missing {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  cursor: default;
  background: repeating-linear-gradient(-45deg, #111316, #111316 10px, #141619 10px, #141619 20px);
}
.tile.missing .ph-name { font-size: 11px; color: var(--ink-3); }
.tile.missing .ph-hint { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4); }

.panel-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 40px 32px 44px;
}
.nav-btn {
  min-width: 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--line-2);
  background: none;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.nav-btn.next { text-align: right; }
.nav-btn:hover:not(:disabled) { border-color: rgba(233,184,114,.5); background: var(--accent-dim); }
.nav-btn:disabled { opacity: .3; cursor: default; }
.nav-k {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.nav-v {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.05;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── NÁHLED MÉDIA ──────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  z-index: 90;
  display: grid; place-items: center;
  padding: 5vmin 80px;
  background: rgba(3,3,4,.97);
  animation: fade .35s ease both;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; width: min(1200px, 100%); }
.lb-stage {
  display: grid; place-items: center;
  min-height: 220px;
  max-height: 80dvh;
  overflow: hidden;
  background: #000;
}
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 80dvh; display: block; }
.lb-stage .ph-big {
  display: grid; place-items: center; align-content: center; gap: 8px;
  width: 100%; aspect-ratio: 3 / 2;
  background: repeating-linear-gradient(-45deg, #0E1012, #0E1012 12px, #121417 12px, #121417 24px);
}
.lb-stage .ph-name { font-size: 12px; color: var(--ink-3); }
.lb-stage .ph-hint { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4); }
.lb-figure figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 16px 2px 0;
}
.lb-cap { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--ink); }
.lb-meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); white-space: nowrap; }
.lb-btn {
  position: absolute;
  z-index: 2;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8,9,10,.6);
  color: var(--ink-2);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.lb-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 18px; top: 50%; margin-top: -23px; }
.lb-next { right: 18px; top: 50%; margin-top: -23px; }

.lightbox.is-pano .lb-figure { width: min(1360px, 100%); }
.lightbox.is-pano .lb-stage { aspect-ratio: 16 / 9; max-height: 80dvh; }
.lb-stage .yt-frame { width: 100%; height: 100%; border: 0; display: block; }

/* ── O MAPĚ ────────────────────────────────────────────────── */
.sheet {
  position: fixed; inset: 0;
  z-index: 80;
  display: grid; place-items: center;
  padding: 5vmin;
  background: rgba(3,3,4,.82);
  backdrop-filter: blur(6px);
  animation: fade .3s ease both;
}
.sheet[hidden] { display: none; }
.sheet-card {
  position: relative;
  width: min(620px, 100%);
  max-height: 86dvh;
  overflow-y: auto;
  padding: 44px 44px 40px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
}
.sheet-card h2 {
  margin: 12px 0 6px;
  font-family: var(--display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}
.sheet-card h3 {
  margin: 30px 0 10px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
}
.sheet-card p { margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); max-width: 58ch; }
.sheet-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.sheet-card li { margin-bottom: 6px; }
.sheet-card li::marker { color: var(--ink-4); }
kbd {
  display: inline-block;
  min-width: 22px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: 12px var(--ui);
  text-align: center;
  color: var(--ink);
}
.attrib { font-size: 12px !important; color: var(--ink-4) !important; margin-top: 30px !important; }

/* ── 360° PŘEHRÁVAČ ────────────────────────────────────────── */
.pano { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.pano-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.pano-canvas.grabbing { cursor: grabbing; }
.pano:fullscreen { width: 100vw; height: 100vh; }
.pano-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 9px;
  border-radius: 2px;
  background: var(--accent);
  color: var(--bg);
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  pointer-events: none;
}
.pano-hint {
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8,9,10,.66);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  pointer-events: none;
  transition: opacity .6s ease;
}
.pano-hint.gone { opacity: 0; }
.pano-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
}
.pano-btn {
  position: relative;
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(238,233,225,.1);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s;
}
.pano-btn:hover { background: rgba(238,233,225,.22); }
.pano-btn svg { width: 15px; height: 15px; }
.pano-btn.pano-play svg { margin-left: 1px; }
.pano-mute.off { color: var(--ink-4); }
.pano-mute.off::after {
  content: ""; position: absolute;
  width: 19px; height: 1.5px; background: currentColor;
  transform: rotate(-45deg);
}
.pano-seek { flex: 1 1 auto; min-width: 40px; padding: 10px 0; cursor: pointer; touch-action: none; }
.pano-seek-track { height: 2px; background: rgba(238,233,225,.25); }
.pano-seek-fill { height: 100%; width: 0; background: var(--accent); }
.pano-time { flex: 0 0 auto; font-size: 11px; color: var(--ink-2); }
.pano-fallback { margin: 12px 4px 0; font-size: 13px; color: var(--ink-3); }
.pano-warn {
  position: absolute; left: 14px; right: 14px; top: 50px;
  padding: 10px 14px;
  border: 1px solid rgba(233,184,114,.4);
  background: rgba(30,22,10,.92);
  color: #F2DDB6;
  font-size: 12.5px;
  line-height: 1.55;
}
.pano-warn[hidden] { display: none; }

/* ── ROZCESTNÍK ────────────────────────────────────────────── */
body.home { overflow-x: hidden; }

.home-head {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(64px, 14vh, 150px) var(--pad) 0;
}
.home-couple { animation: rise 1s var(--ease) both; }
.home-title {
  margin: 20px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(56px, 10vw, 140px);
  line-height: .88;
  letter-spacing: -.015em;
  max-width: 12ch;
  animation: rise 1.1s .1s var(--ease) both;
}
.home-lede {
  margin: 28px 0 0;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-3);
  animation: rise 1.1s .22s var(--ease) both;
}

.home-main { max-width: 1320px; margin: 0 auto; padding: 72px var(--pad) 0; }
.trip-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.trip-card { animation: rise 1.2s .32s var(--ease) both; }
.trip-card a {
  position: relative;
  display: block;
  aspect-ratio: 21 / 9;
  min-height: 420px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--bg-3);
}
.trip-cover { position: absolute; inset: 0; display: block; }
.trip-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.78) brightness(.82);
  transform: scale(1.02);
  opacity: 0;
  transition: transform 2.4s var(--ease), filter .8s, opacity 1.2s ease;
}
.trip-cover img.loaded { opacity: 1; }
.trip-card a:hover .trip-cover img { transform: scale(1.07); filter: saturate(.9) brightness(.9); }
.trip-cover::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8,9,10,.94) 0, rgba(8,9,10,.4) 45%, rgba(8,9,10,.1) 100%),
    linear-gradient(to right, rgba(8,9,10,.6), transparent 60%);
}
.trip-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 40px;
  padding: 44px 48px;
}
.trip-year {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .38em;
  color: var(--accent);
}
.trip-name {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.01em;
}
.trip-open {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color .25s, gap .35s var(--ease);
}
.trip-open svg { width: 18px; height: 18px; }
.trip-card a:hover .trip-open { color: var(--accent); gap: 18px; }
.trip-info { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-top: 18px; }
.trip-places { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.trip-season { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--ink-3); }
.trip-blurb {
  grid-column: 1 / -1;
  max-width: 56ch;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-3);
}

.home-empty { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); color: var(--ink-3); }
.home-foot {
  max-width: 1320px;
  margin: 0 auto;
  padding: 44px var(--pad) 64px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ── MENŠÍ OBRAZOVKY ───────────────────────────────────────── */
@media (max-width: 860px) {
  :root { --pad: 18px; }
  .panel {
    top: auto;
    bottom: var(--time-h);
    width: 100%;
    height: 76dvh;
    border-left: 0;
    border-top: 1px solid var(--line);
    transform: translateY(calc(100% + var(--time-h) + 20px));
  }
  .panel.open { transform: none; }
  .panel-title { font-size: 46px; }
  .panel-head { padding: 64px 22px 0; }
  .panel-text { padding: 22px 22px 0; }
  .gallery-head { margin: 34px 22px 12px; }
  .panel-nav { margin: 32px 22px 36px; }
  .gallery-empty { margin: 0 22px; }
  .caption { bottom: 22px; max-width: calc(100% - 90px); }
  .map-tools { bottom: 22px; }
  .timeline { gap: 14px; }
  .readout { gap: 16px; }
  .lightbox { padding: 64px 12px; }
  .lb-prev { left: 8px; top: auto; bottom: 16px; margin-top: 0; }
  .lb-next { right: 8px; top: auto; bottom: 16px; margin-top: 0; }
  .trip-card a { aspect-ratio: auto; min-height: 520px; }
  .trip-text { grid-template-columns: 1fr; padding: 28px 24px; }
  .trip-open { padding-bottom: 0; margin-top: 10px; }
  .sheet-card { padding: 36px 24px 28px; }
}
@media (max-width: 560px) {
  .brand-title { font-size: 20px; }
  .brand-couple { font-size: 9px; }
  .masthead { padding-top: 16px; gap: 10px; }
  .readout-row:nth-child(2) { display: none; }
  .intro-meta span { padding: 0 11px; }
  .intro-meta b { font-size: 24px; }
  .map-tools #zoomIn, .map-tools #zoomOut, .tools-gap { display: none; }
  .home-foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
