.popular-property-section {
  width: 100%;
  padding: 0px 0 32px 0;
  background: #fff;
  text-align: center;
}
.popular-property-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--hr-primary, #3B82F6);
  margin-bottom: 32px;
  text-align: center;
}
.popular-property-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.popular-property-card {
  background: #091235;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(59,130,246,0.07);
  min-width: 180px;
  max-width: 200px;
  min-height: 260px;
  height: 290px;
  flex: 1 1 160px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}
.popular-property-card:hover {
  box-shadow: 0 8px 32px 0 rgba(59,130,246,0.13);
  transform: translateY(-4px) scale(1.03);
}
.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  border-radius: 16px;
  filter: brightness(0.7) saturate(1.1);
}
.popular-property-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(37,99,235,0.28) 0%, rgba(37,99,235,0.55) 100%);
  z-index: 2;
}
.property-info {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 3;
  padding: 24px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: none;
  text-align: left;
}
.property-date {
  display: inline-block;
  background: #fff;
  color: #222;
  font-size: 0.72rem;
  font-weight: 400;
  border-radius: 12px;
  padding: 2px 10px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px 0 rgba(59,130,246,0.07);
  opacity: 0.95;
}
.property-title {
  font-size: 0.92rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(37,99,235,0.12);
  opacity: 0.98;
}
.property-price {
  font-size: 1.02rem;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 2px 8px rgba(37,99,235,0.12);
  opacity: 0.98;
}
@media (max-width: 900px) {
  .popular-property-section {
    padding: 12px 0 18px 0;
  }
  .popular-property-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
    text-align: center;
  }
  .popular-property-cards {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    display: flex;
  }
  .popular-property-card {
    min-width: 0;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 18px 10px;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(35,64,142,0.07);
  }
  .popular-property-card-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  .popular-property-card-desc {
    font-size: 0.98rem;
  }
  .popular-property-card-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
}

@media (max-width: 900px) {
  .popular-property-section {
    padding: 20px 16px 28px 16px; /* Adjusted vertical + horizontal padding */
  }

  .popular-property-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding: 0 10px; /* Add side spacing for narrow screens */
  }

  .popular-property-cards {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  .popular-property-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    padding: 0; /* Remove card padding to prevent overflow */
    box-shadow: 0 2px 10px rgba(35,64,142,0.07);
  }

  .property-info {
    padding: 20px 16px 16px 16px; /* Uniform content padding inside card */
  }

  .property-title {
    font-size: 1rem;
  }

  .property-price {
    font-size: 1.05rem;
  }

  .property-date {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .property-image {
    border-radius: 12px;
  }
}
