/* ═══════════════════════════════════════════════════════
   SwipeHome Web App — styles.css
   Design System: Dark mode, Indigo primary
   Matches swipehomeapp.io design system
   ═══════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────── */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-bg: rgba(99, 102, 241, 0.1);
  --primary-border: rgba(99, 102, 241, 0.2);
  --primary-glow: rgba(99, 102, 241, 0.35);

  --success: #00d48a;
  --success-bg: rgba(0, 212, 138, 0.1);
  --success-border: rgba(0, 212, 138, 0.2);
  --warning: #d97706;
  --warning-bg: rgba(217, 119, 6, 0.1);
  --warning-border: rgba(217, 119, 6, 0.2);
  --danger: #ff4458;
  --danger-bg: rgba(255, 68, 88, 0.1);
  --danger-border: rgba(255, 68, 88, 0.2);

  --text: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #8888a0;
  --text-tertiary: #6b6b80;
  --text-muted: #c4c4d4;
  --text-placeholder: rgba(255, 255, 255, 0.3);
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --surface-alt: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(99, 102, 241, 0.08);
  --card-border: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-border: rgba(255, 255, 255, 0.1);
  --overlay: rgba(0, 0, 0, 0.7);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 20px;
  --radius-full: 999px;

  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Splash Screen ─────────────────────────────────── */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#splash-screen.splash-fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  text-align: center;
  animation: splashFadeIn 0.8s ease both;
}

.splash-logo {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.splash-logo span {
  color: #6366f1;
}

.splash-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
  letter-spacing: 0.5px;
  animation: splashFadeIn 0.8s ease 0.3s both;
}

.splash-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  animation: splashFadeIn 0.8s ease 0.6s both;
}

.splash-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.5);
  animation: splashPulse 1.4s ease-in-out infinite;
}

.splash-dots span:nth-child(2) { animation-delay: 0.2s; }
.splash-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes splashPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); background: #6366f1; }
}

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  user-select: none;
}

#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
}

#screen-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: var(--safe-top);
  scroll-behavior: smooth;
}

/* ── Scrollbar ──────────────────────────────────────── */
#screen-container::-webkit-scrollbar { width: 0; }

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-body); font-weight: 700; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(99,102,241,0.4); transform: translateY(-1px); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--primary-border); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
}
.btn-outline:hover { background: var(--primary-bg); border-color: var(--primary); }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 10px 16px;
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.btn-outline-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 16px 32px; font-size: 17px; height: 52px; border-radius: var(--radius-md); }
.btn-block { width: 100%; }
.btn-round { border-radius: var(--radius-full); }

/* ── Inputs ─────────────────────────────────────────── */
.input-group { margin-bottom: 16px; }

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input {
  width: 100%;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

.input::placeholder { color: var(--text-placeholder); }
.input:focus { border-color: var(--primary); background: rgba(99,102,241,0.06); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.input-missing { border-color: var(--warning); background: var(--warning-bg); }
.input-missing:focus { border-color: var(--warning); }

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238888a0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select.input option { background: var(--surface); color: var(--text); }

.input-row {
  display: flex;
  gap: 12px;
}
.input-row .input-group { flex: 1; }

/* Password toggle */
.input-password-wrap {
  position: relative;
}
.input-password-wrap .input { padding-right: 48px; }
.input-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
}

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s ease;
}

.card:active { transform: scale(0.98); }

.card-flat {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

/* ── Status Badges ──────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-confirmed, .badge-active { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge-pending, .badge-requested { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-declined, .badge-inactive { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.badge-primary { background: var(--primary-bg); color: var(--primary); border: 1px solid var(--primary-border); }

/* ── Tab Bar ────────────────────────────────────────── */
#tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 56px;
  padding: 0 0 var(--safe-bottom);
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 6px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  justify-content: center;
  flex: 1;
}

.tab-item.active { color: var(--primary); }
.tab-item svg { width: 22px; height: 22px; }

.tab-badge {
  position: absolute;
  top: 2px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Header ─────────────────────────────────────────── */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  position: sticky;
  top: 0;
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 5;
  border-bottom: 1px solid var(--border-accent);
}

.screen-header h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
}

.header-back {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-actions button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.header-actions button svg,
.header-actions button i {
  pointer-events: none;
}

.logo-text {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--primary); }

/* ── Screen Content ─────────────────────────────────── */
.screen { padding: 0 16px 24px; }
.screen-padded { padding: 16px; }

/* ── Auth Screens ───────────────────────────────────── */
.auth-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 40px 24px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.auth-logo::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.auth-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
  position: relative;
  z-index: 1;
}

.auth-logo h1 {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.auth-logo h1 span { color: var(--primary); }

.auth-logo p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.auth-form { margin-bottom: 24px; }

.auth-footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.auth-legal-footer {
  text-align: center;
  padding: 16px 0 8px;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.6;
}

.auth-legal-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.auth-legal-footer a:hover {
  color: var(--text-muted);
  text-decoration: underline;
}

.auth-legal-footer span {
  margin: 0 6px;
}

.auth-tos-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.4;
}

.auth-tos-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-tos-check a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-tos-check a:hover {
  text-decoration: underline;
}

.auth-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
}

