/* Interaktivní mapa trasy – Běh okolo přehrady Křetínky (viz mapa-trasy.js) */
.mt-blok { font-family: sans-serif; color: #222; width: 100%; box-sizing: border-box; }
.mt-blok * { box-sizing: border-box; }

.mt-prepinac { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px 0; }
.mt-var { flex: 1 1 220px; text-align: left; padding: 8px 12px; border: 2px solid #c9ced4; border-radius: 6px; background: #fff; color: #333; cursor: pointer; font-family: sans-serif; }
.mt-var b { display: block; font-size: 15px; }
.mt-var small { display: block; font-size: 12px; color: #666; margin-top: 2px; }
.mt-var:hover { border-color: #e4572e; }
.mt-var.mt-aktivni { border-color: #e4572e; background: #fff3ef; box-shadow: inset 4px 0 0 #e4572e; }
.mt-popis-varianty { font-size: 13px; color: #333; margin: 0 2px 10px 2px; }
.mt-popis-varianty:empty { display: none; }
.mt-leg { display: inline-block; width: 22px; height: 0; vertical-align: middle; }
.mt-leg-akt { height: 4px; border-radius: 2px; }
.mt-leg-jina { border-top: 3px dashed #5c6b7a; }

.mt-staty { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px 0; font-size: 14px; }
.mt-staty span { flex: 1 1 140px; background: #fff; border: 1px solid #ddd; border-left: 4px solid #e4572e; border-radius: 6px; padding: 6px 10px; }
.mt-staty small { display: block; color: #666; font-size: 12px; }
.mt-staty b { display: block; font-size: 17px; margin-top: 2px; }

.mt-mapa { width: 100%; border: 1px solid #bbb; border-radius: 6px; background: #eef; }
.mt-mapa.leaflet-container { font: 13px/1.4 sans-serif; }
.mt-napoveda { font-size: 12px; color: #666; margin: 4px 2px 8px 2px; }

.mt-profil { position: relative; width: 100%; height: 200px; background: #fff; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.mt-profil svg { display: block; cursor: crosshair; touch-action: pan-y; }
.mt-profil text { font: 11px sans-serif; fill: #777; }
.mt-profil text.mt-osa { fill: #999; font-style: italic; }
.mt-tip { display: none; position: absolute; top: 4px; width: 130px; text-align: center; background: #1d3557; color: #fff; font-size: 12px; padding: 3px 6px; border-radius: 4px; pointer-events: none; }

/* Kolečka s textem centrují flexem – zkratka font: by jinak přepsala line-height a text by seděl nahoře. */
.mt-km span { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #e4572e; font: bold 11px sans-serif; line-height: 1; color: #222; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.mt-start span { display: block; background: #1d3557; color: #fff; font: bold 12px sans-serif; text-align: center; line-height: 26px; height: 26px; border-radius: 13px; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.4); white-space: nowrap; }
.mt-bod span { position: absolute; transform: translate(-50%, -30px); padding: 0 9px; cursor: pointer; background: #fff; color: #555; font: bold 11px sans-serif; text-align: center; line-height: 20px; height: 22px; border-radius: 11px; border: 1px solid #999; box-shadow: 0 1px 3px rgba(0,0,0,.3); white-space: nowrap; }
.mt-rozdeleni span { position: absolute; transform: translate(-75%, 14px); padding: 0 8px; background: #fff8d6; color: #5a4a00; font: bold 11px sans-serif; line-height: 20px; height: 22px; border-radius: 11px; border: 1px solid #c9a800; box-shadow: 0 1px 3px rgba(0,0,0,.3); white-space: nowrap; cursor: pointer; }
.mt-sipka, .mt-km, .mt-start, .mt-bod, .mt-rozdeleni { background: none; border: none; }

.mt-cela { display: block; width: 30px; height: 30px; line-height: 30px; text-align: center; font-size: 18px; background: #fff; color: #222; text-decoration: none; }
.mt-cela:hover { background: #f4f4f4; }
.mt-mapa:fullscreen { border-radius: 0; }

.mt-popup-akce { margin-top: 6px; font-size: 12px; }

.mt-akce { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mt-tlacitko { display: inline-block; padding: 8px 14px; border-radius: 6px; background: #e4572e; color: #fff !important; font: bold 14px sans-serif; text-decoration: none; }
.mt-tlacitko:hover { background: #c94420; }
.mt-tlacitko.mt-sekundarni { background: #1d3557; }
.mt-tlacitko.mt-sekundarni:hover { background: #142640; }

/* přepínač: ročníky a štítek nadcházejícího ročníku */
.mt-var { position: relative; }
.mt-var small.mt-rocniky { color: #444; }
.mt-stitek { float: right; margin: 0 0 4px 8px; padding: 1px 7px; border-radius: 9px; background: #1d3557; color: #fff; font: bold 11px sans-serif; white-space: nowrap; }

/* důležitá místa – písmena na mapě a v legendě */
.mt-misto { background: none; border: none; }
.mt-misto span, .mt-misto-ukazka { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #1d3557; color: #fff; border: 2px solid #fff; font: bold 12px sans-serif; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.45); cursor: pointer; }
.mt-misto.mt-pozor span { background: #c1121f; }
.mt-misto-ukazka { display: inline-flex; width: 18px; height: 18px; font-size: 10px; vertical-align: middle; box-shadow: none; cursor: default; }
.mt-popup-misto small { display: block; color: #666; }
.mt-popup-misto .mt-pis { float: left; margin: 2px 8px 0 0; }

/* důležitá místa – v profilu */
.mt-profil-misto { cursor: pointer; }
.mt-profil-misto line { stroke: #1d3557; stroke-opacity: .45; }
.mt-profil-misto circle { fill: #fff; stroke: #1d3557; stroke-width: 1.5; }
.mt-profil text.mt-profil-misto, .mt-profil .mt-profil-misto text { font: bold 10px sans-serif; fill: #1d3557; }
.mt-profil-misto.mt-pozor circle { stroke: #c1121f; }
.mt-profil .mt-profil-misto.mt-pozor text { fill: #c1121f; }
.mt-profil-misto.mt-vybrane circle, .mt-profil-misto:hover circle { fill: #1d3557; }
.mt-profil .mt-profil-misto.mt-vybrane text, .mt-profil .mt-profil-misto:hover text { fill: #fff; }

/* důležitá místa – rozbor pod mapou */
.mt-mista { margin-top: 18px; }
.mt-mista h3 { font: bold 17px sans-serif; margin: 0 0 4px 0; color: #1d3557; }
.mt-mista-pozn { font-size: 12px; color: #666; margin: 0 0 8px 0; }
.mt-mista ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 12px; }
.mt-polozka { display: grid; grid-template-columns: 40px 70px 1fr; gap: 8px; align-items: start; padding: 7px 8px; background: #fff; border: 1px solid #e2e2e2; border-radius: 6px; font-size: 13px; line-height: 1.35; cursor: pointer; }
.mt-polozka:hover, .mt-polozka:focus { border-color: #1d3557; outline: none; }
.mt-polozka.mt-vybrane { border-color: #e4572e; background: #fff3ef; box-shadow: inset 4px 0 0 #e4572e; }
.mt-pis { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #1d3557; color: #fff; font: bold 13px sans-serif; line-height: 1; }
.mt-pis.mt-pozor { background: #c1121f; }
.mt-pis.mt-pis-start { width: auto; min-width: 26px; padding: 0 5px; border-radius: 13px; font-size: 9px; letter-spacing: .02em; white-space: nowrap; }
.mt-km-txt { font-weight: bold; color: #444; padding-top: 4px; }
.mt-text { padding-top: 3px; }
.mt-pokyn { color: #c1121f; }
