/* =======================
   PRE-INIT (FOUC killer)
   ======================= */
/* Only when JS is enabled (html.aeap-js) AND on our target pages (body.aeap-prep),
   hide the whole features block before paint so "Amenities" never flashes. */
html.aeap-js body.aeap-grid-sidebar.aeap-prep .other-features-wrap {
  visibility: hidden;
}
html.aeap-js body.aeap-grid-sidebar.aeap-prep .other-features-wrap .other-features-list {
  display: block !important;
  height: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
  border: 0 !important; /* avoid 1px sliver */
}

/* =======================
   NORMAL STYLES
   ======================= */
.other-features-wrap { position: relative; }

/* Toggle bar — left-aligned label */
.other-features-wrap .enable-other-features .btn-other-features {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;   /* LEFT align */
  gap: 10px;
  background: #f7f7f9;
  color: inherit;
  text-decoration: none;
  border: 1px solid #e2e2e8;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
}
.other-features-wrap .enable-other-features .btn-other-features:hover {
  background: #f2f2f6;
}

/* Chevron rotation on open */
.other-features-wrap .enable-other-features .btn-other-features i.fa {
  transition: transform .2s ease;
}
.other-features-wrap .enable-other-features .btn-other-features.is-open i.fa {
  transform: rotate(180deg);
}

/* Panel (JS animates height) */
.other-features-wrap .other-features-list {
  display: block !important;
  overflow: hidden;
  margin-top: 10px;  /* spacing when open */
}

/* While CLOSED: truly hidden (no gap) */
.other-features-wrap .other-features-list.aeap-closed {
  height: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
}

/* Optional tidying for plain lists */
.other-features-wrap .other-features-list ul { list-style: none; margin: 0; padding: 0; }
.other-features-wrap .other-features-list li { margin: 6px 0; }