/**
 * RCSpotter — unified nav bottom sheet (footer ☰ + map HUD Menu).
 * Narrow panel (~320px), slides up from bottom-left — same width as map HUD drawer.
 */

.rcs-nav-sheet,
.map-mobile-menu.rcs-nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 260;
  pointer-events: none;
}

body.rcs-footer-embed .rcs-nav-sheet {
  z-index: 10000;
}

.rcs-nav-sheet[hidden] {
  display: none !important;
}

.rcs-nav-sheet.is-open {
  pointer-events: auto;
}

.rcs-nav-sheet-backdrop,
.rcs-nav-sheet .map-mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rcs-nav-sheet.is-open .rcs-nav-sheet-backdrop,
.rcs-nav-sheet.is-open .map-mobile-menu-backdrop {
  opacity: 1;
}

.rcs-nav-sheet-panel,
.rcs-nav-sheet .map-mobile-menu-sheet {
  position: absolute;
  left: 12px;
  right: auto;
  bottom: 0;
  width: min(320px, calc(100vw - 24px));
  max-height: min(82dvh, 640px);
  overflow: auto;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(100%);
  transition: transform 0.24s ease;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
}

.rcs-nav-sheet.is-open .rcs-nav-sheet-panel,
.rcs-nav-sheet.is-open .map-mobile-menu-sheet {
  transform: translateY(0);
}

.rcs-nav-sheet-handle,
.rcs-nav-sheet .map-mobile-menu-handle {
  width: 40px;
  height: 4px;
  margin: 6px auto 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.rcs-nav-sheet-head,
.rcs-nav-sheet .map-mobile-menu-head {
  padding: 4px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

.rcs-nav-sheet-head .account-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86efac;
}

.rcs-nav-sheet-head .account-name,
.rcs-nav-sheet .map-mobile-menu-head .account-name {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
  word-break: break-word;
}

.rcs-nav-sheet-head-guest,
.rcs-nav-sheet .map-mobile-menu-head-guest {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}

.rcs-nav-sheet-section,
.rcs-nav-sheet .map-mobile-menu-section {
  padding: 6px 0;
}

.rcs-nav-sheet-section-title,
.rcs-nav-sheet .map-mobile-menu-section-title {
  margin: 0;
  padding: 8px 18px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.rcs-nav-sheet a,
.rcs-nav-sheet button:not(.map-hud-search-go):not(.menu-login):not(.menu-logout) {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border: none;
  background: none;
  color: #f8fafc;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  box-sizing: border-box;
}

.rcs-nav-sheet a:active,
.rcs-nav-sheet button:not(.map-hud-search-go):not(.menu-login):not(.menu-logout):active {
  background: rgba(255, 255, 255, 0.06);
}

.rcs-nav-sheet [hidden] {
  display: none !important;
}

.rcs-nav-sheet .menu-sep {
  height: 1px;
  margin: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
}

.rcs-nav-sheet button.menu-login,
.rcs-nav-sheet .menu-login {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border: none;
  background: none;
  color: #4ade80;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  box-sizing: border-box;
}

.rcs-nav-sheet button.menu-login:active,
.rcs-nav-sheet .menu-login:active {
  background: rgba(74, 222, 128, 0.08);
}

.rcs-nav-sheet button.menu-logout,
.rcs-nav-sheet .menu-logout {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border: none;
  background: none;
  color: #f87171;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  box-sizing: border-box;
}

.rcs-nav-sheet button.menu-logout:active,
.rcs-nav-sheet .menu-logout:active {
  background: rgba(248, 113, 113, 0.08);
}

.rcs-nav-sheet-legend,
.rcs-nav-sheet .map-mobile-menu-legend {
  padding: 4px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #cbd5e1;
}

.rcs-nav-sheet-legend span,
.rcs-nav-sheet .map-mobile-menu-legend span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rcs-nav-sheet-legend i,
.rcs-nav-sheet .map-mobile-menu-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid #fff;
}

.rcs-nav-sheet-legend .official,
.rcs-nav-sheet .map-mobile-menu-legend .official { background: #dc2626; border-color: #facc15; }
.rcs-nav-sheet-legend .registered,
.rcs-nav-sheet .map-mobile-menu-legend .registered { background: #f97316; border-color: #fff; }
.rcs-nav-sheet-legend .unverified,
.rcs-nav-sheet .map-mobile-menu-legend .unverified { background: #111; border-color: #fff; }
.rcs-nav-sheet-legend .cluster,
.rcs-nav-sheet .map-mobile-menu-legend .cluster { background: #51bbd6; border-color: #fff; }

.rcs-nav-sheet-section--admin .rcs-nav-sheet-section-title,
.rcs-nav-sheet .map-mobile-menu-section--admin .map-mobile-menu-section-title { color: #86efac; }

.rcs-nav-sheet-section--platform .rcs-nav-sheet-section-title,
.rcs-nav-sheet .map-mobile-menu-section--platform .map-mobile-menu-section-title { color: #fcd34d; }

.rcs-nav-sheet-section--platform a,
.rcs-nav-sheet .map-mobile-menu-section--platform a { color: #fde68a; }

/* Map — wider panel for club search */
body[data-rcs-nav-sheet="map"] .rcs-nav-sheet-panel,
body[data-rcs-nav-sheet="map"] .rcs-nav-sheet .map-mobile-menu-sheet {
  width: min(400px, calc(100vw - 24px));
}

/* Map — Find a club block (horizontal inset matches nav links) */
.rcs-nav-sheet .map-mobile-menu-section--search {
  padding: 6px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2px;
  box-sizing: border-box;
}

.rcs-nav-sheet .map-mobile-menu-section--search .map-mobile-menu-section-title {
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 4px;
  color: #86efac;
}

.rcs-nav-sheet .map-menu-search-help {
  margin: 0 0 10px;
  padding: 0;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}

.rcs-nav-sheet .map-menu-search-help strong {
  color: #f1f5f9;
  font-weight: 700;
}

.rcs-nav-sheet .map-mobile-menu-section--search .map-hud-search--menu {
  width: 100%;
  margin-top: 0;
  box-sizing: border-box;
}

.rcs-nav-sheet #mobile-menu-search-mount .map-hud-search-results {
  margin-top: 8px;
}

/* Map-only blocks hidden off-map */
body:not([data-rcs-nav-sheet="map"]) .rcs-nav-sheet-map-only {
  display: none !important;
}

html:has(body.rcs-nav-sheet-open),
body.rcs-nav-sheet-open {
  overflow-y: scroll;
}

html:has(body.rcs-pilot-field-page.rcs-nav-sheet-open),
body.rcs-pilot-field-page.rcs-nav-sheet-open,
html:has(body.rcs-club-lounge-page.rcs-nav-sheet-open),
body.rcs-club-lounge-page.rcs-nav-sheet-open {
  overflow-y: scroll;
}

body.rcs-nav-sheet-open .rcs-pilot-scene,
body.rcs-nav-sheet-open .rcs-pilot-page,
body.rcs-club-lounge-page.rcs-nav-sheet-open {
  overflow: hidden;
}

html:has(body.rcs-field-ops-page.rcs-nav-sheet-open),
body.rcs-field-ops-page.rcs-nav-sheet-open {
  overflow-y: scroll;
}

body.map-menu-open .rcs-footer-page--map {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
