:root {
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --brand: #5B4FE8;
  --brand-dark: #4A3FD4;
  --brand-light: #EEF0FF;
  --brand-glow: rgba(91,79,232,0.25);
  --bg: #F7F7FB;
  --surface: #FFFFFF;
  --surface-2: #F0F0F8;
  --border: #E8E8F0;
  --text-1: #1A1A2E;
  --text-2: #5A5A7A;
  --text-3: #9A9AB0;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --cat-property: #5B4FE8;
  --cat-car: #10B981;
  --cat-phone: #3B82F6;
  --cat-rent: #F59E0B;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-brand: 0 4px 20px rgba(91,79,232,0.3);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 999px;
}

[data-theme="dark"] {
  --bg: #0F0F1A;
  --surface: #1A1A2E;
  --surface-2: #242438;
  --border: #2E2E48;
  --text-1: #F0F0FF;
  --text-2: #9898C0;
  --text-3: #585878;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 80px;
  transition: background 0.3s ease, color 0.3s ease;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--brand);
  letter-spacing: -0.5px;
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-icon-btn:hover {
  background: var(--brand-light);
  color: var(--brand);
}

.nav-wallet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-light);
  color: var(--brand);
  padding: 8px 12px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 4px 12px;
  border-radius: var(--r-md);
  transition: color 0.2s ease, background 0.2s ease;
  flex: 1;
  text-align: center;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--brand);
}

.bottom-nav-post {
  width: 52px;
  height: 52px;
  background: var(--brand);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -16px;
  box-shadow: var(--shadow-brand);
  transition: transform 0.2s ease, background 0.2s ease;
}

.bottom-nav-post:hover {
  background: var(--brand-dark);
  transform: scale(1.05);
}

#app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
  font-family: var(--font-heading);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.header-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  position: relative;
}

.header-leads-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--brand-light);
  color: var(--brand);
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #EF4444;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-popup {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 999;
  animation: slideDown 0.3s ease;
}

.notif-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  min-width: 260px;
  max-width: 320px;
}

.notif-pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-pill-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-pill-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
}

.notif-pill-body {
  font-size: 12px;
  color: var(--text-2);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.settings-sheet {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.settings-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.settings-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 16px 20px 40px;
}

.settings-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.settings-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-1);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.settings-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-1);
}

.settings-row.danger .settings-row-left {
  color: #EF4444;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle-switch input { display: none; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: 0.3s;
}

.toggle-slider:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: 0.3s;
}

input:checked + .toggle-slider {
  background: var(--brand);
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.location-input-wrap {
  position: relative;
}

.location-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 50;
  max-height: 240px;
  overflow-y: auto;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.location-item:hover {
  background: var(--surface-2);
}

.loc-city {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  display: block;
}

.loc-state {
  font-size: 12px;
  color: var(--text-3);
}

.matched-section {
  margin-top: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.matched-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-1);
}

.matched-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.matched-card {
  min-width: 180px;
  background: var(--surface-2);
  border-radius: 16px;
  padding: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.matched-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.matched-card .matched-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.matched-card .matched-price {
  font-size: 13px;
  color: var(--text-secondary);
}

.listing-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 16px;
}

