/* Procházka hotelem (/walk/): rendery v tmavém rámu, mosazné kroužky jako klikací místa, panel výtahu. */
body.walk { background: var(--litina); color: var(--omitka); overflow: hidden; }
body.walk ::selection { background: var(--mosaz); color: var(--litina); }

.tour { height: calc(100dvh - var(--head)); display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }

/* ---------- jeviště: záběr vysoký jako jeviště, širší než obrazovka se posouvá ---------- */
.view { position: relative; min-height: 0; min-width: 0; }
.stage {
  height: 100%; display: flex; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.stage::-webkit-scrollbar { display: none; }
.stage.pans { cursor: grab; }
.stage.dragging { cursor: grabbing; }
.stage.dragging .spot { pointer-events: none; }

.frame {
  position: relative; flex: none; margin: 0 auto; height: 100%;
  transition: transform .7s var(--ease), opacity .5s ease;
}
.frame picture, .frame img { display: block; width: 100%; height: 100%; }
.frame img { object-fit: cover; user-select: none; -webkit-user-drag: none; }
.frame.leaving { transform: scale(1.55); opacity: 0; transition: transform .52s cubic-bezier(.45, 0, .8, .4), opacity .3s .22s linear; }
.frame.fading { opacity: 0; transition: opacity .38s ease; }
.frame.arriving { transform: scale(1.04); opacity: 0; transition: none; }

.hint {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); margin: 0;
  padding: .45rem .9rem; background: rgba(28,30,29,.86); border: 1px solid rgba(184,154,88,.6); border-radius: 2px;
  font-size: .875rem; letter-spacing: .03em; white-space: nowrap; pointer-events: none;
  transition: opacity .6s ease;
}
.hint.gone { opacity: 0; }

/* ---------- klikací místa ---------- */
.spots { position: absolute; inset: 0; }
.spot {
  position: absolute; display: flex; align-items: center; gap: .35rem;
  transform: translate(-22px, -22px); padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--omitka); font: 400 .8125rem/1.2 var(--text); letter-spacing: .03em; text-decoration: none;
}
.spot.flip { flex-direction: row-reverse; transform: translate(calc(-100% + 22px), -22px); }
.ring { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.ring::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--mosaz-svetla); background: rgba(28,30,29,.42);
  box-shadow: 0 0 0 3px rgba(28,30,29,.3), 0 2px 12px rgba(0,0,0,.35);
  animation: breathe 2.8s ease-in-out infinite;
}
.ring::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--mosaz-svetla); }
@keyframes breathe { 50% { transform: scale(1.14); } }
.tag {
  padding: .32rem .6rem; white-space: nowrap; border-radius: 2px;
  background: rgba(28,30,29,.86); border: 1px solid rgba(184,154,88,.7);
  transition: background-color .2s ease, border-color .2s ease;
}
.spot:hover .tag, .spot:focus-visible .tag { background: var(--smaragd); border-color: var(--mosaz-svetla); }
.spot:hover .ring::before, .spot:focus-visible .ring::before { background: var(--mosaz); animation: none; }
.spot:focus-visible { outline: none; }
.spot:focus-visible .tag { outline: 2px solid var(--mosaz-svetla); outline-offset: 2px; }

/* ---------- lišta: kde jsem, zpět, výtah, seznam ---------- */
.bar {
  display: grid; gap: .65rem 2rem; align-items: center;
  padding: .75rem var(--gutter) calc(.8rem + env(safe-area-inset-bottom));
  background: var(--litina); border-top: 1px solid rgba(184,154,88,.35);
}
.where { min-width: 0; }
.floor-name { margin: 0; color: var(--mosaz-svetla); font-size: .8125rem; font-weight: 400; letter-spacing: .08em; }
.where h1 { font-size: 1.4rem; margin: .1rem 0 .2rem; }
.where h1 .num { font-weight: 400; }
.scene-note { margin: 0; font-size: .9375rem; line-height: 1.45; color: rgba(250,246,238,.84); max-width: 46em; }
.scene-note a { color: var(--mosaz-svetla); white-space: nowrap; text-decoration-color: rgba(220,200,145,.6); }
.scene-note a:hover { color: var(--omitka); }

