/* ===========================
   Property Cards
   =========================== */

.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.prop-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  .prop-grid, .prop-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .prop-grid, .prop-grid-3 { grid-template-columns: 1fr; }
}

.prop-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}

.prop-card.style-sharp { border-radius: 0; }
.prop-card.style-sharp .prop-media img { border-radius: 0; }

.prop-card.style-overlay { border-radius: 16px; }
.prop-card.style-overlay .prop-media { height: 280px; }
.prop-card.style-overlay .prop-body {
  margin-top: -60px;
  margin-left: 16px;
  margin-right: 16px;
  margin-bottom: 16px;
  background: white;
  border-radius: 14px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-md);
  padding: 18px;
}

.prop-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}
.prop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.prop-card:hover .prop-media img { transform: scale(1.05); }
.prop-media-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.prop-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.prop-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  transition: all 0.2s;
}
.prop-fav:hover { background: white; color: var(--accent); }

.prop-operation {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 100px;
}

.prop-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prop-type-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.prop-type {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.prop-ref {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
}

.prop-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 8px;
  cursor: pointer;
  text-wrap: balance;
}
.prop-title:hover { color: var(--accent); }

.prop-address {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.prop-specs {
  list-style: none;
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.prop-specs li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-3);
}
.prop-specs li svg { color: var(--ink-4); }

.prop-price-row { margin-bottom: 16px; margin-top: auto; }
.prop-price {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  line-height: 1.1;
}
.prop-price span {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-4);
}
.prop-expenses {
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 2px;
}

.prop-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.prop-actions .btn-secondary {
  padding: 10px 14px;
  font-size: 13px;
  flex: 1;
  justify-content: center;
}
.prop-actions .wa-btn { flex: 1.4; }

/* Overlay style adjustments */
.prop-card.style-overlay .prop-title { font-size: 20px; }
.prop-card.style-overlay .prop-specs { padding: 10px 0; }
