/* ---- Port-only behavioral CSS addition (NOT in mockup): the React app
   conditionally renders/omits elements; this SSR port renders both states
   and toggles [hidden] via jQuery. Design CSS sets display on classes,
   which outranks the UA [hidden] rule, so make [hidden] authoritative. */
[hidden]{display:none!important}

/* Dibze Map — styles
   Design tokens, layout, components, map markers */

:root {
  --purple-50:  #F2EEFE;
  --purple-100: #E1D9FC;
  --purple-300: #A99BF1;
  --purple-500: #6B4FE6;
  --purple-600: #5B3FD6;
  --purple-700: #4B30C0;

  --teal-500:   #0EA5A5;
  --teal-600:   #0B8A8A;

  --pink-500:   #EC4899;
  --pink-50:    #FDF2F8;
  --green-500:  #10B981;

  --gray-900:   #0F0F14;
  --gray-800:   #1A1A1F;
  --gray-700:   #2D2D35;
  --gray-600:   #4B4B55;
  --gray-500:   #6B6B75;
  --gray-400:   #9B9BA5;
  --gray-300:   #C9C9D1;
  --gray-200:   #E5E5EB;
  --gray-100:   #F2F2F5;
  --gray-50:    #F8F8FB;

  --map-share: 55%;
  --cards-per-row: 2;

  --header-h: 64px;
  --filter-h: 60px;
  --result-h: 56px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(15, 15, 20, 0.04), 0 4px 12px rgba(15, 15, 20, 0.04);
  --shadow-hover: 0 4px 12px rgba(15, 15, 20, 0.08), 0 12px 32px rgba(107, 79, 230, 0.12);

  --condo-color: var(--purple-500);  /* overridden by [data-condo-accent="teal"] */
}

[data-condo-accent="teal"] { --condo-color: var(--teal-500); }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: var(--gray-800);
  font: 14px/1.4 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Device preview shell ───────────────────────────────────────────────── */
.dbz-shell { width: 100%; min-height: 100vh; }
.dbz-shell.device-mobile {
  background: #fff;
  padding: 56px 24px 32px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}
.dbz-shell.device-mobile .dbz-app {
  width: 393px;
  height: 852px;
  max-width: 100%;
  min-height: 0;
  border-radius: 38px;
  overflow: hidden auto;
  box-shadow: 0 24px 60px rgba(15, 15, 20, 0.18), 0 0 0 8px #2A2A35, 0 0 0 9px rgba(0,0,0,0.08);
  font-size: 13px;
  scrollbar-width: none;
  position: relative;
}
.dbz-shell.device-mobile .dbz-app::-webkit-scrollbar { display: none; }
.dbz-shell.device-mobile .dbz-app::-webkit-scrollbar { width: 6px; }
.dbz-shell.device-mobile .dbz-app::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }
.dbz-shell.device-mobile .dbz-app .dbz-viewport {
  height: 852px;
  min-height: 0;
  flex-shrink: 0;
}

.dbz-device-toggle {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 9999;
  display: inline-flex;
  background: rgba(15, 15, 20, 0.78);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  opacity: 0.4;
  transition: opacity 0.15s;
}
.dbz-device-toggle:hover { opacity: 1; }
.dbz-device-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 28px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-size: 0;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, width 0.18s;
  overflow: hidden;
}
.dbz-device-toggle:hover button { width: auto; padding: 0 10px; font-size: 11px; gap: 5px; }
.dbz-device-toggle button:hover { color: #fff; }
.dbz-device-toggle button.is-on {
  background: rgba(255,255,255,0.95);
  color: var(--gray-900);
}
.dbz-device-toggle svg { flex-shrink: 0; width: 14px; height: 14px; }

#root, .dbz-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.dbz-viewport {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* The global unified header (.site-hd) sits at the top of the fixed-height map
   viewport — pin it as a non-shrinking flex child (sticky is moot inside an
   overflow:hidden column) so the map/list fill the space beneath it. */
.dbz-viewport > .site-hd { position: relative; flex-shrink: 0; }

button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.dbz-header {
  height: var(--header-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--gray-100);
  background: #fff;
  position: relative;
  z-index: 60;
}

/* Logo link — clickable bullseye + wordmark */
.dbz-logo-link {
  cursor: pointer;
  transition: opacity 0.12s;
}
.dbz-logo-link:hover { opacity: 0.7; }
.dbz-header-right { display: flex; align-items: center; gap: 6px; }
.dbz-header-left { display: flex; align-items: center; gap: 20px; }

/* For Rent / For Sale toggle in header */
.dbz-mode-seg {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.dbz-mode-seg button {
  height: 30px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.dbz-mode-seg button.is-on {
  background: #fff;
  color: var(--purple-700);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 0 0 0.5px rgba(0,0,0,0.04);
}
.dbz-mode-seg button:hover:not(.is-on) { color: var(--gray-900); }
.dbz-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.dbz-link:hover { background: var(--gray-50); color: var(--gray-900); }

.dbz-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
}
.dbz-user:hover { box-shadow: var(--shadow-card); }
.dbz-user.is-open {
  border-color: var(--purple-300);
  background: var(--purple-50);
}
.dbz-user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── User menu dropdown ─────────────────────────────────────────────────── */
.dbz-user-wrap { position: relative; }
.dbz-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  width: 260px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15,15,20,0.08), 0 16px 40px rgba(15,15,20,0.18);
  padding: 8px;
  animation: dbz-pop-in 0.15s cubic-bezier(0.32, 0.72, 0, 1);
}
.dbz-user-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  transition: background 0.12s, color 0.12s;
}
.dbz-user-item:hover { background: var(--gray-50); }
.dbz-user-item svg { color: var(--gray-700); flex-shrink: 0; }
.dbz-user-item:last-child { color: var(--gray-800); }
.dbz-user-item:last-child:hover { color: var(--purple-700); }
.dbz-user-item:last-child:hover svg { color: var(--purple-700); }
.dbz-user-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 6px 8px;
}

/* Signed-out CTA */
.dbz-signin {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 9px 20px !important;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.dbz-signin:hover {
  border-color: var(--purple-300);
  box-shadow: var(--shadow-card);
  color: var(--purple-700);
  background: #fff;
}

/* ── Auth modal ─────────────────────────────────────────────────────────── */
.dbz-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 20, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: dbz-fade-in 0.15s ease;
}

.dbz-auth-modal {
  position: relative;
  width: 460px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 36px 36px 28px;
  box-shadow: 0 20px 80px rgba(15, 15, 20, 0.35);
  animation: dbz-auth-in 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes dbz-auth-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dbz-auth-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.dbz-auth-x:hover { background: var(--gray-200); color: var(--gray-900); }

.dbz-auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.dbz-auth-logo svg { width: 36px; height: 36px; }
.dbz-auth-logo span { font-size: 28px; }

/* Contextual listing strip when triggered from a heart save */
.dbz-auth-context {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  border-radius: 12px;
  margin-bottom: 18px;
}
.dbz-auth-context-media {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
  flex-shrink: 0;
}
.dbz-auth-context-media svg {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.dbz-auth-context-text {
  flex: 1;
  min-width: 0;
}
.dbz-auth-context-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbz-auth-context-addr {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Benefit list (shown in save-intent variant) */
.dbz-auth-benefits {
  list-style: none;
  padding: 0;
  margin: 14px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.dbz-auth-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.4;
}
.dbz-auth-benefits li svg {
  color: #047857;
  flex-shrink: 0;
}
.dbz-auth-benefits strong { color: var(--gray-900); font-weight: 600; }

.dbz-auth-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  text-align: center;
}
.dbz-auth-sub {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.5;
}

.dbz-auth-field {
  display: block;
  margin-bottom: 14px;
}
.dbz-auth-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.dbz-auth-phone {
  display: flex;
  align-items: center;
  height: 56px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: hidden;
}
.dbz-auth-phone:focus-within {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(107, 79, 230, 0.12);
}
.dbz-auth-country {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--gray-100);
  background: transparent;
  color: var(--gray-900);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
}
.dbz-auth-country:hover { background: var(--gray-50); }
.dbz-auth-flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08); flex-shrink: 0; }
.dbz-auth-phone input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: 0;
  height: 100%;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.dbz-auth-phone input::placeholder { color: var(--gray-400); }

.dbz-auth-input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-900);
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dbz-auth-input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(107, 79, 230, 0.12);
}
.dbz-auth-input-code { font-size: 24px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }

.dbz-auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0 24px;
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.55;
  cursor: pointer;
}
.dbz-auth-check { position: relative; flex-shrink: 0; padding-top: 1px; }
.dbz-auth-check input { position: absolute; opacity: 0; pointer-events: none; }
.dbz-auth-check-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border: 1.5px solid var(--gray-300);
  border-radius: 5px;
  background: #fff;
  color: #fff;
  transition: background 0.12s, border-color 0.12s;
}
.dbz-auth-check-box.is-on {
  background: var(--purple-500);
  border-color: var(--purple-500);
}
.dbz-auth-consent-text { flex: 1; min-width: 0; }
.dbz-auth-consent-text a {
  color: var(--gray-800);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dbz-auth-consent-text a:hover { color: var(--purple-700); }

.dbz-auth-cta {
  display: block;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--purple-500);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
}
.dbz-auth-cta:hover { background: var(--purple-600); }
.dbz-auth-cta:active { transform: scale(0.99); }
.dbz-auth-cta.is-disabled {
  background: var(--purple-300);
  cursor: not-allowed;
}
.dbz-auth-cta.is-disabled:hover { background: var(--purple-300); }

.dbz-auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: 13px;
}
.dbz-auth-divider::before,
.dbz-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-100);
}
.dbz-auth-divider span { padding: 0 4px; }

.dbz-auth-alt {
  display: block;
  width: 100%;
  height: 56px;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  background: #fff;
  color: var(--gray-900);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dbz-auth-alt:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}

.dbz-auth-foot {
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.55;
}
.dbz-auth-foot a {
  color: var(--gray-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dbz-auth-foot a:hover { color: var(--purple-700); }

.dbz-auth-codepara {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  text-align: center;
}
.dbz-auth-codepara strong { color: var(--gray-900); font-weight: 600; }

.dbz-auth-back {
  display: block;
  margin: 16px auto 0;
  background: transparent;
  border: 0;
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
}
.dbz-auth-back:hover { color: var(--gray-900); background: var(--gray-50); }

/* ── Report Inaccuracy modal ────────────────────────────────────────────── */
.dbz-report-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 20, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: dbz-fade-in 0.15s ease;
}
.dbz-report-modal {
  position: relative;
  width: 480px;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 32px 32px 24px;
  box-shadow: 0 20px 80px rgba(15, 15, 20, 0.35);
  animation: dbz-auth-in 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

.dbz-report-head { margin-bottom: 22px; }
.dbz-report-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--purple-700);
  margin-bottom: 6px;
}
.dbz-report-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--gray-900);
}
.dbz-report-listing {
  font-size: 13.5px;
  color: var(--gray-600);
  padding: 10px 12px;
  background: var(--gray-50);
  border-radius: 10px;
}
.dbz-report-listing strong {
  color: var(--gray-900);
  font-weight: 600;
}
.dbz-report-section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 10px;
}
.dbz-report-reasons {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dbz-report-reason {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-800);
  font-weight: 500;
  transition: background 0.12s;
}
.dbz-report-reason:hover { background: var(--gray-50); }
.dbz-report-reason.is-on {
  background: var(--purple-50);
  color: var(--purple-700);
}
.dbz-report-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  color: var(--gray-900);
  resize: vertical;
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  min-height: 80px;
}
.dbz-report-textarea:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(107, 79, 230, 0.12);
}
.dbz-report-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
}
.dbz-report-submit {
  width: auto !important;
  height: 44px !important;
  padding: 0 24px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
}

