:root {
  --map-ink: #10140f;
  --map-muted: #778074;
  --map-surface: rgba(249, 251, 246, .92);
  --map-surface-strong: #fbfcf8;
  --map-line: rgba(16, 20, 15, .1);
  --map-acid: #bdf33f;
  --map-orange: #ff6846;
  --map-blue: #4998ff;
}

body:not(.public-mode) #map {
  background: #dce8df;
}

body:not(.public-mode).classic-map .leaflet-tile-pane {
  filter: saturate(.72) contrast(.96) brightness(1.04);
}

body:not(.public-mode).satellite-map .leaflet-tile-pane {
  filter: saturate(.82) contrast(1.06) brightness(.88);
}

body:not(.public-mode) .topbar {
  top: 20px;
  left: 20px;
  right: 20px;
}

body:not(.public-mode) .map-home-button {
  display: grid;
  width: 54px;
  height: 54px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(200, 255, 50, .22);
  border-radius: 12px;
  background: #080b08;
  color: var(--map-acid);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .36);
  pointer-events: auto;
}

body:not(.public-mode) .map-home-button:hover {
  border-color: rgba(200, 255, 50, .5);
  background: #10150e;
  transform: translateY(-1px);
}

body:not(.public-mode) .map-home-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

body:not(.public-mode) .brand {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body:not(.public-mode) .map-brand-icon {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 9px 22px rgba(0, 0, 0, .42));
}

body:not(.public-mode) .brand > div {
  display: none;
}

body:not(.public-mode) .brand h1 {
  color: var(--map-ink);
  font: 700 20px "Space Grotesk", sans-serif;
  letter-spacing: -.04em;
}

body:not(.public-mode) .brand p {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--map-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.map-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--map-acid);
  box-shadow: 0 0 9px rgba(155,218,35,.8);
}

body:not(.public-mode) .account-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 12px;
  background: rgba(250,252,247,.9);
  color: var(--map-ink);
  box-shadow: 0 16px 46px rgba(23,34,25,.14);
  backdrop-filter: blur(22px);
}

body:not(.public-mode) .filter-button {
  display: grid;
  position: static;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
}

body:not(.public-mode) .filter-button[aria-expanded="true"] {
  border-color: rgba(189, 243, 63, .3);
  color: var(--map-acid);
}

body:not(.public-mode) .control-panel.desktop-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-100% - 36px));
}

body:not(.public-mode) .control-panel {
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}

body:not(.public-mode) .account-button.premium {
  position: relative;
  padding-left: 38px;
  border-color: rgba(164,218,50,.42);
  background: #11160f;
  color: #f4f7ed;
}

body:not(.public-mode) .account-button.premium::before {
  content: "P";
  position: absolute;
  left: 13px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--map-acid);
  color: #11160f;
  font-size: 9px;
  font-weight: 900;
}

body:not(.public-mode) .control-panel {
  top: 90px;
  left: 20px;
  bottom: 20px;
  width: 370px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 14px;
  background: var(--map-surface);
  box-shadow: 0 24px 70px rgba(23,34,25,.18);
  backdrop-filter: blur(24px) saturate(1.25);
  overflow: visible;
}

body:not(.public-mode) .control-panel::before {
  display: none;
}

body:not(.public-mode) .panel-head {
  padding: 18px 18px 14px;
  border-color: var(--map-line);
}

body:not(.public-mode) .panel-head .eyebrow {
  color: #79a30f;
  font-size: 8px;
  letter-spacing: .14em;
}

body:not(.public-mode) .panel-head h2 {
  color: var(--map-ink);
  font: 700 20px "Space Grotesk", sans-serif;
  letter-spacing: -.035em;
}

body:not(.public-mode) .stats {
  gap: 7px;
  padding: 11px 14px;
  border-color: var(--map-line);
}

body:not(.public-mode) .stats div {
  padding: 10px 9px;
  border: 1px solid var(--map-line);
  border-radius: 9px;
  background: rgba(255,255,255,.72);
}

body:not(.public-mode) .stats strong {
  color: var(--map-ink);
  font: 700 18px "Space Grotesk", sans-serif;
}

body:not(.public-mode) .stats div:last-child strong {
  color: #709d05;
}

