.popup-image{display:block;width:100%;max-height:175px;object-fit:cover;border-radius:8px;margin:4px 0 16px;border:1px solid #414952}
.popup-image[hidden]{display:none}
.map-shell,.map-viewport,body:not(.ready) .map-viewport{background:#2f90b0}
.marker{width:40px;height:40px;background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;filter:none}
.marker img{max-width:30px;max-height:30px}
.marker:hover,.marker.selected{background:transparent;filter:none;z-index:15}
.marker.found{background:transparent;border:0;filter:none;opacity:.45}
.marker.found:hover,.marker.found.selected{opacity:1}
.marker.fallback{background:transparent;color:#ffdb9d;text-shadow:0 2px 3px #153847}
.marker{scale:1}
.marker:hover,.marker.selected{scale:1}
.tile{background-repeat:no-repeat;backface-visibility:visible}
.marker{transition:none!important;transform-origin:center;overflow:visible}
.marker:hover,.marker.selected{transition:none!important;scale:1!important}
.marker img{pointer-events:none;transform:scale(1);transition:transform 110ms ease-out,filter 110ms ease-out}
.marker:hover img,.marker.selected img{transform:scale(1.19);filter:drop-shadow(0 0 5px #ffe19e)}
.city-label-marker,.city-label-marker:hover,.city-label-marker.selected{width:max-content;height:auto;min-height:26px;padding:2px 5px;scale:1!important;background:transparent;border:0;box-shadow:none;filter:none}
.city-name{display:block;color:#fff1d1;font-size:14px;line-height:1.2;font-weight:800;white-space:nowrap;text-shadow:0 2px 3px #09232e,0 0 7px #08242c}
.city-label-marker:hover .city-name,.city-label-marker.selected .city-name{color:#ffe09c;text-shadow:0 0 6px #182a2d,0 2px 3px #061721}
.popup{left:0;right:auto;top:0;bottom:auto;width:min(390px,calc(100% - 24px));max-height:calc(100dvh - 108px);overflow:visible;padding:22px}
.popup h2{font-size:31px}
.popup p{font-size:14px;line-height:1.65;max-height:220px;overflow-y:auto}
.popup-kicker{font-size:11px}
.popup-actions button{font-size:12px}
.popup::after{content:'';position:absolute;bottom:-9px;left:calc(var(--pointer-x,50%) - 9px);border-left:9px solid transparent;border-right:9px solid transparent;border-top:9px solid #333c43}
.popup.below::after{bottom:auto;top:-9px;border-top:0;border-bottom:9px solid #333c43}
/* Оболочка карты и сворачиваемая панель категорий */
.brand{gap:11px;margin-bottom:24px}
.brand-icon{width:43px;height:43px;flex:0 0 43px;border-radius:11px}
.brand-copy{min-width:0;flex:1}
.brand-copy strong{display:block;color:#f2d09c;font-size:21px;letter-spacing:-.5px;line-height:1.1}
.brand-copy small{display:block;font-size:9px;letter-spacing:1.15px;color:#89949e;margin-top:5px}
.sidebar-collapse{display:grid;place-items:center;flex:0 0 32px;width:32px;height:34px;background:#252d35;border:1px solid #434b53;border-radius:7px;color:#f0c988;cursor:pointer;font-size:17px;transition:background .15s}
.sidebar-collapse:hover{background:#39434c}
.map-topbar{justify-content:flex-start}
.map-footer{height:50px;justify-content:center;padding:0 15px;background:#151a20eF}
.map-materials{display:inline-flex;align-items:center;gap:9px;text-decoration:none;color:#edc890;font-size:13px;font-weight:800;letter-spacing:.6px;text-transform:none;padding:9px 20px;border:1px solid #b68e5566;border-radius:6px;background:#272a2d;transition:background .15s,color .15s}
.map-materials:hover{background:#38332d;color:#fff0ce}
.map-materials span{font-size:16px}
@media(min-width:761px){
  .sidebar{transition:width .19s ease,border-color .19s ease,box-shadow .19s ease;overflow:hidden}
  .sidebar-top,.category-list,.sidebar-bottom{flex-shrink:0;width:350px;box-sizing:border-box}
  body.sidebar-hidden .sidebar{width:0;border-right-color:transparent;box-shadow:none}
  body.sidebar-hidden .menu-toggle{display:block;pointer-events:auto;background:#192228e8;color:#eac78e;border:1px solid #736b5c;border-radius:7px;padding:9px 13px;font-size:18px;cursor:pointer}
}
@media(max-width:760px){
  .sidebar-collapse{display:none}
  .brand{padding-right:26px}
  .brand-copy strong{font-size:19px}
  .map-footer{height:49px}
  .map-materials{font-size:12px}
}
/* Карта — первый экран единой прокручиваемой страницы. */
html{scroll-behavior:smooth;scroll-padding-top:0}
body{overflow-x:hidden;overflow-y:auto}
#app{height:100dvh;min-height:430px}
.map-footer{height:57px;padding:0;background:linear-gradient(0deg,#121b23 0%,#1d2930f2 100%);border-top:1px solid #77878d55}
.map-materials{height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;padding:4px 12px;background:transparent;border:0;border-radius:0;color:#f0d3a8;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:2.2px}
.map-materials:hover{background:#ffffff0b;color:#ffe3b7}
.down-arrows{display:block;font-family:Arial,sans-serif;font-weight:400;font-size:20px;line-height:.56;margin-top:5px;letter-spacing:0;transform:translateY(-2px);animation:down-pulse 1.7s ease-in-out infinite}
@keyframes down-pulse{0%,100%{transform:translateY(-3px);opacity:.65}50%{transform:translateY(2px);opacity:1}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.down-arrows{animation:none}}
/* Минимальная прозрачная полоса перехода к Wiki */
.map-footer{height:37px;background:#10192085;border-top:1px solid #aebdc32a;backdrop-filter:blur(5px)}
.map-materials{height:100%;flex-direction:row;gap:12px;padding:0 15px;font-size:11px;letter-spacing:1.35px;font-weight:700;color:#eee8dced}
.footer-arrow{font-size:17px;line-height:1;color:#ead0a8;letter-spacing:0;font-weight:400}
.map-materials:hover{background:#10192044;color:#fff}
/* Чистый верх карты, лёгкая нижняя панель, компактная подсказка */
.map-topbar{background:none}
.map-footer{background:rgba(16,25,32,.18);border-top:1px solid #ffffff16;backdrop-filter:none}
.map-materials,.map-materials:hover{color:rgba(255,255,255,.5)}
.map-materials:hover{background:rgba(255,255,255,.035)}
.map-materials span:first-child{font-size:11px}
.map-materials .footer-arrow{font-size:17px;color:rgba(255,255,255,.5)}
.sidebar-bottom{padding:9px 18px 9px}
.sidebar-bottom .help{margin-bottom:0;line-height:1.45}
