/* Berza 8.2.0 — kartice relacija, AI fullscreen, dock, landing, desktop chat */

@media (max-width: 899px) {
  html body.bu-board-page .bu-feed .bu-item.compact,
  html body.bu-board-page .bu-feed .bu-item.bu-row.compact,
  html body.bu-lista-chrome .bu-item.compact {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: calc(100% - 16px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 8px 10px !important;
    padding: 12px 44px 12px 12px !important;
    position: relative !important;
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    background: #fff !important;
    border: 1px solid #d5e4ea !important;
    border-radius: 16px !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact.is-demo,
  html body.bu-board-page .bu-feed .bu-item.bu-row.compact.is-demo {
    box-shadow: inset 4px 0 0 #f59e0b, 0 8px 18px rgba(15, 23, 42, .06) !important;
    background: linear-gradient(90deg, #fffbeb 0, #fff 28px) !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-c,
  html body.bu-board-page .bu-feed .bu-item.bu-row.compact .bu-c {
    display: none !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact > .bu-c-fav {
    display: flex !important;
    position: absolute !important;
    top: 8px;
    right: 8px;
    width: 36px !important;
    z-index: 2;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-mcard-route,
  html body.bu-board-page .bu-feed .bu-item.bu-row.compact .bu-mcard-route {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: #0e3340 !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-mcard-route b {
    overflow: visible !important;
    white-space: nowrap !important;
    text-overflow: unset !important;
    min-width: 0 !important;
    font-size: 16px !important;
    color: #0e3340 !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-mcard-route i {
    color: #0b6e86 !important;
    font-style: normal;
    font-weight: 900;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-mcard-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    width: 100% !important;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-mcard-foot {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-mcard-co {
    font-size: 12px;
    font-weight: 750;
    color: #3d5c68;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html body.bu-board-page .bu-feed .bu-item.compact .bu-mcard-foot .bu-btn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
  html body .bu-mchip.is-demo {
    background: #f59e0b !important;
    color: #1f1300 !important;
    font-weight: 900 !important;
  }

  html body .bu-mshell-end {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    visibility: visible !important;
  }
  html body .bu-mshell-end .bu-lang-pick,
  html body .bu-mshell-ico,
  html body .bu-mshell-end .bu-bell {
    display: flex !important;
    visibility: visible !important;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
  }
  html body .bu-mshell-bar {
    background: #042f2e !important;
  }
  html body .bu-mobdock {
    background: #0d1520 !important;
  }

  html body.bu-ai-open .bu-mshell,
  html body.bu-ai-open .bu-mobchrome,
  html body.bu-ai-open .bu-dispo-fab,
  html body.bu-ai-open .bu-mfilter-strip,
  html body.bu-ai-open .bu-app-banner,
  html body.bu-mobile-detail-open .bu-mshell,
  html body.bu-mobile-detail-open .bu-mobchrome,
  html body.bu-detail-open .bu-mshell,
  html body.bu-detail-open .bu-mobchrome {
    display: none !important;
  }
  html body.bu-board-page #bu-dispo,
  html body.bu-ai-open #bu-dispo,
  html body.bu-board-page.bu-ai-open #bu-dispo {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 99999 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: #042f2e !important;
    color: #ecfeff !important;
    border-radius: 0 !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    pointer-events: auto !important;
  }
  html body.bu-board-page #bu-dispo .bu-dispo-head {
    flex: 0 0 auto;
    min-height: 52px;
    padding: 8px 12px;
    background: #042f2e;
    color: #ecfeff;
  }
  html body.bu-board-page #bu-dispo .bu-ai-close {
    min-width: 44px;
    min-height: 44px;
    z-index: 2;
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
  }
  html body.bu-board-page #bu-dispo .bu-dispo-log,
  html body.bu-board-page #bu-dispo .bu-chat-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding: 10px 12px;
  }
  html body.bu-board-page #bu-dispo .bu-bubble {
    font-size: 14px !important;
    line-height: 1.45 !important;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  html body.bu-board-page #bu-dispo .bu-dispo-form {
    flex: 0 0 auto;
    display: flex !important;
    gap: 8px;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #0e3340;
    position: relative;
    z-index: 2;
  }
  html body.bu-board-page #bu-dispo .bu-dispo-form input {
    flex: 1;
    min-height: 44px;
    font-size: 16px !important;
  }

  html body #bu-mobile-detail-sheet,
  html body.bu-mobile-detail-open #bu-mobile-detail-sheet {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    max-height: 100dvh !important;
    height: 100dvh !important;
    z-index: 99990 !important;
    border-radius: 0 !important;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  html body #bu-mobile-detail-backdrop {
    z-index: 99980 !important;
    background: rgba(8,20,28,.62) !important;
    backdrop-filter: blur(8px);
  }
  html body .bu-dpro-route-pair {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
  }
  html body .bu-dpro-route-leg {
    background: #eef6f8;
    border-radius: 12px;
    padding: 10px;
    min-width: 0;
  }
  html body .bu-dpro-route-leg strong { display: block; font-size: 15px; }

  html body.bu-landing-page .bu-neon-head,
  html body.bu-product-page .bu-neon-head {
    height: auto !important;
    min-height: calc(52px + env(safe-area-inset-top, 0px)) !important;
    max-height: none !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
    background: #042f2e !important;
  }
  html body.bu-landing-page .landing-shell-main,
  html body.bu-product-page .landing-shell-main {
    padding-top: calc(52px + env(safe-area-inset-top, 0px)) !important;
  }
  html body.bu-landing-page .bu-neon-pills {
    display: none !important;
  }
  html body.bu-landing-page .bu-neon-actions {
    display: flex !important;
    align-items: center;
    gap: 6px;
  }

  html body .bu-dispo-fab {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    z-index: 5200;
    width: 52px;
    height: 52px;
    padding: 6px;
    border-radius: 16px;
    background: #042f2e !important;
    box-shadow: 0 8px 20px rgba(4, 47, 46, .4), 0 0 16px rgba(94, 234, 212, .35);
  }
  html body .bu-dispo-fab img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: block;
  }
  html body .bu-mobdock-ai img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: block;
    box-shadow: 0 0 10px rgba(94, 234, 212, .45);
  }
  html body .bu-mshell-end [data-view="map"] { display: none !important; }
  html body .bu-mshell-lang,
  html body .bu-mshell-end .bu-lang-pick {
    display: flex !important;
    width: auto !important;
    min-width: 40px;
    z-index: 40;
  }
  html body .bu-mshell-end .bu-lang-menu {
    z-index: 80 !important;
  }
  html body .bu-demo-ribbon {
    display: inline-flex !important;
    align-self: flex-start;
    background: #f59e0b;
    color: #1f1300;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 999px;
  }
  html body .bu-dpro-route-pair {
    display: grid !important;
    grid-template-columns: 1fr 18px 1fr !important;
    gap: 8px;
    align-items: stretch;
  }
  html body .bu-dpro-route-arrow {
    align-self: center;
    text-align: center;
    font-weight: 900;
    color: #0b6e86;
  }
  html body .bu-dpro-grid { display: none !important; }
  html body.bu-auth-chrome .bu-inv-paper {
    max-height: 42vh;
    overflow: auto;
    margin-bottom: 8px;
  }
  html body.bu-landing-page section,
  html body.bu-landing-page .bu-hero,
  html body.bu-product-page .bu-pro-block {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  html body.bu-ai-open,
  html body.bu-mobile-detail-open {
    overflow: hidden !important;
  }
}

html body .bu-demo-ribbon {
  display: inline-flex;
  align-items: center;
  background: #f59e0b;
  color: #1f1300;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .03em;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.2;
}
html body.bu-board-page .bu-item.is-demo {
  position: relative;
}

@media (min-width: 900px) {
  html body.bu-board-page .bu-mcard-foot,
  html body.bu-board-page .bu-demo-ribbon {
    display: none !important;
  }
  html body.bu-board-page .bu-item.is-demo::before {
    content: "DEMO OGLAS";
    position: absolute;
    left: 8px;
    top: 6px;
    z-index: 2;
    background: #f59e0b;
    color: #1f1300;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    padding: 2px 8px;
    border-radius: 999px;
  }
  html body.bu-board-page .bu-item.compact.is-demo,
  html body.bu-board-page .bu-item.bu-row.is-demo {
    padding-top: 22px !important;
  }
  html body.bu-board-page .bu-twin-bars,
  html body.bu-board-page .bu-filter-bar,
  html body.bu-board-page .bu-board-header-v8 {
    overflow: visible !important;
  }
  html body.bu-board-page #bu-dispo {
    font-size: 14px;
  }
  html body.bu-board-page #bu-dispo .bu-bubble {
    max-width: 42rem;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }
  html body.bu-dpro-route-pair {
    display: grid;
    grid-template-columns: 1fr 24px 1fr;
    gap: 12px;
    align-items: stretch;
  }
}

@media (min-width: 1100px) {
  html body.bu-board-page #bu-dispo .bu-bubble,
  html body.bu-board-page #bu-dispo .bu-dispo-log {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }
  html body.bu-board-page #bu-dispo .bu-dispo-form input {
    font-size: 14px !important;
  }
  html body .bu-dispo-fab {
    right: 24px;
    bottom: 24px;
  }
  html body .bu-dispo-fab img {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
}
