/* Zápisky z cest: podstránky ve stejném tmavém vzhledu jako úvodní stránka (barvy a písma bere ze styl.css). */

.nav-list a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.clanek {
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  padding-top: clamp(1.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.clanek-hlava { padding-bottom: 0.5rem; }
.drobecky { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.95rem; }
.drobecky a { color: var(--text-soft); text-underline-offset: 4px; }
.drobecky a:hover { color: var(--accent); }
.clanek .section-title { font-size: clamp(2.6rem, 8vw, 5rem); }

/* text */
.den-text p { max-width: 72ch; color: var(--text-soft); }
.den-text a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 4px; }
.den-text a:hover { color: var(--accent); }
.perex p:first-child { color: var(--text); }
.clanek-uvod { display: grid; gap: 1.5rem; }

/* fotky: malé náhledy, po kliknutí se velká fotka otevře v novém okně */
.galerie {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 0.55rem;
  align-content: start;
}
.galerie a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.galerie img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.2s; }
.galerie a:hover img { transform: scale(1.04); }
.galerie a:hover { border-color: var(--accent); }
.clanek-uvod .galerie { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }

.galerie a { cursor: zoom-in; }

/* velká fotka přes stránku (obsluhuje galerie.js) */
.foto-otevrene { overflow: hidden; }
.foto-okno {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  background: rgba(3, 5, 10, 0.94);
}
.foto-okno[hidden] { display: none; }
.foto-ram { margin: 0; height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 0.5rem; }
.foto-ram img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.foto-ram figcaption { color: var(--text-soft); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.foto-okno button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(20, 27, 46, 0.9);
  color: var(--text);
  font: 400 1.9rem/1 var(--font-display);
  cursor: pointer;
}
.foto-okno button:hover { border-color: var(--accent); color: var(--accent); }
.foto-zavrit { position: absolute; top: clamp(0.5rem, 2vw, 1.25rem); right: clamp(0.5rem, 2vw, 1.25rem); z-index: 1; }
@media (max-width: 620px) {
  .foto-okno { grid-template-columns: minmax(0, 1fr); padding: 0.5rem; }
  .foto-sipka { position: absolute; bottom: 0.75rem; z-index: 1; }
  .foto-zpet { left: 0.75rem; }
  .foto-dal { right: 0.75rem; }
  .foto-ram { padding-bottom: 3.6rem; }
}

/* obsah zápisků */
.obsah-cesty h2 { margin: 0 0 1rem; color: var(--text); font-family: var(--font-display); font-size: 1.3rem; }
.obsah-cesty ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 0 1.5rem;
}
.obsah-cesty a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.5rem;
  min-height: 44px;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.obsah-cesty a span { color: var(--muted); font-size: 0.86rem; font-weight: 500; white-space: nowrap; }
.obsah-cesty a:hover { color: var(--accent); }

/* jeden den nebo jedno místo */
.den { scroll-margin-top: 90px; }
.den-hlava { margin-bottom: 1.25rem; }
.den-stitek {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.den h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.den-datum { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.95rem; }
.den-telo { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .den.ma-fotky .den-telo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
  /* krátká galerie jede při čtení dlouhého textu s sebou */
  .den.ma-fotky .den-telo > .galerie { position: sticky; top: 96px; }
  /* dny bez fotek a úvod: text ve dvou sloupcích přes celou šířku */
  .den:not(.ma-fotky) .den-text, .perex { columns: 2; column-gap: 2.5rem; }
  .den:not(.ma-fotky) .den-text p, .perex p { max-width: none; }
}
.den-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.den-info h3 {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.den-info ul { list-style: none; margin: 0; padding: 0; }
.den-info li { padding: 0.15rem 0; color: var(--text); font-weight: 600; line-height: 1.4; }
.den-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 32px;
  color: var(--text);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.den-info a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.clanek-dalsi { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-top: 1rem; }

/* rozcestník Takto cestuji */
.mista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
}
@media (min-width: 760px) { .mista { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.misto {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--tile);
  color: var(--text);
  text-decoration: none;
}
.misto img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; transition: transform 0.25s; }
a.misto:hover img { transform: scale(1.04); }
a.misto:hover { border-color: var(--accent); }
.misto-popis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 2.4rem 1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 13, 0.92));
}
.misto-popis strong { font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.misto-popis > span { color: var(--accent); font-size: 0.92rem; font-weight: 600; }

/* pozadí se na krátké stránce neopakuje */
html { background: var(--bg); }
body { background-repeat: no-repeat; }
