/* Vodácký průvodce: kilometráž a mapa jezů, na obrazovce i jako PDF/tisk (A4). */
.guide-page { background: var(--bg); }
.g-bar { position: sticky; top: 0; z-index: 2; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 12px max(16px, env(safe-area-inset-left, 0px)); background: rgba(243, 243, 243, 0.94); backdrop-filter: blur(8px); }
.g-bar label { font-weight: 800; }
.g-bar select { border: 0; border-radius: 12px; padding: 12px 14px; font: 700 15px 'Nunito Sans', sans-serif; box-shadow: inset 0 0 0 1.5px var(--line-strong); background: var(--white); max-width: 100%; }
.g-hint { font-size: 13px; color: var(--muted); }
.g-sheet { max-width: 860px; margin: 8px auto 48px; background: var(--white); border-radius: 22px; padding: 44px 48px; box-shadow: var(--shadow); }
.g-loading { color: var(--muted); }
.g-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.g-over { margin: 0 0 4px; font-weight: 800; color: var(--brand); }
.g-head h1 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.035em; }
.g-logo { width: 120px; height: auto; flex: none; }
.g-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.g-facts li { background: var(--brand-tint); color: var(--brand-dark); border-radius: 99px; padding: 6px 14px; font-weight: 700; }
.g-facts li b { font-weight: 900; }
.g-facts li.danger { background: var(--red-tint); color: var(--red); }

.g-map { margin: 22px 0 10px; border-radius: 16px; overflow: hidden; }
.river-map { width: 100%; height: auto; display: block; }
.m-bg { fill: #eef4ea; }
.m-river { fill: none; stroke: #9fcbe6; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.m-route-halo { fill: none; stroke: #ffffff; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.m-route { fill: none; stroke: #0b72d9; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.m-weir circle { fill: #d99a00; stroke: #fff; stroke-width: 3; }
.m-weir.danger circle { fill: #c4321c; }
.m-lead { stroke: #121712; stroke-width: 1.3; }
.m-weir-dot { fill: #121712; stroke: #fff; stroke-width: 2; }
.m-weir text { fill: #fff; font: 900 12px 'Nunito Sans', sans-serif; text-anchor: middle; }
.m-spot { fill: #fff; stroke: #121712; stroke-width: 2; }
.m-place { stroke: #fff; stroke-width: 3; }
.m-place.start { fill: #0b72d9; } .m-place.end { fill: #121712; }
.m-tie { stroke: #121712; stroke-width: 1.5; stroke-dasharray: 3 4; }
.m-label { font: 900 16px 'Nunito Sans', sans-serif; paint-order: stroke; stroke: #eef4ea; stroke-width: 5px; }
.m-label.start { fill: #075bb0; } .m-label.end { fill: #121712; }
.m-other { fill: #fff; stroke: #5d655d; stroke-width: 2; }
.m-other-label { font: 700 13px 'Nunito Sans', sans-serif; fill: #5d655d; paint-order: stroke; stroke: #eef4ea; stroke-width: 4px; }
.m-scale { stroke: #121712; stroke-width: 3; }
.m-scale-label, .m-north-label { font: 800 13px 'Nunito Sans', sans-serif; fill: #121712; }
.m-north { fill: #121712; } .m-north-label { text-anchor: middle; }

.g-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.g-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; }
.lg-weir { background: #d99a00; } .lg-weir.danger { background: #c4321c; }
.lg-spot { background: #fff; box-shadow: inset 0 0 0 2px #121712; }
.lg-route { background: #0b72d9; border-radius: 3px !important; height: 6px !important; vertical-align: 2px !important; }

.g-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; margin-top: 28px; }
.g-cols h2 { font-size: 20px; margin: 0 0 6px; }
.g-muted { color: var(--muted); font-size: 13.5px; }
.g-side { background: var(--bg); border-radius: 16px; padding: 18px 20px; align-self: start; }
.g-side h2 + * { margin-top: 0; }
.g-side h2:not(:first-child) { margin-top: 18px; }
.g-rules { margin: 0; padding-left: 1.1em; font-size: 14px; display: grid; gap: 6px; }
.g-foot { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* kilometráž jako osa řeky */
.kt { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.kt::before { content: ''; position: absolute; left: 84px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: #9fcbe6; }
.kt-row { display: grid; grid-template-columns: 50px 44px minmax(0, 1fr); gap: 0 14px; align-items: start; padding: 7px 0; position: relative; break-inside: avoid; }
.kt-km { font-weight: 900; font-size: 14px; text-align: right; padding-top: 6px; font-variant-numeric: tabular-nums; }
.kt-mark { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 2px #9fcbe6; color: #3a7aa3; margin-left: 7px; }
.kt-mark svg { width: 16px; height: 16px; }
.kt-jez .kt-mark { background: #d99a00; box-shadow: 0 0 0 3px #fff; color: #fff; }
.kt-jez .kt-mark b { font-size: 13px; font-weight: 900; }
.kt-danger .kt-mark { background: #c4321c; }
.kt-pozor .kt-mark { color: #b97800; box-shadow: inset 0 0 0 2px #e8c27a; }
.kt-zastavka .kt-mark { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.kt-info .kt-mark { width: 18px; height: 18px; margin: 6px 0 0 13px; }
.kt-end .kt-pin { width: 44px; margin-left: 0; padding: 0; border-radius: 99px; font-size: 10.5px; background: var(--brand); color: #fff; box-shadow: 0 0 0 3px #fff; font-size: 11px; font-weight: 900; }
.kt-end:last-child .kt-pin { background: var(--ink); }
.kt-body { display: grid; gap: 1px; padding-top: 4px; font-size: 14px; color: var(--ink-2); }
.kt-body b { color: var(--ink); font-size: 15px; }
.kt-facts { font-weight: 800; color: #7a4e00; }
.kt-danger .kt-facts { color: var(--red); }

@media (max-width: 700px) {
  .g-sheet { padding: 24px 18px; border-radius: 0; margin: 0 0 24px; }
  .g-cols { grid-template-columns: 1fr; }
  .g-logo { width: 80px; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .g-bar, .ai-launch, .ai-panel, .demo-bar { display: none !important; }
  .g-cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .g-map, .g-head, .g-legend, .kt-row, .g-rules li { break-inside: avoid; }
  .guide-page { background: #fff; }
  .g-sheet { margin: 0; padding: 0; box-shadow: none; border-radius: 0; max-width: none; }
}

/* poloha lodi na mapě (stránka lodě z QR) */
.m-here-halo { fill: rgba(11, 114, 217, 0.18); }
.m-here-dot { fill: #0b72d9; stroke: #fff; stroke-width: 5; }
.m-here-label { font: 900 30px 'Nunito Sans', sans-serif; fill: #075bb0; paint-order: stroke; stroke: #fff; stroke-width: 7px; }
