.feature-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 60px;
    gap: 5rem;
    height: max-content;
}

.feature-wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-wrapper h1,.featured-wrapper p{
    width: 100%;
    text-align: left;
}

.feature-container{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
}
.segment {
  margin-bottom: 60px;
  width: 100%
}

.segment-header {
  text-align: center;
  margin-bottom: 20px;
}

.segment-logo {
  height: 90px;
  width: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}

.segment-tagline {
  margin-bottom: 5rem;
}

.property-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
}

.property-card {
  position: relative;
  width: 350px;
  height: 350px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 16 / 9; /* optional */
}

/* .property-card a{
  position: relative;
  height: 100%;
  color: inherit;
  text-decoration: none;
  object-fit: cover;
}

.property-card a img {
  position: absolute;
  height: 100%;
  color: inherit;
  text-decoration: none;
  object-fit: cover;
} */

.property-overlay {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 15px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: background 0.5s ease-in-out;
}

/* Create the gradient overlay using ::before */
.property-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 24, 69, 0.9), rgba(0, 24, 69, 0.9));
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.property-logo {
  height: 90px;
  width: 180px;
  object-fit: contain;
  z-index: 2;
  transition: opacity 0.5s ease-in-out;
}

/* Hover effect */
.property-overlay:hover::before {
  opacity: 0;
}

.property-overlay:hover .property-logo {
  opacity: 0;
}

.property-overlay:hover .property-status {
  opacity: 0;
} 

.property-title {
  font-size: 1.1rem;
  margin: 0;
}

.property-status {
  position: absolute;
  bottom: 4rem;
  font-size: 1rem;
  padding: 6px 12px;
  text-transform: uppercase;
  z-index: 2;
  color: #fff;
  transition: opacity 0.5s ease-in-out;
}

.view-all-link {
  text-align: center;
  margin-top: 15px;
}

.view-all-link a {
  color: #CB9C58;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.5s ease-in-out;
}

.view-all-link a:hover {
   color: #997440;
}

.no-properties {
  text-align: center;
  color: #999;
  font-style: italic;
}

/* === Tablet (max-width: 1024px) === */
@media (max-width: 1024px) {
  .feature-section {
    padding: 40px 60px;
    gap: 3rem;
  }

  .feature-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .property-grid {
    gap: 2rem;
  }

  .property-card {
    width: 380px;
    height: 400px;
  }
}

/* === Mobile (max-width: 768px) === */
@media (max-width: 768px) {
  .feature-section {
    padding: 30px 20px;
    gap: 2rem;
  }

  .feature-wrapper h1,
  .feature-wrapper p {
    text-align: center;
  }

  .segment-header {
    padding: 0 10px;
  }

  .segment-logo {
    height: 80px;
  }

  .segment-tagline {
    margin-bottom: 3rem;
    text-align: center;
  }

  .property-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .property-card {
    width: 100%;
    height: auto;
  }

  .property-image {
    height: 200px;
  }

  .property-logo{ 
    height: 50px;
    width: 120px;
  }

  .property-status{
    bottom: 3rem;
    font-size: 0.8rem;
  }
}