/* ── Role Select ────────────────────────────────────── */
.role-grid {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.role-card {
  flex: 1;
  background: var(--surface);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.role-card:active { transform: scale(0.97); }
.role-card:hover, .role-card.selected { border-color: var(--primary); }
.role-card.selected { background: var(--primary-bg); box-shadow: 0 0 20px rgba(99,102,241,0.15); }

.role-card h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.role-card p {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.3;
}

.role-card .role-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--primary);
}

/* ── Search Bar & Filters ──────────────────────────── */
.search-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 4px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px 10px 36px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder { color: var(--text-placeholder); }
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }

.filter-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 42px;
  height: 42px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.filter-toggle-btn:hover { border-color: var(--primary-border); color: var(--primary-light); }
.filter-toggle-btn.filter-active { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }

.filter-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-drawer {
  max-height: 90vh;
}

.filter-section {
  margin-bottom: 20px;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.filter-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-price-input {
  flex: 1;
  position: relative;
}

.filter-price-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.filter-chip-row {
  display: flex;
  gap: 6px;
}

.filter-chip {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-chip:hover { border-color: var(--primary-border); color: var(--text); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.filter-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ── Swipe Feed ─────────────────────────────────────── */
.swipe-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 270px - var(--safe-top) - var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.swipe-card-wrapper {
  position: absolute;
  width: calc(100% - 16px);
  height: calc(100% - 12px);
  touch-action: none;
  cursor: grab;
}

.swipe-card-wrapper:active { cursor: grabbing; }

.swipe-card {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.swipe-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-alt);
}

.swipe-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.swipe-card-price {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.swipe-card-address {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-bottom: 8px;
}

.swipe-card-details {
  display: flex;
  gap: 4px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}

.swipe-card-details span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.swipe-card-details .dot-sep::before {
  content: '·';
  margin: 0 2px;
  color: rgba(255,255,255,0.4);
}

.swipe-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.swipe-card-tag {
  padding: 4px 10px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.swipe-stamp {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
  font-size: 48px;
  font-weight: 800;
  padding: 8px 20px;
  border: 4px solid;
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.swipe-stamp-like {
  left: 20px;
  color: var(--success);
  border-color: var(--success);
}

.swipe-stamp-nope {
  right: 20px;
  color: var(--danger);
  border-color: var(--danger);
  transform: translateY(-50%) rotate(15deg);
}

.swipe-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 12px 0 8px;
}

.swipe-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.swipe-btn:active { transform: scale(0.9); }

.swipe-btn-nope {
  background: #fff;
  color: var(--danger);
}

.swipe-btn-like {
  background: #fff;
  color: var(--success);
}

.swipe-btn-info {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
}

.swipe-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
}

.swipe-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  max-width: 40px;
}

.swipe-dot.active { background: #fff; }

.swipe-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
  text-align: center;
  padding: 40px;
}

.swipe-empty svg { color: var(--text-muted); margin-bottom: 16px; opacity: 0.5; }
.swipe-empty h3 { font-family: var(--font-body); margin-bottom: 8px; }

/* ── Image dots ─────────────────────────────────────── */
.image-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
}

.image-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s;
}

.image-dot.active { background: #fff; width: 18px; border-radius: 3px; }

/* ── Listing Detail ─────────────────────────────────── */
.detail-gallery {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.detail-gallery-nav:active { transform: translateY(-50%) scale(0.9); }
.detail-gallery-nav.prev { left: 12px; }
.detail-gallery-nav.next { right: 12px; }

.detail-back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s;
}

.detail-back-btn:active { transform: scale(0.9); }

.detail-content { padding: 20px 16px; }

.detail-price {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.detail-address {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
}

.detail-stats {
  display: flex;
  gap: 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.detail-stat {
  text-align: center;
  flex: 1;
  position: relative;
}

.detail-stat + .detail-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}

.detail-stat-value {
  font-size: 20px;
  font-weight: 700;
}

.detail-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-description {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.detail-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-feature {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-muted);
}

.detail-actions {
  display: flex;
  gap: 12px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
}

.detail-actions .btn { flex: 1; }

/* ── Liked Homes List ───────────────────────────────── */
.listing-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
}

.listing-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.listing-item:active { transform: scale(0.98); border-color: var(--primary-border); }

.listing-item-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-alt);
  flex-shrink: 0;
}

.listing-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.listing-item-price {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}

.listing-item-address {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.listing-item-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Match Action Buttons ──────────────────────────── */
.match-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.match-action-btn:hover, .match-action-btn:active {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: var(--primary);
}

/* ── Tour Calendar ──────────────────────────────────── */
.tour-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
}

.tour-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.2s;
}

.tour-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.tour-card-address {
  font-weight: 600;
  font-size: 15px;
  flex: 1;
  margin-right: 8px;
}

.tour-card-details {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
}

.tour-card-details div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.tour-card-actions {
  display: flex;
  gap: 8px;
}

/* ── Tour Request Modal ─────────────────────────────── */
#modal-container {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#modal-container .modal-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 12px auto 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px calc(16px + var(--safe-bottom)); }

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ── Time Window Picker ─────────────────────────────── */
.time-windows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.time-window-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.time-window-row .input { flex: 1; }

