/* ════════════════════════════════════════════════════════════════════════
   css/v2.css — R259: unified panel, flag-gated (body.v2 only)
   ════════════════════════════════════════════════════════════════════════
   Loaded on every page view but every rule below is under body.v2, which
   js/v2.js adds only when the flag is on — without it this file changes
   nothing. Section 2 is the route-page card CSS (tools/route-page.js) so
   the app and the 208 route pages render the same card from the same
   markup; keep the two in sync until prerender imports this file.
   ════════════════════════════════════════════════════════════════════════ */

/* ── 1. Layout: hide the old islands, one column on the left ────────── */
body.v2 #bottom-bar, body.v2 #results-panel, body.v2 #fp-restore-pill,
body.v2 #map-veil, body.v2 #fp-hero-hint, body.v2 #bottom-bar-peek { display: none !important; }
body.v2 #v2-panel { position: fixed; top: var(--topbar-h, 54px); left: 0; bottom: 0; width: 100%; z-index: 400;
  background: var(--paper, #fbfcfd); border-right: 1px solid var(--line, #e6ebf1); box-shadow: 4px 0 24px rgba(26,31,46,0.08);
  overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 24px; box-sizing: border-box; color: var(--ink, #1a1f2e); }
body.v2 .v2-prompt-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
body.v2 .v2-new { border: 0; background: transparent; color: #2a6b9e; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 0; white-space: nowrap; }
body.v2 .v2-new:hover { text-decoration: underline; }
body.v2 .v2-new[hidden] { display: none; }
body.v2 .st[data-toll] { cursor: pointer; }
body.v2 .st[data-toll]:hover { border-color: #c6cfda; }
body.v2 .st.is-sel { box-shadow: 0 0 0 2px #2a6b9e; }
body.v2 .chip-em { font-size: 15px; line-height: 1; }
body.v2 .sh-em { margin-right: 8px; }
body.v2 .sh-live[hidden] { display: none; }
body.v2 .sh-note a { color: #2a6b9e; text-decoration: underline; text-underline-offset: 2px; }
body.v2 .v2-popular { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.v2 .v2-popular-l { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8f9e; }
body.v2 .v2-popular .fp-chips { display: inline-flex; min-height: 0; }
body.v2 .v2-analyse { position: relative; width: 100%; border: 0; border-radius: 12px; color: #fbfcfd; font: inherit; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
body.v2 .v2-analyse:disabled { opacity: 0.75; cursor: progress; transform: none; }
body.v2 .v2-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: v2spin 0.8s linear infinite; }
body.v2 .v2-analyse.loading .v2-spin { display: block; }
body.v2 .v2-analyse.loading svg:last-child { display: none; }
@keyframes v2spin { to { transform: rotate(360deg); } }
body.v2 .v2-prompt { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 0; }
body.v2 .v2-sub { margin: 4px 0 14px; font-size: 13px; color: #5e6578; line-height: 1.4; }
/* R263: the journey card — two stacked stops joined by a dotted line, the swap on the edge */
body.v2 .v2-journey { position: relative; background: #fff; border: 1px solid var(--line, #e6ebf1); border-radius: 14px; box-shadow: 0 1px 2px rgba(26,31,46,0.04), 0 6px 18px rgba(26,31,46,0.06); padding: 4px 4px 4px 40px; }
body.v2 .v2-journey:focus-within { border-color: #2a6b9e; box-shadow: 0 0 0 3px #d6e5ef, 0 6px 18px rgba(26,31,46,0.06); }
body.v2 .v2-jl { position: absolute; left: 19px; top: 18px; bottom: 18px; width: 0; border-left: 2px dotted #c6cfda; }
body.v2 .v2-jl::before, body.v2 .v2-jl::after { content: ''; position: absolute; left: -6px; width: 10px; height: 10px; box-sizing: border-box; background: #fff; }
body.v2 .v2-jl::before { top: -4px; border: 2.5px solid #2a6b9e; border-radius: 50%; }
body.v2 .v2-jl::after { bottom: -4px; border: 2.5px solid #1a1f2e; border-radius: 2px; background: #1a1f2e; }
body.v2 #v2-panel .fp-route-row { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; position: relative; }
body.v2 #v2-panel .fp-route-row .fp-input { width: 100%; min-width: 0; box-sizing: border-box; height: 46px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; padding: 0 44px 0 8px; font-size: 16px; font-weight: 500; }
body.v2 #v2-panel .fp-route-row .fp-input:focus { background: #f3f6f9; box-shadow: none; }
body.v2 #v2-panel .fp-route-row .fp-input::placeholder { color: #8a8f9e; font-weight: 400; }
body.v2 #v2-panel .fp-route-row #origin { order: 1; }
body.v2 #v2-panel .fp-route-row #dest { order: 3; border-top: 1px solid var(--line, #e6ebf1); border-radius: 0 0 10px 10px; }
body.v2 #v2-panel .fp-route-row .fp-swap { order: 2; position: absolute; right: 8px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: #fff; border: 1px solid #c6cfda; color: #3a4050; font-size: 15px; transform: rotate(90deg); box-shadow: 0 1px 3px rgba(26,31,46,0.08); z-index: 1; }
body.v2 #v2-panel .fp-route-row .fp-swap:hover { transform: rotate(270deg); background: #d6e5ef; border-color: #2a6b9e; color: #2a6b9e; }
body.v2 .v2-popular { margin-top: 14px; }
body.v2 .v2-popular .fp-chip { background: #f3f6f9; border: 0; color: #1e4f78; font-weight: 600; }
body.v2 .v2-popular .fp-chip:hover { background: #d6e5ef; }
body.v2 #v2-settings .chip { border: 0; background: #f3f6f9; height: 40px; font-weight: 600; }
body.v2 #v2-settings .chip:hover { background: #e9edf2; }
body.v2 .v2-analyse { background: linear-gradient(180deg, #2f76ad 0%, #235a85 100%); box-shadow: 0 6px 16px rgba(42,107,158,0.32), inset 0 1px 0 rgba(255,255,255,0.18); font-size: 16px; height: 52px; margin-top: 14px; transition: transform 0.12s, box-shadow 0.12s; }
body.v2 .v2-analyse:hover { background: linear-gradient(180deg, #2a6b9e 0%, #1e4f78 100%); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(42,107,158,0.38); }
body.v2 .v2-analyse:active { transform: translateY(0); }
body.v2 .v2-analyse svg { width: 18px; height: 18px; opacity: 0.9; }
body.v2 .v2-empty { margin-top: 14px; font-size: 12px; color: #8a8f9e; display: flex; align-items: center; gap: 6px; }
@media (max-width: 959px) { body.v2 .v2-empty { display: none; } }   /* R292: the trust line stays on desktop only */
body.v2 .v2-empty::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #2e7a4a; flex-shrink: 0; }
body.v2 .v2-error { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fbe9e5; color: #8a2d16; font-size: 13px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
body.v2 .v2-error[hidden] { display: none; }
/* R290: calm homepage — popular routes live in the empty-field dropdown;
   settings are one line until the first result or "Αλλαγή" */
body.v2 .v2-popular { display: none; }
body.v2 .city-ac-dropdown { max-width: none; border-radius: 14px; }
body.v2 .v2-quiet { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; box-sizing: border-box; margin: 12px 0 0; padding: 11px 14px; border: 0; border-radius: 12px; background: #f1f4f8; color: #5e6578; font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: background-color .12s, transform .08s; }
body.v2 .v2-quiet:hover { background: #e8eef5; }
body.v2 .v2-quiet:active { transform: scale(0.98); }
body.v2 .v2-quiet-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.v2 .v2-quiet-l b { color: #1a1f2e; font-weight: 600; }
body.v2 .v2-quiet-go { flex-shrink: 0; color: #1e4f78; font-weight: 700; font-size: 13.5px; background: #fff; border: 1.5px solid #2a6b9e; border-radius: 999px; padding: 6px 13px; }
body.v2 .v2-quiet:hover .v2-quiet-go { background: #e2edf6; }
body.v2 .v2-quiet-chev { flex-shrink: 0; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #2a6b9e; border: 1.5px solid #c6d7e6; }
body.v2 .v2-quiet-chev svg { width: 14px; height: 14px; }
body.v2 .v2-error.is-dym { flex-direction: column; align-items: stretch; background: #eef4f9; color: #1e4f78; }
body.v2 .dym-list { display: flex; flex-direction: column; gap: 6px; }
body.v2 .dym-pick { display: flex; align-items: baseline; gap: 8px; text-align: left; border: 1.5px solid #c6d7e6; background: #fff; color: #1a1f2e; border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; cursor: pointer; }
body.v2 .dym-pick:hover { border-color: #2a6b9e; }
body.v2 .dym-pick:active { transform: scale(0.98); }
body.v2 .dym-pick b { font-weight: 600; }
body.v2 .dym-pick small { color: #5e6578; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.v2 .v2-error .error-pill-retry { border: 1px solid #b8502d; background: transparent; color: #8a2d16; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
body.v2 .v2-out { margin-top: 4px; }
/* R279: bypass view */
body.v2 .seg-bp { margin: -4px 0 4px; }
body.v2 .seg-bp > button { flex: 1 1 0; min-width: 0; height: 32px; font-size: 12.5px; }
body.v2 .seg-bp > button[aria-pressed="true"] { background: #fff; color: #1a1f2e; box-shadow: 0 1px 3px rgba(26,31,46,0.14); }
body.v2 .v2-card.is-bp { border-color: #b5cde0; box-shadow: 0 2px 10px rgba(42,107,158,0.12), 0 1px 3px rgba(26,31,46,0.05); }
body.v2 .ans-plain { font-size: 12.5px; color: #5e6578; }
body.v2 .ans-offer { width: 100%; border: 0; font: inherit; cursor: pointer; text-align: left; background: #e6f0e9; color: #1f5a34; }
body.v2 .ans-offer:hover { background: #d9e9de; }
body.v2 .ans-offer-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #2e7a4a; white-space: nowrap; }
body.v2 .ans-offer-go svg { width: 16px; height: 16px; }
body.v2 .ans-combo { background: #e6f0e9; color: #1f5a34; }
body.v2 .ans-combo.is-active { background: #d6e5ef; color: #1e4f78; }
body.v2 .ans-warn { color: #8a4b12; font-weight: 600; white-space: nowrap; }
body.v2 .ans-combo-btn { flex: 0 0 auto; border: 0; border-radius: 8px; background: #2e7a4a; color: #fff; font: inherit; font-size: 12px; font-weight: 600; padding: 8px 12px; cursor: pointer; white-space: normal; max-width: 46%; text-align: center; line-height: 1.25; }   /* R300: "Δείξε τη διαδρομή μέσω …" wraps to two lines */
body.v2 .ans-combo.is-active .ans-combo-btn { background: #2a6b9e; }
body.v2 .ans-combo-btn:disabled { opacity: 0.6; cursor: progress; }
body.v2 .v2-combo { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: #e6f0e9; border: 1px solid #c5dccb; }
body.v2 .v2-combo.is-active { background: #d6e5ef; border-color: #b5cde0; }
body.v2 .v2-combo-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.v2 .v2-combo-txt strong { font-size: 14px; color: #1a1f2e; }
body.v2 .v2-combo-txt span { font-size: 12px; color: #3a4050; }
body.v2 .v2-combo-btn { flex: 0 0 auto; max-width: 46%; border: 0; border-radius: 10px; background: #2e7a4a; color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; padding: 9px 12px; cursor: pointer; text-align: center; line-height: 1.25; }
body.v2 .v2-combo.is-active .v2-combo-btn { background: #2a6b9e; }
body.v2 .v2-combo-btn:disabled { opacity: 0.6; cursor: progress; }
body.v2 .v2-actions { display: flex; justify-content: flex-end; margin: 8px 0 0; }
body.v2 .v2-aff { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; margin: 14px 0 0; padding: 12px 14px; border: 1.5px solid #c6cfda; border-radius: 12px; background: #f6f8fb; color: #1a1f2e; text-decoration: none; }
body.v2 .v2-aff:hover { border-color: #2a6b9e; background: #eef4f9; }
body.v2 .v2-aff strong { grid-column: 1; font-size: 14px; font-weight: 600; }
body.v2 .v2-aff small { grid-column: 1; font-size: 11.5px; color: #5e6578; margin-top: 2px; }
body.v2 .v2-aff-go { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; width: 30px; height: 30px; border-radius: 999px; background: #2a6b9e; color: #fff; align-items: center; justify-content: center; }
body.v2 .v2-aff-go svg { width: 14px; height: 14px; }
@media print { body.v2 .v2-aff { display: none; } }
body.v2 .v2-action { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #c6cfda; background: transparent; color: #3a4050; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
body.v2 .v2-action:hover { border-color: #2a6b9e; color: #2a6b9e; }
body.v2 .v2-empty[hidden], body.v2 #v2-result[hidden] { display: none; }
body.v2 .sh-lead { margin: 0; font-size: 13px; color: #3a4050; line-height: 1.4; }
body.v2 .sh-scale { display: flex; justify-content: space-between; font-size: 11px; color: #8a8f9e; margin-top: -8px; }
body.v2 .v2-tv { font-size: 17px; font-variant-numeric: tabular-nums; }
body.v2 #v2-tv-range { width: 100%; accent-color: #2a6b9e; }
@media (min-width: 960px) {
  body.v2 #v2-panel { width: 460px; padding: 20px 20px 28px; }
  /* R268: the map gets its own area beside the column instead of running
     underneath it. Padding the hidden strip does not work: map.js sets
     maxBounds with viscosity 1, which clamps the centre back and cancels
     the padding (same trap R137 hit vertically). With the container
     starting at 460px, Leaflet's own centre IS the visible centre. */
  body.v2 #map-container { left: 460px; }
}
/* R298: the map-only UI stays on the map page */
body.v2[data-page]:not([data-page="map"]) #v2-panel, body.v2[data-page]:not([data-page="map"]) #v2-sheets,
body.v2[data-page]:not([data-page="map"]) #toll-side-panel, body.v2[data-page]:not([data-page="map"]) .toll-tooltip,
body.v2[data-page]:not([data-page="map"]) .city-ac-dropdown { display: none !important; }
body.v2 .v2-grab { display: none; }
/* R296: result first on every viewport — the route line replaces the
   inputs once there is a result; "Αλλαγή" unfolds them. */
body.v2 .v2-summary { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 4px; padding: 2px 0; border: 0; background: transparent;
  font: inherit; color: var(--ink, #1a1f2e); cursor: pointer; text-align: left; }
body.v2 .v2-summary[hidden] { display: none; }
body.v2 .v2-summary-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.v2 .v2-summary-route { min-width: 0; font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.v2 .v2-summary-sub { font-size: 13px; color: #5e6578; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.v2 .v2-summary-sub b { color: #1a1f2e; font-weight: 600; }
body.v2 .v2-summary-price { display: none; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
body.v2 .v2-summary-edit { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #fff; background: #2a6b9e;
  padding: 9px 16px; border-radius: 999px; box-shadow: 0 2px 8px rgba(42,107,158,0.35); transition: background-color .12s, transform .08s; }
body.v2:not(.v2-edit) .v2-summary:hover .v2-summary-edit { background: #1e4f78; }
body.v2.v2-edit .v2-summary:hover .v2-summary-edit { background: #c4d9e9; }
body.v2 .v2-summary:active .v2-summary-edit { transform: scale(0.96); }
body.v2.v2-edit .v2-summary-edit { background: #d6e5ef; color: #1e4f78; box-shadow: none; }
body.v2.v2-has-result:not(.v2-edit) .v2-in { display: none; }
body.v2 #v2-set-slot .v2-quiet { margin-top: 10px; }
body.v2 #v2-set-slot .chips { margin-top: 10px; }
@media (max-width: 959px) {
  /* R260: bottom sheet. Three heights via body.v2-s-peek / -half / -full;
     the grabber and the summary line are the drag zone (js/v2.js). */
  body.v2 #map-container { bottom: 0; }
  body.v2 #v2-panel { top: auto; bottom: 0; left: 0; right: 0; width: auto; border-right: 0; border-top: 1px solid var(--line, #e6ebf1);
    border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgba(26,31,46,0.12); padding: 0 16px calc(20px + env(safe-area-inset-bottom));
    height: 55vh; height: 55dvh; max-height: calc(100vh - var(--topbar-h, 54px) - 8px); max-height: calc(100dvh - var(--topbar-h, 54px) - 8px);
    transition: height 0.25s cubic-bezier(0.4,0,0.2,1); overflow-y: auto; }
  body.v2.v2-s-peek #v2-panel { height: 92px; overflow: hidden; }
  body.v2.v2-s-full #v2-panel { height: calc(100vh - var(--topbar-h, 54px) - 8px); height: calc(100dvh - var(--topbar-h, 54px) - 8px); }
  body.v2 .v2-grab { display: flex; position: sticky; top: 0; z-index: 2; width: calc(100% + 32px); margin: 0 -16px; height: 22px; align-items: center; justify-content: center;
    background: var(--paper, #fbfcfd); border: 0; padding: 0; cursor: grab; touch-action: none; }
  body.v2 .v2-grab span { width: 40px; height: 4px; border-radius: 2px; background: #c6cfda; }
  body.v2 .v2-summary { min-height: 56px; margin: 0 0 2px; touch-action: none; }
  body.v2 .v2-summary-route { font-size: 16px; font-weight: 700; }
  body.v2 .v2-summary-sub { font-size: 12.5px; }
  /* the price repeats the card — only when the sheet is folded to a peek */
  body.v2.v2-s-peek .v2-summary-price { display: inline; }
  body.v2 .v2-summary-edit { padding: 8px 14px; font-size: 13.5px; }
  body.v2 .v2-prompt { font-size: 18px; margin-top: 4px; }
  body.v2 .v2-card { margin-top: 6px; }
  body.v2 .v2-analyse { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 -8px 12px -8px rgba(26,31,46,0.25); }
  /* controls that overlap the sheet's top edge */
  body.v2.results-open #map-controls { display: none; }
}

/* ── 2. The card, chips, stations, sheets (= tools/route-page.js CSS) ── */
/* ── R256: route page v2 ─────────────────────────────────────── */
body.v2 .v2-card { background: var(--paper, #fbfcfd); border: 1px solid var(--line, #e6ebf1); border-radius: 16px; box-shadow: 0 2px 10px rgba(26,31,46,0.07), 0 1px 3px rgba(26,31,46,0.05); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 12px; margin: 12px 0 0; }
body.v2 .ans-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
body.v2 .ans-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #5e6578; }
body.v2 .ans-mode { font-size: 11px; color: #8a8f9e; white-space: nowrap; }
body.v2 .ans-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
body.v2 .ans-price { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
body.v2 .ans-price-wrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
body.v2 .ans-total-line { font-size: 15px; color: #3a4050; white-space: nowrap; }
body.v2 .ans-total-line b { font-size: 18px; font-weight: 700; color: #1a1f2e; font-variant-numeric: tabular-nums; }
body.v2 .ans-total-line[hidden] { display: none; }
body.v2 .ans-bypass { text-align: left; }
body.v2 .ans-bypass > span { flex: 1 1 auto; min-width: 0; }
body.v2 .ans-facts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-bottom: 3px; text-align: right; }
body.v2 .ans-facts strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.v2 .ans-facts span { font-size: 12px; color: #5e6578; }
body.v2 .ans-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #e9edf2; }
body.v2 .ans-bar i { display: block; height: 100%; }
body.v2 .ans-bar .b-toll { background: #2e7a4a; }
body.v2 .ans-bar .b-fuel { background: #e0a63a; }
body.v2 .ans-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #3a4050; flex-wrap: wrap; }
body.v2 .ans-legend b { font-weight: 600; font-variant-numeric: tabular-nums; }
body.v2 .ans-legend .tot b { font-weight: 700; color: #1a1f2e; }
body.v2 .ans-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; vertical-align: 1px; }
body.v2 .ans-split[hidden] { display: none; }
body.v2 .ans-bypass { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #d6e5ef; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: #1e4f78; text-decoration: none; }
body.v2 .ans-bypass strong { font-weight: 600; }
body.v2 .ans-heavy { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #fbf1e6; color: #8a4b12; font-size: 12px; line-height: 1.35; }
body.v2 .ans-heavy[hidden] { display: none; }
body.v2 .ans-attiki { background: #eef4f9; color: #1e4f78; }
body.v2 .ans-foot { font-size: 11px; color: #8a8f9e; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.v2 .ans-foot .ok { width: 6px; height: 6px; border-radius: 50%; background: #2e7a4a; display: inline-block; }
body.v2 .chips { display: flex; gap: 8px; margin: 12px 0 0; flex-wrap: wrap; align-items: center; }
/* R269/R270: inline segments — vehicle (emoji pills, selected grows to emoji + name) and trip (own row, both states named) */
body.v2 .seg { display: flex; align-items: center; gap: 2px; background: #f3f6f9; border-radius: 999px; padding: 3px; }
body.v2 .seg > button { border: 0; border-radius: 999px; background: transparent; color: #3a4050; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
body.v2 .seg > button:hover { color: #1a1f2e; }
body.v2 .seg > button:focus-visible { outline: 2px solid #2a6b9e; outline-offset: -2px; }
body.v2 .seg-em { font-size: 17px; line-height: 1; }
body.v2 .seg-cat { flex: 1 1 100%; }
body.v2 .seg-cat > button { flex: 1 1 0; min-width: 0; height: 36px; padding: 0 8px; }
body.v2 .seg-cat > button .seg-l { display: none; }
body.v2 .seg-cat > button[aria-pressed="true"] { flex: 0 0 auto; padding: 0 14px; background: #fff; color: #1a1f2e; box-shadow: 0 1px 3px rgba(26,31,46,0.14); }
body.v2 .seg-cat > button[aria-pressed="true"] .seg-l { display: inline; }
body.v2 .seg-help { flex: 1 1 100%; margin: -4px 0 0; padding: 0 6px; border: 0; background: transparent; color: #2a6b9e; font: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
body.v2 .seg-help:hover { text-decoration: underline; }
body.v2 .seg-help svg { transform: rotate(-90deg); }
body.v2 .chip.chip-time { flex: 1 1 100%; width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; justify-content: flex-start; text-align: left; }
body.v2 .chip-time .chip-em { font-size: 16px; margin-right: 2px; }
body.v2 .chip-time .chip-txt { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
body.v2 .chip-time .chip-txt .tnum { color: #5e6578; font-weight: 500; }
body.v2 .seg-info { flex: 0 0 26px; width: 26px; height: 26px; padding: 0; margin: 0 3px 0 2px; border-radius: 50%; border: 1.5px solid #c6cfda; background: #fff; color: #5e6578; font-family: Georgia, serif; font-style: italic; font-size: 13px; }
body.v2 .seg-info:hover { border-color: #2a6b9e; color: #2a6b9e; }
/* R277 (mockup 2A): the fuel chip is one full-width line — type · the one number */
body.v2 .chip.chip-fuel { flex: 1 1 100%; width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; justify-content: flex-start; text-align: left; }
body.v2 .chip-fuel .chip-em { font-size: 17px; margin-right: 2px; }
body.v2 .chip-fuel .chip-txt { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
body.v2 .chip-fuel .chip-txt .tnum { color: #5e6578; font-weight: 500; }
body.v2 .chip-fuel svg:last-child { flex-shrink: 0; }
body.v2 .seg-trip { flex: 1 1 100%; }
body.v2 .seg-trip > button { flex: 1 1 0; min-width: 0; height: 36px; padding: 0 10px; }
body.v2 .seg-trip > button .seg-em { font-size: 15px; }
/* R277: selected = white card like the vehicle pills; the action colour belongs to Υπολογισμός alone */
body.v2 .seg-trip > button[aria-pressed="true"] { background: #fff; color: #1a1f2e; box-shadow: 0 1px 3px rgba(26,31,46,0.14); }
body.v2 .chips::-webkit-scrollbar { display: none; }
body.v2 .chip { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid #c6cfda; background: #fbfcfd; color: #1a1f2e; font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; flex: 0 0 auto; }
body.v2 .chip:hover { border-color: #2a6b9e; }
body.v2 .chip, body.v2 .ans-bypass, body.v2 .seg-help { transition: transform 0.08s, background-color 0.12s, border-color 0.12s; }
body.v2 .chip:active, body.v2 .ans-bypass:active { transform: scale(0.97); background: #e6eef6; }
body.v2 .chip[aria-expanded="true"], body.v2 #v2-settings .chip[aria-expanded="true"] { border: 1.5px solid #2a6b9e; background: #e2edf6; color: #1e4f78; }
body.v2 .chip[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
body.v2 .ans-bypass[aria-expanded="true"] { background: #c4d9e9; }
body.v2 .chip:focus-visible { outline: 2px solid #2a6b9e; outline-offset: 2px; }
body.v2 .chip .tnum { font-variant-numeric: tabular-nums; }
body.v2 .chip svg:last-child { color: #5e6578; }
body.v2 .chips-hint { font-size: 11px; color: #8a8f9e; margin: 6px 0 0; }
body.v2 .st-head { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 0; }
body.v2 .st-head h2 { margin: 0; font-size: 15px; }
body.v2 .st-head span { font-size: 12px; color: #8a8f9e; }
/* R295: grouped summary + folded station list */
body.v2 .st-ops { margin-top: 8px; border: 1px solid #e3e8ee; border-radius: 14px; background: #fff; overflow: hidden; }
body.v2 .st-op { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; padding: 10px 12px; border-bottom: 1px solid #f0f2f5; }
body.v2 .st-op:last-child { border-bottom: 0; }
body.v2 .st-op b { font-size: 14px; font-weight: 600; }
body.v2 .st-op small { grid-column: 1; font-size: 12px; color: #8a8f9e; }
body.v2 .st-op em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.v2 .st-op-bar { grid-column: 1 / -1; height: 4px; margin-top: 6px; border-radius: 2px; background: #eef1f5; overflow: hidden; }
body.v2 .st-op-bar i { display: block; height: 100%; background: #7fa9c9; border-radius: 2px; }
body.v2 .st-bps { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
body.v2 .st-bpc { border: 1.5px solid #9cc0dc; border-radius: 12px; background: #f4f8fb; padding: 10px 12px; cursor: pointer; }
body.v2 .st-bpc > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
body.v2 .st-bpc b { font-size: 14px; }
body.v2 .st-bpc em { font-style: normal; font-size: 13px; white-space: nowrap; }
body.v2 .st-bpc .sv { color: #2e7a4a; font-weight: 700; } body.v2 .st-bpc .mn { color: #b8502d; font-weight: 600; }
body.v2 .st-bpc small { display: block; margin-top: 3px; font-size: 12px; color: #5e6578; }
body.v2 .st-bpc.is-sel { border-color: #2a6b9e; }
body.v2 .st-all { margin-top: 8px; }
body.v2 .st-all > summary { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-radius: 12px; background: #eef1f5; color: #1e4f78; font-size: 13.5px; font-weight: 600; cursor: pointer; list-style: none; }
body.v2 .st-all > summary::-webkit-details-marker { display: none; }
body.v2 .st-all > summary > span { color: #5e6578; font-weight: 400; }
body.v2 .st-all-chev { display: inline-block; transition: transform .15s; }
body.v2 .st-all[open] .st-all-chev { transform: rotate(180deg); }
body.v2 .st-all .st-list { margin-top: 8px; }
body.v2 .st-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
body.v2 .st { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid #e6ebf1; border-left: 3px solid #2e7a4a; background: #fbfcfd; }
body.v2 .st.bridge { border-left-color: #2a6b9e; }
body.v2 .st-n { width: 22px; height: 22px; border-radius: 50%; background: #f3f6f9; color: #5e6578; font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
body.v2 .st-name { flex: 1 1 0; font-size: 14px; font-weight: 500; min-width: 0; }
body.v2 .st-hwy { display: block; font-size: 11px; color: #8a8f9e; font-weight: 400; }
body.v2 .st-price { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 13px; color: #1a1f2e; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.v2 .st-price s { color: #8a8f9e; margin-right: 4px; }
body.v2 .st-badge { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; background: #e6f0e9; color: #2e7a4a; flex-shrink: 0; }
body.v2 .st-badge[hidden] { display: none; }
body.v2 .st.avoid { border-left-color: #2a6b9e; flex-wrap: wrap; }
body.v2 .st.avoid .st-badge { background: #d6e5ef; color: #1e4f78; }
body.v2 .st-bp { flex: 1 1 100%; display: none; justify-content: space-between; gap: 10px; font-size: 12px; color: #3a4050; padding: 8px 0 0 32px; border-top: 1px dashed #e6ebf1; margin-top: 8px; }
body.v2 .st.avoid .st-bp { display: flex; }
body.v2 .st-bp b { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-weight: 500; white-space: nowrap; }
body.v2 .st-bp b .sv { color: #2e7a4a; font-weight: 600; } .st-bp b .mn { color: #b8502d; }
body.v2 .ans-bypass small { display: block; font-size: 11px; opacity: 0.85; font-weight: 400; }
body.v2 .ans-bypass[hidden] { display: none; }
/* sheets */
body.v2 .sh-back { position: fixed; inset: 0; background: rgba(26,31,46,0.42); opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 1490; }
body.v2 .sh { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; background: #fbfcfd; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgba(26,31,46,0.12); padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; transform: translateY(105%); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); max-width: 560px; margin: 0 auto; }
body.v2.sh-open .sh-back { opacity: 1; pointer-events: auto; }
body.v2 .sh.is-open { transform: none; }
body.v2 .sh-grab { width: 40px; height: 4px; border-radius: 2px; background: #c6cfda; align-self: center; }
body.v2 .sh-head { display: flex; align-items: center; justify-content: space-between; }
body.v2 .sh-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
body.v2 .sh-seg { display: grid; gap: 6px; background: #f3f6f9; border: 1px solid #e6ebf1; border-radius: 999px; padding: 4px; }
body.v2 .sh-seg.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.v2 .sh-seg.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.v2 .sh-seg button { height: 40px; border: 0; border-radius: 999px; background: transparent; color: #3a4050; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
body.v2 .sh-seg button[aria-pressed="true"] { background: #2a6b9e; color: #fbfcfd; font-weight: 600; }
body.v2 .sh-seg button[hidden] { display: none; }
body.v2 .sh-opts { display: flex; flex-direction: column; gap: 8px; }
body.v2 .sh-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 14px; box-sizing: border-box; border: 1.5px solid #c6cfda; border-radius: 10px; background: #fbfcfd; font: inherit; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; color: #1a1f2e; }
body.v2 .sh-opt > span:first-child { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
body.v2 .sh-opt small { display: block; font-size: 12px; color: #5e6578; font-weight: 400; line-height: 1.3; margin-top: 2px; }
body.v2 .sh-opt[aria-pressed="true"] { border-color: #2a6b9e; background: #d6e5ef; }
body.v2 .sh-opt .p { flex-shrink: 0; font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: 14px; font-variant-numeric: tabular-nums; }
body.v2 .sh-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.v2 .sh-f label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: #5e6578; text-transform: uppercase; margin-bottom: 6px; }
body.v2 .sh-f label small { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-weight: 400; letter-spacing: 0; text-transform: none; color: #8a8f9e; }
body.v2 .sh-f input { width: 100%; box-sizing: border-box; height: 52px; border: 1.5px solid #c6cfda; border-radius: 10px; padding: 0 14px; font: inherit; font-size: 22px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; background: #fbfcfd; color: #1a1f2e; }
body.v2 .sh-f input:focus { outline: 2px solid #2a6b9e; outline-offset: 1px; border-color: #2a6b9e; }
body.v2 .sh-note { font-size: 12px; color: #8a8f9e; }
body.v2 .sh-live { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: #f3f6f9; font-size: 13px; color: #3a4050; }
body.v2 .sh-live b { font-size: 15px; font-weight: 700; color: #1a1f2e; font-variant-numeric: tabular-nums; }
body.v2 .sh-done { height: 48px; border: 0; border-radius: 10px; background: #2a6b9e; color: #fbfcfd; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
body.v2 .sw { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #5e6578; cursor: pointer; }
body.v2 .sw i { width: 44px; height: 26px; border-radius: 999px; background: #c6cfda; position: relative; transition: background 0.15s; }
body.v2 .sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
body.v2 .sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
body.v2 .sw input:checked + i { background: #2e7a4a; }
body.v2 .sw input:checked + i::after { transform: translateX(18px); }
body.v2 .sw input:focus-visible + i { outline: 2px solid #2a6b9e; outline-offset: 2px; }
@media (min-width: 720px) {
body.v2 .v2-card { padding: 20px; }
body.v2 .ans-price { font-size: 48px; }
body.v2 .sh { left: 50%; right: auto; width: 520px; transform: translate(-50%, 105%); border-radius: 16px 16px 0 0; }
body.v2 .sh.is-open { transform: translate(-50%, 0); }
}
@media (min-width: 960px) {
  /* R288: on desktop the sheet is a popover that drops out of the chip that
     opened it (openSheet sets top/max-height), inside the column — not a
     phone sheet rising from the bottom of the screen. */
  body.v2 .sh, body.v2 .sh.is-open { left: 12px; right: auto; bottom: auto; width: 436px; margin: 0; box-sizing: border-box; border-radius: 14px; overflow-y: auto; padding-bottom: 16px; }
  body.v2 .sh { transform: translateY(-10px) scale(0.98); opacity: 0; transform-origin: top center; transition: transform 0.16s ease-out, opacity 0.16s ease-out, visibility 0s 0.16s; visibility: hidden; box-shadow: 0 12px 40px rgba(26,31,46,0.22); }
  body.v2 .sh.is-open { transform: none; opacity: 1; visibility: visible; transition: transform 0.16s ease-out, opacity 0.16s ease-out; }
  body.v2 .sh .sh-grab { display: none; }
  body.v2 .sh-back { background: rgba(26,31,46,0.18); }
}
