/* Objevte Červenovodsko — struktura a komponenty.
   Barvy, písma a tvarosloví přicházejí z themes.css přes CSS proměnné. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-w); line-height: 1.12; letter-spacing: var(--display-ls); margin: 0; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1220px, 100% - clamp(2rem, 6vw, 6rem)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-mute); }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--primary); color: var(--primary-ink); padding: .8rem 1.2rem;
}
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }

/* ------------------------------------------------------------------ hlavička */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
  backdrop-filter: saturate(1.4) blur(14px);
}
.topbar__in { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; flex: none; }
.brand__logo { height: clamp(30px, 3.4vw, 40px); width: auto; filter: var(--logo-filter); }
.brand__sub {
  font-family: var(--font-display); font-size: .74rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-mute); padding-left: .85rem; border-left: 1px solid var(--line);
}
.topnav { display: flex; gap: 1.6rem; margin-inline-start: auto; }
.topnav a {
  text-decoration: none; font-size: .95rem; font-weight: 500; padding: .35rem 0;
  border-bottom: 2px solid transparent; color: var(--ink-soft);
}
.topnav a:hover { color: var(--ink); }
.topnav a.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.topbar__tools { display: flex; align-items: center; gap: .6rem; }

.routepill {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .45rem .85rem; font-size: .88rem; font-weight: 500; background: var(--surface);
}
.routepill.is-active { border-color: var(--accent); color: var(--accent); }
.routepill__n {
  min-width: 1.5em; text-align: center; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink); font-size: .76rem; padding: .1rem .42rem;
}
.routepill svg { width: 1.05rem; height: 1.05rem; }

.switch { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; background: var(--surface); }
.switch__i { width: 1rem; height: 1rem; margin-inline: .6rem .1rem; color: var(--ink-mute); flex: none; }
.switch button { border: 0; background: none; padding: .42rem .72rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; cursor: pointer; color: var(--ink-mute); }
.switch button.is-on { background: var(--primary); color: var(--primary-ink); }

.burger { display: none; flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); width: 42px; height: 38px; padding: 9px 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.burger span + span { margin-top: 5px; }

/* ------------------------------------------------------------------ tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.35rem; border-radius: var(--r-btn); border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--line { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.btn--line:hover { border-color: var(--primary); color: var(--primary); }
.btn--ghost { background: var(--surface-2); color: var(--ink-soft); }
.btn--ghost:hover { color: var(--ink); }
.btn--danger:hover { color: var(--danger); }
.btn--sm { padding: .45rem .8rem; font-size: .82rem; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn--full { width: 100%; margin-top: .6rem; }
.btn.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Nad barevným hero a nad fotografiemi mají tlačítka vlastní barevnost —
   zelené tlačítko na zeleném podkladu bylo prakticky neviditelné (1,0:1). */
.hero__cta .btn--primary,
.dhero__cta .btn--primary,
.pagehead--cat .btn--primary {
  background: var(--on-dark-btn); color: var(--on-dark-btn-ink); border-color: var(--on-dark-btn);
}
.hero__cta .btn--primary:hover,
.dhero__cta .btn--primary:hover { background: var(--on-dark-btn-hover); border-color: var(--on-dark-btn-hover); }
.hero__cta .btn--line,
.dhero__cta .btn--line {
  background: transparent; color: #fff; border-color: var(--on-dark-line); border-width: 2px;
}
.hero__cta .btn--line:hover,
.dhero__cta .btn--line:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: #fff; }


.iconbtn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-mute);
}
.iconbtn:hover:not(:disabled) { color: var(--ink); border-color: var(--line-strong); }
.iconbtn:disabled { opacity: .32; cursor: default; }
.iconbtn svg { width: 15px; height: 15px; }
.iconbtn--del:hover { color: var(--danger); border-color: var(--danger); }

.chipbtn {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  border: 1.5px solid var(--primary); background: transparent; color: var(--primary);
  border-radius: var(--r-pill); padding: .44rem .85rem; font-size: .82rem; font-weight: 600;
}
.chipbtn:hover { background: var(--primary); color: var(--primary-ink); }
.chipbtn.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chipbtn svg { width: .95em; height: .95em; }

/* ------------------------------------------------------------------- typo */
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--kicker); margin-bottom: 1rem;
}
.kicker__i { width: 1.15rem; height: 1.15rem; }
.h-rule {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 2.8rem 0 1.1rem;
  padding-bottom: .55rem; border-bottom: 1px solid var(--line);
}
.prose p { margin-bottom: 1rem; color: var(--ink-soft); font-size: 1.06rem; }
.prose p:first-child { font-size: 1.18rem; color: var(--ink); line-height: 1.55; }
.sechead { max-width: 62ch; margin-bottom: clamp(1.8rem, 3vw, 2.8rem); }
.sechead h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin-bottom: .7rem; }
.sechead p { color: var(--ink-mute); }
.sec { padding: clamp(3rem, 7vw, 6rem) 0; }
.sec--alt { background: var(--bg-alt); }
.empty { padding: 2.5rem 0; color: var(--ink-mute); }