.listing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-image-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.listing-card:hover .card-image {
  transform: scale(1.03);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cat-property { background: var(--cat-property); }
.cat-car { background: var(--cat-car); }
.cat-phone { background: var(--cat-phone); }
.cat-rent { background: var(--cat-rent); }

.card-save {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.card-save:hover {
  transform: scale(1.05);
}

.card-save.saved i {
  fill: #EF4444;
  stroke: #EF4444;
}

.card-featured {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #F59E0B;
  color: white;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-2);
}

.card-btn {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.card-btn:hover {
  background: var(--brand);
  color: white;
}

/* Contact & action buttons (details page) */
.phone-display {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-1);
  margin: 10px 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: #F3F4F6;
  color: var(--text-1);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.action-btn i { width: 18px; height: 18px; }

.action-btn.call-btn {
  background: linear-gradient(90deg, rgba(6,182,212,0.06), rgba(16,185,129,0.06));
  border: 1px solid rgba(16,185,129,0.12);
  color: var(--success);
}

.action-btn.whatsapp-btn {
  background: linear-gradient(90deg, rgba(37,211,102,0.06), rgba(37,211,102,0.04));
  border: 1px solid rgba(37,211,102,0.12);
  color: #16A34A;
}

.action-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.bottom-btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.bottom-btn.call-btn { background: var(--success); color: white; }
.bottom-btn.whatsapp-btn { background: #25D366; color: white; }


.skeleton-image,
.skeleton-line {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-image {
  height: 190px;
  border-radius: var(--r-xl);
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  margin-bottom: 10px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.btn-primary {
  background: var(--brand);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(91,79,232,0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background: var(--brand-light);
}

.btn-danger {
  background: var(--danger);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--text-1);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(91,79,232,0.12);
}

.input::placeholder {
  color: var(--text-3);
}

.input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
  white-space: nowrap;
  font-family: var(--font-body);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-success i { stroke: var(--success); }
.toast-error i { stroke: var(--danger); }
.toast-warning i { stroke: var(--warning); }
.toast-info i { stroke: var(--info); }
    /* INDEX PAGE - Landing cards */
    .cards-index-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      padding: 0 16px;
    }
    .card-index {
      background: var(--surface);
      border-radius: var(--r-lg);
      border: 1px solid var(--border);
      overflow: hidden;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: var(--shadow-sm);
    }
    .card-index:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }
    .card-index-image {
      position: relative;
      height: 160px;
      overflow: hidden;
    }
    .card-index-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }
    .card-index:hover img {
      transform: scale(1.04);
    }
    .card-index-body {
      padding: 10px;
    }
    .card-index-title {
      font-family: var(--font-heading);
      font-size: 13px;
      font-weight: 700;
      color: var(--text-1);
      margin-bottom: 3px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .card-index-price {
      font-family: var(--font-heading);
      font-size: 15px;
      font-weight: 800;
      color: var(--brand);
      margin-bottom: 6px;
    }
    .card-index-meta {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      color: var(--text-3);
    }
    .card-index-meta span {
      display: flex;
      align-items: center;
      gap: 3px;
    }
    .card-index:nth-last-child(-n+2) {
      position: relative;
    }
    .card-index:nth-last-child(-n+2)::after {
      content: 'Login to see more';
      position: absolute;
      inset: 0;
      background: rgba(255,255,255,0.7);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 700;
      color: var(--brand);
      font-family: var(--font-heading);
      pointer-events: none;
    }
    [data-theme="dark"] .card-index:nth-last-child(-n+2)::after {
      background: rgba(15,15,26,0.7);
    }
    .index-listings-footer {
      display: flex;
      justify-content: center;
      padding: 16px;
    }

    /* HOME PAGE - Featured, Latest, Budget */
    .featured-scroll,
    .budget-scroll {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      padding: 4px 16px 12px;
      scrollbar-width: none;
    }
    .featured-scroll::-webkit-scrollbar,
    .budget-scroll::-webkit-scrollbar {
      display: none;
    }
    .card-featured-home {
      min-width: 220px;
      background: var(--surface);
      border-radius: var(--r-xl);
      border: 1px solid var(--border);
      overflow: hidden;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: var(--shadow-sm);
      flex-shrink: 0;
    }
    .card-featured-home:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }
    .card-featured-image {
      position: relative;
      height: 160px;
      overflow: hidden;
    }
    .card-featured-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .card-featured-badge {
      position: absolute;
      bottom: 8px;
      left: 8px;
      background: #F59E0B;
      color: white;
      padding: 3px 8px;
      border-radius: var(--r-full);
      font-size: 10px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 3px;
    }
    .card-featured-body {
      padding: 12px;
    }
    .card-featured-title {
      font-family: var(--font-heading);
      font-size: 13px;
      font-weight: 700;
      color: var(--text-1);
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .card-featured-price {
      font-family: var(--font-heading);
      font-size: 16px;
      font-weight: 800;
      color: var(--brand);
      margin-bottom: 4px;
    }
    .card-featured-city {
      font-size: 11px;
      color: var(--text-3);
      display: flex;
      align-items: center;
      gap: 3px;
    }

    .card-latest {
      background: var(--surface);
      border-radius: var(--r-xl);
      border: 1px solid var(--border);
      overflow: hidden;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: var(--shadow-sm);
      margin-bottom: 12px;
    }
    .card-latest:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }
    .card-latest-image {
      position: relative;
      height: 190px;
      overflow: hidden;
    }
    .card-latest-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }
    .card-latest:hover .card-latest-image img {
      transform: scale(1.03);
    }
    .card-latest-body {
      padding: 14px;
    }
    .card-latest-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 12px;
    }
    .card-latest-title {
      font-family: var(--font-heading);
      font-size: 15px;
      font-weight: 700;
      color: var(--text-1);
      margin-bottom: 4px;
    }
    .card-latest-price {
      font-family: var(--font-heading);
      font-size: 18px;
      font-weight: 800;
      color: var(--brand);
    }
    .card-latest-meta-right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 4px;
      font-size: 11px;
      color: var(--text-3);
      white-space: nowrap;
    }
    .card-latest-meta-right span {
      display: flex;
      align-items: center;
      gap: 3px;
    }
    .card-latest-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .card-latest-city {
      font-size: 12px;
      color: var(--text-2);
      display: flex;
      align-items: center;
      gap: 3px;
    }
    .card-btn-sm {
      background: var(--brand);
      color: white;
      border: none;
      padding: 8px 14px;
      border-radius: var(--r-md);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-family: var(--font-heading);
      transition: all 0.2s ease;
    }
    .card-btn-sm:hover {
      background: var(--brand-dark);
    }

    .card-budget {
      min-width: 180px;
      background: var(--surface);
      border-radius: var(--r-lg);
      border: 1px solid var(--border);
      overflow: hidden;
      cursor: pointer;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }
    .card-budget:hover {
      transform: translateY(-2px);
    }
    .card-budget-image {
      position: relative;
      height: 130px;
      overflow: hidden;
    }
    .card-budget-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .card-budget-tag {
      position: absolute;
      bottom: 8px;
      left: 8px;
      background: var(--success);
      color: white;
      padding: 2px 7px;
      border-radius: var(--r-full);
      font-size: 10px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 3px;
    }
    .card-budget-body {
      padding: 10px;
    }
    .card-budget-title {
      font-family: var(--font-heading);
      font-size: 12px;
      font-weight: 700;
      color: var(--text-1);
      margin-bottom: 3px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .card-budget-price {
      font-family: var(--font-heading);
      font-size: 14px;
      font-weight: 800;
      color: var(--success);
      margin-bottom: 3px;
    }
    .card-budget-city {
      font-size: 10px;
      color: var(--text-3);
      display: flex;
      align-items: center;
      gap: 2px;
    }

    /* LISTINGS PAGE - Browse all */
    .listings,
    .listings-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
      padding: 12px 16px 80px;
    }
    @media (min-width: 640px) {
      .listings,
      .listings-grid {
        grid-template-columns: 1fr 1fr;
      }
    }
    .card-listings {
      background: var(--surface);
      border-radius: var(--r-xl);
      border: 1px solid var(--border);
      overflow: hidden;
      cursor: pointer;
      transition: all 0.2s ease;
      box-shadow: var(--shadow-sm);
    }
    .card-listings:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }
    .card-listings-image {
      position: relative;
      height: 200px;
      overflow: hidden;
    }
    .card-listings-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }
    .card-listings:hover .card-listings-image img {
      transform: scale(1.03);
    }
    .card-listings-body {
      padding: 14px;
    }
    .card-listings-title {
      font-family: var(--font-heading);
      font-size: 15px;
      font-weight: 700;
      color: var(--text-1);
      margin-bottom: 4px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .card-listings-price {
      font-family: var(--font-heading);
      font-size: 20px;
      font-weight: 800;
      color: var(--brand);
      margin-bottom: 10px;
    }
    .card-listings-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 12px;
    }
    .card-listings-meta span {
      display: flex;
      align-items: center;
      gap: 3px;
      font-size: 12px;
      color: var(--text-2);
      background: var(--surface-2);
      padding: 3px 8px;
      border-radius: var(--r-full);
    }
    .card-listings-meta span i {
      stroke: var(--text-3);
    }

    .results-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 16px;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
    }
    .results-count {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-2);
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .sort-select,
    #sortBy {
      font-size: 13px;
      font-weight: 600;
      color: var(--brand);
      background: var(--brand-light);
      border: none;
      padding: 5px 10px;
      border-radius: var(--r-full);
      cursor: pointer;
      font-family: var(--font-body);
      outline: none;
    }

    .list-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 16px;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      gap: 12px;
      flex-wrap: wrap;
    }
    .results-count,
    .result-count {
      font-size: 13px;
      font-weight: 600;
      color: var(--text-2);
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .no-results,
    .empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 40px 20px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r-xl);
      margin: 16px;
      text-align: center;
      color: var(--text-2);
    }
    .no-results h3,
    .empty-title {
      font-family: var(--font-heading);
      font-size: 18px;
      font-weight: 700;
      color: var(--text-1);
    }
    .no-results p,
    .empty-subtitle {
      font-size: 14px;
      color: var(--text-3);
    }
    .empty-icon {
      width: 64px;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface-2);
      border-radius: 50%;
      color: var(--brand);
    }
    .empty-title {
      font-family: var(--font-heading);
      font-size: 18px;
      font-weight: 700;
      color: var(--text-1);
    }
    .empty-subtitle {
      font-size: 14px;
      color: var(--text-3);
    }