/* Минимальный сабсет стилей Leaflet 1.9.3 для карт ACG (astrocarto2D.html).
 * Полный оригинал distribution-стилей уже завендорен в проекте внутри
 * js/components/geomap.js (shadow-DOM), сюда вынесено только необходимое
 * для карты в обычном DOM: паны, тайлы, контролы зума, атрибуция, тултипы.
 * Шрифты не задаём — действует !important-стек AstroGlyphs из dark.css. */
#acgMap {
    height: 62vh;
    min-height: 380px;
    width: 100%;
    max-width: 1100px;
    margin: 4px auto;
    border: 1px solid rgba(83, 83, 83, 0.4);
    border-radius: 10px;
    overflow: hidden;
    background: #0b0e14;
}
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
    position: absolute;
    left: 0;
    top: 0;
}
.leaflet-container {
    overflow: hidden;
    outline-offset: 1px;
}
.leaflet-container .leaflet-overlay-pane svg {
    max-width: none !important;
    max-height: none !important;
}
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-tile {
    max-width: none !important;
    max-height: none !important;
    width: auto;
    padding: 0;
}
.leaflet-tile {
    filter: inherit;
    visibility: hidden;
}
.leaflet-tile-loaded {
    visibility: inherit;
}
.leaflet-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }
.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg { z-index: 200; }
.leaflet-top,
.leaflet-bottom {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}
.leaflet-top { top: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }
.leaflet-right { right: 0; }
.leaflet-control {
    position: relative;
    z-index: 800;
    pointer-events: auto;
    float: left;
    clear: both;
}
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 10px; }
.leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.leaflet-left .leaflet-control { margin-left: 10px; }
.leaflet-right .leaflet-control { margin-right: 10px; }
.leaflet-bar {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    border-radius: 4px;
}
.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: black;
}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
    background-color: #f4f4f4;
}
.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-control-zoom-in,
.leaflet-control-zoom-out {
    font: bold 18px 'Lucida Console', Monaco, monospace;
    text-indent: 1px;
}
.leaflet-container .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8);
    margin: 0;
    padding: 0 5px;
    color: #333;
    line-height: 1.4;
}
.leaflet-control-attribution a {
    text-decoration: none;
    color: #0078A8;
}
.leaflet-interactive {
    cursor: pointer;
}
.leaflet-grab {
    cursor: grab;
}
.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, 0.4);
}
html[data-theme="dark"] .leaflet-tooltip {
    background-color: #1e1e26;
    border-color: #1e1e26;
    color: #e8e6f0;
}
.leaflet-div-icon {
    background: #fff;
    border: 1px solid #666;
}
.acg-legend {
    width: 100%;
    max-width: 1100px;
    margin: 2px auto;
    font-size: 12px;
    opacity: 0.9;
    text-align: left;
    line-height: 1.7;
    overflow-wrap: break-word;
}
.acg-legend .acg-sw {
    display: inline-block;
    width: 22px;
    height: 0;
    border-top: 3px solid;
    vertical-align: middle;
    margin: 0 4px 0 10px;
}
.acg-legend .acg-sw.tr {
    border-top-style: dashed;
}