.time-window-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 8px;
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.add-time-window {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  min-height: 44px;
}

/* ── Profile ────────────────────────────────────────── */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 24px;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.profile-name { font-size: 20px; font-weight: 700; }
.profile-role { color: var(--text-secondary); font-size: 14px; margin-top: 4px; text-transform: capitalize; }

/* Role Switcher */
.role-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
}
.role-switcher-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.role-switcher-toggle {
  display: flex;
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.role-toggle-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.role-toggle-btn.active {
  background: var(--primary);
  color: white;
}

.profile-stats {
  display: flex;
  gap: 0;
  margin: 20px 0;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.profile-stat {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  position: relative;
}

.profile-stat + .profile-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.profile-stat-value { font-size: 22px; font-weight: 700; color: var(--primary); }
.profile-stat-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; margin-top: 2px; letter-spacing: 0.5px; }

.profile-section {
  margin-bottom: 20px;
}

.profile-section-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.profile-menu {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  text-align: left;
  min-height: 44px;
}

.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:active { background: var(--surface-alt); }
.profile-menu-item svg { color: var(--text-secondary); flex-shrink: 0; }

.profile-menu-item .chevron {
  margin-left: auto;
  color: var(--text-placeholder);
}

/* ── Buyer Preferences ──────────────────────────────── */
.pref-section {
  margin-bottom: 24px;
}

.pref-section h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.pref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pref-chip {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.pref-chip.selected {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.chip-green {
  background: rgba(0, 212, 138, 0.1);
  color: var(--success);
  border-color: var(--success-border);
}
.chip-red {
  background: rgba(255, 68, 88, 0.1);
  color: var(--danger);
  border-color: var(--danger-border);
}

.price-range {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-range .input { flex: 1; }
.price-range-divider { color: var(--text-secondary); }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}

.toggle-row:last-child { border-bottom: none; }

.toggle-label {
  font-size: 15px;
}

.toggle-sublabel {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.toggle input { display: none; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::after { transform: translateX(20px); }

/* ── Agent Dashboard ────────────────────────────────── */
.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
}

.stat-card-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-card-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-icon {
  margin-bottom: 8px;
  color: var(--primary);
}

.client-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.client-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.client-card:active { transform: scale(0.98); border-color: var(--primary-border); }

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.client-info { flex: 1; min-width: 0; }
.client-name { font-weight: 600; font-size: 15px; }
.client-meta { font-size: 13px; color: var(--text-secondary); }

/* ── Listing Agent Dashboard ────────────────────────── */
.dashboard-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.dashboard-actions .btn {
  flex: 1;
  font-size: 12px;
  padding: 10px 8px;
}

.my-listings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.my-listing-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.my-listing-card:active { transform: scale(0.98); border-color: var(--primary-border); }

.my-listing-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--surface-alt);
}

.my-listing-info { padding: 16px; }

.my-listing-price {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 2px;
}

.my-listing-address {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.my-listing-stats {
  display: flex;
  gap: 16px;
}

.my-listing-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.my-listing-stat svg { width: 14px; height: 14px; }

/* ── Listing Creation Form ──────────────────────────── */
.form-section {
  margin-bottom: 24px;
}

.form-section-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.photo-upload {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.photo-slot {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s;
  overflow: hidden;
  position: relative;
}

.photo-slot:hover { border-color: var(--primary); }

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ── Notifications ──────────────────────────────────── */
.notification-list {
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, transform 0.25s ease, opacity 0.25s ease;
  overflow: hidden;
  position: relative;
}

.notification-item.unread { background: var(--primary-bg); margin: 0 -16px; padding: 14px 16px; border-radius: 12px; }

.notif-dismiss-btn {
  background: none;
  border: none;
  color: var(--text-placeholder);
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  margin-top: 2px;
}
.notif-dismiss-btn:hover { color: var(--danger); background: var(--danger-bg); }

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon.tour { background: var(--primary-bg); color: var(--primary); }
.notification-icon.like { background: var(--success-bg); color: var(--success); }
.notification-icon.alert { background: var(--warning-bg); color: var(--warning); }
.notification-icon.system { background: var(--surface-alt); color: var(--text-secondary); }

.notification-content { flex: 1; min-width: 0; }

.notification-text {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.notification-text strong { font-weight: 600; }

.notification-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.notification-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── Empty State ────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state svg { color: var(--text-muted); margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-family: var(--font-body); font-weight: 600; margin-bottom: 6px; }
.empty-state p { color: var(--text-secondary); font-size: 14px; max-width: 280px; }

/* ── Loading ────────────────────────────────────────── */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm { width: 20px; height: 20px; border-width: 2px; }

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

.loading-text {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 12px;
}

/* Skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-alt) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.skeleton-text {
  height: 14px;
  width: 60%;
  margin-bottom: 8px;
}

.skeleton-text-sm {
  height: 10px;
  width: 40%;
}

/* ── Toast ──────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: calc(20px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 440px;
  width: calc(100% - 40px);
}

.toast {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  animation: fadeInDown 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px);
}

.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
.toast-info { background: var(--primary); color: #fff; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Animations ─────────────────────────────────────── */
.fade-in {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger animation classes */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }

/* ── Photo-Truth Badge ──────────────────────────────── */
.photo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.photo-badge-verified {
  background: rgba(0, 212, 138, 0.2);
  color: #00d48a;
  border: 1px solid rgba(0, 212, 138, 0.3);
}
.photo-badge-enhanced {
  background: rgba(217, 119, 6, 0.2);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

/* ── Pull to Refresh ────────────────────────────────── */
.pull-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  gap: 8px;
}

/* ── Invite Code ────────────────────────────────────── */
.invite-code-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
  border-radius: 16px;
  margin: 16px 0;
}

.invite-code-value {
  font-family: monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  flex: 1;
}

.invite-code-copy {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  min-height: 44px;
}

/* ── Import Listing Checkbox ────────────────────────── */
#import-listing-list .listing-item {
  position: relative;
}

#import-listing-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  background: var(--input-bg);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

#import-listing-list input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

#import-listing-list input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* Search result checkbox */
.search-result-check {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  background: var(--input-bg);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.search-result-check:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.search-result-check:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* ── Search Area Results ────────────────────────────── */
.search-result-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  margin-bottom: 8px;
  align-items: center;
  background: var(--surface);
  transition: all 0.2s;
}

.search-result-card:active { border-color: var(--primary-border); }

/* ── Agent Stats Row ────────────────────────────────── */
.agent-stats-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px 4px;
}

.agent-stat-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
}

.agent-stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.agent-stat-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ── Tour Tab Enhancements ─────────────────────────── */
.tour-tabs {
  display: flex;
  gap: 0;
  margin: 0 16px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.tour-tab {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  min-height: 44px;
}

.tour-tab.active {
  background: var(--primary-bg);
  color: var(--primary);
}

.tour-tab + .tour-tab {
  border-left: 1px solid var(--card-border);
}

.tour-buyer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tour-buyer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.tour-buyer-info {
  flex: 1;
  min-width: 0;
}

.tour-buyer-name {
  font-weight: 600;
  font-size: 14px;
}

.tour-buyer-contact {
  font-size: 12px;
  color: var(--text-secondary);
}

.tour-time-slots {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
}

.tour-time-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 10px;
  background: var(--surface-alt);
  border-radius: 8px;
}

.tour-time-slot svg { flex-shrink: 0; }

.tour-listing-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.tour-listing-thumb {
  width: 48px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-alt);
  flex-shrink: 0;
}

