/* Движок карт на MapLibre (js/bp-map.js): базовые стили окон меток, подсказок и кнопок зума.
   Разметка у них та же, что у Leaflet (.leaflet-popup, .leaflet-tooltip, .leaflet-bar), поэтому оформление
   из css/map-nm.css и css/style.css игр работает без изменений. Здесь — только то, что раньше давал leaflet.css
   (Leaflet 1.9, BSD-2-Clause, © Volodymyr Agafonkin, CloudMade). */

.bp-map { overflow: hidden; -webkit-tap-highlight-color: transparent; outline: 0; font-size: 12px; font-size: .75rem; line-height: 1.5; }
.bp-map .maplibregl-canvas { outline: 0; }

/* Слои поверх WebGL-холста: подписи, служебные кружки, подсказка, окно метки, кнопки */
.bp-pane { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.bp-pane > * { position: absolute; left: 0; top: 0; }
.bp-pane-labels { z-index: 450; }
.bp-pane-shapes { z-index: 500; }
.bp-pane-tooltip { z-index: 650; }
.bp-pane-popup { z-index: 700; }
.bp-pane-popup > .leaflet-popup { top: auto; pointer-events: auto; cursor: auto; }

.bp-dom-label { width: 0; height: 0; will-change: transform; }
.bp-shape-circle { border-radius: 50%; box-sizing: border-box; pointer-events: none; }

/* Курсор: «рука» над меткой, перекрестие в режимах «Добавить метку» и «Неточное место?» */
.bp-map.bp-pin-hover .maplibregl-canvas-container { cursor: pointer; }
#map.adding .maplibregl-canvas-container,
.bp-picking .maplibregl-canvas-container { cursor: crosshair !important; }

/* ---------- Кнопки зума ---------- */
.leaflet-control { position: relative; z-index: 800; pointer-events: auto; float: left; clear: both; cursor: auto; }
.leaflet-top, .leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
.leaflet-top { top: 0; }
.leaflet-left { left: 0; }
.leaflet-top .leaflet-control { margin-top: 10px; }
.leaflet-left .leaflet-control { margin-left: 10px; }
.leaflet-bar { box-shadow: 0 1px 5px rgba(0, 0, 0, .65); border-radius: 4px; } /* sp-ok: базовый вид из leaflet.css, игры перекрашивают своим CSS */
.leaflet-bar a { background-color: #fff; border-bottom: 1px solid #ccc; width: 26px; height: 26px; line-height: 26px; display: block; text-align: center; text-decoration: none; color: #000; } /* sp-ok: базовый вид из leaflet.css, игры перекрашивают своим CSS */
.leaflet-bar a:hover, .leaflet-bar a:focus { background-color: #f4f4f4; } /* sp-ok: базовый вид из leaflet.css, игры перекрашивают своим CSS */
.leaflet-bar a:first-child { border-top-left-radius: 4px; border-top-right-radius: 4px; }
.leaflet-bar a:last-child { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-bottom: none; }
.leaflet-bar a.leaflet-disabled { cursor: default; background-color: #f4f4f4; color: #bbb; } /* sp-ok: базовый вид из leaflet.css, игры перекрашивают своим CSS */
.leaflet-touch .leaflet-bar a { width: 30px; height: 30px; line-height: 30px; }
.leaflet-touch .leaflet-bar { border: 2px solid rgba(0, 0, 0, .2); background-clip: padding-box; box-shadow: none; }
.leaflet-control-zoom-in, .leaflet-control-zoom-out { font: bold 18px 'Lucida Console', Monaco, monospace; text-indent: 1px; }
.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out { font-size: 22px; }

/* ---------- Окно метки ---------- */
.leaflet-popup { position: absolute; text-align: center; margin-bottom: 20px; }
.leaflet-popup-content-wrapper { padding: 1px; text-align: left; border-radius: 12px; }
.leaflet-popup-content { margin: 13px 24px 13px 20px; line-height: 1.3; font-size: 13px; font-size: 1.08333em; min-height: 1px; }
.leaflet-popup-content p { margin: 17px 0; margin: 1.3em 0; }
.leaflet-popup-tip-container { width: 40px; height: 20px; position: absolute; left: 50%; margin-top: -1px; margin-left: -20px; overflow: hidden; pointer-events: none; }
.leaflet-popup-tip { width: 17px; height: 17px; padding: 1px; margin: -10px auto 0; pointer-events: auto; transform: rotate(45deg); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #fff; color: #333; box-shadow: 0 3px 14px rgba(0, 0, 0, .4); } /* sp-ok: базовый вид из leaflet.css, игры перекрашивают своим CSS */
.leaflet-container a.leaflet-popup-close-button { position: absolute; top: 0; right: 0; border: none; text-align: center; width: 24px; height: 24px; font: 16px/24px Tahoma, Verdana, sans-serif; color: #757575; text-decoration: none; background: transparent; } /* sp-ok: базовый вид из leaflet.css, игры перекрашивают своим CSS */
.leaflet-container a.leaflet-popup-close-button:hover, .leaflet-container a.leaflet-popup-close-button:focus { color: #585858; } /* sp-ok: базовый вид из leaflet.css, игры перекрашивают своим CSS */
.leaflet-popup-scrolled { overflow: auto; }

/* ---------- Подсказка с названием метки ---------- */
.leaflet-tooltip { position: absolute; padding: 6px; background-color: #fff; border: 1px solid #fff; border-radius: 3px; color: #222; white-space: nowrap; user-select: none; pointer-events: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); } /* sp-ok: базовый вид из leaflet.css, игры перекрашивают своим CSS */
.leaflet-tooltip-top:before { position: absolute; pointer-events: none; border: 6px solid transparent; background: transparent; content: ""; }
.leaflet-tooltip-top { margin-top: -6px; }
.leaflet-tooltip-top:before { left: 50%; margin-left: -6px; bottom: 0; margin-bottom: -12px; border-top-color: #fff; }