.dbz-report-sent {
  text-align: center;
  padding: 24px 16px 12px;
}
.dbz-report-sent-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--purple-50);
  color: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.dbz-report-sent-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}
.dbz-report-sent-sub {
  margin: 0;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ── Filter bar ─────────────────────────────────────────────────────────── */
.dbz-filterbar {
  height: var(--filter-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  border-bottom: 1px solid var(--gray-100);
  background: #fff;
  position: relative;
  z-index: 50;
  overflow: visible;
  scrollbar-width: none;
}
.dbz-filterbar::-webkit-scrollbar { display: none; }

.dbz-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  width: 260px;
  flex-shrink: 0;
  color: var(--gray-500);
}
.dbz-search:focus-within { border-color: var(--purple-300); background: #fff; }
.dbz-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 14px; color: var(--gray-900); font-weight: 500;
  min-width: 0;
}

/* ── Search location (multi-select dropdown) ────────────────────────────── */
.dbz-search-loc {
  position: relative;
  flex-shrink: 0;
}
.dbz-search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 6px 0 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 999px;
  width: 320px;
  cursor: pointer;
  color: var(--gray-700);
  font: inherit;
  text-align: left;
  transition: background 0.12s, border-color 0.12s;
}
.dbz-search-trigger:hover { border-color: var(--gray-300); }
.dbz-search-trigger.is-open {
  background: #fff;
  border-color: var(--purple-300);
  box-shadow: 0 1px 3px rgba(107,79,230,0.1);
}
.dbz-search-ph {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbz-search-trigger-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-600);
  background: transparent;
  flex-shrink: 0;
  margin-left: auto;
}
.dbz-search-trigger.is-open .dbz-search-trigger-icon { color: var(--purple-700); }

.dbz-search-chips {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.dbz-search-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 10px;
  background: var(--purple-50);
  color: var(--purple-700);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.dbz-search-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--purple-700);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s;
}
.dbz-search-x:hover { background: rgba(107,79,230,0.15); }
/* Phones: an 18px × is un-tappable — a missed tap hits the search trigger and
   opens the popover instead of removing the chip (Revisions 6/10 v8 map #6).
   Grow the HIT AREA to ~40px with negative margins so the chip/bar keep their
   visual size; the glyph itself only bumps a little. */
[data-device="mobile"] .dbz-search-x {
  width: 40px;
  height: 40px;
  margin: -11px -8px -11px -6px;
  font-size: 16px;
}
/* …and un-clip it: the chips row is only as tall as the 22px pill and its
   overflow:hidden was cutting the grown hit box back down. Stretching the row
   to the bar's full height keeps the pill centered and the clip out of play. */
[data-device="mobile"] .dbz-search-chips {
  align-self: stretch;
}
.dbz-search-more {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--purple-700);
  flex-shrink: 0;
}

.dbz-search-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  width: 360px;
  max-width: 92vw;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15,15,20,0.08), 0 16px 40px rgba(15,15,20,0.18);
  padding: 8px;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
  animation: dbz-pop-in 0.15s cubic-bezier(0.32, 0.72, 0, 1);
}

.dbz-search-inputwrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  color: var(--gray-400);
}
.dbz-search-inputwrap:focus-within { border-color: var(--purple-400, #8A72EF); }
.dbz-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 14px;
  color: var(--gray-900);
  background: transparent;
}
.dbz-search-section {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 8px 10px 4px;
}
.dbz-search-bldg-ico { color: var(--purple-500); background: transparent !important; border: 0 !important; }
.dbz-search-empty { padding: 14px 10px; font-size: 13px; color: var(--gray-500); }

.dbz-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.dbz-search-row:hover { background: var(--gray-50); }
.dbz-search-row.is-on { background: var(--purple-50); }

.dbz-search-check {
  width: 20px; height: 20px;
  border: 1.5px solid var(--gray-300);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: #fff;
  transition: background 0.12s, border-color 0.12s;
}
.dbz-search-row.is-on .dbz-search-check {
  background: var(--purple-500);
  border-color: var(--purple-500);
}

.dbz-search-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.dbz-search-label-main {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbz-search-label-sub {
  font-size: 12px;
  color: var(--gray-500);
}
.dbz-search-row.is-on .dbz-search-label-main { color: var(--purple-700); font-weight: 600; }

.dbz-search-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 6px 8px;
}

.dbz-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.dbz-pill:hover { border-color: var(--gray-300); }
.dbz-pill.has-value {
  background: var(--purple-50);
  border-color: var(--purple-300);
  color: var(--purple-700);
}
.dbz-pill.dbz-more { color: var(--gray-700); }

.dbz-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.dbz-toggle.is-on {
  border-color: var(--purple-300);
  background: var(--purple-50);
  color: var(--purple-700);
}
.dbz-toggle-icon { color: var(--gray-500); display: flex; }
.dbz-toggle.is-on .dbz-toggle-icon { color: var(--purple-600); }

.dbz-switch {
  position: relative;
  width: 28px; height: 16px;
  border-radius: 999px;
  background: var(--gray-200);
  transition: background 0.15s;
  flex-shrink: 0;
}
.dbz-switch[data-on="1"] { background: var(--purple-500); }
.dbz-switch i {
  position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}
.dbz-switch[data-on="1"] i { transform: translateX(12px); }

/* ── Popular filters row ────────────────────────────────────────────────── */
.dbz-popular {
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-bottom: 1px solid var(--gray-100);
  background: #fff;
  overflow: hidden;
}
.dbz-popular-tabs {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}
.dbz-popular-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.dbz-popular-tabs button:hover:not(.is-on) { color: var(--gray-900); }
.dbz-popular-tabs button.is-on {
  background: #fff;
  color: var(--gray-900);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 0 0 0.5px rgba(0,0,0,0.04);
}
.dbz-tab-badge {
  background: var(--purple-500);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.5;
  min-width: 18px;
  text-align: center;
}
.dbz-popular-tabs button.is-on .dbz-tab-badge { background: var(--purple-500); }

.dbz-popular-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  scroll-behavior: smooth;
}
.dbz-popular-chips::-webkit-scrollbar { display: none; }

/* Chip-row scroll affordance (left/right arrows) */
.dbz-popular-chips-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
}
.dbz-chips-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 2;
  transition: background 0.12s, color 0.12s, transform 0.12s;
}
.dbz-chips-arrow:hover {
  background: var(--purple-50);
  color: var(--purple-700);
  border-color: var(--purple-300);
}
.dbz-chips-arrow:active { transform: translateY(-50%) scale(0.95); }
.dbz-chips-arrow-l { left: -10px; }
.dbz-chips-arrow-r { right: -10px; }

/* Fade gradients at chip-row edges to suggest scroll */
.dbz-popular-chips-wrap::before,
.dbz-popular-chips-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.15s;
}
.dbz-popular-chips-wrap.fade-l::before { opacity: 1; }
.dbz-popular-chips-wrap.fade-r::after { opacity: 1; }
.dbz-popular-chips-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}
.dbz-popular-chips-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, #fff, rgba(255, 255, 255, 0));
}

.dbz-popular-clear {
  background: transparent;
  border: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}
.dbz-popular-clear:hover { background: var(--gray-100); color: var(--gray-800); }

.dbz-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.dbz-chip:hover { border-color: var(--gray-300); color: var(--gray-900); }
.dbz-chip.is-on {
  background: var(--purple-50);
  border-color: var(--purple-300);
  color: var(--purple-700);
}
[data-device="mobile"] .dbz-chip.is-on {
  background: var(--purple-500);
  border-color: var(--purple-500);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(107, 79, 230, 0.18);
  animation: dbz-chip-pulse 2.4s ease-in-out infinite;
}
@keyframes dbz-chip-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(107, 79, 230, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(107, 79, 230, 0.06); }
}

/* ── Segmented (Type filter) ────────────────────────────────────────────── */
.dbz-seg {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  height: 40px;
  flex-shrink: 0;
}
.dbz-seg button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.dbz-seg button.is-on {
  background: #fff;
  color: var(--gray-900);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 0 0 0.5px rgba(0,0,0,0.04);
}
.dbz-seg button:hover:not(.is-on) { color: var(--gray-800); }
.dbz-seg-n {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-500);
  padding: 1px 6px;
  background: var(--gray-100);
  border-radius: 999px;
}
.dbz-seg button.is-on .dbz-seg-n { background: var(--gray-100); }

/* ── Dot indicators (used everywhere apt vs condo show up) ─────────────── */
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-apt { background: var(--purple-500); }
.dot-condo {
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--condo-color);
}
[data-condo-accent="badge"] .dot-condo {
  background: var(--purple-500);  /* same as apt; only badge differs */
}

/* ── Main layout ────────────────────────────────────────────────────────── */
.dbz-main {
  flex: 1;
  display: flex;
  min-height: 0;
  width: 100%;
}

.dbz-map-col {
  width: var(--map-share);
  flex-shrink: 0;
  position: relative;
  z-index: 0;
  padding: 12px 0 12px 12px;
  min-width: 0;
}
.dbz-list-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.dbz-list-col[data-view="grid"], .dbz-list-col[data-view="list"] { width: 100%; }
/* Grid view: the mockup unmounts the map column (app.jsx `view !== 'grid'`);
   the SSR port keeps it in the DOM and hides it here instead. */
.dbz-app[data-view="grid"] .dbz-map-col { display: none; }

