body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background: white;
}

.card-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
  align-items: center;
}

.property-card {
  display: flex;
  flex-direction: column; /* Default for smaller screens */
  background-color: white;
  border: 2px solid #d1e7f2;
  border-radius: 8px;
  padding: 15px;
  align-items: center;
  justify-content: center;
  width: 90%;
  margin: 0 auto 20px auto;
}

.property-image {
  max-width: 100%; /* Responsive width */
  height: auto; /* Responsive height */
  background-color: #ccc;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.property-info {
  padding: 15px 0;
  text-align: center; /* Centered for smaller screens */
}

.property-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
}

.property-details {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #555;
  background-color: #d4d1d1;
  height: auto;
  padding: 5px;
  border-radius: 5px;
}

.property-status, .premium-badge {
  font-size: 14px;
  color: #27ae60;
  font-weight: bold;
  margin-bottom: 5px;
}

.property-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #e8f6fc;
  padding: 15px;
}

.property-price, .price-per-sqft {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.btn {
  padding: 10px 15px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  width: 150px;
  margin-top: 10px;
}

.btn-contact {
  background-color: #e74c3c;
  color: white;
}

.btn-phone {
  background-color: white;
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

.addProperty {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 50px;
  height: 50px;
  z-index: 1000;
}

/* Media Queries */
@media (min-width: 768px) {
  .property-card {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      padding: 20px;
      height: 250px;
  }

  .property-image {
      max-width: 200px;
      height: 200px;
  }

  .property-info {
      padding: 0 15px;
      text-align: left;
  }

  .property-actions {
      align-items: flex-end;
  }

  .property-price, .price-per-sqft {
      margin-right: 0;
  }

  .btn {
      width: 150px;
  }
}

@media (min-width: 1024px) {
  .property-card {
      width: 80%;
  }

  .property-info {
      padding: 0 30px;
  }

  .property-price, .price-per-sqft {
      margin-right: 70px;
  }
}
