.dev-tour {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 340px;
  overflow: hidden;
  border-radius: 24px;
  background: #eae8e2;
  color: #152330;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}
.dev-tour:focus-visible {
  outline: 3px solid #4384b4;
  outline-offset: 5px;
}
.dev-tour::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgb(14 24 30 / .10), transparent 30%, transparent 60%, rgb(14 24 30 / .34));
}
.dev-tour__canvas,
.dev-tour__fallback,
.dev-tour__hotspots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.dev-tour__canvas {
  z-index: 0;
  opacity: 0;
  transition: opacity .25s ease;
}
.dev-tour__canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.dev-tour__fallback {
  z-index: -1;
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .25s ease;
  will-change: transform;
}
.dev-tour.is-rendered .dev-tour__canvas { opacity: 1; }
.dev-tour.is-rendered .dev-tour__fallback { opacity: 0; }
.dev-tour.is-dragging { cursor: grabbing; }
.dev-tour.is-switching .dev-tour__canvas,
.dev-tour.is-switching .dev-tour__fallback { opacity: .25; }
.dev-tour__hotspots {
  z-index: 3;
  pointer-events: none;
}
.dev-tour button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / .65);
  border-radius: 24px;
  background: rgb(255 255 255 / .94);
  color: #172632;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  box-shadow: 0 4px 22px rgb(20 30 40 / .07);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.dev-tour button:hover {
  background: #fff;
  box-shadow: 0 6px 22px rgb(20 30 40 / .16);
}
.dev-tour button:focus-visible {
  outline: 3px solid #4384b4;
  outline-offset: 3px;
}
.dev-tour button svg { width: 17px; height: 17px; pointer-events: none; }
.dev-tour button[hidden] { display: none; }
.dev-tour__top {
  position: absolute;
  z-index: 4;
  top: 22px;
  right: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.dev-tour__top > span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgb(255 255 255 / .5);
  border-radius: 24px;
  background: rgb(255 255 255 / .9);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .005em;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.dev-tour__top button { width: 44px; padding: 0; pointer-events: auto; }
.dev-tour__bottom {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px 16px;
  pointer-events: none;
}
.dev-tour__bottom > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 0 1px 6px rgb(0 0 0 / .5);
}
.dev-tour__rooms,
.dev-tour__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}
.dev-tour__rooms {
  justify-self: start;
  padding: 5px;
  border: 1px solid rgb(255 255 255 / .65);
  border-radius: 24px;
  background: rgb(255 255 255 / .76);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.dev-tour__rooms button {
  min-height: 38px;
  padding: 0 17px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.dev-tour__rooms button.is-active {
  background: #182b39;
  color: #fff;
  box-shadow: 0 3px 9px rgb(20 30 40 / .12);
}
.dev-tour__controls { justify-self: end; }
.dev-tour__controls button {
  width: 44px;
  padding: 0;
  font-size: 20px;
  font-weight: 400;
}
.dev-tour .dev-tour__hotspot {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.dev-tour .dev-tour__hotspot:hover { background: transparent; box-shadow: none; }
.dev-tour__hotspot-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / .9);
  border-radius: 24px;
  background: rgb(255 255 255 / .9);
  color: #172632;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 0 0 7px rgb(255 255 255 / .18), 0 4px 18px rgb(14 24 30 / .14);
  transition: background .18s ease, box-shadow .18s ease;
}
.dev-tour__hotspot:hover .dev-tour__hotspot-icon {
  background: #fff;
  box-shadow: 0 0 0 9px rgb(255 255 255 / .22), 0 4px 18px rgb(14 24 30 / .16);
}
.dev-tour__hotspot-label {
  padding: 6px 11px;
  border-radius: 24px;
  background: rgb(255 255 255 / .94);
  color: #172632;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}
.dev-tour.is-loading::before {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  padding: 12px 20px;
  border: 1px solid rgb(255 255 255 / .8);
  border-radius: 24px;
  background: rgb(255 255 255 / .94);
  color: #172632;
  font-size: 12px;
  line-height: 1.4;
  content: "Otwieramy pomieszczenie…";
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.dev-tour [role="status"].dev-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.dev-tour:fullscreen,
.dev-tour.is-fullscreen {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
  touch-action: none;
}
@media (max-width: 680px) {
  .dev-tour { aspect-ratio: 4 / 3; min-height: 340px; }
  .dev-tour__top { top: 14px; right: 14px; left: 14px; }
  .dev-tour__top > span { max-width: calc(100% - 60px); min-height: 38px; padding: 8px 13px; font-size: 11px; }
  .dev-tour__bottom { right: 14px; bottom: 14px; left: 14px; gap: 10px 8px; }
  .dev-tour__bottom > p { font-size: 10px; }
  .dev-tour__rooms { gap: 0; padding: 4px; }
  .dev-tour__rooms button { min-height: 36px; padding: 0 12px; font-size: 11px; }
  .dev-tour__controls { gap: 4px; }
  .dev-tour__controls button { width: 40px; min-width: 40px; min-height: 44px; font-size: 18px; }
}
@media (max-width: 420px) {
  .dev-tour__bottom { grid-template-columns: 1fr; }
  .dev-tour__rooms { grid-row: 2; }
  .dev-tour__controls { grid-row: 3; justify-self: start; }
  .dev-tour__controls button { width: 44px; }
  .dev-tour__bottom > p { max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .dev-tour *, .dev-tour *::before, .dev-tour *::after { transition: none !important; animation: none !important; }
}
