/* Interaktivní mapa trasy a výškový profil (js/trasa-mapa.js) – vzhled podle detailu trasy
   na mallorcacyclingcenter.com (_routes.scss, .rtd-*), barvy Alltraining (oranžová). */
.trm{position:relative}
.trm-map{position:relative;z-index:0;height:320px;overflow:hidden;border-radius:20px 20px 0 0;background:#e9ecee}
@media (min-width:992px){.trm-map{height:460px}}
.trm-load{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;color:#8a949c;font-size:14px}
.trm-profile{position:relative;min-height:120px;padding:8px 8px 2px;border:1px solid #e7eaec;border-top:0;border-radius:0 0 20px 20px;background:#fff}
.trm-psvg{display:block;width:100%;height:auto;touch-action:pan-y}
.trm-pgrid{stroke:#eceff0;stroke-width:1}
.trm-paxis{fill:#8a949c;font-size:11px;font-family:"Kumbh Sans",sans-serif}
.trm-parea{fill:rgba(255,138,30,.16)}
.trm-pline{fill:none;stroke:#ef6a00;stroke-width:2;stroke-linejoin:round}
.trm-pzpet{fill:none;stroke:#14171a;stroke-width:2;stroke-linejoin:round}
.trm-pclimb{fill:rgba(168,58,8,.08)}
.trm-pclimbl{fill:none;stroke:#a83a08;stroke-width:3;stroke-linejoin:round}
.trm-pcur{stroke:#14171a;stroke-width:1}
.trm-pdot{fill:#ef6a00;stroke:#fff;stroke-width:2}
.trm-phit{cursor:crosshair}
.trm-ptip{position:absolute;top:4px;min-width:120px;padding:3px 8px;white-space:nowrap;border-radius:6px;background:#14171a;color:#fff;font-size:12px;font-weight:700;text-align:center;pointer-events:none}
.trm-ptip.is-climb{background:#a83a08}
.trm-hint{margin:8px 0 0;font-size:13px;color:#8a949c}
.trm-pin span{display:flex;align-items:center;justify-content:center;width:24px;height:24px;box-sizing:border-box;border-radius:50%;border:2px solid #fff;background:#14171a;color:#fff;font:700 10px/1 "Kumbh Sans",sans-serif;letter-spacing:.02em;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.trm-pin-start span{width:58px;height:24px;border-radius:12px;background:#ef6a00}
.trm-pin-end span{width:48px;height:24px;border-radius:12px;background:#a83a08}
.leaflet-tooltip.trm-tip{padding:3px 7px;border:0;border-radius:6px;background:#fff;color:#14171a;font:700 11px/1.25 "Kumbh Sans",sans-serif;box-shadow:0 1px 5px rgba(0,0,0,.35)}
.leaflet-tooltip.trm-tip small{display:block;font-size:10px;font-weight:600;color:#8a949c}
.trm-map .leaflet-control-attribution{font-size:10px;line-height:1.5;padding:0 6px;color:#8b9197;background:rgba(255,255,255,.55);border-top-left-radius:6px}
.trm-map .leaflet-control-attribution a{color:#8b9197;text-decoration:none}
/* přepínač tam / tam a zpět */
.trm-sw{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px}
.trm-sw button{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border:1px solid #e7eaec;border-radius:999px;background:#fff;color:#14171a;font:700 14px "Kumbh Sans",sans-serif;cursor:pointer}
.trm-sw button:hover{border-color:#ff8a1e;color:#ef6a00}
.trm-sw button small{font-size:inherit;font-weight:500;color:#8a949c}
.trm-sw button.on,.trm-sw button.on:hover{border-color:#ef6a00;background:#ef6a00;color:#fff}
.trm-sw button.on small{color:#fff}
.trm-key{display:none;align-items:center;gap:6px;font-size:13px;color:#5b656d}
.trm.is-zpet .trm-key{display:inline-flex}
.trm-key i{width:22px;height:4px;border-radius:2px;background:#ef6a00}
.trm-key i.z{margin-left:6px;background:#14171a}
/* ke stažení */
.trm-dl{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.trm-dl a{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border:1px solid #e7eaec;border-radius:999px;background:#fff;color:#14171a;font-weight:700;font-size:14px;text-decoration:none}
.trm-dl a:hover{border-color:#ff8a1e;color:#ef6a00}
.trm-dl a svg{width:16px;height:16px;flex:none}
.trm-dl a small{font-weight:500;color:#8a949c}
