/* property-card.css */
.property-card {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-md); /* Use variable */
  overflow: hidden;
  box-shadow: var(--shadow-sm); /* Use variable */
  transition: var(--transition-base);
  border: 1px solid var(--border-color); /* Add subtle border */
  display: flex; /* Use flexbox for better structure */
  flex-direction: column; /* Stack image and details */
  height: 100%; /* Ensure cards in a grid have same height */
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md); /* Use variable */
}

.property-image {
  position: relative;
  overflow: hidden;
  line-height: 0; /* Remove potential space below image */
}

.property-image img {
  display: block;
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  transition: transform 0.4s ease; /* Smoother zoom */
}

.property-card:hover .property-image img {
  transform: scale(1.05); /* Subtle zoom on hover */
}

.property-image .label {
  position: absolute;
  top: var(--spacing-sm); /* Use variable */
  padding: 4px 8px; /* Adjust padding */
  border-radius: var(--border-radius-sm); /* Use variable */
  font-size: var(--font-size-xs); /* Use variable */
  font-weight: 600;
  z-index: 2;
  text-transform: uppercase; /* Uppercase labels */
  letter-spacing: 0.5px;
}

.property-image .label.featured {
  left: var(--spacing-sm);
  background-color: var(--primary-color);
  color: var(--text-on-primary);
}

.property-image .label.for-sale {
  /* Or for-rent, etc. */
  right: var(--spacing-sm);
  background-color: var(--accent-color); /* Use accent color */
  color: var(--text-light);
}

/* Optional Image Overlay (Example) */
.property-image .image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  padding: var(--spacing-sm);
  color: var(--text-light);
  font-size: var(--font-size-sm);
  z-index: 1;
  display: flex;
  justify-content: flex-end; /* Align icons right */
  gap: var(--spacing-md);
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease;
}

.property-card:hover .image-overlay {
  opacity: 1; /* Show on hover */
}

.image-overlay i {
  margin-right: 4px;
}

.property-details {
  padding: var(--spacing-md); /* Use variable */
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allow details section to grow */
}

.property-details h3 {
  color: var(--secondary-color); /* Darker heading */
  font-size: var(--font-size-lg); /* Slightly larger title */
  margin-top: 0;
  margin-bottom: var(--spacing-xs); /* Less space below title */
  line-height: 1.3;
  /* Truncate long titles (optional) */
  /* white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; */
}

.property-details .address {
  color: var(--text-secondary);
  font-size: var(--font-size-sm); /* Smaller address */
  margin-bottom: var(--spacing-md); /* Space below address */
  display: flex; /* Align icon and text */
  align-items: center;
  gap: var(--spacing-xs);
}
.property-details .address i {
  color: var(--primary-color); /* Color the location icon */
}

.property-details .specs {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-md) 0; /* Space below specs */
  display: grid; /* Use grid for alignment */
  grid-template-columns: repeat(
    auto-fit,
    minmax(60px, 1fr)
  ); /* Responsive columns */
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  text-align: center; /* Center spec items */
  border-top: 1px solid var(--border-color); /* Separator line */
  border-bottom: 1px solid var(--border-color); /* Separator line */
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.property-details .specs li {
  display: flex;
  align-items: center; /* Align icon and text horizontally */
  justify-content: center; /* Center content */
  gap: var(--spacing-xs); /* Space between icon and text */
}

.property-details .specs i {
  font-size: var(--font-size-md); /* Adjust icon size */
  color: var(--primary-color); /* Use primary color for icons */
}

/* Price and Actions - Push to bottom */
.price-actions {
  margin-top: auto; /* Push to the bottom */
  padding-top: var(--spacing-md); /* Space above price/actions */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align price left */
}

.price .original-price {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  text-decoration: line-through;
  line-height: 1;
  margin-bottom: 2px; /* Small space */
}

.price .current-price {
  font-size: var(--font-size-lg); /* Prominent price */
  color: var(--primary-color); /* Use primary color for price */
  font-weight: 700;
  line-height: 1;
}

.actions {
  display: flex;
  gap: var(--spacing-sm); /* Space between action buttons */
}

.actions button {
  background-color: transparent; /* Transparent background */
  border: 1px solid var(--border-color); /* Border */
  border-radius: var(--border-radius-circle); /* Circular */
  width: 32px; /* Smaller buttons */
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-secondary); /* Icon color */
  transition: var(--transition-base);
}

.actions button:hover {
  background-color: var(--primary-color);
  color: var(--text-on-primary);
  border-color: var(--primary-color);
}

.actions button i {
  font-size: var(--font-size-sm); /* Adjust icon size */
}

/* Optional Agent Profile (Removed from default flow for simplicity) */
/* .agent-profile { ... } */