/* ── Map ────────────────────────────────────────────────────────────────── */
.dbz-map-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--gray-100);
}
.dbz-map { width: 100%; height: 100%; background: #f0eee8; }

.dbz-map-legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.06);
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-700);
  z-index: 400;
}
.dbz-map-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Recenter / reset-map button — appears only after the user pans away */
.dbz-map-pantools {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 450;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: dbz-recenter-in 0.2s ease-out;
}
.dbz-map-searcharea {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: var(--purple-500);
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(107,79,230,0.35), 0 0 0 0.5px rgba(0,0,0,0.04);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s;
}
.dbz-map-searcharea:hover { background: var(--purple-600); }
.dbz-map-recenter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15,15,20,0.16), 0 0 0 0.5px rgba(0,0,0,0.06);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
}
.dbz-map-recenter:hover { color: var(--purple-600); }
@keyframes dbz-recenter-in {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
/* Hide while the filters drawer is open */
.dbz-app[data-filters-open="1"] .dbz-map-pantools { display: none; }
[data-device="mobile"] .dbz-map-pantools { top: 20px; }
[data-device="mobile"] .leaflet-top { top: 8px; }
/* Mobile: SHOW the +/- zoom control (client request, Revisions 6/16 — parity with
   desktop + double-tap zoom). It sits at the top-right; the transit + locate
   buttons below are pushed down (see their mobile overrides) so the three stack
   cleanly without overlap. */
[data-device="mobile"] .leaflet-control-zoom { display: block; }

/* Transit (CTA) toggle button + legend */
.dbz-map-transit {
  position: absolute;
  top: 78px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 0;
  border-radius: 8px;
  color: var(--gray-700);
  cursor: pointer;
  z-index: 450;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.06);
  transition: color 0.12s, background 0.12s;
}
.dbz-map-transit:hover { color: var(--purple-600); }
.dbz-map-transit.is-on { background: var(--purple-500); color: #fff; }
[data-device="mobile"] .dbz-map-transit { top: 86px; }
.dbz-app[data-filters-open="1"] .dbz-map-transit { display: none; }

/* Reset map — small icon button directly under the transit button */
.dbz-map-reset-icon {
  position: absolute;
  top: 120px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 0;
  border-radius: 8px;
  color: var(--gray-700);
  cursor: pointer;
  z-index: 450;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.06);
  transition: color 0.12s, background 0.12s;
}
.dbz-map-reset-icon:hover { color: var(--purple-600); }
.dbz-map-reset-icon svg { color: var(--purple-500); }
[data-device="mobile"] .dbz-map-reset-icon { top: 128px; }
.dbz-app[data-filters-open="1"] .dbz-map-reset-icon { display: none; }

.dbz-map-legend-sep {
  width: 1px;
  height: 14px;
  background: var(--gray-200);
  padding: 0 !important;
}
.dbz-map-legend-hood { color: var(--gray-500); font-weight: 400; }
.dbz-hood-swatch {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: rgba(138, 114, 239, 0.16);
  border: 1px solid rgba(107, 79, 230, 0.5);
}

/* ── Neighborhood labels on the map ─────────────────────────────────────── */
.dbz-hood-label-wrap { background: transparent !important; border: 0 !important; }

.dbz-hood-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  user-select: none;
  opacity: 1;
  transition: opacity 0.15s ease;
}
.dbz-hood-label.is-hidden { opacity: 0; }

.dbz-hood-name {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(75, 48, 192, 0.92);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(75, 48, 192, 0.28), 0 0 0 0.5px rgba(255,255,255,0.4);
  white-space: nowrap;
}
.dbz-hood-blurb {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--purple-700);
  background: rgba(255,255,255,0.92);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.005em;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(15,15,20,0.08);
}

.dbz-hood-label.is-selected .dbz-hood-name {
  background: var(--purple-500);
  box-shadow: 0 2px 10px rgba(107,79,230,0.45), 0 0 0 0.5px rgba(255,255,255,0.5);
}

/* Override leaflet defaults */
.leaflet-container { font: inherit; background: #f0eee8; position: relative; z-index: 0; }
.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.06) !important;
  border-radius: 8px !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  background: #fff !important;
  color: var(--gray-700) !important;
  border-bottom: 1px solid var(--gray-100) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
}
.leaflet-control-zoom a:last-child { border-bottom: 0 !important; }
.leaflet-control-zoom a:hover { background: var(--gray-50) !important; color: var(--purple-600) !important; }

.dbz-app[data-filters-open="1"] .leaflet-control-zoom { visibility: hidden; }
.dbz-app[data-filters-open="1"] .leaflet-tooltip { display: none !important; }

/* ───────────────────────────────────────────────────────────────────────── */
/* ── Mobile overrides (only apply when data-device="mobile") ──────────── */
/* ───────────────────────────────────────────────────────────────────────── */
[data-device="mobile"] {
  /* Tighter chrome */
  --header-h: 52px;
  --filter-h: 56px;
  --result-h: 42px;
}

/* Mobile viewport: don't lock to 852 — let it grow and let .dbz-app scroll
   so sticky positioning attaches to the iPhone frame's scroll container. */
.dbz-shell.device-mobile .dbz-app .dbz-viewport {
  height: auto;
  min-height: 100%;
  overflow: visible;
}

/* Sticky header + filter bar inside the iPhone scroll context */
[data-device="mobile"] .dbz-header {
  padding: 0 12px;
  gap: 6px;
  position: sticky;
  top: 0;
  z-index: 60;
}
[data-device="mobile"] .dbz-header-left { gap: 8px; min-width: 0; flex: 1; }
[data-device="mobile"] .dbz-header-left > div:first-child > span {
  font-size: 15px;
  letter-spacing: -0.02em;
}
[data-device="mobile"] .dbz-header-left > div:first-child svg { width: 19px; height: 19px; }
/* On mobile, center the For Rent/Sale toggle independent of logo width */
[data-device="mobile"] .dbz-mode-seg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 2px;
}
[data-device="mobile"] .dbz-mode-seg button {
  padding: 0 8px;
  font-size: 10.5px;
  height: 22px;
}
[data-device="mobile"] .dbz-link { display: none; }
[data-device="mobile"] .dbz-link.dbz-signin {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px !important;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}
[data-device="mobile"] .dbz-user span:not(.dbz-user-avatar) { display: none; }
[data-device="mobile"] .dbz-user { padding: 4px 6px 4px 4px; border: 0; }
[data-device="mobile"] .dbz-user-avatar { width: 28px; height: 28px; font-size: 11px; }
[data-device="mobile"] .dbz-user svg { display: none; }

/* Filter bar sticks just below header */
[data-device="mobile"] .dbz-filterbar {
  padding: 9px 12px;
  gap: 8px;
  overflow: visible;
  height: auto;
  position: sticky;
  top: var(--header-h);
  z-index: 50;
}
[data-device="mobile"] .dbz-search-loc { flex: 1; min-width: 0; }
[data-device="mobile"] .dbz-search-trigger { width: 100%; height: 40px; }
[data-device="mobile"] .dbz-pop-wrap { display: none; }
[data-device="mobile"] .dbz-toggle:not(.dbz-more) { display: none; }
/* Declutter: hide the desktop nav text link, tighten the Filters button */
[data-device="mobile"] .dbz-header-right > a.dbz-link { display: none; }
[data-device="mobile"] .dbz-more { padding: 0 12px; height: 40px; flex-shrink: 0; }
[data-device="mobile"] .dbz-seg { display: none; }
[data-device="mobile"] .dbz-pill.dbz-more {
  height: 40px;
  padding: 0 14px;
  flex-shrink: 0;
  font-size: 13px;
  background: var(--gray-900);
  color: #fff;
  border-color: var(--gray-900);
}
[data-device="mobile"] .dbz-pill.dbz-more:hover { background: var(--gray-800); }
[data-device="mobile"] .dbz-pill.dbz-more .dbz-pill-count { background: #fff; color: var(--gray-900); }

/* Popular row → quick neighborhood chips (tabs hidden) */
[data-device="mobile"] .dbz-popular {
  display: flex;
  height: 46px;
  padding: 0 12px 8px;
  gap: 8px;
  position: sticky;
  top: calc(var(--header-h) + 60px);
  z-index: 40;
  background: #fff;
}
[data-device="mobile"] .dbz-popular-tabs { display: none; }
[data-device="mobile"] .dbz-chip { height: 30px; font-size: 12.5px; padding: 0 12px; }
[data-device="mobile"] .dbz-chips-arrow { display: none; }
[data-device="mobile"] .dbz-popular-chips-wrap::before,
[data-device="mobile"] .dbz-popular-chips-wrap::after { width: 16px; }
[data-device="mobile"] .dbz-popular-clear { font-size: 11.5px; }

/* Trust strip — merged into results bar on mobile (hide standalone strip) */
[data-device="mobile"] .dbz-trust { display: none; }

/* Results bar: include live indicator + count, hide redundant view toggle */
[data-device="mobile"] .dbz-resultbar {
  padding: 0 14px;
  height: 44px;
  gap: 8px;
  background: var(--purple-50);
  border-bottom: 1px solid var(--purple-100);
}
[data-device="mobile"] .dbz-resultbar-left { gap: 8px; min-width: 0; flex: 1; }
[data-device="mobile"] .dbz-resultbar-right { gap: 6px; flex-shrink: 0; }
[data-device="mobile"] .dbz-viewtoggle { display: none; }
[data-device="mobile"] .dbz-count-live { display: none; }
[data-device="mobile"] .dbz-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-device="mobile"] .dbz-count strong { font-size: 14px; }
[data-device="mobile"] .dbz-sort {
  font-size: 12px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  background: rgba(255,255,255,0.6);
}
[data-device="mobile"] .dbz-sort:hover { background: rgba(255,255,255,0.9); }

/* Main layout — full-screen map or full-screen list (FAB toggles) */
[data-device="mobile"] .dbz-main { flex-direction: column; min-height: 0; }
[data-device="mobile"] .dbz-map-col {
  width: 100%;
  height: calc(100vh - 240px);
  min-height: 380px;
  padding: 0;
  display: none;
}
.dbz-app[data-device="mobile"][data-view="split"] .dbz-map-col { display: block; }
.dbz-app[data-device="mobile"][data-view="split"] .dbz-list-col { display: none; }
[data-device="mobile"] .dbz-map-wrap { border-radius: 0; box-shadow: none; }
[data-device="mobile"] .dbz-list-col { width: 100%; flex: 1; min-height: 0; }
.dbz-app[data-device="mobile"][data-view="grid"] .dbz-list-col { display: flex; }
.dbz-app[data-device="mobile"][data-view="grid"] .dbz-map-col { display: none; }

/* Cards — 1-up, image-forward */
[data-device="mobile"] .dbz-cards { grid-template-columns: minmax(0, 1fr) !important; padding: 12px 14px 80px; gap: 14px; }
[data-device="mobile"] .dbz-card { font-size: 13px; min-width: 0; max-width: 100%; overflow: hidden; }
/* The box takes the hm crop's own aspect (390x211, served ≤640px) so the photo
   fits 1:1 — no cover-zoom blur (same treatment as the landing strip). */
[data-device="mobile"] .dbz-card-media { aspect-ratio: 390/211; max-width: 100%; }
[data-device="mobile"] .dbz-card-media img { max-width: 100%; }
[data-device="mobile"] .dbz-card-body { padding: 12px 14px; gap: 4px; min-width: 0; }
[data-device="mobile"] .dbz-card-name { font-size: 14.5px; }
[data-device="mobile"] .dbz-card-price { font-size: 15px; font-weight: 700; color: var(--gray-900); }
[data-device="mobile"] .dbz-card-head {
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 2px;
}
[data-device="mobile"] .dbz-card-info-title { font-size: 13px; }
[data-device="mobile"] .dbz-card-info-sub { font-size: 12px; }
[data-device="mobile"] .dbz-sale-price { font-size: 17px; }

/* Stat row PPSF inline on mobile (no right-align push) */
[data-device="mobile"] .dbz-sale-ppsf { margin-left: 0 !important; }
[data-device="mobile"] .dbz-sale-stats { flex-wrap: wrap; gap: 4px 12px; }

/* "Days on Dibze" badge polish — darker glass for legibility */
[data-device="mobile"] .dbz-sale-dom {
  background: rgba(15, 15, 20, 0.86);
  font-weight: 700;
}

