﻿/* Wolfgraben — WALDE-style immersive tour */
:root {
  --text: #f7f4ef;
  --muted: rgba(247, 244, 239, 0.72);
  --accent: #c4a484;
  --glass: rgba(12, 11, 10, 0.55);
  --glass-strong: rgba(12, 11, 10, 0.78);
  --line: rgba(255, 255, 255, 0.14);
  --pin: #1a1a1a;
  --yah: #e23b2f;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%;
  font-family: var(--font);
  background: #0c0b0a;
  color: var(--text);
  overflow: hidden;
}

.tour {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#panorama {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pnlm-about-msg,
.pnlm-load-box { display: none !important; }
.pnlm-controls-container { display: none !important; }

/* —— Branding —— */
.brand-bar {
  position: absolute;
  z-index: 20;
  top: 1rem;
  left: 1.1rem;
  pointer-events: none;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.brand {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.brand-sub {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.brand-disclaimer {
  margin: 0.45rem 0 0;
  max-width: 17rem;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.015em;
  color: rgba(247, 244, 239, 0.72);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}

/* —— Plan overlay —— */
.plan-overlay {
  position: absolute;
  z-index: 22;
  top: 1rem;
  right: 1rem;
  width: min(360px, 44vw);
  background: rgba(255,255,255,.95);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  overflow: hidden;
  color: #1a1a1a;
  transition: opacity .2s, transform .2s;
}
.plan-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}
.plan-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.45rem 0.4rem 0.15rem 0.5rem;
}
.plan-floors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}
.floor-btn {
  appearance: none;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.04);
  color: #555;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.32rem 0.55rem;
  min-width: 2.4rem;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.floor-btn:hover {
  border-color: #b08968;
  color: #222;
}
.floor-btn.active {
  background: rgba(196,164,132,.45);
  border-color: #a07850;
  color: #1a1a1a;
}
.plan-title-row {
  padding: 0 0.7rem 0.15rem;
}
.plan-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
}
.plan-close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0.15rem 0.35rem;
  flex-shrink: 0;
}
.plan-close:hover { color: #111; }

.plan-stage {
  position: relative;
  margin: 0 0.55rem 0.55rem;
  overflow: hidden;
  background: #f4f2ee;
  aspect-ratio: 1 / 1.04;
  transform-origin: center center;
}
.plan-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
/* Pins sit exactly on the rendered image content (not letterbox) */
.plan-hit {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.plan-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.plan-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -18px;
  pointer-events: auto;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  z-index: 2;
}
.plan-pin::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 2px auto 0;
  background: var(--pin);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  transition: transform .12s, background .12s;
}
.plan-pin:hover::before,
.plan-pin.active::before {
  background: #333;
  transform: rotate(-45deg) scale(1.12);
}
.plan-pin .pin-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(20,20,20,.9);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
}
.plan-pin:hover .pin-tip { opacity: 1; }

.you-are-here {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.yah-cone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -28px;
  background: conic-gradient(
    from -35deg,
    rgba(226, 59, 47, 0.48) 0deg,
    rgba(226, 59, 47, 0.14) 70deg,
    transparent 71deg,
    transparent 360deg
  );
  border-radius: 50%;
  transform-origin: center center;
  will-change: transform;
}
.yah-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--yah);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(226, 59, 47, 0.25), 0 2px 6px rgba(0,0,0,.3);
}

.plan-zoom {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  display: flex;
  gap: 0.25rem;
  z-index: 6;
}
.plan-zoom button {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.9);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
}
.plan-zoom button:hover { background: #fff; }

.plan-reopen {
  position: absolute;
  z-index: 22;
  top: 1rem;
  right: 1rem;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}
.plan-reopen[hidden] { display: none !important; }

/* —— Bottom bar —— */
.bottom-bar {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.18) 70%, transparent);
  pointer-events: none;
}
.bb-left, .bb-center, .bb-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: auto;
}
.bb-left {
  justify-content: flex-start;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.bb-center { justify-content: center; }
.bb-right { justify-content: flex-end; }

.bb-btn {
  appearance: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
}
.bb-btn:hover:not(:disabled) {
  background: rgba(196,164,132,.25);
  border-color: var(--accent);
}
.bb-btn:disabled { opacity: 0.28; cursor: default; }
.bb-btn.nav {
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.45rem;
}

.bb-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0 0.5rem;
}
.bb-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: 1.5px solid rgba(255,255,255,.55);
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: transform .12s, box-shadow .12s;
}
.bb-dot:hover { transform: scale(1.15); }
.bb-dot.active {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.22);
  border-color: #fff;
}

/* —— Continue chip (bottom-left destination preview) —— */
.continue-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(280px, 42vw);
  padding: 0.28rem 0.85rem 0.28rem 0.28rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(12, 11, 10, 0.78);
  backdrop-filter: blur(14px);
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  transition: transform .15s, border-color .15s, background .15s;
}
.continue-chip[hidden] { display: none !important; }
.continue-chip:hover {
  border-color: rgba(196,164,132,.55);
  background: rgba(18, 16, 14, 0.88);
  transform: translateY(-1px);
}
.continue-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #2a2724 center/cover no-repeat;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 2px rgba(0,0,0,.2);
}
.continue-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-right: 0.2rem;
}
.continue-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  line-height: 1.1;
}
.continue-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

/* —— In-pano thumbnail hotspots —— */
.pnlm-hotspot-base.custom-hotspot,
.pnlm-hotspot-base.hs-thumb {
  width: 54px;
  height: 54px;
  margin-left: -27px;
  margin-top: -27px;
  border-radius: 50%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1;
  cursor: pointer;
  z-index: 3;
}
.pnlm-hotspot-base.hs-thumb .hs-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(255,255,255,.95);
  box-shadow:
    0 0 0 3px rgba(0,0,0,.18),
    0 6px 18px rgba(0,0,0,.35);
  background: #1a1816 center/cover no-repeat;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pnlm-hotspot-base.hs-thumb .hs-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 42%, rgba(0,0,0,.22) 100%);
  pointer-events: none;
}
.pnlm-hotspot-base.hs-thumb .hs-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(12, 11, 10, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  transition: opacity .18s ease, transform .18s ease;
}
.pnlm-hotspot-base.hs-thumb:hover .hs-ring,
.pnlm-hotspot-base.hs-thumb.hs-focus .hs-ring {
  transform: scale(1.1);
  border-color: #fff;
  box-shadow:
    0 0 0 4px rgba(196,164,132,.35),
    0 8px 22px rgba(0,0,0,.4);
}
.pnlm-hotspot-base.hs-thumb:hover .hs-label,
.pnlm-hotspot-base.hs-thumb.hs-focus .hs-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 700px) {
  .plan-overlay { width: min(300px, 92vw); top: 3.6rem; right: 0.5rem; }
  .brand-bar { top: 0.7rem; left: 0.7rem; }
  .brand { font-size: 0.95rem; }
  .brand-disclaimer { max-width: 14rem; font-size: 0.64rem; }
  .bottom-bar { height: 3.8rem; padding-bottom: 0.35rem; }
  .floor-btn { min-width: 2.1rem; padding: 0.28rem 0.4rem; }
  .pnlm-hotspot-base.hs-thumb { width: 46px; height: 46px; margin-left: -23px; margin-top: -23px; }
  .continue-chip { max-width: min(220px, 58vw); }
  .continue-label { font-size: 0.74rem; }
}
