/* ── Tour bar (flutuante, acima da legenda) ──── */
#tour-bar {
  position: fixed;
  bottom: 56px;        /* acima da legenda (44px) + folga */
  left: 24px;
  right: 564px;        /* painel 520px + 24px padding + 20px margem */
  height: 58px;
  border-radius: 14px;
  background: rgba(10,10,10,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  z-index: 50;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.40);
}

#tour-bar.hidden { display: none; }

/* ── Progress bar ────────────────────────────── */
#tour-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

#tour-progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 14px 14px 0 0;
  transition: width 0.35s ease;
}

/* ── Counter ─────────────────────────────────── */
#tour-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.40);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 52px;
}

/* ── Section label ───────────────────────────── */
#tour-section {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  letter-spacing: 0.02em;
}

/* ── Nav buttons ─────────────────────────────── */
.tour-nav-btn {
  height: 38px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #f0f0f0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}

.tour-nav-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.14);
}

.tour-nav-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

#tour-next {
  background: #ffffff;
  color: #000000;
  border-color: transparent;
}

#tour-next:hover:not(:disabled) {
  background: rgba(255,255,255,0.88);
}

/* ── List button ─────────────────────────────── */
#tour-list-btn {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
}
#tour-list-btn:hover { background: rgba(255,255,255,0.18); }

/* ── Navigator overlay ───────────────────────── */
#tour-navigator {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 130px 24px;  /* alinha acima da tour bar */
  pointer-events: none;
}

#tour-navigator.hidden { display: none; }

#tour-navigator-panel {
  width: 420px;
  max-height: 62vh;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.60);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: all;
  animation: navigatorIn 0.22s ease;
}

@keyframes navigatorIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

#tour-navigator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

#tour-navigator-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#tour-navigator-close {
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.40);
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
#tour-navigator-close:hover { background: rgba(255,255,255,0.08); color: #f0f0f0; }

#tour-navigator-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.10) transparent;
}

/* ── Section header inside navigator ─────────── */
.tour-nav-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding: 10px 16px 4px;
}

/* ── Process item inside navigator ───────────── */
.tour-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--t-fast);
}
.tour-nav-item:hover { background: rgba(255,255,255,0.05); }

.tour-nav-item.is-current {
  background: rgba(255,255,255,0.08);
}

.tour-nav-item__index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
  width: 24px;
  text-align: right;
}

.tour-nav-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.20);
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.tour-nav-item.is-done .tour-nav-item__dot {
  background: rgba(255,255,255,0.40);
  border-color: rgba(255,255,255,0.40);
}
.tour-nav-item.is-current .tour-nav-item__dot {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.20);
}

.tour-nav-item__id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.40);
  flex-shrink: 0;
  width: 28px;
}

.tour-nav-item__name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  flex: 1;
  line-height: 1.3;
}
.tour-nav-item.is-current .tour-nav-item__name {
  color: #ffffff;
  font-weight: 700;
}

.tour-nav-item__here {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255,255,255,0.15);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ── Exit button ─────────────────────────────── */
#tour-exit {
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: transparent;
  color: rgba(255,255,255,0.30);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--t-fast), background var(--t-fast);
}

#tour-exit:hover {
  color: #f0f0f0;
  background: rgba(255,255,255,0.06);
}
