/* 7.9.26 — launch chrome. Last CSS. Landing hero is NOT restyled here. */

/* —— Shared dark chrome: header + sidebar, one background —— */
body.bu-board-page .bu-board-header,
body.bu-nalog-page .bu-board-header,
body.bu-board-page .bu-board-sidebar,
body.bu-nalog-page .bu-board-sidebar {
  background-color: #08111d !important;
  background-image: url("../img/chrome-bg.svg") !important;
  background-size: cover !important;
  background-position: 0 0 !important;
  background-attachment: fixed !important;
  color: #e8eef6 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
body.bu-board-page .bu-board-header,
body.bu-nalog-page .bu-board-header {
  min-height: 44px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
body.bu-nalog-page .bu-header-nalog .bu-board-header-photo,
body.bu-nalog-page .bu-header-nalog .bu-board-header-overlay {
  display: none !important;
}
body.bu-board-page .bu-board-brand-lab,
body.bu-nalog-page .bu-board-brand-lab,
body.bu-board-page .bu-board-tab,
body.bu-nalog-page .bu-header-nalog .bu-board-header-title,
body.bu-nalog-page .bu-header-nalog .bu-board-header-kicker {
  color: #f8fafc !important;
}
body.bu-board-page .bu-board-tab {
  color: #cbd5e1 !important;
  border-color: transparent !important;
  background: transparent !important;
}
body.bu-board-page .bu-board-tab.is-on {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
body.bu-board-page .bu-board-login,
body.bu-board-page .bu-board-userchip,
body.bu-nalog-page .bu-board-userchip {
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
body.bu-board-page .bu-lang-btn-compact,
body.bu-nalog-page .bu-lang-btn-compact,
body.bu-board-page .bu-header-sound,
body.bu-nalog-page .bu-header-sound,
body.bu-board-page .bu-bell-board,
body.bu-nalog-page .bu-bell-board {
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 0 !important;
}
body.bu-board-page .bu-board-presence-btn { color: #e2e8f0 !important; }
body.bu-board-page .bu-board-sidebar-link { color: #dbe4f0 !important; }
body.bu-board-page .bu-board-sidebar-sec,
body.bu-nalog-page .bu-board-sidebar-sec {
  color: #93c5fd !important;
  letter-spacing: 0.1em;
}

/* —— Density: 100% should feel like ~80% zoom —— */
body.bu-board-page .bu-board-header-inner {
  min-height: 44px;
  padding: 0 10px !important;
  gap: 8px !important;
}
body.bu-board-page .bu-feed .bu-item.bu-row.compact {
  padding: 8px 12px !important;
  min-height: 48px !important;
  margin: 0 0 4px !important;
  border-radius: 10px !important;
}
body.bu-board-page .bu-feed .bu-c,
body.bu-board-page .bu-stab {
  font-size: 12.5px !important;
}
.bu-board-sidebar { width: 188px !important; }
.bu-board-sidebar-link { min-height: 32px !important; }

/* —— Chrome-like tabs: + sits next to last tab —— */
body.bu-board-page .bu-tabs-bar,
body.bu-board-page .bu-tabs-chrome .bu-tabs-bar {
  display: flex !important;
  align-items: flex-end;
  justify-content: flex-start !important;
  gap: 0;
  width: auto;
  max-width: 100%;
}
body.bu-board-page .bu-tabs-chrome .bu-tabs-scroll-wrap {
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: calc(100% - 36px) !important;
  min-width: 0;
  overflow-x: auto;
}
body.bu-board-page .bu-tabs-chrome .bu-tab-add,
body.bu-board-page .bu-tabs-chrome #bu-stab-add {
  flex: 0 0 auto !important;
  margin-left: 2px !important;
  align-self: flex-end;
}
.bu-stab.bu-tab-pop {
  animation: bu-tab-pop 0.22s ease;
}
@keyframes bu-tab-pop {
  from { transform: translateY(4px); opacity: 0.55; }
  to { transform: none; opacity: 1; }
}

/* —— Language: search first, no dump —— */
.bu-lang-searchy .bu-lang-menu,
.bu-lang-pick .bu-lang-menu {
  min-width: 220px;
  padding: 8px;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.bu-lang-q {
  width: 100%;
  height: 36px;
  border-radius: 9px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f8fafc;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
}
.bu-lang-empty {
  margin: 8px 4px 2px;
  font-size: 12px;
  color: #94a3b8;
}
.bu-lang-opt {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #e2e8f0;
  padding: 7px 8px;
  border-radius: 8px;
  font-weight: 750;
  cursor: pointer;
}
.bu-lang-opt:hover,
.bu-lang-opt.is-on { background: rgba(29, 111, 216, 0.28); }

/* —— Twin bar: filteri | obavijesti —— */
.bu-twin-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
  margin: 6px 0 8px;
}
.bu-twin-bars .bu-filter-bar,
.bu-twin-bars .bu-alert-bar,
body.bu-board-page .bu-twin-bars .bu-filter-bar,
body.bu-board-page .bu-twin-bars .bu-alert-bar {
  min-height: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 4px 10px !important;
  border-radius: 11px !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
}
body.bu-board-page .bu-alert-bar.is-on {
  background: #dcfce7 !important;
  border: 1px solid #16a34a !important;
  color: #14532d !important;
}
body.bu-board-page .bu-alert-bar.is-blocked,
body.bu-board-page .bu-alert-bar.is-off,
body.bu-board-page .bu-alert-bar:not(.is-on) {
  background: #fee2e2 !important;
  border: 1px solid #ef4444 !important;
  color: #991b1b !important;
}
body.bu-board-page .bu-alert-bar.is-on .bu-alert-hint,
body.bu-board-page .bu-alert-bar.is-on .bu-alert-bar-act { color: #166534 !important; }
body.bu-board-page .bu-alert-bar:not(.is-on) .bu-alert-hint,
body.bu-board-page .bu-alert-bar:not(.is-on) .bu-alert-bar-act { color: #b91c1c !important; }

/* —— Filters open: blur the board behind —— */
.bu-filter-scrim {
  position: fixed;
  inset: 0;
  z-index: 42;
  background: rgba(8, 17, 29, 0.45);
  backdrop-filter: blur(9px) saturate(0.85);
  -webkit-backdrop-filter: blur(9px) saturate(0.85);
}
.bu-filter-scrim[hidden] { display: none !important; }
body.bu-filters-open .bu-filters-box {
  position: relative;
  z-index: 48;
}
body.bu-filters-open .bu-filter-fold {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  padding: 10px;
  margin-top: 4px;
}
body.bu-filters-open .bu-feed,
body.bu-filters-open .bu-map-pane,
body.bu-filters-open #bu-map,
body.bu-filters-open .bu-dispo,
body.bu-filters-open .bu-board-ai,
body.bu-filters-open .bu-list-head,
body.bu-filters-open .bu-cols-head {
  filter: blur(5px);
  pointer-events: none;
  opacity: 0.55;
}

/* —— Listing: 3 categories —— */
body.bu-board-page .bu-cols-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 0.95fr) !important;
  gap: 10px !important;
  padding: 6px 12px !important;
  font-size: 10px !important;
}
body.bu-board-page .bu-feed .bu-item.bu-row.compact {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 0.95fr) !important;
  gap: 10px !important;
  align-items: center;
}
body.bu-board-page .bu-c-route,
body.bu-board-page .bu-c-from,
body.bu-board-page .bu-c-to,
body.bu-board-page .bu-c-veh,
body.bu-board-page .bu-c-w,
body.bu-board-page .bu-c-date,
body.bu-board-page .bu-c-price,
body.bu-board-page .bu-c-eurkm,
body.bu-board-page .bu-c-chev { display: none !important; }
body.bu-board-page .bu-c-rel,
body.bu-board-page .bu-c-spec,
body.bu-board-page .bu-c-deal { display: flex !important; min-width: 0; }
.bu-c-rel {
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: #0f172a;
}
.bu-c-rel .from { color: #15803d; }
.bu-c-rel .to { color: #b91c1c; }
.bu-c-rel .bu-c-arrow { color: #94a3b8; font-style: normal; }
.bu-c-spec {
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.bu-spec-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  color: #334155;
  white-space: nowrap;
}
.bu-spec-pill.adr { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.bu-c-deal {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  text-align: right;
}
.bu-deal-date { font-size: 11px; font-weight: 700; color: #64748b; }
.bu-deal-price { font-size: 14px; font-weight: 900; color: #1d4ed8; line-height: 1.15; }
.bu-c-deal .bu-eurkm { font-size: 11px; font-weight: 800; color: #475569; }
.bu-c-deal .bu-eurkm.good { color: #15803d; }

/* —— Auth: one screen, rich header/footer —— */
body.bu-auth-chrome .bu-auth-top-v2 {
  background: #08111d;
  background-image: url("../img/chrome-bg.svg");
  background-size: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body.bu-auth-chrome .bu-auth-top-mid {
  display: flex;
  gap: 14px;
  align-items: center;
}
body.bu-auth-chrome .bu-auth-top-mid a {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
body.bu-auth-chrome .bu-auth-top-mid a:hover { color: #fff; }
body.bu-auth-chrome .bu-auth-top-end {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bu-reg-one .bu-reg-grid,
.bu-reg-one-form .bu-reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.bu-reg-one .bu-reg-row {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 8px;
}
.bu-reg-legal { display: grid; gap: 8px; margin: 12px 0 8px; }
.bu-reg-driver-hint {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 750;
}
.bu-reg-tabs-v4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}
.bu-reg-tabs-v4 .bu-reg-tab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: #334155;
}
.bu-reg-tabs-v4 .bu-reg-tab strong { font-size: 13px; font-weight: 900; }
.bu-reg-tabs-v4 .bu-reg-tab span { font-size: 11px; color: #64748b; }
.bu-reg-tabs-v4 .bu-reg-tab.is-on.blue { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.bu-reg-tabs-v4 .bu-reg-tab.is-on.green { border-color: #86efac; background: #ecfdf5; color: #047857; }
.bu-foot-auth { border-top: 1px solid #e2e8f0; background: #0b1220; color: #cbd5e1; }
.bu-foot-auth a { color: #93c5fd; }
.bu-foot-auth-note { color: #94a3b8; font-size: 13px; }

/* —— Nalog tabs —— */
body.bu-nalog-page .bu-nalog-tabs-mobile {
  display: block !important;
  margin: 0 0 14px;
  background: transparent;
  border: 0;
}
body.bu-nalog-page .bu-nalog-tabs-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 4px;
}
body.bu-nalog-page .bu-nalog-tab {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
body.bu-nalog-page .bu-nalog-tab.is-on {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
body.bu-nalog-page .bu-nalog-tab-pub {
  background: #1d6fd8;
  border-color: #1d6fd8;
  color: #fff;
}

@media (max-width: 899px) {
  .bu-twin-bars { grid-template-columns: 1fr; }
  .bu-reg-one .bu-reg-grid,
  .bu-reg-one-form .bu-reg-grid { grid-template-columns: 1fr; }
  body.bu-auth-chrome .bu-auth-top-mid { display: none; }
  body.bu-board-page .bu-cols-head { display: none !important; }
  body.bu-board-page .bu-feed .bu-item.bu-row.compact {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 10px 12px !important;
  }
  .bu-c-rel { font-size: 14px; }
  .bu-c-deal { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  body.bu-filters-open .bu-feed,
  body.bu-filters-open #bu-map { filter: blur(4px); }
  body.bu-board-page .bu-board-header { min-height: 44px; }
}

@media (min-width: 900px) {
  body.bu-auth-chrome .bu-page.bu-auth {
    min-height: calc(100dvh - 120px);
  }
}