/* Card primary CTA */
[data-device="mobile"] .dbz-card-cta { display: none; }

/* Floating bottom "Map" / "List" toggle */
[data-device="mobile"] .dbz-mobile-viewfab {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--gray-900);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 500;
}
[data-device="mobile"] .dbz-mobile-viewfab:hover { background: var(--gray-800); }
[data-device="mobile"] .dbz-mobile-viewfab svg { flex-shrink: 0; }
.dbz-mobile-viewfab { display: none; }
[data-device="mobile"] .dbz-mobile-viewfab.is-show { display: inline-flex; }

/* Popover panels become bottom sheets */
[data-device="mobile"] .dbz-pop-panel {
  width: calc(100vw - 32px);
  max-width: 360px;
  position: fixed;
  top: auto;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

/* Pagination */
[data-device="mobile"] .dbz-pagination { padding: 18px 14px 8px; }
[data-device="mobile"] .dbz-page-btn { width: 32px; height: 32px; }
[data-device="mobile"] .dbz-page-text { font-size: 13px; }

/* Footer sections: stack and tighten */
[data-device="mobile"] .dbz-footer { padding: 28px 18px 0; }
[data-device="mobile"] .dbz-seo-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
[data-device="mobile"] .dbz-footer-title { font-size: 22px; }
[data-device="mobile"] .dbz-secondary { padding: 8px 18px 32px; gap: 8px; }
[data-device="mobile"] .dbz-acc-head { padding: 16px 18px; font-size: 15px; }
[data-device="mobile"] .dbz-acc-body { padding: 0 18px 16px; font-size: 13.5px; }
[data-device="mobile"] .dbz-bottom { padding: 32px 18px 16px; }
[data-device="mobile"] .dbz-bottom-inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 24px; }
[data-device="mobile"] .dbz-bottom-meta { flex-direction: column; gap: 10px; }
[data-device="mobile"] .dbz-mred { padding: 20px 18px; }
[data-device="mobile"] .dbz-mred-row { flex-direction: column; gap: 14px; }

/* Drawer (full screen on mobile) */
[data-device="mobile"] .dbz-drawer-overlay {
  position: absolute;
  inset: 0;
}
[data-device="mobile"] .dbz-drawer {
  position: absolute;
  width: 100%;
  max-width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  border-radius: 38px;
}
/* Lock the iPhone scroll so users can't slip past the drawer into the cards behind */
.dbz-shell.device-mobile .dbz-app[data-filters-open="1"] { overflow: hidden; }

/* Auth modal & report modal — scope to iPhone frame on mobile */
[data-device="mobile"] .dbz-auth-overlay,
[data-device="mobile"] .dbz-report-overlay {
  position: absolute;
  inset: 0;
  padding: 14px;
  border-radius: 38px;
}
[data-device="mobile"] .dbz-auth-modal,
[data-device="mobile"] .dbz-report-modal {
  padding: 24px 20px 18px;
  border-radius: 14px;
  max-height: calc(100% - 28px);
}

/* Floating FAB scoped to iPhone frame — sticks to bottom of the scroll viewport */
[data-device="mobile"] .dbz-mobile-viewfab {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
}

/* When map view is active on mobile, hide secondary chrome so the map fills */
.dbz-app[data-device="mobile"][data-view="split"] .dbz-popular,
.dbz-app[data-device="mobile"][data-view="split"] .dbz-resultbar,
.dbz-app[data-device="mobile"][data-view="split"] .dbz-footer,
.dbz-app[data-device="mobile"][data-view="split"] .dbz-secondary,
.dbz-app[data-device="mobile"][data-view="split"] .dbz-bottom,
.dbz-app[data-device="mobile"][data-view="split"] .dbz-mred { display: none; }

.dbz-app[data-device="mobile"][data-view="split"] .dbz-map-col {
  height: 100%;
  min-height: 0;
  position: relative;
}

/* Hide neighborhood polygons + labels on mobile — chip selection in the popular
   row carries the same info and the map gets cleaner with just markers/clusters */
[data-device="mobile"] .leaflet-pane .leaflet-overlay-pane > path { display: none; }
[data-device="mobile"] .dbz-hood-label-wrap { display: none; }

/* Tweaks panel — hide in mobile preview */
[data-device="mobile"] .twk-panel { display: none; }

/* ── Mobile draggable map sheet + swipeable deck ────────────────────────── */
/* Split view fills the frame exactly via flex — no scroll, so the map + its
   controls never slide up under the sticky header/filter bar. */
.dbz-shell.device-mobile .dbz-app[data-view="split"] { overflow: hidden; }
.dbz-app[data-device="mobile"][data-view="split"] .dbz-viewport {
  height: 852px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dbz-app[data-device="mobile"][data-view="split"] .dbz-header,
.dbz-app[data-device="mobile"][data-view="split"] .dbz-filterbar,
.dbz-app[data-device="mobile"][data-view="split"] .dbz-popular { flex-shrink: 0; }
.dbz-app[data-device="mobile"][data-view="split"] .dbz-main { flex: 1 1 auto; min-height: 0; }
[data-device="mobile"] .dbz-map-col { position: relative; }
.dbz-msheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 24px rgba(15,15,20,0.18);
  z-index: 500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: height 0.26s cubic-bezier(0.32, 0.72, 0, 1);
}
.dbz-msheet-grip-zone {
  flex-shrink: 0;
  height: 26px;
  display: flex; align-items: center; justify-content: center;
  cursor: grab;
  touch-action: none;
}
.dbz-msheet-grip {
  width: 38px; height: 4px;
  background: var(--gray-300);
  border-radius: 999px;
}
.dbz-msheet-head {
  flex-shrink: 0;
  padding: 0 16px 10px;
  font-size: 13px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dbz-msheet-head-up { color: var(--purple-600); margin-left: auto; }
.dbz-msheet.snap-collapsed .dbz-msheet-head { padding-top: 2px; cursor: pointer; }
.dbz-msheet-alert {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: var(--purple-50);
  color: var(--purple-700);
  border: 1px solid var(--purple-100);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.dbz-msheet-alert:hover { background: var(--purple-100); }
.dbz-msheet-alert svg { color: var(--purple-500); }
/* When the up-chevron is also present (collapsed), let it keep margin-left:auto and push the alert chip left */
.dbz-msheet.snap-collapsed .dbz-msheet-alert { margin-left: auto; }
.dbz-msheet.snap-collapsed .dbz-msheet-head-up { margin-left: 8px; }
.dbz-msheet-head strong { font-size: 15px; font-weight: 700; color: var(--gray-900); }

/* Peek: horizontal swipeable deck */
.dbz-msheet-deck {
  flex: 1;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 16px 12px;
  touch-action: pan-x;
}
.dbz-msheet-deck::-webkit-scrollbar { display: none; }
.dbz-msheet-deck-item {
  flex: 0 0 86%;
  scroll-snap-align: center;
  height: 116px;
}

/* Half/full: vertical list */
.dbz-msheet-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

/* Sheet card */
.dbz-msheet-card {
  position: relative;
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: inherit; /* rent cards render as <a> */
  text-decoration: none;
}
.dbz-msheet-card.is-sel { border-color: var(--purple-400, #8A72EF); box-shadow: 0 0 0 2px var(--purple-100); }
.dbz-msheet-card.is-deck { flex-direction: row; height: 100%; align-items: stretch; }
.dbz-msheet-card-img {
  position: relative;
  background-size: cover; background-position: center;
  background-color: var(--gray-100);
  flex-shrink: 0;
}
.dbz-msheet-card:not(.is-deck) .dbz-msheet-card-img { width: 116px; }
.dbz-msheet-card.is-deck .dbz-msheet-card-img { width: 150px; align-self: stretch; }
.dbz-msheet-card-img .dbz-mk-tip-type {
  position: absolute; top: 7px; left: 7px;
  font-size: 9.5px; padding: 2px 7px;
  z-index: 3; /* keep the Apartment/Condo chip above the photo carousel */
}
/* Photo carousel inside the compact sheet thumbnail: small prev/next arrows + dots
   so the multiple photos are browsable here too. touch-action:auto lets the deck
   keep scrolling horizontally even when a touch starts on the photo (swipe-to-flip
   is intentionally off for sheet cards — the arrows do it). */
.dbz-msheet-card-img .dbz-cc { touch-action: auto; }
.dbz-msheet-card-img .dbz-cc-arrow { width: 22px; height: 22px; }
.dbz-msheet-card-img .dbz-cc-l { left: 5px; }
.dbz-msheet-card-img .dbz-cc-r { right: 5px; }
.dbz-msheet-card-img .dbz-cc-arrow svg { width: 11px; height: 11px; }
.dbz-msheet-fav {
  position: absolute; top: 6px; right: 6px;
  width: 30px; height: 30px;
  border: 0; border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}
.dbz-msheet-fav:hover { background: var(--gray-200); color: var(--gray-700); }
.dbz-msheet-card-body { flex: 1; min-width: 0; padding: 11px 12px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
/* Horizontal list card: reserve room on the right so the price doesn't run
   under the top-right heart button. */
.dbz-msheet-card:not(.is-deck) .dbz-msheet-card-body { padding-right: 42px; }
.dbz-msheet-card.is-deck .dbz-msheet-card-body { padding: 11px 42px 11px 12px; justify-content: center; gap: 4px; }
.dbz-msheet-card-price { font-size: 15px; font-weight: 700; color: var(--gray-900); letter-spacing: -0.01em; white-space: nowrap; }
.dbz-msheet-card-name {
  font-size: 13px; font-weight: 600; color: var(--gray-900);
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dbz-msheet-card-addr {
  font-size: 11.5px; color: var(--gray-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dbz-msheet-card-stats { font-size: 12px; color: var(--gray-700); font-weight: 500; margin-top: 2px; }
.dbz-msheet-card-offer {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  margin-top: 5px;
  padding: 4px 10px;
  background: rgba(31, 138, 91, 0.1);
  color: #1F8A5B;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbz-msheet-viewall {
  margin: 4px 0 8px;
  padding: 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--purple-700);
  cursor: pointer;
}

/* ── Mobile bottom-sheet preview (tap marker → slide up) ────────────────── */
.dbz-map-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 28px rgba(15, 15, 20, 0.22);
  padding: 8px 14px 16px;
  z-index: 700;
  animation: dbz-sheet-up 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes dbz-sheet-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.dbz-map-sheet-grip {
  width: 36px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 999px;
  margin: 0 auto 8px;
}
.dbz-map-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dbz-map-sheet-close:hover { background: var(--gray-200); }
.dbz-map-sheet-body {
  display: flex;
  gap: 12px;
}
.dbz-map-sheet-media {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
  position: relative;
}
.dbz-map-sheet-media .dbz-mk-tip-type {
  position: absolute;
  top: 6px; left: 6px;
  font-size: 9.5px;
  padding: 2px 6px;
}
.dbz-map-sheet-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 32px;
}
.dbz-map-sheet-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.dbz-map-sheet-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbz-map-sheet-addr {
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbz-map-sheet-stats {
  font-size: 12px;
  color: var(--gray-700);
  font-weight: 500;
  margin-top: 2px;
}
.dbz-map-sheet-cta {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--purple-500);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.dbz-map-sheet-cta:hover { background: var(--purple-600); }

/* ── Filter summary chips (sticky over map on mobile) ───────────────────── */
.dbz-filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--gray-100);
  background: #fff;
}
.dbz-filter-chips::-webkit-scrollbar { display: none; }
.dbz-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px 5px 12px;
  background: var(--purple-50);
  color: var(--purple-700);
  border: 1px solid var(--purple-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.dbz-filter-chip:hover { background: rgba(15, 15, 20, 1); }
.dbz-filter-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(107, 79, 230, 0.14);
  font-size: 12px;
  line-height: 1;
}
.dbz-filter-chip:hover .dbz-filter-chip-x { background: rgba(107, 79, 230, 0.24); }

/* Hide "Save search" pill on the crowded mobile filter bar (saving lives in the
   results sheet header instead); removable chips handle clearing. */
[data-device="mobile"] .dbz-pill-save { display: none; }

/* ── Map marker hover tooltip ───────────────────────────────────────────── */
.leaflet-tooltip.dbz-mk-tip-wrap {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  white-space: normal;
  pointer-events: none;
}
.leaflet-tooltip.dbz-mk-tip-wrap::before { display: none; }

.dbz-mk-tip {
  width: 280px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 14px 36px rgba(15,15,20,0.22);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.dbz-mk-tip-media {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
  position: relative;
}
.dbz-mk-tip-type {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.96);
  color: var(--gray-800);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.dbz-mk-tip-type.is-condo { color: var(--condo-color); }
.dbz-mk-tip-type .dot { width: 7px; height: 7px; }

/* Interactive map hover card (React-rendered) — replaces the static tooltip */
.dbz-mk-card {
  position: absolute;
  z-index: 500;
  width: 268px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 14px 36px rgba(15,15,20,0.22);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  pointer-events: auto;
  animation: dbz-mkcard-in 0.13s ease-out;
}
@keyframes dbz-mkcard-in { from { opacity: 0; } to { opacity: 1; } }
.dbz-mk-card-media {
  position: relative;
  width: 100%;
  height: 168px;
  background: var(--gray-100);
}
.dbz-mk-card .dbz-cc-arrow { opacity: 0.95; }
.dbz-mk-card:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 18px 44px rgba(15,15,20,0.26); }

.dbz-mk-tip-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.dbz-mk-tip-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.15);
}
.dbz-mk-tip-dots span.is-on {
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.2);
}

.dbz-mk-tip-body {
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dbz-mk-tip-price {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-bottom: 4px;
}
.dbz-mk-tip-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbz-mk-tip-addr {
  font-size: 13px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbz-mk-tip-rule {
  height: 1px;
  background: var(--gray-100);
  margin: 12px 0 8px;
}
.dbz-mk-tip-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dbz-mk-tip-info-icon {
  flex-shrink: 0;
  color: var(--gray-500);
  margin-top: 1px;
}
.dbz-mk-tip-info-text {
  flex: 1;
  min-width: 0;
}
.dbz-mk-tip-info-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1.3;
}
.dbz-mk-tip-info-sub {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 2px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Map markers ────────────────────────────────────────────────────────── */
.mk-wrap { background: transparent; border: 0; }

/* 24px transparent hit halo wrapping the visible marker for easier tapping */
.mk-hit {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Marker cluster bubble (overrides Leaflet.markercluster defaults) */
.mk-cluster-wrap { background: transparent; border: 0; }
.mk-cluster {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(107, 79, 230, 0.22), 0 2px 6px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.15s;
}
.mk-cluster:hover { transform: scale(1.06); }
.marker-cluster, .marker-cluster div { background: transparent !important; }
.marker-cluster div { width: 38px !important; height: 38px !important; margin: 0 !important; }

/* dot marker */
.mk.mk-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--purple-500);
  box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.mk.mk-dot.is-condo {
  background: #fff;
  box-shadow: inset 0 0 0 4px var(--condo-color), 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,0.25);
}
.mk.mk-dot.is-condo {
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--condo-color), 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,0.25);
}
[data-condo-accent="badge"] .mk.mk-dot.is-condo {
  background: var(--purple-500);
  box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,0.25);
}
.mk.mk-dot.is-active, .mk.mk-dot:hover {
  transform: scale(1.35);
  box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(107,79,230,0.4);
  z-index: 1000;
}
.mk.mk-dot.is-condo.is-active, .mk.mk-dot.is-condo:hover {
  box-shadow: inset 0 0 0 3px var(--condo-color), 0 0 0 3px #fff, 0 4px 12px rgba(14,165,165,0.4);
}

