/* 360°-тур: тёмное стекло, золотые значки, шрифт Apple */
:root { --gold: #c9a26a; --gold-ink: #2a1f0f; --glass: rgba(18,19,22,.62); --line: rgba(255,255,255,.14); --text: #f5f5f7; --muted: #b3b3b8; --ease: cubic-bezier(.2,.8,.2,1); }
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; background: #0b0c0e; color: var(--text); font: 15px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
[hidden] { display: none !important; }
#host { position: fixed; inset: 0; cursor: grab; }
#host:active { cursor: grabbing; }
.glass { background: var(--glass); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7); border: 1px solid var(--line); }

/* логотип */
.logo { position: fixed; left: 24px; top: 22px; z-index: 5; pointer-events: none; color: #e9cf9f; text-shadow: 0 2px 14px rgba(0,0,0,.45); display: flex; flex-direction: column; align-items: center; }
.logo b { font: 400 28px/1 "Cormorant Garamond", "Didot", "Bodoni 72", Georgia, serif; letter-spacing: .06em; }
.logo i { font: italic 15px/1.2 "Snell Roundhand", "Apple Chancery", Georgia, serif; opacity: .9; margin-top: 4px; }

/* компас-линейка */
.compass { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: min(720px, 70vw); height: 34px; overflow: hidden; z-index: 4; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.strip { position: absolute; top: 0; left: 0; height: 100%; white-space: nowrap; will-change: transform; }
.strip span { position: absolute; top: 0; width: 1px; height: 7px; background: rgba(255,255,255,.75); box-shadow: 0 0 4px rgba(0,0,0,.4); }
.strip span.mid { height: 11px; }
.strip b { position: absolute; top: 12px; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); letter-spacing: .04em; }
.strip b.main { font-size: 15px; }
.strip b.n { color: #ff6a5a; }
.needle { position: absolute; left: 50%; top: 0; width: 2px; height: 12px; margin-left: -1px; background: var(--gold); border-radius: 2px; }

/* мини-карта */
.map { position: fixed; right: 20px; top: 20px; z-index: 5; width: min(420px, 34vw); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.45); border: 1px solid var(--line); background: #1a1c1f; }
.mapin { position: relative; aspect-ratio: 1578 / 1044; }
.mapin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92) contrast(1.02); }
.mapin svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mapx { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; line-height: 1; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mapx:hover { background: rgba(0,0,0,.65); }
.mapopen { position: fixed; right: 20px; top: 20px; z-index: 5; width: 46px; height: 46px; border-radius: 50%; font-size: 20px; color: #fff; background: var(--glass); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid var(--line); }
.mpt { cursor: pointer; }
.mpt circle { transition: r .2s var(--ease); }
.mpt:hover circle.dot { r: 24; }

/* меню режимов */
.mode { position: fixed; left: 20px; bottom: 22px; z-index: 7; }
.modebtn { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px 0 7px; border-radius: 30px; background: var(--glass); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7); border: 1px solid var(--line); font-size: 16px; font-weight: 500; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.modebtn .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; }
.modebtn .chev { font-size: 14px; opacity: .8; margin-left: 4px; transition: transform .3s var(--ease); }
.mode.open .chev { transform: rotate(180deg); }
.menu { position: absolute; left: 0; bottom: 70px; min-width: 260px; max-height: 60vh; overflow: auto; padding: 6px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(26px) saturate(1.7); -webkit-backdrop-filter: blur(26px) saturate(1.7); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.45); animation: pop .22s var(--ease); }
.menu h6 { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 6px; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; font-size: 15px; }
.menu button:hover { background: rgba(255,255,255,.09); }
.menu button.on { color: var(--gold); }
.menu button .ico { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; flex: none; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* панель «вид из окна» */
.win { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 22px; background: var(--glass); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.wsel { display: flex; align-items: center; gap: 2px; padding: 0 2px; }
.wsel span { min-width: 92px; text-align: center; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.wsel button { width: 36px; height: 36px; border-radius: 12px; font-size: 18px; background: rgba(255,255,255,.07); }
.wsel button:hover { background: rgba(255,255,255,.15); }
.wsel.floor button { background: var(--gold); color: var(--gold-ink); font-weight: 700; }
.wsel.floor button:hover { filter: brightness(1.08); }
.seg { display: flex; padding: 3px; border-radius: 14px; background: rgba(255,255,255,.07); }
.seg button { padding: 8px 12px; border-radius: 11px; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg button.on { background: #fff; color: #111; font-weight: 600; }

/* снимок и полный экран */
.tools { position: fixed; right: 20px; bottom: 22px; z-index: 6; display: flex; flex-direction: column; gap: 10px; }
.tools button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.tools button:hover { background: rgba(40,42,46,.8); }

/* значки в кадре */
#spots { position: fixed; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.spot { position: absolute; left: 0; top: 0; pointer-events: auto; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #e2c08b, var(--gold) 60%, #a9824b); color: var(--gold-ink); box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 4px rgba(201,162,106,.25);
  transition: transform .25s var(--ease), opacity .25s var(--ease), box-shadow .25s var(--ease); will-change: transform; }
.spot.sm { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.spot:hover { box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 0 7px rgba(201,162,106,.35); }
.spot .tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px); white-space: nowrap; padding: 7px 12px; border-radius: 12px; font-size: 13px; font-weight: 500; color: #fff;
  background: rgba(18,19,22,.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; pointer-events: none; transition: .2s var(--ease); }
.spot:hover .tip { opacity: 1; transform: translateX(-50%); }
.spot.hidden { opacity: 0; pointer-events: none; }

.hint { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 4; padding: 8px 14px; border-radius: 14px; font-size: 13px; color: #fff; background: rgba(18,19,22,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: opacity .6s; pointer-events: none; }
.hint.off { opacity: 0; }
.loading { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; background: #0b0c0e; color: var(--muted); font-size: 14px; transition: opacity .6s; }
.loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--gold); animation: spin 1s linear infinite; }
.loading.off { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .logo b { font-size: 21px; } .logo i { font-size: 12px; }
  .map { width: min(320px, 38vw); }
}
@media (max-width: 760px) {
  .logo { left: 14px; top: 40px; } .logo b { font-size: 20px; } .logo i { font-size: 12px; }
  .map { width: 46vw; right: 10px; top: 40px; border-radius: 14px; }
  .compass { width: 90vw; }
  .mode { left: 10px; bottom: 12px; } .modebtn { height: 52px; font-size: 15px; } .modebtn .ico { width: 40px; height: 40px; }
  .win { bottom: 74px; flex-wrap: wrap; justify-content: center; width: calc(100% - 20px); }
  .wsel span { min-width: 74px; font-size: 13px; }
  .tools { right: 10px; bottom: 12px; } .tools button { width: 44px; height: 44px; }
  .hint { bottom: 150px; }
}
