/**
 * Badi Beit Premium Design System — UI/UX redesign
 * Brand: Navy #073B73 · Gold #E7C34F · Light #F5F8FC
 */

:root {
  --bb-navy: #073b73;
  --bb-navy-dark: #052e5c;
  --bb-gold: #e7c34f;
  --bb-gold-hover: #d4b045;
  --bb-white: #ffffff;
  --bb-bg: #f5f8fc;
  --bb-text: #10233f;
  --bb-muted: #64748b;
  --bb-border: #e2e8f0;
  --bb-radius: 12px;
  --bb-radius-lg: 16px;
  --bb-radius-xl: 20px;
  --bb-shadow: 0 4px 24px rgba(7, 59, 115, 0.08);
  --bb-shadow-lg: 0 12px 40px rgba(7, 59, 115, 0.14);
  --bb-font-sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --bb-font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --bb-font-script: "Great Vibes", cursive;
  --bb-header-h: 4.25rem;
  --bb-bottom-nav-h: 72px;
  --bb-safe-bottom: env(safe-area-inset-bottom, 0px);
  --bb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Brand color overrides (existing utility classes) */
.bg-primary,
.hover\:bg-primary:hover { background-color: var(--bb-navy) !important; }
.text-primary { color: var(--bb-navy) !important; }
.border-primary { border-color: var(--bb-navy) !important; }
.bg-secondary { background-color: var(--bb-navy-dark) !important; }
.text-secondary { color: var(--bb-navy-dark) !important; }
.bg-accent,
.hover\:bg-accent:hover,
.hover\:bg-yellow-400:hover { background-color: var(--bb-gold) !important; }
.text-accent { color: var(--bb-gold) !important; }
.border-accent { border-color: var(--bb-gold) !important; }
.bg-primary-dark,
.hover\:bg-primary-dark:hover { background-color: var(--bb-navy-dark) !important; }
.ring-primary\/60:focus,
.focus\:ring-primary\/60:focus { --tw-ring-color: rgba(7, 59, 115, 0.45); }

body {
  background: var(--bb-bg);
  color: var(--bb-text);
  font-family: var(--bb-font-sans);
}

html:has(body.bb-home-page),
body.bb-home-page {
  scroll-behavior: auto;
  overflow-anchor: none;
}

.font-brand,
.font-brand h1,
.font-brand h2,
.font-brand h3,
.font-brand h4,
.font-brand p,
.font-brand span,
.font-brand a,
.font-brand button,
.font-brand label,
.font-brand input,
.font-brand select,
.font-brand textarea {
  font-family: var(--bb-font-sans) !important;
}

.bb-serif { font-family: var(--bb-font-serif) !important; }
.bb-script { font-family: var(--bb-font-script) !important; }

/* ——— Site-wide selects: kill native chrome / blue ring ——— */
select:not([multiple]):not([size]) {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--bb-white);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23073B73' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px;
  padding-right: 2.35rem !important;
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  color: var(--bb-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.25;
  min-height: 2.75rem;
  box-shadow: none;
  outline: none !important;
  cursor: pointer;
}

select:not([multiple]):not([size]):hover {
  border-color: #c5d0de;
}

select:not([multiple]):not([size]):focus,
select:not([multiple]):not([size]):focus-visible {
  outline: none !important;
  border-color: var(--bb-navy) !important;
  box-shadow: 0 0 0 3px rgba(7, 59, 115, 0.12) !important;
}

select:not([multiple]):not([size]):disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bb-lang-pill select,
.bb-lang-select-sync {
  background-color: transparent;
  background-position: right 0.15rem center;
  background-size: 12px;
  min-height: 0;
  padding: 0 1.15rem 0 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 0.8rem;
}

/* Custom dropdown (replaces native picker) */
.bb-select {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.bb-select--search {
  display: none;
  width: auto;
  min-width: 9.5rem;
  flex: 0 0 auto;
}

@media (min-width: 1024px) {
  .bb-select--search { display: block; }
}

.bb-select--phone {
  flex: 0 0 32%;
  max-width: 8.25rem;
  min-width: 6.75rem;
  width: auto;
}

.bb-select--compact {
  width: auto;
  min-width: 9rem;
}

select.bb-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
  background: none !important;
}

.bb-select__btn {
  width: 100%;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0 0.9rem;
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  background: var(--bb-white);
  color: var(--bb-text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}

.bb-select__btn::after {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23073B73' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center / 14px no-repeat;
  transition: transform 0.18s var(--bb-ease);
}

.bb-select.is-open .bb-select__btn::after { transform: rotate(180deg); }

.bb-select__btn > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bb-select__btn.is-placeholder { color: var(--bb-muted); font-weight: 400; }

.bb-select__btn:hover { border-color: #c5d0de; }

.bb-select__btn:focus-visible,
.bb-select.is-open .bb-select__btn {
  border-color: var(--bb-navy);
  box-shadow: 0 0 0 3px rgba(7, 59, 115, 0.12);
}

.bb-select.is-disabled .bb-select__btn {
  opacity: 0.55;
  cursor: not-allowed;
}

.bb-select__list {
  position: fixed;
  z-index: 300000;
  margin: 0;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(7, 59, 115, 0.1);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(7, 20, 40, 0.18);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  pointer-events: auto;
  max-width: calc(100vw - 16px);
  max-height: min(320px, calc(100dvh - 24px - var(--bb-safe-bottom)));
}

.bb-select__list[hidden] { display: none !important; }

.bb-select__search {
  width: 100%;
  height: 2.4rem;
  margin: 0 0 0.3rem;
  padding: 0 0.75rem;
  border: 1px solid var(--bb-border);
  border-radius: 10px;
  background: var(--bb-bg);
  font-size: 16px;
  outline: none;
}

.bb-select__search:focus {
  border-color: var(--bb-navy);
  background: #fff;
}

.bb-select__opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--bb-text);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.bb-select__opt:hover,
.bb-select__opt:focus-visible {
  background: var(--bb-bg);
  outline: none;
}

.bb-select__opt.is-active {
  background: rgba(7, 59, 115, 0.08);
  color: var(--bb-navy);
  font-weight: 600;
}

.bb-select__opt.is-active::after {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23073B73' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 14px no-repeat;
}

.bb-select__empty {
  padding: 0.7rem;
  color: var(--bb-muted);
  font-size: 0.85rem;
}

.bb-filters-modal .bb-select__btn,
.bb-filters-modal select:not(.bb-select__native) {
  min-height: 3rem;
  background: var(--bb-bg);
}

.bb-phone-row .bb-select { width: auto; }

.bb-admin-filters .bb-select {
  width: 100%;
}

@media (min-width: 640px) {
  .bb-admin-filters .bb-select {
    width: auto;
    min-width: 9rem;
  }
}

.bb-browse-areas-controls__selects .bb-select { width: 100%; }

@media (min-width: 640px) {
  .bb-browse-areas-controls__selects .bb-select {
    width: auto;
    min-width: 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ——— Site header (desktop) ——— */
.bb-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bb-border);
  box-shadow: 0 1px 0 rgba(7, 59, 115, 0.04);
}

.bb-site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--bb-header-h);
}

.bb-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.bb-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.bb-logo__text {
  line-height: 1.1;
  min-width: 0;
}

.bb-logo__name {
  font-family: var(--bb-font-serif) !important;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--bb-navy);
  white-space: nowrap;
}

.bb-logo__sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bb-navy);
  opacity: 0.75;
}

.bb-desktop-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 1024px) {
  .bb-desktop-nav { display: flex; }
}

.bb-desktop-nav a,
.bb-desktop-nav .bb-nav-dropdown > summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bb-text);
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--bb-ease);
}

.bb-desktop-nav a:hover,
.bb-desktop-nav .bb-nav-dropdown > summary:hover {
  color: var(--bb-navy);
}

.bb-desktop-nav a.is-active::after,
.bb-desktop-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--bb-gold);
  border-radius: 2px;
}

.bb-nav-dropdown {
  position: relative;
}

.bb-nav-dropdown > summary::-webkit-details-marker { display: none; }

.bb-nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  box-shadow: var(--bb-shadow-lg);
  padding: 0.4rem;
  z-index: 50;
}

.bb-nav-dropdown__menu a {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.bb-nav-dropdown__menu a:hover {
  background: var(--bb-bg);
}

.bb-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.bb-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.25rem;
  padding: 0 0.7rem;
  border: 1px solid var(--bb-border);
  border-radius: 999px;
  background: var(--bb-white);
  color: var(--bb-text);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.bb-lang-pill select {
  border: 0;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  max-width: 5.5rem;
  cursor: pointer;
  outline: none;
}

.bb-header-actions .bb-lang-dd--solid .bb-lang-dd__btn {
  height: 2.25rem;
  padding: 0 0.7rem;
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  color: var(--bb-text);
  font-size: 0.8rem;
  font-weight: 500;
}

.bb-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  color: var(--bb-navy);
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.bb-icon-link:hover {
  background: var(--bb-bg);
  color: var(--bb-navy-dark);
}

.bb-icon-link__label {
  display: none;
  font-size: 0.8rem;
  font-weight: 500;
}

@media (min-width: 1280px) {
  .bb-icon-link--labeled {
    padding: 0 0.65rem;
    border-radius: 999px;
  }
  .bb-icon-link--labeled .bb-icon-link__label { display: inline; }
}

.bb-post-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.5rem;
  padding: 0 1rem;
  background: var(--bb-gold);
  color: var(--bb-navy-dark) !important;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(231, 195, 79, 0.35);
  transition: transform 0.2s var(--bb-ease), background 0.2s;
  white-space: nowrap;
}

.bb-post-cta:hover {
  background: var(--bb-gold-hover);
  transform: translateY(-1px);
}

/* Mobile: hide desktop chrome; show overlay header */
.bb-desktop-only { display: none !important; }
.bb-mobile-only { display: block; }

@media (min-width: 1024px) {
  .bb-desktop-only { display: flex !important; }
  .bb-mobile-only { display: none !important; }
  .bb-mobile-bottom-nav { display: none !important; }
  body.has-bottom-nav { padding-bottom: 0 !important; }
}

/* ——— Mobile overlay header (home) ——— */
.bb-mobile-header,
.bb-mobile-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.bb-mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  min-height: 3.25rem;
  padding: max(0.55rem, env(safe-area-inset-top)) 0.65rem 0.55rem;
  background: transparent;
  pointer-events: none;
  transition: background 0.2s var(--bb-ease), box-shadow 0.2s var(--bb-ease);
}

.bb-mobile-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(7, 59, 115, 0.1);
}

.bb-mobile-header.is-scrolled .bb-hamburger {
  color: var(--bb-navy);
}

.bb-mobile-header > * { pointer-events: auto; }

.bb-logo-lockup {
  position: relative;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  z-index: 1;
  text-decoration: none;
  isolation: isolate;
  pointer-events: auto;
  transform: translateX(-44px);
  overflow: visible;
}

[dir="rtl"] .bb-mobile-header .bb-logo-lockup,
[dir="rtl"] .bb-mobile-bar .bb-logo-lockup,
html.bb-rtl .bb-mobile-header .bb-logo-lockup,
html.bb-rtl .bb-mobile-bar .bb-logo-lockup {
  transform: translateX(44px);
}

.bb-logo-lockup__box {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.2rem 0.35rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.bb-logo-lockup__box::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8% -6%;
  background:
    radial-gradient(ellipse 70% 85% at 22% 50%, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 68%),
    radial-gradient(ellipse 65% 80% at 78% 46%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 66%),
    radial-gradient(ellipse 90% 70% at 50% 58%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 72%);
  filter: blur(10px);
  pointer-events: none;
}

.bb-logo-lockup__mark {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* ——— Ai image: sits to the right of BADI BEIT (not over the wordmark) ——— */
.bb-logo-t {
  position: relative;
  display: inline-block;
  isolation: isolate;
  overflow: visible;
  vertical-align: baseline;
}

.bb-logo-t__letter {
  position: relative;
  z-index: 2;
}

.bb-logo-ai {
  position: relative;
  left: auto;
  top: auto;
  z-index: 1;
  display: block;
  flex: 0 0 auto;
  width: 2.45rem;
  height: auto;
  margin: 0 0 0 0.18rem;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  overflow: visible;
  line-height: 0;
  transform: translateY(1px);
  align-self: center;
}

.bb-logo-ai__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 96 / 80;
  max-width: none;
  border: 0;
  background: transparent;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 1023px) {
  .bb-logo-ai {
    width: 2.2rem;
    margin-left: 0.1rem;
  }
}

@media (max-width: 380px) {
  .bb-logo-ai {
    width: 2rem;
  }
}

.bb-site-header .bb-logo-ai {
  width: 2.6rem;
}

.bb-logo-lockup__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
  overflow: visible;
}

.bb-logo-lockup__name {
  display: block;
  font-family: var(--bb-font-serif) !important;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--bb-navy);
  white-space: nowrap;
  overflow: visible;
}

.bb-logo-lockup__sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bb-navy);
  white-space: nowrap;
}

.bb-site-header .bb-logo-lockup {
  position: static;
  flex: 0 0 auto;
  justify-self: start;
  transform: none;
}

.bb-site-header .bb-logo-lockup__box {
  background: transparent;
  box-shadow: none;
  padding: 0;
  gap: 0.7rem;
}

.bb-site-header .bb-logo-lockup__box::before {
  display: none;
}

.bb-site-header .bb-logo-lockup__mark {
  width: 3.4rem;
  height: 3.4rem;
}

.bb-site-header .bb-logo-lockup__name {
  font-size: 1.28rem;
}

.bb-site-header .bb-logo-lockup__sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.bb-hamburger {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent !important;
  color: var(--bb-white);
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  position: relative;
  z-index: 3;
}

.bb-hamburger__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 21px;
}

.bb-hamburger__bars span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  box-shadow: none;
}

