.ideal-home-container {
  .ideal-home-title {
    margin-bottom: 2rem;
  }

  .ideal-home-highlight {
    color: var(--accent-color1);
  }

  .ideal-home-property-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 250px; // Fixed height for cards
    display: flex;
    flex-direction: column;

    .ideal-home-image-container {
      overflow: hidden;
      margin-bottom: -4px;
      flex: 1; // Fill available space
      display: flex;
      align-items: center;
      justify-content: center;
      span {
        width: 100%;
        height: 100%;
      }
    }

    .ideal-home-property-image {
      width: 100%;
      height: 100%;
      object-fit: cover; // Ensure the image covers the container
      border-radius: 8px;
    }

    .ideal-home-property-details {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(0, 0, 0, 28%);
      color: #fff;
      padding: 1rem;
      text-align: left;
      border-bottom-left-radius: 8px;
      border-bottom-right-radius: 8px;
      height: 100%;
      justify-content: center;
      display: flex;
      align-items: center;
      div {
        display: grid;
        justify-content: center;
        a {
          margin: auto;
        }
      }
      h3 {
        margin: 0;
        font-size: 2rem;
        color: white;
        text-align: center;
        text-transform: uppercase;
      }
      p {
        margin: 0.5rem 0;
      }
    }
  }
  @include max-width(992px) {
    padding: 0rem 10% 0rem 10%;
  }

  @include max-width(767px) {
    padding: 0;
  }
}
