/* ==========================================================================
   Explore mode (explore.js): the header's and the close's buttons, the fade,
   the orbit surface and the build panel, in the Listing3D tokens.
   ========================================================================== */
.header__actions { display: flex; align-items: flex-start; gap: 8px; flex: none; }
/* the app's secondary button: dark glass, a fine light edge */
.button--ghost {
  background: #0a142299; color: var(--atlas-fg); border: 1px solid #ffffff33; border-radius: 9px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-weight: 500;
}
.button--ghost:hover { background: #0a1422d9; border-color: var(--atlas-accent-text); color: var(--atlas-fg); }
[data-explore] { display: none; gap: 7px; cursor: pointer; }
.can-explore [data-explore] { display: inline-flex; }
.is-exploring .header [data-explore] { visibility: hidden; }
[data-explore] svg { width: 15px; height: 15px; flex: none; }
.header .header__explore { min-height: 2.2rem; margin-top: 4px; padding: 0 12px; font-size: 12px; }
.end .end__explore { min-height: 2.9rem; margin-left: 10px; padding: 0 1.3rem; }

/* the fade both ways, over the film and the panel (not the header) */
.explore-veil {
  position: absolute; inset: 0; z-index: 40; pointer-events: none;
  background: var(--atlas-bg); opacity: 0; transition: opacity 0.3s var(--ease-out);
}
.explore-veil.is-on { opacity: 1; }

.explore { position: absolute; inset: 0; z-index: 35; }
.explore[hidden] { display: none; }
.explore__surface { position: absolute; inset: 0; touch-action: none; cursor: grab; }
.explore__surface:active { cursor: grabbing; }

.explore__panel {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: min(760px, calc(100% - 2 * var(--atlas-inset)));
  padding: 14px 18px 11px; box-sizing: border-box;
  background: var(--atlas-panel); border: 1px solid var(--atlas-line); border-radius: 14px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--atlas-fg); font-family: var(--sans);
  box-shadow: 0 20px 60px #0007;
}
.explore__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.explore__info { min-width: 0; }
.explore__eyebrow { margin: 0 0 5px; font: 600 9px/1.2 var(--sans); letter-spacing: 2.4px; text-transform: uppercase; color: var(--atlas-accent-text); }
.explore__now { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; font-size: 15px; }
.explore__now b { font-weight: 600; }
.explore__dot { align-self: center; width: 8px; height: 8px; border-radius: 50%; }
.explore__sub { font-size: 12px; color: var(--atlas-muted); }
.explore__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.explore__back { flex: none; min-height: 2.2rem; padding: 0 14px; font-size: 12px; cursor: pointer; border: 0; }
.explore__out { display: none; min-height: 2.2rem; padding: 0 13px; font-size: 12px; cursor: pointer; }
.is-inside .explore__out { display: inline-flex; }
.explore__into { min-height: 2.2rem; padding: 0 13px; font-size: 12px; cursor: pointer; }
.is-inside .explore__into { display: none; }
/* how to move: Orbit, Fly or Walk, as the app's segmented tools */
.explore__modes { display: flex; padding: 3px; gap: 2px; background: #ffffff0f; border: 1px solid var(--atlas-line); border-radius: 9px; }
.explore__mode {
  min-height: 1.75rem; padding: 0 11px; border: 0; border-radius: 6px; background: none;
  color: var(--atlas-muted); font: 500 12px/1 var(--sans); cursor: pointer;
}
.explore__mode:hover { color: var(--atlas-fg); }
.explore__mode[aria-pressed="true"] { background: var(--atlas-accent); color: var(--atlas-on-accent); font-weight: 600; }
/* inside the apartment the build and the modes have no say */
.is-inside .explore__modes, .is-inside .explore__slider, .is-inside .explore__ticks { display: none; }
.is-inside .explore__hint { margin-top: 10px; }

/* the build slider: the accent fills up to the moment shown */
.explore__slider {
  --fill: 100%;
  display: block; width: 100%; height: 22px; margin: 13px 0 4px; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.explore__slider::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--atlas-accent) var(--fill), #ffffff26 var(--fill));
}
.explore__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -7px;
  border-radius: 50%; background: #fff; border: 3px solid var(--atlas-accent); box-shadow: 0 2px 8px #0009;
}
.explore__slider::-moz-range-track { height: 4px; border-radius: 2px; background: #ffffff26; }
.explore__slider::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--atlas-accent); }
.explore__slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--atlas-accent); }
/* the landmarks under it, each a jump to its moment (inset by half the thumb, as its travel is) */
.explore__ticks { position: relative; height: 17px; margin: 0 9px; }
.explore__tick {
  position: absolute; top: 0; transform: translateX(-50%); padding: 0 2px; border: 0; background: none;
  color: var(--atlas-muted); font: 500 10.5px/1.5 var(--sans); white-space: nowrap; cursor: pointer;
}
.explore__tick:first-child { transform: translateX(-9px); }
.explore__tick:last-child { transform: translateX(calc(-100% + 9px)); }
.explore__tick:hover, .explore__tick:focus-visible { color: var(--atlas-fg); }
.explore__hint { margin: 7px 0 0; text-align: center; font-size: 10.5px; color: var(--atlas-muted-2); }

