@font-face {
  font-family: 'RobotoCondensed';
  src: url('font/RobotoCondensed-Regular.ttf') format('truetype');
  font-weight: normal;
}

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

html, body {
  width: 100%; height: 100%;
  background: #000;
  overflow: hidden;
  font-family: 'RobotoCondensed', 'Arial Narrow', sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

#scale-wrapper {
  width: 100vw; height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  overflow: hidden;
}

/* Fixed 1920×1080 canvas — JS scales via transform */
#app {
  width: 1920px; height: 1080px;
  position: relative;
  flex-shrink: 0;
  transform-origin: center center;
  overflow: hidden;
  background: #000;
}

/* ── Video (double-buffered: video-a / video-b overlap) ── */
.main-video {
  position: absolute; top: 0; left: 0;
  width: 1920px; height: 1080px;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: opacity 0.15s linear;
}
.main-video::-webkit-media-controls,
.main-video::-webkit-media-controls-enclosure,
.main-video::-webkit-media-controls-panel { display: none !important; }

/* ── PNG overlay layers (header, bottom bar, logo) ── */
.ui-layer {
  position: absolute; top: 0; left: 0;
  width: 1920px; height: 1080px;
  pointer-events: none;
  display: block;
}
#layer-bottom { display: none; } /* shown by JS when menu is active */
#layer-logo { width: auto; height: 75px; top: 5px; left: 15px; pointer-events: all; cursor: pointer; }
.hidden { display: none !important; }

