.vibes-room-layout {
  --vibes-layout-green: var(--vibes-room-accent-custom, #22D313);
  --vibes-layout-black: #050505;
  --vibes-layout-blue: #2F68FF;
  --vibes-layout-border: #E7E8E5;
  color: #171717;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vibes-room-layout__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
}

.vibes-room-layout__legend span,
.vibes-room-layout__legend strong {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--vibes-layout-border);
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.vibes-room-layout__legend strong {
  background: #050505;
  color: #fff;
}

.vibes-room-layout__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
}

.vibes-room-layout__dot--available {
  background: var(--vibes-layout-green);
}

.vibes-room-layout__dot--selected {
  background: var(--vibes-layout-black);
  border: 3px solid var(--vibes-layout-blue);
}

.vibes-room-layout__dot--unavailable {
  background: #A9ADA8;
}

.vibes-room-layout__room {
  min-height: 560px;
}

.vibes-room-layout__spot {
  transform: translate(-50%, -50%) rotate(var(--vibes-rotation));
  z-index: 10;
}

.vibes-room-layout__shape,
.vibes-room-layout__label,
.vibes-room-layout__line {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--vibes-rotation));
  z-index: 2;
}

.vibes-room-layout__shape {
  width: var(--vibes-width);
  height: var(--vibes-height);
  display: grid;
  place-items: center;
  gap: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
}

.vibes-room-layout__shape-icon {
  width: min(82%, 120px);
  height: min(82%, 72px);
  color: #D6DAD5;
}

.vibes-room-layout__shape span {
  position: relative;
  z-index: 1;
}

.vibes-room-layout__shape--stage {
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
  z-index: 5;
  background: linear-gradient(180deg, #161616 0%, #101010 62%, #080808 100%);
  border: 2px solid color-mix(in srgb, var(--vibes-layout-green) 75%, transparent);
  box-shadow:
    0 20px 28px rgba(0, 0, 0, .34),
    inset 0 0 0 5px rgba(255, 255, 255, .015);
}

.vibes-room-layout__shape--stage::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  top: 26%;
  height: 28%;
  border: 3px solid var(--vibes-layout-green);
  border-bottom-width: 2px;
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
  opacity: .88;
}

.vibes-room-layout__shape--stage .vibes-room-layout__shape-icon,
.vibes-room-layout__shape--stage span {
  opacity: 0;
}

.vibes-room-layout__shape--blockedArea {
  background: rgba(169, 173, 168, .38);
  border: 2px dashed rgba(255, 255, 255, .55);
}

.vibes-room-layout__instructor {
  left: auto;
  top: auto;
  transform: translate(-50%, -50%) rotate(var(--vibes-rotation));
  display: grid;
  grid-template-rows: 42px auto;
  gap: 2px;
  width: var(--vibes-width, 64px);
  min-height: var(--vibes-height, 74px);
  height: auto;
  align-content: center;
  justify-items: center;
  border-radius: 50%;
}

.vibes-room-layout__instructor span {
  color: var(--vibes-layout-green);
  font-size: 10px;
  line-height: 1;
  text-align: center;
}

.vibes-room-layout__entrance {
  left: auto;
  top: auto;
  transform: translate(-50%, -50%) rotate(var(--vibes-rotation));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: var(--vibes-width, 40px);
  min-width: var(--vibes-width, 40px);
  min-height: var(--vibes-height, 108px);
  padding: 8px 0;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, #111111, #070707);
  border: 1px solid color-mix(in srgb, var(--vibes-layout-green) 72%, transparent);
  color: var(--vibes-layout-green);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, .035);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.vibes-room-layout__entrance span,
.vibes-room-layout__entrance .vibes-spot__entrance-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: .12em;
  line-height: 1;
}

.vibes-room-layout__label {
  width: var(--vibes-width, auto);
  min-width: min(var(--vibes-width, 48px), 100%);
  max-width: var(--vibes-width, 180px);
  min-height: var(--vibes-height, auto);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(5, 5, 5, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  display: inline-grid;
  grid-template-columns: 16px 1fr;
  gap: 5px;
  align-items: center;
}

.vibes-room-layout__label-icon,
.vibes-room-layout__entrance-icon {
  width: 16px;
  height: 16px;
  color: var(--vibes-layout-green);
}

.vibes-room-layout__line {
  height: var(--vibes-line-thickness, 3px);
  background: rgba(255, 255, 255, .74);
  transform-origin: left center;
}

.vibes-room-layout--mobile-frame {
  max-width: 340px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 28px;
  background: #10151A;
}

.vibes-room-layout--mobile-frame .vibes-room-layout__legend {
  color: #fff;
  font-size: 10px;
}

.vibes-room-layout--mobile-frame .vibes-room-layout__legend span,
.vibes-room-layout--mobile-frame .vibes-room-layout__legend strong {
  min-height: 26px;
  padding: 0 7px;
}

.vibes-room-layout--mobile-frame .vibes-room-layout__room {
  min-height: 470px;
  aspect-ratio: .66 / 1;
  border-width: 8px;
}

.vibes-room-layout--mobile-frame .vibes-spot__spot {
  width: 44px;
  height: 60px;
}

.vibes-room-layout--mobile-frame .vibes-spot__spot-core {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.vibes-room-layout--mobile-frame .vibes-room-spot__number {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

.vibes-room-layout--mobile-frame .vibes-room-spot__bike-icon {
  width: 27px;
  height: 21px;
}

.facility-room-layout-preview .vibes-room-layout__legend {
  margin-bottom: 10px;
}

.facility-room-layout-preview .vibes-room-layout__room {
  min-height: 430px;
}

.facility-room-layout-versions__summary {
  cursor: pointer;
}

@media (max-width: 860px) {
  .vibes-room-layout__room {
    min-height: 560px;
  }
}
