.amenities-container {
  width: 100%;
  height: 800px;
  position: relative;
  background: #FFF8F1;
  display: flex;
  gap: 20px;
  /* optional gap */
  object-fit: cover;
  padding: 0; 
  margin: 0;
}

.amenities-list {
  width: 20%;
  /* 20% of container width */
  height: 700px;
  /* overflow-y: auto; allow scroll if list is long */
  position: relative;
  /* remove absolute for flex flow */
  padding: 5px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  /* Stack children vertically */
  justify-content: center;
  align-items: center;
  /* Center horizontally */
  padding-left: 40px;
}

.amenities-list h2 {
  padding:0px 40px 40px 0px;
  font-family: 'Cerost';
  font-weight: 400;
  font-style: normal;
  font-size: 48px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  vertical-align: middle;
  text-transform: capitalize;

}

.amenities-display::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge */
.amenities-display {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.amenities-list ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.amenities-list li {
  font-family: 'DM Sans';
  font-weight: 400;
  font-style: normal;
  font-size: 14.99px;
  line-height: 130%;
  letter-spacing: 0%;

  padding: 10px;
  cursor: pointer;
  border-radius: 1px;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #ccc;
}

.amenities-display {
  position: relative;
  /* margin: 20px; */
  width: 100%;
  height: 800px;
  /* fixed height container */
  display: flex;
  flex-direction: column;
  /* stack images vertically */
  justify-content: flex-start;
  /* align top */
  align-items: center;
  /* center images horizontally */
  /* padding: 20px; */
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  gap: 40px;
  
}


.amenities-display img {
    display: none;
  /* fit inside box without distortion */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  max-height: 100%; /* don't exceed container height */
  max-width: 100%; /* don't exceed container width */
  border-radius: 12px;
  object-fit: contain; /* show full image without cropping */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}


.amenities-display img.active {
  display: block;
}

.amenities-list li:hover {
  color: #f0a152;
  /* text color on hover */
  border-bottom-color: #f0a152;
  /* change border color on hover */
}

.amenities-list li.active {
    color: #f0a152;
    border-bottom-color: #f0a152;
}

.amenities-container {
  display: flex;
  flex-direction: row; /* List and images side by side */
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 60px;
  gap: 40px;
  background: #FFF8F1;
}

.amenities-list {
  width: 25%;
  height: auto;
  align-items: flex-start;
}

.amenities-display {
  width: 75%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

/* ===============================
   Tablets (≤992px): Keep horizontal but tighter
================================= */
@media screen and (max-width: 992px) {
  .amenities-container {
    padding: 20px 30px;
    gap: 20px;
  }

  .amenities-list {
    width: 30%;
  }

  .amenities-display {
    width: 70%;
  }

  .amenities-list h2 {
    font-size: 36px;
  }
}


@media screen and (max-width: 1024px) {
  .amenities-container {
    flex-direction: column; /* Stack list and images */
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 20px;
  }

  .amenities-list {
    width: 100%;
    align-items: center;
    padding: 0;
  }

  .amenities-list h2 {
    font-size: 28px;
    padding: 10px 0;
  }

  .amenities-list ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
  }

  .amenities-list li {
    border-bottom: none;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .amenities-display {
    width: 100%;
    height: auto;
    overflow: visible;
    padding-top: 20px;
  }

  .amenities-display img {
    width: 90%;
    height: auto;
    border-radius: 10px;
  }
}

/* ===============================
   Mobile (≤768px): Stack vertically
================================= */
@media screen and (max-width: 768px) {
  .amenities-container {
    flex-direction: column; /* Stack list and images */
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 20px;
  }

  .amenities-list {
    width: 100%;
    align-items: center;
    padding: 0;
  }

  .amenities-list h2 {
    font-size: 28px;
    padding: 10px 0;
  }

  .amenities-list ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
  }

  .amenities-list li {
    border-bottom: none;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .amenities-display {
    width: 100%;
    height: auto;
    overflow: visible;
    padding-top: 20px;
  }

  .amenities-display img {
    width: 90%;
    height: auto;
    border-radius: 10px;
  }
}

/* ===============================
   Small Phones (≤480px)
================================= */
@media screen and (max-width: 480px) {
  .amenities-list h2 {
    font-size: 22px;
  }

  .amenities-list li {
    font-size: 13px;
    padding: 6px 12px;
  }

  .amenities-display img {
    width: 100%;
  }
}
