/* Plaváčkův průvodce Karlovými Vary */

:root {
  --paper: #f2f6f4;
  --card: #ffffff;
  --ink: #16241f;
  --muted: #485b54;
  --green: #17453a;
  --green-deep: #0f2f27;
  --teal: #2e8a82;
  --link: #1b6760;
  --ochre: #c27a2c;
  --ochre-ink: #8a4f10;
  --rose: #f0dcd7;
  --rose-ink: #5c2a22;
  --line: rgba(23, 69, 58, .18);
  --head: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rail: 4.5rem;
  --bar-h: 3.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.68 var(--body);
  overflow-wrap: break-word;
}
/* Německá slova bývají dlouhá, na úzkém displeji se smí dělit */
:lang(de) body, body:lang(de) { hyphens: auto; -webkit-hyphens: auto; }
.preview-note { position: relative; z-index: 60; margin: 0; padding: .55rem 1rem; background: #ffe7a3; color: #3a2b00; text-align: center; font: 600 .95rem/1.4 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--green); text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--ochre-ink); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 68.74rem) { html { scroll-padding-top: 4.75rem; } }
.container { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: .75rem; top: -4rem; z-index: 100; background: var(--card); color: var(--ink);
  padding: .7rem 1rem; border-radius: .5rem; font-weight: 600;
}
.skip:focus { top: .75rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* Odkaz mimo web: šipka */
/* \2060 (word joiner) drží šipku u posledního slova, aby se nikdy nezalomila sama na další řádek */
a.ext::after { content: "\2060\2197"; content: "\2060\2197" / ""; margin-left: .15em; font-size: .85em; }
.btn.ext::after { margin-left: .35em; }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--solid { background: var(--green); color: #fff; }
.btn--solid:hover { background: var(--green-deep); color: #fff; }
.btn--light { background: #fff; color: var(--green-deep); }
.btn--light:hover { background: var(--rose); color: var(--green-deep); }
.btn--line { border-color: var(--green); color: var(--green); background: transparent; }
.btn--line:hover { background: var(--green); color: #fff; }
.hero :focus-visible, .foot :focus-visible, .bar :focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; isolation: isolate; display: grid; align-items: end;
  min-height: clamp(30rem, 82svh, 50rem); color: #fff; overflow: hidden; background: var(--green-deep);
}
.hero::after {
  /* Zatmavení jen tam, kde je text (vlevo dole). Neutrální, ne zelené, ať fotky zůstanou barevné. */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(8, 15, 13, .42) 0%, rgba(8, 15, 13, 0) 55%),
    linear-gradient(to top, rgba(8, 15, 13, .84) 0%, rgba(8, 15, 13, .68) 30%, rgba(8, 15, 13, .36) 50%, rgba(8, 15, 13, 0) 72%);
}
.hero__slides { position: absolute; inset: 0; z-index: -2; touch-action: pan-y; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.hero__slide.is-active { z-index: 2; opacity: 1; visibility: visible; transition-delay: 0s; }
.hero__slide.is-leaving { z-index: 1; opacity: 1; visibility: visible; transition: none; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__top { position: absolute; top: 1.25rem; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: flex; align-items: center; min-height: 2.75rem; color: #fff; }   /* jen logo, bez odkazu */
.brand__mark { width: 3.1rem; height: 3.1rem; flex: none; filter: drop-shadow(0 .1rem .45rem rgba(8, 15, 13, .55)); }

/* Přepínač jazyka (hlavička) */
.lang { padding: .2rem; border-radius: 999px; background: rgba(8, 15, 13, .62); border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lang__list, .langfoot__list { list-style: none; margin: 0; padding: 0; display: flex; }
.lang__list { gap: .1rem; }
.lang a {
  display: grid; place-items: center; min-width: 2.5rem; min-height: 2.5rem; padding: 0 .55rem; border-radius: 999px;
  color: #fff; text-decoration: none; font: 600 .85rem/1 var(--body); letter-spacing: .06em; transition: background-color .15s, color .15s;
}
.lang a:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.lang a[aria-current] { background: #fff; color: var(--green-deep); }
@media (max-width: 24rem) { .lang a { min-width: 2.25rem; padding-inline: .4rem; } }
.hero__in { padding-block: 5rem 3.25rem; }
.hero__title {
  margin: 0; max-width: 22ch; font: 600 clamp(2.5rem, 7vw, 5rem)/1.02 var(--head);
  letter-spacing: -.02em; text-wrap: balance; font-optical-sizing: auto;
  text-shadow: 0 .03em .6em rgba(9, 18, 15, .45);
}
.hero__sub { margin: 1.1rem 0 0; max-width: 48ch; text-wrap: balance; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.4; color: #e6efeb; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 2rem; }
.hero__cta { margin: 0; }
.hero__ctrl {
  display: flex; align-items: center; gap: .25rem; padding: .25rem; border-radius: 999px;
  background: rgba(8, 15, 13, .6); border: 1px solid rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero__ctrl[hidden] { display: none; }
.hero__btn {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer; transition: background-color .15s;
}
.hero__btn:hover { background: rgba(255, 255, 255, .2); }
.hero__btn:active { background: rgba(255, 255, 255, .3); }
.hero__count { min-width: 3.5rem; text-align: center; font: 600 .95rem/1 var(--body); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: hero-settle 2.4s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__top, .hero__title, .hero__sub, .hero__cta, .hero__ctrl { animation: hero-rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__sub { animation-delay: .15s; }
  .hero__cta, .hero__ctrl { animation-delay: .3s; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__slide.is-active { transition: none; }
}
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Úvod */
.intro { display: grid; gap: 2rem; padding-block: 3rem 3.5rem; align-items: center; }
.intro__lead {
  margin: 0; max-width: 34ch; font: 400 clamp(1.35rem, 2.6vw, 1.8rem)/1.4 var(--head);
  color: var(--green); text-wrap: pretty;
}
.pdf {
  display: flex; gap: 1.25rem; align-items: center; padding: 1.1rem 1.25rem 1.1rem 1.1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 1.1rem;
}
.pdf__thumb {
  width: 6.5rem; flex: none; border-radius: .25rem; background: #fff;
  box-shadow: 0 .15rem .15rem rgba(15, 47, 39, .1), 0 .8rem 1.4rem -.4rem rgba(15, 47, 39, .35);
  transform: rotate(-2.5deg);
}
.pdf .pdf__zoom {
  flex: none; width: 6.5rem; border-radius: .25rem; transform: rotate(-2.5deg);
  box-shadow: 0 .15rem .15rem rgba(15, 47, 39, .1), 0 .8rem 1.4rem -.4rem rgba(15, 47, 39, .35);
}
.pdf .pdf__zoom .pdf__thumb { width: 100%; border-radius: .25rem; box-shadow: none; transform: none; }
.pdf .pdf__zoom .zoomlink__ico { right: .35rem; bottom: .35rem; width: 1.9rem; height: 1.9rem; }
.pdf .pdf__zoom .zoomlink__ico .ico { width: 1.05rem; height: 1.05rem; }
@media (prefers-reduced-motion: no-preference) { .pdf .pdf__zoom { transition: transform .15s; } .pdf .pdf__zoom:hover { transform: rotate(-1deg) scale(1.03); } }
.pdf__thumb--blank {
  display: grid; place-items: center; aspect-ratio: 1 / 1.41; font: 700 1.1rem var(--head); color: var(--green);
  border: 2px solid var(--green);
}
.pdf__t { margin: 0 0 .25rem; font: 600 1.35rem/1.2 var(--head); }
.pdf__p { margin: 0 0 .4rem; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.pdf__meta { margin: 0 0 .9rem; font-size: .9rem; color: var(--muted); }
@media (min-width: 56rem) {
  .intro { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
}
@media (max-width: 22rem) {
  .pdf { flex-direction: column; align-items: flex-start; }
  .pdf__thumb, .pdf__zoom { width: 5.5rem; }
}

/* ------------------------------------------------------- Rozvržení trasy */
.layout { display: block; }
.side { margin-bottom: 2rem; }
.js .side { display: none; }

@media (min-width: 68.75rem) {
  .layout { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 3.5rem; }
  .js .side, .side { display: block; margin: 0; }
  .side { position: sticky; top: 1.25rem; align-self: start; max-height: calc(100svh - 2.5rem); overflow: auto; scrollbar-width: thin; padding-block: .25rem .5rem; }
}

/* Navigace: vlastní seznam zastavení */
.route-nav { position: relative; font-size: .975rem; line-height: 1.3; }
.route-nav__title { margin: 0 0 .9rem; font: 600 1.2rem/1.2 var(--head); }
.route-nav__group + .route-nav__group { margin-top: 1.25rem; }
.route-nav__part { margin: 0 0 .35rem; font: italic 500 1rem/1.3 var(--head); color: var(--ochre-ink); }
.route-nav__list { list-style: none; margin: 0; padding: 0; position: relative; }
.route-nav__list::before {
  content: ""; position: absolute; left: .83rem; top: 1rem; bottom: 1rem; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--teal) 0 5px, transparent 5px 9px);
}
.route-nav__list a {
  position: relative; display: flex; align-items: center; gap: .7rem; min-height: 2.75rem; padding: .3rem .4rem .3rem 0;
  color: var(--ink); text-decoration: none; border-radius: .5rem;
}
.route-nav__list a:hover .route-nav__t { text-decoration: underline; text-underline-offset: .2em; }
.route-nav__n {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--teal); color: var(--green);
  font: 600 .8rem/1 var(--head); box-shadow: 0 0 0 3px var(--paper);
}
.route-nav__n--end { background: var(--teal); }
.route-nav a[aria-current="location"] { font-weight: 650; }
.route-nav a[aria-current="location"] .route-nav__n { background: var(--green); border-color: var(--green); color: #fff; }
.route-nav a[aria-current="location"] .route-nav__n--end { background: var(--green); }

/* ---------------------------------------------------------------- Zastavení */
.route { min-width: 0; padding-bottom: 1rem; }
.part {
  position: relative; z-index: 2; margin: 0 0 2.75rem; padding: 1.25rem 1.5rem;
  background: var(--rose); border-radius: 1.1rem; color: var(--rose-ink);
}
.part__t { margin: 0; font: 600 1.55rem/1.2 var(--head); }
.part__n { margin: .3rem 0 0; font-size: 1rem; line-height: 1.5; }
.stop + .part { margin-top: 0; }

.stop {
  position: relative; display: block; scroll-margin-top: 4.5rem; padding-bottom: 4.25rem;
}
.stop__rail { position: absolute; left: 0; top: 0; }
.badge {
  position: relative; z-index: 1; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--green); color: #fff; font: 600 1.15rem/1 var(--head);
  box-shadow: 0 0 0 .3rem var(--paper);
}
.stop--end .badge { width: 1.4rem; height: 1.4rem; margin: .65rem; background: var(--teal); }
.stop__head { min-height: 2.75rem; padding-left: 3.6rem; margin-bottom: 1.25rem; }
.stop__ord { margin: 0; font: italic 500 1.05rem/1.3 var(--head); color: var(--ochre-ink); }
.stop__title {
  margin: .1rem 0 0; font: 600 clamp(1.65rem, 3.4vw, 2.4rem)/1.12 var(--head);
  letter-spacing: -.01em; text-wrap: balance; color: var(--green-deep);
}
.stop--end .stop__head { padding-left: 3.6rem; }

@media (min-width: 46rem) {
  .stop { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); }
  .stop__rail { position: relative; }
  .stop__rail::before {
    content: ""; position: absolute; left: calc(1.375rem - 1px); top: 1.5rem; bottom: -4.25rem; width: 2px;
    background: repeating-linear-gradient(to bottom, var(--teal) 0 7px, transparent 7px 14px);
  }
  .stop--end .stop__rail::before { display: none; }
  .stop__head { padding-left: 0; }
  .stop--end .stop__head { padding-left: 0; }
  .stop__title { padding-top: .1rem; }
}

.stop__body { min-width: 0; container-type: inline-size; }
.stop__wide { margin: 0 0 1.75rem; }
.stop__wide img { width: 100%; border-radius: .9rem; box-shadow: 0 .8rem 1.6rem -.8rem rgba(15, 47, 39, .45); }

.stop__grid { display: grid; gap: 1.5rem; }
.stop__media { display: grid; gap: 1.25rem; align-content: start; }
.photo { margin: 0; }
.photo img { width: 100%; border-radius: .9rem; }
.photo--arch img { width: 100%; max-width: 26rem; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 12rem 12rem .9rem .9rem; box-shadow: 0 1rem 1.8rem -1rem rgba(15, 47, 39, .55); }
@container (min-width: 44rem) {
  .stop__grid { grid-template-columns: minmax(0, 1fr) 19rem; gap: 2.5rem; }
  .stop__grid--solo { grid-template-columns: minmax(0, 1fr); }
  .stop__text { grid-column: 1; grid-row: 1; }
  .stop__media { grid-column: 2; grid-row: 1; position: sticky; top: 1.5rem; }
  .photo--arch img { aspect-ratio: 4 / 5; }
}

/* Text článku */
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { max-width: 62ch; margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose strong { font-weight: 650; }
.prose h3 { margin: 1.6em 0 .5em; font: 600 1.3rem/1.25 var(--head); color: var(--green-deep); }
.prose blockquote {
  max-width: 58ch; margin: 0 0 1.4em; padding: .2rem 0 .2rem 1.1rem; border-left: 3px solid var(--ochre);
  font: italic 400 1.25rem/1.55 var(--head); color: var(--green-deep);
}

/* Mapa */
.map {
  display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: center; max-width: 36rem;
  margin: 1.75rem 0 0; padding: 1rem 1.15rem; background: var(--card); border: 1px solid var(--line);
  border-left: 5px solid var(--teal); border-radius: .75rem;
}
.map > .ico { width: 1.75rem; height: 1.75rem; color: var(--teal); grid-row: span 2; }
.map__t { margin: 0; font-weight: 650; }
.map .btn { grid-column: 2; justify-self: start; min-height: 2.75rem; margin-top: .35rem; }

/* Předchozí / další */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.pager__a {
  display: flex; align-items: center; gap: .75rem; min-height: 3.5rem; padding: .6rem 1rem;
  border: 1.5px solid var(--green); border-radius: 1rem; text-decoration: none; line-height: 1.25;
  font-weight: 500; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.pager__a span { flex: 1; min-width: 0; overflow-wrap: anywhere; hyphens: manual; -webkit-hyphens: manual; }
.pager__a small { display: block; font-size: .8rem; font-weight: 400; letter-spacing: .02em; }
.pager__a .ico { flex: none; }
/* Předchozí: decentní, světlé tlačítko s obrysem */
.pager__a--prev { grid-column: 1; justify-content: flex-start; background: var(--card); color: var(--green); }
.pager__a--prev small { color: var(--muted); }
.pager__a--prev .ico { color: var(--teal); }
.pager__a--prev:hover { background: var(--paper); color: var(--green-deep); transform: translateX(-2px); }
/* Další: plné zelené tlačítko, hlavní směr čtení */
.pager__a--next { grid-column: 2; justify-content: space-between; text-align: right; background: var(--green); color: #fff; }
.pager__a--next small { color: rgba(255, 255, 255, .85); }
.pager__a--next .ico { color: #fff; }
.pager__a--next:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; transform: translateX(2px); }
@media (max-width: 30rem) {
  .pager { grid-template-columns: 1fr; }
  .pager__a--prev, .pager__a--next { grid-column: 1; }
  .pager__a--next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .pager__a { transition: none; } .pager__a:hover { transform: none !important; } }

/* ---------------------------------------------------------------- Autor */
.author { background: var(--rose); color: var(--rose-ink); padding-block: 3.25rem; margin-top: 1rem; }
.author a { color: var(--rose-ink); }
.author a:hover { color: #000; }
.author__in { display: grid; gap: 2rem; align-items: center; }
.author__t { margin: 0 0 1rem; font: 600 1.6rem/1.2 var(--head); }
.author__photo { margin: 0; width: min(100%, 15rem); }
.author__photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 12rem 12rem .9rem .9rem; box-shadow: 0 1rem 1.8rem -1rem rgba(15, 47, 39, .55);
}
.author__photo .zoomlink { border-radius: 12rem 12rem .9rem .9rem; }
.author__photo figcaption { margin-top: .8rem; text-align: center; font: italic 400 1.05rem/1.3 var(--head); color: var(--rose-ink); }
@media (min-width: 46rem) {
  .author__in { grid-template-columns: minmax(0, 1fr) 17rem; gap: 3rem; }
  .author__photo { width: 100%; justify-self: end; }
}
.author .prose p { max-width: 64ch; }

/* ---------------------------------------------------------------- Patička */
.foot { background: var(--green-deep); color: #dbe8e3; padding-block: 3.5rem 1.5rem; text-align: center; }
.foot a { color: #fff; }
.foot a:hover { color: var(--rose); }
.foot__group + .foot__group { margin-top: 2.5rem; }
.foot__lead { margin: 0 0 1rem; font: 400 1.2rem/1.35 var(--head); color: #eaf2ef; }
.foot__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; align-items: center; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.share { position: relative; }
.share > summary { list-style: none; }
.share > summary::-webkit-details-marker { display: none; }
.share__panel {
  position: absolute; left: 50%; bottom: calc(100% + .75rem); z-index: 5; transform: translateX(-50%);
  width: min(18rem, calc(100vw - 2rem)); padding: .5rem; background: #fff; color: var(--ink); border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .4); text-align: left;
}
@media (max-width: 40rem) { .share__panel { left: 0; transform: none; } }
.share__list { list-style: none; margin: 0; padding: 0; }
.share__list a, .share__copy {
  display: flex; width: 100%; align-items: center; min-height: 2.9rem; padding: .5rem .9rem; border: 0; border-radius: .6rem;
  background: none; color: var(--ink); font: 500 1rem var(--body); text-align: left; text-decoration: none; cursor: pointer;
}
.share__list a:hover, .share__copy:hover { background: var(--paper); color: var(--green-deep); }
.share__list :focus-visible { outline-color: var(--ochre-ink); }
.share__msg { margin: 0; padding: 0 .9rem; min-height: 0; font-size: .9rem; color: var(--link); }
.share__msg:not(:empty) { padding-block: .35rem .5rem; }

.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.social a {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .5rem 1.15rem;
  border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 999px; text-decoration: none; font-weight: 600;
}
.social a:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.social a.ext::after { margin-left: -.3rem; }

/* Přepínač jazyka (patička) */
.langfoot__list { flex-wrap: wrap; gap: .75rem; justify-content: center; }
.langfoot a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 3.5rem; min-height: 3rem; padding: .5rem 1.15rem;
  border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 999px; text-decoration: none; font-weight: 600; letter-spacing: .05em;
}
.langfoot a:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.langfoot a[aria-current] { background: #fff; border-color: #fff; color: var(--green-deep); }

.foot__bar { margin: 3rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .95rem; text-align: left; }
.foot__bar p { margin: 0; }
.foot__bar a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot__print { display: none; }

/* Plovoucí šipka na začátek stránky */
.totop {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 20; display: grid; place-items: center; width: 3.25rem; height: 3.25rem;
  border-radius: 50%; background: var(--green); color: #fff; border: 2px solid #fff; text-decoration: none;
  box-shadow: 0 .4rem 1rem rgba(15, 47, 39, .35); transition: opacity .2s, transform .2s, background-color .15s;
}
.totop:hover { background: var(--green-deep); color: #fff; }
.totop:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 3px var(--green-deep); }
.totop .ico { width: 1.5rem; height: 1.5rem; }
.js .totop { opacity: 0; visibility: hidden; transform: translateY(.75rem); }
.js .totop.is-on { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .totop { transition: none; } }

/* ------------------------------------------------- Horní lišta (mobil/tablet) */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: .75rem;
  height: var(--bar-h); padding: 0 .75rem; background: var(--green-deep); color: #fff;
  transform: translateY(-100%); transition: transform .25s ease; visibility: hidden;
}
.bar.is-on { transform: none; visibility: visible; }
.bar__btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1rem; border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 999px; background: none; color: #fff; font: 600 1rem var(--body); cursor: pointer;
}
.bar__btn:hover { background: rgba(255, 255, 255, .12); }
.bar__now { min-width: 0; margin: 0; display: flex; gap: .5rem; align-items: baseline; font-size: .975rem; line-height: 1.2; }
.bar__n { flex: none; font: 600 1rem var(--head); color: #f3c98d; }
.bar__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .18); }
.bar__prog span { display: block; height: 100%; width: 0; background: #f3c98d; }
@media (min-width: 68.75rem) { .bar { display: none; } }

.sheet {
  width: min(26rem, 100%); max-width: 100%; max-height: 100svh; height: 100svh; margin: 0 auto 0 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
}
.sheet::backdrop { background: rgba(15, 47, 39, .6); }
.sheet__in { padding: 1rem 1.25rem 2rem; }
.sheet__close {
  display: block; margin: 0 0 1rem auto; min-height: 2.75rem; padding: 0 1.1rem; border: 1.5px solid var(--green); border-radius: 999px;
  background: none; color: var(--green); font: 600 1rem var(--body); cursor: pointer;
}
.sheet .route-nav { font-size: 1.05rem; }

/* ---------------------------------------------------------------- Tisk */
@media print {
  @page { size: A4; margin: 16mm 18mm; }

  /* pryč vše, co na papíře nedává smysl */
  .bar, .sheet, .side, .share, .pager, .skip, .hero__top, .preview-note, .lang, .langfoot, .hero__actions, .hero__slides, .hero__img, .hero::after,
  .intro, .map, .foot__group, .totop, .stop__rail, .vh { display: none !important; }

  html { scroll-padding: 0; }
  body { background: #fff; color: #000; font-size: 10.2pt; line-height: 1.42; }
  .container { width: 100%; }
  a, a:hover { color: inherit; text-decoration: none; }
  a.ext::after { content: none; }

  /* titulek místo velké fotky */
  .hero { display: block; min-height: 0; background: none; color: #000; overflow: visible; }
  .hero__in { padding: 0 0 5mm; border-bottom: 1.2pt solid #000; margin-bottom: 6mm; }
  .hero__title { max-width: none; font-size: 24pt; line-height: 1.1; letter-spacing: 0; text-shadow: none; }
  .hero__sub { max-width: none; margin-top: 2mm; font-size: 11.5pt; color: #333; text-shadow: none; }

  .layout, .route { display: block; padding: 0; }

  /* části trasy: jen nadpis s linkou */
  .part { margin: 7mm 0 4mm; padding: 0 0 1.5mm; background: none; border-bottom: 1pt solid #888; border-radius: 0; color: #000; break-inside: avoid; break-after: avoid; }
  .part__t { font-size: 14pt; }
  .part__n { margin: 0; font-size: 10pt; }

  /* zastavení: text přes celou šířku, fotka vpravo obtékaná textem */
  .stop { display: block; padding: 0 0 5mm; break-inside: avoid; }   /* zastavení se nelámá: fotka nesmí utéct od textu */
  .stop--long { break-inside: auto; }   /* dlouhé zastavení s mnoha fotkami smí přes stranu */
  .part + .stop { break-before: avoid; }
  .stop__body { container-type: normal; }
  .stop__head { min-height: 0; padding: 0; margin-bottom: 2.5mm; break-inside: avoid; break-after: avoid; }
  .stop__ord { font-size: 9.5pt; color: #333; }
  .stop__title { margin: 0; padding: 0; font-size: 16pt; line-height: 1.15; color: #000; }
  .stop__grid, .stop__grid--solo { display: block; }
  .stop__grid::after { content: ""; display: block; clear: both; }
  .stop__text { display: block; }
  .stop__media { float: right; position: static; display: block; width: 50mm; margin: 1mm 0 3mm 6mm; }
  .photo { margin: 0 0 3mm; break-inside: avoid; }
  .photo img { border-radius: 2mm; box-shadow: none; }
  .photo--arch img { width: 50mm; max-width: none; aspect-ratio: 4 / 5; border-radius: 25mm 25mm 2mm 2mm; box-shadow: none; }
  .photo:not(.photo--arch) img { width: 38mm; }
  .stop__wide { margin: 0 0 3mm; break-inside: avoid; }
  .stop__wide img { border-radius: 2mm; box-shadow: none; }

  .prose p, .prose ul, .prose ol { max-width: none; margin-bottom: 2.4mm; orphans: 3; widows: 3; }
  .prose blockquote { max-width: none; margin-bottom: 3mm; font-size: 11pt; break-inside: avoid; }
  .prose strong { font-weight: 700; }

  .author { margin: 4mm 0 0; padding: 4mm 0 0; background: none; color: #000; border-top: 1pt solid #888; break-inside: avoid; break-after: avoid; }
  .author__in { display: block; }
  .author__in::after { content: ""; display: block; clear: both; }
  .author__photo { display: block; float: right; width: 36mm; margin: 0 0 3mm 6mm; break-inside: avoid; }
  .author__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18mm 18mm 2mm 2mm; box-shadow: none; }
  .author__photo figcaption { margin-top: 1.5mm; font-size: 8.5pt; color: #333; }
  .author a { color: inherit; }
  .author__t { font-size: 12pt; margin-bottom: 2mm; }

  .foot { break-inside: avoid; background: none; color: #000; padding: 4mm 0 0; margin-top: 4mm; border-top: 1pt solid #888; font-size: 9pt; text-align: left; }
  .foot__bar { margin: 0; padding: 0; border: 0; gap: 1mm 6mm; font-size: 9pt; }
  .foot__print { display: block; order: 4; }
}

/* Typografie: vyhýbat se krátkému poslednímu řádku odstavce */
p, li, figcaption, blockquote { text-wrap: pretty; }

/* ---------------------------------------------------------------- Zvětšení fotografií (lightbox) */
.zoomlink { position: relative; display: block; border-radius: .9rem; cursor: zoom-in; }
.photo--arch .zoomlink { max-width: 26rem; border-radius: 12rem 12rem .9rem .9rem; }
.zoomlink:focus-visible { outline: 3px solid var(--ochre-ink); outline-offset: 3px; }

/* Vodoznak vlevo dole: logo na vlastních fotkách, text Zdroj na cizích. Leží uvnitř rámečku fotky. */
.wm { position: absolute; z-index: 1; pointer-events: none; }
.wm--logo { left: .7rem; bottom: .7rem; width: 2.3rem; height: 2.3rem; color: #fff; opacity: .62; filter: drop-shadow(0 0 .2rem rgba(0, 0, 0, .5)); }
.wm--logo svg { display: block; width: 100%; height: 100%; }
.wm--credit { left: .7rem; bottom: .7rem; max-width: calc(100% - 4.6rem); padding: .25rem .65rem; border-radius: 99rem; background: rgba(8, 15, 13, .64); color: #fff; font: 600 .78rem/1.25 var(--body); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__frame { position: relative; }
.lb__frame .wm--logo { left: 1.45rem; bottom: 1.45rem; width: 3.2rem; height: 3.2rem; }
.lb__frame .wm--credit { left: 1.45rem; bottom: 1.45rem; font-size: .95rem; padding: .3rem .8rem; max-width: calc(100% - 2.9rem); }
.zoomlink__ico {
  position: absolute; right: .7rem; bottom: .7rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; background: rgba(8, 15, 13, .62); border: 1px solid rgba(255, 255, 255, .4); color: #fff;
  transition: background-color .15s, transform .15s;
}
.zoomlink:hover .zoomlink__ico { background: rgba(8, 15, 13, .82); transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .zoomlink__ico { transition: none; } .zoomlink:hover .zoomlink__ico { transform: none; } }

html.lb-open { overflow: hidden; }
.lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 15, 13, .95); color: #fff; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(8, 15, 13, .95); }
.lb__fig { margin: 0; display: grid; gap: .8rem; justify-items: center; max-width: 100%; padding: 4rem 1rem 1.25rem; }
.lb__frame {
  /* pasparta: teplá slonovinová, jemný stín a tenká linka kolem fotky */
  padding: .65rem; background: #f6f1e7; border-radius: .4rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 1.4rem 3rem -.8rem rgba(0, 0, 0, .7);
}
.lb__fig img {
  display: block; width: auto; height: auto; max-width: min(calc(100vw - 2rem - 1.3rem), 1600px); max-height: calc(100svh - 10.5rem - 1.3rem);
  object-fit: contain; background: #0f2f27; outline: 1px solid rgba(23, 69, 58, .45); outline-offset: 0;
}
.lb__fig figcaption { max-width: 60ch; text-align: center; font: 400 1rem/1.4 var(--body); color: #e6efeb; }
.lb__btn {
  position: fixed; z-index: 2; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: rgba(8, 15, 13, .7); color: #fff; cursor: pointer;
}
.lb__btn:hover { background: rgba(255, 255, 255, .2); }
.lb__btn[hidden] { display: none; }
.lb__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lb__close { top: .75rem; right: .75rem; }
.lb__prev, .lb__next { top: 50%; transform: translateY(-50%); }
.lb__prev { left: .75rem; }
.lb__next { right: .75rem; }
@media (max-width: 40rem) { .lb__prev, .lb__next { top: auto; bottom: .9rem; transform: none; } .lb__fig { padding-bottom: 4.5rem; } .lb__fig img { max-height: calc(100svh - 13rem - 1.3rem); } .lb__frame { padding: .45rem; } }
@media print {
  .zoomlink__ico, .lb { display: none !important; }
  .zoomlink { display: block; position: relative; width: fit-content; max-width: 100%; container-type: normal; border-radius: 0; }
  .wm--logo { left: 2mm; bottom: 2mm; width: 8mm; height: 8mm; opacity: .65; filter: drop-shadow(0 0 .5mm rgba(0, 0, 0, .5)); }
  .wm--credit { left: 2mm; bottom: 2mm; padding: .6mm 2mm; font-size: 6.5pt; background: rgba(8, 15, 13, .75); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
