/* Prohlídka po patrech: schematic + floor tabs */
.tour { display: grid; gap: 2.5rem; align-items: start; margin-top: 2rem; }
@media (min-width: 62rem) { .tour { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); } }
.schema { margin: 0; }
.schema svg { width: 100%; height: auto; display: block; color: var(--fg); }
.schema figcaption { margin-top: .8rem; font-size: 1rem; line-height: 1.5; max-width: 34ch; }
.schema .bar { fill: none; stroke: var(--fg); stroke-width: 4; }
.schema .lab { fill: var(--fg); font: 800 26px var(--f-body); }
.schema .dot { fill: var(--fg); }
.schema g.on .bar { fill: var(--pf); stroke: var(--pf); }
.schema g.on .lab { fill: var(--pt); }
.schema g.on .dot { fill: var(--pt); }
.schema .gap { stroke: var(--fg); stroke-width: 3; stroke-dasharray: 3 9; stroke-linecap: round; }
.tabs { display: none; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.js .tabs { display: flex; }
.tabs button { min-height: 3.25rem; min-width: 3.25rem; padding: .5rem 1.2rem; font: 800 1.15rem/1.2 var(--f-body); letter-spacing: inherit; color: var(--fg); background: transparent; border: 3px solid var(--fg); cursor: pointer; transition: background-color .12s, color .12s; }
.tabs button:hover { background: var(--fg); color: var(--bg); }
.tabs button[aria-selected="true"] { background: var(--pf); color: var(--pt); border-color: var(--pf); }
.tabs button[aria-selected="true"]::before { content: "\25CF\00a0" / ""; }
.floor h3 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.floor[hidden] { display: none; }
.floor + .floor { margin-top: 2.5rem; }
.js .floor + .floor { margin-top: 0; }
.rooms { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.room { display: flex; flex-direction: column; justify-content: center; gap: .15rem; min-height: 4.5rem; height: 100%; padding: .9rem 3rem .9rem 1.1rem; position: relative; background: var(--cd); color: var(--cf); border: 3px solid var(--bd); text-decoration: none; transition: background-color .12s, color .12s; }
.room .act { font: 400 1rem/1.4 var(--f-body); text-decoration: underline; text-underline-offset: .2em; }
.room .rn { font-size: 1.3rem; line-height: 1.25; font-weight: 800; }
.room .nt { font-size: 1rem; line-height: 1.3; }
.room .arr { position: absolute; right: 1rem; top: 50%; translate: 0 -50%; font: 800 1.6rem/1 var(--f-mono); }
.room:hover { background: transparent; color: var(--fg); border-color: var(--fg); }
.src { margin-top: 1.6rem; font-size: 1rem; }
@media (forced-colors: active) {
  .schema .bar, .schema .gap { stroke: CanvasText; }
  .schema .lab, .schema .dot { fill: CanvasText; }
  .schema g.on .bar { fill: Highlight; stroke: Highlight; }
  .schema g.on .lab, .schema g.on .dot { fill: HighlightText; }
  .tabs button[aria-selected="true"] { border-style: double; border-width: 7px; padding: calc(.5rem - 4px) calc(1.2rem - 4px); }
  .tabs button:hover { background: ButtonFace; color: ButtonText; }
  .room { border-color: LinkText; }
}
