.property-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.property-image {
  height: 160px; /* compact image */
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  transition: transform 0.4s ease;
}

.property-card:hover .property-image {
  transform: scale(1.05);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 15px;
  background: #fff;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 3px 8px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-white);
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.property-card .card-body {
  padding: 20px;
}

.property-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.property-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.property-location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.property-desc{
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.35;
  margin: 4px 0 8px 0;
}

.property-features-title{
  margin-top: 10px;
  margin-bottom: 0px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
}

.property-features{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 20px;
  padding: 0; 
  background: transparent;
  border-radius: 0;
  margin: 10px 0 0 0;
}

.property-features .pf-item{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.property-features .pf-item i{
  font-size: 16px;
  color: var(--color-text);
}

/* make it tighter inside cards on small screens */
@media (max-width: 576px){
  .property-features{
    gap: 10px 18px;
  }
  .property-features .pf-item{
    font-size: 16px;
  }
  .property-features .pf-item i{
    font-size: 20px;
  }
}

.property-developer {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.property-developer span {
  color: #16a34a;
  font-weight: 500;
}

.property-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card-link:hover .property-card {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.property-cta{
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.property-cta .arrow{
  transition: transform .2s ease;
}

.property-card-link:hover .property-cta .arrow{
  transform: translateX(3px);
}

.save-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: white;
    border: none;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    z-index: 5;
}

.save-btn i {
    font-size: 18px;
    color: #333;
}

.save-btn.saved i {
    color: #e63946;
}

/* toast*/
.save-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #212529;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.save-toast.show {
    opacity: 1;
    transform: translateY(0);
}
