:root {
  --bg: #0b0e26;
  --bg2: #141a3d;
  --bg3: #1d2550;
  --line: #2b3570;
  --text: #eef0ff;
  --muted: #9aa3d6;
  --pink: #ff4fd8;
  --cyan: #00e5ff;
  --orange: #ff9f1c;
  --ok: #2ee6a6;
  --src: #3ec5ff;
  --warn: #ffb020;
  --top: 0px;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--cyan); }

/* Верхней полосы нет: логотип и кнопки висят поверх карты */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; pointer-events: none;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 10px 0;
}
.topbar > * { pointer-events: auto; }
.brand { display: block; padding: 0; border: 0; background: none; line-height: 0; }
.brand-logo { width: auto; display: block; filter: drop-shadow(0 0 8px rgba(255,79,216,.45)) drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.brand-float .brand-logo { height: 56px; }
/* Шапка панели: логотип на своём фоне, снизу неоновая линия и тень — список уходит под неё при прокрутке */
.brand-panel {
  flex: none; align-self: stretch; display: flex; justify-content: center; position: relative; z-index: 2;
  margin: 0; padding: 12px 0 12px; border-radius: var(--radius) var(--radius) 0 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,79,216,.16), transparent 70%), var(--bg);
  box-shadow: 0 10px 16px -10px rgba(0,0,0,.85);
}
.brand-panel::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), transparent); opacity: .8;
}
.brand-panel .brand-logo { height: 84px; }
.dlg-logo { display: block; width: min(260px, 70%); height: auto; margin: 0 auto 8px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
/* выбор языка: одна кнопка «🌐 RU» и выпадающий список */
.lang-pick { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11,14,38,.85);
  box-shadow: 0 2px 8px rgba(0,0,0,.4); padding: 6px 11px; font-size: 13px; color: var(--text); }
.lang-btn b { font-weight: 800; color: var(--pink); }
.lang { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; display: flex; flex-direction: column; min-width: 160px; padding: 5px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(11,14,38,.97); box-shadow: 0 8px 24px rgba(0,0,0,.55); }
.lang[hidden] { display: none; }
.lang button { background: none; border: 0; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text); text-align: left; }
.lang button:hover { background: rgba(255,255,255,.06); }
.lang button.on { background: var(--pink); color: #1a0016; }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); font-weight: 800; }

#map { position: fixed; top: var(--top); left: 0; right: 0; bottom: 0; background: #2f90b0; }
.leaflet-container { background: #2f90b0; font: inherit; }
.leaflet-control-attribution { background: rgba(11,14,38,.55) !important; color: var(--muted) !important; font-size: 9px; line-height: 1.4; border-radius: 6px 0 0 0; padding: 0 6px !important; }
.leaflet-control-attribution a { color: var(--cyan) !important; }
.leaflet-bar a { background: var(--bg2) !important; color: var(--text) !important; border-color: var(--line) !important; }

/* Панель: слева на компьютере, снизу на телефоне */
.panel {
  position: fixed; z-index: 1001; background: var(--bg); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
}
.panel-view { overflow-y: auto; padding: 12px; flex: 1; -webkit-overflow-scrolling: touch; }

/* Полосы прокрутки в стиле сайта (вместо системных серых) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink), #7b5cff); border-radius: 8px;
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff7be3, #9a80ff); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-button, ::-webkit-scrollbar-corner { display: none; background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--pink) transparent; } /* Firefox */
}
.panel-top, .tabbar { display: none; }

/* Компьютер: панель во всю высоту у левого края (столбик групп + список), карта — справа от неё */
@media (min-width: 760px) {
  :root { --pw: 416px; }
  .panel { top: 0; left: 0; bottom: 0; width: var(--pw); border-radius: 0; border-width: 0 1px 0 0; }
  #map { left: var(--pw); }
  .brand-float { display: none; }
  .topbar { justify-content: flex-end; left: var(--pw); }
  .map-hud { left: calc(var(--pw) + 14px); right: 14px; bottom: 24px; }
}
@media (min-width: 760px) and (max-width: 1100px) { :root { --pw: 372px; } }
/* Телефон: карта на весь экран, внизу панель вкладок; фильтры/поиск/подробности — панель на весь экран */
@media (max-width: 759px) {
  :root { --tabh: calc(54px + env(safe-area-inset-bottom)); }
  .panel {
    left: 0; right: 0; top: 0; bottom: var(--tabh); border: 0; border-radius: 0;
    transform: translateY(calc(100% + var(--tabh))); transition: transform .22s ease; visibility: hidden;
  }
  .panel.open { transform: none; visibility: visible; }
  .panel-top {
    display: flex; align-items: center; gap: 10px; flex: none; position: relative;
    padding: calc(10px + env(safe-area-inset-top)) 10px 10px 16px; border-bottom: 1px solid var(--line);
  }
  .panel-top::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--pink), var(--cyan), transparent); opacity: .8; }
  .panel-title { flex: 1; font-size: 18px; font-weight: 800; }
  .panel-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); font-size: 24px; line-height: 1; }
  .panel .back { display: none; }
  .brand-panel { display: none; }
  .top-actions .account-btn, .top-actions #infoBtn { display: none !important; }
  .maplibregl-ctrl-bottom-right { bottom: var(--tabh); }
  .maplibregl-ctrl-top-left { top: 66px; } /* кнопки зума под логотипом */
  .suggest-btn { display: none; }

  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: var(--tabh); z-index: 1003;
    background: rgba(11,14,38,.97); border-top: 1px solid var(--line); padding: 0 4px env(safe-area-inset-bottom);
    box-shadow: 0 -6px 18px rgba(0,0,0,.45);
  }
  .tabbar button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: none; border: 0; color: var(--muted); font-size: 11px; font-weight: 600; padding: 4px 0; min-width: 0;
  }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .tabbar button.on { color: var(--pink); }
  .tab-ava { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex: none; }
  .tab-ava svg { width: 20px; height: 20px; }
  .tab-ava .avatar { width: 22px; height: 22px; } .tab-ava .avatar b { font-size: 11px; }
  /* вход и «предложить точку» — второстепенное, скромные строки вверху «Ещё» */
  .mm-acc { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .mm-link { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 7px 2px; font-size: 14px;
    color: var(--text); text-align: left; }
  .mm-link svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
  .mm-link .tab-ava svg { stroke: var(--muted); }

  .more-menu {
    position: fixed; right: 8px; bottom: calc(var(--tabh) + 8px); z-index: 1004; width: min(300px, calc(100% - 16px));
    background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.6);
    display: flex; flex-direction: column; gap: 12px;
  }
  .mm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--text); }
  .mm-row b { margin-left: auto; color: var(--cyan); font-size: 13px; }
  .mm-row input[type=range] { width: 100%; accent-color: var(--pink); }
  .mm-row.toggle { margin-left: 0; color: var(--text); }
  .mm-btn { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-weight: 600; text-align: left; }

}