/* ring marker */
.mk.mk-ring {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(107, 79, 230, 0.2);
  box-shadow: inset 0 0 0 2px var(--purple-500), 0 1px 4px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.15s;
}
.mk.mk-ring.is-condo {
  background: rgba(14, 165, 165, 0.15);
  box-shadow: inset 0 0 0 2px var(--condo-color), 0 1px 4px rgba(0,0,0,0.18);
}
.mk.mk-ring.is-active, .mk.mk-ring:hover { transform: scale(1.3); }

/* mini-price marker — apt = solid purple loud, condo = outlined quiet */
.mk.mk-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--purple-500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.15s;
}
.mk.mk-price.is-condo {
  background: #fff;
  color: var(--condo-color);
  box-shadow: inset 0 0 0 2px var(--condo-color), 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,0.18);
}
.mk.mk-price.is-active, .mk.mk-price:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(107,79,230,0.4);
}
.mk.mk-price.is-condo.is-active, .mk.mk-price.is-condo:hover {
  box-shadow: inset 0 0 0 2px var(--condo-color), 0 0 0 3px #fff, 0 4px 12px rgba(14,165,165,0.4);
}

/* ── Results bar ────────────────────────────────────────────────────────── */
.dbz-resultbar {
  height: var(--result-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 16px;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}
.dbz-resultbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dbz-clearall {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: rgba(214, 69, 69, 0.06);
  border: 1px solid rgba(214, 69, 69, 0.35);
  border-radius: 999px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #C0392B;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.dbz-clearall:hover { background: rgba(214, 69, 69, 0.12); color: #A93226; border-color: rgba(214, 69, 69, 0.55); }
[data-device="mobile"] .dbz-clearall { padding: 4px 9px; font-size: 11.5px; }
.dbz-resultbar-right { display: flex; align-items: center; gap: 10px; }

.dbz-count {
  font-size: 13px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dbz-count strong {
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-900);
}
.dbz-count-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.dbz-count-live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: dbz-live-pulse 2s ease-in-out infinite;
}
@keyframes dbz-live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.08); }
}

/* Trust strip below results bar */
.dbz-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 20px;
  background: linear-gradient(90deg, var(--purple-50) 0%, rgba(242, 238, 254, 0.55) 50%, var(--purple-50) 100%);
  border-bottom: 1px solid var(--purple-100);
  flex-shrink: 0;
}
.dbz-trust-promise {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-700);
  flex-shrink: 0;
  padding-right: 18px;
  border-right: 1px solid var(--purple-200, rgba(107, 79, 230, 0.18));
}
.dbz-trust-items {
  display: flex;
  gap: 18px;
  min-width: 0;
  flex-shrink: 0;
}
.dbz-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.dbz-trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple-500);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(107, 79, 230, 0.3);
}
.dbz-trust-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.dbz-trust-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.005em;
}
.dbz-trust-sub {
  font-size: 11.5px;
  color: var(--gray-600);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .dbz-trust { gap: 12px; padding: 12px 14px; }
  .dbz-trust-promise { display: none; }
  .dbz-trust-sub { display: none; }
}

/* ── Save This Search bar (results panel opt-in) ────────────────────────── */
.dbz-savesearch {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 16px 0;
  padding: 14px 16px;
  background: linear-gradient(90deg, var(--purple-50), rgba(242,238,254,0.5));
  border: 1px solid var(--purple-100);
  border-radius: 12px;
}
/* Save-search pill in the filter bar (persistent, signed-in friendly) */
.dbz-pill.dbz-pill-save {
  color: var(--purple-700);
  background: var(--purple-50);
  border-color: var(--purple-100);
}
.dbz-pill.dbz-pill-save:hover {
  background: var(--purple-100);
  border-color: var(--purple-300);
}
.dbz-pill.dbz-pill-save svg { color: var(--purple-500); }