body:not(.public-mode) .stats span {
  color: var(--map-muted);
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body:not(.public-mode) .controls {
  position: relative;
  gap: 11px;
  padding: 13px 14px;
  border-color: var(--map-line);
  overflow: visible;
}

.map-search {
  position: relative;
  display: flex;
  align-items: center;
}

.map-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 38px;
  border: 1px solid var(--map-line);
  border-radius: 9px;
  outline: none;
  background: rgba(255,255,255,.8);
  color: var(--map-ink);
  font-size: 12px;
  font-weight: 600;
}

.map-search input:focus {
  border-color: rgba(137,190,24,.55);
  box-shadow: 0 0 0 4px rgba(177,229,59,.14);
}

.map-search input::-webkit-search-cancel-button {
  display: none;
}

.map-search-icon {
  position: absolute;
  left: 14px;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid #6f786c;
  border-radius: 50%;
  pointer-events: none;
}

.map-search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: #6f786c;
  transform: rotate(45deg);
}

.map-search button {
  position: absolute;
  right: 7px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #edf1e8;
  color: #697166;
}

body:not(.public-mode) .field > span {
  color: #737c70;
  font-size: 8px;
  letter-spacing: .09em;
}

body:not(.public-mode) .category-picker-button {
  min-height: 46px;
  border: 1px solid var(--map-line);
  border-radius: 9px;
  background: rgba(255,255,255,.76);
  color: var(--map-ink);
}

body:not(.public-mode) .category-avatar {
  border-color: rgba(146,195,35,.25);
  border-radius: 7px;
  background: rgba(189,243,63,.18);
  color: #638d00;
}

body:not(.public-mode) .category-menu {
  position: absolute;
  top: -84px;
  left: calc(100% + 14px);
  z-index: 30;
  width: 350px;
  max-height: min(62vh, calc(100vh - 274px));
  border-color: var(--map-line);
  border-radius: 10px;
  background: rgba(250,252,247,.98);
  box-shadow: 0 20px 50px rgba(20,30,22,.2);
}

body:not(.public-mode) .category-picker {
  z-index: 30;
}

body:not(.public-mode) .spot-list-wrap {
  border-radius: 0 0 13px 13px;
  background: rgba(2, 5, 3, .22);
}

body:not(.public-mode) .category-option {
  border-color: var(--map-line);
  background: white;
  color: var(--map-ink);
}

body:not(.public-mode) .category-option.active {
  border-color: rgba(139,190,29,.42);
  background: rgba(189,243,63,.14);
  color: #577d00;
}

body:not(.public-mode) .category-option.active::after {
  background: #84b810;
}

body:not(.public-mode) .segmented {
  gap: 7px;
}

body:not(.public-mode) .segmented span {
  min-height: 38px;
  border: 1px solid var(--map-line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: #596156;
  font-size: 10px;
}

body:not(.public-mode) .segmented input:checked + span {
  border-color: rgba(135,186,24,.5);
  background: #11160f;
  color: var(--map-acid);
}

body:not(.public-mode) .field select {
  min-height: 42px;
  border: 1px solid var(--map-line);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: var(--map-ink);
}

body:not(.public-mode) #resetBtn {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: #ebeee7;
  color: #596156;
  font-size: 10px;
}

body:not(.public-mode) .basemap-field {
  display: none;
}

body:not(.public-mode) .spot-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

body:not(.public-mode) .spot-item {
  position: relative;
  gap: 5px;
  padding: 13px 13px 12px 16px;
  overflow: hidden;
  border: 1px solid var(--map-line);
  border-radius: 10px;
  background: rgba(255,255,255,.78);
  color: var(--map-ink);
  box-shadow: 0 4px 14px rgba(22,31,23,.04);
}

body:not(.public-mode) .spot-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--map-orange);
}

body:not(.public-mode) .spot-item.premium::before {
  background: #92c71d;
}

body:not(.public-mode) .spot-item.favorite::before {
  background: var(--map-blue);
}

body:not(.public-mode) .spot-item:hover {
  border-color: rgba(116,142,110,.25);
  background: white;
  box-shadow: 0 11px 28px rgba(22,31,23,.1);
  transform: translateY(-1px);
}

body:not(.public-mode) .spot-title {
  font: 700 13px "Space Grotesk", sans-serif;
}

body:not(.public-mode) .spot-meta {
  color: var(--map-muted);
  font-size: 9px;
}

.pin-default,
.pin-standard,
.pin-red {
  background: var(--map-orange) !important;
}

.pin-premium {
  background: #92c71d !important;
}

