/* ============================================================
   Panorama Viewer — Be In Rio Visual Identity
   (Opportunity Imobiliário / Coleção Be.in.Rio)

   White:        #ffffff  (primary UI surface — panels, cards, bars)
   Off-white:    #f7f6f4  (very subtle warm white for layered panels)
   Black:        #0a0a0a  (ink — text, icons, dark backdrop)
   Charcoal:     #161616  (secondary dark surface, close buttons)
   Accent orange:#EA9957  (punctual brand accent — pins, hover, active state)
   Accent soft:  rgba(234, 153, 87, 0.12)  (faint orange tint for hover/tap)
   Hairline:     rgba(10, 10, 10, 0.08)   (dividers on white panels)
   Shadow:       rgba(0, 0, 0, 0.25)

   Font:         Could not pull the live brio stylesheet/font files
                 directly (asset URLs were blocked from this session),
                 so the stack below approximates the site's bold,
                 wide-tracked uppercase headline treatment with a
                 clean grotesque sans. Swap in the exact brand font
                 file/name here if you have it.
   Font stack:   "Helvetica Neue", "Inter", Arial, sans-serif
   ============================================================ */

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -ms-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -ms-content-zooming: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: "Poppins", "Helvetica Neue", "Inter", Arial, sans-serif;
  font-size: 16px;
  background-color: #0a0a0a;
  color: #0a0a0a;
  letter-spacing: 0.01em;
}

a, a:hover, a:active, a:visited {
  text-decoration: none;
  color: inherit;
}

/* ─── Panorama container ─────────────────────────────────── */

#pano {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ─── Title bar ─────────────────────────────────────────── */

#titleBar {
  position: absolute;
  top: 0;
  left: 0;
  right: 40px;
  height: 40px;
  text-align: center;
}

.mobile #titleBar {
  height: 50px;
  right: 50px;
}

body.fullscreen-enabled #titleBar {
  right: 80px;
}

body.fullscreen-enabled.mobile #titleBar {
  right: 100px;
}

body.multiple-scenes #titleBar {
  left: 40px;
}

body.multiple-scenes.mobile #titleBar {
  left: 50px;
}

#titleBar .sceneName {
  width: 100%;
  height: 100%;
  line-height: 30px;
  padding: 5px;
  background-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.94);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0a0a0a;
  border-bottom: 2px solid #EA9957;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.mobile #titleBar .sceneName {
  line-height: 40px;
}

/* ─── Fullscreen toggle ──────────────────────────────────── */

#fullscreenToggle {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.94);
  border-left: 1px solid rgba(10,10,10,0.08);
}

.mobile #fullscreenToggle {
  width: 50px;
  height: 50px;
}

body.fullscreen-enabled #fullscreenToggle {
  display: block;
}

#fullscreenToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  filter: brightness(0) saturate(100%); /* render icon glyph in ink black on white panel */
}

.mobile #fullscreenToggle .icon {
  top: 10px;
  right: 10px;
}

#fullscreenToggle .icon.on  { display: none; }
#fullscreenToggle .icon.off { display: block; }

#fullscreenToggle.enabled .icon.on  { display: block; }
#fullscreenToggle.enabled .icon.off { display: none; }

#fullscreenToggle.enabled {
  box-shadow: inset 0 -2px 0 0 #EA9957;
}

/* ─── Autorotate toggle ──────────────────────────────────── */

#autorotateToggle {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.94);
  border-left: 1px solid rgba(10,10,10,0.08);
}

.mobile #autorotateToggle {
  width: 50px;
  height: 50px;
}

body.fullscreen-enabled #autorotateToggle {
  right: 40px;
}

body.fullscreen-enabled.mobile #autorotateToggle {
  right: 50px;
}

#autorotateToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  filter: brightness(0) saturate(100%);
}

.mobile #autorotateToggle .icon {
  top: 10px;
  right: 10px;
}

#autorotateToggle .icon.on  { display: none; }
#autorotateToggle .icon.off { display: block; }

#autorotateToggle.enabled .icon.on  { display: block; }
#autorotateToggle.enabled .icon.off { display: none; }

#autorotateToggle.enabled {
  box-shadow: inset 0 -2px 0 0 #EA9957;
}