/* ── Language toggle ─────────────────────────────── */
#lang-toggle {
  position: absolute;
  top: 22px;
  left: 780px;
  width: 360px;
  display: none;       /* shown when menu is active */
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 15;
  pointer-events: all;
}
.lang-btn {
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2.5px;
  color: #ffffff;
  cursor: pointer;
  text-transform: uppercase;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
}
.lang-btn.active { color: #fb8a12; }
.lang-btn:hover  { color: #fb8a12; }
.lang-sep { color: #888; font-size: 20px; }

/* ── Map labels (overlaid on video black rectangles) ── */
#map-labels {
  position: absolute;
  top: 0; left: 0;
  width: 1920px; height: 1080px;
  pointer-events: none;
  display: none;
  z-index: 8;
}
.map-label {
  position: absolute;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: all;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.15s;
}
.map-label:hover { color: #00e5c0; }
.map-label.active-sum { color: #00e5c0; }
.map-label.dimmed {
  color: rgba(255,255,255,0.2);
  cursor: default;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════
   RIGHT PANEL — CSS-only sci-fi menu
   Matches PNG bbox: x=1476–1904, y=73–1024
   Width=428px, Height=951px
   ════════════════════════════════════════════════════ */
#right-panel {
  position: absolute;
  left: 1476px; top: 73px;
  width: 428px; height: 951px;
  display: none;           /* flex when menu is active */
  flex-direction: column;
  background: linear-gradient(180deg, #03100e 0%, #030d0b 100%);
  border-left:   1px solid rgba(0, 229, 192, 0.22);
  border-top:    1px solid rgba(0, 229, 192, 0.22);
  border-bottom: 1px solid rgba(0, 229, 192, 0.22);
  border-right:  none;
  border-radius: 4px 0 0 4px;
  z-index: 10;
  overflow: visible;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#right-panel.panel-collapsed {
  transform: translateX(470px); /* slide panel + toggle fully off screen */
}

/* Top decoration strip */
.rp-header {
  flex: 0 0 71px;
  position: relative;
  border-bottom: 1px solid rgba(0, 229, 192, 0.14);
}
.rp-header-bar {
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 3px;
  background: rgba(0, 229, 192, 0.55);
  border-radius: 2px;
}
.rp-dots {
  position: absolute;
  top: 9px; right: 14px;
  display: flex; gap: 4px;
}
.rp-dots span {
  width: 4px; height: 4px;
  background: rgba(0, 229, 192, 0.45);
  border-radius: 50%;
}

/* Items list */
#right-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 18px 6px 16px;
  gap: 5px;
  overflow: hidden;
}

.right-item {
  flex: 1 0 0;
  max-height: 52px;
  display: flex;
  align-items: center;
  padding-left: 18px;
  background: rgba(0, 35, 30, 0.55);
  border: 1px solid rgba(0, 229, 192, 0.13);
  border-radius: 4px;
  cursor: pointer;
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.right-item:hover {
  color: #00e5c0;
  background: rgba(0, 229, 192, 0.09);
  border-color: rgba(0, 229, 192, 0.45);
}
.right-item.active-sum {
  color: #00e5c0;
  border-color: rgba(0, 229, 192, 0.35);
  background: rgba(0, 229, 192, 0.06);
}
.right-item.dimmed {
  color: rgba(74, 153, 144, 0.22);
  border-color: rgba(0, 229, 192, 0.05);
  background: rgba(0, 20, 17, 0.4);
  cursor: default;
  pointer-events: none;
}

/* Footer strip */
.rp-footer {
  flex: 0 0 40px;
  border-top: 1px solid rgba(0, 229, 192, 0.12);
}

/* Collapse/expand tab — outside panel, follows panel left edge */
#panel-toggle {
  position: absolute;
  left: 1456px;   /* panel.left(1476) - toggle.width(20) = expanded position */
  top: 527px;     /* 73 + 951/2 - 22 = vertically centered on panel */
  width: 20px; height: 44px;
  background: #03100e;
  border: 1px solid rgba(0, 229, 192, 0.22);
  border-right: none;
  border-radius: 4px 0 0 4px;
  display: none;  /* shown by JS when menu is active */
  align-items: center; justify-content: center;
  color: rgba(0, 229, 192, 0.7);
  font-size: 14px;
  cursor: pointer;
  pointer-events: all;
  z-index: 11;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s, background 0.15s;
}
#panel-toggle.panel-collapsed {
  left: 1900px;   /* screen right edge (1920) - toggle width (20) */
}
#panel-toggle:hover {
  color: #00e5c0;
  background: rgba(0, 229, 192, 0.08);
}

/* Scrollbar indicator (right edge, decorative) */
.rp-scrollbar {
  position: absolute;
  right: 5px; top: 85px; bottom: 50px;
  width: 3px;
  background: rgba(0, 229, 192, 0.08);
  border-radius: 2px;
}
.rp-scrollbar-thumb {
  position: absolute;
  top: 0; width: 100%; height: 18%;
  background: rgba(0, 229, 192, 0.5);
  border-radius: 2px;
}

/* ════════════════════════════════════════════════════
   INFO PANEL — CSS-only attraction detail panel
   Matches PNG bbox: x=1270–1867, y=82–1000
   Width=597px, Height=918px
   ════════════════════════════════════════════════════ */
#info-panel {
  position: absolute;
  left: 1270px; top: 82px;
  width: 597px; height: 918px;
  display: none;           /* flex when shown */
  flex-direction: column;
  background: linear-gradient(180deg, #030e0c 0%, #030b09 100%);
  border-left:   1px solid rgba(0, 229, 192, 0.22);
  border-top:    1px solid rgba(0, 229, 192, 0.22);
  border-bottom: 1px solid rgba(0, 229, 192, 0.22);
  border-right:  none;
  border-radius: 4px 0 0 4px;
  z-index: 20;
  overflow: visible;
}

/* Header bar */
#info-header {
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 16px;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 229, 192, 0.15);
}
#info-nav {
  display: flex; gap: 5px; flex-shrink: 0;
}
.nav-btn {
  width: 22px; height: 22px;
  background: transparent;
  border: 1px solid rgba(0, 229, 192, 0.22);
  border-radius: 50%;
  color: rgba(0, 229, 192, 0.45);
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  pointer-events: all;
  transition: border-color 0.15s, color 0.15s, opacity 0.15s;
}
.nav-btn:hover {
  border-color: rgba(0, 229, 192, 0.6);
  color: #00e5c0;
}
.nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
}
#info-title {
  flex: 1;
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #00e5c0;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#info-close {
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: transparent;
  border: 1px solid rgba(0, 229, 192, 0.45);
  border-radius: 50%;
  color: rgba(0, 229, 192, 0.8);
  font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
  pointer-events: all;
  z-index: 30;
}
#info-close:hover {
  background: rgba(0, 229, 192, 0.18);
  color: #00e5c0;
}

/* Image area — slideshow */
#info-image-area {
  flex: 0 0 215px;
  margin: 10px 16px 0;
  border: 1px solid rgba(0, 229, 192, 0.18);
  border-radius: 3px;
  background: rgba(0, 18, 15, 0.6);
  position: relative;
  overflow: hidden;
}
#slide-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}
#slide-counter {
  position: absolute;
  bottom: 6px; right: 10px;
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(0, 229, 192, 0.7);
  z-index: 3;
  pointer-events: none;
}
.img-bracket {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 55px;
  font-weight: 100;
  color: rgba(0, 229, 192, 0.22);
  line-height: 1;
  font-family: serif;
  z-index: 2;
  pointer-events: none;
}
.img-bracket:first-child { left: 8px; }
.img-bracket:last-child  { right: 8px; }

/* Separator line */
.info-separator {
  flex: 0 0 1px;
  background: rgba(0, 229, 192, 0.18);
  margin: 10px 16px 0;
}

