/* ===== Property Cards - 3 columns grid (override theme/Elementor if needed) ===== */

/* Ensure outer wrapper spacing */
.trending-properties { font-family: 'Poppins', sans-serif; padding: 24px 10px; background: #fff; box-sizing: border-box; }

/* Keep container centered */
.trending-properties .container { max-width: 1200px; margin: 0 auto; }

/* Section header */
.trending-properties .section-header { text-align:center; margin-bottom:20px; }
.trending-properties .section-header h2 { font-size:28px; margin:0 0 6px; font-weight:700; color:#000; }
.trending-properties .section-header p { margin:0; color:#7f8c8d; }

/* === Grid: force 3 columns on desktop, wrap every 3 items === */
.trending-properties .properties-wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important; /* EXACTLY 3 columns on desktop */
  gap: 24px !important;
  align-items: stretch;
  justify-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Ensure each card fills its grid cell */
.trending-properties .property-card {
  width: 100% !important;
  max-width: 380px; /* optional: keeps card size consistent */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Card hover */
.trending-properties .property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

/* Image area */
.trending-properties .property-image { position:relative; height:220px; overflow:hidden; flex:0 0 auto; }
.trending-properties .property-image img { width:100%; height:100%; object-fit:cover; display:block; }

/* Badge */
.trending-properties .card-badge { position:absolute; top:12px; right:12px; background:#ffc71e; color:#000; padding:6px 12px; border-radius:14px; font-weight:600; font-size:12px; }

/* Content */
.trending-properties .property-content { padding:16px 18px 18px; flex:1 1 auto; }
.trending-properties .property-content h3 { margin:0 0 6px; font-size:18px; font-weight:700; color:#111; }
.trending-properties .developer { margin:0 0 10px; color:#7f8c8d; font-size:13px; }
.trending-properties .property-details p { margin:6px 0; color:#34495e; font-size:14px; }

/* Actions at bottom - keep stuck to bottom */
.trending-properties .property-actions { display:flex; gap:10px; padding:14px 16px; border-top:1px solid #f0f0f0; background:transparent; flex-shrink:0; }
.trending-properties .property-actions .action-btn { flex:1; padding:10px 8px; border-radius:8px; font-weight:600; text-align:center; text-decoration:none; border:none; cursor:pointer; }

/* Buttons */
.trending-properties .view-details { background:#ffc71e; color:#000; }
.trending-properties .call-back { background:transparent; color:#ffc71e; border:1px solid #ffc71e; }

/* Mobile / Tablet responsiveness */
@media (max-width: 1100px) {
  .trending-properties .properties-wrapper { grid-template-columns: repeat(2, 1fr) !important; }
  .trending-properties .property-card { max-width: 420px; }
}
@media (max-width: 768px) {
  .trending-properties .properties-wrapper { grid-template-columns: 1fr !important; gap:18px !important; }
  .trending-properties .property-image { height:180px; }
}

/* Safety: neutralize Elementor / theme flex overrides on child elements */
.trending-properties .properties-wrapper > * { box-sizing: border-box; }
