/* Header UI Tour — spotlight overlay (separate from Help Intro) */

.ui-tour-root {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
}

.ui-tour-root.is-active {
  pointer-events: auto;
}

.ui-tour-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 28, 0.62);
  /* hole via box-shadow on spotlight */
}

.ui-tour-hole {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(12, 18, 28, 0.62);
  outline: 2px solid rgba(255, 255, 255, 0.85);
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
  pointer-events: none;
}

.ui-tour-card {
  position: absolute;
  max-width: min(320px, calc(100vw - 24px));
  background: #fff;
  color: #1a1a1a;
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.ui-tour-card__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.ui-tour-card__body {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #333;
}

.ui-tour-card__meta {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: #777;
}

.ui-tour-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ui-tour-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.ui-tour-btn--ghost {
  background: transparent;
  color: #555;
}

.ui-tour-btn--primary {
  background: #1f4b3a;
  color: #fff;
}

.ui-tour-btn:focus-visible {
  outline: 2px solid #1f4b3a;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ui-tour-hole {
    transition: none;
  }
}

/* ห้องทัวร์ LINE — body ว่าง + ปุ่มกลางจอหลังจบ */
.page-ui-tour-line-room .ui-tour-line-room-main {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
}

.ui-tour-line-start {
  display: none;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.ui-tour-line-start.is-visible,
.ui-tour-line-start:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-tour-line-start__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(280px, 100%);
  min-height: 48px;
  padding: 12px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  background: #1f4b3a;
  color: #fff;
  border: 0;
  box-shadow: 0 8px 24px rgba(15, 40, 30, 0.28);
}
.ui-tour-line-start__btn:focus-visible {
  outline: 2px solid #1f4b3a;
  outline-offset: 3px;
}
.ui-tour-line-start[hidden] {
  display: none !important;
}

html.ui-tour-line-room {
  /* กัน hero-anchor ซ่อนหัวเมนูบนห้องทัวร์ */
}
html.ui-tour-line-room.hero-anchor-active .topbar-wrap {
  position: relative;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
