/* ===== LISTING PAGES — residential.php / commercial.php ===== */

/* Hero */
.listing-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  overflow: hidden;
  padding-bottom: 60px;
}
.listing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1400&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.listing-hero-commercial::before {
  background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1400&q=80');
}
.listing-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
}
.listing-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  padding-top: 100px;
}
.lh-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d4af37;
  border: 1px solid rgba(212,175,55,0.4);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}
.lh-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}
.lh-title .gold { color: #d4af37; }
.lh-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.lh-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lh-stat {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.lh-stat span {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #d4af37;
  display: block;
}
.lh-stat-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
}

/* Filters bar */
.listing-filters-bar {
  background: #111;
  border-bottom: 1px solid rgba(212,175,55,0.15);
  padding: 16px 0;
  position: sticky;
  top: 70px;
  z-index: 100;
}
.lf-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.lf-form select {
  background: #1a1a1a;
  color: #e0e0e0;
  border: 1px solid rgba(212,175,55,0.25);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23d4af37' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.lf-form select:focus { outline: none; border-color: #d4af37; }
.lf-clear {
  color: #d4af37;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 8px;
  transition: all 0.2s;
}
.lf-clear:hover { background: rgba(212,175,55,0.1); }
.lf-count {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-left: auto;
}

/* Listings section */
.listing-section {
  background: #0d0d0d;
  padding: 60px 0;
}

/* Property grid */
.listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 80px;
}

/* Listing card */
.listing-card {
  background: #141414;
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212,175,55,0.12);
}
.lc-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.lc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.listing-card:hover .lc-img-wrap img { transform: scale(1.04); }
.lc-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}
.lc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}
.lc-badge.feat { background: #d4af37; color: #000; }
.lc-badge.verified { background: rgba(0,200,100,0.9); color: #fff; }
.lc-type {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: #d4af37;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.lc-body { padding: 20px; }
.lc-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 6px;
}
.lc-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.lc-title a { color: inherit; text-decoration: none; }
.lc-title a:hover { color: #d4af37; }
.lc-city { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.lc-details {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.lc-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  margin-bottom: 14px;
}
.btn-outline-sm {
  display: inline-block;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #d4af37;
  border: 1px solid rgba(212,175,55,0.45);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline-sm:hover {
  background: #d4af37;
  color: #000;
}

/* Empty state */
.listing-empty {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255,255,255,0.4);
  font-size: 16px;
}
.listing-empty a { color: #d4af37; }

/* SEO Content */
.seo-content {
  border-top: 1px solid rgba(212,175,55,0.1);
  padding-top: 60px;
}
.seo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.seo-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 16px;
}
.seo-block p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 14px;
}
.seo-block strong { color: rgba(255,255,255,0.85); }
.seo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.seo-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border-left: 3px solid rgba(212,175,55,0.3);
}
.seo-list strong { color: #d4af37; }

.seo-types,
.seo-locations { margin-bottom: 60px; }
.seo-types h2,
.seo-locations h2,
.seo-faq h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: #fff;
  margin-bottom: 28px;
  text-align: center;
}
.seo-loc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.seo-loc-card {
  background: #141414;
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 14px;
  padding: 24px;
}
.seo-loc-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 10px;
}
.seo-loc-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.seo-loc-card strong { color: rgba(255,255,255,0.8); }

/* FAQ */
.seo-faq { margin-bottom: 40px; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: #141414;
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: 12px;
  padding: 22px 24px;
}
.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.faq-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #181408 100%);
  border-top: 1px solid rgba(212,175,55,0.15);
  padding: 80px 0;
  overflow: hidden;
  text-align: center;
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(212,175,55,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 2; }
.cta-sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 14px;
}
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 42px);
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
.cta-title .gold { color: #d4af37; }
.cta-body {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, #d4af37, #f5d56e);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.25s;
}
.btn-gold.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}
.btn-gold:hover {
  box-shadow: 0 8px 30px rgba(212,175,55,0.45);
  transform: translateY(-2px);
}

/* Responsive */
@media (min-width: 640px) {
  .listing-grid { grid-template-columns: 1fr 1fr; }
  .seo-grid { grid-template-columns: 1fr 1fr; }
  .seo-loc-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .listing-grid { grid-template-columns: repeat(3, 1fr); }
  .seo-loc-grid { grid-template-columns: repeat(3, 1fr); }
  .listing-hero-content { padding-top: 120px; }
}