/* Confirmation toast after saving a search */
.dbz-savetoast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px 13px 14px;
  background: var(--gray-900);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(15,15,20,0.3);
  animation: dbz-savetoast-in 0.26s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes dbz-savetoast-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.dbz-savetoast-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-500);
  color: #fff;
  flex-shrink: 0;
}
.dbz-savetoast-text { font-size: 14px; font-weight: 500; }
.dbz-savetoast-link {
  margin-left: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: #C9BEFF;
  text-decoration: none;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.18);
}
.dbz-savetoast-link:hover { color: #fff; }
[data-device="mobile"] .dbz-savetoast {
  position: absolute;
  left: 12px; right: 12px;
  width: auto; max-width: none;
  transform: none;
  bottom: 88px;
  border-radius: 16px;
  animation: dbz-savetoast-in-m 0.26s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes dbz-savetoast-in-m {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.dbz-savesearch-bell {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--purple-500);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(107,79,230,0.3);
}
.dbz-savesearch-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dbz-savesearch-text strong { font-size: 14px; font-weight: 700; color: var(--gray-900); letter-spacing: -0.005em; }
.dbz-savesearch-text span {
  font-size: 12.5px; color: var(--gray-600);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dbz-savesearch-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  background: var(--purple-500);
  color: #fff;
  border: 0; border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.dbz-savesearch-btn:hover { background: var(--purple-600); }

/* ── Behavioral browse nudge (slide-up toast) ───────────────────────────── */
.dbz-nudge {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 600;
  width: 360px;
  max-width: calc(100vw - 48px);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 16px 18px 18px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(15,15,20,0.08), 0 16px 40px rgba(15,15,20,0.18);
  animation: dbz-nudge-in 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes dbz-nudge-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.dbz-nudge-x {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px;
  border: 0; background: transparent;
  border-radius: 50%; color: var(--gray-400);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.dbz-nudge-x:hover { background: var(--gray-100); color: var(--gray-700); }
.dbz-nudge-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--purple-50);
  color: var(--purple-600);
  flex-shrink: 0;
}
.dbz-nudge-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-right: 16px; }
.dbz-nudge-body strong { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.dbz-nudge-body span { font-size: 12.5px; color: var(--gray-600); line-height: 1.45; }
.dbz-nudge-btn {
  align-self: flex-start;
  margin-top: 6px;
  padding: 9px 18px;
  background: var(--purple-500);
  color: #fff;
  border: 0; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.dbz-nudge-btn:hover { background: var(--purple-600); }
[data-device="mobile"] .dbz-nudge { left: 50%; transform: translateX(-50%); bottom: 80px; }
[data-device="mobile"] .dbz-nudge.is-in { transform: translateX(-50%); }

/* ── Expert lead modal extras ───────────────────────────────────────────── */
.dbz-expert-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.dbz-expert-avatars { display: inline-flex; }
.dbz-expert-avatars i {
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  margin-left: -8px;
}
.dbz-expert-avatars i:first-child { margin-left: 0; }
.dbz-expert-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #047857;
  background: rgba(16,185,129,0.1);
  padding: 5px 10px; border-radius: 999px;
}
.dbz-expert-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dbz-expert-select {
  width: 100%; height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font: inherit; font-size: 14.5px; font-weight: 500;
  color: var(--gray-900);
  background: #fff;
  cursor: pointer;
  outline: 0;
}
.dbz-expert-select:focus { border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(107,79,230,0.12); }

/* Card trust line + report inaccuracy */
.dbz-card-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
  font-size: 11.5px;
}
.dbz-card-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #047857;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.dbz-card-verified svg { color: var(--green-500); }
.dbz-card-broker-inline {
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.dbz-card-report {
  background: transparent;
  border: 0;
  font-size: 11px;
  color: var(--gray-500);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}
.dbz-card-report:hover { color: var(--purple-700); }

/* Search dropdown tagline */
.dbz-search-tagline {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--purple-700);
  padding: 8px 14px 12px;
  letter-spacing: -0.005em;
}

/* ── Sale Card (For Sale page variant) ──────────────────────────────────── */
.dbz-sale-status {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  gap: 5px;
}
.dbz-sale-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: dbz-live-pulse 2s ease-in-out infinite;
}
/* Calmer, tinted status chips (sentence case via no transform) — one soft accent,
   not a loud solid-fill shout. */
.dbz-sale-status.is-active        { background: rgba(16,185,129,0.1);   color: #047857; }
.dbz-sale-status.is-coming-soon   { background: rgba(245,158,11,0.16);  color: #B45309; }
.dbz-sale-status.is-pending       { background: rgba(107,79,230,0.13);  color: #5B3BC4; }
.dbz-sale-status.is-recently-sold { background: var(--gray-100);        color: var(--gray-600); }

/* Calm supporting cast on the sale card — price is the sole hero. */
.dbz-sale-card .dbz-card-name { font-size: 15px; font-weight: 600; color: var(--gray-800); }
.dbz-sale-card .dbz-card-unit { font-weight: 500; color: var(--gray-500); }
/* Single green moment = the status chip; neutralize the MLS-updated line. */
.dbz-sale-card .dbz-card-verified { color: var(--gray-500); font-weight: 500; }
.dbz-sale-card .dbz-card-verified svg { color: var(--gray-400); }
/* Lighter stats — calm info, not a headline. */
.dbz-sale-card .dbz-sale-stats { color: var(--gray-600); }
.dbz-sale-card .dbz-sale-stats strong { font-weight: 600; color: var(--gray-800); }

.dbz-sale-dom {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(15, 15, 20, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.dbz-sale-price {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.dbz-sale-allin {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.dbz-sale-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--gray-700);
  flex-wrap: nowrap;
  font-variant-numeric: tabular-nums;
}
.dbz-sale-stats strong { font-weight: 600; color: var(--gray-900); }
.dbz-sale-stats span { white-space: nowrap; }
.dbz-sale-ppsf {
  margin-left: auto;
  font-size: 12px !important;
  color: var(--gray-500) !important;
  font-weight: 500;
}

.dbz-sale-courtesy {
  font-size: 11.5px;
  color: var(--gray-500);
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbz-sale-courtesy strong {
  font-weight: 600;
  color: var(--gray-700);
}

/* ── Building card (multi-unit aggregation in sale mode) ────────────────── */
.dbz-bldg-count {
  position: absolute;
  top: 10px; right: 10px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 15, 20, 0.86);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.dbz-bldg-expand {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--purple-700);
  cursor: pointer;
  user-select: none;
}
.dbz-bldg.is-expanded { box-shadow: var(--shadow-hover); border-color: var(--purple-300); }
.dbz-bldg-units {
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
  padding: 10px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.dbz-bldg-unit {
  flex: 1 1 0;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.12s;
}
.dbz-bldg-unit:hover { border-color: var(--purple-300); }
.dbz-bldg-unit-no {
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: -0.005em;
}
.dbz-bldg-unit-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dbz-bldg-unit-stats strong {
  font-size: 14px;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
}
.dbz-bldg-unit-stats span {
  font-size: 11.5px;
  color: var(--gray-500);
}
.dbz-bldg-status {
  font-size: 9.5px !important;
  padding: 2px 6px !important;
  letter-spacing: 0.04em !important;
  position: static !important;
  top: auto !important; left: auto !important;
  box-shadow: none !important;
}
.dbz-mred {
  background: #FAFAFB;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 28px 48px;
}
.dbz-mred-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  max-width: 1280px;
}
.dbz-mred-eho {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--gray-700);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  max-width: 80px;
  line-height: 1.25;
}
.dbz-mred-text {
  flex: 1;
  min-width: 0;
}
.dbz-mred-text p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--gray-700);
  line-height: 1.55;
}
.dbz-mred-text p strong { color: var(--gray-900); font-weight: 600; }
.dbz-mred-fine {
  font-size: 12px !important;
  color: var(--gray-500) !important;
}
.dbz-mred-stamp {
  font-size: 12px !important;
  color: var(--gray-500) !important;
  font-variant-numeric: tabular-nums;
  font-weight: 500 !important;
  padding-top: 6px;
  border-top: 1px solid var(--gray-100);
}

.dbz-viewtoggle {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.dbz-viewtoggle button {
  width: 30px; height: 26px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dbz-viewtoggle button.is-on {
  background: #fff;
  color: var(--purple-600);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.dbz-viewtoggle button:hover:not(.is-on) { color: var(--gray-800); }

.dbz-sort-wrap { position: relative; }
.dbz-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
}
.dbz-sort:hover { border-color: var(--gray-300); background: var(--gray-50); }
.dbz-sort.is-open {
  border-color: var(--purple-300);
  background: var(--purple-50);
  color: var(--purple-700);
}
.dbz-sort.is-open svg { transform: rotate(180deg); }
.dbz-sort svg { transition: transform 0.15s; }
.dbz-sort-label::before { content: 'Sort: '; color: var(--gray-500); font-weight: 400; }

.dbz-sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15,15,20,0.08), 0 16px 40px rgba(15,15,20,0.18);
  padding: 8px;
  animation: dbz-pop-in 0.15s cubic-bezier(0.32, 0.72, 0, 1);
}
.dbz-sort-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}
.dbz-sort-item:hover { background: var(--gray-50); }
.dbz-sort-item.is-on {
  background: var(--purple-50);
  color: var(--purple-700);
  font-weight: 600;
}

/* Mobile sort menu — anchor to right, smaller text */
[data-device="mobile"] .dbz-sort-label::before { display: none; }
[data-device="mobile"] .dbz-sort-menu {
  min-width: 200px;
  right: -10px;
}
[data-device="mobile"] .dbz-sort-item {
  padding: 11px 14px;
  font-size: 14px;
}

/* ── Cards grid ─────────────────────────────────────────────────────────── */
.dbz-cards {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 16px 20px;
  display: grid;
  grid-template-columns: repeat(var(--cards-per-row), minmax(0, 1fr));
  gap: 14px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.dbz-cards.is-list { grid-template-columns: 1fr; }
.dbz-cards::-webkit-scrollbar { width: 8px; }
.dbz-cards::-webkit-scrollbar-thumb {
  background: var(--gray-200); border-radius: 4px;
  border: 2px solid transparent; background-clip: content-box;
}

/* ── Property Card ──────────────────────────────────────────────────────── */
.dbz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.dbz-card:hover, .dbz-card.is-hovered {
  border-color: var(--purple-300);
  box-shadow: var(--shadow-hover);
}
.dbz-card.is-selected {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 2px var(--purple-100), var(--shadow-hover);
}

.dbz-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  min-height: 90px;
  background: var(--gray-100);
  overflow: hidden;
}
/* Card image carousel inside .dbz-card-media — fills the slot */
.dbz-cc {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Hand horizontal drags to the JS swipe handler (map-cards.js) while vertical
     drags still scroll the card list. Lets phones browse a card's photos — the
     +/- arrows are hover-only and invisible on touch. */
  touch-action: pan-y;
}
.dbz-cc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.dbz-card:hover .dbz-cc img { transform: scale(1.04); }
.dbz-cc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.12s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 2;
}
.dbz-cc-l { left: 8px; }
.dbz-cc-r { right: 8px; }
.dbz-card:hover .dbz-cc-arrow { opacity: 1; }
/* Touch has no hover, so the hover-reveal above never fires — the prev/next photo
   arrows would be invisible, leaving no obvious way to browse a card's many photos
   (swipe also works, but the buttons must be SEEN). Show them over every image,
   like the marker card already does. `[data-device]` covers the map/dashboard
   mobile layout; `hover:none` covers real touch devices on any page. */
[data-device="mobile"] .dbz-cc-arrow { opacity: 0.95; }
@media (hover: none) { .dbz-cc-arrow { opacity: 0.95; } }
.dbz-cc-arrow:hover { background: #fff; }
.dbz-cc-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}
.dbz-cc-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18);
  transition: background 0.15s;
}
.dbz-cc-dots span.is-on {
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.18);
}
/* Keep the prev/next arrows VISIBLE on mobile (client request 6/16). They used to
   be display:none here, which — with no swipe and no other control — left the
   multi-photo carousel completely unbrowsable on a phone. The arrows stay shown
   on touch (opacity rules above), matching landing.css / apartment.css carousels. */
[data-device="mobile"] .dbz-cc-arrow { display: flex; }
.dbz-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s;
}
.dbz-card:hover .dbz-card-media img { transform: scale(1.04); }

