/* ============================================================
   SITE TOUR OVERLAY
   ============================================================ */

/* Full-screen scrim behind the tour card.
   Same hidden-by-default pattern as other overlays: visibility (not display)
   so the open state can fade in. z-index 130 sits above modals (110) so the
   tour can sit on top of anything else the site opens. */
.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 16, 19, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 130;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.tour-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* The tour card itself.
   `width: min(100%, 520px)` — shrink on narrow screens but never exceed
   520px; cleaner than max-width + width: 100% for this case.
   position: relative anchors the absolutely-positioned close button. */
.tour-card {
  width: min(100%, 520px);
  background: var(--paper-bg);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-pop);
  padding: 32px;
  position: relative;
  text-align: left;
}

/* Close / skip button pinned to the top-right of the card. */
.tour-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--ink-soft);
  line-height: 1;
}

.tour-close:hover {
  color: var(--maroon-800);
}

.tour-card h3 {
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: 24px;
  color: var(--maroon-950);
}

/* Step description paragraph — set by JS on each "Next". */
.tour-step p {
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 15px;
}

/* Back / Next buttons — pushed to opposite ends of the card. */
.tour-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

/* "Step 2 of 5" counter right-aligned under the controls. */
.tour-progress {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: right;
}