.store-tour-page{
  min-height:100vh;
  background:var(--deep);
}

.tour-site-header{
  z-index:60;
}

.tour-preview-label{
  color:#527064;
  font:700 11px/1 "DM Mono",monospace;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.tour-main{
  background:var(--deep);
}

.tour-stage{
  position:relative;
  height:calc(100svh - 86px);
  min-height:560px;
  overflow:hidden;
  isolation:isolate;
  background:#071813;
  color:#fff;
}

.tour-stage::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(3,17,13,.54) 0,transparent 25%,transparent 66%,rgba(3,17,13,.7) 100%);
}

.tour-viewer{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  cursor:grab;
  touch-action:none;
  background:#071813;
}

.tour-viewer:active{cursor:grabbing}
.tour-viewer:focus-visible{outline:3px solid var(--accent);outline-offset:-6px}
.tour-viewer canvas{display:block}

.tour-intro{
  position:absolute;
  inset:0;
  z-index:24;
  display:grid;
  place-items:center;
  padding:clamp(24px,5vw,72px);
  background:linear-gradient(120deg,rgba(3,17,13,.9),rgba(3,17,13,.42));
  color:#fff;
  transition:opacity .3s ease,visibility .3s ease;
}

.tour-intro[hidden]{display:none}
.tour-intro.is-hidden{opacity:0;visibility:hidden;pointer-events:none}

.tour-intro__content{
  display:grid;
  grid-template-columns:minmax(420px,1.05fr) minmax(300px,.68fr);
  align-items:center;
  width:min(1120px,100%);
  gap:clamp(28px,5vw,78px);
}

.tour-intro__gallery{
  display:grid;
  grid-template-columns:1fr .82fr;
  gap:14px;
  height:min(58vh,520px);
  min-height:350px;
}

.tour-intro__photo{
  position:relative;
  min-width:0;
  margin:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.3);
  border-radius:20px;
  background:#0b2820;
  box-shadow:0 24px 70px rgba(0,0,0,.3);
}

.tour-intro__photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.tour-intro__photo--outside img{object-position:center 45%}
.tour-intro__photo--entrance{transform:translateY(30px)}
.tour-intro__photo--entrance img{object-position:center 38%}

