.npm-widget{position:relative;width:100%;font-family:inherit;color:#273f32}.npm-widget *{box-sizing:border-box}.npm-toolbar{position:absolute;inset:0 0 auto 0;z-index:15;pointer-events:none;min-height:0}.npm-filters{position:absolute;left:50%;top:14px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:5px;max-width:calc(100% - 158px);overflow-x:auto;scrollbar-width:thin;padding:7px;background:rgba(255,255,255,.94);border:1px solid rgba(75,94,70,.15);border-radius:13px;box-shadow:0 4px 18px #283f3330;pointer-events:auto;white-space:nowrap}.npm-controls{position:absolute;top:14px;right:14px;display:flex;gap:5px;padding:6px;background:rgba(255,255,255,.94);border-radius:12px;box-shadow:0 4px 18px #283f3330;pointer-events:auto}.npm-toolbar button{border:1px solid #c9d1c8;background:#fff;color:#35503f;border-radius:8px;padding:8px 12px;cursor:pointer;font:inherit;font-size:14px;flex:0 0 auto}.npm-toolbar button.is-active{background:#315b42;color:#fff;border-color:#315b42}.npm-toolbar button:focus-visible{outline:3px solid #dba836;outline-offset:2px}
.npm-viewport{height:var(--npm-height,680px);min-height:320px;overflow:hidden;position:relative;background:#e9dfbe;border-radius:12px;touch-action:none;cursor:grab;border:1px solid #c8c7b6;overscroll-behavior:contain}.npm-viewport:active{cursor:grabbing}.npm-plane{position:absolute;transform-origin:0 0;left:0;top:0;will-change:transform}.npm-base{width:100%;height:auto;display:block;user-select:none;pointer-events:none}.npm-markers{position:absolute;inset:0}.npm-hotspot,.npm-edit-marker{position:absolute;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;color:#fff!important;font-size:11px;font-weight:700;font-family:Arial,sans-serif;line-height:1;min-width:27px;min-height:27px;width:auto;height:27px;padding:0 5px;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 5px #0006;text-shadow:0 1px 1px #0004;touch-action:none}.npm-category-house{background:#b65c30}.npm-category-bath{background:#277d9e}.npm-category-infrastructure{background:#417451}.npm-category-other{background:#8462a2}.npm-hotspot:hover,.npm-hotspot:focus-visible{outline:3px solid #f6c954;z-index:4;filter:brightness(1.13)}.npm-hotspot[hidden]{display:none}.npm-popover{position:absolute;z-index:10;right:14px;bottom:14px;width:min(345px,calc(100% - 28px));background:#fff;border-radius:14px;box-shadow:0 12px 40px #1116;overflow:hidden}.npm-popover[hidden]{display:none}.npm-close{position:absolute;top:5px;right:8px;border:0;background:#fff;border-radius:50%;width:34px;height:34px;font-size:24px;cursor:pointer;z-index:1}.npm-popup-image{display:block;width:100%;height:150px;object-fit:cover}.npm-popup-image[hidden]{display:none}.npm-popup-body{padding:16px}.npm-popup-type{font-size:12px;text-transform:uppercase;color:#69816e}.npm-popup-title{margin:5px 0 10px;font-size:20px;color:#263e2c}.npm-popup-desc{margin:0 0 12px;font-size:14px}.npm-popup-desc:empty{display:none}.npm-popup-link{display:inline-block;padding:9px 15px;background:#315d42;color:#fff!important;text-decoration:none;border-radius:8px}.npm-admin .npm-admin-layout{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:18px;margin-top:12px}.npm-editor-top{margin:10px 0}.npm-editor-top button{margin-right:6px}.npm-admin-map{position:relative;background:#ddd;border:1px solid #aaa;cursor:crosshair;max-width:100%;line-height:0;touch-action:none}.npm-admin-map>img{width:100%;height:auto;display:block;user-select:none;pointer-events:none}.npm-admin-map #npm-editor-markers{position:absolute;inset:0}.npm-edit-marker{min-width:24px;height:24px;min-height:24px;font-size:10px;cursor:grab}.npm-edit-marker.selected{outline:3px solid #e5b944;z-index:2}.npm-editor-sidebar{background:#fff;border:1px solid #ccd0d4;padding:15px;align-self:start}.npm-editor-sidebar>label{font-weight:600}.npm-editor-sidebar select#npm-marker-list{width:100%;margin:8px 0 14px;min-height:240px}.npm-fields>label{display:block;font-weight:600;margin-bottom:10px}.npm-fields input,.npm-fields textarea,.npm-fields select{display:block;width:100%;max-width:100%;margin-top:4px;font-weight:400}.npm-fields #npm-pick-photo{margin-top:6px}.npm-coordinates{display:flex;gap:10px;margin:12px 0}.npm-coordinates label{width:50%;font-weight:600}.npm-coordinates input{width:100%}@media(max-width:800px){.npm-filters{top:10px;max-width:calc(100% - 20px);width:max-content;justify-content:flex-start}.npm-controls{top:auto;bottom:12px;right:12px}.npm-toolbar{height:100%;}.npm-toolbar button{padding:7px 9px;font-size:12px}.npm-admin .npm-admin-layout{grid-template-columns:1fr}.npm-viewport{height:min(var(--npm-height,680px),70vh)}.npm-toolbar button{padding:7px 9px;font-size:12px}.npm-hotspot{min-height:25px;height:25px;min-width:25px;font-size:10px}}

/* v2.2: геолокационные метки, острие пина соответствует координатам объекта */
.npm-hotspot{--npm-pin-color:#8462a2;position:absolute;transform:translate(-50%,-100%);width:39px;height:48px;min-width:39px;min-height:48px;padding:0;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-shadow:none!important;overflow:visible;isolation:isolate;display:flex;justify-content:center;align-items:flex-start;z-index:2;filter:drop-shadow(0 3px 3px rgba(0,0,0,.3));}
.npm-hotspot::before{content:'';position:absolute;left:5px;top:3px;width:29px;height:29px;background:var(--npm-pin-color);border:2px solid #fff;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-sizing:border-box;z-index:-1;}
.npm-hotspot::after{content:'';position:absolute;left:50%;bottom:1px;transform:translateX(-50%) rotate(45deg);width:9px;height:9px;background:var(--npm-pin-color);clip-path:polygon(0 0,100% 0,100% 100%);opacity:0;}
.npm-pin-label{height:33px;min-width:33px;display:flex;justify-content:center;align-items:center;position:relative;font:700 11px/1 Arial,sans-serif;color:#fff;padding:0 3px;text-shadow:0 1px 2px #0006;pointer-events:none;white-space:nowrap;}
.npm-hotspot.npm-category-house{--npm-pin-color:#b65c30}.npm-hotspot.npm-category-bath{--npm-pin-color:#277d9e}.npm-hotspot.npm-category-infrastructure{--npm-pin-color:#417451}.npm-hotspot.npm-category-other{--npm-pin-color:#8462a2}
.npm-hotspot:hover,.npm-hotspot:focus-visible,.npm-hotspot.is-selected{outline:none!important;filter:drop-shadow(0 3px 4px #0008) brightness(1.12);z-index:4}
.npm-hotspot:focus-visible .npm-pin-label{outline:3px solid #f6c954;outline-offset:0;border-radius:50%}
/* Карточка — внутри viewport, над выбранным объектом, без влияния на zoom/pan */
.npm-popover{position:absolute;z-index:20;left:0;top:0;right:auto;bottom:auto;width:min(305px,calc(100% - 20px));max-height:min(410px,calc(100% - 20px));overflow:visible;box-shadow:0 9px 32px #142d2766;border:1px solid #eee9d9;}
.npm-popover::after{content:'';position:absolute;left:var(--npm-arrow-x,50%);bottom:-8px;width:15px;height:15px;background:#fff;border-right:1px solid #eee9d9;border-bottom:1px solid #eee9d9;transform:translateX(-50%) rotate(45deg);pointer-events:none}
.npm-popover.npm-below::after{bottom:auto;top:-8px;transform:translateX(-50%) rotate(225deg)}
.npm-popup-body{padding:12px 15px;max-height:310px;overflow-y:auto;border-radius:0 0 14px 14px}.npm-popup-title{font-size:18px;margin:3px 0 7px}.npm-popup-desc{font-size:13px;line-height:1.45}.npm-popup-image{height:110px;border-radius:14px 14px 0 0}.npm-popup-type{font-size:11px}.npm-popover[hidden]{display:none}
@media(max-width:800px){.npm-hotspot{width:37px;min-width:37px;height:46px;min-height:46px}.npm-popover{width:min(270px,calc(100% - 20px))}.npm-popup-image{height:95px}}

/* v2.3: user-defined marker colors override category defaults */
.npm-admin #npm-color{height:40px;padding:3px 5px;cursor:pointer;background:#fff}
.npm-admin #npm-default-color{margin:-4px 0 12px}
.npm-hotspot.npm-category-house,.npm-hotspot.npm-category-bath,.npm-hotspot.npm-category-infrastructure,.npm-hotspot.npm-category-other{background:transparent!important}

/* v2.4: full clickable card for linked objects; compact title-only popup otherwise */
.npm-popover{border-radius:17px;background:#fffdf8;border:1px solid #dfd6bc;box-shadow:0 14px 42px rgba(35,45,32,.27);transition:box-shadow .15s ease;}
.npm-popover.npm-linked:hover{box-shadow:0 17px 46px rgba(35,45,32,.33)}
.npm-popup-card{display:block;color:#263e2c!important;text-decoration:none!important;border-radius:16px;overflow:hidden;cursor:default}
.npm-popover.npm-linked .npm-popup-card{cursor:pointer}
.npm-popover.npm-linked .npm-popup-card:focus-visible{outline:3px solid #dba836;outline-offset:-3px}
.npm-popover.npm-linked .npm-popup-title{padding-right:20px}
.npm-popover.npm-linked .npm-popup-link{font-weight:600;display:inline-flex;align-items:center;gap:8px;margin-top:2px}
.npm-popover.npm-linked .npm-popup-link span{font-size:18px;transition:transform .15s ease}
.npm-popover.npm-linked .npm-popup-card:hover .npm-popup-link span{transform:translateX(3px)}
.npm-popover.npm-linked .npm-popup-desc{white-space:pre-line}
.npm-popover.npm-simple{width:max-content;max-width:min(250px,calc(100% - 20px));border:1px solid #e3d9be;background:#fffdf8;box-shadow:0 7px 22px rgba(30,50,30,.22)}
.npm-popover.npm-simple .npm-popup-card{pointer-events:none}
.npm-popover.npm-simple .npm-popup-body{padding:11px 16px;overflow:visible}
.npm-popover.npm-simple .npm-popup-type,.npm-popover.npm-simple .npm-popup-desc,.npm-popover.npm-simple .npm-popup-link,.npm-popover.npm-simple .npm-popup-image,.npm-popover.npm-simple .npm-close{display:none!important}
.npm-popover.npm-simple .npm-popup-title{font-size:15px;line-height:1.35;margin:0;text-align:center;overflow-wrap:anywhere;font-weight:700}
.npm-popover.npm-simple::after{background:#fffdf8}
.npm-popover.npm-linked::after{background:#fffdf8}
.npm-popover .npm-close{z-index:3;box-shadow:0 2px 8px #0002}

/* v2.5: no category in cards; unobtrusive close button INSIDE the card. */
.npm-widget .npm-popup-type{display:none!important}
.npm-widget .npm-popover .npm-close{
 position:absolute!important;top:9px!important;right:9px!important;left:auto!important;bottom:auto!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;
 padding:0!important;margin:0!important;border:0!important;border-radius:7px!important;
 background:rgba(38,62,44,.86)!important;color:#fff!important;
 font:normal 23px/1 Arial,sans-serif!important;text-align:center!important;
 box-shadow:0 1px 5px rgba(0,0,0,.2)!important;z-index:5!important;
 transform:none!important;opacity:1!important;cursor:pointer!important;
}
.npm-widget .npm-popover .npm-close:hover{background:#233f2e!important;color:#fff!important}
.npm-widget .npm-popover .npm-close:focus-visible{outline:2px solid #efc461!important;outline-offset:2px!important}
.npm-widget .npm-popover.npm-simple .npm-close{display:none!important}
.npm-widget .npm-popover.npm-linked .npm-popup-title{padding-right:0}
.npm-widget .npm-popover.npm-linked:not(.npm-has-image) .npm-popup-title{padding-right:25px}
.npm-widget .npm-popover.npm-linked:not(.npm-has-image) .npm-close{top:9px;right:9px}
