/* Маршрут от точка до точка (plan.js) */
.pl-form { margin-top: 14px; }
.pl-fields { position: relative; display: grid; gap: 8px; padding-right: 54px; }
.pl-field { display: flex; align-items: center; border: 0; border-radius: var(--sh-l); background: var(--md-surface-high); min-height: 52px; }
.pl-field label { flex: none; min-width: 46px; padding: 0 6px 0 12px; white-space: nowrap; font-weight: 700; color: var(--ink2); }
.pl-field input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 48px; padding: 0 10px 0 4px; font-size: 1.05em; outline: none; }
.pl-field:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.pl-swap { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 2px solid var(--line2); border-radius: 50%;
  background: var(--card); cursor: pointer; display: grid; place-items: center; }
.pl-go { width: 100%; margin-top: 10px; }
.pl-sug { border: 1px solid var(--line2); border-top: 0; border-radius: 0 0 var(--rad) var(--rad); background: var(--card); max-height: 55vh; overflow-y: auto; margin-top: -8px; position: relative; z-index: 5; }
.pl-sh { padding: 8px 12px 2px; font-size: .8em; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .03em; }
.pl-s { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 6px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.pl-s:hover, .pl-s:focus-visible { background: var(--bg2); }
.pl-si { flex: none; display: inline-flex; color: var(--ink2); }
.pl-sn { flex: 1; min-width: 0; font-weight: 700; }
.pl-sn small { display: block; font-weight: 400; color: var(--mute); }
.pl-osm { padding: 6px 12px; font-size: .75em; color: var(--mute); text-align: right; }
.pl-map { height: 42vh; min-height: 260px; }
.pl-opts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.pl-opt { border: 0; border-radius: var(--sh-l); background: var(--md-surface-low); transition: border-radius .4s var(--spring); }
.pl-opt.sel { box-shadow: inset 0 0 0 2px var(--md-primary); border-radius: var(--sh-xl); }
.pl-sum { display: grid; gap: 6px; width: 100%; padding: 12px; border: 0; background: none; text-align: left; cursor: pointer; }
.pl-row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pl-tt { font-size: 1.35em; font-variant-numeric: tabular-nums; }
.pl-dur { font-weight: 700; white-space: nowrap; }
.pl-lines { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.pl-lines .chip { min-width: 40px; height: 28px; }
.pl-w { display: inline-flex; align-items: center; font-weight: 700; font-size: .9em; color: var(--ink2); }
.pl-gt { color: var(--mute); font-weight: 700; }
.pl-meta, .pl-nx { color: var(--ink2); font-size: .92em; }
.pl-nx .chip { min-width: 34px; height: 24px; font-size: .8em; }
.pl-act { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.pl-act .btn { flex: 1 1 140px; }
.pl-steps { list-style: none; margin: 0 12px 12px; padding: 0; border-top: 1px solid var(--line); }
.pl-st { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pl-st .chip { min-width: 40px; height: 28px; }
.pl-st.bus { border-left: 5px solid var(--lc, var(--info)); padding-left: 8px; }
.pl-st a { text-decoration-thickness: 1px; }
.pl-st .code { font-size: .78em; padding: 0 4px; }
.pl-fol { position: sticky; top: 66px; z-index: 900; border: 2px solid var(--ok); background: var(--card); border-radius: var(--rad); padding: 10px 12px; margin-top: 12px;
  display: grid; gap: 6px; }
.pl-fol-h { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pl-fol-b .chip { min-width: 34px; height: 26px; }
.pl-pop { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-home { width: 100%; margin-top: 8px; }
html.dark .gl .leaflet-tile-pane { filter: none; }
.tk-btn svg { flex: none; }
.tk-links .btn { flex: 1 1 200px; }
/* надписи на спирките за качване, прекачване и слизане на картата */
.leaflet-tooltip.pl-tip { padding: 1px 6px; font: 600 11px/1.4 system-ui, sans-serif; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.dark .leaflet-tooltip.pl-tip { background: #222; color: #eee; border-color: #444; }
.dark .leaflet-tooltip.pl-tip::before { border-top-color: #222; }
/* бързо превключване на вариантите над картата */
.pl-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.pl-tabs::-webkit-scrollbar { display: none; }
.pl-tab { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--md-outline-variant); background: var(--md-surface-low); color: var(--ink); font: inherit; font-size: .9em; cursor: pointer; }
.pl-tab .chip { font-size: .85em; padding: 1px 6px; }
.pl-tab svg { width: 18px; height: 18px; }
.pl-tab.on { background: var(--md-secondary-container); color: var(--md-on-secondary-container); border-color: transparent; font-weight: 700; }
.leaflet-tooltip.pl-tip { max-width: 220px; }
.leaflet-tooltip.pl-tip .chip { font-size: 10px; padding: 0 4px; }