.bb-hamburger--dark {
  color: var(--bb-navy);
}

.bb-hamburger--dark .bb-hamburger__bars span {
  box-shadow: none;
}

.bb-mobile-header__left,
.bb-mobile-header__right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  position: relative;
  z-index: 5;
}

.bb-mobile-header__left {
  justify-self: start;
  justify-content: flex-start;
}

.bb-mobile-header__right {
  justify-self: end;
  justify-content: flex-end;
}

.bb-mobile-user {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.bb-user-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bb-navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.bb-user-toggle--dark {
  background: var(--bb-bg);
  color: var(--bb-navy);
}

.bb-user-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: auto;
  right: 0;
  z-index: 60;
  min-width: 10.5rem;
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  box-shadow: var(--bb-shadow-lg);
  padding: 0.35rem;
}

.bb-user-menu a,
.bb-user-menu button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bb-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.bb-user-menu a:hover,
.bb-user-menu button:hover {
  background: var(--bb-bg);
}

.bb-user-menu i {
  width: 1rem;
  color: var(--bb-navy);
  text-align: center;
}

.bb-lang-dd {
  position: relative;
  z-index: 8;
  flex-shrink: 0;
}

.bb-lang-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--bb-navy);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  appearance: none;
}

.bb-lang-dd--solid .bb-lang-dd__btn {
  background: var(--bb-bg);
  border: 1px solid var(--bb-border);
}

.bb-lang-dd.is-open .bb-lang-dd__caret {
  transform: rotate(180deg);
}

.bb-lang-dd__caret {
  font-size: 0.55rem;
  opacity: 0.7;
  transition: transform 0.18s ease;
}

.bb-lang-dd__list,
.bb-lang-dd__list.is-open {
  position: fixed;
  z-index: 100000;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(7, 59, 115, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(7, 59, 115, 0.18);
  -webkit-tap-highlight-color: transparent;
}

.bb-lang-dd__list[hidden] {
  display: none !important;
}

.bb-lang-dd__list:not([hidden]) {
  display: block;
}

.bb-lang-dd__list::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 1.15rem;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid rgba(7, 59, 115, 0.1);
  border-top: 1px solid rgba(7, 59, 115, 0.1);
  transform: rotate(45deg);
}

.bb-lang-dd__list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--bb-text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
}

.bb-lang-dd__list button.is-active,
.bb-lang-dd__list button:hover {
  background: #f4f7fb;
  color: var(--bb-navy);
}

.bb-lang-dd__list button.is-active i {
  color: var(--bb-gold);
  font-size: 0.7rem;
}

@media (max-width: 380px) {
  .bb-logo-lockup__name { font-size: 1.02rem; }
  .bb-logo-lockup__sub { font-size: 0.6rem; letter-spacing: 0.12em; }
  .bb-logo-lockup__mark { width: 2.7rem; height: 2.7rem; }
  .bb-logo-lockup__box { padding: 0.18rem 0.4rem 0.18rem 0.2rem; gap: 0.28rem; }
}

@media (max-width: 360px) {
  .bb-mobile-header,
  .bb-mobile-bar {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    gap: 0.25rem;
  }

  .bb-mobile-header .bb-lang-pill select,
  .bb-mobile-bar .bb-lang-pill select {
    max-width: 3.25rem;
    font-size: 0.65rem;
  }

  .bb-hamburger,
  .bb-user-toggle {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* Non-home mobile compact bar */
.bb-mobile-bar {
  position: relative;
  min-height: 3.25rem;
  padding: 0.5rem 0.65rem;
  background: var(--bb-white);
  border-bottom: 1px solid var(--bb-border);
}

.bb-mobile-bar .bb-logo-lockup__box::before {
  opacity: 0.35;
}

.bb-mobile-bar .bb-logo--mark img {
  filter: none;
}

@media (min-width: 1024px) {
  .bb-mobile-header,
  .bb-mobile-bar { display: none !important; }
}

/* ——— Premium sidebar ——— */
.bb-sidebar {
  display: flex;
  flex-direction: column;
  background: #fff !important;
  border-right: 1px solid #e8eef4 !important;
  box-shadow: 12px 0 40px rgba(7, 20, 40, 0.16) !important;
}

.bb-sidebar__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0;
  padding: 1.05rem 1rem 0.15rem;
  padding-inline-end: 2.75rem;
  border-bottom: 0;
  flex-shrink: 0;
  overflow: visible;
  z-index: 2;
}

.bb-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  text-decoration: none;
}

.bb-sidebar__mark {
  width: 2.7rem;
  height: 2.7rem;
  object-fit: contain;
  flex-shrink: 0;
}


.bb-sidebar__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
  overflow: visible;
}

.bb-sidebar__brand-name {
  font-family: var(--bb-font-serif) !important;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  color: #073b73;
  white-space: nowrap;
}

.bb-sidebar__brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #073b73;
}

.bb-sidebar__close {
  position: absolute;
  top: 0.95rem;
  inset-inline-end: 0.7rem;
  z-index: 5;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #eef2f6;
  color: #122033;
  cursor: pointer;
}

.bb-sidebar__x {
  position: relative;
  width: 14px;
  height: 14px;
  display: block;
}

.bb-sidebar__x::before,
.bb-sidebar__x::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 2px;
  height: 12px;
  background: currentColor;
  border-radius: 1px;
}

.bb-sidebar__x::before { transform: rotate(45deg); }
.bb-sidebar__x::after { transform: rotate(-45deg); }

.bb-sidebar__tagline {
  margin: 0 1rem 0.55rem;
  color: #8a96a3;
  font-size: 0.72rem;
  font-weight: 500;
  flex-shrink: 0;
}

.bb-sidebar__scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 0.15rem 0.7rem 5.5rem;
}

.bb-sidebar__nav {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 0.28rem;
}

.bb-sidebar__link,
.bb-sidebar a,
.bb-sidebar button.bb-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex-shrink: 0;
  min-height: 2.85rem;
  padding: 0.62rem 0.75rem;
  border-radius: 10px;
  color: #122033;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: 0;
  background: transparent;
  text-align: start;
  cursor: pointer;
  transition: background 0.15s;
}

.bb-sidebar__link:hover,
.bb-sidebar a:hover,
.bb-sidebar button.bb-sidebar-link:hover {
  background: #f4f7fb;
}

.bb-sidebar__link > i:first-child,
.bb-sidebar a > i:first-child,
.bb-sidebar button.bb-sidebar-link > i:first-child {
  width: 1.15rem;
  text-align: center;
  color: #073b73;
  font-size: 0.92rem;
}

.bb-sidebar__link span {
  flex: 1 1 auto;
  min-width: 0;
}

.bb-sidebar__chev {
  margin-inline-start: auto;
  color: #9aa7b4 !important;
  font-size: 0.62rem !important;
  width: auto !important;
}

.bb-sidebar__link.is-active {
  background: #eaf1f8;
  color: #073b73;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #073b73;
}

.bb-sidebar__link.is-active .bb-sidebar__chev { color: #073b73 !important; }

.bb-sidebar__badge {
  flex: 0 0 1.25rem;
  margin-inline-start: auto;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  max-width: 1.25rem;
  padding: 0;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}

.bb-sidebar__rule {
  height: 1px;
  margin: 0.55rem 0.35rem;
  background: #e8eef4;
}

.bb-sidebar__link.is-admin {
  background: #f6edd4;
  color: #c6a12a;
  font-weight: 700;
}

.bb-sidebar__link.is-admin > i:first-child,
.bb-sidebar__link.is-admin .bb-sidebar__chev {
  color: #c6a12a !important;
}

.bb-sidebar a.is-accent {
  color: var(--bb-navy);
  font-weight: 600;
}

.bb-sidebar a.is-accent i { color: var(--bb-gold); }

.bb-sidebar__bottom {
  position: relative;
  z-index: 1;
  padding: 0.55rem 1rem 0.85rem;
}

.bb-sidebar__lang .bb-lang-dd,
.bb-sidebar__lang .bb-lang-dd__btn {
  width: 100%;
}

.bb-sidebar__lang .bb-lang-dd__btn {
  justify-content: flex-start;
  height: 2.45rem;
  padding: 0 0.85rem;
  border: 1px solid #e6edf3;
  border-radius: 10px;
  background: #fff;
  color: #073b73;
  font-size: 0.82rem;
}

.bb-sidebar__lang .bb-lang-dd__btn .bb-lang-dd__caret {
  margin-inline-start: auto;
}

.bb-sidebar__motto {
  margin: 0.85rem 0 0;
  color: #8b97a4;
  font-family: var(--bb-font-serif);
  font-style: italic;
  font-size: 0.92rem;
}

.bb-sidebar__goldline {
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-top: 0.35rem;
  background: #e7c34f;
  border-radius: 99px;
}

.bb-sidebar__ver {
  display: block;
  margin-top: 0.55rem;
  color: #b4bec8;
  font-size: 0.62rem;
}

.bb-sidebar__skyline {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  width: 70%;
  max-width: 16rem;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

[dir="rtl"] .bb-sidebar__link.is-active {
  box-shadow: inset -3px 0 0 #073b73;
}

[dir="rtl"] .bb-sidebar__skyline {
  right: auto;
  left: 0;
  transform: scaleX(-1);
}

[dir="rtl"] .bb-sidebar__chev {
  transform: scaleX(-1);
}

/* ——— Home hero ——— */
.bb-home-hero {
  position: relative;
  width: 100%;
  isolation: isolate;
  overflow: hidden;
}

.bb-home-hero #heroSlider.bb-hero-slider,
.bb-home-hero #heroSlider {
  aspect-ratio: auto !important;
  height: 345px !important;
  min-height: 345px !important;
  max-height: 345px !important;
}

@media (min-width: 480px) {
  .bb-home-hero #heroSlider {
    height: 365px !important;
    min-height: 365px !important;
    max-height: 365px !important;
  }
}

@media (min-width: 768px) {
  .bb-home-hero #heroSlider {
    aspect-ratio: auto !important;
    height: 460px !important;
    min-height: 440px !important;
    max-height: 500px !important;
  }
}

@media (min-width: 1024px) {
  .bb-home-hero #heroSlider.bb-hero-slider,
  .bb-home-hero #heroSlider {
    aspect-ratio: auto !important;
    height: 480px !important;
    min-height: 480px !important;
    max-height: 480px !important;
  }
}

/* Hero arrows in side margins — branding text position unchanged */
.bb-home-hero .bb-hero-progress,
.bb-home-hero .bb-hero-counter,
.bb-home-hero .bb-hero-dots {
  display: none !important;
}

.bb-home-hero .bb-hero-nav {
  display: flex !important;
  z-index: 12;
  width: 2.35rem;
  height: 2.35rem;
  background: rgba(0, 51, 108, 0.72);
  border: 1.5px solid rgba(225, 196, 92, 0.9);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.bb-home-hero .bb-hero-nav:hover,
.bb-home-hero .bb-hero-nav:focus-visible {
  background: #e1c45c;
  color: #00336c;
  border-color: #00336c;
  outline: none;
}

.bb-home-hero .bb-hero-nav--prev { left: 0.4rem; right: auto; }
.bb-home-hero .bb-hero-nav--next { right: 0.4rem; left: auto; }

/* Phone: arrows stay left/right; text insets so nothing sits under <> */
@media (max-width: 767px) {
  .bb-home-hero .bb-hero-nav {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
  }

  .bb-home-hero .bb-hero-nav:hover,
  .bb-home-hero .bb-hero-nav:focus-visible {
    transform: translateY(-50%) scale(1.06);
  }

  .bb-home-hero .bb-hero-nav--prev {
    left: 0.35rem !important;
    right: auto !important;
  }

  .bb-home-hero .bb-hero-nav--next {
    right: 0.35rem !important;
    left: auto !important;
  }

  .bb-home-hero .bb-hero-branding {
    padding-left: 2.65rem;
    padding-right: 2.65rem;
  }
}

@media (min-width: 768px) {
  .bb-home-hero .bb-hero-nav {
    width: 2.75rem;
    height: 2.75rem;
  }
  .bb-home-hero .bb-hero-nav--prev { left: 1rem; right: auto; }
  .bb-home-hero .bb-hero-nav--next { right: 1rem; left: auto; }
}

@media (min-width: 1024px) {
  .bb-home-hero .bb-hero-nav {
    width: 3rem;
    height: 3rem;
  }
  .bb-home-hero .bb-hero-nav--prev { left: 1.25rem; right: auto; }
  .bb-home-hero .bb-hero-nav--next { right: 1.25rem; left: auto; }
}

.bb-home-hero .bb-hero-slide__scrim {
  background: linear-gradient(
    180deg,
    rgba(5, 46, 92, 0.55) 0%,
    rgba(5, 46, 92, 0.35) 35%,
    rgba(5, 46, 92, 0.55) 70%,
    rgba(5, 46, 92, 0.75) 100%
  ) !important;
  opacity: 1 !important;
}

.bb-home-hero .bb-hero-slide__copy,
.bb-home-hero .bb-hero-slide__content,
.bb-home-hero .bb-hero-slide__cta,
.bb-home-hero .bb-hero-slide__title,
.bb-home-hero .bb-hero-slide__desc,
.bb-home-hero .bb-hero-slide__eyebrow {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  inset: auto !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.bb-hero-branding {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: calc(3.75rem + env(safe-area-inset-top, 0px)) 0.7rem 2.7rem;
  pointer-events: none;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}

.bb-hero-branding > * { pointer-events: auto; }

@media (max-width: 767px) {
  .bb-hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.28em;
    margin-bottom: 0.28rem;
    width: 100%;
  }

  .bb-hero-title {
    font-size: clamp(2.55rem, 12.2vw, 3.35rem);
    line-height: 1.02;
    margin-bottom: 0.4rem;
    width: 100%;
    max-width: none;
  }

  .bb-hero-title__place {
    font-size: 1.14em;
  }

  .bb-hero-sub {
    font-size: 1rem;
    letter-spacing: 0.02em;
    margin-bottom: 1.05rem;
    width: 100%;
  }

}

@media (min-width: 1024px) {
  .bb-hero-branding {
    justify-content: center;
    padding: 5.5rem 3rem 6.5rem;
    max-width: 1280px;
    margin: 0 auto;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .bb-home-hero .bb-hero-slide__scrim {
    background: linear-gradient(
      105deg,
      rgba(5, 46, 92, 0.82) 0%,
      rgba(5, 46, 92, 0.45) 42%,
      rgba(5, 46, 92, 0.15) 68%,
      transparent 100%
    ) !important;
  }
}

.bb-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.bb-hero-title {
  font-family: var(--bb-font-serif) !important;
  font-weight: 600;
  font-size: clamp(2.55rem, 7.2vw, 4.35rem);
  line-height: 0.98;
  color: var(--bb-white);
  margin: 0 0 0.4rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  letter-spacing: 0.01em;
}

.bb-hero-title__line {
  display: block;
}

.bb-hero-title__place {
  display: block;
  color: var(--bb-gold);
  font-size: 1.12em;
  margin-inline-start: 0;
}

.bb-hero-title .bb-gold { color: var(--bb-gold); }

.bb-hero-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.15rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.bb-hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
}

.bb-hero-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  text-decoration: none !important;
  color: var(--bb-white);
  min-width: 2.5rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.bb-hero-action:hover,
.bb-hero-action:focus,
.bb-hero-action:active {
  text-decoration: none !important;
  color: var(--bb-white);
}

.bb-hero-action__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(5, 20, 40, 0.18);
  color: var(--bb-navy);
  font-size: 0.82rem;
  transition: transform 0.2s var(--bb-ease), background 0.2s;
}

