:root {
  /* Color Palette */
  --primary-color: #5d5fef;
  --secondary-color: #365add;
  --accent-color: #5d5fef;
  --text-dark: #333333;
  --text-light: #F4F4F4;
  --background-light: #F9F9FF;
  --border-soft: #E0E0E0;
  --white: #ffffff;
}

/* Properties Section */
.properties-section {
  background-color: var(--white);
  padding: 4rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Properties Intro */
.properties-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.section-preheading {
  display: block;
  color: var(--secondary-color);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.section-title .accent {
  color: var(--accent-color);
}

.section-description {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--text-dark);
  opacity: 0.8;
}

.section-cta {
  margin-top: 2rem;
}

/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Specific layouts for different property counts */
@media screen and (min-width: 769px) {
  /* 4 Properties: Center the 4th property */
  .properties-grid:has(.property-card:nth-child(4):last-child) {
      grid-template-columns: 1fr 1fr;
      justify-content: center;
      grid-column: 1 / -1;
      
  }
 
  /* 5 Properties: Bottom two in center */
  .properties-grid:has(.property-card:nth-child(5):last-child) {
      grid-template-columns: 1fr 1fr 1fr;
  }
  .properties-grid:has(.property-card:nth-child(5):last-child) .property-card:nth-child(4),
  .properties-grid:has(.property-card:nth-child(5):last-child) .property-card:nth-child(5) {
      grid-column: 2 / span 1;
  }

  /* 6 or more Properties: Default 3-column layout */
  .properties-grid:has(.property-card:nth-child(6)) {
      grid-template-columns: repeat(3, 1fr);
  }

  .section-title {
      font-size: 2rem;
  }

  .property-details {
      padding: 1rem;
  }
}

/* Property Card */
.property-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.property-image {
  position: relative;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-badge {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.property-details {
  padding: 1.5rem;
}

.property-location {
  display: flex;
  align-items: center;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.property-location i {
  margin-right: 0.5rem;
}

.property-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature {
  background-color: var(--background-light);
  color: var(--text-dark);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.property-actions {
  display: flex;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  width: 100%;
}

.btn-primary:hover,
.btn-secondary:hover {
  background-color: var(--accent-color);
}


