/* ── Maker Tour Slider ─────────────────────────────────────────────────────── */

.sn-tour {
  position: relative;
  overflow: hidden;
  outline: none;
  user-select: none;
}

/* Sliding track */
.sn-tour__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Individual slide */
.sn-tour__slide {
  flex: 0 0 100%;
  width: 100%;
}

/* 16:9 image wrapper */
.sn-tour__image {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #1a0f0a;
  overflow: hidden;
}

.sn-tour__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder shown while screenshots aren't ready */
.sn-tour__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sn-tour__image--placeholder .sn-tour__placeholder-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Caption bar */
.sn-tour__caption {
  padding: 1rem 1.5rem;
  background: #fff;
  border-top: 1px solid #f2e4d8;
}

.sn-tour__caption-heading {
  font-weight: 600;
  color: #2d1a14;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.sn-tour__caption-body {
  font-size: 0.8rem;
  color: #6b5a52;
  line-height: 1.6;
}

.sn-tour__cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  background: #2d1a14;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}

.sn-tour__cta:hover {
  opacity: 0.85;
}

/* ── Controls bar ──────────────────────────────────────────────────────────── */

.sn-tour__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #fdf6f2;
  border-top: 1px solid #f2e4d8;
}

/* Prev / Next arrows */
.sn-tour__prev,
.sn-tour__next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid #d4b49a;
  background: #fff;
  color: #2d1a14;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.sn-tour__prev:hover,
.sn-tour__next:hover {
  background: #fceee5;
  border-color: #2d1a14;
}

.sn-tour__prev:disabled,
.sn-tour__next:disabled {
  opacity: 0.3;
  cursor: default;
}

.sn-tour__prev svg,
.sn-tour__next svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dots */
.sn-tour__dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.sn-tour__dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  border: none;
  background: #d4b49a;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.sn-tour__dot.is-active {
  background: #2d1a14;
  transform: scale(1.3);
}

.sn-tour__dot:focus-visible {
  outline: 2px solid #2d1a14;
  outline-offset: 2px;
}

/* Counter label e.g. "3 / 10" */
.sn-tour__counter {
  font-size: 0.7rem;
  color: #a08070;
  min-width: 2.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ── Tour modal ──────────────────────────────────────────────────────────── */

.sn-tour-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: sn-tour-fade-in 0.18s ease;
}

@keyframes sn-tour-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sn-tour-modal__card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 680px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.sn-tour-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #fceee5;
  border-bottom: 1px solid #e8d0c0;
  flex-shrink: 0;
}

.sn-tour-modal__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2d1a14;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sn-tour-modal__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #a07060;
  padding: 2px 4px;
  transition: color 0.15s;
}

.sn-tour-modal__close:hover {
  color: #2d1a14;
}

.sn-tour-modal__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Inside the modal replace the 16:9 padding-bottom trick with a fixed
   clamped height so caption and controls are always visible. */
.sn-tour-modal__body .sn-tour__image {
  padding-bottom: 0;
  height: clamp(160px, 45dvh, 380px);
}