.controls { display: flex; gap: .5rem; }
.ctl {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: 0 1rem; border: 1px solid rgba(184,154,88,.6); border-radius: 2px;
  background: none; color: var(--omitka); font: 400 .9375rem/1 var(--text); letter-spacing: .03em; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.ctl svg { width: 14px; height: 14px; color: var(--mosaz-svetla); flex: none; }
.ctl:hover { background: rgba(184,154,88,.16); border-color: var(--mosaz); }
.ctl:disabled { opacity: .4; cursor: default; background: none; }

/* ---------- panely: výtah a seznam míst ---------- */
dialog.sheet {
  width: min(100% - 2rem, 25rem); max-height: min(88dvh, 44rem); padding: 0;
  background: var(--litina); color: var(--omitka); border: 1px solid rgba(184,154,88,.55); border-radius: 3px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
dialog.sheet::backdrop { background: rgba(10,11,10,.62); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem .6rem .4rem 1.25rem; }
.sheet-head h2 { font-size: 1.6rem; }
.close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--omitka); cursor: pointer; border-radius: 2px; }
.close svg { width: 16px; height: 16px; }
.close:hover { background: rgba(184,154,88,.16); }

.lift-buttons { list-style: none; margin: 0; padding: .25rem 0 1rem; }
.lift-buttons button {
  display: flex; align-items: center; gap: 1rem; width: 100%; min-height: 54px; padding: .35rem 1.25rem;
  border: 0; background: none; color: var(--omitka); font: 300 1rem/1.25 var(--text); text-align: left; cursor: pointer;
}
.lift-buttons .key {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--mosaz); color: var(--mosaz-svetla); font-size: 1.05rem; font-weight: 400;
  background: radial-gradient(circle at 35% 30%, rgba(220,200,145,.22), rgba(220,200,145,0) 62%);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.lift-buttons .what small { display: block; font-size: .8125rem; color: rgba(250,246,238,.72); }
.lift-buttons button:hover .key, .lift-buttons button:focus-visible .key { border-color: var(--mosaz-svetla); }
.lift-buttons button[aria-current] .key { background: var(--mosaz-svetla); color: var(--litina); box-shadow: 0 0 14px rgba(220,200,145,.55); }
.lift-buttons button:disabled { cursor: not-allowed; color: rgba(250,246,238,.5); }
.lift-buttons button:disabled .key { border-color: rgba(184,154,88,.4); color: rgba(220,200,145,.45); background: none; }
.lift-buttons button:focus-visible { outline: 2px solid var(--mosaz); outline-offset: -4px; }

.place-groups { display: grid; gap: 1.1rem; padding: .25rem 1.25rem 1rem; }
.place-groups h3 { font: 400 .8125rem/1.2 var(--text); letter-spacing: .08em; color: var(--mosaz-svetla); margin: 0 0 .2rem; }
.place-groups ul { list-style: none; margin: 0; padding: 0; }
.place-groups a {
  display: block; padding: .5rem 0; font-family: var(--display); font-size: 1.15rem; letter-spacing: .01em;
  text-decoration: none; border-bottom: 1px solid rgba(184,154,88,.2);
}
.place-groups a:hover { color: var(--mosaz-svetla); }
.places-foot { margin: 0; padding: .4rem 1.25rem 1.25rem; font-size: .875rem; color: rgba(250,246,238,.7); }
.places-foot a { color: var(--mosaz-svetla); }

.noscript { margin: 0; padding: 1rem var(--gutter); }
.noscript a { color: var(--mosaz-svetla); }

@media (min-width: 760px) {
  .bar { grid-template-columns: minmax(0, 1fr) auto; padding-block: .85rem calc(.9rem + env(safe-area-inset-bottom)); }
  .ctl { flex: none; }
  .where h1 { font-size: 1.65rem; }
  dialog.places { width: min(100% - 2rem, 40rem); }
  .place-groups { grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; }
}
/* telefon na šířku: lišta v jednom řádku, bez popisu */
@media (max-height: 520px) and (orientation: landscape) {
  .bar { grid-template-columns: minmax(0, 1fr) auto; padding-block: .35rem calc(.35rem + env(safe-area-inset-bottom)); }
  .scene-note, .floor-name { display: none; }
  .where h1 { font-size: 1.1rem; margin: 0; }
  .ctl { flex: none; min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .frame, .frame.leaving, .frame.fading { transition: none; transform: none; }
  .ring::before { animation: none; }
  .hint { transition: none; }
}
