/* Guided tour overlay */

.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
}

.tour-spotlight {
  position: fixed;
  z-index: 1001;
  border-radius: 6px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.tour-tooltip {
  position: fixed;
  z-index: 1002;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  max-width: 320px;
  width: calc(100vw - 32px);
  padding: 18px 20px 14px;
  pointer-events: auto;
  transition: top 0.3s ease, left 0.3s ease;
}

.tour-tooltip h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #2d5fa1;
}

.tour-tooltip p {
  margin: 0 0 14px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.tour-tooltip .tour-counter {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.tour-tooltip .tour-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.tour-tooltip .tour-nav button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 40px;
}

.tour-tooltip .tour-nav button.tour-btn-prev {
  background: #e2e8f0;
  color: #333;
}

.tour-tooltip .tour-nav button.tour-btn-prev:hover {
  background: #cbd5e0;
}

.tour-tooltip .tour-nav button.tour-btn-next,
.tour-tooltip .tour-nav button.tour-btn-end {
  background: #2d5fa1;
  color: #fff;
}

.tour-tooltip .tour-nav button.tour-btn-next:hover,
.tour-tooltip .tour-nav button.tour-btn-end:hover {
  background: #1e4a80;
}

/* Clickable backdrop behind tooltip to dismiss */
.tour-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: auto;
  cursor: default;
}

/* Help button */
.tour-help-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #2d5fa1;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.tour-help-btn:hover {
  background: #1e4a80;
  transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .tour-tooltip {
    max-width: calc(100vw - 24px);
    padding: 14px 16px 12px;
  }

  .tour-tooltip .tour-nav button {
    padding: 10px 14px;
    font-size: 14px;
  }

  .tour-help-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}
