/* ============================================
   PROPERTY LISTING - EXACT PRICING PAGE DESIGN
   Complete rewrite to match pricing page UI exactly
   ============================================ */

:root {
  /* PRIMARY: Premium Blue - Trust, Technology, Stability */
  --primary-950: 15 23 42;     /* #0f172a */
  --primary-900: 30 41 59;     /* #1e293b */
  --primary-800: 30 58 138;    /* #1e3a8a */
  --primary-700: 30 64 175;    /* #1e40af */
  --primary-600: 37 99 235;    /* #2563eb */
  --primary-500: 59 130 246;   /* #3b82f6 */
  
  /* ACCENT: Champagne Gold - Luxury, Success */
  --gold-900: 124 92 46;
  --gold-800: 161 119 60;
  --gold-700: 184 134 11;
  --gold-600: 201 154 30;
  --gold-500: 212 175 55;
  --gold-400: 229 200 109;
  --gold-300: 244 229 178;
  
  /* SECONDARY: Emerald - Growth, Prosperity */
  --emerald-900: 6 78 59;
  --emerald-800: 6 95 70;
  --emerald-700: 4 120 87;
  --emerald-600: 5 150 105;
  --emerald-500: 16 185 129;
  --emerald-400: 52 211 153;
  --emerald-300: 110 231 183;
  
  /* NEUTRALS: Warm Grays */
  --gray-900: 31 41 55;
  --gray-800: 55 65 81;
  --gray-700: 75 85 99;
  --gray-600: 107 114 128;
  --gray-500: 156 163 175;
  --gray-400: 209 213 219;
  --gray-300: 229 231 235;
  
  /* Legacy support */
  --brand: rgb(var(--gold-500));
  --brand-2: rgb(var(--emerald-500));
  --ink: rgb(var(--gray-300));
  --muted: rgb(var(--gray-500));
  --ring: rgba(212, 175, 55, 0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ============================================
   MAIN WRAPPER - Exact from pricing page
   ============================================ */
.pricing-page-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, rgb(var(--primary-950)) 0%, rgb(var(--primary-900)) 50%, rgb(var(--primary-800)) 100%);
  position: relative;
  overflow: hidden;
}

/* ============================================
   ANIMATED BACKGROUND BLOBS - Exact from pricing page
   ============================================ */
.bg-blobs-container {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.bg-blob-gold {
  position: absolute;
  top: 80px;
  left: 40px;
  width: 384px;
  height: 384px;
  background: rgb(var(--gold-500));
  border-radius: 50%;
  filter: blur(96px);
  -webkit-filter: blur(96px);
  animation: pulse-slow 6s ease-in-out infinite;
  opacity: 0.6;
}

.bg-blob-emerald {
  position: absolute;
  bottom: 80px;
  right: 40px;
  width: 600px;
  height: 600px;
  background: rgb(var(--emerald-500));
  border-radius: 50%;
  filter: blur(96px);
  -webkit-filter: blur(96px);
  animation: pulse-slow 6s ease-in-out infinite;
  animation-delay: 1s;
  opacity: 0.6;
}

@keyframes pulse-slow {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.6; 
  }
  50% { 
    transform: scale(1.06); 
    opacity: 1; 
  }
}

/* ============================================
   CONTENT WRAPPER - relative z-10
   ============================================ */
.content-wrapper {
  position: relative;
  z-index: 10;
}

/* ============================================
   HERO SECTION - Compact professional size
   ============================================ */
.hero-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px 32px;
}

@media (min-width: 640px) {
  .hero-section {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 56px;
    padding-bottom: 40px;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 64px;
    padding-bottom: 48px;
  }
}

.hero-content {
  text-align: center;
  max-width: 896px;
  margin: 0 auto;
}

/* Badge - Compact */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: rgb(var(--gold-500));
  border-radius: 50%;
  animation: pulse-slow 2s ease-in-out infinite;
}

.hero-badge-text {
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--gold-300));
}

/* Headline - Professional size */
.hero-title {
  font-family: 'Playfair Display', 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: white;
  margin: 0 0 0 0;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }
}

/* ============================================
   MAIN CONTENT - Two Column Layout
   ============================================ */