/* -------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); }
.hero__art {
  position: absolute; inset: 0;
  background-image: var(--texture); background-size: cover; background-position: center;
  opacity: var(--texture-op); mix-blend-mode: var(--texture-blend);
}
.hero__in { position: relative; padding: clamp(2.8rem, 7vw, 6.2rem) 0 clamp(2.4rem, 4.8vw, 4rem); max-width: 46rem; }
.hero .kicker { color: var(--hero-kicker); }
.hero__title { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }
.hero__motto {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: var(--accent); margin-top: .9rem;
}
.hero__lead { margin-top: 1.4rem; font-size: clamp(1.02rem, 1.5vw, 1.17rem); color: var(--hero-lead); max-width: 44rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

/* ------------------------------------------------------------ dlaždice kategorií */
.tiles { display: grid; gap: clamp(.9rem, 1.6vw, 1.3rem); grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.tile {
  position: relative; overflow: hidden; text-decoration: none;
  display: grid; align-content: end; gap: .3rem; min-height: 218px; padding: 1.4rem;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface);
  isolation: isolate; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.tile__bg { position: absolute; inset: 0; z-index: -2; }
.tile__bg img { width: 100%; height: 100%; object-fit: cover; filter: var(--tile-img-filter); transition: transform .5s ease; }
.tile:hover .tile__bg img { transform: scale(1.06); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tile-veil); }
.tile__ico {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--tile-ico-bg); color: var(--tile-ico-ink); margin-bottom: .7rem;
}
.tile__i { width: 22px; height: 22px; }
.tile__name { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.2; color: var(--tile-ink); }
.tile__n { font-size: .84rem; color: var(--tile-ink-soft); }
.tile__go { position: absolute; top: 1.2rem; right: 1.2rem; color: var(--tile-ink-soft); opacity: 0; transform: translateX(-6px); transition: .2s; }
.tile__go svg { width: 20px; height: 20px; }
.tile:hover .tile__go { opacity: 1; transform: none; }