.pin-favorite {
  background: var(--map-blue) !important;
}

body:not(.public-mode) .chip {
  border-radius: 999px;
  background: #eef1e9;
  color: #616a5e;
  font-size: 8px;
}

body:not(.public-mode) .spot-item.premium .chip:first-child {
  background: rgba(189,243,63,.2);
  color: #5d8500;
}

body:not(.public-mode) .maps-chip,
body:not(.public-mode) .popup-actions a {
  border-radius: 6px;
  background: #11160f;
  color: #f3f6ed;
  font-size: 9px;
}

body:not(.public-mode) .cluster-marker {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255,255,255,.95);
  background: var(--map-orange);
  color: white;
  box-shadow: 0 7px 22px rgba(217,75,44,.3);
  font-family: "Space Grotesk", sans-serif;
}

body:not(.public-mode) .cluster-marker.premium {
  background: #9bd025;
  color: #172005;
  box-shadow: 0 7px 24px rgba(123,176,20,.32);
}

body:not(.public-mode) .cluster-marker.mixed {
  background: linear-gradient(135deg, var(--map-orange) 0 48%, #a6dd27 50% 100%);
  color: #fff;
}

body:not(.public-mode) .cluster-marker.favorite {
  outline: 3px solid rgba(73,152,255,.28);
  outline-offset: 2px;
}

body:not(.public-mode) .legend-card {
  top: 94px;
  right: 20px;
  width: 188px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 12px;
  background: rgba(250,252,247,.9);
  box-shadow: 0 18px 52px rgba(23,34,25,.14);
  backdrop-filter: blur(22px);
}

body:not(.public-mode) .legend-card.collapsed {
  width: 48px;
  min-width: 48px;
}

body:not(.public-mode) .legend-card.collapsed .legend-header {
  padding: 7px;
}

body:not(.public-mode) .legend-card.collapsed .legend-header h2 {
  display: none;
}

body:not(.public-mode) .legend-header {
  padding: 12px 13px 8px;
}

body:not(.public-mode) .legend-header h2 {
  color: var(--map-ink);
  font: 700 12px "Space Grotesk", sans-serif;
}

body:not(.public-mode) .legend-items {
  gap: 8px;
  padding: 4px 13px 13px;
  color: var(--map-muted);
  font-size: 9px;
}

body:not(.public-mode) .legend-toggle {
  border-radius: 7px;
  background: #11160f;
  color: var(--map-acid);
}

body:not(.public-mode) .satellite-button,
body:not(.public-mode) .locate-button,
body:not(.public-mode) .filter-button {
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 11px;
  background: rgba(250,252,247,.92);
  color: var(--map-ink);
  box-shadow: 0 14px 40px rgba(23,34,25,.16);
  backdrop-filter: blur(18px);
}

.view-switcher {
  position: fixed;
  left: 68px;
  bottom: 18px;
  z-index: 675;
}

body:not(.public-mode) .view-switcher .satellite-button {
  position: static;
  min-width: 148px;
  justify-content: center;
}

.view-button-icon {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-shadow: 3px -3px 0 -1px #10150f, 3px -3px 0 0 currentColor;
}

.satellite-button b {
  margin-left: 3px;
  font-size: 10px;
  transition: transform 160ms ease;
}

.view-switcher.open .satellite-button b {
  transform: rotate(180deg);
}

.view-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  display: grid;
  width: 260px;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--night-line-strong);
  border-radius: 13px;
  background: rgba(8, 12, 9, .97);
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  backdrop-filter: blur(24px);
}

.view-menu[hidden] {
  display: none;
}

.view-menu button {
  display: grid;
  grid-template-columns: 58px 1fr 20px;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #dce3d8;
  text-align: left;
}

.view-menu button:hover,
.view-menu button.active {
  border-color: rgba(189,243,63,.24);
  background: rgba(189,243,63,.08);
}

.view-menu button > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.view-menu strong {
  font-size: 11px;
}

.view-menu small {
  color: #7f897c;
  font-size: 8px;
}

.view-menu i {
  display: none;
  color: var(--map-acid);
  font-style: normal;
  font-weight: 900;
}

.view-menu button.active i {
  display: block;
}

.view-preview {
  width: 58px;
  height: 43px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  background-size: cover;
}

