/* רוח בדרך — עיצוב יחיד, מותאם קודם כל לטלפון */
:root {
  --bg: #f3f5f0;
  --surface: #ffffff;
  --surface-2: #eef2ec;
  --ink: #0f2a31;
  --ink-2: #4c6268;
  --ink-3: #7d8f92;
  --line: #dfe6df;
  --brand: #0f2a31;
  --brand-ink: #d7f08f;
  --accent: #1f7a6d;
  --low: #2a9d7f;
  --mid: #e0a020;
  --high: #e05a47;
  --low-soft: #e2f3ec;
  --mid-soft: #fbf0d6;
  --high-soft: #fbe3df;
  --road: #23424a;
  --shadow: 0 1px 2px rgb(15 42 49 / .06), 0 6px 24px rgb(15 42 49 / .08);
  --shadow-lg: 0 10px 40px rgb(15 42 49 / .18);
  --radius: 20px;
  --gutter: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1c21;
    --surface: #12282e;
    --surface-2: #19343b;
    --ink: #eef4ef;
    --ink-2: #b2c3c3;
    --ink-3: #82979a;
    --line: #234047;
    --brand: #d7f08f;
    --brand-ink: #0f2a31;
    --accent: #6fd3b8;
    --low: #3cc39d;
    --mid: #f0b43a;
    --high: #f07562;
    --low-soft: #133a33;
    --mid-soft: #3a3118;
    --high-soft: #44221d;
    --road: #2b4c55;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 24px rgb(0 0 0 / .25);
    --shadow-lg: 0 10px 40px rgb(0 0 0 / .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 Heebo, "Segoe UI", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: .5; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icons { position: absolute; width: 0; height: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--ink-3); font-size: 13px; }
.fine-print { color: var(--ink-3); font-size: 12.5px; line-height: 1.55; }

/* ---------- כפתורים ---------- */
.round-button {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink);
  font-size: 20px; transition: transform .15s, background .15s;
}
.round-button:active { transform: scale(.94); }
.round-button.ghost { background: transparent; }
.round-button.small { width: 36px; height: 36px; font-size: 17px; }
.round-button.raised { background: var(--surface); box-shadow: var(--shadow); }
.primary-button {
  width: 100%; min-height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--brand); color: var(--brand-ink);
  font-size: 17px; font-weight: 700; transition: transform .15s;
}
.primary-button svg { font-size: 20px; }
.primary-button:active { transform: scale(.98); }
.secondary-button {
  min-height: 54px; border-radius: 16px; padding: 0 18px;
  background: var(--surface-2); font-weight: 700;
}
.mini-button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 99px;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 14px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 12px; border-radius: 99px;
  background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; font-weight: 500;
}
.chip svg { font-size: 16px; }
.chip { white-space: nowrap; }

/* ---------- מסך תכנון ---------- */
.view { min-height: 100dvh; }
#view-plan { padding-bottom: calc(110px + var(--safe-bottom)); }
.app-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + var(--safe-top)) var(--gutter) 4px;
  max-width: 560px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { display: block; font-size: 18px; font-weight: 800; line-height: 1.1; }
.brand small { display: block; color: var(--ink-3); font-size: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: #0f2a31; color: #d7f08f; font-size: 22px;
}
.brand-mark.small { width: 36px; height: 36px; font-size: 19px; border-radius: 10px; }
.plan-body { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }
.plan-title { font-size: 28px; font-weight: 800; line-height: 1.2; margin: 18px 4px 16px; letter-spacing: -.3px; }

