/* Global styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}

/* Property Listing Container */
.property-listing {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  font-family: sans-serif;
}

/* Property Card */
.property-cardNew {
  display: flex;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-left: 150px;
  margin-right: 50px;
  width: 1000px;
}

/* Property Image */
.property-image {
  position: relative;
  flex: 1;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  background-color: #28a745;
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  margin-right: 5px;
}

.badge.featured {
  background-color: #ffc107;
}

.badge.zero-brokerage {
  background-color: #007bff;
}

/* Property Info */
.property-info {
  flex: 2;
  padding: 20px;
}

.property-info h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.property-info .rating {
  font-size: 14px;
  color: #555;
}

.property-info .price {
  font-size: 20px;
  font-weight: bold;
  color: #000;
  margin: 10px 0;
}

.property-info .details {
  font-size: 14px;
  color: black;
  font-weight: bold;
}

.property-info .highlights {
  font-size: 14px;
  color: #777;
  margin: 10px 0;
}

/* Action Buttons */
.actions {
  display: flex;
  gap: 10px;
}

.actions button {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.actions button:first-child {
  background-color: #007bff;
  color: #fff;
}

.actions button:last-child {
  background-color: #28a745;
  color: #fff;
}

/* Media Queries for Responsiveness */

/* For Small Devices (up to 600px) */
@media (max-width: 600px) {
  .property-cardNew {
      margin-left: 20px;
      margin-right: 20px;
      flex-direction: column;
      width: 100%;
  }
  
  .property-info {
      padding: 10px;
  }
  
  .property-info h3 {
      font-size: 16px;
  }
  
  .property-info .price {
      font-size: 18px;
  }

  .actions {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .actions button {
      width: 100%;
      margin-bottom: 10px;
  }
}

/* For Medium Devices (601px to 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  .property-cardNew {
      margin-left: 50px;
      margin-right: 50px;
      width: 80%;
  }

  .property-info {
      padding: 15px;
  }

  .property-info h3 {
      font-size: 18px;
  }

  .property-info .price {
      font-size: 19px;
  }

  .actions {
      gap: 15px;
  }

  .actions button {
      width: 48%;
  }
}

/* For Large Devices (1025px and above) */
@media (min-width: 1025px) {
  .property-cardNew {
      margin-left: 150px;
      margin-right: 50px;
      width: 1000px;
  }

  .property-info {
      padding: 20px;
  }

  .property-info h3 {
      font-size: 20px;
  }

  .property-info .price {
      font-size: 22px;
  }

  .actions button {
      width: auto;
  }
}