.dbz-card-offer {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(15, 15, 20, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dbz-card-new {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  background: #1F8A5B;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
/* When a New badge is present, push the type/status badge below it */
.dbz-card-new + .dbz-card-type,
.dbz-card-new + .dbz-sale-status { top: 42px; }

.dbz-card-type {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-800);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.dbz-card-type.is-condo { color: var(--condo-color); }

.dbz-card-fav {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border: 0;
  background: rgba(15,15,20,0.18);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.dbz-card-fav:hover { background: rgba(15,15,20,0.3); }

.dbz-card-body {
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.dbz-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
/* The card's real navigation root: the name <a> stretches over the whole card
   so building pages get crawlable, middle-clickable links. Interactive controls
   (carousel arrows, dots, fav, report) sit above it on z-index 2. */
.dbz-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.dbz-card-fav { z-index: 2; }
.dbz-card-report { position: relative; z-index: 2; }
.dbz-card-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.dbz-card-unit {
  font-weight: 500;
  color: var(--gray-600);
}
.dbz-card-price {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dbz-card-addr {
  font-size: 13px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dbz-card-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 8px 0 2px;
}

.dbz-card-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 4px 0;
}
.dbz-card-info-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.dbz-card-info-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dbz-card-info-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbz-card-info-sub {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbz-card-amen {
  -webkit-line-clamp: 1;
}
/* Matching-unit breakdown (per-unit apartments) */
.dbz-units {
  margin-top: 10px;
  border-top: 1px solid var(--gray-100);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dbz-unit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
}
.dbz-unit:hover { background: var(--gray-50); }
.dbz-unit-main { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.dbz-unit-plan { font-size: 13px; font-weight: 600; color: var(--gray-900); }
.dbz-unit-meta { font-size: 12px; color: var(--gray-500); }
.dbz-unit-avail { font-size: 11.5px; color: var(--green-600, #1F8A5B); font-weight: 500; }
.dbz-unit-price { font-size: 13.5px; font-weight: 700; color: var(--gray-900); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dbz-units-more {
  align-self: flex-start;
  margin-top: 2px;
  background: none; border: 0; padding: 4px 8px;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--purple-600); cursor: pointer;
}
.dbz-units-more:hover { color: var(--purple-700); }

.dbz-card-broker-line {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
  font-size: 11.5px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Empty state ────────────────────────────────────────────────────────── */
.dbz-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--gray-500);
}
.dbz-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}
.dbz-empty-sub { font-size: 13px; }

/* ── Compact view tweaks ────────────────────────────────────────────────── */
.dbz-cards.is-list .dbz-card {
  flex-direction: row;
  align-items: stretch;
}
.dbz-cards.is-list .dbz-card-media {
  width: 220px;
  flex-shrink: 0;
  aspect-ratio: auto;
  height: auto;
}
.dbz-cards.is-list .dbz-card-body { padding: 14px 16px; }

/* Saved link in header */
.dbz-saved-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}
.dbz-saved-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  background: var(--purple-500);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* ── Building Panel (slide-in: all units in one building) ───────────────── */
.dbz-bpanel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,15,20,0.32);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  animation: dbz-fade-in 0.18s ease-out;
}
.dbz-bpanel {
  position: relative;
  width: 460px;
  max-width: 92vw;
  background: #fff;
  height: 100%;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(15,15,20,0.2);
  animation: dbz-slide-in 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
[data-device="mobile"] .dbz-bpanel-overlay { position: absolute; }
[data-device="mobile"] .dbz-bpanel { width: 100%; max-width: 100%; }
.dbz-bpanel-x {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-800); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.dbz-bpanel-hero {
  position: relative; height: 200px;
  background-size: cover; background-position: center;
  background-color: var(--gray-100);
}
.dbz-bpanel-count {
  position: absolute; bottom: 12px; left: 16px;
  background: rgba(15,15,20,0.78); color: #fff;
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.dbz-bpanel-head { padding: 18px 20px; border-bottom: 1px solid var(--gray-100); }
.dbz-bpanel-name { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--gray-900); }
.dbz-bpanel-addr { font-size: 13.5px; color: var(--gray-500); margin-top: 3px; }
.dbz-bpanel-facts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--gray-600); }
.dbz-bpanel-facts strong { color: var(--gray-900); font-weight: 700; }
.dbz-bpanel-units { padding: 16px 20px 28px; }
.dbz-bpanel-units-label { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 10px; }
.dbz-bpanel-unit {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; margin-bottom: 8px;
  border: 1px solid var(--gray-100); border-radius: 12px;
  cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s;
}
.dbz-bpanel-unit:hover { border-color: var(--purple-300); box-shadow: var(--shadow-card); }
.dbz-bpanel-unit-img { width: 84px; height: 68px; border-radius: 8px; background-size: cover; background-position: center; background-color: var(--gray-100); flex-shrink: 0; }
.dbz-bpanel-unit-body { flex: 1; min-width: 0; }
.dbz-bpanel-unit-top { display: flex; align-items: center; gap: 8px; }
.dbz-bpanel-unit-price { font-size: 17px; font-weight: 700; color: var(--gray-900); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.dbz-bpanel-unit-no { font-size: 13px; font-weight: 600; color: var(--gray-700); margin-top: 2px; }
.dbz-bpanel-unit-stats { font-size: 12.5px; color: var(--gray-500); margin-top: 1px; }
.dbz-bpanel-unit-fav {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--gray-100); color: var(--gray-500);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.dbz-bpanel-unit-fav:hover { background: var(--gray-200); }
@keyframes dbz-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ── Saved drawer ───────────────────────────────────────────────────────── */
.dbz-saved-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 480px;
  max-width: 92vw;
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(15,15,20,0.18);
  animation: dbz-slide-in 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
[data-device="mobile"] .dbz-saved-drawer {
  position: absolute;
  width: 100%;
  max-width: 100%;
  border-radius: 38px;
}

.dbz-saved-empty {
  text-align: center;
  padding: 64px 24px 32px;
}
.dbz-saved-empty-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--purple-50);
  color: var(--purple-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.dbz-saved-empty-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.015em;
}
.dbz-saved-empty-sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.55;
}
.dbz-saved-empty-cta {
  padding: 11px 22px;
  background: var(--purple-500);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.dbz-saved-empty-cta:hover { background: var(--purple-600); }

.dbz-saved-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dbz-saved-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.dbz-saved-item:hover {
  border-color: var(--purple-300);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 6px 16px rgba(107,79,230,0.08);
}
.dbz-saved-item-media {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  background-color: var(--gray-100);
  position: relative;
}
.dbz-saved-item-media .dbz-mk-tip-type {
  position: absolute;
  top: 5px; left: 5px;
  font-size: 9.5px;
  padding: 2px 6px;
}
.dbz-saved-item-text { flex: 1; min-width: 0; padding-right: 32px; }
.dbz-saved-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.dbz-saved-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.dbz-saved-item-addr {
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dbz-saved-item-meta {
  font-size: 12px;
  color: var(--gray-700);
  margin-top: 4px;
}
.dbz-saved-item-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  background: var(--gray-100);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dbz-saved-item-x:hover { background: var(--gray-200); }

/* ── Skeleton card (loading state) ──────────────────────────────────────── */
.dbz-skeleton {
  pointer-events: none;
  border-color: var(--gray-100) !important;
  box-shadow: none !important;
  transform: none !important;
}
.dbz-skeleton-media {
  aspect-ratio: 16 / 10;
  width: 100%;
  background: linear-gradient(90deg, var(--gray-100) 0%, var(--gray-50) 40%, var(--gray-100) 80%);
  background-size: 200% 100%;
  animation: dbz-shimmer 1.4s ease-in-out infinite;
}
.dbz-skeleton-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.dbz-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gray-100) 0%, var(--gray-50) 40%, var(--gray-100) 80%);
  background-size: 200% 100%;
  animation: dbz-shimmer 1.4s ease-in-out infinite;
}
.dbz-skeleton-price { height: 18px; width: 40%; }
.dbz-skeleton-name { width: 70%; }
.dbz-skeleton-addr { width: 55%; }
.dbz-skeleton-stats { width: 60%; height: 14px; margin-top: 4px; }
.dbz-skeleton-rule {
  height: 1px;
  background: var(--gray-100);
  margin: 4px 0;
}
@keyframes dbz-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.dbz-app * { cursor: default; }
.dbz-app a, .dbz-app button, .dbz-app .dbz-card, .dbz-app input { cursor: pointer; }
.dbz-app input[type="text"], .dbz-app .dbz-search input { cursor: text; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
/* ── Infinite-scroll list footer ──────────────────────────────────────────── */
.dbz-list-end {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 18px 0 8px;
}
.dbz-loadmore {
  padding: 11px 22px;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, color 0.14s;
}
.dbz-loadmore:hover { border-color: var(--purple-400, #8A72EF); color: var(--purple-700); background: var(--purple-50); }
.dbz-list-end-note {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
  padding: 4px 0;
}

.dbz-pagination {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 16px 8px;
}
.dbz-page-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: 8px;
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, border-color 0.12s;
}
.dbz-page-btn:hover { background: var(--gray-50); border-color: var(--gray-300); }
.dbz-page-btn:disabled { color: var(--gray-300); cursor: not-allowed; }
.dbz-page-text {
  font-size: 14px;
  color: var(--gray-700);
}
.dbz-page-text strong { font-weight: 600; color: var(--gray-900); }

/* ── Page footer ────────────────────────────────────────────────────────── */
.dbz-footer {
  background: #fff;
  padding: 40px 48px 0;
  border-top: 1px solid var(--gray-100);
}

.dbz-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-500);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 36px;
}
.dbz-crumbs a {
  color: var(--gray-500);
  transition: color 0.15s;
}
.dbz-crumbs a:hover { color: var(--purple-600); }
.dbz-crumb-sep { color: var(--gray-300); }
.dbz-crumb-current { color: var(--gray-900); font-weight: 500; }

.dbz-footer-title {
  margin: 0 0 32px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

.dbz-seo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
.dbz-seo-col h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dbz-seo-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dbz-seo-col a {
  font-size: 14px;
  color: var(--gray-600);
  transition: color 0.15s;
  line-height: 1.4;
}
.dbz-seo-col a:hover { color: var(--purple-600); }
.dbz-seo-more {
  color: var(--purple-600) !important;
  font-weight: 500;
  margin-top: 4px;
  display: inline-block;
}

.dbz-footer-base {
  display: none;
}

@media (max-width: 1100px) {
  .dbz-seo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Secondary footer (accordion SEO blocks) ────────────────────────────── */
.dbz-secondary {
  background: #fff;
  padding: 8px 48px 64px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dbz-acc-item {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.dbz-acc-item:hover { border-color: var(--gray-300); }
.dbz-acc-item.is-open {
  border-color: var(--purple-300);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 16px rgba(107,79,230,0.06);
}

.dbz-acc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  background: transparent;
  border: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  cursor: pointer;
  text-align: left;
}
.dbz-acc-head svg {
  flex-shrink: 0;
  color: var(--gray-500);
  transition: transform 0.2s;
  margin-left: 16px;
}
.dbz-acc-item.is-open .dbz-acc-head svg { transform: rotate(180deg); color: var(--purple-600); }

.dbz-acc-body {
  padding: 0 28px 24px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gray-600);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dbz-acc-body p { margin: 0; }
.dbz-acc-body strong { color: var(--gray-900); font-weight: 600; }

/* ── Dark bottom footer ─────────────────────────────────────────────────── */
.dbz-bottom {
  background: #16161D;
  color: #C9C9D1;
  padding: 56px 48px 24px;
}
.dbz-bottom-inner {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 1fr;
  gap: 56px;
  padding-bottom: 40px;
}

.dbz-bottom-brand-col { max-width: 380px; }
.dbz-bottom-marks {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.dbz-eho {
  width: 56px; height: 56px;
  color: #fff;
  flex-shrink: 0;
}
.dbz-bottom-logo {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dbz-bottom-logo span {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.dbz-bottom-blurb {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.55;
  color: #C9C9D1;
  font-weight: 500;
}

.dbz-bottom-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--purple-500);
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: -0.005em;
}
.dbz-bottom-cta:hover { background: var(--purple-600); }

.dbz-bottom-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.dbz-bottom-links h4,
.dbz-bottom-social h4 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.dbz-bottom-links a {
  display: block;
  font-size: 14.5px;
  color: #C9C9D1;
  padding: 6px 0;
  transition: color 0.15s;
}
.dbz-bottom-links a:hover { color: #fff; }

.dbz-bottom-social { display: flex; flex-direction: column; }
.dbz-social-row {
  display: flex;
  gap: 14px;
}
.dbz-social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  color: #C9C9D1;
  transition: color 0.15s;
}
.dbz-social-row a:hover { color: #fff; }

.dbz-bottom-meta {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12.5px;
  color: rgba(201,201,209,0.6);
  line-height: 1.55;
}
.dbz-bottom-meta span:last-child { text-align: right; max-width: 540px; }

@media (max-width: 1100px) {
  .dbz-bottom-inner { grid-template-columns: 1fr; gap: 40px; }
  .dbz-bottom-meta { flex-direction: column; }
  .dbz-bottom-meta span:last-child { text-align: left; }
}

/* ── Filters Drawer ─────────────────────────────────────────────────────── */
.dbz-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 20, 0.4);
  backdrop-filter: blur(2px);
  z-index: 998;
  animation: dbz-fade-in 0.15s ease;
}
@keyframes dbz-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.dbz-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 520px;
  max-width: 92vw;
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(15,15,20,0.18);
  animation: dbz-slide-in 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes dbz-slide-in {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.dbz-drawer-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.dbz-drawer-x {
  width: 36px; height: 36px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dbz-drawer-x:hover { background: var(--gray-100); }
.dbz-drawer-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

.dbz-drawer-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 26px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

.dbz-drawer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-top: 1px solid var(--gray-100);
  background: #fff;
  flex-shrink: 0;
}
.dbz-drawer-reset {
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px 12px;
}
.dbz-drawer-reset:hover { color: var(--gray-900); }
.dbz-drawer-apply {
  padding: 12px 26px;
  min-width: 168px;
  text-align: center;
  background: var(--purple-500);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  font-variant-numeric: tabular-nums;
}
.dbz-drawer-apply:hover { background: var(--purple-600); }
/* In-flight count: gentle pulse so it reads as "working", never a stale number. */
.dbz-drawer-apply.is-counting { cursor: progress; animation: dbzCountPulse 0.9s ease-in-out infinite; }
@keyframes dbzCountPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ── Sections ───────────────────────────────────────────────────────────── */
.dbz-fs {
  border-bottom: 1px solid var(--gray-100);
  padding: 22px 0;
}
.dbz-fs:last-child { border-bottom: 0; }
.dbz-fs-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  letter-spacing: -0.01em;
}
.dbz-fs-head svg {
  color: var(--gray-500);
  transition: transform 0.2s;
}
.dbz-fs.is-open .dbz-fs-head svg { transform: rotate(180deg); }
.dbz-fs-body { padding-top: 18px; }
.dbz-fs-lbl {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 10px;
}
.dbz-fs-lbl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.dbz-fs-lbl-row .dbz-fs-lbl { margin: 0; }
.dbz-fs-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
}

/* ── Range slider (single + dual-thumb) ─────────────────────────────────── */
.dbz-range {
  position: relative;
  height: 26px;
  margin: 4px 8px 0;
}
.dbz-range-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0; right: 0;
  height: 5px;
  background: var(--gray-200);
  border-radius: 999px;
}
.dbz-range-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 5px;
  background: var(--purple-500);
  border-radius: 999px;
}
.dbz-range input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 26px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  margin: 0;
}
.dbz-range input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--purple-500);
  cursor: grab;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
  transition: transform 0.1s;
}
.dbz-range input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.dbz-range input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.15); }
.dbz-range input[type="range"]::-moz-range-thumb {
  pointer-events: all;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--purple-500);
  cursor: grab;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}