.main-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px 24px 16px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ============================================
   FILTER SIDEBAR - Glass Card (Exact from pricing)
   ============================================ */
.filter-sidebar {
  flex: 0 0 400px;
  max-width: 400px;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  margin-left: 0;
  /* Glass card - Exact from pricing page */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: all 0.3s ease;
}

.filter-sidebar:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
  .filter-sidebar {
    position: static;
    max-width: 100%;
    width: 100%;
    max-height: none;
  }
}

/* Filter Pills */
.filter-pill-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-pill {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  color: rgb(var(--gray-300));
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-pill.active {
  background: rgb(var(--gold-500));
  color: rgb(var(--primary-950));
  border-color: transparent;
  box-shadow: 0 4px 16px 0 rgba(212, 175, 55, 0.3);
}

/* Top Row */
.top-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.search-box {
  flex: 1;
}

.search-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.search-hint {
  display: block;
  font-size: 12px;
  color: rgb(var(--gray-500));
}

.price-box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Filter Grid */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.filter-grid label {
  font-weight: 600;
  font-size: 13px;
  color: rgb(var(--gray-400));
  display: block;
  margin-bottom: 8px;
}

/* Inputs and Selects - Glassmorphic */
.input, select, textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  outline: none;
  width: 100%;
  font-size: 14px;
  color: rgb(var(--gray-300));
  transition: all 0.2s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.input:focus, select:focus, textarea:focus {
  border-color: rgb(var(--gold-500));
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.input:hover, select:hover, textarea:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

select[multiple] {
  min-height: 100px;
}

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

.metro-control {
  gap: 6px;
  align-items: center;
}

.metro-label {
  font-size: 12px;
  color: rgb(var(--gray-500));
}

.metro-input {
  width: 72px;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* ============================================
   LISTINGS CONTENT
   ============================================ */
.listings-content {
  flex: 1;
  min-width: 0;
}

.filter-toolbar {
  margin: 10px 0 16px;
}

.toolbar-row {
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.stats-row {
  margin: 12px 0 16px;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.results-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

@media (max-width: 640px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PROPERTY CARDS - Glass Card (Exact from pricing)
   ============================================ */
.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: all 0.5s ease;
  position: relative;
}

/* Shimmer Effect on Hover - Exact from pricing page */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 1s ease-in-out, opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 48px 0 rgba(31, 38, 135, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-8px);
}

.card:hover::before {
  opacity: 1;
  transform: translateX(100%);
}

.card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-img .ribbon,
.card-img .score {
  position: absolute;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.card-img .ribbon {
  left: 12px;
  top: 12px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: rgb(var(--gold-300));
}

.card-img .score {
  right: 12px;
  top: 12px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: rgb(var(--emerald-300));
}

.card-body {
  padding: 20px;
}

.price-loud {
  font-weight: 800;
  font-size: 24px;
  color: rgb(var(--gold-400));
  margin-bottom: 8px;
}

.loc-loud {
  font-weight: 700;
  font-size: 16px;
  color: rgb(var(--gray-300));
  margin-bottom: 12px;
}

/* ============================================
   BUTTONS - Gold gradient (Exact from pricing)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.btn:not(.secondary):not(.ghost) {
  background: linear-gradient(135deg, rgb(var(--gold-600)) 0%, rgb(var(--gold-500)) 100%);
  color: rgb(var(--primary-950));
  box-shadow: 0 4px 16px 0 rgba(212, 175, 55, 0.3);
}

.btn:not(.secondary):not(.ghost):hover {
  box-shadow: 0 8px 24px 0 rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: rgb(var(--gray-300));
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn.ghost {
  background: transparent;
  color: rgb(var(--gray-300));
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   PRICE SLIDER
   ============================================ */
.price-range {
  --thumb-size: 20px;
  --track-h: 8px;
  position: relative;
  height: 32px;
  margin-top: 8px;
}

.price-range .slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: var(--track-h);
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.price-range .range-progress {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, rgb(var(--gold-500)) 0%, rgb(var(--emerald-500)) 100%);
  border-radius: 999px;
}

.price-range input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: white;
  border: 3px solid rgb(var(--gold-500));
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
  cursor: pointer;
}

.price-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: var(--thumb-size);
  height: var(--thumb-size);
  border-radius: 50%;
  background: white;
  border: 3px solid rgb(var(--gold-500));
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
  cursor: pointer;
}

.price-range input[type="range"]::-moz-range-track {
  background: transparent;
}

.price-values {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 8px;
  font-weight: 500;
  color: rgb(var(--gray-300));
  font-size: 14px;
}

/* ============================================
   TAGS & CHIPS - Glassmorphic
   ============================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  font-size: 12px;
  color: rgb(var(--gray-300));
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.chip, .chip-rem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  font-size: 12px;
  color: rgb(var(--gray-300));
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.chip:hover, .chip-rem:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 24px 24px;
  text-align: center;
  color: rgb(var(--gray-500));
  font-size: 13px;
  position: relative;
  z-index: 10;
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden {
  display: none;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}

.pager .page {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: rgb(var(--gray-300));
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.pager .page:hover {
  background: rgba(255, 255, 255, 0.15);
}

.pager .active {
  background: linear-gradient(135deg, rgb(var(--gold-600)) 0%, rgb(var(--gold-500)) 100%);
  color: rgb(var(--primary-950));
  border-color: transparent;
}

.result-notice {
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: rgb(var(--gold-300));
  font-weight: 600;
  backdrop-filter: blur(8px);
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pill-floating {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pill-floating:hover {
  background: rgba(15, 23, 42, 1);
  transform: translateX(-50%) translateY(-2px);
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.skeleton-img {
  height: 200px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.skeleton-body {
  padding: 20px;
}

.skeleton-line {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 10px 0;
}

.skeleton-line.w50 { width: 50%; }
.skeleton-line.w70 { width: 70%; }
.skeleton-line.w30 { width: 30%; }

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

/* ============================================
   RESPONSIVE - Mobile (Comprehensive)
   ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
  .main-content {
    flex-direction: column;
    padding: 0 16px 16px 16px;
    gap: 16px;
  }

  .filter-sidebar {
    position: static;
    max-width: 100%;
    width: 100%;
    max-height: none;
    margin-left: 0;
    padding: 20px;
    border-radius: 20px;
  }

  .listings-content {
    width: 100%;
  }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
  /* Background blobs - smaller on mobile */
  .bg-blob-gold {
    width: 240px;
    height: 240px;
    top: 20px;
    left: 10px;
    filter: blur(60px);
    -webkit-filter: blur(60px);
    opacity: 0.4;
  }
  
  .bg-blob-emerald {
    width: 320px;
    height: 320px;
    bottom: 20px;
    right: 10px;
    filter: blur(60px);
    -webkit-filter: blur(60px);
    opacity: 0.4;
  }
  
  /* Hero section - compact mobile */
  .hero-section {
    padding: 32px 16px 24px;
    max-width: 100%;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-badge {
    padding: 5px 12px;
    margin-bottom: 12px;
    font-size: 12px;
  }

  .hero-badge-dot {
    width: 6px;
    height: 6px;
  }

  .hero-badge-text {
    font-size: 12px;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
  }
  
  /* Main content - mobile spacing */
  .main-content {
    padding: 0 12px 12px 12px;
    gap: 16px;
  }
  
  /* Filter sidebar - mobile optimized */
  .filter-sidebar {
    padding: 16px;
    border-radius: 16px;
  }

  .filter-pill-row {
    gap: 6px;
    margin-bottom: 16px;
  }

  .filter-pill {
    padding: 10px 0;
    font-size: 13px;
  }

  .top-row {
    gap: 14px;
    margin-bottom: 16px;
  }

  .search-input-wrapper {
    gap: 6px;
    margin-bottom: 4px;
  }

  .search-large {
    font-size: 14px;
    padding: 10px 12px;
  }

  .btn.secondary {
    padding: 10px 14px;
    font-size: 12px;
  }

  .search-hint {
    font-size: 11px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
  }

  .filter-grid label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .input, select, textarea {
    padding: 10px 12px;
    font-size: 14px;
  }

  .grid-2 {
    gap: 8px;
  }

  .metro-control {
    gap: 4px;
  }

  .metro-label {
    font-size: 11px;
  }

  .metro-input {
    width: 60px;
    padding: 8px;
  }

  .filter-actions {
    margin-top: 16px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Listings content - mobile */
  .listings-content {
    width: 100%;
  }

  .filter-toolbar {
    margin: 8px 0 12px;
  }

  .toolbar-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 6px;
  }

  .stats-row {
    margin: 8px 0 12px;
    gap: 6px;
  }

  .tag {
    padding: 5px 10px;
    font-size: 11px;
  }

  .chip, .chip-rem {
    padding: 5px 10px;
    font-size: 11px;
    gap: 4px;
  }

  /* Property cards - mobile */
  .results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    border-radius: 16px;
  }

  .card-img {
    height: 220px;
  }

  .card-body {
    padding: 16px;
  }

  .price-loud {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .loc-loud {
    font-size: 14px;
    margin-bottom: 10px;
  }

  /* Footer - mobile */
  .footer {
    padding: 32px 16px 20px;
    font-size: 12px;
  }

  /* Toast and floating elements - mobile */
  .toast {
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    bottom: 12px;
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .pill-floating {
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    bottom: 72px;
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Pager - mobile */
  .pager {
    gap: 6px;
    margin: 20px 0;
  }

  .pager .page {
    padding: 8px 12px;
    font-size: 13px;
  }

  .result-notice {
    margin: 10px 0;
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Small mobile - 480px and below */
@media (max-width: 480px) {
  /* Hero - extra small */
  .hero-section {
    padding: 24px 12px 20px;
  }

  .hero-badge {
    padding: 4px 10px;
    margin-bottom: 10px;
  }

  .hero-badge-text {
    font-size: 11px;
  }

  .hero-title {
    font-size: 24px;
  }
  
  /* Main content - extra small */
  .main-content {
    padding: 0 8px 8px 8px;
    gap: 12px;
  }
  
  /* Filter sidebar - extra small */
  .filter-sidebar {
    padding: 14px;
    border-radius: 12px;
  }

  .filter-pill-row {
    gap: 4px;
    margin-bottom: 12px;
  }

  .filter-pill {
    padding: 8px 0;
    font-size: 12px;
  }

  .top-row {
    gap: 12px;
    margin-bottom: 12px;
  }

  .search-large {
    padding: 9px 10px;
    font-size: 13px;
  }

  .btn.secondary {
    padding: 9px 12px;
    font-size: 11px;
  }

  .filter-grid {
    gap: 12px;
    margin-bottom: 12px;
  }

  .filter-grid label {
    font-size: 11px;
    margin-bottom: 5px;
  }

  .input, select, textarea {
    padding: 9px 10px;
    font-size: 13px;
  }

  .filter-actions {
    margin-top: 12px;
  }

  .btn {
    padding: 9px 14px;
    font-size: 12px;
  }

  /* Cards - extra small */
  .card-img {
    height: 200px;
  }

  .card-body {
    padding: 14px;
  }

  .price-loud {
    font-size: 18px;
  }

  .loc-loud {
    font-size: 13px;
  }

  /* Stats and toolbar - extra small */
  .filter-toolbar {
    margin: 6px 0 10px;
  }

  .stats-row {
    margin: 6px 0 10px;
  }

  .tag {
    padding: 4px 8px;
    font-size: 10px;
  }

  .chip, .chip-rem {
    padding: 4px 8px;
    font-size: 10px;
  }

  /* Footer - extra small */
  .footer {
    padding: 24px 12px 16px;
    font-size: 11px;
  }

  /* Toast - extra small */
  .toast {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 9px 14px;
    font-size: 12px;
  }
  
  .pill-floating {
    left: 8px;
    right: 8px;
    bottom: 64px;
    padding: 9px 14px;
    font-size: 12px;
  }
}

/* Touch-friendly adjustments for all mobile */
@media (max-width: 768px) {
  /* Ensure all interactive elements are at least 44x44px for touch */
  .btn, .filter-pill, .chip, .chip-rem, .tag, .pager .page {
    min-height: 44px;
    min-width: 44px;
  }

  /* Inputs should be easily tappable */
  .input, select, textarea {
    min-height: 44px;
  }

  /* Price slider thumbs - larger on mobile */
  .price-range {
    --thumb-size: 24px;
    height: 40px;
  }

  .price-range input[type="range"]::-webkit-slider-thumb,
  .price-range input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }
}