/* ------------------------------------------------------------------- karty */
.cards { display: grid; gap: clamp(1rem, 2vw, 1.6rem); grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.cardlist { display: grid; gap: 1rem; }
.card {
  position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* titulek je hlavní odkaz — jeho klikací plocha pokrývá celou kartu */
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card .chipbtn { position: relative; z-index: 2; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; background-image: var(--texture); background-size: cover; }
.card__phi { width: 34px; height: 34px; color: var(--ink-mute); opacity: .55; }
.card__flag {
  position: absolute; left: .7rem; top: .7rem; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  background: var(--flag-bg); color: var(--flag-ink); padding: .22rem .55rem; border-radius: var(--r-pill); font-weight: 600;
}
.card__body { padding: 1.05rem 1.15rem 1.15rem; display: grid; align-content: start; gap: .45rem; }
.card__cat { display: flex; align-items: center; gap: .4rem; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--kicker); }
.card__cati { width: .95rem; height: .95rem; }
.card__title { font-size: 1.16rem; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__dist { font-size: .8rem; color: var(--ink-mute); }
.card__text { font-size: .93rem; color: var(--ink-mute); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: .55rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.card__more { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.card__arr { width: .95rem; height: .95rem; transition: transform .18s; }
.card:hover .card__arr { transform: translateX(3px); }

/* -------------------------------------------------------------- hlavička stránky */
.pagehead { position: relative; padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(1.6rem, 3vw, 2.4rem); background: var(--bg-alt); border-bottom: 1px solid var(--line); overflow: hidden; }
.pagehead h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
.pagehead__lead { max-width: 58ch; color: var(--ink-mute); margin-top: .9rem; }
.pagehead--cat { color: var(--hero-ink); background: var(--hero-bg); }
.pagehead--cat .kicker { color: var(--hero-kicker); }
.pagehead__bg { position: absolute; inset: 0; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; opacity: var(--pagehead-img-op); filter: var(--pagehead-img-filter); }
/* obsah musí být nad barevným závojem, jinak se text propadne do pozadí */
.pagehead--cat .wrap { position: relative; z-index: 2; }
.pagehead--cat::after { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--pagehead-veil); }
.pagehead--cat h1 { color: #fff; }
.pagehead--cat .back { color: rgba(255, 255, 255, .82); }
.pagehead--cat .back:hover { color: #fff; }
/* width: fit-content drží odkaz na vlastním řádku nad kickerem */
.back { display: flex; width: fit-content; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--ink-mute); margin-bottom: 1.2rem; }
.back:hover { color: var(--accent); }
.back--light { color: rgba(255, 255, 255, .82); }
.back--light:hover { color: #fff; }
.back__i { width: 1rem; height: 1rem; transform: rotate(180deg); }

.search { position: relative; display: block; max-width: 34rem; margin-top: 1.5rem; }
.search__i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.15rem; height: 1.15rem; color: var(--ink-mute); }
.search input, .input {
  width: 100%; padding: .82rem 1rem .82rem 2.9rem; font: inherit; font-size: .97rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--surface); color: var(--ink);
}
.input { padding-left: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  border-radius: var(--r-pill); padding: .45rem .9rem; font-size: .86rem; font-weight: 500;
}
.chip b { font-size: .74rem; color: var(--ink-mute); font-weight: 600; }
.chip__i { width: 1rem; height: 1rem; }
.chip:hover { border-color: var(--primary); }
.chip.is-on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip.is-on b { color: inherit; opacity: .75; }

/* ------------------------------------------------------------------- mapa */
.mapbox { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-2); }
.mapbox--home { height: clamp(360px, 52vh, 560px); }
.mapbox--wide { height: clamp(300px, 44vh, 460px); }
.mapbox--tall { height: clamp(380px, 62vh, 680px); }
.mapbox--mini { height: 240px; }
.leaflet-container { font: inherit; background: var(--surface-2); }
.leaflet-tile-pane { filter: var(--tiles-filter); }
.leaflet-control-attribution { background: var(--surface) !important; color: var(--ink-mute) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--ink-soft) !important; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }

.pinwrap { background: none !important; border: 0 !important; }
.pin {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg); background: var(--pin-bg); color: var(--pin-ink);
  box-shadow: 0 3px 9px rgba(0, 0, 0, .3); border: 1.5px solid var(--pin-line);
}
.pin__i { width: 17px; height: 17px; transform: rotate(45deg); }
.pin.is-active { background: var(--accent); color: var(--accent-ink); }
.pin--rozhledny { background: var(--c-rozhledny); }
.pin--pamatky { background: var(--c-pamatky); }
.pin--muzea { background: var(--c-muzea); }
.pin--priroda { background: var(--c-priroda); }
.pin--stezky { background: var(--c-stezky); }
.pin--cyklo { background: var(--c-cyklo); }
.pin--hriste { background: var(--c-hriste); }
.pin--koupaliste { background: var(--c-koupaliste); }
.pin--atrakce { background: var(--c-atrakce); }
.pin--sportoviste { background: var(--c-sportoviste); color: #083028; }

.pop .leaflet-popup-content-wrapper { background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: 0; overflow: hidden; box-shadow: var(--shadow-lg); }
.pop .leaflet-popup-content { margin: 0; width: 262px !important; }
.pop .leaflet-popup-tip { background: var(--surface); }
.pop__media { display: block; height: 118px; background: var(--surface-2); }
.pop__media img { width: 100%; height: 100%; object-fit: cover; }
.pop__ph { display: grid; place-items: center; height: 100%; background-image: var(--texture); background-size: cover; }
.pop__phi { width: 28px; height: 28px; color: var(--ink-mute); }
.pop__body { padding: .8rem .9rem .9rem; }
.pop__cat { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--kicker); }
.pop__title { font-size: 1.02rem; margin: .25rem 0 .35rem; }
.pop__text { font-size: .82rem; color: var(--ink-mute); margin-bottom: .7rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pop__title a { text-decoration: none; }
.pop__actions { display: flex; gap: .4rem; }
.routeline { stroke: var(--accent); }
.startdot { stroke: var(--primary); fill: var(--surface); stroke-width: 3; }

/* ---------------------------------- procházení: mapa nahoře, karty pod ní */
.browse { padding: clamp(1.8rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.browse__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.4rem; flex-wrap: wrap;
  margin: clamp(1.4rem, 2.6vw, 2rem) 0 1.4rem; padding: 1rem 1.15rem;
  background: var(--surface-2); border-radius: var(--r-md);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.browse__label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-inline-end: -.5rem; }
.browse__filters { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.browse__count {
  display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap;
  font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-mute);
}
.browse__page { color: var(--ink-soft); font-weight: 600; }

/* přepínač státu — Vše / Česko / Polsko */
.segm { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-btn); overflow: hidden; background: var(--surface); }
.segm { background: var(--surface); box-shadow: var(--shadow); }
.segm__b {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  border: 0; border-inline-start: 1px solid var(--line); background: none; color: var(--ink-soft);
  padding: .62rem 1.15rem; font-size: .92rem; font-weight: 600;
}
.segm__b:first-child { border-inline-start: 0; }
.segm__b b { font-size: .74rem; font-weight: 700; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.segm__b:hover:not(:disabled):not(.is-on) { color: var(--primary); }
.segm__b:disabled { opacity: .38; cursor: default; }
.segm__b.is-on { background: var(--primary); color: var(--primary-ink); }
.segm__b.is-on b { color: inherit; opacity: .75; }

/* ------------------------------------------------------------- stránkování */
.pagin { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.pagin__b {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  border-radius: var(--r-btn); padding: .55rem .9rem; font-size: .85rem; font-weight: 600;
}
.pagin__b:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagin__b:disabled { opacity: .34; cursor: default; }
.pagin__i { width: 1rem; height: 1rem; }
.pagin__b--back .pagin__i { transform: rotate(180deg); }
.pagin__n { display: flex; align-items: center; gap: .3rem; margin-inline: .4rem; }
.pagin__p {
  min-width: 40px; height: 40px; cursor: pointer; padding: 0 .5rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  border-radius: var(--r-btn); font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pagin__p:hover { border-color: var(--primary); color: var(--primary); }
.pagin__p.is-on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.pagin__gap { color: var(--ink-mute); padding: 0 .2rem; }
/* karty v mřížce jsou o něco úspornější než v sekci „V okolí“ */
.cards--browse { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 1.6vw, 1.4rem); }
.cards--browse .card__media { aspect-ratio: 16 / 10; }
.cards--browse .card__body { padding: .9rem 1rem 1rem; gap: .35rem; }
.cards--browse .card__title { font-size: 1.06rem; }
.cards--browse .card__text {
  font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cards--browse .card__foot { margin-top: .35rem; padding-top: .7rem; }

/* ------------------------------------------------------------ detail místa */
.dhero { position: relative; background: var(--hero-bg); color: var(--hero-ink); overflow: hidden; }
.dhero__img { position: absolute; inset: 0; }
.dhero__img img { width: 100%; height: 100%; object-fit: cover; }
.dhero::after { content: ''; position: absolute; inset: 0; background: var(--dhero-veil); }
.dhero--nophoto { background-image: var(--texture); background-size: cover; }
.dhero__in { position: relative; z-index: 2; padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.2rem, 5vw, 3.4rem); min-height: clamp(380px, 52vh, 540px); display: flex; flex-direction: column; justify-content: flex-end; }
.dhero__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tag {
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
  background: var(--tag-bg); color: var(--tag-ink); border: 1px solid var(--tag-line);
  border-radius: var(--r-pill); padding: .35rem .8rem; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}
.tag:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tag--plain:hover, .tag--draft:hover { background: var(--tag-bg); color: var(--tag-ink); border-color: var(--tag-line); }
.tag--draft { background: var(--warn); color: var(--warn-ink); border-color: transparent; }
.tag__i { width: .95rem; height: .95rem; }
.dhero__title { font-size: clamp(2.1rem, 5.6vw, 3.9rem); max-width: 20ch; }
.dhero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

.dgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .9fr); gap: clamp(1.6rem, 4vw, 3.4rem); padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(2.4rem, 5vw, 4rem); align-items: start; }
.dmain .h-rule:first-child { margin-top: 0; }
.dside { position: sticky; top: calc(var(--header-h) + 1.4rem); display: grid; gap: 1rem; }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 1.3rem; }
.panel__h { font-size: 1.05rem; margin-bottom: .9rem; }
.panel--map { padding: 1.3rem 1.3rem 1.3rem; }
.facts { display: grid; gap: .85rem; }
.facts > div { display: grid; gap: .18rem; padding-bottom: .85rem; border-bottom: 1px dashed var(--line); }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mute); }
.facts dd { font-size: .95rem; word-break: break-word; }
.facts__gps { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-variant-numeric: tabular-nums; font-size: .88rem; }

