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

html, body {
  width: 100%;
  overflow-x: hidden;
  background: #0a0e17;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.scroll-container {
  height: 500vh;
  position: relative;
}

.viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.sky {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(180deg, #0a0e17 0%, #141824 30%, #1e2436 60%, #2a3040 100%);
  pointer-events: none;
}

/* --- Cloud Layers --- */
.cloud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cloud-top, .cloud-bottom {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 55%;
  filter: blur(8px);
}

.cloud-top {
  top: 0;
}

.cloud-bottom {
  bottom: 0;
}

/* Layer 1 (back) - thin haze, z-index 20 */
.cloud-layer-1 { z-index: 20; }
.cloud-1-top,
.cloud-1-bottom {
  background: radial-gradient(ellipse 90% 60% at 50% 80%, rgba(40, 45, 60, 0.4) 0%, transparent 70%);
  filter: blur(20px);
}
.cloud-1-bottom {
  background: radial-gradient(ellipse 90% 60% at 50% 20%, rgba(40, 45, 60, 0.4) 0%, transparent 70%);
}

/* Layer 2 - thin haze, z-index 25 */
.cloud-layer-2 { z-index: 25; }
.cloud-2-top {
  background:
    radial-gradient(ellipse 70% 50% at 30% 70%, rgba(50, 55, 70, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 70% 80%, rgba(45, 50, 65, 0.3) 0%, transparent 70%);
  filter: blur(16px);
}
.cloud-2-bottom {
  background:
    radial-gradient(ellipse 70% 50% at 60% 30%, rgba(50, 55, 70, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(45, 50, 65, 0.3) 0%, transparent 70%);
  filter: blur(16px);
}

/* Layer 3 - wispy clouds, z-index 30 */
.cloud-layer-3 { z-index: 30; }
.cloud-3-top {
  background:
    radial-gradient(ellipse 50% 35% at 20% 60%, rgba(70, 75, 95, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 45% 30% at 80% 70%, rgba(65, 70, 90, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse 35% 25% at 50% 75%, rgba(60, 65, 85, 0.35) 0%, transparent 70%);
  filter: blur(12px);
}
.cloud-3-bottom {
  background:
    radial-gradient(ellipse 50% 35% at 70% 40%, rgba(70, 75, 95, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 45% 30% at 30% 30%, rgba(65, 70, 90, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse 35% 25% at 50% 25%, rgba(60, 65, 85, 0.35) 0%, transparent 70%);
  filter: blur(12px);
}

/* Layer 4 - mid-depth, z-index 40 */
.cloud-layer-4 { z-index: 40; }
.cloud-4-top {
  background:
    radial-gradient(ellipse 55% 40% at 40% 65%, rgba(85, 90, 110, 0.6) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 10% 55%, rgba(80, 85, 105, 0.5) 0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 75% 70%, rgba(75, 80, 100, 0.45) 0%, transparent 65%);
  filter: blur(8px);
}
.cloud-4-bottom {
  background:
    radial-gradient(ellipse 55% 40% at 55% 35%, rgba(85, 90, 110, 0.6) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 85% 45%, rgba(80, 85, 105, 0.5) 0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 25% 30%, rgba(75, 80, 100, 0.45) 0%, transparent 65%);
  filter: blur(8px);
}

/* Layer 5 - medium clouds, z-index 50 */
.cloud-layer-5 { z-index: 50; }
.cloud-5-top {
  background:
    radial-gradient(ellipse 60% 45% at 60% 70%, rgba(100, 105, 125, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 20% 60%, rgba(95, 100, 120, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 75%, rgba(90, 95, 115, 0.5) 0%, transparent 60%);
  filter: blur(5px);
}
.cloud-5-bottom {
  background:
    radial-gradient(ellipse 60% 45% at 35% 30%, rgba(100, 105, 125, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 75% 40%, rgba(95, 100, 120, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 25%, rgba(90, 95, 115, 0.5) 0%, transparent 60%);
  filter: blur(5px);
}

/* Layer 6 (front) - large dark clouds, z-index 60 */
.cloud-layer-6 { z-index: 60; }
.cloud-6-top {
  background:
    radial-gradient(ellipse 70% 50% at 50% 75%, rgba(20, 25, 40, 0.9) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 15% 65%, rgba(25, 30, 45, 0.8) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 85% 70%, rgba(30, 35, 50, 0.75) 0%, transparent 55%);
  filter: blur(3px);
}
.cloud-6-bottom {
  background:
    radial-gradient(ellipse 70% 50% at 45% 25%, rgba(20, 25, 40, 0.9) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 80% 35%, rgba(25, 30, 45, 0.8) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 20% 30%, rgba(30, 35, 50, 0.75) 0%, transparent 55%);
  filter: blur(3px);
}

/* --- Title --- */
.title-container {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}

.title {
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  color: rgba(200, 200, 210, 0.9);
  text-shadow: 0 0 40px rgba(100, 120, 150, 0.4), 0 0 80px rgba(60, 80, 110, 0.2);
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(160, 165, 180, 0.8);
  margin-top: 1rem;
  opacity: 0;
}

/* --- Map --- */
.map-container {
  position: absolute;
  inset: 0;
  z-index: 65;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
}

.map-wrapper {
  position: relative;
  display: inline-block;
  max-width: 95%;
  max-height: 90vh;
}

.map-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 90vh;
  object-fit: contain;
}

/* --- Markers --- */
.markers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 70;
  pointer-events: none;
}

.marker {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  cursor: pointer;
}

.marker-pin {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #e84040 40%, #b02020 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.marker:hover .marker-pin {
  transform: rotate(-45deg) scale(1.2);
  box-shadow: 0 4px 16px rgba(232, 64, 64, 0.4);
}

.marker[data-single-image] .marker-pin {
  background: radial-gradient(circle, #e8d040 40%, #b0a020 100%);
}

.marker[data-single-image]:hover .marker-pin {
  box-shadow: 0 4px 16px rgba(232, 208, 64, 0.4);
}

.marker-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 23, 0.9);
  color: #ccc;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  border: 1px solid rgba(100, 120, 150, 0.3);
}

.marker:hover .marker-tooltip {
  opacity: 1;
}

/* --- 360 Overlay --- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay-pano {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10010;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.overlay-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* --- Polish --- */
html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}
