/* Terminal viewport — utovari / vozila */
body.bu-term {
  overflow: hidden;
  height: 100dvh;
  background: #f1f5f9;
}
body.bu-term .bu-foot,
body.bu-term .bu-dock,
body.bu-term .bu-support,
body.bu-term #bu-agent,
body.bu-term .bu-free {
  display: none !important;
}
body.bu-term .bu-header .hide-sm,
body.bu-term .bu-header .bu-more {
  display: none !important;
}
body.bu-term .bu-header {
  overflow: visible;
  z-index: 60;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 8px 16px;
}
body.bu-term .bu-logo {
  display: flex;
  align-items: center;
  height: 58px;
}
body.bu-term .bu-logo-img {
  height: 52px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  object-position: left center;
}
body.bu-term .bu-header {
  padding: 6px 14px;
  min-height: 68px;
  gap: 10px;
}
body.bu-term .bu-tabs {
  max-width: 780px;
  background: transparent;
  gap: 8px;
  padding: 0;
}
body.bu-term .bu-tabs a {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
  min-height: 52px;
  white-space: normal;
}
body.bu-term .bu-tabs a.bu-nav-cargo {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}
body.bu-term .bu-tabs a.bu-nav-truck {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
body.bu-term .bu-tabs a.bu-nav-dir {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}
body.bu-term .bu-tabs a strong {
  font-size: 16px;
  font-weight: 900;
}
body.bu-term .bu-tabs a small {
  display: block !important;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  color: #475569;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: none;
}
body.bu-term .bu-tabs a.is-on {
  box-shadow: 0 0 0 2px currentColor;
}
body.bu-term .bu-tabs a.bu-nav-cargo.is-on {
  background: #bbf7d0;
  border-color: #16a34a;
  color: #14532d;
}
body.bu-term .bu-tabs a.bu-nav-truck.is-on {
  background: #bfdbfe;
  border-color: #2563eb;
  color: #1e3a8a;
}
body.bu-term .bu-tabs a.bu-nav-dir.is-on {
  background: #fed7aa;
  border-color: #ea580c;
  color: #9a3412;
}
body.bu-term .bu-header .bu-userchip,
body.bu-term .bu-header .bu-right > a.bu-btn.ghost,
body.bu-term .bu-header .bu-post-wrap {
  display: none !important;
}
body.bu-term .bu-board {
  height: calc(100dvh - 68px - 58px);
  max-height: calc(100dvh - 68px - 58px);
}
.bu-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}
.bu-lane {
  min-height: 0;
  overflow: visible;
  max-height: none;
}
.bu-lane-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.bu-minibar { display: none; }
body.bu-filters-min .bu-lanes,
body.bu-filters-min .bu-search-row,
body.bu-filters-closed .bu-lanes,
body.bu-filters-closed .bu-search-row { display: none; }
body.bu-filters-min .bu-minibar,
body.bu-filters-closed .bu-minibar {
  display: flex; gap: 8px; align-items: center; margin: 4px 0;
}
.bu-minibar-open {
  flex: 1; text-align: left; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: 8px 12px; font-weight: 800; cursor: pointer;
}
.bu-search-row {
  display: flex; gap: 8px; align-items: center; margin-top: 8px;
}
.bu-search-hint { margin: 0; font-size: 11px; color: var(--muted); }
.bu-veh-chrome {
  display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto;
  padding: 4px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.bu-chrome-row { margin-bottom: 0; padding-bottom: 0; border-bottom: 1px solid #cbd5e1; }
.bu-tabs-bar {
  display: flex; align-items: flex-end; gap: 0; margin: 0; min-height: 34px;
}
.bu-tabs-scroll { display: flex; gap: 0; overflow-x: auto; flex: 0 1 auto; }
body.bu-term .bu-stab, body.bu-term .bu-otab {
  border-radius: 8px 8px 0 0;
  border: 1px solid #cbd5e1;
  border-bottom: 0;
  margin-right: -1px;
  height: 32px;
  background: #e2e8f0;
}
body.bu-term .bu-stab.is-on, body.bu-term .bu-otab.is-on {
  background: #fff;
  position: relative;
  z-index: 1;
}
body.bu-term .bu-tab-add {
  width: 32px; height: 32px; margin: 0 0 0 4px;
  border-radius: 8px 8px 0 0; border: 1px solid #cbd5e1; border-bottom: 0;
  background: #f1f5f9; font-size: 18px; font-weight: 700; cursor: pointer;
}
.bu-offer-tabs { padding: 0 !important; min-height: 0; }
body.bu-term .bu-geo-wrap { z-index: 30; }
body.bu-term .bu-geo-list { z-index: 80; }
.bu-mini-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 6px 0 8px;
}
.bu-mini-load, .bu-mini-unload {
  border-radius: 10px;
  padding: 8px;
  min-height: 56px;
}
.bu-mini-load { background: #f0fdf4; border: 1px solid #86efac; }
.bu-mini-unload { background: #fef2f2; border: 1px solid #fca5a5; }
.bu-mini-load small, .bu-mini-unload small {
  display: block; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px;
}
.bu-mini-load small { color: #15803d; }
.bu-mini-unload small { color: #b91c1c; }
.bu-mini-load b, .bu-mini-unload b { font-size: 13px; line-height: 1.25; }
body.bu-term .pin.cargo { background: #16a34a; }
body.bu-term .pin.truck { background: #2563eb; }
.bu-sort-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}
.bu-sort-lab, .bu-advbar-lab {
  font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0;
}
.bu-sort-hint { margin: 0; font-size: 10px; color: var(--muted); line-height: 1.3; }
.bu-sort-col .bu-chip, .bu-sort-col .bu-btn { width: 100%; justify-content: center; }
.bu-chrome-row { display: grid; gap: 6px; margin-bottom: 8px; }
.bu-advbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 8px; padding: 8px 10px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 14px;
}
.bu-advbar .bu-dim { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--muted); }
.bu-advbar .bu-dim input { width: 52px; height: 32px; border-radius: 8px; border: 1px solid var(--line); padding: 0 6px; }
.bu-live-drop { position: relative; margin-left: auto; }
.bu-live-now {
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 6px 10px; font-weight: 800; font-size: 12px; cursor: pointer;
}
.bu-live-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 40;
  width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; box-shadow: 0 12px 32px rgba(15,23,42,.12);
}
.bu-live-drop:hover .bu-live-menu, .bu-live-drop:focus-within .bu-live-menu { display: grid; gap: 8px; }
body.bu-term .bu-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-content: start;
  min-height: 100%;
}
body.bu-term .bu-item.compact { padding: 12px; }
body.bu-term .bu-tools-pop { display: none; }
body.bu-term .bu-appbar-tools:hover .bu-tools-pop,
body.bu-term .bu-appbar-tools:focus-within .bu-tools-pop,
body.bu-term .bu-appbar-tools.is-open .bu-tools-pop {
  display: grid;
}
body.bu-term .bu-appbar { z-index: var(--bu-z-appbar, 200); }
body.bu-term .bu-tools-pop { z-index: 90; }
@media (max-width: 899px) {
  .bu-lanes { grid-template-columns: 1fr; }
  .bu-sort-col { flex-direction: row; flex-wrap: wrap; }
  .bu-sort-col .bu-chip, .bu-sort-col .bu-btn { width: auto; }
  body.bu-term .bu-logo-img { height: 48px; }
  body.bu-term .bu-tabs a small { display: none !important; }
  body.bu-term .bu-tabs a { min-height: 44px; padding: 8px; }
}
body.bu-term .bu-board-bar {
  overflow: visible;
  z-index: 20;
  padding: 4px 10px 6px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
body.bu-term .bu-list-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 6px 10px 4px; border-bottom: 1px solid var(--line); background: #fff;
  flex: 0 0 auto;
}
body.bu-term .bu-list-sort { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
body.bu-term .bu-list-sort > span {
  font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
body.bu-term .bu-cols-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.55fr) minmax(0, 0.6fr) minmax(0, 0.5fr) minmax(0, 0.5fr);
  gap: 4px;
  padding: 6px 10px;
  font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: #f8fafc; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 3;
  align-items: center;
  text-align: center;
}
body.bu-term .bu-cols-head span {
  display: block;
  text-align: center;
  line-height: 1.2;
}
body.bu-term .bu-cols-head span:nth-child(1),
body.bu-term .bu-cols-head span:nth-child(2) {
  text-align: left;
}
body.bu-term.bu-board-truck .bu-cols-head,
body.bu-term.bu-board-truck .bu-row {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.55fr) minmax(0, 0.65fr) minmax(0, 0.7fr);
}
body.bu-term .bu-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.55fr) minmax(0, 0.6fr) minmax(0, 0.5fr) minmax(0, 0.5fr);
  gap: 4px;
  align-items: center;
  cursor: pointer;
  padding: 8px 10px;
  margin: 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 11px;
  line-height: 1.3;
  min-height: 40px;
}
body.bu-term .bu-c {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.bu-term .bu-c-from,
body.bu-term .bu-c-to {
  justify-content: flex-start;
  text-align: left;
  font-weight: 800;
}
body.bu-term .bu-c-from { color: #15803d; }
body.bu-term .bu-c-to { color: #b91c1c; }
body.bu-term .bu-c-price {
  flex-direction: column;
  gap: 0;
  font-variant-numeric: tabular-nums;
}
body.bu-term .bu-c-eurkm {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #0f766e;
}
body.bu-term .bu-eurkm.good { color: #15803d; }
body.bu-term .bu-eurkm.muted { color: #94a3b8; font-weight: 700; }
body.bu-term .bu-c-price strong {
  font-size: 12px;
  color: #0f172a;
}
body.bu-term .bu-live-dot {
  width: 8px; height: 8px; border-radius: 99px; background: #22c55e;
  display: inline-block; margin-right: 6px; box-shadow: 0 0 0 3px rgba(34,197,94,.25);
}
body.bu-term .bu-lang select {
  min-width: 148px; height: 40px; font-weight: 800; border-radius: 12px;
}
body.bu-term .bu-tools-pop { display: none !important; }
body.bu-term .bu-appbar-tools:hover .bu-tools-pop,
body.bu-term .bu-appbar-tools:focus-within .bu-tools-pop,
body.bu-term .bu-appbar-tools.is-open .bu-tools-pop {
  display: grid !important;
}
body.bu-term .bu-appbar-t {
  min-width: 108px;
  justify-content: center;
}
body.bu-term .bu-board-body,
body.bu-term .bu-term-grid {
  display: grid;
  grid-template-columns: minmax(0, 26%) minmax(0, 50%) minmax(0, 24%);
  height: calc(100% - 0px);
  min-height: 0;
  position: relative;
  isolation: isolate;
}
body.bu-term .bu-map-wrap,
body.bu-term .bu-list,
body.bu-term .bu-dispo {
  position: relative;
  inset: auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 1;
}
body.bu-term .bu-map-wrap { border-right: 1px solid var(--line); z-index: 1; }
body.bu-term .bu-list {
  z-index: 2;
  width: auto;
  left: auto;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-right: 1px solid var(--line);
}
body.bu-term .bu-list .bu-tabs-bar,
body.bu-term .bu-list .bu-livebar,
body.bu-term .bu-offer-tabs { flex: 0 0 auto; padding: 8px 10px 0; }
body.bu-term .bu-feed {
  flex: 1 1 auto;
  overflow: auto;
  padding: 4px 6px 12px;
  min-height: 0;
}
body.bu-term #bu-detail.bu-detail-modal {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  z-index: 1210 !important;
  transform: none !important;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.bu-term .bu-detail:not(.bu-detail-modal) {
  position: absolute;
  inset: 88px 0 0 0;
  width: auto;
  z-index: 6;
  border: 0;
  box-shadow: none;
  background: #fff;
}
body.bu-term .bu-dispo {
  display: flex;
  flex-direction: column;
  background: #fff;
  z-index: 3;
}
body.bu-term .bu-dispo-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px 6px; border-bottom: 1px solid var(--line);
}
body.bu-term .bu-dispo-note {
  margin: 0; padding: 8px 12px; font-size: 12px; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
body.bu-term .bu-dispo-log { flex: 1; min-height: 0; padding: 10px 12px; }
body.bu-term .bu-dispo-form { padding: 10px; border-top: 1px solid var(--line); }

.bu-filter-top {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) 88px minmax(140px, 1.2fr) 88px auto;
  gap: 8px;
  align-items: end;
}
.bu-loc-from .bu-geo { border-color: #86efac; background: #f0fdf4; }
.bu-loc-to .bu-geo { border-color: #fca5a5; background: #fef2f2; }
.bu-rad-mini {
  display: grid; gap: 2px; font-size: 10px; font-weight: 800; color: var(--muted);
}
.bu-rad-mini input[type="range"] { width: 100%; accent-color: #16a34a; }
.bu-loc-to + .bu-rad-mini input[type="range"],
.bu-filter-top > .bu-rad-mini:nth-of-type(2) input { accent-color: #dc2626; }
.bu-lane-load { background: #f0fdf4 !important; border-color: #86efac !important; }
.bu-lane-unload { background: #fef2f2 !important; border-color: #fca5a5 !important; }
.bu-lane-load header span, .bu-from { color: #15803d !important; }
.bu-lane-unload header span, .bu-to { color: #b91c1c !important; }

.bu-offer-tabs {
  display: flex; gap: 4px; overflow-x: auto; min-height: 36px;
}
.bu-otab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; border-radius: 10px 10px 0 0;
  padding: 6px 10px; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.bu-otab.is-on { background: #ecfdf5; border-color: #86efac; color: #166534; }
.bu-otab.is-new { box-shadow: 0 0 0 2px #4ade80; animation: bu-glow 3s ease; }
.bu-otab i { font-style: normal; opacity: .55; cursor: pointer; }

.bu-item.is-seen {
  background-color: #f1f5f9;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 5px, rgba(15,23,42,.14) 5px, rgba(15,23,42,.14) 7px);
  opacity: .7;
  filter: saturate(.6);
}
.bu-item.is-new:not(.is-seen) {
  box-shadow: 0 0 0 2px #22c55e, 0 8px 24px rgba(34,197,94,.2);
  animation: bu-new-pulse 2.4s ease-in-out 3;
}
@keyframes bu-new-pulse {
  0%, 100% { box-shadow: 0 0 0 2px #22c55e, 0 8px 24px rgba(34,197,94,.15); }
  50% { box-shadow: 0 0 0 3px #4ade80, 0 10px 28px rgba(34,197,94,.35); }
}

.bu-split-card { display: grid; gap: 10px; }
@media (min-width: 420px) {
  .bu-split-card { grid-template-columns: 1fr 1fr; }
}
.bu-pane-load, .bu-pane-unload { border-radius: 14px; padding: 12px; }
.bu-pane-load { background: #f0fdf4; border: 1px solid #86efac; }
.bu-pane-unload { background: #fef2f2; border: 1px solid #fca5a5; }
.bu-pane-load h3, .bu-pane-unload h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.bu-truck-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.bu-truck-photos img, .bu-ph {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #e2e8f0;
}
.bu-ph { display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--muted); }

.bu-appbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  overflow: visible;
  height: 58px; display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 10px;
  padding: 0 14px env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15,23,42,.06);
}
.bu-appbar-a {
  background: #eff6ff; border-color: #93c5fd; color: #1d4ed8;
}
.bu-appbar-t {
  background: #0f172a; color: #fff; border-color: #0f172a;
}
.bu-appbar-a, .bu-appbar-t, .bu-appbar-dispo {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
  font-weight: 800; font-size: 13px; text-decoration: none; cursor: pointer;
}
.bu-appbar-pub {
  justify-self: center;
  height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: #16a34a; color: #fff; font-weight: 900; font-size: 14px;
  box-shadow: 0 8px 20px rgba(22,163,74,.35); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
}
.bu-appbar-tools { position: relative; justify-self: end; }
.bu-tools-pop {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 70;
  width: min(340px, calc(100vw - 24px));
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; box-shadow: 0 18px 50px rgba(15,23,42,.16);
  display: grid; gap: 6px;
}
.bu-tools-pop a { font-weight: 800; text-decoration: none; padding: 6px 4px; }
.bu-live-pop {
  position: fixed; right: 16px; bottom: 72px; z-index: 70;
  width: min(320px, calc(100vw - 24px));
  background: #052e16; color: #ecfdf5; border-radius: 16px; padding: 12px 14px;
  box-shadow: 0 16px 40px rgba(6,78,59,.4); font-weight: 800;
}
.bu-live-pop small { display: block; opacity: .7; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.bu-ai-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: #fff; margin-top: 8px;
  cursor: pointer; text-align: left; width: 100%; font: inherit;
}
.bu-term-why { margin: 0 0 8px; font-size: 12px; color: var(--muted); font-weight: 650; }
.bu-fuel-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.bu-fuel-row input { width: 72px; height: 32px; border-radius: 8px; border: 1px solid #334155; background: #0f172a; color: #fff; padding: 0 8px; }
.leaflet-interactive.bu-route-anim {
  stroke-dasharray: 14 10;
  animation: bu-dash 1.4s linear infinite;
}
@keyframes bu-dash { to { stroke-dashoffset: -48; } }

@media (max-width: 899px) {
  body.bu-term .bu-logo-img { height: 44px; max-width: min(160px, 30vw); }
  body.bu-term .bu-tabs a small { display: none; }
  body.bu-term .bu-term-grid {
    grid-template-columns: 1fr;
  }
  body.bu-term .bu-map-wrap.hidden-m,
  body.bu-term .bu-list.hidden-m,
  body.bu-term .bu-dispo.hidden-m {
    display: none !important;
  }
  body.bu-term .bu-map-wrap, body.bu-term .bu-list, body.bu-term .bu-dispo {
    grid-column: 1;
  }
  .bu-filter-top { grid-template-columns: 1fr 1fr; }
  .bu-filter-actions { grid-column: 1 / -1; }
  .hide-d { display: inline-flex !important; }
}
@media (min-width: 900px) {
  .hide-d { display: none !important; }
  body.bu-term .bu-switch { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .leaflet-interactive.bu-route-anim { animation: none; }
}