.tour-listing-detail {
  flex: 1;
  min-width: 0;
}

.tour-listing-addr {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-listing-price {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ── Tour Coordination Panel ──────────────────────── */
.coord-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.coord-panel {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.coord-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.coord-panel-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.coord-panel-body {
  padding: 16px 20px 24px;
}

.coord-section {
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.coord-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.coord-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.coord-actions .btn {
  justify-content: center;
}

/* ── Tour Groups (Buyer's Agent View) ────────────── */
.tour-group {
  margin-bottom: 20px;
}

.tour-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.tour-group-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tour-group-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-alt);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 10px;
}

.tour-group-header.needs-action .tour-group-title {
  color: var(--warning);
}

.tour-group-header.needs-action .tour-group-count {
  background: var(--warning-bg);
  color: var(--warning);
}

.tour-coord-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.tour-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ── Notification Enhancements ─────────────────────── */
.notification-listing-context {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.notification-listing-context svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ── Agent Profile Stats ───────────────────────────── */
.agent-profile-stats {
  display: flex;
  gap: 0;
  margin: 20px 0;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.agent-profile-stat {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  position: relative;
}

.agent-profile-stat + .agent-profile-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.agent-profile-stat-value { font-size: 22px; font-weight: 700; color: var(--primary); }
.agent-profile-stat-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; margin-top: 2px; letter-spacing: 0.5px; }

/* ── Buyer Intelligence ─────────────────────────────── */
.bi-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bi-filter-bar::-webkit-scrollbar { display: none; }

.bi-filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  white-space: nowrap;
  font-family: var(--font-body);
  min-height: 34px;
}

.bi-filter-chip.active {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}

.bi-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
}

.bi-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.bi-card-info { flex: 1; min-width: 0; }
.bi-name { font-weight: 600; font-size: 15px; }
.bi-budget { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }

.bi-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.bi-badge-green {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.bi-badge-gray {
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.bi-lead-bar { margin-bottom: 10px; }

.bi-lead-label {
  font-size: 12px;
  font-weight: 700;
}

.bi-bar-track {
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.bi-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.bi-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.bi-signal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--surface-alt);
  padding: 3px 8px;
  border-radius: 6px;
}

.bi-signal svg { width: 12px; height: 12px; }

.bi-signal-hot {
  background: var(--primary-bg);
  color: var(--primary);
}

.bi-active {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.bi-msg-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 8px;
  margin-top: 4px;
  min-height: 36px;
}

.bi-msg-btn:active { opacity: 0.7; }

.bi-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}

.bi-empty svg { opacity: 0.4; }

.bi-skeleton { padding: 4px 0; }

/* ── Utility ────────────────────────────────────────── */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* ── HomeCheck ──────────────────────────────────────── */
.hc-demo-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  color: #d97706;
  margin-bottom: 14px;
}