/* -------------------------------------------------------------- fotogalerie */
.gal { display: grid; gap: .7rem; }
.gal__stage { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gal__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.gal__slide.is-on { opacity: 1; pointer-events: auto; }
.gal__slide img { width: 100%; height: 100%; object-fit: cover; }
.gal__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--glass); color: var(--glass-ink); backdrop-filter: blur(8px);
}
.gal__nav:hover { background: var(--accent); color: var(--accent-ink); }
.gal__nav svg { width: 20px; height: 20px; }
.gal__nav--prev { left: .8rem; }
.gal__nav--prev svg { transform: rotate(180deg); }
.gal__nav--next { right: .8rem; }
.gal__count {
  position: absolute; right: .8rem; bottom: .8rem; z-index: 3; font-size: .78rem; letter-spacing: .06em;
  background: var(--glass); color: var(--glass-ink); backdrop-filter: blur(8px);
  padding: .3rem .7rem; border-radius: var(--r-pill); font-variant-numeric: tabular-nums;
}
.gal__thumbs { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.gal__thumb { flex: none; width: 92px; aspect-ratio: 3 / 2; padding: 0; cursor: pointer; overflow: hidden; border-radius: var(--r-sm); border: 2px solid transparent; background: var(--surface-2); opacity: .62; transition: .18s; }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumb:hover { opacity: 1; }
.gal__thumb.is-on { opacity: 1; border-color: var(--accent); }

/* ---------------------------------------------------------------- stránkování */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  padding-block: clamp(3rem, 6vw, 5rem); }
.pager__a { display: grid; gap: .2rem; text-decoration: none; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.pager__a:hover { border-color: var(--accent); }
.pager__a span { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mute); }
.pager__a b { font-family: var(--font-display); font-weight: var(--display-w); font-size: 1.05rem; }
.pager__a--next { text-align: right; }