.bb-hero-action__icon i {
  color: var(--bb-navy) !important;
}

.bb-hero-action:hover .bb-hero-action__icon,
.bb-hero-action:focus-visible .bb-hero-action__icon {
  transform: translateY(-2px);
  background: #fff;
}

.bb-hero-action__label {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--bb-gold) !important;
  letter-spacing: 0.02em;
  line-height: 1;
}

@media (max-width: 380px) {
  .bb-hero-actions { gap: 0.55rem; }
  .bb-hero-action__icon {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .bb-hero-actions { gap: 1rem; }
  .bb-hero-action__icon {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 0.92rem;
  }
  .bb-hero-action__label { font-size: 0.74rem; }
}

.bb-hero-script {
  display: none;
  position: absolute;
  right: 3rem;
  bottom: 8.5rem;
  font-family: var(--bb-font-script) !important;
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

@media (min-width: 1024px) {
  .bb-hero-script { display: block; }
}

/* ——— AI Agent card ——— */
.bb-ai-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0.45rem;
}

.bb-ai-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-areas:
    "robot body cta"
    "chips chips chips";
  align-items: center;
  column-gap: 0.6rem;
  row-gap: 0.5rem;
  background: #eef7ff;
  border: 1px solid rgba(7, 59, 115, 0.1);
  border-radius: 0 0 20px 20px;
  border-top: 0;
  box-shadow: 0 6px 18px rgba(7, 59, 115, 0.06);
  padding: 0.65rem 0.7rem 0.7rem;
}

.bb-ai-card--float { display: none !important; }

.bb-ai-card__robot {
  grid-area: robot;
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  background: #eaf5ff;
  align-self: center;
}

.bb-ai-card__body {
  grid-area: body;
  min-width: 0;
}

.bb-ai-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--bb-navy);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.08rem;
}

.bb-ai-card__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.bb-ai-card__title {
  font-family: var(--bb-font-serif) !important;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bb-navy);
  margin: 0 0 0.12rem;
  line-height: 1.12;
}

.bb-ai-card__desc {
  font-size: 0.75rem;
  color: #5b6b80;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bb-ai-cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 7.6rem;
  height: 36px;
  padding: 0 0.7rem;
  background: var(--bb-navy);
  color: var(--bb-white) !important;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.bb-ai-cta:hover {
  background: var(--bb-navy-dark);
  transform: translateY(-1px);
}

.bb-ai-chips {
  grid-area: chips;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.28rem;
  overflow: visible;
  padding: 0 0.2rem;
}

.bb-ai-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  flex: 1 1 0;
  min-width: 0;
  height: 30px;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(7, 59, 115, 0.12);
  font-size: clamp(0.5rem, 2.45vw, 0.72rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bb-navy);
  text-decoration: none;
  white-space: nowrap;
}

.bb-ai-chip i {
  font-size: 0.58rem;
  color: var(--bb-navy);
  opacity: 0.8;
  flex-shrink: 0;
}

.bb-ai-chip:hover { border-color: var(--bb-gold); }

.bb-ai-chip--desk { display: none; }

@media (max-width: 400px) {
  .bb-ai-card__desc { display: none; }
  .bb-ai-cta {
    width: auto;
    min-width: 6.4rem;
    height: 32px;
    font-size: 0.68rem;
    padding: 0 0.55rem;
  }
}

@media (min-width: 401px) and (max-width: 479px) {
  .bb-ai-chip { height: 30px; }
}

@media (min-width: 480px) {
  .bb-ai-chip { height: 32px; padding: 0 0.45rem; }
}

@media (min-width: 1024px) {
  .bb-ai-wrap { padding: 0 0.8rem; }

  .bb-ai-card {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    column-gap: 0.9rem;
    row-gap: 0.45rem;
    padding: 0.75rem 1rem;
  }

  .bb-ai-card__robot {
    width: 84px;
    height: 84px;
  }

  .bb-ai-card__status { font-size: 0.78rem; }

  .bb-ai-card__title {
    font-size: 1.45rem;
    margin-bottom: 0.15rem;
  }

  .bb-ai-card__desc {
    font-size: 0.86rem;
    max-width: 36rem;
    -webkit-line-clamp: unset;
    display: block;
  }

  .bb-ai-cta {
    width: 11.5rem;
    height: 44px;
    font-size: 0.88rem;
    justify-self: end;
  }

  .bb-ai-chips { gap: 0.5rem; }

  .bb-ai-chip {
    flex: 0 1 auto;
    height: 36px;
    padding: 0 0.75rem;
    font-size: 0.8rem;
  }

  .bb-ai-chip--desk { display: inline-flex; }
}

/* ——— Main sheet behind search (overlaps hero) ——— */
.bb-home-sheet {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 100%;
  margin-top: -1.85rem;
  background: var(--bb-white);
  border-radius: 24px 24px 0 0;
  box-sizing: border-box;
  overflow-x: clip;
  padding-bottom: 0.35rem;
}

@media (min-width: 1024px) {
  .bb-home-sheet {
    margin-top: -3rem;
    border-radius: 32px 32px 0 0;
  }
}

/* ——— Floating search: sits inside the sheet ——— */
.bb-search-dock {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 0 0.9rem;
  max-width: 1120px;
  overflow: visible;
}

@media (min-width: 1024px) {
  .bb-search-dock {
    padding: 0 1.25rem;
  }
}

.bb-search-panel {
  position: relative;
  background: transparent;
  padding: 0.85rem 0.85rem 0.45rem;
}

@media (min-width: 1024px) {
  .bb-search-panel { padding: 1rem 1.15rem 0.55rem; }
}


.bb-cat-tabs {
  display: flex;
  justify-content: space-between;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 1rem auto 0;
  padding: 0.15rem 0.9rem 0.35rem;
  max-width: 1120px;
}

.bb-cat-tabs::-webkit-scrollbar { display: none; }

.bb-cat-tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 4.5rem;
  padding: 0.35rem 0.55rem 0.5rem;
  border: 0;
  background: transparent;
  color: var(--bb-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.bb-cat-tab i {
  font-size: 1.05rem;
  color: var(--bb-navy);
  opacity: 0.7;
}

.bb-cat-tab.is-active {
  color: var(--bb-navy);
}

.bb-cat-tab.is-active i { opacity: 1; }

.bb-cat-tab.is-active::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 2.5px;
  background: var(--bb-gold);
  border-radius: 2px;
}

.bb-search-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.bb-search-trigger {
  flex: 1;
  min-width: 0;
  height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.95rem;
  border: 1px solid var(--bb-border);
  border-radius: 14px;
  background: #fff;
  color: var(--bb-muted);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(7, 59, 115, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bb-search-trigger:hover,
.bb-search-trigger:focus {
  border-color: var(--bb-navy);
  box-shadow: 0 0 0 3px rgba(7, 59, 115, 0.12);
  outline: none;
}

.bb-search-trigger i { color: var(--bb-navy); flex-shrink: 0; }
.bb-search-trigger span { truncate: true; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bb-search-select {
  height: 3rem;
  min-width: 9.5rem;
  padding: 0 0.85rem;
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  background: var(--bb-white);
  color: var(--bb-text);
  font-size: 0.875rem;
  display: none;
}

@media (min-width: 1024px) {
  select.bb-search-select:not(.bb-select__native) { display: block; }
}

.bb-search-btn {
  height: 3rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 12px;
  background: var(--bb-gold);
  color: var(--bb-navy-dark);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.bb-search-btn:hover {
  background: var(--bb-gold-hover);
  transform: translateY(-1px);
}

.bb-filter-btn {
  height: 3rem;
  padding: 0 0.95rem;
  border: 1px solid var(--bb-border);
  border-radius: 14px;
  background: var(--bb-bg);
  color: var(--bb-navy);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  flex-shrink: 0;
}

.bb-filter-btn--dock {
  height: 3rem;
  padding: 0 0.85rem;
}

@media (min-width: 1024px) {
  .bb-filter-btn--dock { display: none; }
  .bb-search-btn--desktop { display: inline-flex; }
}

.bb-search-btn--desktop { display: none; }

@media (max-width: 1023px) {
  .bb-search-panel {
    display: flex;
    flex-direction: column;
  }
}

/* ——— Full-screen search (covers header / language / bottom nav) ——— */
html.bb-search-open,
html.bb-search-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.bb-search-open .bb-mobile-header,
html.bb-search-open .bb-site-header,
html.bb-search-open .bb-mobile-bottom-nav,
html.bb-search-open .bb-sidebar,
html.bb-search-open #sidebarOverlay,
html.bb-search-open .bb-lang-dd__list {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.bb-search-modal {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  flex-direction: column;
  background: #fff;
  contain: layout style paint;
  overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bb-search-modal__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 3.5rem;
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid rgba(7, 59, 115, 0.08);
  flex-shrink: 0;
}

.bb-search-modal__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bb-navy);
  letter-spacing: -0.02em;
}

.bb-search-modal__icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: var(--bb-bg);
  border-radius: 999px;
  color: var(--bb-navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.bb-search-modal__filter {
  height: 2.35rem;
  padding: 0 0.85rem;
  border: 1px solid var(--bb-border);
  border-radius: 999px;
  background: #fff;
  color: var(--bb-navy);
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  flex-shrink: 0;
}

.bb-search-modal__field {
  position: relative;
  margin: 0.75rem 0.9rem 0.45rem;
  flex-shrink: 0;
}

.bb-search-modal__field i {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bb-navy);
  pointer-events: none;
}

.bb-search-modal__field input {
  width: 100%;
  height: 3.05rem;
  border: 1px solid var(--bb-border);
  border-radius: 14px;
  background: var(--bb-bg);
  padding: 0 1rem 0 2.65rem;
  font-size: 16px;
  color: var(--bb-text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.bb-search-modal__field input:focus {
  border-color: var(--bb-navy);
  box-shadow: 0 0 0 3px rgba(7, 59, 115, 0.12);
  background: #fff;
}

.bb-search-modal__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bb-search-modal__body li > button {
  content-visibility: auto;
  contain-intrinsic-size: 1px 64px;
}

.bb-filters-modal {
  position: fixed;
  inset: 0;
  z-index: 200010;
  background: rgba(7, 20, 40, 0.48);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overscroll-behavior: contain;
}

@media (min-width: 768px) {
  .bb-filters-modal { align-items: center; padding: 1.25rem; }
}

.bb-filters-modal__sheet {
  width: 100%;
  max-width: 32rem;
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 24px 60px rgba(7, 20, 40, 0.22);
  max-height: min(88vh, 720px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .bb-filters-modal__sheet { border-radius: 1.15rem; }
}

/* ——— Stats ticker ——— */
.bb-stats {
  max-width: 1120px;
  margin: 0.45rem auto 0;
  padding: 0 0.9rem;
}

.bb-stats__marquee {
  position: relative;
  overflow: hidden;
  height: 2.55rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  border: 1px solid #e3ebf2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  direction: ltr;
}

.bb-stats__marquee::before,
.bb-stats__marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.15rem;
  z-index: 2;
  pointer-events: none;
}

.bb-stats__marquee::before {
  left: 0;
  background: linear-gradient(90deg, #f3f6f9 0%, rgba(243, 246, 249, 0) 100%);
}

.bb-stats__marquee::after {
  right: 0;
  background: linear-gradient(270deg, #f3f6f9 0%, rgba(243, 246, 249, 0) 100%);
}

.bb-stats__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: none;
  will-change: transform;
}

.bb-stats__group {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
}

.bb-stat {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  height: 100%;
  padding: 0 1.15rem;
  white-space: nowrap;
}

.bb-stat::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--bb-gold);
  transform: translate(50%, -50%);
  box-shadow: 0 0 0 2px rgba(231, 195, 79, 0.16);
}

.bb-stat i {
  color: var(--bb-navy);
  font-size: 0.68rem;
  margin: 0;
  display: inline-block;
  line-height: 1;
}

.bb-stat__value {
  font-family: var(--bb-font-sans) !important;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--bb-navy);
  line-height: 1;
  letter-spacing: -0.01em;
}

.bb-stat__label {
  font-size: 0.62rem;
  color: #7b8696;
  font-weight: 600;
  margin: 0;
  line-height: 1;
}

@keyframes bb-stats-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (min-width: 768px) {
  .bb-stats { margin-top: 0.85rem; }
  .bb-stats__marquee { height: 3.15rem; }
  .bb-stat { padding: 0 1.85rem; gap: 0.55rem; }
  .bb-stat i { font-size: 0.82rem; }
  .bb-stat__value { font-size: 0.92rem; }
  .bb-stat__label { font-size: 0.78rem; }
}

/* ——— Section headers ——— */
.bb-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.75rem 0.9rem 0.5rem;
}

@media (min-width: 1024px) {
  .bb-section { padding: 2.25rem 1.25rem 0.75rem; }
}

.bb-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bb-section__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bb-gold);
  margin-bottom: 0.2rem;
}