.hc-score-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.hc-score-ring {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.hc-score-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.hc-score-summary {
  flex: 1;
}

.hc-score-label {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hc-score-badges {
  display: flex;
  gap: 8px;
}

.hc-count-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.hc-count-good {
  background: rgba(0, 212, 138, 0.1);
  color: var(--success);
}

.hc-count-attention {
  background: rgba(255, 68, 88, 0.1);
  color: var(--danger);
}

/* Factor rows */
.hc-factors {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.hc-factor {
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.15s;
}

.hc-factor-hidden {
  display: none;
}

.hc-factor:hover {
  background: var(--surface-alt);
}

.hc-factor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.hc-factor-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.hc-factor-info {
  flex: 1;
  min-width: 0;
}

.hc-factor-label {
  font-size: 13px;
  font-weight: 600;
}

.hc-factor-summary {
  font-size: 11px;
  color: var(--text-secondary);
}

.hc-cond-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid;
  white-space: nowrap;
}

.hc-factor-chevron {
  color: var(--text-secondary);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.hc-factor.expanded .hc-factor-chevron {
  transform: rotate(180deg);
}

.hc-factor-detail {
  display: none;
  padding: 0 12px 12px;
}

.hc-factor.expanded .hc-factor-detail {
  display: block;
}

.hc-factor-detail p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.hc-factor-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hc-factor-bar-track {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.hc-factor-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.hc-factor-pts {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.hc-show-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 12px;
}

.hc-show-all-btn:hover {
  background: var(--primary-bg);
}

.hc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-placeholder);
  padding-top: 4px;
}

.hc-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* Coming Soon */
.hc-coming-soon {
  padding: 4px 0;
}

.hc-cs-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.hc-cs-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-cs-title {
  font-size: 16px;
  font-weight: 700;
}

.hc-cs-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hc-cs-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.hc-cs-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.hc-cs-features div {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Swipe card badge */
.hc-swipe-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
  color: var(--text-secondary);
}

/* Likes list badge */
.hc-list-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.hc-list-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid;
  background: rgba(0, 0, 0, 0.2);
}

/* ── Onboarding Flow ───────────────────────────────── */
.onboarding-wrapper {
  position: absolute;
  inset: 0;
  background: #08080f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.onboarding-chrome {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 8px;
  position: relative;
  flex-shrink: 0;
}

.onboarding-skip {
  position: absolute;
  right: 20px;
  top: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  padding: 4px 8px;
}

.onboarding-skip:hover { color: var(--text); }

.onboarding-progress {
  display: flex;
  gap: 8px;
  align-items: center;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
  transition: all 0.3s ease;
}

.onboarding-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

.onboarding-dot.done {
  background: var(--primary);
  opacity: 0.5;
}

.onboarding-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Welcome screen */
.ob-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 24px 40px;
  min-height: 100%;
}

.ob-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}

.ob-logo span { color: var(--primary); }

.ob-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.ob-subtitle {
  font-size: 18px;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 8px;
}

.ob-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 300px;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Demo card */
.ob-card-demo {
  width: 100%;
  max-width: 280px;
  margin-bottom: 40px;
  perspective: 600px;
}

.ob-demo-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: obCardFloat 3s ease-in-out infinite;
}

@keyframes obCardFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

.ob-demo-img {
  height: 160px;
  background: linear-gradient(135deg, #1a1a3e 0%, #2d1b4e 50%, #1a2a4e 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.ob-demo-price {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  padding: 4px 12px;
  border-radius: 8px;
}

.ob-demo-info { padding: 12px 14px 8px; }

.ob-demo-addr {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ob-demo-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.ob-demo-arrows {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 14px;
}

.ob-arrow-left, .ob-arrow-right {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

.ob-arrow-left {
  background: var(--danger-bg);
  color: var(--danger);
}

.ob-arrow-right {
  background: var(--success-bg);
  color: var(--success);
}

/* Step screens */
.ob-step {
  padding: 16px 24px 40px;
  position: relative;
}

.ob-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.ob-back:hover { color: var(--text); }

.ob-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ob-heading {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.ob-sub {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}

.ob-cta {
  margin-top: 28px;
}

.ob-cta i { vertical-align: middle; margin-left: 4px; }

.ob-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 12px;
}

.ob-divider::before, .ob-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Location popular chips */
.ob-popular-label, .ob-quick-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  margin-top: 20px;
}

.ob-popular-grid, .ob-quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ob-popular-chip, .ob-quick-chip {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Outfit', sans-serif;
}

.ob-popular-chip:hover, .ob-quick-chip:hover {
  border-color: var(--primary);
  color: var(--text);
}

.ob-popular-chip.selected, .ob-quick-chip.selected {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Budget */
.ob-budget-display {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 24px;
  font-family: 'Outfit', sans-serif;
}

.ob-slider-group {
  margin-bottom: 16px;
}

.ob-slider-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.ob-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  outline: none;
}

.ob-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #08080f;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.ob-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #08080f;
}

/* Pre-approval */
.ob-preapproval {
  margin-top: 24px;
}

.ob-preapproval-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ob-preapproval-options {
  display: flex;
  gap: 8px;
}

.ob-pa-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Outfit', sans-serif;
}

