body.sg-tour-active .sg-map-controls {
  bottom: 132px;
}

body.sg-tour-active .sg-overlay {
  backdrop-filter: none;
  background: rgba(15, 23, 42, 0.22);
}

.sg-tour-player[hidden] {
  display: none !important;
}

.sg-tour-floor {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: #0f172a;
  display: flex;
  flex-direction: column;
}

.sg-tour-floor[hidden] {
  display: none !important;
}

.sg-tour-floor__toolbar {
  flex: 0 0 auto;
  padding: 68px 12px 8px;
  display: flex;
  justify-content: center;
}

.sg-tour-floor__toolbar select {
  max-width: min(100%, 280px);
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  color: #0f172a;
}

.sg-tour-floor__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 12px 120px;
  overflow: auto;
  text-align: center;
}

.sg-tour-floor__frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

.sg-tour-floor__frame img {
  display: block;
  width: 100%;
  height: auto;
  background: #1e293b;
}

.sg-tour-floor-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sg-tour-floor-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 0;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

.sg-tour-floor-pin.is-current {
  background: #f59e0b;
  transform: scale(1.12);
}

.sg-tour-bar {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 8px 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
}

.sg-tour-bar__exit {
  position: absolute;
  top: -10px;
  right: -4px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  font-size: 13px;
  z-index: 1;
}

.sg-tour-bar__open {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.sg-tour-bar__thumb {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
}

.sg-tour-bar__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sg-tour-bar__thumb img[hidden] {
  display: none !important;
}

.sg-tour-bar__thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #64748b;
  font-size: 20px;
}

.sg-tour-bar__thumb-fallback[hidden] {
  display: none !important;
}

.sg-tour-bar__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.28);
  color: #fff;
  font-size: 16px;
}

.sg-tour-bar__play i {
  margin-left: 2px;
}

.sg-tour-bar__main {
  min-width: 0;
  flex: 1 1 auto;
}

.sg-tour-bar__title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-tour-bar__current {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-tour-bar__progress {
  display: block;
  font-size: 11px;
  color: #2563eb;
  font-weight: 700;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-tour-bar__btn {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0f172a;
  cursor: pointer;
  font-size: 16px;
}

.sg-tour-bar__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.sg-panel__body .sg-tour-start {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.sg-marker-pin--tour {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
}

.sg-marker-pin--tour.is-current {
  background: #f59e0b;
}
