/* ==========================================================================
   rooms-panel.css — full-screen location picker overlay.
   Component: js/ui/RoomsPanel.js
   ========================================================================== */

#rooms-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0s linear;
}
#rooms-panel.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

#rooms-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  transition: opacity 0.4s ease;
}

#rooms-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#rooms-close:hover { background: rgba(255, 255, 255, 0.22); }
#rooms-close svg { width: 18px; height: 18px; }

#rooms-grid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 24px 28px 36px;
  overflow-x: auto;
  scrollbar-width: none;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.36, 1), opacity 0.4s ease;
}
#rooms-panel.hidden #rooms-grid {
  transform: translateY(30px);
  opacity: 0;
}
#rooms-grid::-webkit-scrollbar { display: none; }

/* Room card */
.room-card {
  position: relative;   /* anchors .room-card__step */
  flex: 0 0 auto;
  width: 200px;
  background: none;
  border: 2px solid transparent;
  border-radius: 8px;
  /* No overflow:hidden — the step badge straddles the thumbnail's top edge and
     would be sliced in half by it. The thumb clips its own corners instead. */
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}
.room-card:hover { transform: translateY(-4px); }
.room-card.active { border-color: #fff; }

.room-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
  border-radius: 6px 6px 0 0;   /* was inherited from the card's overflow clip */
  overflow: hidden;
  filter: grayscale(100%) brightness(0.65);
  transition: filter 0.3s;
}
.room-card.active .room-card__thumb { filter: none; }
.room-card:hover .room-card__thumb { filter: grayscale(0%) brightness(0.9); }

/* Step number — a small notch centred on the thumbnail's top edge.

   Quiet on purpose. 26 of these are on screen at once, and the LABEL is what
   names the place; the number is secondary metadata and has to read that way
   or the strip becomes a field of dots. So: no white disc, no drop shadow, no
   bold weight. It takes the panel backdrop's own dark tone, which makes it
   read as a notch cut out of the card rather than a sticker applied on top,
   and the numeral is muted white rather than pure.

   The active card's number goes full white — hierarchy through one small
   contrast step instead of decoration on all 26.

   Sits OUTSIDE .room-card__thumb on purpose: that element carries the
   greyscale/brightness filter, which a child would inherit. */
.room-card__step {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #1b2126;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;  /* 1 and 11 keep the same rhythm */
  line-height: 1;
  transition: color 0.2s ease;
}

.room-card.active .room-card__step {
  color: #fff;
}

.room-card__label {
  display: block;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.room-card.active .room-card__label { color: #fff; }
.room-card:hover .room-card__label { color: rgba(255, 255, 255, 0.9); }
