/* Local integration: retain the vendor theme with larger primary controls. */
:root {
  --map_tour_size_sidebar: 360px;
  --map_tour_size_bottom: 250px;
  --map_tour_size_bottom_mobile: 200px;
  --map_tour_size_sidebar_open_meet: 360px;
  --map_tour_size_bottom_mobile_open_meet: 200px;
}

/* Visible before the viewer libraries arrive; replaced by native progress once ready. */
.loading .progress-circle:empty {
  display: block;
}

.loading .progress-circle:empty::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tour-loading-spin 0.9s linear infinite;
}

.loading .progress-circle:empty::after {
  content: "Cargando recorrido virtual…";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 220px;
  transform: translateX(-50%);
  font-size: 11px;
  line-height: 1.5;
}

@keyframes tour-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .loading .progress-circle:empty::before {
    animation: none;
  }
}

.fullscreen_control,
.map_control,
.map_tour_control,
.song_control {
  top: 2px !important;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
}

.fullscreen_control { right: 2px !important; }
.map_control { right: 46px !important; }
.map_tour_control { right: 90px !important; }
.song_control { left: 90px !important; }

.fullscreen-unavailable .fullscreen_control,
.fullscreen-unavailable .fullscreen_alt_control {
  display: none !important;
}

.fullscreen-unavailable .map_control { right: 2px !important; }
.fullscreen-unavailable .map_tour_control { right: 46px !important; }

.menu_controls {
  top: 2px;
  left: 2px;
  width: 44px;
}

.menu_controls .title > i,
#list_alt_menu_icon .title > i,
#list_bookmarks_menu_icon .title > i {
  display: inline-block;
  width: 44px;
  height: 44px;
  margin: 0;
  line-height: 44px;
  text-align: center;
}

#list_alt_menu_icon { top: 2px !important; left: 46px !important; }
#list_bookmarks_menu_icon { top: 2px !important; left: 134px !important; }

[role="button"]:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.jconfirm button {
  min-width: 64px;
  min-height: 44px;
}

.controls_btn {
  min-width: 44px;
  min-height: 44px;
  line-height: 44px;
}

#controls_bottom_left,
#controls_bottom_right {
  min-height: 44px;
}

@media (max-width: 540px) {
  .header_vt {
    box-sizing: border-box;
    padding-top: 46px !important;
  }

  .header_vt .name_vt,
  .header_vt .room_vt {
    width: calc(100% - 32px);
    max-width: 320px;
    font-size: 11px;
    line-height: 14px;
  }

  /* The page header already shows the Playaventura logo. Keep provider credits. */
  .logo {
    display: none !important;
  }
}

