/* Hotel Dejoko virtual tour — brand colours from hoteldejoko.com */
.vt {
  --vt-blue: #0965b5;
  --vt-gold: #d98600;
  --vt-ink: #0b0d18;
  --vt-text: #fff;
  --vt-dim: rgba(255, 255, 255, .72);
  --vt-glass: rgba(20, 22, 34, .5);
  --vt-glass-edge: rgba(255, 255, 255, .14);
  --vt-ease: cubic-bezier(.32, .72, 0, 1);   /* fast start, soft settle */
  --vt-radius: 22px;
  font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--vt-text);
  background: var(--vt-ink);
  border-radius: var(--vt-radius);
  overflow: hidden;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  outline: none;
  box-shadow: 0 30px 80px -20px rgba(11, 13, 24, .45);
  -webkit-tap-highlight-color: transparent;
}
.vt *, .vt *::before, .vt *::after { box-sizing: border-box; }
:where(.vt) button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; margin: 0; }
.vt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.vt svg .fill { fill: currentColor; stroke: none; }

/* Frosted glass */
.vt-glass {
  background: var(--vt-glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--vt-glass-edge), 0 8px 24px rgba(0, 0, 0, .25);
}

/* ---------- Stage: the video gets the room ---------- */
.vt-view { position: relative; }
.vt-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 88vh;
  width: 100%;
  background: #000;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
.vt-media, .vt-layer { position: absolute; inset: 0; }
.vt-media { z-index: 0; }
.vt-layer {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .7s var(--vt-ease), transform .9s var(--vt-ease);
}
.vt-layer.is-in { opacity: 1; transform: none; }
.vt-layer { background: #000 center / cover no-repeat; }
.vt-video, .vt-photo, .vt-frame { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; background: transparent; }
.vt-photo { animation: vt-drift 16s ease-in-out infinite alternate; }
@keyframes vt-drift {
  from { transform: scale(1.03) translate3d(-1%, 0, 0); }
  to   { transform: scale(1.09) translate3d(1%, 0, 0); }
}

/* Soft top fade so text reads on any frame — no hard bars */
.vt-stage::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 34%;
  background: linear-gradient(rgba(0, 0, 0, .5), transparent);
  pointer-events: none; z-index: 1;
}

/* Info layer: over the video on desktop */
.vt-info { position: absolute; inset: 0 0 auto 0; z-index: 3; pointer-events: none; }

/* Top: section chip + sound-off */
.vt-top {
  position: absolute; top: 18px; left: 20px; right: 20px; z-index: 3;
  display: flex; gap: 6px; align-items: center;
  pointer-events: none;
}
.vt-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 14px; border-radius: 99px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em; white-space: pre;
  color: var(--vt-dim);
}
.vt-mute { padding: 0 9px; }
.vt-mute svg { width: 16px; height: 16px; }

/* Room name, top-left under the chip */
.vt-label {
  position: absolute; top: 58px; left: 24px; right: 30%; z-index: 3;
  pointer-events: none;
}
.vt-label-room {
  margin: 0; color: #fff;
  font-size: clamp(22px, 3.2vw, 40px); font-weight: 600;
  line-height: 1.05; letter-spacing: -.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}
.vt-label-shot {
  margin: 6px 0 0; color: var(--vt-dim);
  font-size: clamp(13px, 1.3vw, 16px); letter-spacing: .01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.vt-label.is-in .vt-label-room,
.vt-label.is-in .vt-label-shot { animation: vt-rise .6s var(--vt-ease) both; }
.vt-label.is-in .vt-label-shot { animation-delay: .06s; }
@keyframes vt-rise { from { opacity: 0; transform: translateY(8px); } }

/* Name card — materialises (blur + scale + opacity together) */
.vt-card {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  padding: 18px 34px 20px; border-radius: 20px;
  text-align: center; pointer-events: none;
  opacity: 0; filter: blur(10px);
  transform: translate(-50%, -50%) scale(.94);
  transition: opacity .5s var(--vt-ease), transform .6s var(--vt-ease), filter .5s var(--vt-ease);
}
.vt-card.is-on { opacity: 1; filter: none; transform: translate(-50%, -50%) scale(1); }
.vt-card-hotel {
  display: block; font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--vt-gold);
}
.vt-card-name {
  display: block; margin-top: 6px; white-space: nowrap;
  font-size: clamp(26px, 4.6vw, 54px); font-weight: 600;
  line-height: 1.05; letter-spacing: -.025em;
}

/* Arrows — appear on hover, always there on touch */
.vt-arrow {
  position: absolute; top: 50%; z-index: 3;
  width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
  display: grid; place-items: center;
  opacity: 0; transition: opacity .3s var(--vt-ease), transform .2s var(--vt-ease), background .2s;
}
.vt-prev { left: 20px; }
.vt-next { right: 20px; }
.vt-view:hover .vt-arrow, .vt-arrow:focus-visible { opacity: 1; }
.vt-arrow:hover { background: rgba(255, 255, 255, .22); }
@media (hover: none) { .vt-arrow { opacity: 1; } }

/* Progress hairline */
.vt-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255, 255, 255, .12); pointer-events: none; }
.vt-progress-bar { height: 100%; background: var(--vt-gold); transform: scaleX(0); transform-origin: left; }

