/* ===== Virtual tour — light theme matching the rest of the site ======
   Page sections in natural document flow (no full-viewport calc tricks)
   so the standard site header can't overlap. White cards + navy text +
   gold eyebrow, same vocabulary as every other inner page.
   ====================================================================== */

.pism-tour-body { background: #fff; }

/* ---- Hero band ---------------------------------------------------- */
.pism-tour-hero {
  padding: 64px 24px 32px;
  background: linear-gradient(180deg, #fff 0%, #FAF8F3 100%);
  text-align: center;
}
.pism-tour-hero__inner {
  max-width: 1240px;
  margin: 0 auto;
}
.pism-tour-eyebrow {
  margin: 0 0 10px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: #0B44C1;
}
.pism-tour-title {
  margin: 0 0 12px;
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem);
  line-height: 1.1;
  color: #0F172A;
  letter-spacing: -0.01em;
}
.pism-tour-blurb {
  margin: 0 auto;
  max-width: 580px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #475569;
}

/* ---- Tour app section --------------------------------------------- */
.pism-tour-section {
  padding: 32px 24px 80px;
  background: #fff;
}
.pism-tour-shell {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: stretch;
}

/* ---- Sidebar card ------------------------------------------------- */
.pism-tour-sidebar {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #ECEEF3;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04),
              0 12px 32px -16px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 640px;
  min-height: 420px;
}

.pism-tour-sidebar__header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid #ECEEF3;
  background: linear-gradient(180deg, #FAF8F3 0%, #fff 100%);
}
.pism-tour-sidebar__eyebrow {
  margin: 0 0 4px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E5B93B;
  font-weight: 700;
}
.pism-tour-sidebar__title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0F172A;
}

.pism-tour-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 16px;
  scrollbar-width: thin;
  scrollbar-color: #C7D2E0 transparent;
}
.pism-tour-nav::-webkit-scrollbar { width: 6px; }
.pism-tour-nav::-webkit-scrollbar-thumb { background: #C7D2E0; border-radius: 3px; }

.pism-tour-nav__status {
  margin: 12px;
  color: #64748B;
  font-size: 0.88rem;
  font-style: italic;
}

.pism-tour-level { margin: 4px 0 10px; }
.pism-tour-level__title {
  margin: 8px 12px 6px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0B44C1;
  font-weight: 700;
}

.pism-tour-area {
  margin: 12px 12px 4px;
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #17447F;
  padding-left: 6px;
  border-left: 2px solid #E5B93B;
}

.pism-tour-scene {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  color: #1f2937;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  transition: background 180ms, border-color 180ms, color 180ms;
}
.pism-tour-scene:hover {
  background: #F1F5F9;
  color: #0F172A;
}
.pism-tour-scene.is-active {
  background: rgba(11, 68, 193, 0.08);
  border-color: rgba(11, 68, 193, 0.22);
  color: #0B44C1;
  font-weight: 600;
}
.pism-tour-scene__thumb {
  width: 54px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #F1F5F9;
}
.pism-tour-scene__name { display: block; line-height: 1.25; }

/* ---- Viewer card -------------------------------------------------- */
.pism-tour-main {
  position: relative;
  background: #0F172A;       /* dark frame ONLY behind the panorama itself */
  border-radius: 16px;
  overflow: hidden;
  min-height: 540px;
  max-height: 720px;
  height: 640px;
  box-shadow: 0 6px 28px -10px rgba(15, 23, 42, 0.25);
}
.pism-tour-viewer {
  width: 100%;
  height: 100%;
}

.pism-tour-scene-label {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: 12px;
  color: #0F172A;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  max-width: calc(100% - 48px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms, transform 280ms;
}
.pism-tour-scene-label.is-visible { opacity: 1; transform: translateY(0); }
.pism-tour-scene-label__level {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0B44C1;
  margin-bottom: 4px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}
.pism-tour-scene-label__room {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #0F172A;
}

.pism-tour-sidebar-toggle { display: none; }

/* Pannellum: nudge controls into the corner so they don't crowd the
   scene label */
.pism-tour-main .pnlm-controls-container {
  right: 14px !important;
  top: 14px !important;
  left: auto !important;
}

/* ---- Mobile ------------------------------------------------------- */
@media (max-width: 900px) {
  .pism-tour-shell { grid-template-columns: 1fr; }
  .pism-tour-sidebar { max-height: 360px; min-height: 240px; }
  .pism-tour-main { height: 480px; min-height: 360px; }
  .pism-tour-hero { padding: 48px 18px 24px; }
}