.bb-section__title {
  font-family: var(--bb-font-serif) !important;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--bb-navy);
  margin: 0;
  line-height: 1.15;
}

.bb-section__link {
  color: var(--bb-gold);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.bb-section__link:hover { color: var(--bb-gold-hover); }

/* ——— Locations carousel (unchanged track) ——— */
.bb-carousel {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.25rem 0.15rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.bb-carousel::-webkit-scrollbar { display: none; }

/* ——— Featured Properties ——— */
.bb-feat {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.15rem 0.9rem 0.35rem;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .bb-feat { padding: 1.5rem 1.25rem 0.5rem; }
}

.bb-feat__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.bb-feat__rule {
  display: block;
  width: 2.15rem;
  height: 3px;
  background: var(--bb-gold);
  border-radius: 99px;
  margin-bottom: 0.4rem;
}

.bb-feat__title {
  font-family: var(--bb-font-sans) !important;
  font-size: clamp(1.35rem, 4.4vw, 1.85rem);
  font-weight: 800;
  color: var(--bb-navy);
  margin: 0;
  line-height: 1.15;
}

.bb-feat__all {
  color: var(--bb-gold);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}

.bb-feat__all:hover { color: var(--bb-gold-hover); }

.bb-feat-wrap { position: relative; }

.bb-feat-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.15rem 0 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.bb-feat-track::-webkit-scrollbar { display: none; }

.bb-feat-slide {
  flex: 0 0 86%;
  max-width: 360px;
  scroll-snap-align: start;
  min-width: 0;
}

@media (min-width: 768px) {
  .bb-feat-slide { flex-basis: 320px; }
}

@media (min-width: 1024px) {
  .bb-feat-slide { flex-basis: 340px; }
}

@media (min-width: 1440px) {
  .bb-feat-slide { flex-basis: 360px; }
}

.bb-feat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bb-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(7, 59, 115, 0.08);
  border: 1px solid rgba(7, 59, 115, 0.06);
  height: 100%;
  transition: transform 0.25s var(--bb-ease), box-shadow 0.25s;
}

@media (min-width: 1024px) {
  .bb-feat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(7, 59, 115, 0.12);
  }
  .bb-feat-card:hover .bb-feat-card__media img {
    transform: scale(1.04);
  }
}

.bb-feat-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a2748;
}

.bb-feat-card__media img,
.bb-feat-card__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--bb-ease);
}

.bb-feat-card__video {
  z-index: 1;
  object-fit: contain;
  background: #0a2748;
  opacity: 1;
}

.bb-feat-card__media > img {
  z-index: 2;
}

.bb-feat-card__media.is-playing > img {
  z-index: 1;
}

.bb-feat-card__media.is-playing > .bb-feat-card__video {
  z-index: 2;
}

.bb-feat-card__mark {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}

.bb-feat-card__mark img {
  position: static;
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
  opacity: 0.45;
  margin-bottom: 0.2rem;
}

.bb-feat-card__mark span {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  opacity: 0.42;
  transform: rotate(-12deg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.bb-card-media .bb-slide {
  visibility: hidden;
  z-index: 0;
}

.bb-card-media .bb-slide.is-active {
  visibility: visible;
  z-index: 1;
}

.bb-card-img {
  z-index: 2;
}

.bb-card-video {
  z-index: 1;
  opacity: 1;
  object-fit: contain;
  background: #0a2748;
}

.bb-slide.is-playing .bb-card-img,
.bb-card-media.is-playing .bb-card-img {
  z-index: 1;
}

.bb-slide.is-playing .bb-card-video,
.bb-card-media.is-playing .bb-card-video {
  z-index: 2;
}

.bb-media-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: transparent;
}

.bb-clip-more,
.is-clip-ended .bb-clip-more {
  display: none !important;
}

.bb-preview-video,
.bb-card-video,
.bb-feat-card__video {
  pointer-events: none;
}

.bb-preview-video::-webkit-media-controls,
.bb-preview-video::-webkit-media-controls-enclosure,
.bb-preview-video::-webkit-media-controls-start-playback-button,
.bb-preview-video::-webkit-media-controls-overlay-play-button,
.bb-card-video::-webkit-media-controls,
.bb-feat-card__video::-webkit-media-controls {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
  pointer-events: none !important;
}

.bb-card-media,
.bb-slide {
  background-color: #dce3ec;
}

img.bb-card-img:not([src]),
.bb-feat-card__media > img:not([src]) {
  visibility: hidden;
}

.bb-media-loader {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: transparent;
}

.bb-media-loader.is-visible {
  display: flex;
}

.bb-media-loader.is-hidden {
  display: none !important;
}

.bb-media-loader.is-hidden,
[data-bb-media="playing"] > .bb-media-loader,
[data-bb-media="loaded"] > .bb-media-loader,
[data-bb-media="ready"] > .bb-media-loader,
[data-bb-media="error"] > .bb-media-loader {
  display: none !important;
}

.bb-media-loader::after {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--bb-gold, #e7c34f);
  border-radius: 50%;
  animation: bb-media-spin 0.7s linear infinite;
}

@keyframes bb-media-spin {
  to { transform: rotate(360deg); }
}

.bb-carousel,
.bb-feat-track,
.bb-trust__track,
.bb-trust-card {
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}

.bb-feat-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(5, 46, 92, 0.12) 18%, rgba(5, 20, 40, 0.9) 100%);
  pointer-events: none;
}

.bb-feat-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 0.75rem 0.9rem 0.8rem;
  pointer-events: none;
}

.bb-feat-card__badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 7;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.26rem 0.55rem;
  border-radius: 7px;
}

.bb-feat-card__badge--premium {
  background: var(--bb-gold);
  color: var(--bb-navy-dark);
}

.bb-feat-card__badge--rent {
  background: var(--bb-navy);
  color: #fff;
}

.bb-feat-card__badge--new {
  background: #16a34a;
  color: #fff;
}

.bb-feat-card__badge--featured {
  background: var(--bb-navy-dark);
  color: #fff;
}

.bb-feat-card__fav {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 7;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: var(--bb-navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

@media (min-width: 1024px) {
  .bb-feat-card__fav {
    width: 2.85rem;
    height: 2.85rem;
    font-size: 1.05rem;
  }
}

.bb-feat-card__fav.is-saved,
.bb-feat-card__fav.is-saved i {
  color: #ef4444;
}

.bb-feat-card__price {
  font-size: 1.28rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.12rem;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.bb-feat-card__type {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.18rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.bb-feat-card__loc {
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.bb-feat-card__loc i { margin-inline-end: 0.28rem; }

.bb-feat-card__specs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.35rem;
  background: #fff;
  padding: 0.55rem 0.5rem;
  border-top: 1px solid #eef2f6;
}

.bb-feat-card__specs span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--bb-navy);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.bb-feat-card__specs i {
  font-size: 0.85rem;
  color: var(--bb-navy);
}

@media (min-width: 768px) {
  .bb-feat-card__specs span { font-size: 0.84rem; }
  .bb-feat-card__specs i { font-size: 0.95rem; }
}

.bb-feat-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0 0.15rem;
}

.bb-feat-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #d4d9e2;
  cursor: pointer;
}

.bb-feat-dot.is-active { background: var(--bb-gold); }

.bb-feat-empty {
  margin: 0;
  padding: 1.25rem 0.25rem;
  color: var(--bb-muted);
  font-size: 0.9rem;
}

.bb-carousel-wrap {
  position: relative;
}

.bb-carousel-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--bb-border);
  background: var(--bb-white);
  color: var(--bb-navy);
  box-shadow: var(--bb-shadow);
  z-index: 3;
  cursor: pointer;
  place-items: center;
}

@media (min-width: 1024px) {
  .bb-carousel-nav { display: grid; }
  .bb-carousel-nav--prev { left: -0.5rem; }
  .bb-carousel-nav--next { right: -0.5rem; }
}

/* ——— Locations ——— */
.bb-loc-card {
  flex: 0 0 72%;
  max-width: 280px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
  text-decoration: none;
  background: #0a2748;
  border: 0;
  box-shadow: 0 6px 16px rgba(7, 59, 115, 0.1);
}

.bb-loc-card.is-active {
  box-shadow: 0 0 0 2px #e7c34f, 0 6px 16px rgba(7, 59, 115, 0.16);
}

#productsRoot.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

@media (min-width: 768px) {
  .bb-loc-card {
    flex-basis: 260px;
    max-width: 300px;
  }
}

.bb-loc-card img,
.bb-loc-card__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.bb-loc-card__fallback {
  background: #073b73;
}

.bb-loc-card__scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(5, 20, 40, 0.62));
  pointer-events: none;
}

.bb-loc-card__label {
  position: absolute;
  left: 0.7rem;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0;
  background: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ——— Bottom nav ——— */
.bb-mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: 100vw;
  background: #ffffff;
  border-top: 1px solid #e8edf3;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.05);
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  overflow: visible;
}

.bb-mobile-bottom-nav__bar {
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  overflow: visible;
}

.bb-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 72px;
  width: 100%;
  min-width: 0;
  color: #5b6f86;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0 1px;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.bb-bnav-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}

.bb-bnav-icon i {
  width: 24px;
  height: 24px;
  font-size: 24px !important;
  line-height: 24px !important;
  display: block;
  text-align: center;
}

.bb-bnav-icon i::before {
  display: block;
  line-height: 24px;
}

.bb-bnav-label {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: clamp(11px, 3.6vw, 14px);
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  overflow: visible;
  text-align: center;
  letter-spacing: -0.03em;
  color: inherit;
}

.bb-bnav-item.is-active,
.bb-bnav-item.is-active .bb-bnav-label,
.bb-bnav-item.is-active i {
  color: var(--bb-gold);
}

.bb-bnav-post,
.bb-bnav-post .bb-bnav-icon {
  overflow: visible;
}

.bb-bnav-post__btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bb-gold);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, calc(-50% - 6px));
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(231, 195, 79, 0.35);
  border: 0;
  pointer-events: none;
}

.bb-bnav-post__btn i {
  width: 26px;
  height: 26px;
  font-size: 22px !important;
  line-height: 26px !important;
  color: #ffffff;
  display: block;
  text-align: center;
}

.bb-bnav-post .bb-bnav-label {
  color: #5b6f86;
}

body.has-bottom-nav {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

body.has-bottom-nav .bb-back-to-top {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

/* Home page shell */
.bb-home-page {
  background: var(--bb-bg);
}

.bb-home-page .bb-card {
  border-radius: var(--bb-radius-lg);
  border-color: var(--bb-border);
}

.bb-home-page .bb-card .bb-card-price {
  color: var(--bb-navy) !important;
}

.bb-home-page .bb-card .bb-card-title {
  color: var(--bb-text) !important;
}

/* AI chat shell */
.bb-ai-shell {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

.bb-ai-shell__card {
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-xl);
  box-shadow: var(--bb-shadow);
  padding: 2rem 1.5rem;
  text-align: center;
}

.bb-ai-shell__card h1 {
  font-family: var(--bb-font-serif) !important;
  color: var(--bb-navy);
  font-size: 1.85rem;
  margin: 0.75rem 0 0.5rem;
}

.bb-ai-shell__card p {
  color: var(--bb-muted);
  margin: 0 auto 1.25rem;
  max-width: 28rem;
  line-height: 1.55;
}

/* Focus visibility */
.bb-hamburger:focus-visible,
.bb-search-trigger:focus-visible,
.bb-ai-cta:focus-visible,
.bb-post-cta:focus-visible,
.bb-bnav-item:focus-visible,
.bb-feat-card__fav:focus-visible {
  outline: 2px solid var(--bb-gold);
  outline-offset: 2px;
}

/* Hide legacy top mini-bar on redesigned chrome */
.bb-legacy-topbar { display: none !important; }

/* ——— Property details page ——— */
.bb-show-main {
  max-width: 1440px;
}

.bb-show {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.bb-show__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bb-show__back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--bb-navy);
  font-size: 0.92rem;
  font-weight: 600;
}

.bb-show__fav {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--bb-border);
  border-radius: 999px;
  background: #fff;
  color: var(--bb-navy);
  display: grid;
  place-items: center;
  box-shadow: none;
}

.bb-show__fav.is-saved,
.bb-show__fav.is-saved i {
  color: #ef4444;
}

.bb-show__hero {
  display: grid;
  gap: 1.35rem;
  min-width: 0;
}

.bb-show-gallery,
.bb-product-show .bb-product-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  max-height: none;
  border-radius: 18px;
  overflow: hidden;
  background: #dce3ec;
  box-shadow: none;
}

.bb-show-gallery__blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(28px);
  transform: scale(1.12);
  opacity: 0.38;
}

.bb-show-gallery__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  background: #dce3ec;
}

.bb-show-gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.bb-show-gallery__slide[hidden] {
  display: none !important;
}

.bb-show-gallery__poster,
.bb-show-gallery__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.bb-show-gallery__poster {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.bb-show-gallery video.bb-show-gallery__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
  background: #0a2748;
}

