/* ═══════════════════════════════════════════════════════════════
   Vista Realty — property card component
   Shared by index.html (featured grid) and properties.html (full
   grid). Markup is produced by assets/js/vista-cards.js.
   ═══════════════════════════════════════════════════════════════ */

/* Card image height (Tailwind utility missing from compiled build) */
.h-60 { height: 15rem; }

/* Card elevation & hover */
.prop-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.35s ease;
}
.prop-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.11), 0 10px 10px -5px rgba(0,0,0,0.07);
  border-color: rgba(163,132,83,0.3);
  transform: translateY(-3px);
}

/* Image zoom on hover */
.prop-card-img {
  transition: transform 0.7s ease;
}
.prop-card:hover .prop-card-img {
  transform: scale(1.08);
}

/* Image overlay (replaces bg-primary/10 + group-hover:bg-primary/5) */
.card-img-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(17,24,39,0.10);
  transition: background-color 0.5s ease;
}
.prop-card:hover .card-img-overlay {
  background-color: rgba(17,24,39,0.03);
}

/* Property-type badge bottom-right of image */
.card-type-badge {
  background-color: rgba(17,24,39,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* "View Details" link */
.card-vd-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: hsl(var(--gold));
  border-bottom: 1px solid rgba(163,132,83,0.45);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.card-vd-link:hover {
  color: hsl(var(--foreground));
  border-bottom-color: rgba(17,24,39,0.35);
}

/* Filtered-out card + empty state (used with vista-filters.js) */
[data-property-card].is-hidden { display: none; }
#no-results { display: none; }
#no-results.visible { display: block; }

@media (prefers-reduced-motion: reduce) {
  .prop-card-img { transition: none; }
}
