/* Trip mode – sprievodca výletom. Veľké písmo a tlačidlá (≥ 48 px), vysoký
   kontrast na slnku, jedna ruka. Farby z vodic.css (svetlý aj tmavý režim). */
.trip-root {
  position: fixed; inset: 0; z-index: 19;     /* pod .modal (20): bloček a rozpis idú nad trip */
  background: var(--bg); color: var(--text);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top);
}
html.tm-open, html.tm-open body { overflow: hidden; }

.tm-top {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px; background: var(--panel); border-bottom: 1px solid var(--border);
}
.tm-top-title {
  flex: 1; min-width: 0; font-weight: 600; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px;
}
.tm-icon {
  flex: 0 0 auto; width: 46px; height: 48px; border-radius: 12px; font-size: 20px;
  background: var(--panel2); color: var(--text); border: 1px solid var(--border);
}

.tm-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px 16px 0; font-size: 18px; line-height: 1.45;
}
.tm-loading { padding: 40px 0; text-align: center; color: var(--muted); }

.tm-kicker { color: var(--muted); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.tm-h1 { font-size: 26px; line-height: 1.2; margin: 2px 0 10px; }
.tm-h2 { display: block; font-size: 15px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin: 22px 0 8px; }
.tm-meta { color: var(--muted); font-size: 16px; }
.tm-muted { color: var(--muted); font-size: 15px; }

.tm-progress { height: 6px; background: var(--panel2); border-radius: 3px; margin-bottom: 10px; overflow: hidden; }
.tm-progress > div { height: 100%; background: var(--accent); }

.tm-opt { display: inline-block; background: var(--panel2); border: 1px dashed var(--muted);
  border-radius: 10px; padding: 6px 10px; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.tm-safety {
  position: sticky; top: 0; z-index: 2;
  background: var(--st-low-bg); color: var(--text); border: 2px solid var(--warn);
  border-radius: 12px; padding: 10px 12px; font-size: 16px; font-weight: 600; margin: 4px 0 12px;
}

.tm-nav { margin: 8px 0 14px; }
.tm-navbtn {
  display: block; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff; font-size: 24px; font-weight: 800; letter-spacing: .03em;
  padding: 20px 12px; border-radius: 16px; min-height: 64px;
  box-shadow: 0 8px 18px -8px rgba(0, 115, 110, .55);
}
.tm-navbtn:active { background: var(--accent2); }
.tm-navsub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; }
.tm-navlabel { flex: 1 1 auto; color: var(--muted); }
.tm-badge { background: var(--st-low-bg); color: var(--text); border: 1px solid var(--warn);
  border-radius: 999px; padding: 3px 10px; font-size: 14px; font-weight: 600; }
.tm-waze { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none;
  background: var(--panel); font-weight: 600; }

.tm-timer { background: var(--panel); border: 2px solid var(--border); border-radius: 16px;
  padding: 12px; margin: 6px 0 14px; text-align: center; }
.tm-timer.soon { border-color: var(--warn); background: var(--st-low-bg); }
.tm-timer.over { border-color: var(--danger); background: var(--st-need-bg); }
.tm-clock { font-size: 56px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tm-timer-btns { display: flex; gap: 10px; margin-top: 10px; }
.tm-timer-btns button { flex: 1; min-height: 52px; font-size: 18px; font-weight: 700; border-radius: 12px;
  background: var(--panel2); color: var(--text); border: 1px solid var(--border); }
.tm-alarm { margin-top: 12px; font-size: 20px; }
.tm-alarm[hidden] { display: none; }
.tm-alarm b { display: block; font-size: 26px; color: var(--danger); }

.tm-info { background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; margin: 8px 0; font-size: 17px; }

.tm-checks { display: flex; flex-direction: column; gap: 8px; }
.tm-check {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  min-height: 56px; padding: 12px; font-size: 18px; line-height: 1.35;
  background: var(--panel); color: var(--text); border: 2px solid var(--border); border-radius: 14px;
}
.tm-check.on { border-color: var(--accent2); background: var(--st-ok-bg); }
.tm-check.on span:last-child { color: var(--muted); }
.tm-box { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--muted);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.tm-check.on .tm-box { background: var(--accent2); border-color: var(--accent2); }

.tm-say {
  position: relative; background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-left: 6px solid var(--accent);
  border-radius: 14px; padding: 14px 14px 14px 46px; margin: 0 0 10px;
  font-size: 20px; line-height: 1.5;
}
.tm-say-n { position: absolute; left: 12px; top: 14px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
.tm-sheet .tm-say { padding-left: 14px; }
.tm-li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 18px; }

.tm-tip { background: #FFF4C2; color: #2B2400; border: 1px solid #E2C044;
  border-radius: 14px; padding: 12px 14px; margin: 14px 0; font-size: 17px; }

.tm-photo { margin: 14px 0; }
.tm-photo img { width: 100%; height: auto; border-radius: 14px; display: block; background: var(--panel2); }
.tm-photo figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }

.tm-spacer { height: 110px; }
.tm-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; gap: 8px; align-items: stretch;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--panel); border-top: 1px solid var(--border);
}
.tm-back, .tm-skip { flex: 0 0 auto; min-height: 60px; padding: 0 14px; font-size: 16px; font-weight: 600;
  border-radius: 14px; background: var(--panel2); color: var(--text); border: 1px solid var(--border); }