.bb-show-gallery.is-playing .bb-show-gallery__poster,
.bb-show-gallery__slide.is-playing .bb-show-gallery__poster {
  z-index: 1;
}

.bb-show-gallery.is-playing video.bb-show-gallery__media,
.bb-show-gallery__slide.is-playing video.bb-show-gallery__media {
  z-index: 2;
}

.bb-show-gallery video.bb-show-gallery__media::-webkit-media-controls,
.bb-show-gallery video.bb-show-gallery__media::-webkit-media-controls-start-playback-button,
.bb-show-gallery video.bb-show-gallery__media::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
}

.bb-show-gallery__mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.bb-show-gallery__mark img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.45;
}

.bb-show-gallery__mark span {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.4;
  transform: rotate(-12deg);
}

.bb-show-gallery__tools {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 5;
  display: flex;
  gap: 0.4rem;
}

.bb-show-gallery__tool,
.bb-show-gallery__nav {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--bb-navy);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(7, 59, 115, 0.12);
}

.bb-show-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.bb-show-gallery__nav--prev { left: 0.65rem; }
.bb-show-gallery__nav--next { right: 0.65rem; }

.bb-show-gallery__count {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 5;
  min-width: 2.8rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(7, 31, 56, 0.62);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.bb-show__summary {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.bb-show-agent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bb-border);
}

.bb-show-agent__photo {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  object-fit: cover;
  background: #eef2f6;
  flex-shrink: 0;
}

.bb-show-agent__copy {
  min-width: 0;
  flex: 1;
}