.ob-pa-btn:hover {
  border-color: var(--primary);
}

.ob-pa-btn.selected {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary-light);
  font-weight: 600;
}

/* Preferences pills */
.ob-pref-section {
  margin-bottom: 24px;
}

.ob-pref-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ob-pref-sublabel {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.ob-pill-row {
  display: flex;
  gap: 8px;
}

.ob-pill {
  flex: 1;
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  font-family: 'Outfit', sans-serif;
}

.ob-pill:hover {
  border-color: var(--primary);
}

.ob-pill.selected {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary-light);
}

.ob-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ob-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Outfit', sans-serif;
}

.ob-type-card:hover {
  border-color: var(--primary);
}

.ob-type-card.selected {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary-light);
}

.ob-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Done screen */
.ob-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px 40px;
  min-height: 100%;
}

.ob-done-icon {
  position: relative;
  margin-bottom: 24px;
}

.ob-done-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: var(--primary-bg);
  animation: obPulse 2s ease-in-out infinite;
}

@keyframes obPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0; }
}

.ob-tips {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  margin: 32px 0;
  width: 100%;
  max-width: 280px;
}

.ob-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.ob-cta-final {
  margin-top: auto;
  animation: obCtaPulse 2s ease-in-out infinite;
}

@keyframes obCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

/* ── Market Pulse ───────────────────────────────────── */
.pulse-totals-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
}

.pulse-total-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.pulse-total-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-light);
  font-family: 'Outfit', sans-serif;
}

.pulse-total-label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-section {
  padding: 0 16px 24px;
}

.pulse-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pulse-section-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pulse-demand-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pulse-demand-card {
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.pulse-demand-card:hover {
  border-color: var(--primary);
}

.pulse-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pulse-card-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.pulse-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-secondary);
}

.pulse-card-info {
  flex: 1;
  min-width: 0;
}