.tour-intro__photo figcaption{
  position:absolute;
  right:12px;
  bottom:12px;
  margin:0;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:999px;
  background:rgba(5,27,21,.78);
  color:#fff;
  font:700 10px/1 "DM Mono",monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.tour-intro__copy{max-width:470px}
.tour-intro__copy .eyebrow{color:#d9f25e}
.tour-intro__copy h1{margin:13px 0 20px;font:500 clamp(42px,5.5vw,76px)/.95 "Playfair Display",Georgia,serif;letter-spacing:-.055em}
.tour-intro__copy>p:not(.eyebrow){max-width:430px;margin:0;color:#e1ebe6;font-size:16px;line-height:1.65}

.tour-intro__start{
  display:inline-flex;
  align-items:center;
  gap:18px;
  min-height:52px;
  margin-top:27px;
  padding:12px 18px 12px 21px;
  border:1px solid var(--accent);
  border-radius:999px;
  background:var(--accent);
  color:var(--deep);
  font-weight:800;
}

.tour-intro__start span{font-size:21px;line-height:1}
.tour-intro__start:hover{background:#fff;border-color:#fff}
.tour-intro__start:focus-visible{outline:3px solid #fff;outline-offset:4px}

.tour-loading,
.tour-error{
  position:absolute;
  inset:0;
  z-index:20;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:15px;
  padding:30px;
  background:var(--deep);
  text-align:center;
}

.tour-error{z-index:30}

.tour-loading[hidden],
.tour-error[hidden]{display:none}

.tour-loading.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.tour-loading__spinner{
  width:42px;
  height:42px;
  border:3px solid rgba(255,255,255,.22);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:tour-spin .8s linear infinite;
}

.tour-error h1{
  max-width:700px;
  margin:0;
  font:500 clamp(38px,6vw,70px)/.96 "Playfair Display",Georgia,serif;
  letter-spacing:-.045em;
}

.tour-error p:not(.eyebrow){max-width:560px;color:#d3ddd8}
.tour-error .button{background:#fff;color:var(--deep)}

.tour-topbar,
.tour-bottom,
.tour-zoom,
.tour-status{
  position:absolute;
  z-index:5;
}

.tour-topbar{
  top:clamp(16px,3vw,34px);
  right:clamp(16px,3vw,42px);
  left:clamp(16px,3vw,42px);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  pointer-events:none;
}

.tour-scene-card,
.tour-actions,
.tour-zoom,
.tour-locations{
  pointer-events:auto;
}

.tour-scene-card{
  display:grid;
  gap:2px;
  min-width:170px;
  padding:13px 17px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:15px;
  background:rgba(5,27,21,.72);
  box-shadow:0 14px 36px rgba(0,0,0,.16);
  backdrop-filter:blur(14px);
}

.tour-scene-card span{
  color:#cbd8d2;
  font:600 10px/1.4 "DM Mono",monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.tour-scene-card strong{font-size:16px}

.tour-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.tour-actions button,
.tour-zoom button,
.tour-locations button{
  min-height:44px;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(5,27,21,.72);
  color:#fff;
  font-size:12px;
  font-weight:700;
  backdrop-filter:blur(14px);
}

.tour-actions button{
  padding:10px 15px;
  border-radius:999px;
}

.tour-actions button:hover,
.tour-actions button[aria-pressed="true"],
.tour-zoom button:hover,
.tour-locations button:hover,
.tour-locations button[aria-current="true"]{
  border-color:var(--accent);
  background:var(--accent);
  color:var(--deep);
}

.tour-zoom{
  top:50%;
  right:clamp(16px,3vw,42px);
  display:grid;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  background:rgba(5,27,21,.72);
  box-shadow:0 14px 36px rgba(0,0,0,.14);
  transform:translateY(-50%);
}

.tour-zoom button{
  min-width:48px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.15);
  border-radius:0;
  font-size:20px;
}

.tour-zoom button:last-child{
  border-bottom:0;
  font-size:10px;
  text-transform:uppercase;
}

.tour-bottom{
  right:clamp(16px,3vw,42px);
  bottom:clamp(18px,3vw,36px);
  left:clamp(16px,3vw,42px);
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:22px;
  pointer-events:none;
}

.tour-help{
  max-width:300px;
  margin:0;
  color:#e8efeb;
  font-size:12px;
  text-shadow:0 2px 10px rgba(0,0,0,.55);
}

.tour-help span{
  display:inline-grid;
  place-items:center;
  width:38px;
  height:38px;
  margin-right:9px;
  border:1px solid rgba(255,255,255,.38);
  border-radius:50%;
  font:700 10px "DM Mono",monospace;
}

.tour-locations{
  display:flex;
  max-width:min(700px,65vw);
  gap:8px;
  overflow-x:auto;
  padding:2px;
  scrollbar-width:none;
}

.tour-locations::-webkit-scrollbar{display:none}
.tour-locations button{flex:0 0 auto;padding:9px 15px;border-radius:999px}

.tour-status{
  right:24px;
  bottom:100px;
  max-width:min(360px,calc(100vw - 48px));
  margin:0;
  padding:10px 14px;
  border-radius:10px;
  background:rgba(5,27,21,.88);
  color:#fff;
  font-size:12px;
  opacity:0;
  pointer-events:none;
  transform:translateY(5px);
}

.tour-status.is-visible{opacity:1;transform:none}

.tour-hotspot{
  display:grid;
  justify-items:center;
  gap:6px;
  min-width:118px;
  padding:0;
  border:0;
  background:transparent;
  color:#fff;
  text-align:center;
  text-shadow:0 2px 8px rgba(0,0,0,.7);
}

.tour-hotspot__arrow{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border:3px solid #fff;
  border-radius:50%;
  background:var(--accent);
  color:var(--deep);
  box-shadow:0 12px 34px rgba(0,0,0,.28);
  font-size:26px;
  line-height:1;
}

.tour-hotspot__label{
  max-width:170px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(5,27,21,.76);
  font-size:11px;
  font-weight:700;
  backdrop-filter:blur(10px);
}

.tour-hotspot:hover .tour-hotspot__arrow,
.tour-hotspot:focus-visible .tour-hotspot__arrow{
  background:#fff;
  box-shadow:0 14px 38px rgba(0,0,0,.34);
}

.tour-hotspot:focus-visible{outline:none}
.tour-hotspot:focus-visible .tour-hotspot__label{outline:3px solid rgba(217,242,94,.65);outline-offset:3px}

.tour-note{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(300px,.7fr);
  align-items:end;
  gap:clamp(35px,8vw,120px);
  padding:clamp(68px,9vw,112px) clamp(24px,7vw,110px);
  background:var(--paper);
  color:var(--ink);
}

.tour-note h1{
  max-width:760px;
  margin:0;
  font:500 clamp(42px,6vw,78px)/.96 "Playfair Display",Georgia,serif;
  letter-spacing:-.05em;
}

.tour-note>p{max-width:550px;margin:0;color:var(--muted);font-size:17px}

.tour-stage:fullscreen,
.tour-stage:-webkit-full-screen{
  width:100%;
  height:100%;
  min-height:0;
}

@keyframes tour-spin{to{transform:rotate(360deg)}}

@media(max-width:760px){
  .tour-site-header{height:72px;padding:0 16px}
  .tour-site-header .brand{width:145px;height:40px}
  .tour-preview-label{display:none}
  .tour-stage{height:calc(100svh - 72px);min-height:520px}
  .tour-intro{align-items:end;padding:22px 16px max(24px,env(safe-area-inset-bottom))}
  .tour-intro__content{grid-template-columns:1fr;gap:26px}
  .tour-intro__gallery{height:clamp(205px,35vh,290px);min-height:0;gap:9px}
  .tour-intro__photo{border-radius:14px}
  .tour-intro__photo--entrance{transform:translateY(14px)}
  .tour-intro__copy{max-width:none}
  .tour-intro__copy h1{margin:9px 0 12px;font-size:clamp(37px,11vw,52px)}
  .tour-intro__copy>p:not(.eyebrow){font-size:14px;line-height:1.5}
  .tour-intro__start{min-height:48px;margin-top:18px;padding:10px 16px 10px 18px}
  .tour-topbar{top:14px;right:14px;left:14px;align-items:start}
  .tour-scene-card{min-width:0;padding:10px 12px}
  .tour-scene-card span{font-size:9px}
  .tour-scene-card strong{font-size:14px}
  .tour-actions{max-width:210px}
  .tour-actions button{min-height:40px;padding:8px 11px;font-size:11px}
  .tour-zoom{right:14px}
  .tour-zoom button{min-width:44px;min-height:42px}
  .tour-bottom{right:14px;bottom:max(16px,env(safe-area-inset-bottom));left:14px;display:block}
  .tour-help{display:none}
  .tour-locations{max-width:calc(100vw - 28px)}
  .tour-locations button{min-height:42px;padding:8px 13px}
  .tour-status{right:14px;bottom:78px;max-width:calc(100vw - 28px)}
  .tour-note{grid-template-columns:1fr;padding:60px 24px}
  .tour-note>p{font-size:15px}
  .tour-hotspot__arrow{width:50px;height:50px}
  .tour-hotspot__label{font-size:10px}
}

@media(max-width:460px){
  .tour-site-header .cart-button{min-height:38px;padding:8px 11px;font-size:11px}
  .tour-actions{max-width:170px}
  .tour-actions button{padding:7px 10px}
  .tour-actions #tour-motion{order:3}
  .tour-zoom{top:48%}
}

@media(prefers-reduced-motion:reduce){
  .tour-loading__spinner{animation:none}
}
