/* Tour player (ADR 0043). Loaded only with a tour. Colors follow the embed's style and light or
   dark scheme through its --ui-* properties (ADR 0039). */
.has-tour .place-card {
  display: none;
}

.tour-player {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 5;
  width: min(40rem, calc(100% - 1rem));
  transform: translateX(-50%);
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  background: var(--ui-card, #fff);
  color: var(--ui-text, #000028);
  border: 1px solid var(--ui-border, transparent);
  border-radius: 6px;
  box-shadow: var(--ui-shadow, 0 2px 8px rgb(0 0 0 / 25%));
  font-size: 0.9rem;
}

.tour-caption {
  min-height: 2.6em;
}

.tour-title {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ui-link, #007993);
}

.tour-text {
  margin: 0;
  line-height: 1.35;
}

.tour-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.tour-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 4px;
  background: var(--ui-primary, #007993);
  color: var(--ui-on-primary, #fff);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.tour-btn:hover {
  background: var(--ui-primary-hover, #005159);
}

.tour-btn:disabled {
  background: var(--ui-hover, #ebebee);
  color: var(--ui-muted, #4c4c68);
  cursor: default;
}

.tour-btn:focus-visible {
  outline: 3px solid var(--ui-focus, #1491eb);
  outline-offset: 2px;
}

.tour-progress {
  flex: 1;
  min-width: 3rem;
  height: 0.5rem;
  accent-color: var(--ui-primary, #007993);
}

.tour-step {
  white-space: nowrap;
  color: var(--ui-muted, #4c4c68);
  font-size: 0.8rem;
}

.tour-pin {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 420px), (max-height: 360px) {
  .tour-player {
    bottom: 1.6rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
  }

  .tour-title {
    font-size: 0.9rem;
  }

  .tour-btn {
    min-width: 2.5rem;
    min-height: 2.5rem;
  }
}
