/* Grid layout for search results */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0;
  z-index: 1;
  max-height: 68vh;   
  overflow-y: auto;
  margin-top: 2rem;
  line-height: 0.4rem;
}

.search-result-card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* ADD THIS for smooth animation */
}
.search-result-card:hover {
  transform: translateY(-5px); /* Moves the card 5px up */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); /* Makes the shadow more pronounced */
}

.search-result-image {
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.property-address{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    gap: 5px;
    width: 100%;

}

.search-result-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  font-size: 0.3em;

}

@media (max-width: 600px) {
  .search-results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .search-result-image {
    height: 160px;
  }
  .search-result-details {
    padding: 12px;
  }
}