:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #27251f;
  background: #f3f0e8;
  --quiet: #5e584e;
  --accent: #365543;
  --line: #d8d1c4;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { touch-action: manipulation; }
.tour { width: min(100%, 1660px); margin: 0 auto; padding: 25px clamp(12px, 3vw, 46px) 24px; }
.header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; margin-bottom: 17px; }
h1 { font: 400 clamp(32px, 4.2vw, 54px)/1.05 Georgia, serif; letter-spacing: -.035em; margin: 0; }
.header p, .map p { margin: 0; font-size: 14px; color: var(--quiet); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(238px, 25vw, 350px); gap: 15px; }
.stage { min-width: 0; height: min(67vh, 760px); min-height: 330px; position: relative; background: #282620; border-radius: 11px; overflow: hidden; }
#panorama { width: 100%; height: 100%; }
#current-room { position: absolute; left: 16px; top: 14px; margin: 0; padding: 8px 12px; color: #fff; background: #282722d9; border-radius: 6px; font-size: clamp(16px, 2vw, 22px); font-weight: 600; pointer-events: none; }
#status { position: absolute; bottom: 49px; left: 16px; right: 16px; margin: 0; padding: 8px 12px; background: #282722eb; color: #fff; border-radius: 6px; font-size: 14px; }
.map { min-width: 0; padding: 17px 14px; background: #fbf8f0; border: 1px solid var(--line); border-radius: 11px; align-self: start; }
.map h2 { font: 400 27px/1.1 Georgia, serif; margin: 0 0 14px; }
.floor-plan { position: relative; border-radius: 7px; overflow: hidden; background: #d0d1ca; margin-bottom: 12px; }
.floor-plan img { display: block; width: 100%; height: auto; }
.pin { position: absolute; width: 23px; height: 23px; transform: translate(-50%, -50%); display: grid; place-items: center; padding: 0; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #373a30; font: 700 10px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 1px 5px #0007; }
.pin[aria-current="true"] { background: var(--accent); z-index: 1; box-shadow: 0 0 0 2px #253f2e, 0 1px 5px #0007; }
.map a { display: inline-block; margin-top: 15px; color: var(--accent); font-size: 14px; font-weight: 650; text-underline-offset: 3px; }
.rooms { grid-column: 1 / -1; display: flex; overflow: auto; padding: 3px 3px 10px; gap: 8px; }
.room { flex: 1 0 116px; max-width: 150px; min-width: 0; padding: 3px; text-align: left; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.room img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 5px; }
.room span { display: block; padding: 6px 3px 3px; font: 600 12px/1.2 "Segoe UI", sans-serif; }
.room[aria-current="true"], .room:hover { background: #e3e9df; border-color: #798c79; }
:focus-visible { outline: 2px solid #365543; outline-offset: 2px; }
.pin:focus-visible { z-index: 2; outline-color: #141f17; }
@media (max-width: 730px) {
  .tour { padding-top: 16px; }
  .header { gap: 5px; }
  .layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .stage { height: 56vh; min-height: 265px; }
  .rooms { grid-row: 2; }
  .map { width: min(100%, 390px); }
}
