/* ----------------------------------------
   GIGAMAP - FULL-SCREEN READER SHELL
---------------------------------------- */
.gigamap-reader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  background: #101114;
  color: #f3f2ee;
}

.gigamap-reader[hidden] {
  display: none;
}

.gigamap-reader-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gigamap-reader-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.gigamap-reader-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(243, 242, 238, 0.55);
}

.gigamap-reader-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
}

.gigamap-reader-zoom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gigamap-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  background: transparent;
  color: #f3f2ee;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.gigamap-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.gigamap-zoom-reset {
  width: auto;
  padding: 0 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gigamap-zoom-level {
  min-width: 3.2em;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(243, 242, 238, 0.7);
  font-variant-numeric: tabular-nums;
}

.gigamap-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  background: transparent;
  color: #f3f2ee;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.gigamap-close-btn svg {
  width: 18px;
  height: 18px;
}

.gigamap-close-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: rotate(90deg);
}

/* ----------------------------------------
   GIGAMAP - PAN/ZOOM VIEWPORT
---------------------------------------- */
.gigamap-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.gigamap-viewport.is-dragging {
  cursor: grabbing;
}

.gigamap-stage {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.gigamap-stage.is-animating {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gigamap-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(243, 242, 238, 0.6);
}

.gigamap-loading[hidden] {
  display: none;
}

.gigamap-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ----------------------------------------
   GIGAMAP - HOTSPOT MARKERS
---------------------------------------- */
.gigamap-hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 100%;
  background: none;
  padding: 0;
}

.gigamap-hotspot-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 100%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 0 0 4px rgba(229, 64, 42, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: gigamap-pulse 2.6s ease-in-out infinite;
}

.gigamap-hotspot:hover .gigamap-hotspot-dot,
.gigamap-hotspot.is-active .gigamap-hotspot-dot {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(229, 64, 42, 0.35);
  animation-play-state: paused;
}

@keyframes gigamap-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(229, 64, 42, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(229, 64, 42, 0.12); }
}

/* ----------------------------------------
   GIGAMAP - JUMP-TO SECTIONS RAIL
---------------------------------------- */
.gigamap-reader-sections {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem clamp(1.25rem, 3vw, 2rem);
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  scrollbar-width: thin;
}

.gigamap-sections-label {
  flex-shrink: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 242, 238, 0.45);
  margin-right: 0.4rem;
}

.gigamap-section-btn {
  flex-shrink: 0;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  background: transparent;
  color: rgba(243, 242, 238, 0.75);
  font-size: 0.8rem;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.gigamap-section-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #f3f2ee;
}

.gigamap-section-btn.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}

/* ----------------------------------------
   GIGAMAP - DESCRIPTION POPOVER
---------------------------------------- */
.gigamap-popover {
  position: absolute;
  right: clamp(1.25rem, 3vw, 2rem);
  bottom: 5.5rem;
  z-index: 2;
  width: min(340px, calc(100vw - 2.5rem));
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  background: #f3f2ee;
  color: #141414;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.gigamap-popover[hidden] {
  display: none;
}

.gigamap-popover-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  background: none;
  color: rgba(20, 20, 20, 0.5);
  font-size: 1.1rem;
  line-height: 1;
  width: 24px;
  height: 24px;
}

.gigamap-popover-close:hover {
  color: var(--color-accent);
}

.gigamap-popover-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-bottom: 0.6rem;
  border-radius: 100%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 0.7rem;
  font-weight: 600;
}

.gigamap-popover-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
}

.gigamap-popover-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(20, 20, 20, 0.72);
}

/* ----------------------------------------
   GIGAMAP - HINT TEXT
---------------------------------------- */
.gigamap-reader-hint {
  position: absolute;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  background: rgba(16, 17, 20, 0.75);
  color: rgba(243, 242, 238, 0.7);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.gigamap-reader-hint.is-hidden {
  opacity: 0;
}

/* ----------------------------------------
   RESPONSIVE
---------------------------------------- */
@media (max-width: 720px) {
  .gigamap-reader-topbar {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .gigamap-reader-name {
    font-size: 0.9rem;
  }

  .gigamap-reader-hint {
    display: none;
  }

  .gigamap-popover {
    right: 1rem;
    left: 1rem;
    bottom: 4.75rem;
    width: auto;
  }
}