/* ─── Scene list toggle ──────────────────────────────────── */

#sceneListToggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.94);
  border-right: 1px solid rgba(10,10,10,0.08);
}

.mobile #sceneListToggle {
  width: 50px;
  height: 50px;
}

#sceneListToggle .text {
  position: absolute;
  top: 5px;
  left: 15px;
  width: 100%;
  line-height: 30px;
  color: #0a0a0a;
}

#sceneListToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  filter: brightness(0) saturate(100%);
}

.mobile #sceneListToggle .icon {
  top: 10px;
  right: 10px;
}

#sceneListToggle .icon.on  { display: none; }
#sceneListToggle .icon.off { display: block; }

#sceneListToggle.enabled .icon.on  { display: block; }
#sceneListToggle.enabled .icon.off { display: none; }

#sceneListToggle.enabled {
  box-shadow: inset 0 -2px 0 0 #EA9957;
}

/* ─── Scene list panel ───────────────────────────────────── */

#sceneList {
  position: absolute;
  top: 0;
  left: -220px;
  padding-top: 40px;
  width: 220px;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  margin-left: 0;
  -webkit-transition: margin-left 0.5s ease-in-out;
  transition: margin-left 0.5s ease-in-out;
}

.mobile #sceneList {
  padding-top: 50px;
}

#sceneList .scenes {
  width: 100%;
  background-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.97);
  border-right: 1px solid rgba(10,10,10,0.08);
}

.mobile #sceneList {
  width: 100%;
  height: 100%;
  left: -100%;
}

.mobile #sceneList.enabled {
  margin-left: 100%;
}

.mobile #sceneList .scenes {
  height: 100%;
}

#sceneList.enabled {
  margin-left: 220px;
}

#sceneList .scene {
  display: block;
  width: 100%;
  height: 30px;
  border-bottom: 1px solid rgba(10,10,10,0.08);
}

.mobile #sceneList .scene {
  height: 40px;
}

#sceneList .scene .text {
  width: 100%;
  height: 100%;
  padding: 0 15px;
  line-height: 30px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile #sceneList .scene .text {
  line-height: 40px;
}

.no-touch #sceneList .scene:hover {
  background-color: #f7f6f4;
  background-color: rgba(234, 153, 87, 0.08);
}

#sceneList .scene.current {
  background-color: #f7f6f4;
  background-color: rgba(234, 153, 87, 0.1);
  border-left: 3px solid #EA9957;
}

#sceneList .scene.current .text {
  font-weight: 700;
}

body.single-scene #sceneList,
body.single-scene #sceneListToggle {
  display: none;
}

/* ─── Link hotspot ───────────────────────────────────────── */

.link-hotspot {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  opacity: 0.92;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.no-touch .link-hotspot:hover {
  opacity: 1;
}

.mobile .link-hotspot {
  width: 70px;
  height: 70px;
}

.link-hotspot-icon {
  width: 100%;
  height: 100%;
  cursor: pointer;
  /* Soft dark drop shadow for legibility over photography, with a
     subtle brand-orange glow that strengthens on hover. */
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6))
          drop-shadow(0 0 0 rgba(234, 153, 87, 0));
  -webkit-transition: filter 0.2s;
  transition: filter 0.2s;
}

.no-touch .link-hotspot:hover .link-hotspot-icon {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6))
          drop-shadow(0 0 6px rgba(234, 153, 87, 0.9));
}

.link-hotspot-tooltip {
  position: absolute;
  left: 100%;
  top: 14px;

  margin-left: 3px;

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;

  max-width: 300px;

  padding: 8px 12px;

  border-radius: 3px;

  /* background-color: #ffffff; */
  background-color: rgba(255, 255, 255, 0.97);
  border-left: 3px solid #EA9957;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);

  color: #0a0a0a;

  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;

  cursor: pointer;

  opacity: 0;

  -ms-transform: translateX(-8px);
  -webkit-transform: translateX(-8px);
  transform: translateX(-8px);

  -webkit-transition: -ms-transform 0.3s,
                      -webkit-transform 0.3s,
                      transform 0.3s,
                      opacity 0.3s;
  transition: -ms-transform 0.3s,
              -webkit-transform 0.3s,
              transform 0.3s,
              opacity 0.3s;
}