.trip-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px 6px 6px;
  position: relative;
}
.trip-row { display: flex; align-items: center; gap: 4px; position: relative; }
.trip-row + .trip-row::before {
  content: ""; position: absolute; inset-inline-start: 25px; top: -14px; height: 22px;
  border-inline-start: 2px dotted var(--line);
}
.trip-dot {
  width: 40px; height: 52px; display: grid; place-items: center; flex: none;
}
.trip-dot i { width: 14px; height: 14px; border-radius: 50%; border: 3.5px solid var(--accent); background: var(--surface); }
.trip-row.end .trip-dot i { border-radius: 4px; border-color: var(--ink); background: var(--ink); width: 13px; height: 13px; }
.trip-row.stop .trip-dot i { width: 11px; height: 11px; border-width: 3px; border-color: var(--ink-3); }
.trip-input {
  flex: 1; min-width: 0; height: 52px; border: 0; outline: 0;
  background: transparent; font-size: 17px; font-weight: 500; padding: 0 4px;
  border-radius: 12px;
}
.trip-input::placeholder { color: var(--ink-3); font-weight: 400; }
.trip-row.editing { background: var(--surface-2); border-radius: 14px; }
.trip-row.filled .trip-input { font-weight: 700; }
.trip-row .row-action { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-3); font-size: 19px; }
.trip-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 8px 6px; border-top: 1px solid var(--line); margin-top: 4px; }

.search-panel {
  margin-top: 10px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.result {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; min-height: 58px; text-align: start;
  border-bottom: 1px solid var(--line);
}
.result:last-child { border-bottom: 0; }
.result:active, .result:hover { background: var(--surface-2); }
.result .r-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-size: 18px; flex: none; }
.result.locate .r-icon { background: var(--low-soft); color: var(--accent); }
.result b { display: block; font-weight: 600; }
.result small { display: block; color: var(--ink-3); font-size: 13px; }
.panel-label { padding: 12px 16px 4px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.panel-note { padding: 14px 16px; color: var(--ink-3); font-size: 14px; }
.panel-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; vertical-align: -4px; margin-inline-end: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

.option-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.option-pill {
  display: flex; align-items: center; gap: 10px; text-align: start;
  background: var(--surface); border-radius: 16px; padding: 10px 14px; min-height: 58px;
  box-shadow: var(--shadow);
}
.option-pill svg { font-size: 22px; color: var(--accent); }
.option-pill span { min-width: 0; }
.option-pill small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.2; }
.option-pill b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.option-pill.active { outline: 2px solid var(--accent); }

.status { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); font-size: 15px; }
.status.error { background: var(--high-soft); color: var(--ink); box-shadow: none; }
.status .status-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 4px 10px; }
.section-head h2 { font-size: 19px; font-weight: 800; }
.section-head span { color: var(--ink-3); font-size: 13px; }

