﻿@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --primary-blue: var(--dg-primary,#2563eb);
  --primary-dark: #0f172a;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-strong: rgba(255, 255, 255, 0.98);
}

body {
  font-family: 'Manrope', sans-serif;
}

.premium-listing-page {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 100vh;
  padding: 16px 14px;
}

.page-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 25px 50px -12px rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  overflow: hidden;
}

.property-listing-card {
  overflow: hidden;
}

.property-layout {
  display: flex;
  flex-direction: column;
}

.property-image-section {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.property-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px 0 0 0;
  min-height: 160px;
  max-height: 328px;
  flex: 1;
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  inset: 0;
}

.property-image-container:hover .property-image {
  transform: scale(1.08);
}

.recent-badge,
.featured-badge,
.verified-badge,
.price-badge,
.feature-tag,
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.recent-badge,
.featured-badge,
.verified-badge {
  position: absolute;
  left: 16px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.16);
}

.featured-badge {
  top: 16px;
  z-index: 10;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.verified-badge {
  top: 56px;
  z-index: 10;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.recent-badge {
  position: static;
  display: inline-block;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.favorite-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.favorite-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.favorite-btn.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-color: transparent;
}

.property-details-section {
  padding: 10px 12px;
}

.property-header-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.property-header-row > div:first-child {
  min-width: 0;
  flex: 1;
}

.price-badge {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #3b82f6 0%, var(--dg-primary,#2563eb) 100%);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  white-space: nowrap;
}

.property-header-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.property-header-link:hover {
  opacity: 0.8;
}

.property-header-row h1 {
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.location-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: #475569;
  font-size: 0.72rem;
}

.location-row i {
  color: #3b82f6;
}

.location-link {
  color: #3b82f6;
  font-weight: 600;
  position: relative;
  text-decoration: none;
}

.location-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, var(--dg-primary,#2563eb));
  transition: width 0.3s ease;
}

.location-link:hover::after {
  width: 100%;
}

.property-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.info-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
}

.filter-pill,
.filter-action-btn {
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  color: #0f172a;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-pill.active,
.filter-pill:hover,
.filter-action-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-1px);
}

.filter-row {
  margin-bottom: 0;
}

/* Description Section */
.description-section {
  padding: 14px 16px;
  background: #fff;
  border-left: 3px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.description-section p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

/* Additional Filters */
.additional-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.af-result-count {
  font-size: 0.82rem;
  color: #6b7280;
}

.af-result-count strong {
  color: #111827;
  font-weight: 700;
}

.af-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.additional-filters .filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.additional-filters label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.filter-select {
  padding: 6px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.82rem;
  background: #f9fafb;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 130px;
  font-family: 'Manrope', sans-serif;
}

.filter-select:hover {
  border-color: #3b82f6;
  background: #fff;
}

.filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ── Premium Filters Drawer ─────────────────────────────────────────── */
.filter-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0);
  visibility: hidden;
  z-index: 2000;
  transition: background 0.35s ease, visibility 0s linear 0.35s;
}

.filter-modal-overlay.visible {
  background: rgba(15, 23, 42, 0.52);
  visibility: visible;
  transition: background 0.35s ease, visibility 0s linear 0s;
}

.filter-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -6px 0 48px rgba(15, 23, 42, 0.16);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.filter-modal-overlay.visible .filter-modal {
  transform: translateX(0);
}

/* Header */
.filter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
  background: #fff;
}

.fmd-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
}

.fmd-active-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dg-primary,#2563eb);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
}

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

.fmd-reset-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ef4444;
  text-decoration: none;
  transition: opacity 0.15s;
}
.fmd-reset-link:hover { opacity: 0.75; }

.fmd-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  transition: all 0.18s;
}
.fmd-close-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
}

/* Body */
.filter-modal-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.filter-modal-body::-webkit-scrollbar { width: 4px; }
.filter-modal-body::-webkit-scrollbar-track { background: transparent; }
.filter-modal-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* Sections */
.fmd-section {
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
}
.fmd-section:last-child { border-bottom: none; }

.fmd-section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
}
.fmd-section-label i {
  color: var(--dg-primary,#2563eb);
  font-size: 0.8rem;
  width: 14px;
  text-align: center;
}

/* Chips */
.filter-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.3;
}
.filter-tag i { opacity: 0.7; margin-right: 3px; }

.filter-tag:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: var(--dg-primary-dark,#1d4ed8);
}
.filter-tag:hover i { opacity: 1; }

.info-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--dg-primary-dark,#1d4ed8);
}

.info-item i {
  color: #3b82f6;
  font-size: 0.7rem;
  width: auto;
}

.info-note {
  color: #94a3b8;
  font-weight: 500;
}

.property-description {
  color: #475569;
  line-height: 1.5;
  margin-bottom: 6px;
  font-size: 0.7rem;
}

.feature-tags-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.feature-tag {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.5);
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.feature-tag:hover {
  background: rgba(226, 232, 240, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Agent summary inside property details */
.property-agent-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 10px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 10px;
}

.pas-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pas-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.pas-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pas-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.pas-meta {
  font-size: 0.72rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pas-meta i {
  color: #3b82f6;
  font-size: 0.65rem;
}

.pas-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.pas-btn {
  border: none;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--dg-primary,#2563eb) 0%, var(--dg-primary-dark,#1d4ed8) 100%);
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pas-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.pas-btn.outline {
  background: white;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
}

.pas-btn.outline:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  box-shadow: none;
}

.agent-profile-card {
  padding: 10px 12px;
}

.agent-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agent-photo-container {
  position: relative;
  width: fit-content;
}

.agent-photo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.agent-details-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.agent-title-row h2 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}

.premium-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: white;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.agent-subinfo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 0.78rem;
}

.agent-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #475569;
  font-size: 0.78rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-stars {
  color: #fbbf24;
}

.agent-description {
  margin: 0;
  color: #475569;
  font-size: 0.78rem;
}

.agent-details-expanded {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.agent-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #475569;
}

.agent-detail-item i {
  width: 16px;
  color: #3b82f6;
  font-size: 0.7rem;
}

.agent-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-btn {
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--dg-primary,#2563eb) 0%, var(--dg-primary-dark,#1d4ed8) 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 41, 59, 0.3);
}

.view-number-btn {
  background: white;
  border: 2px solid #e2e8f0;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-number-btn:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  color: #3b82f6;
}

.view-profile-btn {
  background: white;
  border: 2px solid #e2e8f0;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-profile-btn:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  color: #3b82f6;
}

