.pv2-room-rail {
  --hp-ink: var(--ink);
  --hp-paper: var(--paper);
  --hp-muted: var(--pv-secondary);
  --hp-hair: var(--pv-line);
}
:is(.hp-rooms, .pv2-room-rail)[data-room-layout="rail"] :is(.hp-room-track, .pv2-card-grid) {
  --room-gap: 24px;
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--room-gap)) / 3);
  gap: var(--room-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--hp-muted) transparent;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  padding-block: 4px;
}
:is(.hp-rooms, .pv2-room-rail)[data-room-layout="rail"] :is(.hp-room, .pv2-card) { scroll-snap-align: start; }
:is(.hp-rooms, .pv2-room-rail)[data-room-layout="rail"] :is(.hp-room, .pv2-card):focus-visible { outline-offset: -3px; }
:is(.hp-rooms, .pv2-room-rail).room-rail-ready :is(.hp-room-track, .pv2-card-grid) { scrollbar-width: none; }
:is(.hp-rooms, .pv2-room-rail).room-rail-ready :is(.hp-room-track, .pv2-card-grid)::-webkit-scrollbar { display: none; }
:is(.hp-rooms, .pv2-room-rail).room-rail-pinned {
  box-sizing: content-box;
  height: calc(var(--room-panel-height) + var(--room-distance));
}
:is(.hp-rooms, .pv2-room-rail).room-rail-pinned > :is(.hp-container, .wrap) {
  position: sticky;
  top: var(--room-pin-top);
}
:is(.hp-rooms, .pv2-room-rail).room-rail-pinned :is(.hp-room-track, .pv2-card-grid) { scroll-snap-type: none; }
.room-rail-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: clamp(12px, 1.8vw, 25px);
  color: var(--hp-ink);
}
.room-rail-meter {
  position: relative;
  flex: 1;
  height: 2px;
  margin-right: 13px;
  background: var(--hp-hair);
}
.room-rail-meter::before {
  content: '';
  position: absolute;
  top: -1px;
  height: 4px;
  left: var(--room-progress, 0%);
  width: var(--room-view, 50%);
  background: currentColor;
  border-radius: 9px;
}
.room-rail-controls button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 50%;
  padding: 0;
  color: inherit;
  transition: background .18s ease-out, color .18s ease-out;
}
.room-rail-controls button:enabled:hover { background: var(--hp-ink); color: var(--hp-paper); }
.room-rail-controls button:disabled { opacity: .32; cursor: default; }
.room-rail-controls button svg { width: 19px; height: 19px; }
.room-rail-prev svg { transform: rotate(180deg); }
@media (max-width: 1000px) {
  :is(.hp-rooms, .pv2-room-rail)[data-room-layout="rail"] :is(.hp-room-track, .pv2-card-grid) {
    --room-gap: 18px;
    grid-auto-columns: calc((100% - 2 * var(--room-gap)) / 2.25);
  }
}
@media (max-width: 680px) {
  :is(.hp-rooms, .pv2-room-rail)[data-room-layout="rail"] :is(.hp-room-track, .pv2-card-grid) {
    --room-gap: 15px;
    grid-auto-columns: min(84%, 360px);
  }
  :is(.hp-rooms, .pv2-room-rail)[data-room-layout="rail"] :is(.hp-section-head, .pv2-section-head) { margin-bottom: 20px; }
  :is(.hp-rooms, .pv2-room-rail)[data-room-layout="rail"] :is(.hp-section-head, .pv2-section-head) .hp-inline-link { min-height: 44px; margin-top: 12px; }
}
@media (max-height: 600px) {
  :is(.hp-rooms, .pv2-room-rail)[data-room-layout="rail"] :is(.hp-section-head, .pv2-section-head) { margin-bottom: 14px; }
  :is(.hp-rooms, .pv2-room-rail)[data-room-layout="rail"] :is(.hp-section-head, .pv2-section-head) h2 { font-size: clamp(30px, 4.3vw, 48px); }
  :is(.hp-rooms, .pv2-room-rail)[data-room-layout="rail"] :is(.hp-section-head, .pv2-section-head) p { margin-top: 6px; }
  :is(.hp-rooms, .pv2-room-rail)[data-room-layout="rail"] :is(.hp-room-image, .pv2-card-img) { max-height: 29svh; }
  :is(.hp-rooms, .pv2-room-rail)[data-room-layout="rail"] :is(.hp-room-caption, .pv2-card-body) { padding-top: 9px; }
  :is(.hp-rooms, .pv2-room-rail)[data-room-layout="rail"] :is(.hp-room-caption, .pv2-card-body) p { margin-top: 5px; }
  .room-rail-controls { margin-top: 6px; }
}
