/* Rooms & conference page */

/* ---------- Jump links under the page heading ---------- */
.room-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: -1.2rem 0 3.4rem;          /* tucked up under the page heading */
}
.room-jump a {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 2px solid var(--green);
  border-radius: 300px;
  transition: background-color 0.2s, color 0.2s;
}
.room-jump a:hover { background: var(--green); color: var(--cream); }

/* ---------- A room: photo on one side, details on the other ---------- */
.room-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 3.6rem;
  align-items: center;
  scroll-margin-top: 2rem;           /* a little air above the room when you jump to it */
}
.room-feature + .room-feature { margin-top: 5rem; }
article.room-feature:nth-of-type(even) .room-feature-media { order: 2; }
.room-feature-media > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.room-code { font-weight: 600; color: var(--brown); }
.room-feature-body h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin: 0.1rem 0 0.6rem;
}
.room-rate {
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 1rem;
}
.room-rate strong {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  margin-right: 0.25rem;
}

.room-points {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.45rem 1.6rem;
  margin: 1.3rem 0 1.9rem;
}
.room-points li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}
.room-points li::before {            /* amber dot */
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
}

/* On the green conference section */
.on-green .room-code,
.on-green .room-rate { color: var(--amber-light); }
.on-green .room-points li::before { background: var(--amber-light); }

/* ---------- Photo gallery: swipe, arrows or thumbnails ---------- */
.gallery-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green);
}
.gallery-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-slide figcaption {          /* a label in the corner of the photo */
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 0.4rem 0.95rem;
  background: var(--green);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 500;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  width: 44px;                       /* a full-size tap target on phones too */
  height: 44px;
  margin-top: -22px;
  display: grid;
  place-items: center;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  color: var(--green);
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}
.gallery-nav.prev { left: 0.8rem; }
.gallery-nav.next { right: 0.8rem; }
.gallery-nav svg { width: 16px; height: 16px; }
.gallery-nav:hover { background: var(--amber-light); }
.gallery-nav[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.gallery-nav[aria-disabled="true"]:hover { background: var(--cream); }
.gallery-count {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.15rem 0.75rem;
  background: var(--green);
  border-radius: 300px;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
}
.on-green .gallery-slide figcaption,
.on-green .gallery-count {
  background: var(--cream);
  color: var(--green);
}

.gallery-thumbs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--thumb-cols, 6), minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.gallery-thumb {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.gallery-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  outline: 3px solid transparent;
  outline-offset: -3px;
}
.gallery-thumb:hover { opacity: 0.9; }
.gallery-thumb.is-active { opacity: 1; }
.gallery-thumb.is-active img { outline-color: var(--amber); }
.on-green .gallery-thumb.is-active img { outline-color: var(--amber-light); }

/* ---------- Small screens ---------- */
@media (max-width: 980px) {
  .room-feature {
    grid-template-columns: minmax(0, 1fr);     /* minmax(0, …) lets the thumbnail row scroll instead of widening the page */
    gap: 1.8rem;
  }
  .room-feature + .room-feature { margin-top: 4rem; }
  article.room-feature:nth-of-type(even) .room-feature-media { order: 0; }
  .gallery-thumbs {                  /* one swipeable row on phones */
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .gallery-thumbs::-webkit-scrollbar { display: none; }
  .gallery-thumb { flex: 0 0 72px; }
}
@media (max-width: 480px) {
  .room-points { grid-template-columns: minmax(0, 1fr); }
  .room-jump a { font-size: 0.86rem; padding: 0.45rem 0.8rem; }
}