.mobile .link-hotspot {
  top: 19px;
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  opacity: 1;
  -ms-transform: translateX(0);
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.link-hotspot-tooltip {
  pointer-events: none;
}
.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  pointer-events: all;
}

.tooltip-fallback .link-hotspot-tooltip {
  display: none;
}
.no-touch .tooltip-fallback .link-hotspot:hover .link-hotspot-tooltip {
  display: block;
}

/* ─── Info hotspot ───────────────────────────────────────── */

.info-hotspot {
  line-height: 1.2em;
  opacity: 0.92;
  -webkit-transition: opacity 0.2s 0.2s;
  transition: opacity 0.2s 0.2s;
}

.info-hotspot.visible {
  opacity: 1;
  z-index: 1000;
}

.info-hotspot .info-hotspot-header {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background-color: #EA9957;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  -webkit-transition: width 0.3s ease-in-out 0.5s,
                      border-radius 0.3s ease-in-out 0.5s;
  transition: width 0.3s ease-in-out 0.5s,
              border-radius 0.3s ease-in-out 0.5s;
}

.mobile .info-hotspot .info-hotspot-header {
  width: 50px;
  height: 50px;
  border-radius: 25px;
}

.desktop .info-hotspot.visible .info-hotspot-header {
  width: 260px;
  border-radius: 3px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  -webkit-transition: width 0.3s ease-in-out,
                      border-radius 0.3s ease-in-out;
  transition: width 0.3s ease-in-out,
              border-radius 0.3s ease-in-out;
}

.info-hotspot .info-hotspot-icon-wrapper {
  width: 40px;
  height: 40px;
}

.mobile .info-hotspot .info-hotspot-icon-wrapper {
  width: 50px;
  height: 50px;
}

.info-hotspot .info-hotspot-icon {
  width: 90%;
  height: 90%;
  margin: 5%;
  opacity: 1;
  transform: scale(0.75);
  filter: brightness(0) invert(1); /* white glyph on the orange pin */
}

.info-hotspot .info-hotspot-title-wrapper {
  position: absolute;
  left: 40px;
  top: 0;
  width: 0;
  height: 40px;
  padding: 0;
  overflow: hidden;
  -webkit-transition: width 0s 0.4s, padding 0s 0.4s;
  transition: width 0s 0.4s, padding 0s 0.4s;
}

.desktop .info-hotspot.visible .info-hotspot-title-wrapper {
  width: 220px;
  padding: 0 5px;
  transition: width 0s 0.4s, padding 0s 0.4s;
}

.desktop .info-hotspot.visible .info-hotspot-title-wrapper .info-hotspot-title {
  opacity: 1;
  transition: opacity 0.5s ease-in-out 0.2s ;
}

.info-hotspot .info-hotspot-title-wrapper:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.info-hotspot .info-hotspot-title {
  display: inline-block;
  vertical-align: middle;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.97);

  opacity: 0;
  transition: opacity 0.4s ease-in-out;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot .info-hotspot-close-wrapper {
  position: absolute;
  left: 260px;
  top: 0;
  height: 40px;
  width: 40px;
  border-top-right-radius: 3px;
  background-color: #161616;
  visibility: hidden;
  -ms-transform: perspective(200px) rotateY(90deg);
  -webkit-transform: perspective(200px) rotateY(90deg);
  transform: perspective(200px) rotateY(90deg);
  -ms-transform-origin: 0 50% 0;
  -webkit-transform-origin: 0 50% 0;
  transform-origin: 0 50% 0;
  -webkit-transition: -ms-transform 0.3s 0.3s,
                      -webkit-transform 0.3s 0.3s,
                      transform 0.3s 0.3s,
                      visibility 0s 0.6s;
  transition: -ms-transform 0.3s 0.3s,
              -webkit-transform 0.3s 0.3s,
              transform 0.3s 0.3s,
              visibility 0s 0.6s;
}

.desktop .info-hotspot.visible .info-hotspot-close-wrapper {
  visibility: visible;
  -ms-transform: perspective(200px) rotateY(0deg);
  -webkit-transform: perspective(200px) rotateY(0deg);
  transform: perspective(200px) rotateY(0deg);
  -webkit-transition: -ms-transform 0.3s,
                      -webkit-transform 0.3s,
                      transform 0.3s,
                      visibility 0s 0s;
  transition: -ms-transform 0.3s,
              -webkit-transform 0.3s,
              transform 0.3s,
              visibility 0s 0s;
}