/* --------------------------------------------------------------------- CTA */
.cta { background: var(--cta-bg); color: var(--cta-ink); padding: clamp(2.4rem, 5vw, 4rem) 0; }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta p { color: var(--cta-lead); margin-top: .5rem; max-width: 48ch; }
.cta .btn--primary { background: var(--cta-btn); color: var(--cta-btn-ink); }
.cta .btn--primary:hover { background: var(--cta-btn-hover); }

/* ---------------------------------------------------------------- plánovač */
.route { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(1.4rem, 3vw, 2.4rem); padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); align-items: start; }
.route__side { position: sticky; top: calc(var(--header-h) + 1.2rem); }
.route__side .panel__h:not(:first-child) { margin-top: 1.6rem; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.mode { display: grid; gap: .35rem; justify-items: center; cursor: pointer; padding: .8rem .4rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.mode:hover { border-color: var(--primary); }
.mode.is-on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.mode__i { width: 1.4rem; height: 1.4rem; }
.starts { display: grid; gap: .5rem; }
.radio { display: flex; align-items: center; gap: .6rem; font-size: .93rem; cursor: pointer; }
.radio input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.panel__sum { margin: 1.5rem 0 1rem; padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--surface-2); }
.sum__n { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.sum__l { font-size: .8rem; color: var(--ink-mute); margin-top: .35rem; }
.hint { font-size: .78rem; color: var(--ink-mute); margin-top: .5rem; line-height: 1.45; }
.hint--warn { color: var(--danger); }
.panel__row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1.1rem; }
.panel__row .btn { padding: .6rem .7rem; font-size: .82rem; }

.stops { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); }
.stop { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.stop--start { background: var(--surface-2); border-style: dashed; }
.stop__n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stop__n svg { width: 15px; height: 15px; }
.stop__img { flex: none; width: 62px; height: 44px; object-fit: cover; border-radius: var(--r-sm); }
.stop__body { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.stop__body b { font-size: .98rem; font-weight: 600; }
.stop__body b a { text-decoration: none; }
.stop__body b a:hover { color: var(--accent); }
.stop__body span { font-size: .8rem; color: var(--ink-mute); }
.stop__tools { display: flex; gap: .3rem; flex: none; }

.blank { text-align: center; max-width: 44ch; margin-inline: auto; padding: clamp(2.5rem, 6vw, 5rem) 0; display: grid; gap: 1rem; justify-items: center; }
.blank__i { width: 54px; height: 54px; color: var(--ink-mute); opacity: .5; }
.blank h1, .blank h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.blank p { color: var(--ink-mute); }

/* ------------------------------------------------------------------ patička */
.foot { background: var(--foot-bg); color: var(--foot-ink); padding: clamp(2.6rem, 5vw, 4.5rem) 0 1.6rem; border-top: 1px solid var(--foot-line); }
.foot__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(1.8rem, 4vw, 3.5rem); }
.foot__logo { height: 42px; width: auto; filter: var(--foot-logo-filter); }
.foot__motto { font-family: var(--font-display); margin-top: 1rem; color: var(--foot-accent); font-size: 1.05rem; }
.foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.8rem; }
.foot__cols h3 { font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; color: var(--foot-head); margin-bottom: .9rem; font-family: var(--font-body); font-weight: 600; }
.foot__cols li { font-size: .89rem; margin-bottom: .5rem; color: var(--foot-soft); }
.foot__cols a { text-decoration: none; }
.foot__cols a:hover { color: var(--foot-accent); }
/* Dotace: logo Interreg Česko – Polsko + název projektu. Logo je jednobarevná
   bílá varianta, proto se na tmavé patičce nepřebarvuje. */