.pulse-card-address {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-card-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.pulse-card-specs {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.pulse-demand-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.pulse-card-bar-track {
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.pulse-card-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.pulse-card-stats {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.pulse-card-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Heatmap */
.pulse-heatmap-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pulse-heatmap-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.pulse-heatmap-area {
  flex: 1;
  min-width: 0;
}

.pulse-heatmap-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-heatmap-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

.pulse-heatmap-stats {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.pulse-heatmap-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.pulse-heatmap-demand {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 70px;
  font-size: 13px;
  font-weight: 700;
}

.pulse-heatmap-bar-track {
  flex: 1;
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
}

.pulse-heatmap-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ── Trust Layer: PhotoTruth ────────────────────────── */
.pt-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.pt-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.pt-issues {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.pt-issue-row {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.pt-issue-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.pt-issue-detail {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 22px;
}

/* ── Trust Layer: Neighborhood IQ ──────────────────── */
.niq-scores-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.niq-score-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.niq-score-val {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.niq-score-icon {
  color: var(--text-secondary);
}

.niq-score-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.niq-amenities {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.niq-amenity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.niq-amenity-row:last-child {
  border-bottom: none;
}

.niq-amenity-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: 8px;
  color: var(--primary);
  flex-shrink: 0;
}

.niq-amenity-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.niq-amenity-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.niq-amenity-detail {
  font-size: 11px;
  color: var(--text-secondary);
}

.niq-amenity-dist {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.niq-schools {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.niq-school-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.niq-school-row:last-child {
  border-bottom: none;
}

.niq-school-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 8px;
  color: #8b5cf6;
  flex-shrink: 0;
}

.niq-school-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.niq-school-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.niq-school-type {
  font-size: 11px;
  color: var(--text-secondary);
}

.niq-school-rating {
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Trust Layer: Offer Insight ────────────────────── */
.oi-price-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.oi-price-item {
  flex: 1;
  padding: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.oi-price-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
  margin-bottom: 4px;
}

.oi-price-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.oi-context-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
}

.oi-context-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.oi-context-row:last-child {
  border-bottom: none;
}

/* ── Trust Layer: Investor Hub ──────────────────────── */
.ih-appreciation-card,
.ih-rental-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}

.ih-proj-row {
  display: flex;
  gap: 10px;
}

.ih-proj-item {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: var(--bg);
  border-radius: 8px;
}

.ih-proj-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
  margin-bottom: 4px;
}

.ih-proj-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.ih-metrics-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.ih-metric-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.ih-metric-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.ih-metric-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.ih-rating {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ih-rating-good {
  background: rgba(0, 212, 138, 0.15);
  color: var(--success);
}

.ih-rating-fair {
  background: rgba(217, 119, 6, 0.15);
  color: var(--warning);
}

.ih-rating-low {
  background: rgba(255, 68, 88, 0.15);
  color: var(--danger);
}

.ih-calc-inputs {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}

.ih-breakdown {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.ih-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.ih-row:last-child {
  border-bottom: none;
}

.ih-row-income {
  font-weight: 600;
}

.ih-row-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding: 10px 0 6px;
}

.ih-row-divider {
  height: 1px;
  background: var(--border-strong);
  margin: 4px 0;
}

.ih-insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
}

.ih-insight-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
}

.ih-insight-positive {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
}

.ih-insight-neutral {
  background: var(--primary-bg);
  border: 1px solid var(--primary-border);
}

/* ── Notification Priority System ──────────────────── */
.notif-filters {
  display: flex;
  gap: 8px;
}

.notif-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}

.notif-filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.notif-filter-badge {
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: 2px;
}

.notif-section-header {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.notif-section-critical { color: var(--danger); }
.notif-section-high { color: var(--warning); }
.notif-section-recent { color: var(--text-secondary); }

.notif-priority-critical {
  border-left: 3px solid var(--danger);
}

.notif-priority-high {
  border-left: 3px solid var(--warning);
}

.notif-priority-medium {
  border-left: 3px solid rgba(99, 102, 241, 0.3);
}

.notif-priority-low {
  border-left: 3px solid var(--border);
}

.notif-batch-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  margin-right: 6px;
}

/* ── Lead Quality Signals ──────────────────────────── */
.lead-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.lead-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.lead-signal {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-secondary);
}

.lead-signal-good {
  color: var(--success);
}

.lead-signal-unknown {
  color: var(--text-placeholder);
}

/* ── Responsive ─────────────────────────────────────── */
@media (min-width: 481px) {
  #app {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  body {
    background: #09090f;
  }
}

/* ═══════════════════════════════════════════════════════
   LIST CONTROLS — Search, Filter, Sort, Pagination
   ═══════════════════════════════════════════════════════ */

.list-controls {
  padding: 12px 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--background, #0f0f1a);
}
.list-controls-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.list-search-input {
  flex: 1;
  padding: 10px 14px;
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.list-search-input:focus { border-color: #6366f1; }
.list-search-input::placeholder { color: #666; }
.list-filter-toggle {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 10px;
  color: #9ca3af;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.list-filter-toggle:hover,
.list-filter-toggle.active { border-color: #6366f1; color: #6366f1; }
.list-filter-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #2a2a4a;
  margin-bottom: 8px;
}
.list-filter-panel.hidden {
  display: none;
}
.list-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.list-filter-label {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.list-filter-select,
.list-filter-input {
  padding: 8px 10px;
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  outline: none;
}
.list-filter-select:focus,
.list-filter-input:focus { border-color: #6366f1; }
.list-filter-select option { background: #1a1a2e; color: #ffffff; }
.list-controls-sort-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 12px;
  border-top: 1px solid rgba(42, 42, 74, 0.5);
}
.list-sort-label {
  color: #9ca3af;
  font-size: 12px;
  white-space: nowrap;
}
.list-sort-select {
  flex: 1;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.list-sort-select option { background: #1a1a2e; }
.list-sort-dir {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.list-sort-dir:hover { border-color: #6366f1; color: #6366f1; }
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
}
.page-btn {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.page-btn:hover:not(.disabled) { border-color: #6366f1; color: #6366f1; }
.page-btn.disabled { opacity: 0.3; cursor: not-allowed; }
.page-numbers {
  display: flex;
  align-items: center;
  gap: 2px;
}
.page-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.page-num:hover { border-color: #2a2a4a; color: #ffffff; }
.page-num.active { background: #6366f1; color: #ffffff; border-color: #6366f1; font-weight: 600; }
.page-ellipsis { color: #666; padding: 0 4px; font-size: 14px; }
.pagination-info {
  text-align: center;
  color: #666;
  font-size: 12px;
  padding: 4px 16px 16px;
}
.list-empty-search {
  padding: 40px 24px;
  text-align: center;
}
.list-empty-search-icon { font-size: 32px; margin-bottom: 12px; }
.list-empty-search-title { color: #ffffff; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.list-empty-search-subtitle { color: #9ca3af; font-size: 13px; }

@media (max-width: 359px) {
  .list-filter-panel { grid-template-columns: 1fr; }
  .page-numbers { display: none; }
}

/* ── Image placeholder (broken/missing photos) ── */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: var(--surface-alt, #1a1a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}
.my-listing-image.img-placeholder { height: 160px; }
.listing-item-image.img-placeholder { width: 80px; height: 80px; min-height: auto; flex-shrink: 0; }

/* ── Add Listing section ── */
.add-listing-section {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.add-listing-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}
.add-listing-btn.primary {
  background: var(--primary);
  border: none;
  color: #ffffff;
}
.add-listing-btn.primary:hover { background: #5558e6; }
.add-listing-btn.secondary {
  background: transparent;
  border: 1px solid var(--border, #2a2a4a);
  color: var(--text-secondary);
}
.add-listing-btn.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Find My Listing view ── */
.find-listing-content { padding: 0; }
.find-listing-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.address-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.address-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface, #1a1a2e);
  border: 1px solid var(--border, #2a2a4a);
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
}
.address-input:focus { border-color: var(--primary); }
.address-input.half { width: calc(60% - 5px); }
.address-input.quarter { width: calc(40% - 5px); }
.search-listing-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  margin-top: 4px;
}
.search-listing-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Search results */
.search-results-header h3 { color: #ffffff; font-size: 16px; margin-bottom: 4px; }
.results-subtitle { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; }
.search-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface, #1a1a2e);
  border: 1px solid var(--border, #2a2a4a);
  border-radius: 12px;
  margin-bottom: 10px;
}
.search-result-photo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg, #0f0f1a);
}
.search-result-photo img { width: 100%; height: 100%; object-fit: cover; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-price { color: var(--success); font-size: 16px; font-weight: 700; }
.search-result-address {
  color: #ffffff;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-details { color: var(--text-secondary); font-size: 12px; margin-top: 2px; }
.claim-btn, .import-claim-btn {
  padding: 8px 16px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.claim-btn:disabled, .import-claim-btn:disabled { opacity: 0.5; }
.already-claimed { color: var(--success); font-size: 13px; font-weight: 600; white-space: nowrap; }
.placeholder-small {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 10px;
}
.no-results {
  text-align: center;
  padding: 40px 24px;
}
.no-results-icon { font-size: 36px; margin-bottom: 12px; }
.no-results-title { color: #ffffff; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.no-results-subtitle { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════
   Demand Summary Card
   ═══════════════════════════════════════════════════════ */
.demand-summary {
  padding: 16px;
  background: linear-gradient(135deg, #1a1a3e 0%, #1e1e38 100%);
  border: 1px solid #2a2a4a;
  border-radius: 14px;
  margin-bottom: 16px;
}
.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.summary-title { color: #ffffff; font-size: 15px; font-weight: 600; }
.summary-period { color: #666; font-size: 12px; }
.summary-stats {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.summary-stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.summary-stat-value { color: #ffffff; font-size: 22px; font-weight: 700; line-height: 1; }
.summary-stat-label { color: #9ca3af; font-size: 11px; white-space: nowrap; }
.summary-stat-change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 4px;
}
.summary-stat-change.positive { color: #00d48a; background: rgba(0, 212, 138, 0.1); }
.summary-stat-change.negative { color: #ff4458; background: rgba(255, 68, 88, 0.1); }
.summary-stat-change.neutral { color: #9ca3af; }
.summary-stat-divider {
  width: 1px;
  height: 36px;
  background: #2a2a4a;
  flex-shrink: 0;
  align-self: center;
}
.summary-hottest {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(42, 42, 74, 0.5);
}
.hottest-icon { font-size: 16px; flex-shrink: 0; }
.hottest-text { color: #9ca3af; font-size: 13px; line-height: 1.3; }
.hottest-text strong { color: #ffffff; }

/* ═══════════════════════════════════════════════════════
   Empty State Card (No Listings)
   ═══════════════════════════════════════════════════════ */
.empty-state-card {
  margin: 24px 0;
  padding: 40px 24px;
  background: #1a1a2e;
  border: 1px dashed #2a2a4a;
  border-radius: 14px;
  text-align: center;
}
.empty-state-icon { font-size: 40px; margin-bottom: 16px; }
.empty-state-title { color: #ffffff; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.empty-state-text {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.empty-state-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
}
.empty-state-btn:hover { background: #5558e6; }

/* ═══════════════════════════════════════════════════════
   Photo Carousel Indicators (Instagram-style bars)
   ═══════════════════════════════════════════════════════ */
.carousel-indicators {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 3px;
  z-index: 3;
  pointer-events: none;
}
.indicator-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: background 0.2s;
}
.indicator-bar.active {
  background: rgba(255, 255, 255, 0.9);
}
.photo-counter {
  position: absolute;
  bottom: 80px;
  right: 10px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  z-index: 3;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   Slider Number Input
   ═══════════════════════════════════════════════════════ */
.slider-number-input {
  width: 60px;
  padding: 4px 6px;
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-align: right;
  outline: none;
  -moz-appearance: textfield;
}
.slider-number-input::-webkit-inner-spin-button,
.slider-number-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.slider-number-input:focus {
  border-color: #6366f1;
}
.styled-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #2a2a4a;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.styled-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  border: 3px solid #0f0f1a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.styled-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  border: 3px solid #0f0f1a;
}

/* ═══════════════════════════════════════════════════════
   Property Map
   ═══════════════════════════════════════════════════════ */
.property-map iframe {
  width: 100%;
  border-radius: 10px;
}

/* ═══════════════════════════════════════════════════════
   Listing Attribution & Disclaimers
   ═══════════════════════════════════════════════════════ */
.listing-attribution {
  padding: 16px;
  margin-top: 20px;
  border-top: 1px solid var(--border, #2a2a4a);
}

.attribution-text {
  color: #666;
  font-size: 11px;
  line-height: 1.5;
}

.attribution-logos {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.equal-housing-text {
  color: #666;
  font-size: 10px;
  font-weight: 600;
}

.demand-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 10px;
}

.disclaimer-icon {
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.disclaimer-text {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.5;
}

/* Equal Housing Opportunity */
.equal-housing-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  margin: 20px 0 8px;
  border-top: 1px solid var(--border, #2a2a4a);
}

.eho-icon {
  font-size: 20px;
  color: #666;
  flex-shrink: 0;
}

.eho-text {
  color: #666;
  font-size: 11px;
  line-height: 1.5;
}

/* Privacy footer */
.privacy-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px 16px 24px;
}

.privacy-link {
  color: #6366f1;
  font-size: 11px;
  text-decoration: none;
}

.privacy-link:hover {
  text-decoration: underline;
}

.privacy-separator {
  color: #666;
  font-size: 11px;
}