.dbz-range input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.dbz-range input[type="range"]::-moz-range-track { background: transparent; }

/* Segmented for bedrooms/bathrooms */
.dbz-fs-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--gray-100);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.dbz-fs-seg button {
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}
.dbz-fs-seg button:hover:not(.is-on) { color: var(--gray-900); }
.dbz-fs-seg button.is-on {
  background: #fff;
  color: var(--gray-900);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 0 0 0.5px rgba(0,0,0,0.04);
}

/* Inputs */
.dbz-fs-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dbz-fs-twocol > * { min-width: 0; }
.dbz-fs-input-row {
  display: flex;
  gap: 12px;
}
.dbz-fs-input {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dbz-fs-input:focus-within {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(107,79,230,0.12);
}
.dbz-fs-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  font-variant-numeric: tabular-nums;
  padding: 0;
  -moz-appearance: textfield;
}
.dbz-fs-input input::-webkit-inner-spin-button,
.dbz-fs-input input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.dbz-fs-input-prefix, .dbz-fs-input-suffix {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  flex-shrink: 0;
}

/* ── Move-in date picker — custom calendar (Revisions 6/13) ──────────────────
   Replaces the native <input type=date>, which looked clunky/dated on desktop.
   The trigger mirrors .dbz-fs-input; the popover is a self-built month grid. */
.dbz-datepick { position: relative; }
.dbz-datepick-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 0 14px;
  height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dbz-datepick-trigger:hover { border-color: var(--gray-300); }
.dbz-datepick.is-open .dbz-datepick-trigger {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(107, 79, 230, 0.12);
}
.dbz-datepick-trigger svg { color: var(--gray-500); flex-shrink: 0; }
.dbz-datepick.is-open .dbz-datepick-trigger svg,
.dbz-datepick.has-val .dbz-datepick-trigger svg { color: var(--purple-500); }
.dbz-datepick-val {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.dbz-datepick-val.is-set { color: var(--gray-900); font-weight: 600; }

.dbz-cal {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 268px;
  max-width: calc(100vw - 40px);
  padding: 12px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(17, 17, 26, 0.14);
  animation: dbzCalIn 0.13s ease-out;
}
.dbz-datepick[data-datepick="moveTo"] .dbz-cal { left: auto; right: 0; }
@keyframes dbzCalIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dbz-cal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dbz-cal-title { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.dbz-cal-nav {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gray-700);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s;
}
.dbz-cal-nav:hover { background: var(--gray-100); }
.dbz-cal-nav[disabled] { color: var(--gray-300); cursor: default; background: transparent; }
.dbz-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.dbz-cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  padding-bottom: 4px;
}
.dbz-cal-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gray-800);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background 0.1s, color 0.1s;
}
.dbz-cal-day:hover { background: var(--purple-50, #f1eefe); }
.dbz-cal-day.is-sel { background: var(--purple-500); color: #fff; font-weight: 700; }
.dbz-cal-day[disabled] { color: var(--gray-300); cursor: default; background: transparent; }
.dbz-cal-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
}
.dbz-cal-clear {
  border: 0;
  background: transparent;
  color: var(--purple-600, #5b3fd6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.dbz-cal-clear:hover { background: var(--gray-100); }

/* Preset chips (for sqft) */
.dbz-fs-preset-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dbz-fs-chip {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.12s;
}
.dbz-fs-chip:hover { border-color: var(--gray-300); color: var(--gray-900); }
.dbz-fs-chip.is-on {
  background: var(--purple-50);
  border-color: var(--purple-500);
  color: var(--purple-700);
  font-weight: 600;
}

/* Toggle rows (Pets, Parking, EV) */
.dbz-fs-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.dbz-fs-toggle-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-700);
}
.dbz-fs-toggle-label {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
}
.dbz-switch-lg {
  width: 44px; height: 26px;
  border: 0; padding: 0;
  background: var(--gray-200);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.dbz-switch-lg[data-on="1"] { background: var(--purple-500); }
.dbz-switch-lg i {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.dbz-switch-lg[data-on="1"] i { transform: translateX(18px); }

/* Checkbox grid (amenities) */
.dbz-fs-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.dbz-fs-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.12s;
}
.dbz-fs-check:hover { background: var(--gray-50); }
.dbz-fs-check-box {
  width: 22px; height: 22px;
  border: 1.5px solid var(--gray-300);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: #fff;
  transition: background 0.12s, border-color 0.12s;
}
.dbz-fs-check.is-on .dbz-fs-check-box {
  background: var(--purple-500);
  border-color: var(--purple-500);
}
.dbz-fs-check-label {
  font-size: 14px;
  color: var(--gray-800);
  font-weight: 500;
}

/* Filters pill count badge */
.dbz-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--purple-500);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 2px;
}

/* ── Inline popovers (Price / Beds-Baths / Type pills) ──────────────────── */
.dbz-pop-wrap {
  position: relative;
  flex-shrink: 0;
}
.dbz-pill.is-open {
  border-color: var(--purple-500);
  background: var(--purple-50);
  color: var(--purple-700);
}
.dbz-pill.is-open svg { transform: rotate(180deg); }
.dbz-pill svg { transition: transform 0.15s; }

.dbz-pop-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  width: 360px;
  max-width: 92vw;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15,15,20,0.08), 0 16px 40px rgba(15,15,20,0.18);
  padding: 18px 18px 14px;
  animation: dbz-pop-in 0.15s cubic-bezier(0.32, 0.72, 0, 1);
}
.dbz-pop-right { left: auto; right: 0; }

@keyframes dbz-pop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dbz-pop-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 10px;
  letter-spacing: 0.005em;
}

.dbz-pop-hint {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--gray-50);
  border-radius: 8px;
  border-left: 2px solid var(--purple-300);
}

.dbz-pop-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}
.dbz-pop-clear {
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 6px 8px;
}
.dbz-pop-clear:hover { color: var(--gray-900); }
.dbz-pop-done {
  padding: 8px 18px;
  background: var(--gray-900);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.dbz-pop-done:hover { background: var(--gray-800); }

/* Radio rows in Type popover */
.dbz-pop-radio-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: -4px -4px;
}
.dbz-pop-radio {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.dbz-pop-radio:hover { background: var(--gray-50); }
.dbz-pop-radio.is-on { background: var(--purple-50); }

.dbz-pop-radio-bullet {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: border-color 0.12s;
}
.dbz-pop-radio.is-on .dbz-pop-radio-bullet { border-color: var(--purple-500); }
.dbz-pop-radio-bullet i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--purple-500);
  display: block;
}

.dbz-pop-radio-text { flex: 1; min-width: 0; }
.dbz-pop-radio-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.dbz-pop-radio-n {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
}
.dbz-pop-radio-desc {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 2px;
  line-height: 1.35;
}

/* ── Real-phone layer ────────────────────────────────────────────────────────
   The mockup's mobile design ships scoped to its iPhone-preview frame
   (.dbz-shell.device-mobile = bezel chrome + 393×852 frame). On the live site
   data-device="mobile" is applied to .dbz-app by map.js when the actual
   viewport is phone-sized, and these rules re-express the frame-scoped
   FUNCTIONAL bits against the real viewport. */
@media (max-width: 767px) {
  /* Split (map) view fills the real screen — no page scroll behind it. */
  .dbz-app[data-device="mobile"][data-view="split"] .dbz-viewport {
    height: 100dvh;
    min-height: 0;
  }
  .dbz-app[data-device="mobile"][data-view="split"] .site-hd,
  .dbz-app[data-device="mobile"][data-view="split"] .dbz-filter-chips { flex-shrink: 0; }
  body.dbz-mobile-lock { overflow: hidden; }
  /* Modals pin to the real viewport, not an iPhone frame. */
  [data-device="mobile"] .dbz-auth-overlay,
  [data-device="mobile"] .dbz-report-overlay {
    position: fixed;
    border-radius: 0;
  }
}