/* the marker on Level 24: a pulsing ring centred on its point, and its label */
.explore [hidden] { display: none !important; }
.explore__spot {
  position: absolute; left: 0; top: 0; z-index: 2; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0;
  border: 0; background: none; color: var(--atlas-fg); font-family: var(--sans); cursor: pointer;
}
.explore__spot-ring {
  position: absolute; inset: 0; box-sizing: border-box;
  border-radius: 50%; border: 3px solid #fff; background: var(--atlas-accent); box-shadow: 0 2px 10px #0009;
}
.explore__spot-ring::after {
  content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--atlas-accent-text);
  animation: explore-pulse 1.8s var(--ease-out) infinite;
}
@keyframes explore-pulse { from { transform: scale(0.55); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.explore__spot-label {
  position: absolute; left: 35px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2px; padding: 7px 13px 7px 11px; text-align: left; white-space: nowrap;
  background: var(--atlas-panel); border: 1px solid var(--atlas-line); border-radius: 10px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px #0008;
}
.explore__spot-label b { font: 600 12px/1.2 var(--sans); }
.explore__spot-label span { font: 500 10.5px/1.2 var(--sans); color: var(--atlas-accent-text); }
.explore__spot:hover .explore__spot-label { border-color: var(--atlas-accent-text); }
.explore__spot:focus-visible { outline: none; }
.explore__spot:focus-visible .explore__spot-ring { outline: 2px solid var(--atlas-accent-text); outline-offset: 10px; }

/* the views' hotspots: a white ring, an accent heart (the residence's is the other way round) */
.explore__spot--view .explore__spot-ring { inset: 2px; background: #fff; border-color: var(--atlas-accent); }
.explore__spot--view .explore__spot-ring::after { animation-duration: 2.6s; border-color: #ffffffb0; }

/* a view's photo, over the tower */
.has-photo .explore__panel, .has-photo .explore__stick, .has-photo .explore__climb { visibility: hidden; }
.explore__photo {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column;
  padding: 84px var(--atlas-inset) 22px; box-sizing: border-box;
  background: #0a1422eb; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--atlas-fg); font-family: var(--sans);
}
.explore__photo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.explore__photo-text { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.explore__photo-text b { font: 400 26px/1.1 var(--serif); }
.explore__photo-text span { font-size: 12px; color: var(--atlas-muted); }
.explore__photo-nav { display: flex; align-items: center; gap: 6px; flex: none; }
.explore__photo-count { min-width: 44px; text-align: center; font-size: 12px; color: var(--atlas-muted); font-variant-numeric: tabular-nums; }
.explore__photo-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ffffff33; background: #ffffff0d;
  color: var(--atlas-fg); font-size: 18px; line-height: 1; cursor: pointer;
}
.explore__photo-btn:hover { border-color: var(--atlas-accent-text); }
.explore__photo-close { margin-left: 6px; font-size: 14px; }
.explore__photo-scroll {
  position: relative; flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; border-radius: 14px;
  border: 1px solid #ffffff2e; background: #08111c; cursor: grab; touch-action: pan-x; scrollbar-width: thin;
}
.explore__photo-scroll:active { cursor: grabbing; }
.explore__photo-scroll img { display: block; height: 100%; width: auto; max-width: none; -webkit-user-drag: none; user-select: none; }
.explore__photo-note { margin: 10px 0 0; text-align: center; font-size: 10.5px; color: var(--atlas-muted-2); }

/* touch: the stick to move (bottom left) and the climb buttons (bottom right), over the panel */
.explore__stick {
  position: absolute; left: var(--atlas-inset); bottom: calc(var(--panel-h, 150px) + 40px);
  width: 108px; height: 108px; border-radius: 50%; touch-action: none;
  background: #0a142273; border: 1px solid #ffffff33; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.explore__knob {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: #ffffffd9; box-shadow: 0 3px 12px #0009; pointer-events: none;
}
.explore__climb {
  position: absolute; right: var(--atlas-inset); bottom: calc(var(--panel-h, 150px) + 40px);
  display: flex; flex-direction: column; gap: 10px;
}
.explore__climb-btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid #ffffff33; touch-action: none;
  background: #0a142273; color: var(--atlas-fg); font-size: 15px; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-user-select: none; user-select: none;
}
.explore__climb-btn:active { background: var(--atlas-accent); color: var(--atlas-on-accent); }

/* the film's own layers step aside while exploring */
/* (display, not visibility: the cards' and the timeline's parts set their own visibility) */
.is-exploring .copies, .is-exploring .atlas, .is-exploring .rail, .is-exploring .cue,
.is-exploring .tag, .is-exploring .scrim, .is-exploring .stage__overlay { display: none !important; }

@media (max-width: 700px) {
  .header .header__explore { min-height: 2rem; width: 2rem; margin-top: 2px; padding: 0; justify-content: center; }
  .header__explore span { display: none; }
  .project__name, .project__product { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .project__product { letter-spacing: 1.1px; }
  .end .end__explore { margin: 10px 0 0; }
  .explore__panel { bottom: 12px; padding: 12px 14px 10px; }
  .explore__now { font-size: 14px; }
  .explore__sub { width: 100%; }
  .explore__head { flex-wrap: wrap; gap: 10px; }
  .explore__actions { width: 100%; justify-content: space-between; }
  .explore__back, .explore__out, .explore__into { padding: 0 10px; font-size: 11px; }
  .explore__actions { flex-wrap: wrap; gap: 6px; }
  .explore__mode { padding: 0 12px; }
  .explore__stick { bottom: calc(var(--panel-h, 170px) + 24px); }
  .explore__climb { bottom: calc(var(--panel-h, 170px) + 24px); }
  .explore__photo { padding: 70px 12px 14px; }
  .explore__photo-bar { align-items: flex-start; }
  .explore__photo-text b { font-size: 21px; }
  .explore__photo-text span { font-size: 11px; }
  .explore__photo-btn { width: 34px; height: 34px; }
  .explore__photo-scroll { flex: 0 1 auto; height: min(56vh, 420px); margin-top: auto; margin-bottom: auto; }
  .explore__tick:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .explore-veil { transition: none; }
  .explore__spot-ring::after { animation: none; transform: scale(1.1); opacity: 0.6; }
}