/* ---------- Floating dock ---------- */
.vt-dock {
  position: absolute; left: 50%; bottom: 22px; z-index: 5;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 6px; border-radius: 99px;
  max-width: calc(100% - 32px);
}
.vt-seg { position: relative; display: flex; }
.vt-seg-pill {
  position: absolute; top: 0; left: 0; height: 100%; width: 0;
  border-radius: 99px; background: var(--vt-blue);
  box-shadow: 0 4px 14px rgba(9, 101, 181, .45);
  transition: transform .45s var(--vt-ease), width .45s var(--vt-ease);
}
.vt-seg-btn {
  position: relative; z-index: 1;
  height: 40px; padding: 0 18px; border-radius: 99px;
  font-size: 14px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  color: var(--vt-dim);
  transition: color .25s, transform .12s ease-out;
}
.vt-seg-btn:hover { color: #fff; }
.vt-seg-btn.is-active { color: #fff; }

.vt-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s, transform .12s ease-out;
}
.vt-dock .vt-btn:hover { background: rgba(255, 255, 255, .14); }
.vt-play { background: var(--vt-gold); }
.vt-dock .vt-play:hover { background: var(--vt-gold); filter: brightness(1.08); }
.vt-auto .vt-play { background: rgba(255, 255, 255, .16); }

/* Instant press feedback */
.vt button:active { transform: scale(.94); }
.vt .vt-arrow:active { transform: scale(.92); }

/* ---------- Thumbnails ---------- */
.vt-strip {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 14px 18px 18px;
  scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.vt-strip::-webkit-scrollbar { display: none; }
.vt-thumb {
  position: relative; flex: 0 0 176px; aspect-ratio: 16 / 9;
  border-radius: 12px; overflow: hidden; background: #000;
  scroll-snap-align: center;
  opacity: .55; transition: opacity .3s var(--vt-ease), transform .3s var(--vt-ease);
}
.vt-thumb::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: box-shadow .3s var(--vt-ease);
}
.vt-thumb:hover { opacity: .9; }
.vt-thumb.is-active { opacity: 1; }
.vt-thumb.is-active::after { box-shadow: inset 0 0 0 2px var(--vt-gold); }
.vt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-thumb-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 10px 7px; text-align: left;
  font-size: 11px; line-height: 1.25; color: var(--vt-dim);
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}
.vt-thumb-label b { display: block; color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: -.005em; }
.vt-thumb-play {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .45);
}
.vt-thumb-play svg { width: 11px; height: 11px; }

/* ---------- Full screen ---------- */
.vt:fullscreen { max-width: none; border-radius: 0; display: flex; flex-direction: column; background: #000; }
.vt:fullscreen .vt-view { flex: 1; display: flex; }
.vt:fullscreen .vt-stage { aspect-ratio: auto; max-height: none; height: 100%; }
.vt:fullscreen .vt-video, .vt:fullscreen .vt-photo { object-fit: contain; }

/* ---------- Phones & small tablets ---------- */
@media (max-width: 720px) {
  .vt { border-radius: 16px; }
  /* Video keeps its true 16:9 shape — full picture, no black bars, nothing on top of it */
  .vt-stage { aspect-ratio: 16 / 9; max-height: none; border-radius: 16px 16px 0 0; }
  .vt-stage::after { display: none; }
  .vt-arrow { width: 34px; height: 34px; margin-top: -17px; opacity: .85; }
  .vt-arrow svg { width: 16px; height: 16px; }
  .vt-prev { left: 8px; }
  .vt-next { right: 8px; }
  .vt-card { padding: 9px 16px 11px; border-radius: 14px; }
  .vt-card-hotel { font-size: 9px; letter-spacing: .16em; white-space: nowrap; }
  .vt-card-name { margin-top: 3px; font-size: 21px; }

  /* Name and chips sit under the video */
  .vt-info { position: static; padding: 14px 16px 0; }
  .vt-top { position: static; }
  .vt-chip { height: 26px; padding: 0 10px; font-size: 11px; color: var(--vt-dim); }
  .vt-label { position: static; margin-top: 10px; }
  .vt-label-room { font-size: 24px; text-shadow: none; }
  .vt-label-shot { margin-top: 3px; font-size: 14px; text-shadow: none; }

  /* Dock follows, full width */
  .vt-dock {
    position: relative; left: auto; bottom: auto; transform: none;
    margin: 14px 12px 0; max-width: none;
  }
  .vt-seg { flex: 1; min-width: 0; }
  .vt-seg-btn { flex: 1; padding: 0 6px; font-size: 12.5px; height: 38px; }
  .vt-btn { width: 38px; height: 38px; flex: none; }
  .vt-strip { padding: 12px 12px 14px; }
  .vt-thumb { flex-basis: 132px; border-radius: 10px; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .vt-photo { animation: none; }
  .vt-layer { transform: none; transition: opacity .25s ease; }
  .vt-card { filter: none; transform: translate(-50%, -50%); transition: opacity .2s ease; }
  .vt-label.is-in .vt-label-room, .vt-label.is-in .vt-label-shot { animation: none; }
  .vt-seg-pill { transition: none; }
  .vt button:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .vt-glass { background: rgba(20, 22, 34, .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .vt-glass { background: #000; box-shadow: inset 0 0 0 1px #fff; }
  .vt-chip, .vt-label-shot, .vt-seg-btn, .vt-thumb-label { color: #fff; }
}
