/* GESELL landing page: interactive 360° hero with animated map overlay. */
:root {
  --font: 'Montserrat', 'Gotham Black', 'Arial Black', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
  background: #000;
  color: #fff;
  font-family: var(--font);
}

body { overflow: hidden; }

.hero {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
  text-align: center;
}

.panorama-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
  touch-action: pan-y pinch-zoom;
}

.panorama-stage .pnlm-container {
  width: 100%;
  height: 100%;
  background: #000;
  font-family: var(--font);
}

.panorama-stage.panorama-unavailable {
  display: grid;
  place-items: center;
  background: #000 url('../images/bg-1.webp') center / cover no-repeat;
}

.panorama-stage .fallback-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(.2rem, 1vw, .65rem);
  padding: 1rem;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

/* GESELL stays attached to a fixed point in the panorama. */
.panorama-stage .pnlm-hotspot.gesell-panorama-title {
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.panorama-stage .gesell-panorama-title > span {
  visibility: visible !important;
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: max-content;
  max-width: 96vw;
  flex-direction: column;
  align-items: center;
  gap: clamp(.2rem, 1vw, .65rem);
  margin: 0 !important;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.panorama-stage .title {
  max-width: 96vw;
  margin: 0;
  color: #fff;
  font-family: var(--font);
  font-size: clamp(3.4rem, 18vw, 16rem);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: .95;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.panorama-stage .subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.25em;
  margin: 0;
  color: #fff;
  font-family: var(--font);
  font-size: clamp(1rem, 4.4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  transition: opacity .22s var(--ease), transform .22s var(--ease), filter .22s var(--ease);
}

.panorama-stage .subtitle.is-changing {
  opacity: 0;
  transform: translate3d(0, .4em, 0);
  filter: blur(8px);
}

/* Shared style for the two top navigation controls. */
.orientation-toggle,
.map-toggle {
  position: absolute;
  z-index: 3;
  top: max(1rem, env(safe-area-inset-top));
  max-width: calc(50% - 1.5rem);
  padding: .7rem .9rem;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 999px;
  background: rgba(0, 0, 0, .48);
  color: #fff;
  font: 900 .68rem/1 var(--font);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.orientation-toggle { right: max(1rem, env(safe-area-inset-right)); }
.map-toggle { left: max(1rem, env(safe-area-inset-left)); }

.orientation-toggle:hover,
.orientation-toggle[aria-pressed="true"],
.map-toggle:hover {
  background: rgba(255, 255, 255, .2);
  border-color: #fff;
}

.orientation-toggle:focus-visible,
.map-toggle:focus-visible,
.panorama-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Full-screen map layer: enters with a soft scale-and-rise transition. */
.map {
  position: fixed;
  z-index: 10;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  background: #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 2.5%, 0) scale(.985);
  transform-origin: center;
  transition:
    opacity .42s ease,
    transform .58s var(--ease),
    visibility 0s linear .58s;
  will-change: opacity, transform;
}

.map.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity .42s ease,
    transform .58s var(--ease),
    visibility 0s;
}

.map-frame {
  position: absolute;
  inset: 0;
  background: #000;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.panorama-toggle {
  position: absolute;
  z-index: 12;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: .7rem;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, transform .2s ease;
}

.panorama-toggle:hover {
  background: rgba(255, 255, 255, .2);
  transform: scale(1.06);
}

.panorama-toggle svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-link {
  position: absolute;
  z-index: 12;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  padding: .7rem .9rem;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font-size: .72rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.noscript { position: relative; padding: 2rem; text-align: center; }

@media (max-width: 420px) {
  .panorama-stage .title { font-size: clamp(3rem, 17vw, 4.5rem); }
  .panorama-stage .subtitle { font-size: clamp(.9rem, 4.2vw, 1.2rem); letter-spacing: 0; }
  .orientation-toggle, .map-toggle { padding: .65rem .75rem; font-size: .6rem; }
  .panorama-toggle { width: 2.8rem; height: 2.8rem; }
  .map-link { font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  .panorama-stage .subtitle,
  .map,
  .orientation-toggle,
  .map-toggle,
  .panorama-toggle { transition-duration: .01ms !important; filter: none !important; }
}


/* Discreet route to the dedicated GESELL assistant page. */
.assistant-toggle {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: rgba(0, 0, 0, .48);
  color: #fff;
  font: 900 .68rem/1 var(--font);
  letter-spacing: .1em;
  appearance: none;
  cursor: not-allowed;
  opacity: 1;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.assistant-toggle:disabled { cursor: not-allowed; opacity: 1; }
.assistant-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 420px) {
  .orientation-toggle,
  .map-toggle {
    padding: .65rem .72rem;
    font-size: .61rem;
  }
}