.foot__eu { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 3.2rem;
  margin-top: clamp(2.2rem, 4vw, 3.4rem); }
.foot__eulogo { width: clamp(230px, 24vw, 290px); height: auto; }
.foot__project { font-size: .89rem; color: var(--foot-soft); }

.foot__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; justify-content: space-between;
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.2rem; border-top: 1px solid var(--foot-line);
  font-size: .78rem; color: var(--foot-soft); }

/* ------------------------------------------------------------------ hlášky */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; z-index: 300; transform: translate(-50%, 130%);
  background: var(--primary); color: var(--primary-ink); padding: .8rem 1.35rem;
  border-radius: var(--r-pill); font-size: .92rem; font-weight: 500; box-shadow: var(--shadow-lg);
  transition: transform .28s cubic-bezier(.2, .8, .3, 1); max-width: min(92vw, 30rem); text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); }
.toast--warn { background: var(--danger); color: #fff; }

/* ------------------------------------------------------------------ mobil */
@media (max-width: 1080px) {
  /* minmax(0,…) brání tomu, aby min-content obsahu roztáhl sloupec přes šířku okna */
  .route, .dgrid { grid-template-columns: minmax(0, 1fr); }
  .mapbox--tall { height: clamp(340px, 48vh, 460px); }
  .route > *, .dgrid > * { min-width: 0; }
  .dside, .route__side { position: static; }
  .cards--browse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mapbox--wide { height: clamp(280px, 40vh, 380px); }
}
@media (max-width: 880px) {
  body { font-size: 16px; }
  .brand__sub { display: none; }
  .burger { display: block; }
  .topnav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: .6rem 1.2rem 1.2rem;
    box-shadow: var(--shadow-lg); display: none;
  }
  body.nav-open .topnav { display: flex; }
  .topnav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .topbar__in { gap: .5rem; }
  .topbar__tools { margin-inline-start: auto; gap: .4rem; }
  .topbar__tools > * { flex: none; }
  .routepill span { display: none; }
  .routepill { padding: .45rem .6rem; }
  .switch button { padding: .42rem .55rem; }
  .cards--browse { grid-template-columns: minmax(0, 1fr); }
  .pagin__b span { display: none; }
  .pagin__b { padding: .55rem .7rem; }
  .pagin__n { margin-inline: .2rem; }
  .pagin__p { min-width: 36px; height: 36px; }
  .pager { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .panel__row { grid-template-columns: 1fr; }
  .stop { gap: .7rem; }
  .stop__body { flex-basis: 100%; order: 3; }
  .stop__tools { margin-inline-start: auto; }
}

/* -------------------------------------------------------------------- tisk */
@media print {
  .topbar, .foot, .route__side .btn, .stop__tools, .mapbox, .toast, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .route { grid-template-columns: 1fr; }
  .panel { border: 1px solid #999; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ═══════════════════════════ úpravy po testování s uživateli (srpen 2026) */

/* Lightbox — kliknutí na fotku ji otevře přes celou obrazovku (2.1) */
.gal__slide { cursor: zoom-in; }
.gal__zoom {
  position: absolute; left: .8rem; bottom: .8rem; z-index: 3; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--glass); color: var(--glass-ink);
  backdrop-filter: blur(8px); pointer-events: none;
}
.gal__zoom svg { width: 16px; height: 16px; }
body.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 400; display: grid;
  grid-template-columns: auto 1fr auto; grid-template-rows: 1fr auto;
  align-items: center; gap: .5rem; padding: clamp(.6rem, 2vw, 1.4rem);
  background: #06231C;
}
.lb__stage {
  grid-area: 1 / 1 / 2 / 4; margin: 0; min-height: 0; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lb__stage img { max-width: 100%; max-height: calc(100vh - 11rem); object-fit: contain; border-radius: var(--r-sm); }
.lb__cap { color: rgba(255, 255, 255, .85); font-size: .84rem; margin-top: .8rem; text-align: center; flex: none; }
.lb__nav, .lb__x {
  z-index: 2; cursor: pointer; border: 0; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff;
}
.lb__nav:hover, .lb__x:hover { background: rgba(255, 255, 255, .32); }
.lb__nav svg, .lb__x svg { width: 22px; height: 22px; }
.lb__nav--prev { grid-area: 1 / 1 / 2 / 2; justify-self: start; }
.lb__nav--prev svg { transform: rotate(180deg); }
.lb__nav--next { grid-area: 1 / 3 / 2 / 4; justify-self: end; }
.lb__x { position: absolute; top: 1rem; right: 1rem; }
.lb__thumbs { grid-area: 2 / 1 / 3 / 4; display: flex; gap: .4rem; overflow-x: auto; justify-content: center; padding: .2rem; }
.lb__thumb { flex: none; width: 74px; aspect-ratio: 3/2; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--r-sm); border: 2px solid transparent; opacity: .5; background: none; }
.lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb__thumb.is-on, .lb__thumb:hover { opacity: 1; border-color: #fff; }

/* „Jsem tady“ nad mapou (2.3) */
.mapctl { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.mapctl__hint { font-size: .85rem; color: var(--ink-mute); }
.mapctl__on { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--primary); }
.mapctl__on svg { width: 1rem; height: 1rem; }
body.picking .mapbox { cursor: crosshair; outline: 3px solid var(--accent); outline-offset: 2px; }
.pin--here { background: var(--accent); }

/* Řazení a filtry */
.sortsel {
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--surface); padding: .5rem .7rem;
}
.browse__filters--end { margin-inline-start: auto; }
.segm__i { width: 1rem; height: 1rem; }
.segm--full { display: flex; width: 100%; margin-bottom: .8rem; }
.segm--full .segm__b { flex: 1; justify-content: center; }

/* Vzdálenost a dostupnost na kartě (2.2, 2.3) */
.card__dist2 {
  position: absolute; right: .7rem; top: .7rem; font-size: .72rem; font-weight: 700;
  background: var(--flag-bg); color: var(--flag-ink); padding: .22rem .55rem; border-radius: var(--r-pill);
}
/* Nad kartou leží klikací vrstva odkazu (.card__title a::after, z-index 1),
   ikony proto musí být nad ní, jinak na ně kurzor vůbec nedosáhne. */
.card__acc { display: flex; gap: .3rem; position: relative; z-index: 2; width: fit-content; }
.accicon {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-soft);
}
.accicon svg { width: 14px; height: 14px; }
.accicon--rain, .accicon--barrier { background: var(--primary); color: var(--primary-ink); }