/* Компактная карточка точки над значком (телефон) */
.maplibregl-popup.lm-card { z-index: 5; }
.lm-card .maplibregl-popup-content { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 12px 10px; box-shadow: 0 10px 28px rgba(0,0,0,.6), 0 0 0 1px rgba(255,79,216,.12); }
.lm-card .maplibregl-popup-tip { border-top-color: var(--line) !important; }
.lm-card .maplibregl-popup-content { width: min(360px, calc(100vw - 24px)); }
/* Фото в карточке на карте */
.mc-photo { display: block; position: relative; width: calc(100% + 24px); margin: -12px -12px 10px; padding: 0; border: 0; background: var(--bg2);
  border-radius: 14px 14px 0 0; overflow: hidden; cursor: zoom-in; }
.mc-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mc-photo span { position: absolute; right: 8px; bottom: 8px; background: rgba(11,14,38,.85); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.mc-credit { position: absolute; left: 8px; bottom: 7px; font-style: normal; font-size: 11px; font-weight: 600; color: #e8eaff;
  background: rgba(11,14,38,.72); border-radius: 6px; padding: 1px 6px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-addphoto { display: block; margin: 8px auto 0; background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 600; padding: 2px 6px; }
.mc-addphoto:hover { color: var(--pink); }
/* характеристики машин и оружия: пилюли и неоновые полоски 0–10 */
.stats-box { margin: 8px 0 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(20,26,61,.7); }
.stats-box.mini { padding: 7px 9px; margin: 2px 0 8px; }
.st-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.stats-box.mini .st-pills { margin-bottom: 4px; }
.st-pill { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--bg3); border: 1px solid var(--line); color: #d9dcff; white-space: nowrap; }
.st-pill b { color: #fff; }
.st-pill.road { border-color: rgba(255,79,216,.55); background: rgba(255,79,216,.12); }
.st-pill.off { border-color: rgba(255,159,28,.55); background: rgba(255,159,28,.12); }
.st-facts { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.sb { display: grid; grid-template-columns: minmax(90px, 40%) 1fr 30px; align-items: center; gap: 8px; font-size: 12px; margin: 3px 0; }
.sb span { color: #c9cdf0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb i { position: relative; height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.sb i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), #ff9f6b); box-shadow: 0 0 8px rgba(255,79,216,.6); }
.sb b { text-align: right; font-variant-numeric: tabular-nums; }
.st-note { font-size: 11px; color: var(--muted); margin-top: 6px; }
.st-src { display: inline-block; margin-top: 6px; font-size: 11px; color: var(--muted); }
/* Кнопки путеводителя вверху карты (компьютер) */
.top-nav { display: flex; gap: 6px; }
.tn-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(11,14,38,.88); color: var(--text); text-decoration: none; font-weight: 700; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.4);
  backdrop-filter: blur(8px); white-space: nowrap; }
.tn-btn:hover { border-color: var(--pink); }
.tn-btn.pri { background: linear-gradient(135deg, var(--pink), #ff7eb6); border-color: var(--pink); color: #1a0016; box-shadow: 0 0 16px rgba(255,79,216,.5); }
@media (min-width: 760px) and (max-width: 1180px) { .top-nav .tn-btn:not(.pri) { display: none; } }
@media (max-width: 759px) {
  .top-nav .tn-btn:not(.pri) { display: none; }
  .top-nav .tn-btn.pri { height: 32px; padding: 0 11px; font-size: 12.5px; }
  .topbar { align-items: center; }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--pink);
    font-size: 11px; font-weight: 700; text-decoration: none; padding: 4px 0; min-width: 0; }
  .tabbar a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(255,79,216,.6)); }
}
/* ссылка на путеводитель в панели фильтров */
.guide-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid rgba(0,229,255,.35); background: rgba(0,229,255,.08); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; }
.guide-link b { color: var(--cyan); }
.guide-link:hover { border-color: var(--cyan); }
a.mm-btn { color: var(--text); text-decoration: none; display: block; }
/* Общие кадры: модель машины и «как выглядит в игре» */
.ref-photo { display: block; position: relative; width: 100%; padding: 0; margin: 4px 0 10px; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: var(--bg2); cursor: zoom-in; }
.ref-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ref-photo.ref-cat { width: 62%; }
/* Фото в полной карточке */
.card-photos { margin: 4px 0 10px; }
.ph-head { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 6px; }
.ph-head small { color: var(--muted); }
.ph-add { margin-left: auto; background: rgba(255,79,216,.1); border: 1px dashed var(--pink); color: var(--pink); border-radius: 8px; padding: 4px 9px; font-size: 12px; font-weight: 700; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.ph-thumb { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--bg2); cursor: zoom-in; }
.ph-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ph-thumb.pending img { opacity: .6; }
.ph-thumb .c-tag { position: absolute; left: 4px; bottom: 4px; background: var(--bg); }
.ph-del { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(11,14,38,.85); color: #fff; font-size: 15px; line-height: 22px; text-align: center; }
.ph-rights { margin: 6px 0 0; font-size: 11px; line-height: 1.35; }
/* Просмотр фото на весь экран */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(3,5,18,.94); display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 94vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lightbox img { max-width: 94vw; max-height: calc(90vh - 30px); border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.lightbox figcaption { color: var(--muted); font-size: 13px; text-align: center; }
.lb-x, .lb-prev, .lb-next { position: absolute; border: 1px solid var(--line); background: rgba(11,14,38,.8); color: #fff; border-radius: 50%; width: 44px; height: 44px; font-size: 26px; line-height: 1; }
.lb-x { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
/* «Подробнее» на компьютере: полная карточка и комментарии прямо в окне на карте, с прокруткой */
.mc-head-full { justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mc-back { background: none; border: 0; color: var(--cyan); font-size: 13px; font-weight: 700; padding: 2px 0; }
.mc-scroll { max-height: min(58vh, 560px); overflow-y: auto; margin: 0 -12px -10px; padding: 0 12px 10px; overscroll-behavior: contain; }
.mc-scroll .card h2 { font-size: 18px; }
.mc-scroll .card .actions { margin: 10px 0; }
.mc-scroll .card .actions button, .mc-scroll .card .actions a { padding: 8px 10px; font-size: 13px; }
.mc-head { display: flex; align-items: flex-start; gap: 8px; }
.mc-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 800; line-height: 1.25; margin: 0; }
.mc-x { flex: none; width: 30px; height: 30px; margin: -4px -4px 0 0; border-radius: 50%; border: 0; background: var(--bg2); font-size: 20px; line-height: 1; color: var(--muted); }
.mc-cat { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 4px 0 6px; flex-wrap: wrap; }
.mc-cat .st { font-weight: 700; }
.mc-cat .st.verified { color: var(--ok); } .mc-cat .st.source { color: var(--src); } .mc-cat .st.unverified { color: var(--warn); } .mc-cat .st.user { color: #c9a8ff; }
.mc-desc { font-size: 13.5px; line-height: 1.45; margin: 0 0 10px; color: #dfe2ff;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mc-actions { display: flex; gap: 6px; }
.mc-actions button { flex: 1; min-width: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); padding: 9px 6px;
  font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-actions .mc-found { background: var(--pink); border-color: var(--pink); color: #1a0016; flex: 1.3; }
.mc-actions .mc-found.done { background: var(--ok); border-color: var(--ok); color: #002417; }
.mc-actions .mc-share { flex: 0 0 42px; font-size: 16px; }

.search { position: relative; }
.search input {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--text); font-size: 16px; outline: none;
}
.search input:focus { border-color: var(--cyan); }
.results { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); max-height: 45vh; overflow-y: auto; }
.results li { padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; align-items: center; gap: 10px; }
.results .rtext { min-width: 0; }
.results li:last-child { border-bottom: 0; }
.results li:hover { background: var(--bg3); }
.results small { color: var(--muted); display: block; }

.filter-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 4px; }
.filter-tools button { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; }
.toggle { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-left: auto; }
.stats { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }

.group { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--bg2); }
.group-head { display: flex; align-items: center; gap: 8px; padding: 9px 10px; }
.group-head .swatch { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; }
.group-head .name { flex: 1; font-weight: 700; font-size: 14px; }
.group-head .count { font-size: 12px; color: var(--muted); }
.group-head .chev { background: none; border: 0; color: var(--muted); padding: 2px 6px; font-size: 16px; transition: transform .2s; }
.group.open .chev { transform: rotate(90deg); }
.cats { display: none; padding: 0 10px 8px 30px; }
.group.open .cats { display: block; }
.cat { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.cat.empty { opacity: .4; }
.cat .count { margin-left: auto; color: var(--muted); font-size: 12px; }
input[type=checkbox] { accent-color: var(--pink); width: 16px; height: 16px; }

/* Значки точек (GTA 6 sticker-стиль, оригинальный SVG + Material Symbols Apache 2.0) */
.mk-wrap { background: none; border: 0; }
.mk {
  width: 28px; height: 28px; background: none; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  filter: drop-shadow(0 1.5px 2.5px rgba(0,0,0,.55));
  transition: transform .15s, filter .15s;
}
.mk svg { width: 28px; height: 28px; display: block; }
.mk.unv { outline: 2px dashed #ffb020; outline-offset: 1px; }
.mk.found { opacity: .35; }
#map[data-z="mid"] .mk { transform: scale(.86); }
#map[data-z="far"] .mk { transform: scale(.7); }
.mk.sel, #map[data-z] .mk.sel { transform: scale(1.32); filter: drop-shadow(0 0 6px #fff) drop-shadow(0 2px 4px rgba(0,0,0,.7)); }
.cico {
  width: 24px; height: 24px; background: none; border: 0;
  display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box;
}
.cico svg { width: 24px; height: 24px; display: block; }
.cico.gico { width: 28px; height: 28px; }
.cico.gico svg { width: 28px; height: 28px; }
.cico.sm { width: 20px; height: 20px; margin-right: 2px; }
.cico.sm svg { width: 20px; height: 20px; }

.extra { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; margin-top: 4px; }
.extra-toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.extra-toggle .count { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.extra p { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 10px; background: var(--bg3); border: 1px solid var(--line); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked + i { background: rgba(0,245,212,.25); border-color: var(--cyan); }
.switch input:checked + i::after { transform: translateX(16px); background: var(--cyan); }

.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend > span { display: flex; align-items: center; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.st-verified { background: var(--ok); }
.st-source { background: var(--src); }
.st-unverified { border: 2px dashed var(--warn); }

.back { background: none; border: 0; color: var(--cyan); padding: 0 0 10px; font-size: 14px; }
.card h2 { margin: 0 0 4px; font-size: 20px; }
.card .meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; margin: 0 6px 8px 0; }
.badge.verified { background: rgba(46,230,166,.15); color: var(--ok); }
.badge.source { background: rgba(62,197,255,.15); color: var(--src); }
.badge.unverified { background: rgba(255,176,32,.15); color: var(--warn); border: 1px dashed var(--warn); }
.badge.cat { background: var(--bg3); color: var(--text); }
.card p { line-height: 1.5; font-size: 14px; }
.card .note { font-size: 12px; color: var(--muted); }
.card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.card .actions button, .card .actions a {
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  font-size: 14px; text-decoration: none; color: var(--text);
}
.card .actions .primary { background: var(--pink); color: #1a0016; border-color: var(--pink); font-weight: 700; }
.card .actions .primary.done { background: var(--ok); border-color: var(--ok); color: #002417; }
.card .source { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }

dialog { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); max-width: 520px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0,0,0,.6); }
.dlg-body h2 { margin-top: 0; }
.dlg-body .small { font-size: 12px; color: var(--muted); }
.dlg-body button { background: var(--pink); border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 700; color: #1a0016; }

/* ---------- Аккаунт ---------- */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.account-btn { height: 34px; min-width: 34px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11,14,38,.85);
  padding: 0 14px; font-weight: 700; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.4); display: flex; align-items: center; }
.account-btn.in { padding: 0; border: 2px solid var(--pink); overflow: hidden; }
.account-btn.in .avatar { width: 30px; height: 30px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pink), #7b5cff); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar b { font-size: 15px; color: #fff; }
.avatar.sm { width: 28px; height: 28px; } .avatar.sm b { font-size: 13px; }
.avatar.big { width: 84px; height: 84px; } .avatar.big b { font-size: 34px; }
.primary-btn { background: var(--pink); color: #1a0016; border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 700; }
.ghost-btn { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-weight: 600; text-decoration: none; display: inline-block; font-size: 14px; }
.danger-btn { background: none; color: #ff6b81; border: 1px solid #ff6b81; border-radius: 10px; padding: 9px 14px; font-weight: 600; }
.dlg-body .ghost-btn { background: var(--bg2); color: var(--text); border: 1px solid var(--line); }
.dlg-body .danger-btn { color: #ff6b81; background: none; border: 1px solid #ff6b81; }
.login-body { text-align: center; }
.login-btns { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.login-btns button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  font-weight: 700; font-size: 15px; border: 0; }
.login-btns svg { width: 22px; height: 22px; }
.dlg-body .login-google { background: #fff; color: #1f1f1f; }
.dlg-body .login-discord { background: #5865F2; color: #fff; }
.dlg-body .login-dev { background: var(--bg3); color: var(--text); }
.profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.avatar-edit { position: relative; cursor: pointer; display: block; }
.avatar-cam { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-size: 11px; background: var(--bg3);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.profile-name { display: flex; gap: 8px; flex: 1; min-width: 0; }
.profile-name input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 16px; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; margin: 8px 0 4px; }
.profile-body h3 { font-size: 15px; margin: 14px 0 6px; }
.my-sugg { list-style: none; padding: 0; margin: 0 0 10px; max-height: 200px; overflow-y: auto; }
.my-sugg li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.my-sugg small { width: 100%; color: var(--muted); }
.ms-title { flex: 1; min-width: 0; }
.ms-st { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ms-st.pending { background: rgba(255,176,32,.15); color: var(--warn); }
.ms-st.approved { background: rgba(46,230,166,.15); color: var(--ok); }
.ms-st.rejected { background: rgba(255,107,129,.15); color: #ff6b81; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.badge.user { background: rgba(179,136,255,.15); color: #c9a8ff; border: 1px dashed #b388ff; }

/* Комментарии */
.comments { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.comments h3 { font-size: 15px; margin: 0 0 8px; } .comments h3 small { color: var(--muted); font-weight: 400; }
.c-item { display: flex; gap: 10px; padding: 8px 0; }
.c-item.pending { opacity: .7; }
.c-main { flex: 1; min-width: 0; }
.c-head { font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.c-body { font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.c-tag { font-size: 11px; color: var(--warn); border: 1px dashed var(--warn); border-radius: 999px; padding: 0 6px; }
.c-del { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 4px; }
.c-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.c-form textarea, .sv-form input, .sv-form select, .sv-form textarea {
  width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text);
  font: inherit; font-size: 15px; resize: vertical; }
.c-form button { align-self: flex-end; }

/* Предложить точку */
.suggest-btn { width: 100%; margin: 0 0 10px; padding: 10px; border-radius: 10px; border: 1px dashed var(--pink);
  background: rgba(255,79,216,.08); color: var(--pink); font-weight: 700; font-size: 14px; }
.sv-title { font-size: 18px; margin: 0 0 6px; }
.sv-hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.sv-form { display: flex; flex-direction: column; gap: 10px; }
.sv-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.sv-coords { font-size: 12px; color: var(--cyan); margin: 0; }
.suggest-mk { border-color: #fff !important; background: var(--pink) !important; color: #fff; font-weight: 900; font-size: 20px;
  width: 34px !important; height: 34px !important; box-shadow: 0 0 16px var(--pink) !important; }
#map.suggesting { cursor: crosshair; }
.suggest-banner { position: fixed; left: 50%; top: 12px; transform: translateX(-50%); z-index: 1500; background: var(--bg);
  border: 1px solid var(--pink); border-radius: 999px; padding: 8px 8px 8px 16px; display: flex; gap: 10px; align-items: center;
  font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.5); white-space: nowrap; }
.suggest-banner button { background: var(--bg3); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
@media (max-width: 759px) { .suggest-banner { top: 74px; max-width: calc(100% - 16px); white-space: normal; } }

.toast { position: fixed; left: 50%; top: calc(var(--top) + 12px); transform: translateX(-50%); z-index: 2000;
  background: var(--bg3); border: 1px solid var(--cyan); padding: 8px 14px; border-radius: 10px; font-size: 14px; }

/* ---------- MapLibre: кнопки зума, подпись источников, подсказки — в стиле сайта ---------- */
.maplibregl-map { font: inherit; background: #2f90b0; }
.maplibregl-ctrl-group { background: var(--bg2) !important; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.4) !important; border-radius: 10px !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 34px; height: 34px; background-color: transparent; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--line) !important; }
.maplibregl-ctrl-group button:hover { background-color: var(--bg3) !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(1.6); }
.maplibregl-ctrl-attrib { background: rgba(11,14,38,.55) !important; color: var(--muted); font-size: 9px; line-height: 1.4; border-radius: 6px 0 0 0; padding: 0 6px !important; margin: 0 !important; }
.maplibregl-ctrl-attrib a { color: var(--cyan) !important; }
.maplibregl-popup.lm-tip { pointer-events: none; }
.lm-tip .maplibregl-popup-content { background: #0b0e26; color: var(--text); padding: 5px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.lm-tip .maplibregl-popup-tip { border-top-color: #0b0e26 !important; border-bottom-color: #0b0e26 !important; }
.maplibregl-marker .mk { cursor: grab; }
/* описание категории в карточке точки */
.card p.cat-desc { font-size: 13px; color: #c9cdf0; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }

/* «Только это» — оставить одну категорию/группу */
.solo { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 1px 8px;
  font-size: 11px; font-weight: 700; line-height: 1.5; opacity: 0; transition: opacity .15s; flex: none; }
.group-head:hover .solo, .cat:hover .solo, .solo:focus-visible, .solo.on { opacity: 1; }
.solo:hover { border-color: var(--pink); color: var(--pink); }
.solo.on { background: var(--pink); border-color: var(--pink); color: #1a0016; }
.cat .solo { margin-left: 6px; }
@media (hover: none) { .solo { opacity: .75; } }

/* ==================== LeonidaMap 2.0 (дизайн Gemini, адаптирован) ==================== */
.panel-shell { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.panel-body { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.brand-panel { padding: 10px 0; border-radius: 0; }
.brand-panel .brand-logo { height: 70px; }

/* Столбик групп слева: прыжок к группе, ПКМ — «только эта группа» */
.icon-rail {
  width: 50px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 5px; background: rgba(7,10,28,.96); border-right: 1px solid var(--line);
  overflow-y: auto; scrollbar-width: none;
}
.icon-rail::-webkit-scrollbar { display: none; }
.rail-btn {
  width: 38px; height: 38px; flex: none; border-radius: 11px; padding: 0;
  border: 1px solid transparent; background: rgba(20,26,61,.55);
  display: flex; align-items: center; justify-content: center; position: relative;
  transition: transform .14s, background .14s, border-color .14s;
}
.rail-btn:hover { background: var(--bg3); border-color: rgba(255,79,216,.5); transform: scale(1.06); }
.rail-btn.active { background: rgba(255,79,216,.2); border-color: var(--pink); box-shadow: 0 0 12px rgba(255,79,216,.28); }
.rail-btn.active::before { content: ""; position: absolute; left: -6px; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.rail-btn.solo-on { border-color: var(--cyan); box-shadow: 0 0 10px rgba(0,229,255,.45); }
.rail-btn.dim { opacity: .45; }
.rail-btn svg { width: 24px; height: 24px; display: block; }

/* «Скрыть найденное» и «Избранное» */
.quick-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.qpill {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 10px;
  font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); transition: all .15s;
}
.qpill:hover { border-color: var(--pink); color: var(--text); }
.qpill b { font-size: 11px; padding: 1px 6px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--text); }
.qpill.on-found { background: rgba(46,230,166,.16); border-color: var(--ok); color: var(--ok); }
.qpill.on-fav { background: rgba(255,79,216,.18); border-color: var(--pink); color: #ff8ee6; }

/* Группы и категории-плитки в две колонки */
.group { border: 1px solid rgba(60,74,150,.42); border-radius: 12px; margin-bottom: 10px; background: rgba(16,21,52,.78); overflow: hidden; scroll-margin-top: 8px; }
.group-head { padding: 8px 10px; gap: 7px; cursor: pointer; user-select: none; }
.group-head .name { font-size: 13px; font-weight: 800; letter-spacing: .01em; }
.grp-all-btn { border: 1px solid var(--line); background: var(--bg3); color: var(--muted); border-radius: 8px; padding: 3px 8px; font-size: 11px; font-weight: 700; transition: all .14s; flex: none; }
.grp-all-btn:hover { border-color: var(--pink); color: var(--text); }
.grp-all-btn.is-all { background: rgba(255,79,216,.22); border-color: rgba(255,79,216,.65); color: #ff9be9; }
.group .cats { display: none; padding: 0 8px 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.group.open .cats { display: grid; }
.cat-chip {
  display: flex; align-items: center; gap: 6px; padding: 6px 7px; border-radius: 10px; min-width: 0;
  border: 1px solid rgba(72,88,168,.32); background: rgba(11,14,38,.72); text-align: left; transition: all .13s ease; user-select: none;
}
.cat-chip:hover { border-color: rgba(255,79,216,.55); background: rgba(29,37,80,.9); }
.cat-chip.on { background: linear-gradient(135deg, rgba(255,79,216,.16), rgba(26,34,78,.95)); border-color: rgba(255,102,221,.7); }
.cat-chip.off { opacity: .44; }
.cat-chip.off:hover { opacity: .88; }
.cat-chip.solo-on { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
.cat-chip.empty { opacity: .28; }
.cat-chip .cico { width: 20px; height: 20px; } .cat-chip .cico svg { width: 20px; height: 20px; }
/* название в две строки, чтобы не обрезалось («Налёты на ко…») */
.cat-chip .cname { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.cat-chip .count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }

/* Прогресс «найдено / всего» на плитках и в группах */
.cat-chip { position: relative; overflow: hidden; }
.cat-chip .cprog { position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; background: rgba(255,255,255,.05); pointer-events: none; }
.cat-chip .cprog::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--c, var(--cyan)); box-shadow: 0 0 6px var(--c, var(--cyan)); transition: width .22s ease; }
.cat-chip.has-prog .count, .group-head .count.has-prog { color: var(--cyan); font-weight: 700; }
.cat-chip.is-complete .count, .group-head .count.is-complete { color: var(--ok); }
.cat-chip.is-complete .cprog::after { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.global-prog { margin: 0 0 10px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); }
.gp-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 5px; gap: 8px; }
.gp-val { color: var(--cyan); font-weight: 700; font-variant-numeric: tabular-nums; }
.gp-track { height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.gp-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--cyan)); box-shadow: 0 0 10px rgba(0,229,255,.5); transition: width .25s ease; }
/* Избранное в карточке */
.card .actions .fav-btn.is-fav, .mc-actions .mc-fav.is-fav { background: rgba(255,79,216,.2); border-color: var(--pink); color: #ff8ae6; font-weight: 700; }
.mc-actions .mc-fav { flex: 0 0 42px; font-size: 16px; }
.card .xy { font-family: ui-monospace, monospace; font-size: 12px; color: var(--cyan); }

/* Нижние «стеклянные» пилюли (компьютер) */
.map-hud { position: fixed; z-index: 950; pointer-events: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.hud-left, .hud-right { pointer-events: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; }
.hud-pill {
  display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 14px;
  background: rgba(11,14,38,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(100,120,215,.34); box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.hud-icon-btn { width: 36px; height: 36px; border-radius: 12px; font-weight: 800; font-size: 14px; background: rgba(11,14,38,.86);
  backdrop-filter: blur(12px); border: 1px solid rgba(100,120,215,.34); color: var(--text); box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.hud-icon-btn:hover { border-color: var(--pink); }
.hud-hotkeys { position: absolute; left: 0; bottom: 44px; width: 260px; padding: 12px; border-radius: 14px; background: rgba(11,14,38,.94);
  backdrop-filter: blur(14px); border: 1px solid rgba(100,120,215,.38); box-shadow: 0 12px 30px rgba(0,0,0,.55); font-size: 12px; }
.hk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hk-head button { background: none; border: 0; font-size: 16px; color: var(--muted); }
.hk-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); }
.hk-row kbd { padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; border: 1px solid rgba(255,79,216,.5); background: rgba(255,79,216,.14); color: #ff9be9; white-space: nowrap; }
.hud-ico { color: var(--pink); font-size: 15px; line-height: 1; }
.hud-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; min-width: 38px; text-align: right; }
.hud-scale input[type=range] { -webkit-appearance: none; appearance: none; width: 92px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.18); outline: none; }
.hud-scale input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--pink); box-shadow: 0 0 8px rgba(255,79,216,.75); cursor: pointer; }
.hud-xy-lbl { font-family: ui-monospace, monospace; font-size: 11px; font-weight: 800; color: var(--muted); }
.hud-coords input { width: 64px; padding: 5px 7px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: var(--text);
  font-family: ui-monospace, monospace; font-size: 12px; outline: none; -moz-appearance: textfield; }
.hud-coords input::-webkit-inner-spin-button { -webkit-appearance: none; }
.hud-coords input:focus { border-color: var(--cyan); }
.hud-go-btn { width: 30px; height: 30px; border-radius: 9px; border: 0; background: linear-gradient(135deg, var(--pink), #ff7eb6); color: #1a0016; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.hud-share-btn { width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(0,229,255,.45); background: rgba(0,229,255,.14); color: var(--cyan); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.hud-share-btn:hover { background: rgba(0,229,255,.25); }
/* подпись источников карты не должна прятаться под пилюлями */
@media (min-width: 760px) { .maplibregl-ctrl-bottom-right { bottom: 0; } }

/* Меню по правой кнопке / долгому нажатию */
.ctx-menu { position: fixed; z-index: 1600; width: 256px; padding: 6px; border-radius: 16px; background: rgba(11,14,38,.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(110,130,225,.42); box-shadow: 0 14px 36px rgba(0,0,0,.6); }
.ctx-head { padding: 6px 10px 8px; margin-bottom: 4px; border-bottom: 1px solid rgba(110,130,225,.22); font-family: ui-monospace, monospace; font-size: 11px; font-weight: 800; color: var(--cyan); }
.ctx-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--text);
  font-size: 13px; font-weight: 600; text-align: left; transition: background .12s; }
.ctx-item:hover { background: rgba(255,255,255,.09); }
.ctx-item.ctx-primary:hover { background: rgba(255,79,216,.2); }
.ctx-item.ctx-accent { color: #ff8ee6; }
.ctx-item small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }

/* Пульсирующая метка (ссылка ?pin=x,y или «Поставить метку») */
.custom-pin-wrap { width: 30px; height: 36px; cursor: pointer; }
@keyframes customPinPulse { 0% { transform: translate(-50%, 50%) scale(.5); opacity: .9; } 100% { transform: translate(-50%, 50%) scale(2.3); opacity: 0; } }
.custom-pin-ring { position: absolute; left: 50%; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--pink);
  background: rgba(255,79,216,.28); animation: customPinPulse 1.5s cubic-bezier(0,0,.2,1) infinite; pointer-events: none; }
.custom-pin-badge { position: absolute; left: 50%; bottom: 42px; transform: translateX(-50%); white-space: nowrap; padding: 4px 8px; border-radius: 8px;
  background: rgba(11,14,38,.94); border: 1px solid rgba(255,79,216,.75); color: #ffc2f2; font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,.55); pointer-events: none; }
.custom-pin-svg { position: relative; z-index: 2; width: 30px; height: 36px; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.65)); }

/* Телефон: столбик групп становится горизонтальным рядом под заголовком панели (стоит в конце, чтобы перекрыть общие правила) */
@media (max-width: 759px) {
  .panel-shell { flex-direction: column; }
  .icon-rail { width: 100%; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; overflow-x: auto; overflow-y: hidden; gap: 6px; }
  .rail-btn { width: 42px; height: 42px; }
  .rail-btn.active::before { left: 7px; right: 7px; top: auto; bottom: -5px; width: auto; height: 3px; }
  .map-hud { display: none; }
  .cat-chip { padding: 9px 8px; }
  .ctx-menu { width: min(280px, calc(100vw - 20px)); }
  .ctx-item { padding: 12px 10px; font-size: 14px; }
}
/* скрытый заголовок для поисковиков и экранных читалок (страница — карта, видимого H1 нет) */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* видимый блок «о сайте» внизу панели фильтров: название, что это, зачем вход, политика конфиденциальности */
.site-about { margin: 18px 4px 8px; padding: 14px 4px 0; border-top: 1px solid rgba(255,255,255,.08); color: #9aa3d6; font-size: 12.5px; line-height: 1.5; }
.site-about .sa-title { font-size: 14px; line-height: 1.35; margin: 0 0 6px; color: #eef0ff; font-weight: 700; }
.site-about .sa-text { margin: 0 0 8px; }
.site-about .sa-links { margin: 0; }
.site-about a { color: #00e5ff; text-decoration: none; }
.site-about a:hover { text-decoration: underline; }

/* бейдж кода сейфа/двери в окошке точки */
.mc-code { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; padding: 7px 10px; border-radius: 10px;
  background: rgba(255, 176, 32, .12); border: 1px solid rgba(255, 176, 32, .45); color: #ffd76a; font-size: 13px; }
.mc-code b { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 18px; letter-spacing: .1em; color: #fff3c4; }
.mc-code.none { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #cfd4f5; }
.mc-code-all { margin-left: auto; font-size: 12px; color: #00e5ff; text-decoration: none; }

/* наборы фильтров одной кнопкой */
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.presets button { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); border-radius: 999px;
  padding: 6px 11px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.presets button:hover { background: rgba(255,255,255,.08); }
.presets button.on { background: var(--pink); border-color: var(--pink); color: #1a0016; }
.presets .ps-off { color: var(--muted); font-weight: 500; }
@media (max-width: 767px) {
  .presets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .presets::-webkit-scrollbar { display: none; }
}

/* значки интерфейса (нарисовал Gemini, спрайт в index.html) */
.ui-ico { width: 19px; height: 19px; flex-shrink: 0; display: inline-block; vertical-align: -4px; }
.st-pill .ui-ico, .mc-photo span .ui-ico { width: 15px; height: 15px; vertical-align: -3px; }
.hud-go-btn .ui-ico, .hud-share-btn .ui-ico { width: 18px; height: 18px; vertical-align: middle; }
.mc-actions .mc-share .ui-ico { width: 20px; height: 20px; }
.ctx-item > span:first-child { display: flex; }
.mc-code .ui-ico { width: 18px; height: 18px; }

/* плашка «Показано: … · Показать всё» — первый визит и вход по ссылке на категорию/точку */
.landing { position: fixed; z-index: 30; top: 62px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 24px); padding: 6px 6px 6px 14px; border-radius: 999px; background: rgba(11,14,38,.92); border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0,0,0,.45); color: var(--text); font-size: 13px; backdrop-filter: blur(8px); white-space: nowrap; }
.landing[hidden] { display: none; }
.landing > span { overflow: hidden; text-overflow: ellipsis; }
.landing b { color: #fff; }
.landing #landingAll { border: 0; border-radius: 999px; padding: 6px 12px; background: linear-gradient(135deg, var(--pink), #ff7eb6); color: #1a0016; font-weight: 800; font-size: 12.5px; cursor: pointer; flex-shrink: 0; }
.landing .ld-x { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 6px; cursor: pointer; flex-shrink: 0; }
@media (min-width: 760px) { .landing { left: calc(50% + 208px); top: 64px; } }
@media (max-width: 759px) { .landing { top: auto; bottom: 74px; font-size: 12px; } }

/* полоска «Показано · Скрыть все · Всё» над группами — прилипает к верху меню при прокрутке */
.filter-sticky { position: sticky; top: -12px; z-index: 5; display: flex; align-items: center; gap: 6px; margin: 0 -12px 8px; padding: 8px 12px;
  background: rgba(14,17,44,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.filter-sticky .stats { flex: 1; min-width: 0; margin: 0; font-size: 11.5px; line-height: 1.3; }
.filter-sticky .fs-btn { flex-shrink: 0; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); border-radius: 999px;
  padding: 5px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.filter-sticky .fs-btn:hover { background: rgba(255,255,255,.1); }
.filter-sticky .fs-btn[data-fs="off"] { border-color: rgba(255,79,216,.5); color: #ff8ee6; }
