/* ===========================
   VIP-DXB-RUS Pricelist
   Navigation CSS — Minimal Luxury
   =========================== */

/* ===========================
   1. Viewer Container
   =========================== */
.viewer-container {
  position: relative;
  margin: 8px auto 40px;
  /* width/height set by JS based on scale */
}

/* ===========================
   2. Arrow Buttons (overlaid on slide)
   =========================== */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease;
  padding: 0;
  outline: none;
}

/* Show arrows on container hover */
.viewer-container:hover .nav-arrow {
  opacity: 1;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
  color: #B88D73;
}

.nav-arrow:active {
  transform: translateY(-50%) scale(0.93);
}

.nav-arrow--left {
  left: 12px;
}

.nav-arrow--right {
  right: 12px;
}

/* ===========================
   3. Slide Counter (bottom center)
   =========================== */
.nav-counter {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.5px;
  z-index: 50;
  user-select: none;
  -webkit-user-select: none;
}

/* ===========================
   4. Top Bar (back + TOC buttons)
   =========================== */
.nav-topbar {
  position: fixed;
  top: 10px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 50;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.nav-topbar:hover {
  opacity: 1;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-decoration: none;
  padding: 0;
}

.nav-btn:hover {
  color: #B88D73;
  border-color: #B88D73;
  background: rgba(0, 0, 0, 0.6);
}

.nav-btn--toc[aria-expanded="true"] {
  color: #B88D73;
  border-color: #B88D73;
}

/* ===========================
   5. Table of Contents (TOC)
   =========================== */
.nav-toc {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(184, 141, 115, 0.15);
  overflow-y: auto;
  padding: 56px 0 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 100;
}

.nav-toc--visible {
  transform: translateX(0);
}

.nav-toc__item {
  display: block;
  width: 100%;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  line-height: 1.3;
}

.nav-toc__item:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.nav-toc__item--active {
  color: #B88D73;
  border-left: 2px solid #B88D73;
  padding-left: 18px;
}

/* Scrollbar */
.nav-toc::-webkit-scrollbar { width: 3px; }
.nav-toc::-webkit-scrollbar-track { background: transparent; }
.nav-toc::-webkit-scrollbar-thumb { background: rgba(184, 141, 115, 0.25); border-radius: 2px; }

/* ===========================
   6. Responsive — Tablet (768px)
   =========================== */
@media (max-width: 768px) {
  /* Always visible on touch devices (no hover) */
  .nav-arrow {
    opacity: 0.7;
  }

  .nav-arrow--left { left: 8px; }
  .nav-arrow--right { right: 8px; }

  .nav-topbar {
    opacity: 0.7; /* always visible on tablet */
  }

  .nav-counter {
    font-size: 13px;
  }
}


/* ===========================
   7. Responsive — Mobile (480px)
   =========================== */
@media (max-width: 480px) {
  /* Larger touch targets on small screens (48x48) */
  .nav-arrow {
    width: 48px;
    height: 48px;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.35);
  }

  .nav-arrow--left { left: 4px; }
  .nav-arrow--right { right: 4px; }

  /* Top bar: always visible, slightly larger */
  .nav-topbar {
    opacity: 0.8;
    top: 6px;
    left: 6px;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
  }

  /* TOC: full-width on mobile */
  .nav-toc {
    width: 100%;
    border-right: none;
  }

  .nav-toc__item {
    font-size: 12px;
    padding: 12px 20px;
  }

  /* Counter: centered, readable */
  .nav-counter {
    font-size: 12px;
    bottom: 6px;
  }
}


/* ===========================
   8. Print — Hide all navigation
   =========================== */
@media print {
  .nav-arrow,
  .nav-counter,
  .nav-topbar,
  .nav-toc {
    display: none !important;
  }
}
