/* Endangered Pieces — de-brand layer (native UI preserved).
   Only styles the small brand wordmark + hides residual Matterport branding.
   Does NOT touch the native toolbar, panels, or title bar. */

.gg-brand {
  position: absolute;
  right: 18px;
  bottom: 86px;             /* sit above the native bottom toolbar */
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  pointer-events: none;      /* never block the canvas / controls */
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .5s ease, transform .5s ease;
  text-align: right;
}
.gg-brand.gg-in { opacity: 1; transform: none; }
.gg-brand .gg-brand-title {
  font: 600 15px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #f5f4f3;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
  letter-spacing: .2px;
}
.gg-brand .gg-brand-sub {
  font: 400 11px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: rgba(230,232,235,.82);
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  letter-spacing: .3px;
}

/* Hide residual Matterport branding the engine injects. */
#loading-powered-by,
#loading-mp-logo,
[data-testid="footer-logo-link"],
[data-testid="footer-links"] {
  display: none !important;
}

/* Keep the native title-bar / panels / toolbar fully visible and clickable. */
@media (max-width: 576px) {
  .gg-brand { right: 14px; bottom: 78px; }
}

/* ============================ HIGHLIGHT REEL ============================ */
.gg-reel {
  position: fixed; inset: 0; z-index: 60;
  display: none; overflow: hidden; background: #000;
  cursor: pointer;
}
.gg-reel.gg-reel-on { display: block; }

.gg-reel-stage { position: absolute; inset: 0; }
.gg-reel-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.1s ease;
  will-change: transform, opacity;
  pointer-events: none;
}
.gg-reel-img.gg-reel-vis { opacity: 1; }

/* soft vignette so UI text reads over bright panos */
.gg-reel-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 28%),
    linear-gradient(to bottom, rgba(0,0,0,.30), rgba(0,0,0,0) 22%);
}

.gg-reel-ui {
  position: absolute; left: 0; right: 0; bottom: 96px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none;
}
.gg-reel-counter {
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #f5f4f3; text-shadow: 0 1px 3px rgba(0,0,0,.6); letter-spacing: 1px;
}
.gg-reel-hint {
  font: 400 11px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: rgba(235,237,240,.8); text-shadow: 0 1px 2px rgba(0,0,0,.6);
  letter-spacing: .4px;
}

.gg-reel-hide {
  position: absolute; top: 18px; right: 18px;
  padding: 8px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 20px;
  background: rgba(20,22,25,.5); color: #f5f4f3;
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: .3px; cursor: pointer; backdrop-filter: blur(4px);
  transition: background .2s ease, border-color .2s ease;
}
.gg-reel-hide:hover { background: rgba(20,22,25,.75); border-color: rgba(255,255,255,.6); }

/* Clickable thumbnail filmstrip along the bottom. */
.gg-reel-strip {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; gap: 8px; padding: 6px;
  background: rgba(16,18,20,.45); border-radius: 12px;
  backdrop-filter: blur(4px); max-width: calc(100% - 40px);
  overflow-x: auto;
}
.gg-reel-thumb {
  flex: 0 0 auto; width: 92px; height: 56px; padding: 0;
  border: 2px solid rgba(255,255,255,.28); border-radius: 7px;
  overflow: hidden; cursor: pointer; background: #000;
  opacity: .72; transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}
.gg-reel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gg-reel-thumb:hover { opacity: 1; border-color: rgba(255,255,255,.6); }
.gg-reel-thumb.gg-reel-thumb-on {
  opacity: 1; border-color: #fff; transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0,0,0,.45);
}

/* Replay button (appears after the reel is dismissed, like Matterport's play). */
.gg-reel-replay {
  position: fixed; left: 18px; bottom: 84px; z-index: 55;
  display: none; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 22px;
  background: rgba(20,22,25,.55); color: #f5f4f3;
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: .3px; cursor: pointer; backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  transition: background .2s ease, border-color .2s ease;
}
.gg-reel-replay.gg-reel-replay-on { display: inline-flex; }
.gg-reel-replay:hover { background: rgba(20,22,25,.8); border-color: rgba(255,255,255,.55); }
.gg-reel-replay-ico {
  width: 0; height: 0;
  border-left: 9px solid #f5f4f3;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

@media (max-width: 576px) {
  .gg-reel-replay { left: 14px; bottom: 78px; }
  .gg-reel-hide { top: 14px; right: 14px; }
  .gg-reel-thumb { width: 68px; height: 42px; }
  .gg-reel-ui { bottom: 82px; }
}
