/* Product scope is language-independent. Backstops for late-rendered controls. */
#media-panel-toggle, #media-panel,
#screenshot-challenge-toggle, #screenshot-challenge-panel,
#threed-toggle-btn, .credits-button, .coffee-button,
.credits-lightbox, .thanks-lightbox,
.control-panel-footer, .panel-ad-zone,
#mobile-nav-media, #mobile-nav-game, #mobile-nav-credits, #mobile-nav-support,
#mobile-nav-reallife, [data-action="view-reallife"],
#marker-control .mc-master, #marker-control .mc-separator,
#marker-control .mc-group-block:not([data-group-id="landmarks"]) {
  display: none !important;
}

.mobile-bottom-nav.is-single-page > .mobile-nav-pager {
  display: none !important;
}

/* Allow retained comparison cards to fit the existing narrow side panel. */
.rockstar-maps-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rockstar-map-card {
  min-width: 0;
}

#map-mode-switcher:not(.has-video):not(.has-motion),
#map-mode-switcher .switcher-toggle-container,
[onclick*=".goToRealLife("] {
  display: none !important;
}

/* V3: no point link-sharing or Wiki controls in popup, detail or mobile UI. */
.marker-popup-button[data-action="copy-link"],
.marker-popup-button[data-action="wiki"],
.marker-lightbox .marker-wiki-btn,
.marker-lightbox [onclick*="copyTextToClipboard"][onclick*="_markerShareUrl"],
.marker-lightbox .wm-link-preview,
#mobile-nav-copy-link, #mobile-nav-wiki {
  display: none !important;
}

/* V4: the loading screen keeps its logo and progress, without footer links. */
.preloader-footer { display: none !important; }

/* V5: point detail has a single explicit close action, at the top right. */
.marker-lightbox > .wm-titlebar { min-height: 44px; padding: 0 60px 0 18px; }
.marker-lightbox > .wm-titlebar .wm-controls { left: auto; right: 10px; }
.marker-lightbox > .wm-titlebar .wm-title { max-width: 100%; }
.marker-lightbox .marker-close-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  color: #fff; background: #c82c36; box-shadow: none;
}
.marker-lightbox .marker-close-button::before { content: none; }
.marker-lightbox .marker-close-button:hover { background: #a91e28; filter: none; }
.marker-lightbox .marker-close-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
