#heading {
  display: flex;
  justify-content: space-between;
  font-size: 1.1em;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 4px;
  color: #007d69;
}

.roomImage {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  /* biome-ignore lint/complexity/noImportantStyles: must beat the pannellum viewer's own sizing */
  min-height: 400px !important;
  margin-bottom: 20px;
}

/* 2D photos: no viewer, so size to the image rather than the panorama's minimum height */
.roomImage--flat {
  /* biome-ignore lint/complexity/noImportantStyles: overrides the .roomImage rule above */
  min-height: 0 !important;
}

.roomImage--flat img {
  display: block;
  width: 100%;
  height: auto;
}

/* Features accordion */
.features {
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 6px;
  overflow: hidden;
}

.feature {
  border-top: 1px solid rgba(128, 128, 128, 0.35);
}

.feature:first-child {
  border-top: none;
}

.feature:not(.feature--group),
.feature--group > summary {
  padding: 0.6em 0.9em;
}

.feature--group > summary {
  display: flex;
  align-items: center;
  gap: 0.6em;
  cursor: pointer;
  list-style: none; /* hide default marker (Firefox/Chrome) */
  user-select: none;
}

.feature--group > summary::-webkit-details-marker {
  display: none; /* hide default marker (Safari) */
}

.feature--group > summary:hover {
  background-color: rgba(128, 128, 128, 0.12);
}

.feature--group > summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

.feature__label {
  flex: 1;
  font-weight: 600;
}

.feature__count {
  min-width: 1.6em;
  padding: 0.1em 0.5em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8em;
  line-height: 1.4;
  text-align: center;
  opacity: 0.75;
}

/* Chevron indicator: points right when closed, down when open */
.feature--group > summary::after {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.feature--group[open] > summary::after {
  transform: rotate(45deg);
}

.feature__children {
  margin: 0;
  padding: 0.2em 0.9em 0.7em 2.2em;
}

.feature__children li {
  padding: 0.2em 0;
}

@media (prefers-reduced-motion: reduce) {
  .feature--group > summary::after {
    transition: none;
  }
}
