/* ============================================
   LISTINGS CARD GRID
   Property listing cards displayed in a responsive grid
============================================ */

/* Container for the listings section */
.listings-section {
  padding: 170px 0 80px;
  min-height: 50vh;
}

/* Page heading */
.listings-heading {
  margin-bottom: 40px;
  text-align: center;
}

.listings-heading h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  margin-bottom: 12px;
}

.listings-heading p {
  color: #999;
  font-size: 16px;
}

/* Grid of listing cards - responsive columns */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Individual listing card */
.listing-card {
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Card image container */
.listing-card .card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1a1a;
}

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

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

/* Placeholder when no image */
.listing-card .card-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  color: #555;
  font-size: 14px;
}

/* Card content (title, price, location) */
.listing-card .card-content {
  padding: 24px;
}

.listing-card .card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card .card-price {
  font-size: 20px;
  font-weight: 600;
  color: #c9a962;
  margin-bottom: 8px;
}

.listing-card .card-location {
  font-size: 14px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 6px;
}

.listing-card .card-location i {
  font-size: 12px;
  opacity: 0.8;
}

/* Loading state */
.listings-loading {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.listings-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #c9a962;
  border-radius: 50%;
  animation: listings-spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

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

/* Empty state */
.listings-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.listings-empty i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.listings-empty p {
  font-size: 18px;
  margin-bottom: 8px;
}

.listings-empty span {
  font-size: 14px;
}

/* Error state */
.listings-error {
  text-align: center;
  padding: 60px 20px;
  color: #e74c3c;
}

.listings-error i {
  font-size: 48px;
  margin-bottom: 12px;
}

.listings-error p {
  font-size: 18px;
  margin-bottom: 8px;
}

.listings-error span {
  font-size: 14px;
  color: #999;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .listings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .listings-section {
    padding: 40px 0 60px;
  }
}


@media (max-width: 768px) {
  .listings-section {
      padding: 150px 0 80px;

  }
}