/* Activated only by the private filming URL. Normal storefront is untouched. */
body.nr-film-clean { margin: 0; overflow: hidden; background: #0f0f0f; }
body.nr-film-clean .app > :not(.app-main),
body.nr-film-clean .scene-caption,
body.nr-film-clean .viewer-hint,
body.nr-film-clean .controls-section > :not(.panel-body),
body.nr-film-clean .map-selector > :not(.map-wrapper),
body.nr-film-clean .map-wrapper > .preset-row,
body.nr-film-clean .map-wrapper > .map-switches,
body.nr-film-clean .map-wrapper > .map-view-switch,
body.nr-film-clean .mapboxgl-ctrl-group,
body.nr-film-clean .mapboxgl-ctrl-logo,
body.nr-film-clean .mapboxgl-ctrl-attrib,
body.nr-film-clean .leaflet-control-zoom,
body.nr-film-clean .cookie-notice,
body.nr-film-clean .nr-reference-brand,
body.nr-film-clean #nr-preview-notice { display: none !important; }

body.nr-film-clean .app,
body.nr-film-clean [data-nr-film-stage] {
  position: fixed !important; inset: 0 !important;
  width: 100% !important; height: 100dvh !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 !important; overflow: hidden !important;
}
body.nr-film-clean .app-main,
body.nr-film-clean [data-nr-film-stage] {
  display: grid !important; grid-template-columns: minmax(0, 57fr) minmax(0, 43fr);
  grid-template-rows: minmax(0, 1fr); gap: 0; min-height: 0;
}
body.nr-film-clean .viewer-section,
body.nr-film-clean .controls-section,
body.nr-film-clean .controls-section > .panel-body,
body.nr-film-clean .map-selector,
body.nr-film-clean .map-wrapper,
body.nr-film-clean [data-nr-film-viewer],
body.nr-film-clean [data-nr-film-scene],
body.nr-film-clean [data-nr-film-map] {
  position: relative !important; inset: auto !important; transform: none !important;
  width: 100% !important; height: 100% !important; min-width: 0 !important; min-height: 0 !important;
  max-width: none !important; max-height: none !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  box-sizing: border-box; overflow: hidden !important;
}
body.nr-film-clean .controls-section,
body.nr-film-clean .controls-section > .panel-body,
body.nr-film-clean .map-selector { display: flex !important; flex-direction: column !important; flex: 1 1 0% !important; }
body.nr-film-clean .map-wrapper { flex: 1 1 0% !important; }

/* Exact reference client: expose its existing scene and map through the grid.
   No reparenting, camera changes, new renderer or terrain sampling. */
body.nr-film-clean [data-nr-film-map-path] { display: contents !important; }
body.nr-film-clean [data-nr-film-stage] > :not([data-nr-film-viewer]):not([data-nr-film-map-path]),
body.nr-film-clean [data-nr-film-map-path] > :not([data-nr-film-map]):not([data-nr-film-map-path]),
body.nr-film-clean [data-nr-film-viewer] > :not([data-nr-film-scene]),
body.nr-film-clean [data-nr-film-map] button:not(.mapboxgl-ctrl-attrib-button) { display: none !important; }
body.nr-film-clean [data-nr-film-scene] > div { transform: none !important; height: 100% !important; }
/* The selection footprint stays visible; the filming frame omits map badges. */
body.nr-film-clean .map-attrib { font-size: 9px; }

.nr-film-toggle {
  position: fixed; z-index: 10000; top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right)); min-width: 44px; min-height: 44px;
  padding: 10px 16px; border: 1px solid #ffffff35; border-radius: 24px;
  background: #151515e6; color: #f0efe9; font: 12px/1.3 system-ui, sans-serif;
  cursor: pointer; touch-action: manipulation;
}
body.nr-film-clean .nr-film-toggle { opacity: 0; }
body.nr-film-clean .nr-film-toggle:hover,
body.nr-film-clean .nr-film-toggle:focus-visible { opacity: 1; }
.nr-film-toggle:focus-visible { outline: 2px solid #f0efe9; outline-offset: 3px; }

@media (max-width: 767px), (orientation: portrait) {
  body.nr-film-clean .app-main,
  body.nr-film-clean [data-nr-film-stage] {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 55fr) minmax(0, 45fr);
  }
}