/* Dostupnost v praktických informacích */
.facts__acc { display: flex; flex-wrap: wrap; gap: .4rem; }
.acctag {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600;
  background: var(--surface-2); color: var(--ink-soft); padding: .28rem .6rem; border-radius: var(--r-pill);
}
.acctag svg { width: .95em; height: .95em; }
.acctag--rain, .acctag--barrier { background: var(--primary); color: var(--primary-ink); }
.facts__note { flex-basis: 100%; font-size: .74rem; color: var(--ink-mute); line-height: 1.4; margin-top: .2rem; }

/* Co je poblíž (2.6) */
.nearby { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .9rem; font-size: .85rem; }
.nearby span { color: var(--ink-mute); }
.nearby a { font-weight: 600; color: var(--primary); text-underline-offset: 3px; }

/* Lišta po uložení místa (2.4) */
.savedbar {
  position: fixed; left: 50%; bottom: 1.4rem; z-index: 300; transform: translate(-50%, 160%);
  display: flex; align-items: center; gap: .8rem; max-width: min(94vw, 34rem);
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); padding: .6rem .7rem .6rem 1.1rem; box-shadow: var(--shadow-lg);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1);
}
.savedbar.is-on { transform: translate(-50%, 0); }
.savedbar__i { width: 1.2rem; height: 1.2rem; color: var(--primary); flex: none; }
.savedbar span { font-size: .9rem; font-weight: 500; }
.savedbar__x { border: 0; background: none; cursor: pointer; color: var(--ink-mute); display: grid; place-items: center; padding: .3rem; }
.savedbar__x svg { width: 16px; height: 16px; }
.panel__lead { font-size: .85rem; color: var(--ink-mute); margin-bottom: 1rem; }
.panel__sub { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-mute); margin: 1.3rem 0 .6rem; }

@media (max-width: 880px) {
  /* pět filtrů dostupnosti se na úzkém displeji nevejde do jednoho pásu */
  .browse__filters, .browse__filters--end { margin-inline-start: 0; width: 100%; min-width: 0; }
  .segm { flex-wrap: wrap; width: 100%; }
  .segm__b { flex: 1 0 auto; justify-content: center; padding-inline: .8rem; }
  .segm__b:nth-child(n+2) { border-inline-start: 1px solid var(--line); }
  .mapctl { gap: .5rem; }
  .mapctl__sep { display: none; }
  .mapctl__lbl { width: 100%; }
  .segm--sm { width: auto; }
  .lb__thumbs { justify-content: flex-start; }
  .lb__stage img { max-height: calc(100vh - 13rem); }
}

