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

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

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

.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;
  animation: fadeInUp 0.6s ease-out;
}

.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: 260px;
}

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

.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 {
  bottom: 16px;
  top: auto;
  z-index: 10;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.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: 10px;
  margin-bottom: 14px;
}

.price-badge {
  padding: 7px 13px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.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(1.1rem, 1.4vw, 1.4rem);
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

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

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

.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, #2563eb);
  transition: width 0.3s ease;
}

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

.property-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-bottom: 14px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

.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: 'Plus Jakarta Sans', 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);
}

.filter-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.48);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.filter-modal-overlay.visible {
  display: flex;
}

.filter-modal {
  width: min(640px, 90vw);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.filter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.modal-close-btn {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #475569;
}

.filter-modal-body {
  display: grid;
  gap: 20px;
}

.filter-group h4 {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #334155;
}

.filter-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.filter-tag:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.info-item:hover {
  color: #3b82f6;
}

.info-item i {
  width: 22px;
  color: #3b82f6;
}

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

.property-description {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
  font-size: 0.8rem;
}

.feature-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.feature-tag {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.5);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #334155;
  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: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 12px;
}

.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, #1e293b 0%, #0f172a 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, #1e293b 0%, #0f172a 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;
  }

  .property-image-section {
    width: 40%;
  }

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

@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;
  animation: ccSlideUp 0.6s ease-out;
}

@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 {
  animation: ccShake 0.5s ease-in-out;
  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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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: 'Plus Jakarta Sans', 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%;
  animation: ccShimmer 1.5s infinite;
  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: 10px;
  padding: 10px 14px;
  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, #1e293b 0%, #0f172a 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: #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: #2563eb;
  letter-spacing: 0.3px;
}

.bls-view-all {
  font-size: 11px;
  font-weight: 600;
  color: #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: #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: #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: #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: #2563eb;
  background: #eff6ff;
  padding: 1px 6px;
  border-radius: 10px;
}

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

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

/* Dealer card — avatar only */
.dealer-card {
  border-radius: 50% !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  transition: transform 0.15s, box-shadow 0.15s;
  background: #fff;
  box-shadow: none;
  border: 1px solid #e0e0e0;
}
.dealer-card:hover {
  transform: scale(1.05);
}

.dealer-avatar-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none;
}

.dealer-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dealer-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.dealer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ede9fe;
}
.dealer-verified-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13px;
  height: 13px;
  background: #7c3aed;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 6px;
}



/* ── 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: #ea580c;
  background: #fff7ed;
  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: #ea580c; 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: #ea580c;
  background: #ffedd5;
  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: #ea580c;
  background: #ffedd5;
  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: #ea580c;
  color: #fff;
}

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

/* ── 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: #2563eb;
  color: #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: #2563eb;
}

.fp-opt.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
}

/* filter-tag active state */
.filter-tag.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

/* More Filters modal footer */
.filter-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.fm-clear-btn {
  padding: 9px 20px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.fm-clear-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* ── 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-footer { flex-direction: column; gap: 8px; }
  .fm-clear-btn { width: 100%; justify-content: center; }
}
