/* V49 — exact reference project-card system, applied sitewide */
.project-grid,
.projects-grid,
.home3-project-grid,
.projects-eight-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
}

.project-card-unified,
.home-project-card {
  display: flex !important;
  flex-direction: column !important;
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(14, 92, 125, .18) !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fffd 100%) !important;
  box-shadow: 0 14px 34px rgba(5, 45, 67, .075) !important;
}

.project-card-unified .home-project-media,
.home-project-card .home-project-media {
  position: relative !important;
  width: 100% !important;
  height: 235px !important;
  min-height: 235px !important;
  overflow: hidden !important;
  background: #eef6f5 !important;
}

.project-card-unified .home-project-media img,
.home-project-card .home-project-media img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

.project-card-unified .home-project-body,
.home-project-card .home-project-body {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: max-content !important;
  flex: none !important;
  gap: 8px !important;
  padding: 18px 20px 20px !important;
}

.project-card-unified .home-project-body > *,
.home-project-card .home-project-body > * {
  margin: 0 !important;
  min-height: 0 !important;
}

.project-card-unified h3,
.home-project-card h3 {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  font-size: 20px !important;
  line-height: 1.28 !important;
  color: #043d59 !important;
}

.project-card-unified .project-location,
.home-project-card .project-location {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #66859a !important;
}

.project-card-unified .project-location .ui-icon,
.home-project-card .project-location .ui-icon {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
}

.project-card-unified .project-price,
.home-project-card .project-price {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  line-height: 1.2 !important;
}

.project-card-unified .project-price strong,
.home-project-card .project-price strong {
  font-size: 24px !important;
  line-height: 1.2 !important;
}

.project-card-unified .project-price small,
.home-project-card .project-price small {
  font-size: 15px !important;
  line-height: 1.35 !important;
  color: #52778c !important;
}

.project-card-unified .project-config,
.home-project-card .project-config {
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #66859a !important;
}

/* Exact requested 8px between configuration line and the action row */
.project-card-unified .project-config + .home-project-actions,
.home-project-card .project-config + .home-project-actions {
  margin-top: 0 !important;
}

.project-card-unified .home-project-actions,
.home-project-card .home-project-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 48px !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.project-card-unified .home-project-actions > a,
.home-project-card .home-project-actions > a {
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.project-card-unified .home-project-actions > a:first-child,
.home-project-card .home-project-actions > a:first-child {
  width: 100% !important;
  background: #edf7f5 !important;
  color: #043d59 !important;
}

.project-card-unified .home-project-actions > a:first-child .ui-icon,
.home-project-card .home-project-actions > a:first-child .ui-icon {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
}

.project-card-unified .call-square,
.home-project-card .call-square {
  width: 48px !important;
  min-width: 48px !important;
  padding: 0 !important;
  background: #edf7e7 !important;
  color: #55a84f !important;
}

.project-card-unified .call-square .ui-icon,
.home-project-card .call-square .ui-icon {
  width: 18px !important;
  height: 18px !important;
}

.project-card-unified .status-pill-home,
.home-project-card .status-pill-home {
  top: 12px !important;
  left: 12px !important;
}

.project-card-unified .home-fav,
.home-project-card .home-fav {
  top: 12px !important;
  right: 12px !important;
}

@media (max-width: 1180px) {
  .project-grid,
  .projects-grid,
  .home3-project-grid,
  .projects-eight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 860px) {
  .project-grid,
  .projects-grid,
  .home3-project-grid,
  .projects-eight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
  .project-grid,
  .projects-grid,
  .home3-project-grid,
  .projects-eight-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .project-card-unified .home-project-media,
  .home-project-card .home-project-media { height: 235px !important; min-height: 235px !important; }
}