.info-hotspot .info-hotspot-close-icon {
  width: 70%;
  height: 70%;
  margin: 15%;
  filter: brightness(0) invert(1);
}

.info-hotspot .info-hotspot-text {
  position: absolute;
  width: 300px;
  height: auto;
  max-height: 600px;
  top: 40px;
  left: 0;
  padding: 12px 14px;
  background-color: #f7f6f4;
  /* background-color:  #f7f6f4; */
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
  border-top: 1px solid rgba(10,10,10,0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  visibility: hidden;
  font-size: 14px;
  line-height: 1.5;
  color: #0a0a0a;

  -ms-transform: perspective(200px) rotateX(-89.999deg);
  -webkit-transform: perspective(200px) rotateX(-89.999deg);
  transform: perspective(200px) rotateX(-89.999deg);
  -ms-transform-origin: 50% 0 0;
  -webkit-transform-origin: 50% 0 0;
  transform-origin: 50% 0 0;
  -webkit-transition: -ms-transform 0.3s,
                      -webkit-transform 0.3s,
                      transform 0.3s,
                      visibility 0s 0.3s;
  transition: -ms-transform 0.3s,
              -webkit-transform 0.3s,
              transform 0.3s,
              visibility 0s 0.3s;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.desktop .info-hotspot.visible .info-hotspot-text {
  visibility: visible;
  -ms-transform: perspective(200px) rotateX(0deg);
  -webkit-transform: perspective(200px) rotateX(0deg);
  transform: perspective(200px) rotateX(0deg);
  -webkit-transition: -ms-transform 0.3s 0.3s,
                      -webkit-transform 0.3s 0.3s,
                      transform 0.3s 0.3s,
                      visibility 0s 0s;
  transition: -ms-transform 0.3s 0.3s,
              -webkit-transform 0.3s 0.3s,
              transform 0.3s 0.3s,
              visibility 0s 0s;
}

/* ─── Info hotspot modal (mobile) ────────────────────────── */

.desktop .info-hotspot-modal {
  display: none;
}

.info-hotspot-modal {
  top: 0;
  left: 0;
  position: fixed;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 11000 !important;
  background-color: rgba(10, 10, 10, 0.75);
  line-height: 1.2em;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.2s ease-in-out 0.5s,
                      visibility 0s 0.7s;
  transition: opacity 0.2s ease-in-out 0.5s,
              visibility 0s 0.7s;
}

.info-hotspot-modal.visible {
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 0.2s ease-in-out,
                      visibility 0s 0s;
  transition: opacity 0.2s ease-in-out,
              visibility 0s 0s;
}

/* Inner card: sized to its content, capped so it never exceeds the
   screen, and centered by the flex backdrop above. */
.info-hotspot-modal-box {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.info-hotspot-modal .info-hotspot-header {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 50px;
  background-color: #EA9957;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-in-out 0.2s;
  transition: opacity 0.3s ease-in-out 0.2s;
}

.info-hotspot-modal.visible .info-hotspot-header {
  opacity: 1;
  -webkit-transition: opacity 0.3s ease-in-out 0.2s;
  transition: opacity 0.3s ease-in-out 0.2s;
}

.info-hotspot-modal .info-hotspot-icon-wrapper {
  width: 50px;
  height: 50px;
}

.info-hotspot-modal .info-hotspot-icon {
  width: 90%;
  height: 90%;
  margin: 5%;
  opacity: 0.75;
  transform: scale(0.75);
  filter: brightness(0) invert(1);
}

.info-hotspot-modal .info-hotspot-title-wrapper {
  position: absolute;
  top: 0;
  left: 50px;
  right: 50px;
  width: auto;
  height: 50px;
  padding: 0 10px;
}

.info-hotspot-modal .info-hotspot-title-wrapper:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.info-hotspot-modal .info-hotspot-title {
  display: inline-block;
  vertical-align: middle;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.97);

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot-modal .info-hotspot-close-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background-color: #EA9957;
  background-color: rgba(22, 22, 22, 0.95);
  cursor: pointer;
}

.info-hotspot-modal .info-hotspot-close-icon {
  width: 70%;
  height: 70%;
  margin: 15%;
  filter: brightness(0) invert(1);
}

.info-hotspot-modal .info-hotspot-text {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 16px;
  background-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.97);
  overflow-y: auto;
  opacity: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #0a0a0a;
  -webkit-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot-modal.visible .info-hotspot-text {
  opacity: 1;
  -webkit-transition: opacity 0.3s ease-in-out 0.4s;
  transition: opacity 0.3s ease-in-out 0.4s;
}

/* ─── Info hotspot images ────────────────────────── */

.info-hotspot-text .hotspot-img,
.info-hotspot-modal-box .hotspot-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 2px auto 10px auto;
  display: block;
}


/* ─── Info hotspot logo ────────────────────────── */

.info-hotspot-text .hotspot-logo,
.info-hotspot-modal-box .hotspot-logo {
  width: 40%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0 6px auto;
  display: block;
}


/* ─── View control buttons ───────────────────────────────── */

.viewControlButton {
  display: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(10,10,10,0.08);
}

body.view-control-buttons .viewControlButton {
  display: block;
}

@media (max-width: 600px) {
  body.view-control-buttons .viewControlButton {
    display: none;
  }
}

.viewControlButton .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  filter: brightness(0) saturate(100%);
}