.animate-fade-in {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

.animate-delay-1 {
  animation-delay: 0 !important;
}

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

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

@media (min-width: 1024px) {
  .property-layout {
    flex-direction: row;
    align-items: stretch;
  }

  .property-image-section {
    width: 36%;
    align-self: stretch;
  }

  .property-image-container {
    height: 100%;
    max-height: 328px;
    border-radius: 16px 0 0 16px;
  }

  .property-details-section {
    width: 64%;
  }
}

@media (max-width: 900px) {
  .property-info-grid {
    grid-template-columns: 1fr;
  }

  .agent-layout {
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .premium-listing-page {
    padding: 20px 16px;
  }

  .page-wrapper {
    gap: 20px;
  }

  .property-details-section,
  .agent-profile-card {
    padding: 22px;
  }

  .price-badge,
  .recent-badge,
  .feature-tag,
  .contact-btn,
  .view-number-btn {
    width: 100%;
    justify-content: center;
  }

  .property-header-row {
    gap: 14px;
  }
}

/* ═══════════════════════════════════════
   Two-column layout
═══════════════════════════════════════ */
.listing-columns {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.listing-main-col {
  flex: 0 0 70%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.listing-sidebar-col {
  flex: 1;
  min-width: 0;
}

/* ═══════════════════════════════════════
   Contact Expert Card  (cc-* prefix)
═══════════════════════════════════════ */
.contact-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 14px 13px;
  width: 100%;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

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

@keyframes ccShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.cc-shake {
  border-color: #ef4444 !important;
}


/* Header */
.cc-header {
  text-align: center;
  margin-bottom: 10px;
}

.cc-header-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #6366f1;
  margin: 0;
  position: relative;
  display: inline-block;
}

.cc-header-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #ec4899);
  border-radius: 2px;
}

/* Expert profile */
.cc-expert-profile {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.cc-name-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.cc-expert-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cc-avatar-container {
  position: relative;
  margin-bottom: 7px;
}

.cc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.cc-avatar-container:hover .cc-avatar {
  transform: scale(1.05);
}

.cc-verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.cc-verified-badge svg {
  width: 13px;
  height: 13px;
  fill: white;
}

.cc-expert-info {
  text-align: center;
}

.cc-expert-name {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.cc-expert-title {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 8px;
}

.cc-contact-preview {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 20px;
  font-size: 11px;
  color: #6366f1;
  font-weight: 600;
}

.cc-contact-preview svg {
  width: 14px;
  height: 14px;
}

/* Form */
.cc-form-section {
  margin-bottom: 8px !important;
  margin-top: 15px !important;
}

.cc-form-label {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 8px !important;
  display: block !important;
}

.cc-input-group {
  margin-bottom: 8px !important;
}

.cc-input-field {
  width: 100% !important;
  padding: 7px 11px !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-family: 'Manrope', sans-serif !important;
  transition: all 0.3s ease !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: #1f2937 !important;
}

.cc-input-field:hover {
  border-color: #d1d5db;
  background: white;
}

.cc-input-field:focus {
  outline: none;
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.cc-input-field::placeholder {
  color: #9ca3af;
}

/* Phone input */
.cc-phone-input-wrapper {
  display: flex;
  border: 2px solid #e5e7eb !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  background: rgba(255, 255, 255, 0.8) !important;
}

.cc-phone-input-wrapper:hover {
  border-color: #d1d5db;
  background: white;
}

.cc-phone-input-wrapper:focus-within {
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.cc-country-code {
  padding: 7px 11px !important;
  background: #f9fafb !important;
  border-right: 1.5px solid #e5e7eb !important;
  font-weight: 600 !important;
  color: #6366f1 !important;
  font-size: 11px !important;
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  white-space: nowrap !important;
}

.cc-country-code:hover {
  background: #f3f4f6;
}

.cc-country-code svg {
  width: 15px;
  height: 15px;
  fill: #9ca3af;
}

.cc-phone-input {
  flex: 1 !important;
  border: none !important;
  padding: 7px 11px !important;
  font-size: 11px !important;
  font-family: 'Manrope', sans-serif !important;
  outline: none !important;
  background: transparent !important;
  color: #1f2937 !important;
}

.cc-phone-input::placeholder {
  color: #9ca3af;
}

/* Consent */
.cc-consent-wrapper {
  margin: 7px 0;
  padding: 7px;
  background: rgba(16, 185, 129, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  transition: all 0.3s ease;
}

.cc-consent-wrapper:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.cc-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.cc-custom-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-top: 2px;
  position: relative;
  background: white;
}

.cc-checkbox-container:hover .cc-custom-checkbox {
  border-color: #10b981;
}

.cc-checkbox-container input:checked + .cc-custom-checkbox {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
}

.cc-custom-checkbox svg {
  width: 12px;
  height: 12px;
  fill: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.cc-checkbox-container input:checked + .cc-custom-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.cc-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.cc-consent-text {
  font-size: 11px !important;
  color: #4b5563 !important;
  line-height: 1.4 !important;
  user-select: none !important;
}

.cc-whatsapp-icon {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #10b981;
  font-weight: 600;
}

.cc-whatsapp-icon svg {
  width: 14px;
  height: 14px;
  fill: #10b981;
}

/* Submit button */
.cc-submit-btn {
  width: 100% !important;
  padding: 8px 12px !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: 'Manrope', sans-serif !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
}

.cc-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.cc-submit-btn:active {
  transform: translateY(0);
}

.cc-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.cc-submit-btn:hover::before {
  left: 100%;
}

.cc-submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cc-submit-btn.loading {
  background: linear-gradient(90deg, #6366f1 25%, #818cf8 50%, #6366f1 75%);
  background-size: 200% 100%;
  pointer-events: none;
}

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

/* Security badge */
.cc-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 10px;
  color: #6b7280;
}

.cc-security-badge svg {
  width: 13px;
  height: 13px;
  fill: #10b981;
}

/* ═══════════════════════════════════════
   Mini agent strip (below property image)
═══════════════════════════════════════ */
.mini-agent-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(248, 250, 252, 0.95);
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  flex-wrap: wrap;
}

.mini-agent-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.mini-agent-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 80px;
}

.mini-agent-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.mini-agent-role {
  font-size: 0.68rem;
  color: #10b981;
  font-weight: 600;
}

.mini-agent-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  background: #fef9ee;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 3px 8px;
  flex-shrink: 0;
}

.mini-agent-rating i {
  color: #f59e0b;
  font-size: 0.68rem;
}

.mini-agent-actions {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.mini-btn {
  border: none;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--dg-primary,#2563eb) 0%, var(--dg-primary-dark,#1d4ed8) 100%);
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.mini-btn.outline {
  background: white;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
}

.mini-btn.outline:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  box-shadow: none;
}

/* ── Responsive: stack columns on smaller screens ── */
@media (max-width: 1024px) {
  .listing-columns {
    flex-direction: column;
  }

  .listing-main-col,
  .listing-sidebar-col {
    flex: none;
    width: 100%;
    position: static;
  }
}

/* ════════════════════════════════════════════════════════
   BELOW-LISTING SECTIONS — Shared chrome
════════════════════════════════════════════════════════ */
.below-listing-section {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 12px 12px;
  margin-top: 20px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.07);
}

.bls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bls-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bls-accent-bar {
  width: 4px;
  height: 22px;
  background: var(--dg-primary,#2563eb);
  border-radius: 2px;
  flex-shrink: 0;
}

.bls-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.bls-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 20px;
  background: #eff6ff;
  color: var(--dg-primary,#2563eb);
  letter-spacing: 0.3px;
}

.bls-view-all {
  font-size: 11px;
  font-weight: 600;
  color: var(--dg-primary,#2563eb);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.bls-view-all:hover { gap: 6px; }

/* ── Featured Properties grid ── */
.fp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Featured Property card — horizontal compact */
.fp-card {
  border-radius: 10px !important;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: transform 0.15s, box-shadow 0.15s;
  background: #fff;
  box-shadow: none;
  border: 1px solid #e0e0e0;
}
.fp-card:hover {
  transform: translateY(-2px);
}

.fp-img-wrap {
  position: relative;
  overflow: hidden;
  width: 175px;
  min-width: 80px;
  border-radius: 0;
}
.fp-img {
  width: 100%;
  height: 110px !important;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.fp-card:hover .fp-img { transform: scale(1.08); }

.fp-price-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  white-space: nowrap;
}

.fp-fav-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  font-size: 9px;
  transition: color 0.2s;
}
.fp-fav-btn:hover, .fp-fav-btn.active { color: #ef4444; }

.fp-body {
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.fp-name {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 20px;
}

.fp-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fp-name a:hover {
  color: var(--dg-primary,#2563eb);
}

.fp-location {
  font-size: 10px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-location i { color: var(--dg-primary,#2563eb); font-size: 9px; }

.fp-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 1px;
}
.fp-meta-item {
  font-size: 9px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 5px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.fp-meta-item i { color: var(--dg-primary,#2563eb); }

.fp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
}

.fp-type-tag {
  font-size: 9px;
  font-weight: 600;
  color: var(--dg-primary,#2563eb);
  background: #eff6ff;
  padding: 1px 6px;
  border-radius: 10px;
}

.fp-details-btn {
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--dg-primary,#2563eb), var(--dg-primary-dark,#1d4ed8));
  padding: 3px 8px;
  border-radius: 5px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.fp-details-btn:hover { opacity: 0.88; }

/* ── Featured Agents Section ── */
.featured-dealers-section {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 12px 12px;
  margin-top: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.07);
}

/* Section header */
.fda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.fda-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fda-icon {
  width: 34px;
  height: 34px;
  background: #eff6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dg-primary,#2563eb);
  font-size: 15px;
  flex-shrink: 0;
}
.fda-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}
.fda-subtitle {
  font-size: 9.5px;
  color: #64748b;
  margin: 0;
  margin-top: 1px;
}
.fda-view-all {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--dg-primary,#2563eb);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.fda-view-all:hover { color: var(--dg-primary-dark,#1d4ed8); }

/* Cards grid */
.dealer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.dealer-empty {
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 12px 0;
  text-align: center;
}

/* Card */
.dealer-card {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(76,29,149,0.18);
  transition: transform 0.15s, box-shadow 0.15s;
}
.dealer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(76,29,149,0.3);
}

/* Card header strip */
.dc-card-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 12px 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* Avatar */
.dc-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.dc-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #c4b5fd;
  display: block;
}
.dc-avatar-initials {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dg-primary,#2563eb), var(--dg-primary-dark,#1d4ed8));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  border: 2.5px solid #93c5fd;
}
.dc-verified-badge {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--dg-primary-light,#dbeafe);
  background: var(--dg-primary,#2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 7px;
}

/* Header info */
.dc-header-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dc-name-row { display: flex; align-items: center; gap: 5px; }
.dc-name {
  font-size: 13px;
  font-weight: 800;
  color: #3b0764;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.dc-badges-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 1px;
}
.dc-tag {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
}
.dc-tag-verified { background: var(--dg-primary,#2563eb); color: #fff; }
.dc-tag-premium  { background: #fef3c7; color: #92400e; }
.dc-tag-type     { background: #e0e7ff; color: #3730a3; }
.dc-company {
  font-size: 9.5px;
  color: #5b21b6;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-company i { font-size: 8px; }

/* Details list */
.dc-details {
  padding: 8px 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dc-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #4b5563;
}
.dc-detail-item i {
  color: var(--dg-primary,#2563eb);
  font-size: 9px;
  width: 12px;
  text-align: center;
  flex-shrink: 0;
}

/* Stats row */
.dc-stats {
  display: flex;
  align-items: center;
  margin: 6px 12px 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  gap: 0;
}
.dc-stat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-right: 1px solid #ddd6fe;
}
.dc-stat-box:last-child { border-right: none; }
.dc-stars {
  display: flex;
  align-items: center;
  gap: 1px;
}
.dc-stars i { font-size: 8px; }
.dc-stat-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--dg-primary,#2563eb);
  line-height: 1;
}
.dc-stat-label {
  font-size: 8.5px;
  color: var(--dg-primary,#2563eb);
  font-weight: 600;
}

/* Action buttons */
.dc-actions {
  display: flex;
  gap: 0;
  border-top: 1px solid #ede9fe;
}
.dc-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 9px 0;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border: none;
  cursor: pointer;
}
.dc-btn-call {
  background: linear-gradient(135deg, var(--dg-primary,#2563eb), var(--dg-primary-dark,#1d4ed8));
  color: #fff;
  border-radius: 0 0 0 12px;
}
.dc-btn-call:hover { background: linear-gradient(135deg, var(--dg-primary-dark,#1d4ed8), #1e40af); color: #fff; }
.dc-btn-profile {
  background: #eff6ff;
  color: var(--dg-primary,#2563eb);
  border-left: 1px solid #bfdbfe;
  border-radius: 0 0 12px 0;
}
.dc-btn-profile:hover { background: var(--dg-primary-light,#dbeafe); color: var(--dg-primary-dark,#1d4ed8); }



/* ── Featured Builders grid ── */
.builder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Builder card — horizontal compact */
.builder-card {
  border-radius: 10px !important;
  padding: 8px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
  background: #fff;
  box-shadow: none;
  border: 1px solid #e0e0e0;
}
.builder-card:hover {
  transform: translateY(-2px);
}

.builder-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.builder-logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}
.builder-verified-badge {
    font-size: 8px;
    font-weight: 600;
    color: var(--dg-primary-dark,#1d4ed8);
    background: var(--dg-primary-light,#dbeafe);
    padding: 1px 5px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.builder-name {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 20px;
}

/* builder-info: middle flex column */
.builder-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.builder-location {
  font-size: 9px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.builder-location i { color: var(--dg-primary-dark,#1d4ed8); font-size: 8px; }

.builder-stats-row {
  display: none;
}
.builder-stat, .bs-value, .bs-label { display: none; }

.builder-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 3px;
  margin-top: 2px;
}
.builder-tag {
    font-size: 9px;
    font-weight: 600;
    color: var(--dg-primary-dark,#1d4ed8);
    background: var(--dg-primary-light,#dbeafe);
    padding: 1px 6px;
    border-radius: 10px;
}

.builder-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 600;
    color: var(--dg-primary-dark,#1d4ed8);
    background: var(--dg-primary-light,#dbeafe);
    border-radius: 6px;
    padding: 4px 8px;
    text-decoration: none;
    width: auto;
    margin-top: 0;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.builder-view-btn:hover {
    background: var(--dg-primary-dark,#1d4ed8);
    color: #fff;
}

/* grids are 1-col inside sidebar — no responsive overrides needed */

/* ── Builder Ad Banners ── */
.builder-ad-banner {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  padding: 18px 16px 14px;
  text-decoration: none;
  margin-top: 12px;
  min-height: 130px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.builder-ad-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

/* Signature – deep navy / blue */
.signature-ad-banner {
  background: linear-gradient(135deg, #0a0f2e 0%, #1a2a6c 45%, var(--dg-primary,#2563eb) 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.signature-ad-banner .bab-offer-tag { background: rgba(255, 255, 255, 0.15); color: #93c5fd; }
.signature-ad-banner .bab-brand { color: #93c5fd; }
.signature-ad-banner .bab-headline { color: #ffffff; }
.signature-ad-banner .bab-sub { color: rgba(255,255,255,0.65); }
.signature-ad-banner .bab-cta { background: var(--dg-primary,#2563eb); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.signature-ad-banner .bab-shape-1 { background: var(--dg-primary,#2563eb); width: 90px; height: 90px; top: -30px; right: -20px; border-radius: 50%; opacity: 0.45; }
.signature-ad-banner .bab-shape-2 { background: var(--dg-primary-dark,#1d4ed8); width: 55px; height: 55px; bottom: -10px; right: 40px; border-radius: 50%; opacity: 0.35; }
.signature-ad-banner .bab-shape-3 { background: #60a5fa; width: 30px; height: 30px; top: 50%; right: 60px; border-radius: 50%; opacity: 0.25; }

/* M3M – dark gold / charcoal */
.m3m-ad-banner {
  background: linear-gradient(135deg, #1a1208 0%, #3d2b00 45%, #b45309 100%);
  box-shadow: 0 6px 20px rgba(180, 83, 9, 0.35);
}
.m3m-ad-banner .bab-offer-tag { background: rgba(255,255,255,0.12); color: #fcd34d; }
.m3m-ad-banner .bab-brand { color: #fcd34d; }
.m3m-ad-banner .bab-headline { color: #ffffff; }
.m3m-ad-banner .bab-sub { color: rgba(255,255,255,0.65); }
.m3m-ad-banner .bab-cta { background: #b45309; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.m3m-ad-banner .bab-shape-1 { background: #d97706; width: 85px; height: 85px; top: -25px; right: -18px; border-radius: 50%; opacity: 0.45; }
.m3m-ad-banner .bab-shape-2 { background: #92400e; width: 50px; height: 50px; bottom: -8px; right: 45px; border-radius: 50%; opacity: 0.4; }
.m3m-ad-banner .bab-shape-3 { background: #fbbf24; width: 28px; height: 28px; top: 48%; right: 58px; border-radius: 50%; opacity: 0.22; }

.dlf-ad-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 55%, #6d28d9 100%);
  box-shadow: 0 6px 20px rgba(109,40,217,0.35);
}
.dlf-ad-banner .bab-offer-tag { background: rgba(255,255,255,0.13); color: #c4b5fd; }
.dlf-ad-banner .bab-brand { color: #c4b5fd; }
.dlf-ad-banner .bab-headline { color: #ffffff; }
.dlf-ad-banner .bab-sub { color: rgba(255,255,255,0.65); }
.dlf-ad-banner .bab-cta { background: linear-gradient(135deg, var(--dg-primary,#2563eb), var(--dg-primary-dark,#1d4ed8)); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.dlf-ad-banner .bab-shape-1 { background: #7c3aed; width: 88px; height: 88px; top: -28px; right: -18px; border-radius: 50%; opacity: 0.45; }
.dlf-ad-banner .bab-shape-2 { background: #5b21b6; width: 52px; height: 52px; bottom: -10px; right: 42px; border-radius: 50%; opacity: 0.38; }
.dlf-ad-banner .bab-shape-3 { background: #a78bfa; width: 29px; height: 29px; top: 48%; right: 58px; border-radius: 50%; opacity: 0.22; }

/* shared inner elements */
.bab-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.bab-shape { position: absolute; display: block; }

.bab-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 8px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.bab-offer-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.bab-offer-tag strong { font-weight: 800; }

.bab-content { position: relative; z-index: 1; }

.bab-brand {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.bab-headline {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bab-sub {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.bab-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 5px 12px;
  border-radius: 20px;
  margin-top: 10px;
  transition: opacity 0.15s;
  position: relative;
  z-index: 1;
}
.builder-ad-banner:hover .bab-cta { opacity: 0.88; }

/* ── Dynamic sidebar ad (color applied via JS from data-bg1/data-bg2) ── */
.bab-dynamic .bab-offer-tag { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.bab-dynamic .bab-brand     { color: rgba(255,255,255,0.8); }
.bab-dynamic .bab-headline  { color: #ffffff; }
.bab-dynamic .bab-sub       { color: rgba(255,255,255,0.65); }
.bab-dynamic .bab-cta       { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.3); }

/* ── Dynamic inline ad card ── */
.ad-banner-card--dynamic {
  position: relative;
  overflow: hidden;
  color: #fff;
}
.ad-banner-card--dynamic .ad-banner-label { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }
.ad-banner-card--dynamic .ad-banner-brand {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.ad-banner-card--dynamic .ad-banner-title { color: #fff; }
.ad-banner-card--dynamic .ad-banner-sub   { color: rgba(255,255,255,0.75); }
.ad-banner-card--dynamic .ad-banner-offer {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
}
.ad-banner-card--dynamic .ad-banner-cta {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.ad-banner-card--dynamic .ad-banner-cta:hover { background: rgba(255,255,255,0.3); }
.ad-banner-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  pointer-events: none;
}
.ad-banner-bg-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* HTML ad wrappers — just enough containment, let the HTML control its own look */
.ad-banner-card--html {
  padding: 0;
  background: none;
  border: none;
  overflow: hidden;
}
.sidebar-html-ad {
  margin-top: 12px;
  overflow: hidden;
}

/* ── Filter Pill Dropdowns ── */
.fp-drop {
  position: relative;
  display: inline-flex;
}

.fp-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fp-chev {
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.fp-drop.fp-open > .fp-trigger,
.filter-pill.fp-selected {
  border-color: var(--dg-primary,#2563eb);
  color: var(--dg-primary,#2563eb);
  background: #eff6ff;
}

.fp-drop.fp-open > .fp-trigger .fp-chev {
  transform: rotate(180deg);
  opacity: 1;
}

.fp-panel {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  min-width: 170px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  padding: 5px;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.fp-panel::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 14px;
  width: 9px;
  height: 9px;
  background: #fff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  border-left: 1px solid rgba(226, 232, 240, 0.9);
  transform: rotate(45deg);
}

.fp-drop.fp-open .fp-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

.fp-opt {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.fp-opt:hover {
  background: #f1f5f9;
  color: var(--dg-primary,#2563eb);
}

.fp-opt.active {
  background: #eff6ff;
  color: var(--dg-primary,#2563eb);
  font-weight: 700;
}

/* Active chip */
.filter-tag.active {
  border-color: var(--dg-primary,#2563eb);
  background: var(--dg-primary,#2563eb);
  color: #fff;
  font-weight: 600;
}
.filter-tag.active i { opacity: 1; }
.filter-tag.active:hover { background: var(--dg-primary-dark,#1d4ed8); border-color: var(--dg-primary-dark,#1d4ed8); color: #fff; }

/* fm inputs */
.fm-text-input {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.87rem;
  color: #0f172a;
  background: #f8fafc;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.18s;
}
.fm-text-input:focus { border-color: var(--dg-primary,#2563eb); background: #fff; }

.fm-apply-btn {
  padding: 8px 18px;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.fm-apply-btn:hover { background: #1e293b; }

/* Amenities grid */
.filter-amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.amenity-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #334155;
  cursor: pointer;
  padding: 7px 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  transition: all 0.18s;
}
.amenity-check:has(input:checked) { border-color: var(--dg-primary,#2563eb); background: #eff6ff; color: var(--dg-primary-dark,#1d4ed8); }
.amenity-check input { accent-color: var(--dg-primary,#2563eb); width: 14px; height: 14px; flex-shrink: 0; }

/* Footer */
.filter-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
  background: #fff;
  gap: 12px;
}

.fm-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
}
.fm-clear-btn:hover { border-color: #ef4444; color: #ef4444; }

.fm-result-hint { font-size: 0.8rem; color: #64748b; }
.fm-result-hint strong { color: #0f172a; }

/* More Filters button badge */
.filter-action-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dg-primary,#2563eb);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  margin-left: 3px;
  line-height: 1;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .premium-listing-page {
    padding: 12px 10px;
    margin-top: 55px;
  }
  .glass-card { border-radius: 14px; }
  .property-details-section,
  .agent-profile-card { padding: 16px; }
  .page-wrapper { gap: 10px; }
}

@media (max-width: 480px) {
  .premium-listing-page { padding: 8px 8px; }
  .filter-modal { width: 100vw; }
}

/* ── Ad Banner Card ── */
.ad-banner-card {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #1e3a8a 0%, var(--dg-primary,#2563eb) 55%, #0ea5e9 100%);
  border-radius: 18px;
  overflow: hidden;
  padding: 22px 28px;
  margin: 6px 0;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.22), 0 2px 8px rgba(37, 99, 235, 0.12);
}

.ad-banner-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.ad-banner-card::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: 80px;
  width: 130px;
  height: 130px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.ad-banner-label {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.25);
}

.ad-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.ad-banner-icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
}

.ad-banner-icon-wrap i {
  font-size: 1.5rem;
  color: #fff;
}

.ad-banner-text {
  flex: 1;
  min-width: 0;
}

.ad-banner-title {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.3;
}

.ad-banner-sub {
  font-size: clamp(0.75rem, 1vw, 0.82rem);
  color: rgba(255,255,255,0.78);
  margin: 0;
  line-height: 1.4;
}

.ad-banner-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: #1e3a8a;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.ad-banner-cta:hover {
  background: #f0f9ff;
  color: #1e40af;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .ad-banner-card { padding: 16px 18px; }
  .ad-banner-inner { flex-wrap: wrap; gap: 14px; }
  .ad-banner-icon-wrap { display: none; }
  .ad-banner-cta { width: 100%; justify-content: center; }
}

/* Infinite Scroll — End of Results */
.infinite-sentinel {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 0.85rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--dg-primary,#2563eb);
  border-radius: 50%;
}

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

.no-more-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 36px 24px;
  width: 100%;
}

.no-more-line {
  flex: 1;
  height: 1px;
  max-width: 100px;
  background: linear-gradient(to right, transparent, #cbd5e1);
}

.no-more-line:last-child {
  background: linear-gradient(to left, transparent, #cbd5e1);
}

.no-more-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 7px 18px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.no-more-badge i {
  color: var(--dg-primary,#2563eb);
  font-size: 0.85rem;
}

.error {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  padding: 10px;
}

.error button {
  margin-left: 10px;
  padding: 4px 10px;
  background: var(--dg-primary,#2563eb);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.error button:hover {
  background: var(--dg-primary-dark,#1d4ed8);
}

/* ── Filter row wraps on mobile (overflow:visible so panels are never clipped) ── */
.filter-row {
  overflow: visible;
  flex-wrap: wrap;
}

/* ── Wide filter panel (budget/size with inputs) ── */
.fp-panel-wide {
  min-width: 270px;
}

/* ── Range inputs inside filter panel ── */
.fp-range-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px 6px;
}

.fp-range-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fp-range-field label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fp-range-input {
  width: 100%;
  padding: 7px 9px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.83rem;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.18s;
  box-sizing: border-box;
}

.fp-range-input:focus {
  border-color: var(--dg-primary,#2563eb);
  background: #fff;
}

.fp-range-sep {
  color: #94a3b8;
  font-weight: 600;
  flex-shrink: 0;
  padding-bottom: 8px;
}

.fp-apply-btn {
  display: block;
  width: calc(100% - 24px);
  margin: 6px 12px 4px;
  padding: 9px 0;
  background: var(--dg-primary,#2563eb);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s;
}

.fp-apply-btn:hover { background: var(--dg-primary-dark,#1d4ed8); }

.fp-divider {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px 2px;
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
}

/* ── Quick filter chips ── */
.quick-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 6px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.quick-filter-chips::-webkit-scrollbar { display: none; }

.qf-chips-label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  flex-shrink: 0;
}

.qf-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s;
}

.qf-chip i { font-size: 0.72rem; }

.qf-chip:hover {
  border-color: var(--dg-primary,#2563eb);
  color: var(--dg-primary,#2563eb);
  background: #eff6ff;
}

.qf-chip.active {
  border-color: var(--dg-primary,#2563eb);
  background: var(--dg-primary,#2563eb);
  color: #fff;
}

/* ── More Filters modal — new sections ── */
.filter-tag-row.fm-wrap { flex-wrap: wrap; }

.fm-text-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.84rem;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  margin-bottom: 8px;
  box-sizing: border-box;
  transition: border-color 0.18s;
}

.fm-text-input:focus {
  border-color: var(--dg-primary,#2563eb);
  background: #fff;
}

.fm-apply-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--dg-primary,#2563eb);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s;
}

.fm-apply-btn:hover { background: var(--dg-primary-dark,#1d4ed8); }

.filter-amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.amenity-check {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #475569;
  user-select: none;
}

.amenity-check input[type="checkbox"] {
  accent-color: var(--dg-primary,#2563eb);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════ */

/* ── Tablet: 1024px ── */
@media (max-width: 1024px) {
  .premium-listing-page { padding: 14px 12px; }
  .additional-filters { gap: 8px; flex-wrap: wrap; }
  .af-controls { flex-wrap: wrap; gap: 8px; }
  .filter-select { min-width: 110px; }
  .filter-modal { width: min(580px, 95vw); }
}

/* ── Small tablet / large phone: 768px ── */
@media (max-width: 768px) {
  /* Page wrapper */
  .premium-listing-page { padding: 10px 10px; margin-top: 56px; }

  /* Sort / results row */
  .additional-filters {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 8px;
  }
  .af-controls { justify-content: space-between; }
  .filter-select { flex: 1; min-width: 0; font-size: 0.78rem; }

  /* Property card: always vertical stack on tablet */
  .property-layout { flex-direction: column !important; }
  .property-image-section { width: 100% !important; }
  .property-image-container { height: 200px !important; border-radius: 14px 14px 0 0 !important; max-height: 328px !important; }
  .property-details-section { width: 100% !important; padding: 14px 16px !important; }
  .agent-profile-card { padding: 14px 16px !important; }

  /* PAS agent strip — buttons full width */
  .pas-left { flex-direction: column; align-items: flex-start; }
  .pas-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; width: 100%; }
  .pas-btn { flex: 1; min-width: 0; justify-content: center; font-size: 0.75rem; padding: 8px 10px; }

  /* Featured agents dealer grid — horizontal scroll */
  .dealer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Featured builders */
  .builder-grid { grid-template-columns: 1fr; }

  /* Featured properties grid */
  .fp-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Ad banners */
  .bab-inner { flex-direction: column; gap: 12px; }
  .bab-cta { width: 100%; justify-content: center; }

  /* Filter modal */
  .filter-modal { width: 100vw; max-height: 100vh; border-radius: 20px 20px 0 0; margin: auto 0 0 0; align-self: flex-end; }
  .filter-modal-overlay { align-items: flex-end; }
  .filter-modal-header { padding: 15px 18px; }
  .fmd-section { padding: 14px 18px; }
  .filter-modal-footer { padding: 12px 18px; }

  /* Connect with expert */
  .cc-expert-profile { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cc-avatar-container { width: 52px; height: 52px; }

  /* Show Number popup */
  #sn-popup { padding: 24px 18px 18px; border-radius: 16px; }
  .sn-header { gap: 12px; }
  .sn-avatar, .sn-avatar-fallback { width: 56px; height: 56px; font-size: 22px; }
  .sn-number { font-size: 1.3rem; }
  .sn-actions { flex-direction: column; gap: 8px; }
  .sn-action-btn { flex: none; width: 100%; }
}

/* ── Phone: 480px ── */
@media (max-width: 480px) {
  .premium-listing-page { padding: 8px 8px; margin-top: 56px; }

  /* Property card */
  .property-image-container { height: 180px !important; }
  .price-badge { font-size: 0.82rem; padding: 5px 10px; }
  .property-title { font-size: 0.9rem; }
  .property-info-grid { grid-template-columns: 1fr !important; gap: 3px; }

  /* Dealer grid: single column */
  .dealer-grid { grid-template-columns: 1fr; }

  /* Featured properties: single col */
  .fp-grid { grid-template-columns: 1fr !important; }

  /* Ad banner */
  .bab-offer-tag { display: none; }
  .bab-headline { font-size: 0.9rem; }
  .bab-sub { font-size: 0.72rem; }

  /* DLF/Signature/M3M banners */
  .dlf-ad-banner, .signature-ad-banner, .m3m-ad-banner { padding: 16px 14px; }

  /* Filter row — make pills smaller */
  .filter-pill, .filter-action-btn { padding: 5px 10px; font-size: 0.72rem; }

  /* Quick chips */
  .qf-chips-label { display: none; }
  .qf-chip { padding: 5px 10px; font-size: 0.72rem; }

  /* PAS buttons: stack */
  .pas-actions { flex-direction: column; }
  .pas-btn { width: 100%; text-align: center; justify-content: center; }

  /* Sort row */
  .af-result-count { font-size: 0.75rem; }
  .filter-select { font-size: 0.75rem; padding: 5px 8px; }

  /* Connect with expert */
  .cc-header-title { font-size: 0.9rem; }
  .cc-name-title-row { flex-direction: column; gap: 2px; }

  /* Filter drawer mobile */
  .filter-modal { width: 100vw; }
  .filter-modal-footer { gap: 8px; }
  .fm-clear-btn { flex: 1; justify-content: center; }
}

/* ── Small phone: 380px ── */
@media (max-width: 380px) {
  .premium-listing-page { padding: 6px 6px; }
  .property-image-container { height: 160px !important; }
  .filter-pill, .filter-action-btn { padding: 4px 8px; font-size: 0.68rem; }
  .pas-btn { font-size: 0.7rem; padding: 7px 8px; }
  .bab-cta { font-size: 0.75rem; padding: 8px 12px; }
  .dc-stat-num { font-size: 11px; }
  .dc-stat-label { font-size: 7.5px; }
  .dc-name { font-size: 11px; }
  .dc-company, .dc-detail-item { font-size: 8.5px; }
}


/* ================================================================
   Property Listing Page — component styles
   (extracted from property-listing.ejs <style> block)
   ================================================================ */

/* ── Show Number Popup ── */
#sn-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.52);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .28s ease;
}
#sn-popup-overlay.sn-visible { opacity: 1; }
#sn-popup {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px 24px;
  width: min(440px, 94vw);
  box-shadow: 0 20px 60px rgba(109,40,217,.18);
  border: 1px solid #ede9fe;
  position: relative;
  transform: translateY(24px) scale(.97);
  transition: transform .28s ease, opacity .28s ease;
  opacity: 0;
}
#sn-popup-overlay.sn-visible #sn-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.sn-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 22px; color: #a78bfa;
  cursor: pointer; line-height: 1;
  transition: color .15s;
}
.sn-close:hover { color: #6d28d9; }
.sn-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.sn-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #bfdbfe;
  flex-shrink: 0;
}
.sn-avatar-fallback {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--dg-primary,#2563eb),var(--dg-primary-dark,#1d4ed8));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.sn-agent-info { flex: 1; min-width: 0; }
.sn-name { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-bottom: 3px; }
.sn-company, .sn-location { font-size: 0.82rem; color: #64748b; margin-bottom: 2px; }
.sn-company i, .sn-location i { margin-right: 4px; color: var(--dg-primary,#2563eb); }
.sn-stars { display: flex; align-items: center; gap: 3px; margin: 6px 0 5px; }
.sn-rating-val { font-size: 0.82rem; font-weight: 600; color: var(--dg-primary,#2563eb); margin-left: 4px; }
.sn-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.sn-badge {
  font-size: 0.72rem; font-weight: 600;
  padding: 2px 9px; border-radius: 99px;
  display: inline-flex; align-items: center; gap: 4px;
}
.sn-badge-verified { background: var(--dg-primary-light,#dbeafe); color: var(--dg-primary,#2563eb); }
.sn-badge-premium  { background: #eff6ff; color: var(--dg-primary-dark,#1d4ed8); }
.sn-number-reveal {
  background: linear-gradient(135deg, #eff6ff, var(--dg-primary-light,#dbeafe));
  border: 1.5px solid #93c5fd;
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  margin-bottom: 20px;
}
.sn-number-label {
  font-size: 0.75rem; color: var(--dg-primary,#2563eb); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.sn-number { font-size: 1.55rem; font-weight: 800; color: var(--dg-primary-dark,#1d4ed8); letter-spacing: .04em; }
.sn-phone-icon { margin-right: 8px; font-size: 1.1rem; }
.sn-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.sn-action-btn {
  flex: 1; min-width: 110px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem; font-weight: 600;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: filter .15s, transform .15s;
}
.sn-action-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.sn-call-btn    { background: linear-gradient(135deg,var(--dg-primary,#2563eb),var(--dg-primary-dark,#1d4ed8)); color: #fff; }
.sn-wa-btn      { background: #eff6ff; color: var(--dg-primary,#2563eb); border: 1.5px solid #bfdbfe; }
.sn-profile-btn { background: #eff6ff; color: var(--dg-primary,#2563eb); border: 1.5px solid #bfdbfe; }
.sn-upgrade-btn { background: linear-gradient(135deg,var(--dg-primary,#2563eb),var(--dg-primary-dark,#1d4ed8)); color: #fff; margin-top: 12px; }
.sn-footer { text-align: center; font-size: 0.78rem; color: #64748b; }
.sn-remaining { color: var(--dg-primary,#2563eb); font-weight: 500; }
.sn-unlimited  { color: var(--dg-primary,#2563eb); font-weight: 600; }
.sn-loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 0; gap: 14px;
  color: #7c3aed; font-size: 0.9rem;
}
.sn-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--dg-primary-light,#dbeafe);
  border-top-color: var(--dg-primary,#2563eb);
  border-radius: 50%;
  animation: sn-spin .7s linear infinite;
}
@keyframes sn-spin { to { transform: rotate(360deg); } }
.sn-limit-reached, .sn-error {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  padding: 40px 10px 20px;
  text-align: center;
}
.sn-lock-icon { font-size: 2.8rem; color: #7c3aed; }
.sn-limit-reached h3 { font-size: 1.1rem; font-weight: 700; color: #1e1b4b; }
.sn-limit-reached p  { color: #64748b; font-size: 0.9rem; max-width: 300px; }
.sn-error i { font-size: 2.2rem; color: #7c3aed; }
.sn-error p { color: #64748b; }

/* ── Sale/Rent badge on property card image ── */
.img-badge-stack {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.listing-type-badge {
  position: static;
  display: inline-block;
  padding: 3px 11px;
  border-radius: 6px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.listing-type-badge--for-sale, .listing-type-badge--sale { background: #f59e0b; color: #fff; }
.listing-type-badge--for-rent, .listing-type-badge--rent { background: #10b981; color: #fff; }
.listing-type-badge--pg         { background: #3b82f6; color: #fff; }
.listing-type-badge--commercial { background: #f97316; color: #fff; }
.listing-type-badge--plot       { background: #8b5cf6; color: #fff; }
.listing-type-badge--lease      { background: #06b6d4; color: #fff; }

/* ── Advertise Here banner ── */
.bab-advertise {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed #c4b5fd;
  border-radius: 14px;
  padding: 28px 20px;
  margin-top: 20px;
  background: #f5f3ff;
  text-align: center;
  text-decoration: none;
  color: #7c3aed;
  transition: background .2s, border-color .2s;
}
.bab-advertise:hover { background: #ede9fe; border-color: #7c3aed; }
.bab-advertise-icon { font-size: 2rem; opacity: .6; }
.bab-advertise-title { font-size: 1rem; font-weight: 700; color: #6d28d9; }
.bab-advertise-sub   { font-size: 0.8rem; color: #7c3aed; opacity: .85; }
.bab-advertise-cta {
  margin-top: 6px;
  padding: 7px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg,var(--dg-primary,#2563eb),var(--dg-primary-dark,#1d4ed8));
  color: #fff;
  font-size: 0.82rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ── Inline-style replacement classes ── */
.pl-empty-state { padding: 2rem; text-align: center; color: #64748b; }
.pl-empty-icon  { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.4; display: block; }

.prop-img-placeholder {
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prop-img-placeholder .fa-home { font-size: 3rem; color: #94a3b8; }
.d-none { display: none !important; }

.mini-agent-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  font-weight: 700;
  color: #475569;
  border-radius: 50%;
}
.pas-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  font-weight: 700;
  font-size: 1.2rem;
  color: #475569;
  border-radius: 50%;
}

.fp-img-placeholder {
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-img-placeholder .fas { font-size: 2rem; color: #94a3b8; }
.fp-empty-msg { color: #94a3b8; font-size: 0.9rem; padding: 1rem 0; margin: 0; }

.star-active { color: #f59e0b; }
.star-empty  { color: #ddd6fe; }

.bls-accent-bar--orange { background: #ea580c; }
.bls-badge--orange      { background: #fff7ed; color: #ea580c; }

.blc-blue   { background: linear-gradient(135deg, var(--dg-primary,#2563eb), var(--dg-primary-dark,#1d4ed8)); }
.blc-purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.blc-orange { background: linear-gradient(135deg, #ea580c, #c2410c); }

.filter-verified-icon { margin-right: 5px; color: var(--dg-primary,#2563eb); }
.filter-btn-icon { vertical-align: middle; margin-right: 3px; }

.sn-popup-star  { font-size: 13px; }
.sn-star-active { color: #f59e0b; }
.sn-star-empty  { color: #d1d5db; }

/* ── Type tab bar ── */
.pl-type-tabs { display:flex; gap:6px; overflow-x:auto; padding-bottom:4px; margin-bottom:8px; scrollbar-width:none; -ms-overflow-style:none; }
.pl-type-tabs::-webkit-scrollbar { display:none; }
.pl-type-tab { padding:6px 14px; border:1.5px solid #e2e8f0; border-radius:20px; font-size:0.8rem; font-weight:600; color:#475569; white-space:nowrap; text-decoration:none; transition:all 0.15s ease; background:#fff; }
.pl-type-tab:hover { border-color:var(--dg-primary,#2563eb); color:var(--dg-primary,#2563eb); background:#eff6ff; }
.pl-type-tab.active { border-color:var(--dg-primary,#2563eb); background:var(--dg-primary,#2563eb); color:#fff; }

/* ── View toggle ── */
.pl-view-toggle { display:flex; border:1.5px solid #e2e8f0; border-radius:8px; overflow:hidden; }
.pl-view-btn { padding:5px 9px; border:none; background:#fff; color:#64748b; cursor:pointer; transition:all 0.15s ease; display:flex; align-items:center; }
.pl-view-btn.active { background:var(--dg-primary,#2563eb); color:#fff; }
.pl-view-btn + .pl-view-btn { border-left:1px solid #e2e8f0; }

/* ── Featured card variant ── */
.property-listing-card--featured { border:2px solid transparent; background:linear-gradient(#fff,#fff) padding-box, linear-gradient(135deg,#f59e0b,var(--dg-primary,#2563eb)) border-box !important; }
.featured-strip { position:static; display:inline-block; background:linear-gradient(135deg,#f59e0b,#f97316); color:#fff; font-size:0.65rem; font-weight:800; letter-spacing:1px; padding:3px 8px; border-radius:4px; text-transform:uppercase; box-shadow:0 2px 4px rgba(0,0,0,0.2); }
.verified-img-badge { position:absolute; bottom:8px; right:8px; width:22px; height:22px; border-radius:50%; background:#22c55e; display:flex; align-items:center; justify-content:center; z-index:2; border:1.5px solid #fff; }
.verified-img-badge svg { display:block; }

/* ── Grid view mode ── */
.listing-main-col--grid .property-listing-card { }
.listing-main-col--grid .property-layout { flex-direction:row; gap:0; }
.listing-main-col--grid .property-image-section { width:200px; flex-shrink:0; }
.listing-main-col--grid .property-image-container { height:100%; }
.listing-main-col--grid .property-image { height:100%; object-fit:cover; }

/* 2-col grid when grid mode is active */
@media (min-width:900px) {
  .listing-main-col--grid .property-listing-card + .property-listing-card { margin-top:0; }
}

/* ── Skeleton loader ── */
@keyframes shimmer { 0%{background-position:-600px 0} 100%{background-position:600px 0} }
.skel-row { background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%); background-size:600px 100%; animation:shimmer 1.4s infinite; border-radius:6px; }
.property-card-skeleton { background:#fff; border-radius:24px; overflow:hidden; padding:16px; display:flex; gap:16px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.property-card-skeleton .skel-img { width:220px; height:160px; flex-shrink:0; border-radius:12px; }
.property-card-skeleton .skel-body { flex:1; display:flex; flex-direction:column; gap:10px; }
.property-card-skeleton .skel-title { height:18px; width:60%; }
.property-card-skeleton .skel-sub { height:13px; width:40%; }
.property-card-skeleton .skel-meta { height:13px; width:80%; }
.property-card-skeleton .skel-price { height:22px; width:30%; margin-left:auto; }

/* ── Featured Cities Section ── */
.pl-city-section {
  background: linear-gradient(135deg, #eef2ff 0%, #eff6ff 60%, #f0fdf4 100%);
  border: 1.5px solid #c7d2fe;
  border-radius: 16px;
  padding: 20px 22px 18px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.pl-city-section::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.pl-city-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.pl-city-section-icon-wrap {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99,102,241,0.35);
}
.pl-city-section-title {
  display: block;
  font-size: 0.97rem;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1.3;
}
.pl-city-section-sub {
  display: block;
  font-size: 0.79rem;
  color: #6366f1;
  margin-top: 1px;
  font-weight: 500;
}
.pl-city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pl-city-card {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: #fff;
  border: 1.5px solid #e0e7ff;
  border-radius: 50px;
  color: #3730a3;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(99,102,241,0.07);
  white-space: nowrap;
}
.pl-city-card:hover {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79,70,229,0.28);
}
.pl-city-card-icon { font-size: 0.95rem; line-height: 1; }
.pl-city-card-name { font-size: 0.82rem; }
@media (max-width: 640px) {
  .pl-city-section { padding: 16px; }
  .pl-city-grid { gap: 6px; }
  .pl-city-card { padding: 6px 11px; font-size: 0.78rem; }
}
