/* Listing Cards Grid (Used in New Listings Section & All Listings Section) */
.listing-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 15px; /* Match container padding */
}

.listing-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.listing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.listing-image-container {
  position: relative;
  width: 100%;
  height: 200px; /* Fixed height for images */
  overflow: hidden;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images cover the area without distortion */
  transition: transform 0.3s ease;
}
.listing-card:hover .listing-image {
  transform: scale(1.05);
}

.listing-image-container .category-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.85em;
  font-weight: 600;
  z-index: 5;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3em;
  color: #000;
  line-height: 1.3;
  font-weight: 200;
  font-family: 'Noto Sans KR', '맑은 고딕', Malgun Gothic, 'Apple SD Gothic Neo', sans-serif;  
}

.card-content .price-new {
  font-size: 1.2em;
  font-weight: 700;
  color: #000; /* Black for price */
  margin-bottom: 15px;
}

.card-content .description-new {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.card-content .card-footer-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.card-content .progress-text {
  font-size: 0.9em;
  color: #666;
  font-weight: 500;
}

.card-content .continue-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #000; /* Black for continue button */
  font-weight: 600;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.card-content .continue-button:hover {
  color: #555; /* Darker grey on hover */
}

.card-content .continue-button .arrow-icon {
  font-size: 1.2em;
  line-height: 1;
}

.listing-card .card-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 8px;
}

.listing-card .card-meta {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 10px;
}
.listing-card .card-meta i {
  margin-right: 5px;
}
.listing-card .card-meta .separator {
  margin: 0 8px;
  color: #ccc;
}

.listing-card .card-description {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.listing-card .card-info-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.listing-card .price-tag {
  font-size: 1.3em;
  font-weight: 700;
  color: #000; /* Black for price */
}

.listing-card .views-count {
  font-size: 0.9em;
  color: #777;
}
.listing-card .views-count i {
  margin-right: 5px;
}

.listing-card .card-actions {
  padding: 15px 20px 20px;
  background-color: #f8f8f8;
  border-top: 1px solid #eee;
  text-align: center;
}

.listing-card .view-details-btn {
  width: 100%;
  padding: 12px 0;
  font-size: 1.05em;
  border-radius: 8px;
  background-color: #000; /* Black view details button */
  border-color: #000;
  color: #fff;
}
.listing-card .view-details-btn:hover {
  background-color: #333;
  border-color: #333;
}

.featured-badge {
  background-color: #ffc107;
  color: #333;
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
}
.realtor-badge {
  background-color: #28a745; /* Green for realtor */
  color: white;
  position: absolute;
  top: 15px;
  left: 100px; /* Adjusted position */
  z-index: 5;
}
.private-badge {
  background-color: #6c757d;
  color: white;
  position: absolute;
  top: 50px; /* Below featured/realtor */
  left: 15px;
  z-index: 5;
}

.favorite-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.favorite-btn:hover {
  background: white;
  transform: scale(1.1);
  color: #e74c3c;
}
.favorite-btn.active {
  color: #e74c3c;
}

.no-results {
  text-align: center;
  padding: 50px 0;
  grid-column: 1 / -1; /* Span full width in grid */
}
.no-results h4 {
  font-size: 1.8em;
  color: #555;
  margin-bottom: 15px;
}
.no-results p {
  font-size: 1.1em;
  color: #777;
}
.no-results a {
  color: #000; /* Black for links in no results */
  text-decoration: underline;
}

.placeholder-icon-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f2f5;
  color: #ccc;
}
