/* ============================
   Project Grid
============================ */
.project-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
}

/* ============================
   Project Card
============================ */
.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================
   Property Image
============================ */
.property-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 180px;
}
.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.property-image-wrapper:hover .property-image {
  transform: scale(1.05);
}

/* ============================
   Status Badge
============================ */
.tag-construction {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #2f80ed;
  color: #fff;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ============================
   Tags
============================ */
.tags {
  padding: 8px 14px 0;
}
.tags .tag {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  margin: 2px 4px 0 0;
  color: #fff;
}
.tag.mortgage { background: #27ae60; }
.tag.installment { background: #2d9cdb; }
.tag.promotions { background: #ff7e00; }

/* ============================
   Property Info
============================ */
.property-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 14px;
}
.property-info h3.title a {
  text-decoration: none;
  color: #222;
  font-size: 16px;
  font-weight: 600;
}
.price {
  color: #222;
  font-size: 17px;
  font-weight: 700;
  margin: 5px 0;
}
.location {
  color: #555;
  font-size: 13px;
  margin-bottom: 5px;
}

/* ============================
   Developer Box
============================ */
.developer-box {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px;
  border: 1px dashed #ccc;
  border-radius: 5px;
}
.developer-box img {
  width: 20px;
  height: 20px;
}

/* ============================
   Buttons
============================ */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.view-button,
.call-button {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.view-button { background: #2f80ed; }
.view-button:hover { background: #1c6ed8; }
.call-button { background: #27ae60; }
.call-button:hover { background: #1f8b4c; }

/* ============================
   Amenities
============================ */
.amenities-list.icons-distance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
  font-size: 12px;
  color: #333;
}
.amenities-list img {
  width: 16px;
  height: 16px;
}

/* ============================
   Pagination
============================ */
.pagination {
  text-align: center;
  margin: 20px 0;
}
.pagination a {
  padding: 6px 10px;
  border: 1px solid #ccc;
  margin: 0 2px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  color: #333;
}
.pagination .current {
  background: #2f80ed;
  color: #fff;
  border: none;
}


.property-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 12px 14px;
  min-height: 180px; /* Ensures a minimum content height */
}

.developer-box {
  margin-top: auto; /* Push developer box upwards when content is short */
  margin-bottom: 10px; /* Consistent gap before buttons */
}

.card-actions {
  margin-top: 10px; /* Always keeps buttons spaced evenly */
}
