/* "על הדרך" — ר' on-the-way.php. מבוסס על המסך המשולב שאושר בקנבס. */

.otw-hero { background: var(--teal-600); color: #fff; border-radius: 0 0 var(--r-hero) var(--r-hero); padding: 26px 0 30px; }
.otw-hero h1 { font-family: var(--font-display); font-size: clamp(56px, 8vw, 88px); line-height: .85; margin: 0 0 8px; color: #fff; }
.otw-lead { margin: 0 0 18px; font-size: 17px; max-width: 60ch; color: #fff; }
.otw-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.otw-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; min-width: 0; }
.otw-field label { font-weight: 700; font-size: 15px; color: #fff; }
.otw-field .input { min-height: 50px; border-radius: var(--r-pill); border: 0; padding: 0 18px; font-size: 17px; box-shadow: 0 5px 0 var(--teal-800); }
.otw-from-row { display: flex; gap: 8px; }
.otw-from-row .input { flex: 1 1 auto; min-width: 0; }
.otw-me { flex-shrink: 0; min-height: 50px; white-space: nowrap; }
.otw-go { min-height: 54px; padding: 0 28px; font-family: var(--font-display); font-size: 28px; flex: 0 0 auto; }
.otw-msg { margin: 12px 0 0; min-height: 1.4em; font-weight: 600; color: #fff; }

.otw-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 24px; padding-top: 24px; padding-bottom: 40px; align-items: start; }
.otw-mapcol { position: sticky; top: calc(var(--nav-h, 64px) + 12px); }
#otwMap { height: calc(100vh - var(--nav-h, 64px) - 48px); min-height: 420px; border-radius: var(--r-card); background: var(--teal-50); }

/* כרטיס העצירה הבאה — נייבי, הדבר הראשון ברשימה */
.otw-next { background: var(--navy-900); color: #fff; border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.otw-next-head { display: flex; gap: 12px; align-items: center; }
.otw-next-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.otw-next-when { font-size: 14px; font-weight: 600; color: var(--teal-200); }
.otw-next-name { font-family: var(--font-display); font-size: 38px; line-height: .95; color: #fff; }
.otw-next-name:hover { color: var(--gold-400); text-decoration: none; }
.otw-next-cert { margin: 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #fff; border-radius: var(--r-md); padding: 8px 12px; font-size: 14px; font-weight: 700; }
.otw-next-cert span:first-child { color: var(--ok); }
.otw-next-cert span:last-child { color: var(--ink-500); }
.otw-next-act { display: flex; gap: 8px; flex-wrap: wrap; }
.otw-next-act a, .otw-next-act button {
  flex: 1 1 auto; min-height: 48px; padding: 0 14px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 24px; cursor: pointer; text-decoration: none;
  background: transparent; color: #fff; border: 2px solid var(--teal-200);
}
.otw-next-act .otw-waze { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-900); flex-grow: 2; }
.otw-next-act a:hover, .otw-next-act button:hover { text-decoration: none; filter: brightness(1.08); }
.otw-next .seal { background: #fff; }

.otw-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 16px 0 6px; }
.otw-only, .otw-f { font-family: var(--font-display); font-size: 22px; line-height: 1; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); display: inline-flex; align-items: center; }
.otw-only { background: var(--navy-900); color: var(--gold-400); }
.otw-f { --c: var(--navy-900); background: #fff; color: var(--c); border: 2px solid var(--c); cursor: pointer; }
.otw-f-meat { --c: var(--meat); } .otw-f-milk { --c: var(--milk); } .otw-f-parve { --c: var(--parve); } .otw-f-meh { --c: var(--gold-text); }
.otw-f.is-on { background: var(--c); color: #fff; }
.otw-sum { margin: 4px 0 14px; font-size: 14px; font-weight: 600; color: var(--ink-500); }

/* קו התחנות */
.otw-line { list-style: none; margin: 0; padding: 0; }
.otw-stop { display: flex; gap: 12px; }
.otw-stop-time { width: 54px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.otw-stop-time b { font-family: var(--font-display); font-size: 22px; line-height: 1.05; color: var(--navy-900); text-align: center; }
.otw-rail { flex-grow: 1; width: 6px; min-height: 20px; margin-top: 6px; background: var(--navy-900); border-radius: 3px; }
.otw-stop-body { flex: 1 1 auto; min-width: 0; padding-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.otw-stop-body h2 { margin: 0; font-family: var(--font-display); font-size: 34px; line-height: .95; color: var(--navy-900); }
.otw-biz {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: start;
  background: #fff; border: 3px solid #fff; border-radius: var(--r-card); padding: 8px 12px;
  font: inherit; color: inherit; cursor: pointer;
}
.otw-biz.is-sel { border-color: var(--gold-400); }
.otw-biz:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.otw-biz-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
/* שם עסק בגופן הגוף: Karantina בשתי שורות ובשמות לועזיים נראה רע (רוני, 15.10.2026) */
.otw-biz-n { font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--ink-900); }
.otw-biz-c { font-size: 14px; font-weight: 600; color: var(--ink-500); }
.seal-min { --seal-c: var(--gold-text); --seal-rot: 5deg; background: var(--gold-100); }
.seal-min-dark { --seal-c: var(--gold-400); background: var(--navy-900); }
.seal-min .seal-in { font-family: inherit; line-height: 1; }
.seal-min b { font-size: calc(var(--seal-s) * .36); font-weight: 800; letter-spacing: -.02em; }
.seal-min small { font-size: calc(var(--seal-s) * .17); font-weight: 700; }
.otw-more { align-self: flex-start; background: none; border: 0; padding: 6px 0; min-height: 44px; color: var(--teal-600); font: inherit; font-weight: 700; cursor: pointer; }
.otw-none { color: var(--ink-500); font-weight: 600; margin: 0; }

/* מצב נהיגה — הכרטיס על כל המסך */
.otw-drive { position: fixed; inset: 0; z-index: 2000; background: var(--navy-900); color: #fff; padding: 18px 16px 22px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.otw-drive[hidden] { display: none; }
.otw-drive-top { display: flex; justify-content: space-between; align-items: center; color: var(--teal-200); font-weight: 600; }
.otw-drive-card { flex: 1 1 auto; max-width: 640px; width: 100%; margin: 0 auto; }
.otw-drive-card .otw-next-head { flex-wrap: wrap; }
.otw-drive-card .otw-next-name { font-size: clamp(56px, 14vw, 88px); }
.otw-drive-card .otw-next-when { font-size: 18px; }
.otw-drive-card .otw-next-act a { min-height: 64px; font-size: 32px; }
.otw-drive-card > * + * { margin-top: 18px; }
.otw-drive-nav { display: flex; gap: 8px; max-width: 640px; width: 100%; margin: 0 auto; }
.otw-drive-btn { min-height: 52px; padding: 0 18px; border-radius: var(--r-pill); border: 2px solid var(--teal-200); background: transparent; color: #fff; font-family: var(--font-display); font-size: 26px; cursor: pointer; flex: 1 1 auto; }
.otw-drive-btn.is-main { background: var(--teal-600); border-color: var(--teal-600); flex-grow: 2; }
.otw-drive-top .otw-drive-btn { flex: 0 0 auto; }
body.otw-noscroll { overflow: hidden; }

@media (max-width: 900px) {
  .otw-out { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .otw-mapcol { position: static; }
  #otwMap { height: 46vh; min-height: 300px; }
}
@media (max-width: 520px) {
  .otw-go { width: 100%; }
  .otw-me { padding: 0 12px; }
  .otw-next-name { font-size: 32px; }
}

/* מעקב חי */
.otw-next-act .otw-follow.is-on { background: var(--teal-600); border-color: var(--teal-600); }
.otw-follow-msg { margin: 8px 0 0; font-weight: 700; color: var(--warn); }
.otw-follow-msg:empty { display: none; }

/* הצעות יישוב (במקום datalist, שלא עובד בנייד) */
.otw-field { position: relative; }
.otw-sugg { position: absolute; inset-inline: 0; top: 100%; z-index: 40; margin: 6px 0 0; padding: 4px 0; list-style: none;
  background: #fff; border-radius: var(--r-md); box-shadow: 0 10px 28px rgba(11, 49, 81, .22); max-height: 300px; overflow-y: auto; }
.otw-sugg button { display: block; width: 100%; min-height: 44px; padding: 8px 16px; border: 0; background: none;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink-900); text-align: start; cursor: pointer; }
.otw-sugg button:hover, .otw-sugg button:focus-visible { background: var(--bg); outline: none; }
