/* Storage Hub — storage sizes in 3D (stand-alone page). */
:root {
  --blue: #0034a7; --deep: #002a86; --ink: #172847; --muted: #4f5c6e;
  --night: #0e1a30; --line: #d1daef; --bar: 64px; --note: 46px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--night); color: #fff; font: 16px/1.5 Archivo, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.s3-skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.s3-skip:focus { left: 8px; }
.s3-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.s3-bar { height: var(--bar); background: #fff; color: var(--ink); display: flex; align-items: center; gap: 18px; padding: 0 20px; box-shadow: 0 1px 0 var(--line); position: relative; z-index: 5; }
.s3-brand img { display: block; height: 44px; width: auto; }
.s3-title { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.s3-title h1 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.s3-title span { font-size: 13px; color: var(--muted); font-weight: 600; }
.s3-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.s3-nav a { text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 8px; padding: 10px 14px; white-space: nowrap; }
.s3-back { color: var(--ink); border: 1px solid var(--line); }
.s3-back:hover { border-color: var(--blue); color: var(--blue); }
.s3-quote { background: var(--blue); color: #fff; }
.s3-quote:hover { background: var(--deep); }
.s3-nav a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.s3-main { display: flex; flex-direction: column; }
.tour-stage { position: relative; height: calc(100vh - var(--bar) - var(--note)); height: calc(100svh - var(--bar) - var(--note)); min-height: 420px; overflow: hidden; background: #2b3446; isolation: isolate; }
.tour-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity .3s ease; }
.tour-stage.is-ready canvas { opacity: 1; }
.tour-stage.is-ready.is-fading canvas { opacity: 0; transition-duration: .22s; }
.tour-stage canvas.is-dragging { cursor: grabbing; }
.tour-stage canvas.is-pointing { cursor: pointer; }
.tour-stage canvas:focus-visible { box-shadow: inset 0 0 0 3px #fff; }
.s3-note { margin: 0; min-height: var(--note); padding: 12px 20px; font-size: 13px; color: #9fb0cc; }
.s3-note a { color: #fff; font-weight: 700; }

.tour-poster { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: #2b3446; transition: opacity .5s ease; z-index: 1; }
.tour-stage.is-ready .tour-poster { opacity: 0; pointer-events: none; }
.tour-poster p { margin: 0; font-weight: 600; font-size: 17px; max-width: 28em; }
.tour-spinner { width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: s3-spin .9s linear infinite; }
.tour-stage.is-failed .tour-spinner { display: none; }
@keyframes s3-spin { to { transform: rotate(360deg); } }

.tour-chips { position: absolute; z-index: 2; top: 16px; left: 16px; right: 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tour-chips::-webkit-scrollbar { display: none; }
.tour-chip { flex: 0 0 auto; font: inherit; font-size: 15px; font-weight: 700; color: var(--night); background: rgba(255,255,255,.95); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); }
.tour-chip:hover { background: #fff; }
.tour-chip[aria-pressed="true"] { background: var(--blue); color: #fff; }
.tour-chip--park { background: rgba(14,26,48,.85); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.tour-chip--park[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.tour-chip:focus-visible, .tour-ctrl:focus-visible, .tour-card a:focus-visible, .tour-card button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.tour-hint { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); margin: 0; background: rgba(14,26,48,.8); font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.tour-stage.has-interacted .tour-hint { opacity: 0; }
.tour-controls { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.tour-ctrl { font: inherit; font-size: 14px; font-weight: 700; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(14,26,48,.85); color: #fff; cursor: pointer; }
.tour-ctrl:hover { background: var(--blue); }

.tour-card { position: absolute; z-index: 3; left: 16px; bottom: 16px; width: min(380px, calc(100% - 32px)); background: #fff; color: var(--ink); border-radius: 12px; padding: 20px 20px 18px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.7); transform: translateY(12px); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.tour-card.is-open { opacity: 1; transform: none; pointer-events: auto; }
.tour-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tour-card h2 { margin: 0; font-size: 32px; line-height: 1.05; letter-spacing: -.03em; color: var(--blue); }
.tour-dims { font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap; }
.tour-card p { margin: 10px 0 16px; font-size: 15.5px; line-height: 1.5; }
.tour-card-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tour-btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 16px; border-radius: 8px; }
.tour-btn:hover { background: var(--deep); }
.tour-close { font: inherit; font-size: 15px; font-weight: 700; background: none; border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 4px; }

@media (max-width: 760px) {
  :root { --bar: 58px; --note: 64px; }
  .s3-bar { padding: 0 12px; gap: 10px; }
  .s3-brand img { height: 38px; }
  .s3-title span { display: none; }
  .s3-title h1 { font-size: 16px; }
  .s3-quote { display: none; }
  .s3-nav a { padding: 9px 11px; font-size: 14px; }
  .tour-chips { top: 12px; left: 12px; right: 12px; }
  .tour-chip { padding: 9px 13px; font-size: 14px; }
  .tour-hint { bottom: 76px; font-size: 13px; }
  .tour-controls { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  .tour-card { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 16px; }
  .tour-card h2 { font-size: 26px; }
  .tour-card p { font-size: 14.5px; margin-bottom: 12px; }
  .tour-stage.has-card .tour-controls { display: none; }
  .s3-note { padding: 10px 12px; font-size: 12px; }
}
@media (max-width: 380px) { .s3-title h1 { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .tour-stage canvas, .tour-poster, .tour-card, .tour-hint { transition: none; }
  .tour-spinner { animation: none; }
}
.tour-view { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; background: #eef1f6; border-radius: 10px; }
.tour-view button { font: inherit; font-size: 14px; font-weight: 700; border: 0; border-radius: 7px; padding: 8px 12px; background: transparent; color: var(--ink); cursor: pointer; }
.tour-view button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(23,40,71,.18); }
.tour-view button:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }

/* refined buttons */
.tour-chips { gap: 10px; padding: 2px; }
.tour-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 16px 8px; border-radius: 14px; line-height: 1.1;
  background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 8px 22px -12px rgba(0,0,0,.7); transition: background .2s, color .2s, transform .15s, box-shadow .2s; }
.tour-chip:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(0,0,0,.75); }
.tour-chip-area { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.tour-chip-dims { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.tour-chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.tour-chip[aria-pressed="true"] .tour-chip-dims { color: #cbd9f3; }
.tour-chip--park { flex-direction: row; align-items: center; gap: 8px; background: rgba(14,26,48,.88); color: #fff; border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); font-weight: 800; font-size: 15px; }
.tour-chip--park:hover { background: rgba(14,26,48,.96); }
.tour-chip--park[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.tour-ctrl { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 12px; background: rgba(14,26,48,.78); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); box-shadow: 0 8px 20px -12px rgba(0,0,0,.8); transition: background .2s, transform .15s; }
.tour-ctrl:hover { background: var(--blue); transform: translateY(-1px); }
.tour-ctrl svg { flex: 0 0 auto; }
.tour-calc { margin: -6px 0 14px !important; padding: 10px 12px; background: #f1f5fc; border-radius: 8px; font-size: 13.5px !important; line-height: 1.45 !important; color: var(--ink); }
.tour-calc span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 2px; }
.tour-view { margin: 0 0 12px; }
@media (max-width: 760px) {
  .tour-chip { padding: 8px 12px 7px; }
  .tour-chip-area { font-size: 15px; }
  .tour-chip-dims { font-size: 11px; }
  .tour-ctrl span { display: none; }
  .tour-ctrl { width: 46px; padding: 0; justify-content: center; }
  .tour-calc { font-size: 12.5px !important; }
}

/* compact unit card */
.tour-card { width: min(320px, calc(100% - 32px)); padding: 14px 16px 14px; border-radius: 12px; }
.tour-card h2 { font-size: 26px; }
.tour-dims { font-size: 13px; }
.tour-card p { margin: 8px 0 10px; font-size: 14px; line-height: 1.42; }
.tour-view { margin: 0 0 10px; padding: 3px; }
.tour-view button { font-size: 13px; padding: 6px 10px; }
.tour-btn { font-size: 14px; padding: 10px 13px; }
.tour-close { font-size: 14px; }
@media (max-width: 760px) {
  .tour-card { padding: 12px 14px; }
  .tour-card h2 { font-size: 22px; }
  .tour-card p { font-size: 13.5px; margin: 6px 0 8px; }
}

/* phones: all buttons visible without sideways scrolling */
@media (max-width: 760px) {
  .tour-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; overflow: visible; top: 10px; left: 10px; right: 10px; }
  .tour-chip { align-items: center; padding: 7px 2px 6px; border-radius: 11px; min-width: 0; }
  .tour-chip-area { font-size: 13.5px; white-space: nowrap; }
  .tour-chip-dims { font-size: 10px; white-space: nowrap; }
  .tour-chip--park { grid-column: 1 / -1; justify-content: center; padding: 7px 10px; font-size: 14px; border-radius: 11px; }
  .tour-chip--park svg { width: 16px; height: 16px; }
}
@media (max-width: 340px) {
  .tour-chips { gap: 4px; }
  .tour-chip-area { font-size: 12.5px; }
  .tour-chip-dims { font-size: 9px; }
}

/* close icon (phones) and compact unit card */
.tour-x { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: 8px; border-radius: 8px; border: 0; background: #eef1f6; color: var(--ink); cursor: pointer; padding: 0; }
.tour-x:hover { background: #e2e7f0; }
@media (max-width: 760px) {
  .tour-card.is-unit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; }
  .tour-card.is-unit .tour-card-top { flex: 1 0 100%; align-items: center; justify-content: flex-start; }
  .tour-card.is-unit h2 { font-size: 20px; }
  .tour-card.is-unit .tour-dims { font-size: 12.5px; margin-left: 8px; margin-right: auto; }
  .tour-card.is-unit p { display: none; }
  .tour-card.is-unit .tour-x { display: inline-flex; }
  .tour-card.is-unit .tour-close--text { display: none; }
  .tour-card.is-unit .tour-view { margin: 0; }
  .tour-card.is-unit .tour-view button { padding: 6px 9px; font-size: 12.5px; }
  .tour-card.is-unit .tour-card-actions { margin-left: auto; }
  .tour-card.is-unit .tour-btn { padding: 8px 14px; font-size: 13.5px; }
  .tour-long { display: none; }
  :root { --note: 40px; }
  .s3-note { font-size: 11px; line-height: 1.35; padding: 7px 12px; }
}
