#section-7 {
  display: flex;
  flex-direction: row;
  padding: 28px;
}

.sec7-con {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sec7-text-con {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sec7-text-con h2 {
  color: var(--teritary-col);
  margin-bottom: 25px;
}

.clubhouse-amenities-con {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  padding: 2.5px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 12px;
  overflow: visible;
}

.amenities {
  display: flex;
  flex-direction: column;
  height: 120px;
  width: 120px;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: small;
  font-weight: 200;
  gap: 4px;
}

.amenities img {
  height: 80px;
  width: 80px;
  border-radius: 8px;
}

.amenities span {
  width: 100%;
  overflow: hidden;
}

@media (max-width: 1200px) {
  /* tablet+mobile: make the amenities area a horizontal carousel starting at 1200px */
  #section-7,
  .sec7-con {
    flex-direction: column;
    padding: 18px;
  }

  .clubhouse-amenities-con {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-padding: 16px;
    justify-content: flex-start;
  }

  .clubhouse-amenities-con .amenities {
    flex: 0 0 calc(50% - 12px);
    /* two cards visible on wider tablets */
    max-width: calc(50% - 12px);
    min-width: 220px;
    box-sizing: border-box;
    height: auto;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    margin: 0;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
  }

  .clubhouse-amenities-con .amenities img {
    height: 110px;
    width: 110px;
    object-fit: contain;
  }

  .clubhouse-amenities-con::-webkit-scrollbar {
    height: 8px;
  }

  .clubhouse-amenities-con::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 999px;
  }

  .clubhouse-amenities-con::before,
  .clubhouse-amenities-con::after {
    content: "";
    flex: 0 0 12px;
  }
}

/* keep a tighter single-card view on small phones */
@media (max-width: 520px) {
  .sec7-text-con h2 {
    font-size: 1.4rem;
  }

  .clubhouse-amenities-con {
    gap: 12px;
    padding: 12px;
  }

  .clubhouse-amenities-con .amenities {
    flex: 0 0 65%;
    /* single card focus on phones */
    max-width: 65%;
    min-width: 180px;
  }

  .clubhouse-amenities-con .amenities img {
    height: 100px;
    width: 100px;
  }
}

@media (max-width: 375px) {
  .clubhouse-amenities-con {
    gap: 12px;
    padding: 12px;
  }

  .clubhouse-amenities-con .amenities {
    flex: 0 0 50%;
    /* single card focus on phones */
    max-width: 50%;
    min-width: 140px;
  }

  .clubhouse-amenities-con .amenities img {
    height: 85px;
    width: 85px;
  }
}