.tm-next { flex: 1; min-height: 60px; font-size: 22px; font-weight: 800; letter-spacing: .03em;
  border-radius: 14px; border: none; background: var(--accent); color: #fff; }
.tm-next:active { background: var(--accent2); }

.tm-over, .tm-done { padding-bottom: 30px; }
.tm-start { display: block; width: 100%; margin: 22px 0 10px; min-height: 72px;
  font-size: 26px; font-weight: 800; letter-spacing: .04em; border: none; border-radius: 18px;
  background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(0, 115, 110, .6); }
.tm-start:active { background: var(--accent2); }
.tm-link { display: block; width: 100%; min-height: 48px; background: none; border: none;
  color: var(--accent); font-size: 17px; font-weight: 600; }
.tm-warn { background: var(--st-low-bg); border: 2px solid var(--warn); border-radius: 12px;
  padding: 12px; margin: 16px 0 0; font-size: 17px; font-weight: 600; }

.tm-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.tm-sum > div { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px; text-align: center; }
.tm-sum span { display: block; color: var(--muted); font-size: 14px; }
.tm-sum b { font-size: 24px; }
.tm-note { width: 100%; font: inherit; font-size: 17px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--panel); color: var(--text); }

.tm-sheet { position: absolute; inset: 0; z-index: 5; background: rgba(0, 0, 0, .55);
  display: flex; align-items: flex-end; }
.tm-sheet-in { background: var(--bg); width: 100%; max-height: 88%; overflow-y: auto;
  border-radius: 18px 18px 0 0; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); font-size: 18px; }
.tm-sheet-head { position: sticky; top: 0; display: flex; align-items: center; gap: 8px;
  background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--border); font-weight: 700; }
.tm-sheet-head span { flex: 1; }
.tm-contact { display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border); }
.tm-call { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  border-radius: 12px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; }

@media (max-width: 400px) { .tm-top-title { display: none; } .tm-top { justify-content: space-between; } }

.tm-jump { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; text-align: left;
  padding: 8px 4px; border: none; border-bottom: 1px solid var(--border); background: none; color: var(--text); font-size: 17px; }
.tm-jump.here { background: var(--st-ok-bg); border-radius: 10px; font-weight: 700; }
.tm-jump-n { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--panel2);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.tm-jump-t { flex: 1; }
.tm-jump-t i { color: var(--muted); font-size: 14px; }
.tm-jump-d { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* tlačidlo na karte jazdy */
.t-guide { margin-top: 10px; width: 100%; min-height: 52px; font-size: 18px; font-weight: 700;
  border-radius: 12px; border: none; background: var(--accent); color: #fff; }

@media (prefers-color-scheme: dark) {
  .tm-tip { background: #3A3210; color: #FFF3C4; border-color: #8A7420; }
  /* svetlý tyrkys v tmavom režime – biele písmo by malo slabý kontrast */
  .tm-next, .tm-start, .tm-navbtn, .tm-call, .t-guide, .tm-say-n,
  .tm-check.on .tm-box { color: #04201E; }
}