.view-preview.nocturne {
  background:
    linear-gradient(28deg, transparent 45%, #4b5549 46% 49%, transparent 50%),
    linear-gradient(110deg, #121812, #263027);
}

.view-preview.osm {
  background:
    linear-gradient(25deg, transparent 45%, #edc98b 46% 48%, transparent 49%),
    linear-gradient(110deg, #e5eee5, #faf9f2);
}

.view-preview.satellite {
  background:
    radial-gradient(circle at 22% 70%, #657048, transparent 25%),
    linear-gradient(145deg, #213e42 0 38%, #655d3f 39% 70%, #3f5338 71%);
}

body:not(.public-mode) .satellite-button.active,
body:not(.public-mode) .satellite-button:hover {
  border-color: #11160f;
  background: #11160f;
  color: var(--map-acid);
}

body:not(.public-mode) .leaflet-control-zoom {
  overflow: hidden;
  border-radius: 10px !important;
  box-shadow: 0 14px 40px rgba(23,34,25,.16);
}

body:not(.public-mode) .leaflet-control-zoom a {
  border-color: var(--map-line) !important;
  background: rgba(250,252,247,.94);
  color: var(--map-ink);
}

body:not(.public-mode) .leaflet-popup-content-wrapper {
  overflow: hidden;
  border-radius: 12px;
  background: #fbfcf8;
}

.popup-premium-line {
  height: 3px;
  margin: -14px -14px 12px;
  background: var(--map-orange);
}

.popup-premium-line.premium { background: #92c71d; }
.popup-premium-line.favorite { background: var(--map-blue); }
.popup-kicker { margin: 0 0 4px; color: #7b8500; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
body:not(.public-mode) .popup-title { margin-bottom: 5px; color: var(--map-ink); font: 700 17px "Space Grotesk", sans-serif; }

@media (max-width: 980px) {
  body:not(.public-mode) .topbar {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  body:not(.public-mode) .brand {
    min-width: 0;
    padding: 7px 9px;
  }

  body:not(.public-mode) .brand p {
    display: none;
  }

  body:not(.public-mode) .account-button {
    max-width: 150px;
    min-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body:not(.public-mode) .legend-card {
    top: 72px;
    right: 12px;
    left: auto;
    width: auto;
    min-width: 48px;
  }

  body:not(.public-mode) .legend-card:not(.collapsed) {
    width: 172px;
  }

  body:not(.public-mode) .control-panel {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: min(76svh, 720px);
    border-radius: 18px;
    transform: translateY(calc(100% + 24px));
    transition: transform 220ms cubic-bezier(.2,.8,.2,1);
    overflow: hidden;
  }

  body:not(.public-mode) .control-panel.open {
    transform: translateY(0);
  }

  body:not(.public-mode):has(.control-panel.open) .filter-button,
  body:not(.public-mode):has(.control-panel.open) .locate-button,
  body:not(.public-mode):has(.control-panel.open) .satellite-button {
    opacity: 0;
    pointer-events: none;
  }

  body:not(.public-mode) .control-panel::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    z-index: 3;
    width: 42px;
    height: 4px;
    border-radius: 99px;
    background: #c9cec6;
    transform: translateX(-50%);
  }

  body:not(.public-mode) .panel-head {
    flex: 0 0 auto;
    padding-top: 23px;
  }

  body:not(.public-mode) .filter-button {
    display: grid;
    position: fixed;
    top: auto;
    right: auto;
    bottom: 18px;
    left: 50%;
    width: 54px;
    height: 54px;
    transform: translateX(-50%);
    border-color: #11160f;
    background: #11160f;
    color: var(--map-acid);
  }

  body:not(.public-mode) .locate-button {
    top: auto;
    right: 14px;
    bottom: 18px;
    left: auto;
    width: 48px;
    height: 48px;
  }

  body:not(.public-mode) .satellite-button {
    top: auto;
    right: auto;
    bottom: 18px;
    left: 14px;
    min-height: 48px;
  }

  .view-switcher {
    right: auto;
    bottom: 18px;
    left: 14px;
  }

  body:not(.public-mode) .view-switcher .satellite-button {
    min-width: 130px;
  }

  .view-menu {
    width: min(290px, calc(100vw - 28px));
  }

  body:not(.public-mode) .leaflet-control-zoom {
    display: none;
  }

  body:not(.public-mode) .spot-list {
    padding-bottom: 24px;
  }

  body:not(.public-mode) .controls {
    display: grid;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    max-height: min(48svh, 420px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body:not(.public-mode) .spot-list-wrap {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 150px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body:not(.public-mode) .spot-list {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body:not(.public-mode) .category-menu {
    position: static;
    top: auto;
    width: 100%;
    max-height: 215px;
  }

  body:not(.public-mode) .panel-head .icon-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    border-color: var(--night-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .055);
    color: var(--night-text);
    font-size: 20px;
    font-weight: 800;
    box-shadow: none;
  }
}

@media (min-width: 981px) {
  body:not(.public-mode) .control-panel {
    bottom: 78px;
  }

  body:not(.public-mode) .leaflet-control-zoom {
    right: 18px !important;
    bottom: 18px !important;
    left: auto !important;
  }

  body:not(.public-mode) .locate-button {
    right: 18px;
    bottom: 106px;
  }

  body:not(.public-mode) .view-switcher {
    right: auto;
    bottom: 18px;
    left: 20px;
  }

  .view-menu {
    right: auto;
    bottom: calc(100% + 10px);
    left: 0;
  }

  body.map-filters-open:not(.public-mode) .view-menu {
    bottom: 0;
    left: 384px;
  }
}

@media (max-width: 560px) {
  body:not(.public-mode) .map-home-button {
    width: 48px;
    height: 48px;
    border-radius: 11px;
  }

  body:not(.public-mode) .map-home-button svg {
    width: 22px;
    height: 22px;
  }

  body:not(.public-mode) .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: rgba(10, 14, 11, .97);
  }

  body:not(.public-mode) .stats div {
    padding: 9px 7px;
  }

  body:not(.public-mode) .stats strong {
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  body:not(.public-mode) .brand h1 {
    font-size: 17px;
  }

  body:not(.public-mode) .map-brand-icon {
    width: 52px;
    height: 52px;
  }

  body:not(.public-mode) .account-button {
    max-width: 125px;
    padding: 0 12px;
    font-size: 11px;
  }

  body:not(.public-mode) .account-button.premium {
    padding-left: 33px;
  }

  body:not(.public-mode) .stats {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(249,251,246,.96);
  }

  body:not(.public-mode) .controls {
    grid-template-columns: 1fr;
  }

  body:not(.public-mode) .category-menu {
    grid-template-columns: 1fr;
    max-height: 215px;
  }

  body:not(.public-mode) .legend-card.collapsed .legend-header h2 {
    display: none;
  }

  body:not(.public-mode) .leaflet-control-attribution {
    max-width: 65vw;
    overflow: hidden;
    white-space: nowrap;
    opacity: .7;
  }
}

/* UrBex Night Cartography */
:root {
  --night-panel: rgba(10, 14, 11, .91);
  --night-panel-soft: rgba(15, 20, 16, .86);
  --night-card: rgba(22, 28, 22, .82);
  --night-card-hover: rgba(29, 37, 28, .96);
  --night-line: rgba(219, 255, 169, .12);
  --night-line-strong: rgba(189, 243, 63, .28);
  --night-text: #f0f4e9;
  --night-muted: #8e998b;
}

body:not(.public-mode) #map {
  background: #101611;
}

body:not(.public-mode).nocturne-map .leaflet-tile-pane {
  filter: saturate(.82) contrast(.96) brightness(1.2);
}

body:not(.public-mode).satellite-map .leaflet-tile-pane {
  filter: saturate(.72) contrast(1.12) brightness(.62);
}

body:not(.public-mode) .map-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 410;
  pointer-events: none;
  background:
    radial-gradient(circle at 60% 45%, transparent 0 30%, rgba(3, 7, 4, .08) 72%, rgba(3, 6, 4, .24) 100%),
    linear-gradient(90deg, rgba(3, 7, 4, .13), transparent 28%);
}

body:not(.public-mode) .brand,
body:not(.public-mode) .account-button,
body:not(.public-mode) .control-panel,
body:not(.public-mode) .legend-card,
body:not(.public-mode) .satellite-button,
body:not(.public-mode) .locate-button,
body:not(.public-mode) .filter-button {
  border-color: var(--night-line);
  background:
    linear-gradient(145deg, rgba(189, 243, 63, .035), transparent 45%),
    var(--night-panel);
  color: var(--night-text);
  box-shadow: 0 22px 64px rgba(0, 0, 0, .4);
  backdrop-filter: blur(26px) saturate(1.18);
}

body:not(.public-mode) .brand {
  border-left: 2px solid var(--map-acid);
  text-align: left;
  cursor: pointer;
}

body:not(.public-mode) .brand:hover {
  border-color: rgba(189, 243, 63, .42);
  background:
    linear-gradient(145deg, rgba(189, 243, 63, .08), transparent 48%),
    rgba(10, 14, 11, .96);
}

body:not(.public-mode) .brand,
body:not(.public-mode) .brand:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body:not(.public-mode) .brand h1,
body:not(.public-mode) .panel-head h2,
body:not(.public-mode) .legend-header h2 {
  color: var(--night-text);
}

body:not(.public-mode) .brand p {
  color: var(--night-muted);
}

body:not(.public-mode) .account-button.premium {
  border-color: rgba(189, 243, 63, .28);
  background:
    linear-gradient(135deg, rgba(189, 243, 63, .12), transparent 62%),
    #10150f;
}

body:not(.public-mode) .control-panel {
  border-left: 1px solid var(--night-line);
  background:
    linear-gradient(155deg, rgba(189, 243, 63, .035), transparent 32%),
    var(--night-panel);
}

body:not(.public-mode) .panel-head,
body:not(.public-mode) .stats,
body:not(.public-mode) .controls {
  border-color: var(--night-line);
}

body:not(.public-mode) .panel-head .eyebrow {
  color: var(--map-acid);
}

body:not(.public-mode) .stats div {
  border-color: var(--night-line);
  background: rgba(255, 255, 255, .035);
}

body:not(.public-mode) .stats strong {
  color: var(--night-text);
}

body:not(.public-mode) .stats div:last-child strong {
  color: var(--map-acid);
}

body:not(.public-mode) .stats span,
body:not(.public-mode) .field > span,
body:not(.public-mode) .spot-meta {
  color: var(--night-muted);
}

.map-search input,
body:not(.public-mode) .category-picker-button,
body:not(.public-mode) .field select {
  border-color: var(--night-line);
  background: rgba(2, 5, 3, .48);
  color: var(--night-text);
}

.map-search input::placeholder {
  color: #778175;
}

.map-search input:focus {
  border-color: rgba(189, 243, 63, .48);
  box-shadow: 0 0 0 4px rgba(189, 243, 63, .08);
}

.map-search-icon {
  border-color: #8c9789;
}

.map-search-icon::after {
  background: #8c9789;
}

.map-search button {
  background: rgba(255, 255, 255, .07);
  color: #aeb7aa;
}

body:not(.public-mode) .category-avatar {
  border-color: rgba(189, 243, 63, .24);
  background: rgba(189, 243, 63, .1);
  color: var(--map-acid);
}

body:not(.public-mode) .category-avatar svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:not(.public-mode) .category-avatar b {
  font-size: 11px;
}

body:not(.public-mode) .category-menu {
  border-color: var(--night-line-strong);
  background: rgba(8, 12, 9, .98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .52);
}

body:not(.public-mode) .category-option {
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  min-height: 54px;
  border-color: var(--night-line);
  background: rgba(255, 255, 255, .035);
  color: #dfe5da;
}

body:not(.public-mode) .category-option > span:nth-child(2) {
  overflow: visible;
  font-size: 11px;
  font-weight: 750;
  text-overflow: clip;
}

body:not(.public-mode) .category-option .category-avatar {
  width: 32px;
  height: 32px;
}

body:not(.public-mode) .category-option:hover,
body:not(.public-mode) .category-option.active {
  border-color: rgba(189, 243, 63, .34);
  background: rgba(189, 243, 63, .1);
  color: var(--map-acid);
}

body:not(.public-mode) .segmented span {
  border-color: var(--night-line);
  background: rgba(255, 255, 255, .035);
  color: #aab3a6;
}

body:not(.public-mode) .segmented label {
  border: 0;
  background: transparent;
}

body:not(.public-mode) .segmented input:checked + span {
  border-color: rgba(189, 243, 63, .35);
  background: var(--map-acid);
  color: #11160f;
}

body:not(.public-mode) .field select option {
  background: #10150f;
  color: #edf2e7;
}

body:not(.public-mode) #resetBtn {
  border: 1px solid var(--night-line);
  background: rgba(255, 255, 255, .045);
  color: #9da79a;
}

body:not(.public-mode) #resetBtn:hover {
  border-color: rgba(189, 243, 63, .25);
  color: var(--map-acid);
}

body:not(.public-mode) .spot-list {
  background: rgba(2, 5, 3, .1);
}

body:not(.public-mode) .spot-item {
  border-color: var(--night-line);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, .035), transparent),
    var(--night-card);
  color: var(--night-text);
  box-shadow: none;
}

body:not(.public-mode) .spot-item:hover {
  border-color: rgba(189, 243, 63, .22);
  background: var(--night-card-hover);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .23);
}

body:not(.public-mode) .spot-title {
  color: #f1f5ec;
}

body:not(.public-mode) .chip {
  background: rgba(255, 255, 255, .07);
  color: #9da79a;
}

body:not(.public-mode) .spot-item.premium .chip:first-child {
  background: rgba(189, 243, 63, .13);
  color: var(--map-acid);
}

body:not(.public-mode) .maps-chip,
body:not(.public-mode) .popup-actions a {
  background: var(--map-acid);
  color: #11160f;
}

body:not(.public-mode) .legend-items {
  color: var(--night-muted);
}

body:not(.public-mode) .legend-toggle {
  background: rgba(189, 243, 63, .1);
  color: var(--map-acid);
}

body:not(.public-mode) .satellite-button.active,
body:not(.public-mode) .satellite-button:hover {
  border-color: rgba(189, 243, 63, .35);
  background: var(--map-acid);
  color: #10150f;
}

body:not(.public-mode) .leaflet-control-zoom {
  border: 1px solid var(--night-line) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .4);
}

body:not(.public-mode) .leaflet-control-zoom a {
  border-color: var(--night-line) !important;
  background: rgba(10, 14, 11, .94);
  color: var(--night-text);
}

body:not(.public-mode) .leaflet-control-zoom a:hover {
  background: var(--map-acid);
  color: #11160f;
}

body:not(.public-mode) .leaflet-control-attribution {
  background: rgba(6, 9, 7, .78);
  color: #8b9588;
}

body:not(.public-mode) .leaflet-control-attribution a {
  color: var(--map-acid);
}

body:not(.public-mode) .leaflet-popup-content-wrapper,
body:not(.public-mode) .leaflet-popup-tip {
  background: #111610;
  color: var(--night-text);
}

body:not(.public-mode) .leaflet-popup-content-wrapper {
  border: 1px solid var(--night-line-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}

body:not(.public-mode) .popup-title {
  color: var(--night-text);
}

body:not(.public-mode) .popup-actions button {
  border-color: var(--night-line);
  background: rgba(255, 255, 255, .06);
  color: #dce3d8;
}

body:not(.public-mode) .cluster-marker {
  border-width: 2px;
  border-color: rgba(255, 240, 227, .94);
  background: #ff6846;
  box-shadow:
    0 0 0 5px rgba(255, 104, 70, .11),
    0 10px 30px rgba(0, 0, 0, .4);
}

body:not(.public-mode) .cluster-marker.premium {
  border-color: #efffc9;
  background: var(--map-acid);
  box-shadow:
    0 0 0 5px rgba(189, 243, 63, .11),
    0 10px 30px rgba(0, 0, 0, .4);
}

body:not(.public-mode) .cluster-marker.mixed {
  border-color: #f4f7ec;
  background: conic-gradient(var(--map-acid) 0 42%, #ff6846 42% 100%);
  box-shadow:
    0 0 0 5px rgba(189, 243, 63, .08),
    0 10px 30px rgba(0, 0, 0, .42);
}

@media (max-width: 980px) {
  body:not(.public-mode) .control-panel {
    background:
      linear-gradient(155deg, rgba(189, 243, 63, .04), transparent 34%),
      rgba(10, 14, 11, .97);
  }

  body:not(.public-mode) .control-panel::after {
    background: rgba(222, 231, 217, .32);
  }

  body:not(.public-mode) .filter-button.mobile-only {
    border-color: rgba(189, 243, 63, .28);
    background: #11160f;
    color: var(--map-acid);
  }

  body:not(.public-mode) .category-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.public-mode) .panel-head .icon-button {
    border-color: var(--night-line);
    background: rgba(255, 255, 255, .055);
    color: var(--night-text);
    box-shadow: none;
  }
}

@media (max-width: 340px) {
  body:not(.public-mode) .category-menu {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body:not(.public-mode) .stats {
    background: rgba(10, 14, 11, .97);
  }
}