/* Location row */
#info-location {
  flex: 0 0 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0, 229, 192, 0.1);
}
.loc-icon {
  color: #00e5c0;
  font-size: 14px;
  flex-shrink: 0;
}
.loc-label {
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: #00e5c0;
  text-transform: uppercase;
  flex-shrink: 0;
}
#info-loc-value {
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #8eccc6;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Description text */
#info-desc {
  flex: 1;
  padding: 14px 20px 14px 16px;
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #b0d4d0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 192, 0.4) rgba(0, 30, 26, 0.6);
}
#info-desc::-webkit-scrollbar { width: 4px; }
#info-desc::-webkit-scrollbar-track { background: rgba(0,30,26,0.5); }
#info-desc::-webkit-scrollbar-thumb { background: rgba(0,229,192,0.4); border-radius: 2px; }

/* Footer strip */
.info-footer {
  flex: 0 0 12px;
  border-top: 1px solid rgba(0, 229, 192, 0.12);
}

/* Collapse tab (left edge, decorative) */
#info-toggle {
  position: absolute;
  left: -20px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 44px;
  background: #030e0c;
  border: 1px solid rgba(0, 229, 192, 0.22);
  border-right: none;
  border-radius: 4px 0 0 4px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0, 229, 192, 0.45);
  font-size: 11px;
  pointer-events: none;
}

/* Scrollbar indicator (right edge, decorative) */
.ip-scrollbar {
  position: absolute;
  right: 5px; top: 72px; bottom: 20px;
  width: 3px;
  background: rgba(0, 229, 192, 0.08);
  border-radius: 2px;
}
.ip-scrollbar-thumb {
  position: absolute;
  top: 0; width: 100%; height: 15%;
  background: rgba(0, 229, 192, 0.5);
  border-radius: 2px;
}

/* ── Media popup (lightbox) ─────────────────────── */
#media-popup {
  position: absolute; top: 0; left: 0;
  width: 1920px; height: 1080px;
  background: rgba(0, 0, 0, 0.78);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mp-nav-btn {
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: rgba(3, 14, 12, 0.85);
  border: 1px solid rgba(0, 229, 192, 0.45);
  border-radius: 50%;
  color: rgba(0, 229, 192, 0.85);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  pointer-events: all;
}
.mp-nav-btn:hover {
  background: rgba(0, 229, 192, 0.14);
  border-color: rgba(0, 229, 192, 0.8);
  color: #00e5c0;
}
.mp-nav-btn:disabled {
  opacity: 0.2;
  cursor: default;
}
#mp-counter {
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(0, 229, 192, 0.5);
  flex-shrink: 0;
}
#media-popup-box {
  position: relative;
  width: 1200px; height: 760px;
  background: linear-gradient(180deg, #030e0c 0%, #030b09 100%);
  border: 1px solid rgba(0, 229, 192, 0.5);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
#media-popup-header {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 229, 192, 0.15);
}
.mp-bar {
  width: 80px; height: 3px;
  background: rgba(0, 229, 192, 0.55);
  border-radius: 2px;
  flex-shrink: 0;
}
.mp-dots {
  flex: 1;
  text-align: right;
  color: rgba(0, 229, 192, 0.5);
  font-size: 16px;
  letter-spacing: 4px;
  padding-right: 10px;
}
#media-popup-close {
  position: absolute;
  top: -16px; right: -16px;
  width: 34px; height: 34px;
  background: #030e0c;
  border: 1px solid rgba(0, 229, 192, 0.6);
  border-radius: 50%;
  color: rgba(0, 229, 192, 0.85);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  pointer-events: all;
  transition: background 0.15s, color 0.15s;
}
#media-popup-close:hover {
  background: rgba(0, 229, 192, 0.18);
  color: #00e5c0;
}
#media-popup-content {
  flex: 1;
  padding: 14px 18px 18px;
  position: relative;
  overflow: hidden;
}
#media-popup-content img,
#media-popup-content video {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}

/* Slideshow play icon (for video items) */
#slide-play-icon {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: rgba(0, 229, 192, 0.7);
  pointer-events: none;
}

/* Clickable cursor on image area */
#info-image-area { cursor: pointer; }

/* ── Bottom bar: 4 sum buttons ───────────────────── */
#bottom-bar {
  position: absolute;
  top: 1005px; left: 0;
  width: 1920px; height: 65px;
  display: none;
  pointer-events: none;
  z-index: 10;
}
.sum-btn {
  position: absolute;
  top: 8px; height: 48px;
  background: transparent;
  border: none; outline: none;
  cursor: pointer;
  pointer-events: all;
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2.5px;
  color: #ffffff;
  text-transform: uppercase;
  transition: color 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.sum-btn:hover { color: #00e5c0; }
.sum-btn.active { color: #00e5c0; }