.no-touch .viewControlButton:hover {
  background-color: rgba(234, 153, 87, 0.1);
}

.viewControlButton-1 { margin-left: -145px; }
.viewControlButton-2 { margin-left: -95px; }
.viewControlButton-3 { margin-left: -45px; }
.viewControlButton-4 { margin-left: 5px; }
.viewControlButton-5 { margin-left: 55px; }
.viewControlButton-6 { margin-left: 105px; }

/* ─── Mini-map ───────────────────────────────────────────── */

#map {
  position: absolute;
  bottom: 16px;
  left: 16px;
  margin-right: 16px;
  z-index: 10;
  width: auto;
  max-width: 400px;
  border-radius: 4px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0);
}

#map img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.4s ease-in-out;
}

#map p {
  margin: 2px 0 0;
  padding: 0 4px;
  line-height: 2;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ─── Logo ───────────────────────────────────────────── */
#logo {
  opacity: 1;
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 10;
  width: 180px;
  transition: opacity 0.3s ease-in-out;
  transition-delay: 0.3s; /* waits before fading back in */
}

.mobile #logo {
  top: 60px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.mobile #sceneList.enabled ~ #logo {
  transition-delay: 0s; /* waits before fading back in */
  opacity: 0;
  pointer-events: none;
}

/* ─── Top/bottom vignette ────────────────────────────────── */

#vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5; /* above #pano (0) but below UI elements (10+) */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.18) 10%,
    rgba(0, 0, 0, 0.00) 20%,
    rgba(0, 0, 0, 0.00) 80%,
    rgba(0, 0, 0, 0.18) 90%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

/* ─── Ensure top UI sits above vignette ──────────────────── */

#titleBar,
#sceneListToggle,
#autorotateToggle,
#fullscreenToggle,
#sceneList {
  z-index: 6;
}

/* ─── Nota Legal link ────────────────────────────────────── */

#notaLegalToggle {
  position: absolute;
  bottom: 4px;
  left: 16px;
  z-index: 10;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  cursor: pointer;
}

#notaLegalToggle:hover {
  color: #ffffff;
}

/* ─── Nota Legal modal overlay ───────────────────────────── */

#notaLegalOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 20000;
  justify-content: center;
  align-items: center;
}

#notaLegalOverlay.visible {
  display: flex;
}

#notaLegalBox {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 32px 28px 24px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  text-align: left;
}

#notaLegalBox p {
  font-size: 14px;
  line-height: 1.7;
  color: #0a0a0a;
  margin: 0 0 24px;
  -moz-user-select: text;
  -webkit-user-select: text;
  user-select: text;
}

#notaLegalClose {
  display: block;
  margin: 0 auto;
  padding: 10px 28px;
  background-color: #EA9957;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

#notaLegalClose:hover {
  background-color: #c9531a;
}