.route-cards { display: grid; gap: 12px; }
.route-card {
  width: 100%; text-align: start; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px;
  transition: transform .15s;
  position: relative;
}
.route-card:active { transform: scale(.985); }
.route-card .rc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.route-card .rc-name { font-weight: 700; font-size: 16px; }
.route-card .rc-tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.route-card .rc-tag.best { background: var(--low-soft); color: var(--accent); }
.route-card .rc-time { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.route-card .rc-time strong { font-size: 30px; font-weight: 800; line-height: 1; }
.route-card .rc-time span { color: var(--ink-2); font-size: 14px; }
.route-card .rc-wind { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-2); }
.route-card .rc-wind b { color: var(--ink); }
.route-card .rc-go { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; font-size: 14px; white-space: nowrap; }
.barcode { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-2); gap: 1px; }
.barcode i { flex: 1; }
.barcode.loading { background: linear-gradient(90deg, var(--surface-2) 20%, var(--line) 40%, var(--surface-2) 60%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.skeleton { height: 150px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 20%, var(--surface-2) 50%, transparent 80%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }

.home-extras { margin-top: 22px; }
.recent-trips { display: grid; gap: 8px; }
.recent-trip {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
  background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow);
}
.recent-trip .r-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-size: 19px; flex: none; }
.recent-trip b { display: block; font-weight: 700; }
.recent-trip small { display: block; color: var(--ink-3); font-size: 13px; }
.recent-trip .go { margin-inline-start: auto; color: var(--ink-3); font-size: 18px; }
.how-card { margin-top: 22px; display: grid; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface-2); }
.how-item { display: flex; gap: 12px; align-items: flex-start; }
.how-item p { color: var(--ink-2); font-size: 14px; }
.how-item b { display: block; color: var(--ink); font-size: 15px; }
.how-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; flex: none; }
.how-icon.a { background: var(--low-soft); color: var(--accent); }
.how-icon.b { background: var(--mid-soft); color: #a46c00; }
.how-icon.c { background: #e0ebf7; color: #3c6aa0; }
@media (prefers-color-scheme: dark) { .how-icon.b { color: var(--mid); } .how-icon.c { background: #1c3047; color: #9cc3ef; } }

.install-banner {
  position: fixed; inset-inline: 12px; bottom: calc(12px + var(--safe-bottom)); z-index: 30;
  max-width: 536px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 8px; border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-lg);
  animation: rise .3s ease-out;
}
.install-banner p { flex: 1; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.install-banner b { display: block; color: var(--ink); font-size: 14px; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }

/* ---------- מסך רכיבה ---------- */
#view-ride { background: var(--bg); }
.ride-map-wrap { position: sticky; top: 0; height: 40dvh; min-height: 250px; z-index: 600; border-radius: 0 0 24px 24px; overflow: hidden; box-shadow: 0 8px 24px rgb(15 42 49 / .18); }
#ride-map, #ride-map3d { position: absolute; inset: 0; background: #dde5e0; }
.mode-switch {
  position: absolute; z-index: 700; top: calc(64px + var(--safe-top)); left: 10px;
  display: flex; padding: 3px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow);
}
.mode-switch button { min-height: 34px; padding: 0 14px; border-radius: 99px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.mode-switch button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.map-loading { position: absolute; z-index: 700; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; }
.bike-3d svg { width: 40px; height: 40px; filter: drop-shadow(0 3px 5px rgb(0 0 0 / .45)); }
.bike-3d circle { fill: #0f2a31; stroke: #ffffff; stroke-width: 3; }
.bike-3d path { fill: #d7f08f; stroke: none; }
.maplibregl-ctrl-attrib { font-size: 10px; }
body[data-mode="3d"] .map-legend { bottom: 34px; }
.map-top {
  position: absolute; z-index: 500; top: calc(10px + var(--safe-top)); inset-inline: 10px;
  display: flex; align-items: center; gap: 10px;
}
.map-title {
  flex: 1; min-width: 0; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow);
  padding: 6px 14px; min-height: 44px; display: flex; flex-direction: column; justify-content: center;
}
.map-title b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.map-title span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.map-legend {
  position: absolute; z-index: 500; bottom: 12px; left: 10px;
  display: flex; gap: 10px; padding: 5px 10px; border-radius: 99px; font-size: 12px;
  background: var(--surface); box-shadow: var(--shadow); color: var(--ink-2);
}
.map-legend i, .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 4px; }
.low { --c: var(--low); } .mid { --c: var(--mid); } .high { --c: var(--high); }
.map-legend i, .dot { background: var(--c); }

.sheet {
  position: relative; z-index: 1;
  background: var(--bg);
  padding: 14px var(--gutter) calc(30px + var(--safe-bottom));
  max-width: 640px; margin-inline: auto;
}
.sheet-grip { display: none; }
.stale-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; background: var(--mid-soft); font-weight: 500; }

.verdict {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--c) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.verdict .v-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--c); color: #fff; font-size: 24px; flex: none; }
.verdict h1 { font-size: 20px; font-weight: 800; line-height: 1.25; }
.verdict p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.verdict .v-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.verdict .v-tags span { font-size: 12.5px; padding: 3px 10px; border-radius: 99px; background: var(--surface); color: var(--ink-2); }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.metric { background: var(--surface); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
.metric small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.3; }
.metric b { font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--c, var(--ink)); }
.metric span { font-size: 12px; color: var(--ink-3); margin-inline-start: 2px; }

.card { margin-top: 12px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card h2 { font-size: 17px; font-weight: 800; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }

.strip-wrap { position: relative; height: 44px; }
.wind-strip {
  position: absolute; inset: 10px 0; display: flex; border-radius: 99px; overflow: hidden;
  background: var(--surface-2);
}
.wind-strip i { height: 100%; background: var(--c); }
#scrubber {
  position: absolute; inset: 0; width: 100%; height: 44px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
#scrubber::-webkit-slider-runnable-track { height: 44px; background: transparent; }
#scrubber::-moz-range-track { height: 44px; background: transparent; }
#scrubber::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: 7px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--ink); box-shadow: 0 2px 8px rgb(0 0 0 / .3);
}
#scrubber::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 4px solid var(--ink); }
.strip-ends { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }

.point-body { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; margin-top: 14px; }
.compass { width: 132px; height: 132px; display: block; }
.compass-bg { fill: var(--surface-2); }
.compass-road { fill: var(--road); }
.compass-lane { stroke: #ffffff; stroke-opacity: .45; stroke-width: 1.5; stroke-dasharray: 9 9; }
.compass-bike .tyre { fill: #0b1d22; stroke: #9fb3ad; stroke-width: 1.5; }
.compass-bike .body { fill: #d7f08f; stroke: #b8d376; stroke-width: 1.5; }
.compass-bike .bars { stroke: #e7eedc; stroke-width: 3.5; }
.compass-bike .helmet { fill: #0f2a31; stroke: #d7f08f; stroke-width: 2; }
.compass-wind { color: var(--c, var(--accent)); stroke: currentColor; stroke-width: 4.5; transition: transform .6s cubic-bezier(.3,.7,.3,1), opacity .3s; transform-origin: 100px 100px; }
.compass-wind .flow { stroke-width: 2; stroke-dasharray: 4 10; opacity: .55; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.compass-label { font-size: 10px; fill: #ffffff; fill-opacity: .7; stroke: none; font-family: Heebo, Arial, sans-serif; }
.point-info { display: grid; gap: 4px; min-width: 0; }
.point-road { font-size: 18px; font-weight: 800; line-height: 1.25; }
.relation-chip { justify-self: start; margin-top: 4px; padding: 4px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 700; background: color-mix(in srgb, var(--c, var(--accent)) 16%, var(--surface)); color: var(--ink); }
.point-values { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.point-values div { background: var(--surface-2); border-radius: 12px; padding: 8px 12px; }
.point-values small { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.2; }
.point-values b { font-size: 24px; font-weight: 800; }
.point-values b::after { content: " קמ״ש"; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.point-values .accent b { color: var(--c, var(--ink)); }

.player { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.play-button {
  flex: 1; max-width: 260px; min-height: 48px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--brand-ink); font-weight: 700;
}
.play-button svg { fill: currentColor; stroke-width: 2.5; }

#chart svg { width: 100%; height: 150px; display: block; overflow: visible; }
#chart text { stroke: none; font-size: 11px; fill: var(--ink-3); font-family: Heebo, Arial, sans-serif; }
.chart-key { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.chart-key i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-inline-start: 6px; }
.k-wind { background: var(--accent); }
.k-gust { background: var(--mid); }

.traffic-card h2 { margin-bottom: 12px; }
.nav-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nav-button {
  min-height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 700;
}
.nav-button[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.nav-logo { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px; }
.nav-logo.g { background: #4285f4; }
.nav-logo.w { background: #33ccff; color: #0d2f3a; }
.traffic-card .fine-print { margin-top: 10px; }

.details-card { padding: 0; overflow: hidden; }
.details-card summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px; font-weight: 700; cursor: pointer; }
.details-card summary::-webkit-details-marker { display: none; }
.details-card summary::after { content: "⌄"; font-size: 20px; color: var(--ink-3); line-height: 1; transition: transform .2s; }
.details-card[open] summary::after { transform: rotate(180deg); }
.details-card summary span:first-child { flex: 1; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: start; color: var(--ink-3); font-weight: 500; font-size: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
td small { display: block; color: var(--ink-3); font-size: 12px; }
tr.selected td { background: var(--surface-2); }
.row-button { text-align: start; font-weight: 600; color: var(--ink); }
.pill { display: inline-block; min-width: 34px; text-align: center; padding: 1px 8px; border-radius: 99px; font-weight: 700; background: color-mix(in srgb, var(--c) 18%, var(--surface)); }
.footnote { margin-top: 16px; padding: 0 4px; }

/* סמנים במפה */
.wind-marker {
  display: inline-flex; align-items: center; gap: 1px; padding: 1px 6px 1px 4px; border-radius: 99px; opacity: .92;
  background: #fff; color: var(--c); font: 700 12px/18px Heebo, Arial, sans-serif;
  box-shadow: 0 1px 6px rgb(0 0 0 / .3); border: 2px solid var(--c); white-space: nowrap;
}
.wind-marker svg { width: 14px; height: 14px; stroke-width: 3; }
.end-marker { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #0f2a31; color: #d7f08f; font: 800 12px/1 Heebo, Arial, sans-serif; border: 3px solid #fff; box-shadow: 0 1px 6px rgb(0 0 0 / .35); }
.end-marker.start { background: #fff; color: #0f2a31; border-color: #1f7a6d; }
.end-marker.stop { width: 20px; height: 20px; background: #7d8f92; color: #fff; font-size: 10px; }
.leaflet-container { font-family: Heebo, Arial, sans-serif; }
.leaflet-container svg { width: auto; height: auto; fill: initial; stroke: initial; stroke-width: initial; }
.leaflet-container .wind-marker svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; }
.leaflet-control-attribution { font-size: 10px; }

/* ---------- חלונות ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgb(8 20 24 / .5); }
.sheet-dialog {
  width: 100%; max-width: 560px; margin: auto auto 0; max-height: 92dvh; overflow-y: auto;
  border-radius: 24px 24px 0 0; padding: 18px var(--gutter) calc(20px + var(--safe-bottom));
}
.sheet-dialog[open] { animation: sheet-up .25s ease-out; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 640px) { .sheet-dialog { margin: auto; border-radius: 24px; } }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dialog-head h2 { font-size: 20px; font-weight: 800; }
.dialog-text { color: var(--ink-2); margin-bottom: 12px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-grid button { min-height: 56px; border-radius: 14px; background: var(--surface-2); font-weight: 700; text-align: start; padding: 8px 14px; }
.quick-grid button small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.quick-grid button.active { background: var(--brand); color: var(--brand-ink); }
.quick-grid button.active small { color: inherit; opacity: .8; }
.custom-time { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.custom-time > span { color: var(--ink-3); font-size: 14px; }
.date-time { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.date-time label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); }
.date-time select, .date-time input, .text-input {
  width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface-2); padding: 0 12px; font-size: 17px; color: var(--ink);
}
.text-input { font-size: 20px; font-weight: 700; letter-spacing: 1px; text-align: center; }
.form-error { color: var(--high); font-size: 14px; min-height: 1em; margin-top: 6px; }
.form-error:empty { display: none; }
.road-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.road-suggest button { min-width: 52px; min-height: 40px; border-radius: 10px; background: var(--surface-2); font-weight: 800; border: 2px solid transparent; }
.road-suggest button.on { border-color: var(--accent); background: var(--low-soft); }
.dialog-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 14px; }

.full-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; }
#pick-map { position: absolute; inset: 0; }
.pick-crosshair { position: absolute; z-index: 600; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 44px; color: #e05a47; pointer-events: none; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .35)); }
.pick-crosshair svg { fill: #e05a47; stroke: #fff; stroke-width: 1.5; }
.pick-actions { position: absolute; z-index: 600; inset-inline: 16px; bottom: calc(20px + var(--safe-bottom)); max-width: 520px; margin: 0 auto; }
.pick-actions .primary-button { box-shadow: var(--shadow-lg); }

.about p, .about li { color: var(--ink-2); font-size: 15px; }
.about h3 { font-size: 16px; font-weight: 800; margin: 18px 0 6px; }
.about ul { padding-inline-start: 20px; margin: 0; display: grid; gap: 6px; }
.about .sources { font-size: 13px; }

.offline-banner { position: fixed; top: 0; inset-inline: 0; z-index: 1000; padding: calc(8px + var(--safe-top)) 16px 8px; background: var(--mid); color: #2a1d00; text-align: center; font-weight: 700; font-size: 14px; }
.toast {
  position: fixed; z-index: 1000; inset-inline: 16px; bottom: calc(24px + var(--safe-bottom));
  max-width: 480px; margin: 0 auto; padding: 14px 18px; border-radius: 16px;
  background: #0f2a31; color: #fff; box-shadow: var(--shadow-lg); font-size: 15px; animation: rise .25s ease-out;
}

/* מחשב: המפה בצד והפרטים לידה */
@media (min-width: 980px) {
  #view-ride:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) 520px; }
  .ride-map-wrap { height: 100dvh; position: sticky; top: 0; border-radius: 0; }
  .sheet { margin: 0; border-radius: 0; max-width: none; box-shadow: none; padding-top: 20px; }
  .sheet-grip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
