/* ================================================================
   STR Scouter — Product UI
   ================================================================ */

:root {
  --bg:         #f8f9fb;
  --surface:    #ffffff;
  --border:     #e5e7eb;
  --text:       #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --accent:     #2563eb;
  --accent-light: #eff6ff;
  --green:      #059669;
  --green-light:#ecfdf5;
  --amber:      #d97706;
  --amber-light:#fffbeb;
  --radius:     10px;
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.04);
  --shadow:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg:  0 4px 16px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ===== TOP NAV ===== */
.top-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.brand-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-badge {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* ===== FILTER HELPERS ===== */
.filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-row .filter-input { flex: 1; }
.filter-dash {
  color: var(--text-muted);
  font-size: 14px;
}
.filter-count {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}
.filter-select-all {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.filter-select-all:hover { text-decoration: underline; }

/* ===== STATE PICKER ===== */
.state-expand-btn {
  width: 100%;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s;
}
.state-expand-btn:hover { border-color: var(--accent); color: var(--accent); }

.state-picker-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.state-picker-panel {
  background: var(--surface);
  border-radius: 14px;
  padding: 24px;
  width: 540px;
  max-width: 95vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.state-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.state-picker-header h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}
.state-picker-actions {
  display: flex;
  gap: 12px;
}
.state-picker-actions button {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.state-picker-actions button:hover { text-decoration: underline; }

.state-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.sp-btn {
  padding: 10px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.1s, border-color 0.1s;
}
.sp-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}
.sp-btn.sp-active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.state-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.state-picker-footer span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.state-picker-done {
  padding: 10px 32px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.state-picker-done:hover { background: #1d4ed8; }

/* ===== ACTIVE FILTER CHIPS ===== */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}
.chip-x {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  margin-left: 2px;
  opacity: 0.6;
}
.chip-x:hover { opacity: 1; }
.chip-clear {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
}
.chip-clear:hover { color: #dc2626; }

/* ===== FILTER PANEL ===== */
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}
.filter-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.filter-group {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 3px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.filter-check input { accent-color: var(--accent); }
.filter-input, .filter-select {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s;
}
.filter-input:focus, .filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.toggle-switch input { accent-color: var(--accent); }
.toggle-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* ===== RESULTS BAR ===== */
.results-bar {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

/* ===== LISTINGS GRID ===== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
@media (min-width: 1400px) {
  .listings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== LISTING CARD ===== */
.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.listing-top {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px #fbbf24, var(--shadow);
}
.listing-strong {
  border-color: #34d399;
}

/* Photo */
.listing-photo {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f3f4f6;
  overflow: hidden;
}
.listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.listing-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

/* Score badge */
.score-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: white;
  backdrop-filter: blur(8px);
}
.score-top    { background: rgba(217, 119, 6, 0.9); }
.score-strong { background: rgba(5, 150, 105, 0.9); }
.score-normal { background: rgba(107, 114, 128, 0.75); }

/* Tier badge */
.tier-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
}
.tier-badge-top {
  background: rgba(217, 119, 6, 0.9);
  color: white;
}
.tier-badge-strong {
  background: rgba(5, 150, 105, 0.85);
  color: white;
}

/* Body */
.listing-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.listing-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.listing-address {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stats */
.listing-stats {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.listing-stats span {
  display: flex;
  align-items: center;
}

/* Tags */
.listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f3f4f6;
  color: var(--text-secondary);
}
.tag-type { background: var(--accent-light); color: var(--accent); }
.tag-no-hoa { background: var(--green-light); color: var(--green); }
.tag-hoa { background: #fef2f2; color: #dc2626; }

/* Description preview */
.listing-desc {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
}

/* CTA button */
.listing-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--text);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
  align-self: flex-start;
}
.listing-cta:hover {
  background: #374151;
  color: white;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon {
  color: #d1d5db;
  margin-bottom: 16px;
}
.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.empty-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== SPLIT VIEW (Zillow-style) ===== */
.split-view {
  display: flex;
  gap: 16px;
  height: calc(100vh - 120px);
}
.split-listings {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
}
.split-map {
  width: 45%;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 120px);
}
.split-map #map {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* ===== PAGINATION ===== */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.page-btn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.page-btn-active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  cursor: default;
}
.page-btn-active:hover { background: var(--accent); color: white; }
.page-dots {
  font-size: 14px;
  color: var(--text-muted);
  padding: 0 4px;
}
.page-info {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 12px;
}

/* ===== SCROLLBAR ===== */
.filter-panel::-webkit-scrollbar { width: 4px; }
.filter-panel::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

/* ================================================================
   MARKETING PAGES
   ================================================================ */

/* ===== NAV LINKS ===== */
.nav-link-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link-item:hover { color: var(--accent); }

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta-btn:hover { background: #1d4ed8; color: white; }

/* ===== HERO ===== */
.hero-section {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #f0f5ff 0%, var(--bg) 100%);
}
.hero-section .container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-content { text-align: center; }
.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.08;
  color: var(--text);
  margin: 0 0 20px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 auto 32px;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== CTA BUTTONS ===== */
.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.btn-primary-cta:hover { background: #1d4ed8; color: white; }
.btn-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}
.btn-secondary-cta:hover { background: #f9fafb; color: var(--text); }

/* ===== SECTIONS ===== */
.section-light { padding: 72px 0; background: var(--bg); }
.section-white { padding: 72px 0; background: var(--surface); }
.section-light .container,
.section-white .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header { margin-bottom: 40px; }
.section-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 8px;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  text-align: center;
  padding: 24px 16px;
}
.step-number {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  background: var(--accent);
  color: white;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.step-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}
.step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 64px 0;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}
.cta-section .container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}
.cta-title {
  font-size: 28px;
  font-weight: 900;
  color: white;
  margin: 0 0 10px;
}
.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 28px;
}
.btn-cta-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: white;
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.btn-cta-white:hover { color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer {
  padding: 24px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.site-footer .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-brand { font-size: 13px; color: var(--text-muted); }
.footer-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-link:hover { color: var(--accent); }

/* ===== PRICING PAGE ===== */
.pricing-hero {
  padding: 60px 0 20px;
  background: linear-gradient(180deg, #f0f5ff 0%, var(--bg) 100%);
}
.pricing-hero .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
.pricing-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 10px;
}
.pricing-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
}
.pricing-cards-section {
  padding: 48px 0 72px;
  background: var(--bg);
}
.pricing-cards-section .container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.pricing-card-featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.12);
}
.pricing-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 16px;
  border-radius: 20px;
}
.pricing-plan-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.pricing-plan-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.pricing-card-price {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
}
.pricing-dollar { font-size: 20px; font-weight: 800; color: var(--text); }
.pricing-amount { font-size: 48px; font-weight: 900; color: var(--text); line-height: 1; }
.pricing-cents { font-size: 20px; font-weight: 800; color: var(--text); }
.pricing-period { font-size: 15px; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid #f3f4f6;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-check { flex-shrink: 0; }
.pricing-cta {
  display: block;
  text-align: center;
  padding: 12px 24px;
  background: var(--text);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.pricing-cta:hover { background: #374151; color: white; }
.pricing-cta-featured { background: var(--accent); }
.pricing-cta-featured:hover { background: #1d4ed8; color: white; }

/* ===== FAQ ===== */
.faq-list {
  max-width: 600px;
  margin: 0 auto;
}
.faq-item {
  text-align: left;
  margin-bottom: 24px;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.faq-a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ===== AUTH PAGES ===== */
.auth-section {
  padding: 80px 0;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 57px);
  align-items: flex-start;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 36px;
  width: 400px;
  max-width: 95vw;
  box-shadow: var(--shadow);
}
.auth-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 6px;
}
.auth-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  margin-top: 14px;
}
.auth-label:first-of-type { margin-top: 0; }
.auth-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.auth-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.auth-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.auth-btn:hover { background: #1d4ed8; }
.auth-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-footer a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* ===== RESPONSIVE — MARKETING ===== */
@media (max-width: 991px) {
  .steps-grid { grid-template-columns: 1fr; gap: 8px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-title { font-size: 28px; }
}
@media (max-width: 576px) {
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .hero-ctas { flex-direction: column; }
  .btn-primary-cta, .btn-secondary-cta { width: 100%; justify-content: center; }
  .section-title { font-size: 24px; }
  .cta-title { font-size: 24px; }
  .nav-link-item { display: none; }
}

/* ================================================================
   RESPONSIVE — DASHBOARD
   ================================================================ */
/* Desktop: hide toggle icon */
.filter-toggle-icon { display: none; }

@media (max-width: 991px) {
  .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .filter-panel {
    position: static;
    max-height: none;
  }
  .state-picker-panel { width: 95vw; }
  .state-picker-grid { grid-template-columns: repeat(4, 1fr); }

  /* Collapsible filters on mobile/tablet */
  .filter-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
  }
  .filter-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 10px;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 6px;
  }
  .filters-collapsed { display: none !important; }
  .filter-panel:has(.filters-collapsed) .filter-header { margin-bottom: 0; }
}
@media (max-width: 576px) {
  /* Nav */
  .top-nav { padding: 8px 0; }
  .brand-tagline { display: none; }
  .nav-link-item { display: none; }
  .nav-cta-btn { padding: 6px 12px; font-size: 12px; }

  /* Dashboard layout */
  .container-fluid { padding-left: 12px !important; padding-right: 12px !important; }
  .listings-grid { grid-template-columns: 1fr; gap: 12px; }
  .filter-panel { padding: 14px; }
  .split-view { flex-direction: column; height: auto; }
  .split-listings { overflow-y: visible; }
  .split-map { width: 100%; height: 50vh; position: static; margin-bottom: 16px; order: -1; }

  /* State picker */
  .state-picker-panel { padding: 16px; border-radius: 10px; }
  .state-picker-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .sp-btn { padding: 8px 2px; font-size: 13px; }
  .state-picker-header h3 { font-size: 16px; }

  /* Filter chips */
  .active-filters { padding: 8px 10px; gap: 4px; }
  .filter-chip { font-size: 11px; padding: 2px 8px; }

  /* Listing cards */
  .listing-photo { height: 180px; }
  .listing-body { padding: 12px; }
  .listing-price { font-size: 20px; }
  .listing-address { font-size: 12px; }
  .listing-desc { font-size: 11px; }

  /* Pagination */
  .pagination-bar { gap: 4px; }
  .page-btn { min-width: 32px; height: 32px; font-size: 12px; }
  .page-info { display: none; }
}
