/* 🌐 General Layout */
.nova-properties.full-width {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* 🏷️ Section Title */
.nova-properties-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: #111;
  margin: 50px 0 30px;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  position: relative;
}
.nova-properties-title::after {
  content: "";
  width: 70px;
  height: 3px;
  background: #0073aa;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* 🏠 Grid Layout */
.nova-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 15px;
}

/* 🧱 Card Container */
.nova-card {
  width: calc(33.333% - 10px);
  background: #fff;
  border-radius: 10px;
  overflow: hidden; /* ✅ ensures no gaps or image overflow */
  box-shadow: 2px 6px 24px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;
}

.nova-card:hover {
  transform: translateY(-4px);
  box-shadow: 2px 10px 24px rgba(0, 0, 0, 0.25);
}

/* 🖼️ Image Wrapper (fixed height + aspect fill) */
.nova-card-img-wrapper {
  width: 100%;
  height: 280px; /* consistent image height */
  background: #f2f2f2; /* fallback color if image fails to load */
  overflow: hidden;
  display: block;
  position: relative;
  line-height: 0; /* ✅ removes inline gap causing white space */
}

/* 🖼️ Image (force fill properly) */
.nova-card-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover; /* ✅ crops image perfectly */
  object-position: center;
  display: block;
  border: none;
  margin: 0;
  padding: 0;
  transform: scale(1);
  transition: transform 0.5s ease-in-out;
}

/* Hover zoom */
.nova-card:hover .nova-card-img {
  transform: scale(1.05);
}

/* 🏷️ Status Badge */
.nova-status-badge {
  color: #ffffff !important;
  background: #000000fc !important;
  font-weight: 500 !important;
  text-align: center !important;
  text-transform: capitalize !important;
  width: auto !important;
  padding: 9px 20px 9px 20px !important;
  top: 10px !important;
  left: 10px !important;
  font-size: 14px !important;
  line-height: 14px !important;
  position: absolute !important;
  overflow: hidden !important;
  display: inherit !important;
  border-radius: 5px;
}

/* 📄 Card Content */
.nova-card-content {
  padding: 12px 15px 15px;
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
}

.nova-card-content h2 {
  color: #000;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  margin: 5px 0 8px;
}

.nova-card-content h1 {
  color: #000;
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0;
}

.nova-card-content p {
  font-size: 12px;
  color: #444;
  margin-bottom: 10px;
}

/* 🛏️ Bed / Bath Details */
.nova-card-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: #000;
}
.nova-card-details img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* 🪄 View More Button */
#nova-view-more {
  background: #0073aa;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
#nova-view-more:hover {
  background: #005c87;
}

/* 📱 Responsive */
@media (max-width: 1024px) {
  .nova-card {
    width: calc(50% - 10px);
  }
}
@media (max-width: 768px) {
  .nova-card {
    width: 100%;
  }
  .nova-card-img-wrapper {
    height: 230px;
  }
}
