:root {
  --ink: #111;
  --paper: #fff;
  --surface: #F6F3EC;
  --accent: #B8913E;
  --accent-ink: #111;
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;
  --glass: rgba(14, 14, 14, .72);
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0c0c0c; color: var(--paper); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

#viewer { position: fixed; inset: 0; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 28px;
  background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,0));
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand__mark { font-family: var(--font-heading); font-weight: 700; letter-spacing: .18em; font-size: 12px; }
.brand__title { font-family: var(--font-heading); font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__room { font-size: 13px; color: rgba(255,255,255,.75); }
.topbar__spacer { flex: 1; }
.pill {
  border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: var(--paper);
  border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.pill[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.demo-badge { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- CTA ---------- */
.cta {
  position: fixed; z-index: 30; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 64px);
  display: flex; gap: 8px; align-items: center;
}
.btn {
  border: 0; border-radius: 999px; padding: 13px 20px; font-family: var(--font-heading); font-weight: 700;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.btn--ghost { background: var(--glass); color: var(--paper); backdrop-filter: blur(8px); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn svg { width: 18px; height: 18px; }

.hint {
  position: fixed; z-index: 25; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 130px); transform: translateX(-50%);
  background: var(--glass); padding: 9px 14px; border-radius: 999px; font-size: 13px; white-space: nowrap;
  transition: opacity .6s; backdrop-filter: blur(8px);
}
.hint.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- details sheet ---------- */
.sheet {
  position: fixed; z-index: 40; right: 0; top: 0; bottom: 0; width: min(380px, 100%);
  background: var(--paper); color: var(--ink); transform: translateX(100%); transition: transform .35s ease;
  padding: calc(env(safe-area-inset-top) + 20px) 22px 24px; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.35);
}
.sheet.is-open { transform: none; }
.sheet h2 { font-family: var(--font-heading); font-size: 24px; margin: 6px 0 4px; }
.sheet .sub { color: #555; margin: 0 0 16px; }
.sheet .price { font-family: var(--font-heading); font-weight: 700; font-size: 22px; margin: 4px 0 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 20px; }
.facts div { background: var(--surface); border-radius: 10px; padding: 10px 12px; }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #666; }
.facts dd { margin: 2px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: 17px; }
.sheet__close { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 12px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--ink); padding: 8px; }
.room-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.room-list button { width: 100%; display: flex; gap: 10px; align-items: center; background: var(--surface); border: 0; border-radius: 10px; padding: 6px; text-align: left; color: var(--ink); }
.room-list img { width: 72px; height: 40px; object-fit: cover; border-radius: 6px; }
.room-list button[aria-current="true"] { outline: 2px solid var(--accent); }
.eyebrow { font-family: var(--font-heading); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.sheet .legal { font-size: 12px; color: #777; margin-top: 18px; }

/* ---------- hotspots ---------- */
.hs-link { position: relative; width: 56px; height: 56px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.hs-link__ring {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--paper);
  background: color-mix(in srgb, var(--accent) 85%, transparent); box-shadow: 0 4px 18px rgba(0,0,0,.45);
  display: grid; place-items: center; transition: transform .2s;
}
.hs-link__ring svg { width: 20px; height: 20px; color: var(--accent-ink); }
.hs-link:hover .hs-link__ring { transform: scale(1.12); }
.hs-link__label {
  position: absolute; top: 58px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--glass); color: var(--paper); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
}
.hs-info { width: 34px; height: 34px; position: relative; }
.hs-info::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px var(--accent); }
.hs-info::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--paper); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.info-panel { padding: 20px; color: var(--ink); font-family: var(--font-body); }
.info-panel h2 { font-family: var(--font-heading); margin: 0 0 8px; font-size: 20px; }
.info-panel p { line-height: 1.55; margin: 0; }

/* ---------- PSV overrides ---------- */
.psv-container { font-family: var(--font-body) !important; }
.psv-navbar { background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0)) !important; height: calc(52px + env(safe-area-inset-bottom)) !important; padding-bottom: env(safe-area-inset-bottom); }
.psv-caption-content { font-family: var(--font-heading); font-weight: 600; }
.psv-panel { background: var(--paper) !important; color: var(--ink) !important; }
.psv-panel-close-button { color: var(--ink) !important; }
.psv-tooltip { background: var(--glass) !important; font-family: var(--font-body); font-weight: 700; }
.psv-map__pin, .psv-map { --psv-map-accent: var(--accent); }
.psv-gallery-item-title { font-family: var(--font-heading); }
.psv-gallery-item--active { box-shadow: 0 0 0 3px var(--accent) inset !important; }

/* ---------- gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: end center; padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.15) 100%);
}
@media (min-width: 720px) { .gate { place-items: center; } }
.gate[hidden] { display: none; }
.gate__card { width: min(440px, 100%); background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 24px 22px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.gate__card h1 { font-family: var(--font-heading); font-size: 24px; line-height: 1.2; margin: 6px 0 8px; }
.gate__card p { margin: 0 0 16px; line-height: 1.5; color: #444; }
.field { display: block; margin-bottom: 10px; }
.field span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #555; margin-bottom: 4px; }
.field input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #cfc8b8; border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #444; margin: 6px 0 14px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.gate .btn { width: 100%; justify-content: center; }
.gate__error { color: #A33; font-size: 13px; min-height: 18px; margin: 0 0 8px; }
.gate__demo { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #d8d0c0; font-size: 12px; color: #777; }
.gate__demo button { background: none; border: 0; color: var(--ink); text-decoration: underline; padding: 6px 0; font-weight: 700; }
.gate__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.gate__facts span { background: var(--surface); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }

/* ---------- debug ---------- */
.debug {
  position: fixed; z-index: 50; left: 12px; top: 90px; width: min(330px, calc(100% - 24px)); max-height: 45vh; overflow: auto;
  background: rgba(0,0,0,.82); color: #d6f5d6; font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; border-radius: 10px; padding: 10px;
}
.debug b { color: #fff; }
.debug .score { font-size: 13px; color: var(--accent); margin-bottom: 6px; }

@media (max-width: 560px) {
  .brand__mark { font-size: 10px; }
  .brand__title { font-size: 15px; }
  .cta .btn--ghost span { display: none; }
  .cta .btn { padding: 12px 16px; }
}

[hidden] { display: none !important; }

.langs { display: flex; gap: 4px; }
.brand__mark { white-space: nowrap; }
@media (max-width: 560px) {
  .topbar { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .pill { padding: 6px 9px; font-size: 11px; }
  .demo-badge { display: none; }
  .cta { right: 12px; }
}
.psv-panel { z-index: 55 !important; }
.info-panel { padding-top: calc(env(safe-area-inset-top) + 28px); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gate .btn[disabled] { opacity: .6; cursor: wait; }