/* Povinné logo Mapy.com nad mapou (min. 30 px, proklik na mapy.com) */
.mapylogo { display: block; line-height: 0; padding: 4px 6px; background: rgba(255, 255, 255, .85); border-radius: var(--r-sm); }
.mapylogo img { height: 30px; width: auto; display: block; }

/* ═══════════════════════════ revize klienta (srpen 2026) */

/* CTA: červená dokud akce není potvrzená, zelená po potvrzení */
.chipbtn { border-color: var(--accent); color: var(--accent); }
.chipbtn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chipbtn.is-on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chipbtn.is-on:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.is-on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.dhero__cta .btn--primary:not(.is-on) { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dhero__cta .btn--primary:not(.is-on):hover { background: var(--accent-dark); border-color: var(--accent-dark); }


/* Vzdálenost: dokud je jen vzdušná čára, je vizuálně tlumená */
.card__dist2 {
  display: inline-flex; align-items: center; gap: .3rem; font-variant-numeric: tabular-nums;
  position: relative; z-index: 2; cursor: help;
}
.card__distico { width: .9rem; height: .9rem; opacity: .8; }
/* stejná bublina jako u ikon dostupnosti, jen zarovnaná doprava */
.card__dist2::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0;
  transform: translateY(-4px); z-index: 20; width: max-content; max-width: 15rem;
  background: var(--ink); color: var(--surface); font-size: .74rem; font-weight: 500;
  line-height: 1.3; padding: .45rem .6rem; border-radius: var(--r-sm); white-space: normal;
  opacity: 0; pointer-events: none; transition: opacity .12s ease, transform .12s ease;
  box-shadow: var(--shadow); text-align: left; letter-spacing: 0;
}
.card__dist2:hover::after, .card__dist2:focus-visible::after { opacity: 1; transform: translateY(0); }
.card__dist2.is-real { background: var(--primary); color: var(--primary-ink); }
.panel__sum.is-real .sum__n { color: var(--primary); }

/* GPS u mapových tlačítek */
.gpsrow { display: grid; gap: .2rem; margin: 1.1rem 0 .3rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.gpsrow dt { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mute); }
.gpsrow dd { display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  font-size: .88rem; font-variant-numeric: tabular-nums; margin: 0; }

/* Přepínač dopravy u mapy */
.mapctl__sep { width: 1px; height: 22px; background: var(--line-strong); }
.mapctl__lbl { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.segm--sm .segm__b { padding: .42rem .7rem; }

/* Okamžitá nápověda u ikon dostupnosti */
.accicon { position: relative; cursor: help; }
.accicon::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px); z-index: 20;
  background: var(--ink); color: var(--surface); font-size: .76rem; font-weight: 600;
  line-height: 1.2; padding: .4rem .6rem; border-radius: var(--r-sm); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .12s ease, transform .12s ease;
  box-shadow: var(--shadow);
}
.accicon::before {
  content: ''; position: absolute; bottom: calc(100% + 3px); left: 50%;
  transform: translateX(-50%); z-index: 20; border: 5px solid transparent;
  border-top-color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .12s ease;
}
.accicon:hover, .accicon:focus-visible { background: var(--primary); color: var(--primary-ink); }
.accicon:hover::after, .accicon:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.accicon:hover::before, .accicon:focus-visible::before { opacity: 1; }
.accicon--rain:hover, .accicon--rain:focus-visible,
.accicon--barrier:hover, .accicon--barrier:focus-visible { background: var(--primary-hover); }
/* u prvního a posledního nesmí bublina utéct z karty */
.card__acc .accicon:first-child::after { left: 0; transform: translateX(0) translateY(4px); }
.card__acc .accicon:first-child:hover::after,
.card__acc .accicon:first-child:focus-visible::after { transform: translateX(0) translateY(0); }

/* CTA pod fotogalerií — vycentrované, stejná barevná logika jako ostatní
   ukládací tlačítka: vínová dokud není uloženo, zelená po potvrzení */
.savecta { display: flex; justify-content: center; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.savecta .btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); min-width: 16rem; }
.savecta .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.savecta .btn.is-on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.savecta .btn.is-on:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
@media (max-width: 880px) { .savecta .btn { width: 100%; min-width: 0; } }

/* Uložené tlačítko je zelené i nad fotografií. Samotná zelená by se s tmavým
   závojem slila (1,8:1), proto ji vymezuje bílý obrys — hranice tlačítka má
   vůči pozadí přes 10:1 a bílý text na zelené 7,83:1. */
.dhero__cta .btn.is-on {
  background: var(--primary); color: #fff;
  border-color: rgba(255, 255, 255, .92); border-width: 2px;
}
.dhero__cta .btn.is-on:hover { background: var(--primary-hover); border-color: #fff; }