.bb-show-agent__name {
  margin: 0;
  color: var(--bb-navy);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.bb-show-agent__you {
  margin-left: 0.35rem;
  color: var(--bb-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.bb-show-agent__role {
  margin: 0.15rem 0 0;
  color: var(--bb-muted);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.bb-show-agent__role i {
  color: var(--bb-gold);
  font-size: 0.72rem;
}

.bb-show-agent__link {
  flex-shrink: 0;
  color: var(--bb-navy);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.bb-show__badge {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: var(--bb-gold);
  color: var(--bb-navy-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.bb-show__title {
  margin: 0;
  color: var(--bb-navy);
  font-family: var(--bb-font-serif);
  font-size: clamp(1.55rem, 5.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.bb-show__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--bb-muted);
  font-size: 0.82rem;
}

.bb-show__meta li + li::before {
  content: "·";
  margin-right: 0.7rem;
  color: #c5ced8;
}

.bb-show__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin-top: 0.95rem;
}

.bb-show__amount {
  margin: 0;
  color: var(--bb-gold);
  font-size: clamp(1.45rem, 4.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bb-show__price-type {
  color: var(--bb-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.bb-show__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.bb-show__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.bb-show__btn--wa {
  background: #1f9e57;
  color: #fff;
}

.bb-show__btn--call {
  background: var(--bb-navy);
  color: #fff;
}

.bb-show-section {
  min-width: 0;
}

.bb-show-section__title {
  margin: 0 0 0.85rem;
  color: var(--bb-navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bb-show-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.bb-show-stats__item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  background: #fff;
}

.bb-show-stats__item i {
  margin-top: 0.15rem;
  color: var(--bb-navy);
  font-size: 0.85rem;
}

.bb-show-stats__item span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.1rem;
}

.bb-show-stats__item strong {
  color: var(--bb-text);
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.bb-show-stats__item small {
  color: var(--bb-muted);
  font-size: 0.7rem;
}

.bb-show-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bb-show-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--bb-border);
  border-radius: 999px;
  background: #fff;
  color: var(--bb-text);
  font-size: 0.78rem;
  font-weight: 600;
}

.bb-show-chip--navy {
  background: rgba(7, 59, 115, 0.05);
  border-color: rgba(7, 59, 115, 0.12);
  color: var(--bb-navy);
}

.bb-show-desc {
  color: var(--bb-text);
  font-size: 0.98rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}

.bb-show-similar__track {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bb-show-similar__track::-webkit-scrollbar {
  display: none;
}

.bb-sim-card {
  flex: 0 0 13.75rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bb-border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  scroll-snap-align: start;
  min-width: 0;
}

.bb-sim-card__media {
  aspect-ratio: 16 / 10;
  background: #dce3ec;
  overflow: hidden;
}

.bb-sim-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-sim-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.8rem 0.9rem;
}

.bb-sim-card__price {
  margin: 0;
  color: var(--bb-gold);
  font-size: 0.88rem;
  font-weight: 700;
}

.bb-sim-card__title {
  margin: 0;
  color: var(--bb-navy);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bb-sim-card__loc,
.bb-sim-card__ref {
  margin: 0;
  color: var(--bb-muted);
  font-size: 0.72rem;
}

.bb-show-fs {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 16, 32, 0.94);
}

.bb-show-fs__media {
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
}

.bb-show-fs__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: 0;
}

.bb-show-fs__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: grid;
  place-items: center;
}

.bb-show-fs__nav--prev { left: 1rem; }
.bb-show-fs__nav--next { right: 1rem; }

@media (min-width: 768px) {
  .bb-show {
    gap: 2rem;
  }

  .bb-show-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .bb-show__hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(20rem, 0.7fr);
    gap: 2.25rem;
    align-items: start;
  }

  .bb-show__summary {
    position: sticky;
    top: calc(var(--bb-header-h) + 1rem);
    padding: 0.25rem 0 0;
  }

  .bb-show-gallery,
  .bb-product-show .bb-product-gallery {
    border-radius: 20px;
  }

  .bb-show__actions {
    margin-top: 0.25rem;
  }
}

@media (max-width: 359px) {
  .bb-show-main {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .bb-show__btn {
    font-size: 0.84rem;
  }
}

/* ——— Profile ——— */
.bb-prof-main {
  padding-left: 0;
  padding-right: 0;
}

.bb-prof {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.bb-prof-cover {
  position: relative;
  height: 148px;
  background: #052447;
  overflow: hidden;
}

.bb-prof-cover picture,
.bb-prof-cover img {
  display: block;
  width: 100%;
  height: 100%;
}

.bb-prof-cover img {
  object-fit: cover;
  object-position: center 42%;
}

.bb-prof-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e7c34f 40%, #e7c34f 60%, transparent);
  pointer-events: none;
}

.bb-prof-identity {
  padding: 0 1rem 0;
}

.bb-prof-avatar-wrap {
  position: relative;
  width: 5.75rem;
  height: 5.75rem;
  margin-top: -2.85rem;
}

.bb-prof-avatar {
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 999px;
  object-fit: cover;
  background: #dce3ec;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #e7c34f;
  display: block;
}

.bb-prof-avatar-btns {
  position: absolute;
  right: -0.15rem;
  bottom: -0.1rem;
  display: flex;
  gap: 0.28rem;
}

.bb-prof-avatar-btn {
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.62rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 20, 40, 0.22);
}

.bb-prof-avatar-btn--add { background: #073b73; }
.bb-prof-avatar-btn--del { background: #9b1c1c; }

.bb-prof-copy {
  margin-top: 0.7rem;
}

.bb-prof-name {
  margin: 0;
  color: #073b73;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.bb-prof-verify {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.28rem;
  color: #073b73;
  font-size: 0.75rem;
  font-weight: 600;
}

.bb-prof-verify i { color: #e7c34f; }

.bb-prof-type {
  margin: 0.18rem 0 0;
  color: #5b6b7c;
  font-size: 0.8rem;
  font-weight: 500;
}

.bb-prof-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
  margin-top: 0.45rem;
  color: #6b7785;
  font-size: 0.78rem;
}

.bb-prof-sub span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.bb-prof-bio {
  margin: 0.7rem 0 0;
  color: #3d4a57;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-line;
}

.bb-prof-bio-edit {
  margin-left: 0.35rem;
  border: 0;
  background: none;
  color: #073b73;
  cursor: pointer;
  font-size: 0.72rem;
}

.bb-prof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.bb-prof-actions a,
.bb-prof-actions button,
.bb-prof-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.bb-prof-btn--gold {
  background: #e7c34f;
  color: #073b73;
  border-color: #e7c34f;
}

.bb-prof-btn--navy {
  background: #073b73;
  color: #fff;
}

.bb-prof-btn--line {
  background: #fff;
  color: #073b73;
  border-color: #d5dde6;
}

.bb-prof-chip {
  background: #f3f6fa;
  color: #5b6b7c;
  cursor: default;
}

.bb-prof-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1.15rem 1rem 0;
  padding: 0.7rem 0;
  border-top: 1px solid #e8eef4;
  border-bottom: 1px solid #e8eef4;
}

.bb-prof-stat {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.bb-prof-stat strong {
  display: block;
  color: #073b73;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
}

.bb-prof-stat span {
  color: #6b7785;
  font-size: 0.72rem;
  font-weight: 500;
}

.bb-prof-stat + .bb-prof-stat {
  border-left: 1px solid #e8eef4;
}

.bb-prof-tabs {
  display: flex;
  gap: 1.25rem;
  margin: 0.15rem 1rem 0;
  border-bottom: 1px solid #e8eef4;
}

.bb-prof-tab {
  position: relative;
  padding: 0.8rem 0 0.7rem;
  color: #6b7785;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.bb-prof-tab.is-active {
  color: #073b73;
}

.bb-prof-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #e7c34f;
}

.bb-prof-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 720px;
  margin: 1rem auto 0;
  padding: 0 1rem;
}

.bb-prof-feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.bb-prof-feed-head h2 {
  margin: 0;
  color: #073b73;
  font-size: 0.95rem;
  font-weight: 700;
}

.bb-prof-feed-head a {
  color: #073b73;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.bb-prof-post {
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(7, 59, 115, 0.05);
  overflow: hidden;
}

.bb-prof-post__who {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem 0.55rem;
}

.bb-prof-post__who img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  object-fit: cover;
  background: #dce3ec;
}

.bb-prof-post__who strong {
  display: block;
  color: #102033;
  font-size: 0.88rem;
  font-weight: 600;
}

.bb-prof-post__who time {
  color: #7a8693;
  font-size: 0.72rem;
}

.bb-prof-post__badge {
  margin-left: auto;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bb-prof-post__badge--pending { background: #f6e9b8; color: #073b73; }
.bb-prof-post__badge--rejected { background: #f4d4d4; color: #8a1f1f; }
.bb-prof-post__badge--premium { background: #e7c34f; color: #073b73; }

.bb-prof-post__text {
  margin: 0;
  padding: 0 0.95rem 0.7rem;
  color: #3d4a57;
  font-size: 0.86rem;
  line-height: 1.45;
}

.bb-prof-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #dce3ec;
  overflow: hidden;
}

.bb-prof-media img,
.bb-prof-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bb-prof-media video {
  object-fit: contain;
  background: #0a2748;
}

.bb-prof-media > img { z-index: 2; }
.bb-prof-media video { z-index: 1; }
.bb-prof-media.is-playing > img { z-index: 1; }
.bb-prof-media.is-playing video { z-index: 2; }

.bb-prof-media__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 1.7rem;
  height: 1.7rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #073b73;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.bb-prof-media__nav--prev { left: 0.55rem; }
.bb-prof-media__nav--next { right: 0.55rem; }

.bb-prof-post__body {
  padding: 0.85rem 0.95rem 0.35rem;
}

.bb-prof-post__price {
  margin: 0 0 0.2rem;
  color: #c9a227;
  font-size: 1.05rem;
  font-weight: 700;
}

.bb-prof-post__title {
  margin: 0 0 0.4rem;
  color: #102033;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.bb-prof-post__title:hover { color: #073b73; }

.bb-prof-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  color: #5b6b7c;
  font-size: 0.75rem;
}

.bb-prof-post__loc {
  margin: 0.4rem 0 0;
  color: #5b6b7c;
  font-size: 0.75rem;
}

.bb-prof-post__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.15rem;
  padding: 0.55rem 0.65rem 0.7rem;
  border-top: 1px solid #eef2f6;
}

.bb-prof-post__acts a,
.bb-prof-post__acts button {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 1.9rem;
  padding: 0.2rem 0.55rem;
  border: 0;
  background: none;
  color: #4a5968;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.bb-prof-post__acts a:hover,
.bb-prof-post__acts button:hover { color: #073b73; }

.bb-prof-post__acts .is-danger:hover { color: #9b1c1c; }

.bb-prof-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #6b7785;
}

.bb-prof-empty a {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: #073b73;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.bb-prof-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(7, 20, 40, 0.45);
}

.bb-prof-modal.is-open { display: flex; }

.bb-prof-modal__box {
  width: 100%;
  max-width: 24rem;
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.2rem 1.15rem;
}

.bb-prof-modal__box h3 {
  margin: 0 0 0.45rem;
  color: #073b73;
  font-size: 1.05rem;
}

.bb-prof-modal__box p {
  margin: 0 0 1rem;
  color: #4a5968;
  font-size: 0.88rem;
}

.bb-prof-modal__row {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.bb-prof-modal__row a,
.bb-prof-modal__row button {
  min-height: 2.2rem;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  border: 0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.bb-prof-modal__cancel { background: #eef2f6; color: #243246; }
.bb-prof-modal__go { background: #25d366; color: #fff; }
.bb-prof-modal__del { background: #b42318; color: #fff; }

@media (min-width: 768px) {
  .bb-prof {
    padding: 1.25rem 0 3rem;
  }

  .bb-prof-cover {
    height: 220px;
    border-radius: 20px 20px 0 0;
  }

  .bb-prof-shell {
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(7, 59, 115, 0.06);
    overflow: hidden;
  }

  .bb-prof-identity {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 1.5rem;
    align-items: end;
    padding: 0 1.5rem 0.25rem;
  }

  .bb-prof-lead { grid-column: 1; }

  .bb-prof-avatar-wrap {
    width: 7.25rem;
    height: 7.25rem;
    margin-top: -3.6rem;
  }

  .bb-prof-avatar {
    width: 7.25rem;
    height: 7.25rem;
  }

  .bb-prof-name { font-size: 1.7rem; }

  .bb-prof-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-content: flex-end;
    margin-top: 0;
    padding-bottom: 0.15rem;
  }

  .bb-prof-stats,
  .bb-prof-tabs {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  .bb-prof-feed {
    padding-left: 0;
    padding-right: 0;
    margin-top: 1.35rem;
  }
}

@media (max-width: 359px) {
  .bb-prof-name { font-size: 1.2rem; }
  .bb-prof-identity { padding-left: 0.85rem; padding-right: 0.85rem; }
  .bb-prof-stats,
  .bb-prof-tabs { margin-left: 0.85rem; margin-right: 0.85rem; }
  .bb-prof-feed { padding-left: 0.85rem; padding-right: 0.85rem; }
}

/* ——— Trusted Partners ——— */
.bb-trust {
  position: relative;
  margin-top: 0.35rem;
  padding: 0.75rem 0 0.9rem;
  overflow: hidden;
}

.bb-trust__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bb-trust__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
  display: block;
}

.bb-trust__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(248, 250, 252, 0.62));
}

.bb-trust__inner {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.bb-trust__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.bb-trust__rule {
  width: 2.1rem;
  height: 2px;
  background: #e7c34f;
  border-radius: 99px;
}

.bb-trust__title {
  margin: 0;
  color: #073b73;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bb-trust__wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.bb-trust__track {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.7rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0.15rem 0.45rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.bb-trust__track::-webkit-scrollbar { display: none; }
.bb-trust__track:active { cursor: grabbing; }

.bb-trust-card {
  flex: 0 0 42%;
  max-width: 148px;
  min-width: 120px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(7, 59, 115, 0.06);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  -webkit-user-drag: none;
  user-select: none;
  touch-action: pan-x pan-y;
  transition: box-shadow 0.18s ease;
}

.bb-trust-card:hover {
  box-shadow: 0 10px 22px rgba(7, 59, 115, 0.1);
}

.bb-trust-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #dce3ec;
  overflow: hidden;
}

.bb-trust-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bb-trust-card__admin {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  background: #9b1c1c;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
}

.bb-trust-card__meta {
  padding: 0.28rem 0.4rem 0.38rem;
  text-align: center;
}

.bb-trust-card__name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  margin: 0;
  color: #073b73;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
}

.bb-trust-card__name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 6.4rem;
}

.bb-trust-card__name i {
  flex-shrink: 0;
  color: #e7c34f;
  font-size: 0.68rem;
}

.bb-trust__nav {
  display: none;
  position: static;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  transform: none;
  border: 1px solid #e6edf3;
  border-radius: 999px;
  background: #fff;
  color: #073b73;
  box-shadow: 0 4px 12px rgba(7, 59, 115, 0.1);
  cursor: pointer;
  place-items: center;
  font-size: 0.62rem;
}

.bb-trust__nav--prev,
.bb-trust__nav--next {
  left: auto;
  right: auto;
}

@media (min-width: 768px) {
  .bb-trust {
    padding: 0.85rem 0 0.95rem;
  }

  .bb-trust__title { font-size: 1.12rem; }

  .bb-trust__inner { padding: 0 1.25rem; }

  .bb-trust-card {
    flex-basis: 140px;
    max-width: 140px;
  }

  .bb-trust__nav { display: grid; }
}

@media (min-width: 1280px) {
  .bb-trust-card {
    flex-basis: 148px;
    max-width: 148px;
  }
}

@media (max-width: 359px) {
  .bb-trust-card { flex-basis: 46%; max-width: 136px; min-width: 112px; }
}

/* ——— Overlay lock + shared scrim ——— */
:root {
  --bb-z-scrim: 90000;
  --bb-z-drawer: 90010;
  --bb-scrim: rgba(0, 20, 45, 0.30);
  --bb-scrim-blur: 4px;
  --bb-overlay-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html.bb-overlay-locked,
html.bb-overlay-locked body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.bb-overlay-locked .bb-site-header,
html.bb-overlay-locked .bb-mobile-header,
html.bb-overlay-locked .bb-mobile-bar,
html.bb-overlay-locked .bb-mobile-bottom-nav,
html.bb-overlay-locked .bb-back-to-top {
  padding-right: var(--bb-scrollbar-comp, 0px);
}

.bb-scrim,
.bb-sidebar-backdrop,
.bb-filters-modal,
.bb-prof-modal,
.bb-sort-modal,
.bb-admin-modal-scrim,
#filterModal,
.bb-share-popup {
  background: var(--bb-scrim);
  -webkit-backdrop-filter: blur(var(--bb-scrim-blur));
  backdrop-filter: blur(var(--bb-scrim-blur));
}

.bb-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  touch-action: none;
  transition: opacity 0.24s var(--bb-overlay-ease), visibility 0.24s var(--bb-overlay-ease);
}

.bb-sidebar-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bb-sidebar {
  z-index: 99999;
  isolation: isolate;
  width: min(20.5rem, 86vw);
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff !important;
  filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.bb-sidebar [data-bb-overlay-scroll] {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

[data-bb-overlay-scroll] {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.bb-admin-modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 99998;
}

.bb-prof-modal,
.bb-sort-modal,
.bb-location-overlay,
.bb-tx-lightbox,
#filterModal {
  z-index: 90020;
}

.bb-share-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bb-share-popup__dialog {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  isolation: isolate;
}

.bb-filters-modal__sheet,
.bb-prof-modal__box,
.bb-sort-modal > div,
.bb-admin-modal,
.bb-search-modal {
  isolation: isolate;
  filter: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .bb-sidebar-backdrop,
  #sidebar.bb-sidebar,
  .bb-sidebar {
    transition: none !important;
  }
}

/* ——— Browse / search page ——— */
.bb-browse {
  background: #f4f6f8;
  padding: 1rem 0 2.5rem;
}

.bb-browse__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1rem;
}

.bb-browse__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.85rem;
  color: #7a8794;
  font-size: 0.78rem;
}

.bb-browse__crumbs a { color: #073b73; text-decoration: none; }

.bb-browse__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.bb-browse__rule {
  width: 2.1rem;
  height: 2px;
  background: #e7c34f;
  border-radius: 99px;
}

.bb-browse__title {
  margin: 0;
  color: #073b73;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.bb-browse__lead {
  margin: 0;
  color: #5b6b7a;
  font-size: 0.9rem;
}

.bb-browse-search,
.bb-browse .bb-search-dock {
  max-width: none;
  margin: 0;
  padding: 0;
}

.bb-browse .bb-search-panel {
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(7, 59, 115, 0.06);
  padding: 0.75rem;
}

.bb-browse .bb-search-btn {
  background: #e7c34f;
  color: #073b73;
}

.bb-browse__results {
  position: relative;
  margin-top: 1rem;
}

.bb-browse #productsRoot {
  position: relative;
}

.bb-browse__toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bb-browse__results-title,
.bb-browse #latestWrapper h2 {
  margin: 0;
  color: #073b73;
  font-size: 1.05rem !important;
  font-weight: 700;
}

.bb-browse__count {
  margin: 0.15rem 0 0;
  color: #6b7785;
  font-size: 0.8rem;
}

.bb-browse #productsRoot > section {
  padding: 0 !important;
  max-width: none !important;
  background: transparent !important;
}

.bb-browse #latestWrapper > .flex.items-center.justify-between {
  margin-bottom: 0.85rem;
}

.bb-browse #latestWrapper > .flex.items-center.justify-between button {
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 999px;
  box-shadow: none;
  color: #073b73;
  font-weight: 600;
}

.bb-browse #productsRoot.is-loading {
  min-height: 12rem;
}

.bb-browse #productsRoot.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5rem;
  width: 1.6rem;
  height: 1.6rem;
  margin-left: -0.8rem;
  border: 2px solid rgba(7, 59, 115, 0.15);
  border-top-color: #e7c34f;
  border-radius: 50%;
  animation: bb-media-spin 0.7s linear infinite;
}

.bb-browse #seeMoreBtn {
  background: #073b73;
  border-radius: 12px;
}

.bb-browse-empty {
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 16px;
  padding: 2rem 1.25rem;
  text-align: center;
}

.bb-browse-empty h3 {
  margin: 0 0 0.35rem;
  color: #073b73;
  font-size: 1.05rem;
}

.bb-browse-empty p {
  margin: 0;
  color: #6b7785;
  font-size: 0.88rem;
}

.bb-browse__pager {
  margin-top: 1.25rem;
}

.bb-browse__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bb-browse__chips a {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid #e6edf3;
  border-radius: 999px;
  background: #fff;
  color: #073b73;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.bb-browse__chips a.is-active,
.bb-browse__chips--filters a.is-active {
  background: #073b73;
  border-color: #073b73;
  color: #fff;
}

.bb-browse__chips--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bb-browse__chips--scroll::-webkit-scrollbar { display: none; }
.bb-browse__chips--scroll a { flex: 0 0 auto; }

.bb-browse__chips--filters {
  margin: 0.65rem 0 0;
}

.bb-browse__place {
  margin: 0.65rem 0 0;
  color: #4a5968;
  font-size: 0.8rem;
}

.bb-browse__place a {
  margin-left: 0.45rem;
  color: #073b73;
}

.bb-browse__seo {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e6edf3;
}

.bb-browse__seo--under-search {
  margin-top: 0.75rem;
  margin-bottom: 0;
  padding: 0.85rem 0.9rem 0.95rem;
  border-top: 0;
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(7, 59, 115, 0.04);
}

.bb-browse__seo-row + .bb-browse__seo-row {
  margin-top: 0.85rem;
}

.bb-browse__seo-label {
  display: block;
  margin-bottom: 0.4rem;
  color: #7a8794;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bb-browse__more {
  margin-top: 0.45rem;
}

.bb-browse__more summary {
  cursor: pointer;
  color: #073b73;
  font-size: 0.78rem;
  font-weight: 600;
}

.bb-browse__more .bb-browse__chips { margin-top: 0.45rem; }

.bb-browse__faq {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid #e6edf3;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
}

.bb-browse__faq summary {
  cursor: pointer;
  color: #073b73;
  font-weight: 700;
  font-size: 0.88rem;
}

.bb-browse__faq-list {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.7rem;
}

.bb-browse__faq-list h3 {
  margin: 0 0 0.2rem;
  color: #073b73;
  font-size: 0.85rem;
}

.bb-browse__faq-list p {
  margin: 0;
  color: #5b6b7a;
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .bb-browse { padding: 1.25rem 0 3rem; }
  .bb-browse__inner { padding: 0 1.5rem; }
  .bb-browse__title { font-size: 1.55rem; }
  .bb-browse .bb-search-panel { padding: 0.9rem 1rem; }
}

@media (max-width: 1023px) {
  .bb-browse .bb-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
  }
  .bb-browse .bb-search-row > .relative { grid-column: 1; }
  .bb-browse .bb-filter-btn--dock { grid-column: 2; }
}

/* ——— AI full page (do not restyle home .bb-ai-card) ——— */
.bb-ai-page-body { background: #f4f7fb; }
.bb-ai-page {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100dvh - 4.5rem);
  max-width: 1280px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(7, 59, 115, 0.08);
}
.bb-ai-page__side {
  border-inline-end: 1px solid rgba(7, 59, 115, 0.08);
  padding: 1rem 0.85rem;
  background: #f8fbff;
}
.bb-ai-page__brand strong { display: block; color: #073b73; font-size: 1.05rem; }
.bb-ai-page__brand p { margin: 0.2rem 0 0.8rem; color: #5b6b80; font-size: 0.75rem; }
.bb-ai-page__new,
.bb-ai-page__send,
.bb-ai-page__clear {
  border: 0;
  background: #073b73;
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  cursor: pointer;
}
.bb-ai-page__new { width: 100%; margin-bottom: 0.8rem; }
.bb-ai-page__threads { list-style: none; padding: 0; margin: 0; }
.bb-ai-page__threads button {
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.3rem;
  color: #073b73;
  cursor: pointer;
}
.bb-ai-page__main { display: flex; flex-direction: column; min-width: 0; }
.bb-ai-page__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(7, 59, 115, 0.08);
}
.bb-ai-page__head h1 { margin: 0; font-size: 1.1rem; color: #073b73; }
.bb-ai-page__head p { margin: 0.15rem 0 0; font-size: 0.75rem; color: #5b6b80; }
.bb-ai-page__menu { display: none; }
.bb-ai-page__clear { margin-inline-start: auto; background: #8d99ae; }
.bb-ai-page__log { flex: 1; overflow: auto; padding: 1rem; }
.bb-ai-page__welcome { max-width: 40rem; margin: 2rem auto; text-align: center; color: #073b73; }
.bb-ai-page__hints { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; margin-top: 0.9rem; }
.bb-ai-page__hints button {
  border: 1px solid rgba(7, 59, 115, 0.16);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.bb-ai-msg { max-width: 46rem; margin: 0 0 0.85rem; padding: 0.75rem 0.9rem; border-radius: 14px; }
.bb-ai-msg--user { margin-inline-start: auto; background: #073b73; color: #fff; }
.bb-ai-msg--assistant { background: #eef5ff; color: #123; }
.bb-ai-msg p { margin: 0 0 0.5rem; line-height: 1.45; }
.bb-ai-cards, .bb-ai-charts { display: grid; gap: 0.6rem; margin-top: 0.6rem; }
.bb-ai-prop {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.6rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(7, 59, 115, 0.1);
}
.bb-ai-prop img { width: 88px; height: 72px; object-fit: cover; }
.bb-ai-prop strong { display: block; color: #c9a227; font-size: 0.72rem; }
.bb-ai-prop span { display: block; font-size: 0.82rem; }
.bb-ai-prop em { display: block; font-style: normal; color: #5b6b80; font-size: 0.75rem; }
.bb-ai-table { overflow: auto; margin-top: 0.6rem; }
.bb-ai-table table { width: 100%; border-collapse: collapse; font-size: 0.78rem; background: #fff; }
.bb-ai-table th, .bb-ai-table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid #e5e7eb; text-align: start; }
.bb-ai-chart { background: #fff; border-radius: 12px; padding: 0.5rem; }
.bb-ai-chart h3 { margin: 0 0 0.35rem; font-size: 0.8rem; color: #073b73; }
.bb-ai-page__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(7, 59, 115, 0.08);
}
.bb-ai-page__composer textarea {
  width: 100%;
  min-height: 2.6rem;
  max-height: 7rem;
  border: 1px solid #d5deea;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  resize: vertical;
}
.bb-ai-page__tools { display: flex; align-items: center; gap: 0.35rem; }
.bb-ai-page__icon {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: #e8eef6;
  color: #073b73;
  cursor: pointer;
}
.bb-ai-page__icon.is-live { background: #c9a227; color: #fff; }
.bb-ai-page__icon.is-hidden { display: none; }
.bb-ai-page__typing { color: #5b6b80; font-style: italic; }
@media (max-width: 767px) {
  .bb-ai-page { grid-template-columns: 1fr; min-height: calc(100dvh - 7rem); }
  .bb-ai-page__side {
    display: none;
    position: absolute;
    inset: 0 auto 0 0;
    width: min(84vw, 280px);
    z-index: 20;
    box-shadow: 8px 0 24px rgba(0,0,0,.12);
  }
  .bb-ai-page.is-side-open .bb-ai-page__side { display: block; }
  .bb-ai-page__menu { display: inline-flex; border: 0; background: transparent; color: #073b73; }
  .bb-ai-page__clear { display: none; }
}

/* ——— ChatGPT-style Badi Beit AI (do not restyle home .bb-ai-card) ——— */
html:has(body.bb-ai-app-body),
body.bb-ai-app-body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f7f8fb;
  color: #0B1F3A;
  font-family: "DM Sans", "Noto Sans Arabic", system-ui, sans-serif;
}
.bb-ai-app {
  --bb-ai-navy: #0B1F3A;
  --bb-ai-gold: var(--bb-gold, #e7c34f);
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  width: 100vw;
  height: 100dvh;
  height: 100svh;
  max-width: 100%;
  background: #f7f8fb;
  padding-bottom: var(--bb-ai-kb, 0px);
  box-sizing: border-box;
}
.bb-ai-app__scrim { display: none; }
.bb-ai-side {
  background: var(--bb-ai-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: calc(0.7rem + env(safe-area-inset-top, 0px)) 0.75rem 0.8rem;
}
.bb-ai-side__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.bb-ai-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bb-ai-gold);
  color: #0B1F3A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex: 0 0 auto;
}
.bb-ai-mark--lg { width: 56px; height: 56px; font-size: 1.25rem; }
.bb-ai-side__new {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  text-align: start;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.bb-ai-side__nav {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 1rem;
}
.bb-ai-side__label {
  margin: 0.85rem 0.2rem 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}
.bb-ai-side__item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #e8eef6;
  text-align: start;
  padding: 0.48rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-ai-side__item:hover,
.bb-ai-side__item.is-on { background: rgba(255,255,255,0.08); }
.bb-ai-side__row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.bb-ai-side__row .bb-ai-side__item {
  flex: 1;
  min-width: 0;
}
.bb-ai-side__del {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(232, 238, 246, 0.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}
.bb-ai-side__del:hover {
  color: #ffb4b4;
  background: rgba(255, 80, 80, 0.12);
}
.bb-ai-side__usage {
  margin: 0.7rem 0.2rem 0;
  font-size: 0.7rem;
  opacity: 0.45;
}
.bb-ai-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.bb-ai-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.35rem 0.85rem;
  padding-top: calc(0.35rem + env(safe-area-inset-top, 0px));
  background: #f7f8fb;
}
.bb-ai-top__menu { display: none; }
.bb-ai-top strong { flex: 1; font-size: 0.95rem; }
.bb-ai-top__menu,
.bb-ai-top__call,
.bb-ai-tool,
.bb-ai-send,
.bb-ai-listen button {
  border: 0;
  background: transparent;
  color: #0B1F3A;
  cursor: pointer;
}
.bb-ai-top__call {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: #fff;
  border: 1px solid rgba(11,31,58,0.1);
  font-size: 0.8rem;
  font-weight: 600;
}
.bb-ai-log {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.4rem 1rem 0.6rem;
}
.bb-ai-hello {
  max-width: 40rem;
  margin: 14vh auto 0;
  text-align: center;
}
.bb-ai-hello h1 { margin: 0.7rem 0 0.2rem; font-size: 1.7rem; font-weight: 700; }
.bb-ai-hello p { margin: 0; color: #5b6b80; font-size: 1rem; }
.bb-ai-hello__hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
}
.bb-ai-hello__hints button {
  border: 1px solid rgba(11,31,58,0.1);
  background: #fff;
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
  color: #0B1F3A;
}
.bb-ai-row { max-width: 48rem; margin: 0 auto 1.15rem; }
.bb-ai-row--user {
  display: flex;
  justify-content: flex-end;
}
.bb-ai-user {
  max-width: 75%;
  background: #e8eef6;
  color: #0B1F3A;
  border-radius: 18px;
  padding: 0.62rem 0.9rem;
  line-height: 1.5;
  font-size: 0.95rem;
}
.bb-ai-user p { margin: 0; }
.bb-ai-row--ai {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.bb-ai-ava {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0B1F3A;
  color: var(--bb-ai-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}
.bb-ai-col { min-width: 0; flex: 1; }
.bb-ai-who { font-size: 0.72rem; font-weight: 700; margin-bottom: 0.2rem; }
.bb-ai-md {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #122033;
}
.bb-ai-md p { margin: 0 0 0.7rem; }
.bb-ai-md p:last-child { margin-bottom: 0; }
.bb-ai-md h3, .bb-ai-md h4 { margin: 0 0 0.4rem; font-size: 1rem; }
.bb-ai-md ul, .bb-ai-md ol { margin: 0.15rem 0 0.7rem; padding-inline-start: 1.2rem; }
.bb-ai-md li { margin: 0.2rem 0; }
.bb-ai-md code { font-size: 0.82em; background: #eef3f9; padding: 0.05rem 0.28rem; border-radius: 4px; }
.bb-ai-acts { margin-top: 0.35rem; display: flex; gap: 0.1rem; }
.bb-ai-acts button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #7a8899;
  border-radius: 7px;
  cursor: pointer;
}
.bb-ai-dots { display: inline-flex; gap: 0.28rem; padding: 0.25rem 0; }
.bb-ai-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #8d99ae;
  animation: bb-ai-dot 1s infinite ease-in-out;
}
.bb-ai-dots span:nth-child(2) { animation-delay: 0.15s; }
.bb-ai-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bb-ai-dot {
  0%, 80%, 100% { opacity: 0.28; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.bb-ai-cards { display: grid; gap: 0.6rem; margin-top: 0.75rem; }
.bb-ai-prop {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid rgba(11,31,58,0.08);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.bb-ai-prop img { width: 104px; height: 100%; min-height: 92px; object-fit: cover; }
.bb-ai-prop div { padding: 0.5rem 0.55rem 0.6rem 0; display: grid; gap: 0.1rem; }
.bb-ai-prop strong { font-size: 0.95rem; }
.bb-ai-prop span { font-size: 0.7rem; color: #8a740f; font-weight: 600; }
.bb-ai-prop b { font-size: 0.82rem; font-weight: 500; }
.bb-ai-prop em, .bb-ai-prop small { font-style: normal; color: #5b6b80; font-size: 0.74rem; }
.bb-ai-prop i { font-style: normal; font-size: 0.72rem; font-weight: 700; color: #073b73; }
.bb-ai-table { overflow: auto; margin-top: 0.65rem; }
.bb-ai-table table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.bb-ai-table th, .bb-ai-table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid #e5e7eb; text-align: start; }
.bb-ai-charts { display: grid; gap: 0.55rem; margin-top: 0.7rem; }
.bb-ai-chart { background: #fff; border-radius: 12px; padding: 0.55rem 0.6rem; border: 1px solid rgba(11,31,58,0.06); }
.bb-ai-chart h3 { margin: 0 0 0.3rem; font-size: 0.8rem; }
.bb-ai-chart canvas { width: 100% !important; height: auto !important; max-width: 100%; }
.bb-ai-composer {
  padding: 0.35rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
}
.bb-ai-box,
.bb-ai-listen {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  align-items: end;
  background: #fff;
  border: 1px solid rgba(11,31,58,0.12);
  border-radius: 26px;
  padding: 0.4rem 0.45rem;
  box-shadow: 0 8px 28px rgba(11,31,58,0.06);
}
.bb-ai-box { grid-template-columns: 36px minmax(0,1fr) 36px 36px; gap: 0.2rem; }
.bb-ai-box textarea {
  width: 100%;
  min-height: 40px;
  max-height: 160px;
  border: 0;
  resize: none;
  outline: none;
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.4;
  padding: 0.5rem 0.2rem;
  background: transparent;
}
.bb-ai-tool, .bb-ai-send {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bb-ai-send { background: #0B1F3A; color: #fff; }
.bb-ai-send:disabled { opacity: 0.35; }
.bb-ai-tool.is-live { background: var(--bb-ai-gold); }
.bb-ai-listen {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
}
.bb-ai-listen em { font-style: normal; color: #5b6b80; }
.bb-ai-listen button {
  border-radius: 999px;
  background: #eef3f9;
  padding: 0.35rem 0.7rem;
  font-weight: 600;
}
.bb-ai-wave { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.bb-ai-wave i {
  display: block;
  width: 3px;
  background: #0B1F3A;
  border-radius: 2px;
  animation: bb-ai-wave 0.9s infinite ease-in-out;
}
.bb-ai-wave i:nth-child(1) { height: 6px; }
.bb-ai-wave i:nth-child(2) { height: 14px; animation-delay: 0.12s; }
.bb-ai-wave i:nth-child(3) { height: 9px; animation-delay: 0.24s; }
.bb-ai-wave i:nth-child(4) { height: 16px; animation-delay: 0.08s; }
@keyframes bb-ai-wave {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}
.bb-ai-attach {
  max-width: 48rem;
  margin: 0.4rem auto 0;
  background: #fff;
  border: 1px solid rgba(11,31,58,0.1);
  border-radius: 14px;
  padding: 0.5rem;
}
.bb-ai-attach input {
  width: 100%;
  border: 1px solid #d5deea;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
}
.bb-ai-attach [data-ai-attach-list] { display: grid; gap: 0.25rem; margin-top: 0.4rem; }
.bb-ai-attach button {
  width: 100%;
  text-align: start;
  border: 0;
  background: #f4f7fb;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
}
.bb-ai-call {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, #16375c, #0B1F3A 64%);
  color: #fff;
  z-index: 9;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.bb-ai-call__name { margin: 0 0 1.1rem; font-size: 1.15rem; font-weight: 700; }
.bb-ai-call__avatar {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: var(--bb-ai-gold);
  color: #0B1F3A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 0 0 16px rgba(231,195,79,0.14);
}
.bb-ai-call__status { margin: 1.1rem 0 0.2rem; font-size: 1.05rem; }
.bb-ai-call__hint { margin: 0; opacity: 0.65; }
.bb-ai-call__controls { display: flex; gap: 1.4rem; margin-top: 2.2rem; }
.bb-ai-call__controls button {
  width: 76px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  font-size: 0.72rem;
  cursor: pointer;
}
.bb-ai-call__controls i {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  font-size: 1.1rem;
}
.bb-ai-call__controls .is-end i { background: #c0392b; }
.bb-ai-call__controls .is-on i { background: #5b6b80; }
@media (max-width: 860px) {
  .bb-ai-app { grid-template-columns: 1fr; }
  .bb-ai-side {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(86vw, 300px);
    z-index: 8;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  html.bb-rtl .bb-ai-side { inset: 0 0 0 auto; transform: translateX(105%); }
  .bb-ai-app.is-side-open .bb-ai-side { transform: none; }
  .bb-ai-app__scrim {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(11,31,58,0.35);
    z-index: 7;
  }
  .bb-ai-app__scrim[hidden] { display: none; }
  .bb-ai-top__menu {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
  }
  .bb-ai-hello { margin-top: 10vh; }
  .bb-ai-user { max-width: 86%; }
}

/* ——— ChatGPT-style Badi Beit AI (do not restyle home .bb-ai-card) ——— */
html:has(body.bb-ai-app-body),
body.bb-ai-app-body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #f7f8fb;
  color: #0B1F3A;
  font-family: "DM Sans", "Noto Sans Arabic", system-ui, sans-serif;
}
.bb-ai-app {
  --bb-ai-navy: #0B1F3A;
  --bb-ai-gold: var(--bb-gold, #e7c34f);
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  width: 100vw;
  height: 100dvh;
  height: 100svh;
  max-width: 100%;
  background: #f7f8fb;
  padding-bottom: var(--bb-ai-kb, 0px);
  box-sizing: border-box;
}
.bb-ai-app__scrim { display: none; }
.bb-ai-side {
  background: var(--bb-ai-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: calc(0.7rem + env(safe-area-inset-top, 0px)) 0.75rem 0.8rem;
}
.bb-ai-side__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.bb-ai-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bb-ai-gold);
  color: #0B1F3A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex: 0 0 auto;
}
.bb-ai-mark--lg { width: 56px; height: 56px; font-size: 1.25rem; }
.bb-ai-side__new {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  text-align: start;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.bb-ai-side__nav {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 1rem;
}
.bb-ai-side__label {
  margin: 0.85rem 0.2rem 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}
.bb-ai-side__item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #e8eef6;
  text-align: start;
  padding: 0.48rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bb-ai-side__item:hover,
.bb-ai-side__item.is-on { background: rgba(255,255,255,0.08); }
.bb-ai-side__row {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.bb-ai-side__row .bb-ai-side__item {
  flex: 1;
  min-width: 0;
}
.bb-ai-side__del {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(232, 238, 246, 0.45);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}
.bb-ai-side__del:hover {
  color: #ffb4b4;
  background: rgba(255, 80, 80, 0.12);
}
.bb-ai-side__usage {
  margin: 0.7rem 0.2rem 0;
  font-size: 0.7rem;
  opacity: 0.45;
}
.bb-ai-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.bb-ai-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.35rem 0.85rem;
  padding-top: calc(0.35rem + env(safe-area-inset-top, 0px));
  background: #f7f8fb;
}
.bb-ai-top__menu { display: none; }
.bb-ai-top strong { flex: 1; font-size: 0.95rem; }
.bb-ai-top__menu,
.bb-ai-top__call,
.bb-ai-tool,
.bb-ai-send,
.bb-ai-listen button {
  border: 0;
  background: transparent;
  color: #0B1F3A;
  cursor: pointer;
}
.bb-ai-top__call {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: #fff;
  border: 1px solid rgba(11,31,58,0.1);
  font-size: 0.8rem;
  font-weight: 600;
}
.bb-ai-log {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.4rem 1rem 0.6rem;
}
.bb-ai-hello {
  max-width: 40rem;
  margin: 14vh auto 0;
  text-align: center;
}
.bb-ai-hello h1 { margin: 0.7rem 0 0.2rem; font-size: 1.7rem; font-weight: 700; }
.bb-ai-hello p { margin: 0; color: #5b6b80; font-size: 1rem; }
.bb-ai-hello__hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
}
.bb-ai-hello__hints button {
  border: 1px solid rgba(11,31,58,0.1);
  background: #fff;
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
  color: #0B1F3A;
}
.bb-ai-row { max-width: 48rem; margin: 0 auto 1.15rem; }
.bb-ai-row--user {
  display: flex;
  justify-content: flex-end;
}
.bb-ai-user {
  max-width: 75%;
  background: #e8eef6;
  color: #0B1F3A;
  border-radius: 18px;
  padding: 0.62rem 0.9rem;
  line-height: 1.5;
  font-size: 0.95rem;
}
.bb-ai-user p { margin: 0; }
.bb-ai-row--ai {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.bb-ai-ava {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0B1F3A;
  color: var(--bb-ai-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}
.bb-ai-col { min-width: 0; flex: 1; }
.bb-ai-who { font-size: 0.72rem; font-weight: 700; margin-bottom: 0.2rem; }
.bb-ai-md {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #122033;
}
.bb-ai-md p { margin: 0 0 0.7rem; }
.bb-ai-md p:last-child { margin-bottom: 0; }
.bb-ai-md h3, .bb-ai-md h4 { margin: 0 0 0.4rem; font-size: 1rem; }
.bb-ai-md ul, .bb-ai-md ol { margin: 0.15rem 0 0.7rem; padding-inline-start: 1.2rem; }
.bb-ai-md li { margin: 0.2rem 0; }
.bb-ai-md code { font-size: 0.82em; background: #eef3f9; padding: 0.05rem 0.28rem; border-radius: 4px; }
.bb-ai-acts { margin-top: 0.35rem; display: flex; gap: 0.1rem; }
.bb-ai-acts button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #7a8899;
  border-radius: 7px;
  cursor: pointer;
}
.bb-ai-dots { display: inline-flex; gap: 0.28rem; padding: 0.25rem 0; }
.bb-ai-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #8d99ae;
  animation: bb-ai-dot 1s infinite ease-in-out;
}
.bb-ai-dots span:nth-child(2) { animation-delay: 0.15s; }
.bb-ai-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bb-ai-dot {
  0%, 80%, 100% { opacity: 0.28; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.bb-ai-cards { display: grid; gap: 0.6rem; margin-top: 0.75rem; }
.bb-ai-prop {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 0.7rem;
  background: #fff;
  border: 1px solid rgba(11,31,58,0.08);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.bb-ai-prop img { width: 104px; height: 100%; min-height: 92px; object-fit: cover; }
.bb-ai-prop div { padding: 0.5rem 0.55rem 0.6rem 0; display: grid; gap: 0.1rem; }
.bb-ai-prop strong { font-size: 0.95rem; }
.bb-ai-prop span { font-size: 0.7rem; color: #8a740f; font-weight: 600; }
.bb-ai-prop b { font-size: 0.82rem; font-weight: 500; }
.bb-ai-prop em, .bb-ai-prop small { font-style: normal; color: #5b6b80; font-size: 0.74rem; }
.bb-ai-prop i { font-style: normal; font-size: 0.72rem; font-weight: 700; color: #073b73; }
.bb-ai-table { overflow: auto; margin-top: 0.65rem; }
.bb-ai-table table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.bb-ai-table th, .bb-ai-table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid #e5e7eb; text-align: start; }
.bb-ai-charts { display: grid; gap: 0.55rem; margin-top: 0.7rem; }
.bb-ai-chart { background: #fff; border-radius: 12px; padding: 0.55rem 0.6rem; border: 1px solid rgba(11,31,58,0.06); }
.bb-ai-chart h3 { margin: 0 0 0.3rem; font-size: 0.8rem; }
.bb-ai-chart canvas { width: 100% !important; height: auto !important; max-width: 100%; }
.bb-ai-composer {
  padding: 0.35rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
}
.bb-ai-box,
.bb-ai-listen {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  align-items: end;
  background: #fff;
  border: 1px solid rgba(11,31,58,0.12);
  border-radius: 26px;
  padding: 0.4rem 0.45rem;
  box-shadow: 0 8px 28px rgba(11,31,58,0.06);
}
.bb-ai-box { grid-template-columns: 36px minmax(0,1fr) 36px 36px; gap: 0.2rem; }
.bb-ai-box textarea {
  width: 100%;
  min-height: 40px;
  max-height: 160px;
  border: 0;
  resize: none;
  outline: none;
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.4;
  padding: 0.5rem 0.2rem;
  background: transparent;
}
.bb-ai-tool, .bb-ai-send {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bb-ai-send { background: #0B1F3A; color: #fff; }
.bb-ai-send:disabled { opacity: 0.35; }
.bb-ai-tool.is-live { background: var(--bb-ai-gold); }
.bb-ai-listen {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
}
.bb-ai-listen em { font-style: normal; color: #5b6b80; }
.bb-ai-listen button {
  border-radius: 999px;
  background: #eef3f9;
  padding: 0.35rem 0.7rem;
  font-weight: 600;
}
.bb-ai-wave { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; }
.bb-ai-wave i {
  display: block;
  width: 3px;
  background: #0B1F3A;
  border-radius: 2px;
  animation: bb-ai-wave 0.9s infinite ease-in-out;
}
.bb-ai-wave i:nth-child(1) { height: 6px; }
.bb-ai-wave i:nth-child(2) { height: 14px; animation-delay: 0.12s; }
.bb-ai-wave i:nth-child(3) { height: 9px; animation-delay: 0.24s; }
.bb-ai-wave i:nth-child(4) { height: 16px; animation-delay: 0.08s; }
@keyframes bb-ai-wave {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}
.bb-ai-attach {
  max-width: 48rem;
  margin: 0.4rem auto 0;
  background: #fff;
  border: 1px solid rgba(11,31,58,0.1);
  border-radius: 14px;
  padding: 0.5rem;
}
.bb-ai-attach input {
  width: 100%;
  border: 1px solid #d5deea;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
}
.bb-ai-attach [data-ai-attach-list] { display: grid; gap: 0.25rem; margin-top: 0.4rem; }
.bb-ai-attach button {
  width: 100%;
  text-align: start;
  border: 0;
  background: #f4f7fb;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
}
.bb-ai-call {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, #16375c, #0B1F3A 64%);
  color: #fff;
  z-index: 9;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.bb-ai-call__name { margin: 0 0 1.1rem; font-size: 1.15rem; font-weight: 700; }
.bb-ai-call__avatar {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: var(--bb-ai-gold);
  color: #0B1F3A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 0 0 16px rgba(231,195,79,0.14);
}
.bb-ai-call__status { margin: 1.1rem 0 0.2rem; font-size: 1.05rem; }
.bb-ai-call__hint { margin: 0; opacity: 0.65; }
.bb-ai-call__controls { display: flex; gap: 1.4rem; margin-top: 2.2rem; }
.bb-ai-call__controls button {
  width: 76px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  font-size: 0.72rem;
  cursor: pointer;
}
.bb-ai-call__controls i {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  font-size: 1.1rem;
}
.bb-ai-call__controls .is-end i { background: #c0392b; }
.bb-ai-call__controls .is-on i { background: #5b6b80; }
@media (max-width: 860px) {
  .bb-ai-app { grid-template-columns: 1fr; }
  .bb-ai-side {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(86vw, 300px);
    z-index: 8;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  html.bb-rtl .bb-ai-side { inset: 0 0 0 auto; transform: translateX(105%); }
  .bb-ai-app.is-side-open .bb-ai-side { transform: none; }
  .bb-ai-app__scrim {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(11,31,58,0.35);
    z-index: 7;
  }
  .bb-ai-app__scrim[hidden] { display: none; }
  .bb-ai-top__menu {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
  }
  .bb-ai-hello { margin-top: 10vh; }
  .bb-ai-user { max-width: 86%; }
}

/* Visible AI chrome: Back, Send, Voice, Call */
.bb-ai-top__back {
  display: inline-flex !important;
  align-items: center;
  gap: 0.3rem;
  color: #0B1F3A;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(11,31,58,0.1);
}
.bb-ai-hello__login {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: #0B1F3A;
  color: #fff !important;
  font-size: 0.8rem;
  text-decoration: none;
}
.bb-ai-box {
  grid-template-columns: 36px minmax(0, 1fr) 36px auto !important;
}
.bb-ai-send {
  width: auto !important;
  min-width: 4.4rem;
  height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: #0B1F3A !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.82rem;
}
.bb-ai-composer {
  display: block !important;
  position: relative;
  z-index: 5;
}

.bb-ai-call[hidden],
.bb-ai-listen[hidden],
.bb-ai-attach[hidden] { display: none !important; }
.bb-ai-box {
  grid-template-columns: minmax(0, 1fr) 36px 36px auto !important;
}

/* In-chat talking orb — stay in the chat, never a full call page */
.bb-ai-call {
  position: relative !important;
  inset: auto !important;
  z-index: 4 !important;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  background: transparent !important;
  color: #0B1F3A !important;
  padding: 0.2rem 1rem 0.15rem !important;
  min-height: 0 !important;
}
.bb-ai-call.is-open {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bb-ai-call__name { display: none !important; }
.bb-ai-call__avatar {
  width: 86px !important;
  height: 86px !important;
  font-size: 1.85rem !important;
  background: radial-gradient(circle at 32% 28%, #fff8df, #e7c34f 58%, #0B1F3A) !important;
  color: #0B1F3A !important;
  box-shadow: 0 0 0 10px rgba(231, 195, 79, 0.16), 0 10px 28px rgba(11, 31, 58, 0.16) !important;
  animation: bb-ai-orb 1.7s ease-in-out infinite;
}
.bb-ai-call.is-speaking .bb-ai-call__avatar {
  animation-duration: 0.55s;
}
.bb-ai-call.is-listening .bb-ai-call__avatar {
  animation-duration: 1.15s;
}
@keyframes bb-ai-orb {
  0%, 100% { transform: scale(0.94); box-shadow: 0 0 0 8px rgba(231, 195, 79, 0.12), 0 8px 22px rgba(11, 31, 58, 0.12); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(231, 195, 79, 0.22), 0 14px 32px rgba(11, 31, 58, 0.16); }
}
.bb-ai-call__status {
  margin: 0.55rem 0 0.1rem !important;
  font-size: 0.92rem !important;
  font-weight: 700;
}
.bb-ai-call__hint {
  margin: 0 !important;
  color: #5b6b80 !important;
  opacity: 1 !important;
  font-size: 0.78rem;
  max-width: 22rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bb-ai-call__controls {
  margin-top: 0.65rem !important;
  gap: 0.85rem !important;
}
.bb-ai-call__controls button { color: #0B1F3A !important; }
.bb-ai-call__controls i {
  width: 42px !important;
  height: 42px !important;
  background: #fff !important;
  color: #0B1F3A !important;
  border: 1px solid rgba(11, 31, 58, 0.12);
  font-size: 0.95rem !important;
}
.bb-ai-call__controls .is-end i { background: #c0392b !important; color: #fff !important; border-color: #c0392b; }
.bb-ai-call__controls .is-on i { background: #5b6b80 !important; color: #fff !important; }

.bb-ai-side__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}
.bb-ai-side__home {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}
.bb-ai-side__home i { font-size: 0.72rem; color: var(--bb-ai-gold, #e7c34f); }
.bb-ai-side__home:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.bb-ai-side__close {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
}
.bb-ai-side__close:hover { background: rgba(255, 255, 255, 0.16); }
.bb-ai-side__new {
  border-radius: 12px !important;
  font-weight: 700 !important;
}

@media (max-width: 860px) {
  .bb-ai-top__call--desk { display: none !important; }
  .bb-ai-top__back { display: none !important; }
  .bb-ai-side__close { display: inline-flex; }
}

.bb-ai-user {
  background: #0B1F3A !important;
  color: #fff !important;
  border-radius: 16px 16px 4px 16px !important;
}
html.bb-rtl .bb-ai-user { border-radius: 16px 16px 16px 4px !important; }
