html, body.tour { height: 100%; overflow: hidden; background: var(--ink); }
body.tour { overscroll-behavior: none; }

.viewer { position: fixed; inset: 0; background: var(--ink); }
.pnlm-container { background: var(--ink) !important; font-family: var(--text) !important; }
.pnlm-load-box, .pnlm-about-msg, .pnlm-ui .pnlm-panorama-info { display: none !important; }

/* Shared glass surface */
.t-top, .plan, .dock, .info, .plan-fab, .hint {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 20px 50px -24px rgba(20, 18, 14, .55), inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.ui { transition: opacity .45s var(--ease), transform .45s var(--ease); }
body.zen .ui-hide { opacity: 0; pointer-events: none; }
body.zen .t-top { transform: translate(-50%, -16px); }
body.zen .dock { transform: translate(-50%, 16px); }
body.zen .plan { transform: translateX(-16px); }

/* ---------- Top bar ---------- */
.t-top {
  position: fixed; z-index: 10; top: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 1500px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 10px 10px 10px 14px; border-radius: 999px;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.t-home { gap: 12px; }
.t-back {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(42, 40, 36, .07); transition: background .3s, transform .35s var(--ease);
}
.t-home:hover .t-back { background: var(--ink); color: var(--paper); transform: translateX(-2px); }
.t-title { text-align: center; line-height: 1.2; }
.t-title .eyebrow { display: block; font-size: 9.5px; color: var(--olive); }
.t-title strong { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .01em; }
.t-tools { display: flex; justify-content: flex-end; gap: 4px; }
.tool {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); transition: background .3s, color .3s, transform .3s var(--ease);
}
.tool:hover { background: rgba(42, 40, 36, .08); transform: translateY(-1px); }
.tool:active { transform: scale(.94); }
.tool[aria-pressed="true"] { background: var(--olive); color: #fff; }
.tool[aria-pressed="true"] svg { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Plan ---------- */
.plan {
  position: fixed; z-index: 9; left: 16px; top: 86px;
  width: clamp(300px, 27vw, 420px);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.plan-head { display: flex; align-items: center; gap: 10px; }
.plan-head .eyebrow { margin: 0; font-size: 10px; color: var(--stone); }
.plan-area { margin-left: auto; font-family: var(--display); font-size: 12px; font-weight: 600; color: var(--olive); }
.plan-toggle {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(42, 40, 36, .06); transition: transform .4s var(--ease), background .3s;
}
.plan-toggle:hover { background: rgba(42, 40, 36, .12); }
.plan.collapsed .plan-toggle { transform: rotate(180deg); }
.plan-body {
  display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease), opacity .3s;
}
.plan-body > * { min-height: 0; overflow: hidden; }
.plan.collapsed .plan-body { grid-template-rows: 0fr; opacity: 0; }
.plan-svg { width: 100%; height: auto; margin-top: 12px; display: block; overflow: visible; }

.plan-svg .outline { fill: rgba(255, 255, 255, .55); stroke: var(--ink); stroke-width: 9; stroke-linejoin: miter; }
.plan-svg .wall { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: square; }
.plan-svg .soft { fill: none; stroke: var(--stone); stroke-width: 2.5; stroke-dasharray: 10 9; opacity: .55; }
.plan-svg .room { cursor: pointer; }
.plan-svg .room polygon {
  fill: transparent; stroke: none;
  transition: fill .35s var(--ease);
}
.plan-svg .room:hover polygon { fill: rgba(120, 120, 79, .16); }
.plan-svg .room.active polygon { fill: rgba(120, 120, 79, .28); }
.plan-svg .room text {
  font-family: var(--text); font-weight: 600; font-size: 34px; fill: var(--ink);
  text-anchor: middle; pointer-events: none; letter-spacing: .02em;
}
.plan-svg .room text.ar { font-size: 26px; font-weight: 500; fill: var(--stone); }
.plan-svg .room.soon text { fill: var(--stone); }
.plan-svg .room.soon text.ar { fill: var(--taupe); }
.plan-svg .pin { pointer-events: none; }
.plan-svg .pin-dot { fill: var(--olive); stroke: #fff; stroke-width: 4; }
.plan-svg .pin-dot.soon { fill: var(--sand); stroke: var(--stone); stroke-width: 2.5; }
.plan-svg .pin-dot.flat { fill: var(--taupe); }
.plan-svg .room.active .pin-dot { fill: var(--ink); }
.plan-svg .cone { fill: url(#coneGrad); transition: opacity .4s; }
.plan-svg .pulse { fill: none; stroke: var(--olive); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.plan-svg .room.active .pulse { animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.plan-svg .door { fill: none; stroke: var(--olive); stroke-width: 3; }
.plan-svg .entry { font-family: var(--text); font-size: 18px; font-weight: 700; letter-spacing: .25em; fill: var(--olive); text-anchor: middle; }

.plan-legend { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; gap: 16px; font-size: 11px; color: var(--stone); }
.plan-legend li { display: flex; align-items: center; gap: 7px; }
.lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg.pano { background: var(--olive); }
.lg.flat { background: var(--taupe); }
.lg.soon { background: var(--sand); box-shadow: inset 0 0 0 1.5px var(--stone); }

.plan-fab {
  display: none; position: fixed; z-index: 9; left: 16px; top: 82px;
  align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Dock ---------- */
.dock {
  position: fixed; z-index: 10; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 8px; border-radius: 999px;
  max-width: calc(100% - 32px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.dock-rooms { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.dock-rooms::-webkit-scrollbar { display: none; }
.dock-arrow {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  transition: background .3s, transform .3s var(--ease);
}
.dock-arrow:hover { background: rgba(42, 40, 36, .08); }
.dock-arrow:active { transform: scale(.92); }
.chip {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background .35s var(--ease), color .35s, transform .3s var(--ease);
}
.chip:hover { background: rgba(42, 40, 36, .07); transform: translateY(-1px); }
.chip:active { transform: scale(.97); }
.chip-thumb {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--sand) center/cover no-repeat;
  display: grid; place-items: center; color: var(--stone);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
  transition: transform .4s var(--ease);
}
.chip:hover .chip-thumb { transform: scale(1.05); }
.chip-thumb svg { width: 16px; opacity: .7; }
.chip small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .08em; color: var(--stone); margin-top: 1px; }
.chip.active { background: var(--ink); color: var(--paper); }
.chip.active small { color: var(--sand); }

/* ---------- Info ---------- */
.info {
  position: fixed; z-index: 9; right: 16px; top: 86px;
  width: min(360px, calc(100% - 32px));
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  opacity: 0; transform: translateX(20px); pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.info.open { opacity: 1; transform: none; pointer-events: auto; }
body.zen .info.open { opacity: 0; pointer-events: none; }
.info .eyebrow { margin: 0 0 8px; color: var(--olive); font-size: 10px; }
.info h3 { font-family: var(--display); font-weight: 700; font-size: 24px; margin: 0 0 6px; }
.info-area { margin: 0 0 14px; font-size: 13px; color: var(--stone); }
.info-area b { font-family: var(--display); color: var(--olive); font-size: 16px; }
.info p:last-child { margin: 0; font-size: 14px; line-height: 1.65; color: var(--stone); }
.info-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(42, 40, 36, .06);
  transition: background .3s, transform .3s var(--ease);
}
.info-close:hover { background: rgba(42, 40, 36, .12); transform: rotate(90deg); }

/* ---------- Hotspots ---------- */
.hs {
  width: 0; height: 0; overflow: visible;
}
.hs-btn {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 0;
  padding: 6px; border-radius: 999px;
  background: rgba(244, 241, 236, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  color: var(--ink); cursor: pointer; white-space: nowrap;
  font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: gap .35s var(--ease), padding .35s var(--ease), background .3s;
}
.hs-ico {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--olive); color: #fff; flex: none; position: relative;
}
.hs-ico::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(244, 241, 236, .9); animation: hsPulse 2.4s infinite;
}
@keyframes hsPulse { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.hs-txt { max-width: 0; overflow: hidden; transition: max-width .45s var(--ease); }
.hs-btn:hover, .hs-btn:focus-visible { gap: 10px; padding-right: 16px; }
.hs-btn:hover .hs-txt, .hs-btn:focus-visible .hs-txt { max-width: 200px; }

/* ---------- Soon ---------- */
.soon-view { position: fixed; inset: 0; z-index: 1; display: grid; place-items: center; padding: 120px 16px; }
.soon-view[hidden] { display: none; }
.soon-bg {
  position: absolute; inset: -40px;
  background: url(../assets/hall.jpg) center/cover;
  filter: blur(28px) saturate(.8) brightness(.55);
}
.soon-card {
  position: relative; max-width: 460px; text-align: center; color: var(--paper);
  animation: rise .7s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.soon-mark { width: 54px; color: var(--sand); margin-bottom: 22px; }
.soon-card .eyebrow { color: var(--sand); margin: 0 0 12px; }
.soon-card h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 46px); margin: 0 0 16px; }
.soon-card p { font-size: 15px; line-height: 1.7; color: rgba(244, 241, 236, .85); margin: 0 0 28px; }
.soon-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.soon-links button {
  padding: 12px 20px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(244, 241, 236, .14); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(244, 241, 236, .3);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.soon-links button:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); }

/* ---------- Hint / loader ---------- */
.hint {
  position: fixed; z-index: 8; left: 50%; bottom: 96px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
}
.hint.show { opacity: 1; }
.hint svg { animation: drag 2s ease-in-out infinite; }
@keyframes drag { 50% { transform: translateX(-8px) rotate(-8deg); } }
.loader { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 50; pointer-events: none; }
.loader span { display: block; height: 100%; width: 0; background: var(--olive); transition: width .4s var(--ease), opacity .4s; }
.loader.busy span { width: 70%; transition: width 4s cubic-bezier(.1, .6, .2, 1); }
.loader.done span { width: 100%; opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .t-top { grid-template-columns: auto 1fr auto; gap: 8px; }
  .t-title { text-align: left; }
  .brand-word { display: none; }
  .plan { display: none; }
  .plan.sheet {
    display: block; left: 16px; right: 16px; width: auto; top: auto; bottom: 90px;
    max-width: 460px; margin: 0 auto;
  }
  .plan.sheet .plan-toggle { transform: rotate(180deg); }
  .plan-fab { display: flex; }
  .info { top: auto; bottom: 90px; right: 16px; left: 16px; width: auto; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .t-top { top: 10px; width: calc(100% - 20px); padding: 6px 6px 6px 8px; }
  .t-back { display: none; }
  .tool { width: 36px; height: 36px; }
  #btnZen { display: none; }
  .t-title strong { font-size: 14px; }
  .plan-fab { top: 70px; left: 10px; }
  .dock { bottom: 10px; max-width: calc(100% - 20px); padding: 6px; }
  .dock-arrow { display: none; }
  .chip { padding-right: 12px; font-size: 12px; }
  .chip small { display: none; }
  .hint { bottom: 80px; }
}
