.map-snapshot-host{position:relative}
.map-snapshot-button{display:grid;place-items:center;min-width:44px;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:8px;background:rgba(255,255,255,.96);color:#193b33;cursor:pointer}
.map-snapshot-button:hover,.map-snapshot-button:focus-visible{background:#e8f2ed;color:#124f3c}
.map-snapshot-button svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.map-snapshot-overlay{position:absolute;z-index:9;top:8px;right:8px;border:1px solid #b8c9c0;box-shadow:0 4px 14px rgba(25,59,51,.16)}
.map-zoom-overlay .map-snapshot-button{border-left:1px solid #d5dfda;border-radius:0}
.ch-map-tools .map-snapshot-button{border-right:1px solid var(--line);border-radius:0;background:transparent}
.map-snapshot-dialog{width:min(760px,calc(100% - 24px));max-width:none;max-height:min(92dvh,900px);padding:0;overflow:hidden;border:0;border-radius:18px;background:#fff;color:#193b33;box-shadow:0 24px 72px rgba(8,35,27,.4)}
.map-snapshot-dialog::backdrop{background:rgba(8,35,27,.58);backdrop-filter:blur(2px)}
.map-snapshot-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.map-snapshot-heading{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #d6e1dc;background:#fff}
.map-snapshot-heading h2{margin:0;font-size:1.28rem;line-height:1.35}
.map-snapshot-close{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#193b33;color:#fff;font-size:1.55rem;cursor:pointer}
.map-snapshot-body{min-height:0;overflow:auto;padding:16px;background:#f2f6f4}
.map-snapshot-preview{display:block;width:100%;height:auto;border:1px solid #bdcec5;border-radius:12px;background:#e7efea;box-shadow:0 5px 18px rgba(25,59,51,.1)}
.map-snapshot-note,.map-snapshot-filters,.map-snapshot-status{margin:10px 0 0;font-size:.875rem;line-height:1.55}
.map-snapshot-filters{color:#465e55}
.map-snapshot-status{min-height:1.4em;font-weight:700;color:#195f4a}
.map-snapshot-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #d6e1dc;background:#fff}
.map-snapshot-actions button,.map-snapshot-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:9px 12px;border:1px solid #82998e;border-radius:10px;background:#fff;color:#193b33;font:inherit;font-weight:800;text-align:center;text-decoration:none;cursor:pointer}
.map-snapshot-actions [data-snapshot-share]{border-color:#1b654c;background:#1b654c;color:#fff}
.map-snapshot-actions [data-snapshot-download]{border-color:#a34d22;background:#fff3ec;color:#713218}
.map-snapshot-actions [data-snapshot-copy-image]{border-color:#43836f;background:#eff8f4;color:#174f3e}
@media(max-width:620px){.map-snapshot-overlay{top:5px;right:5px}.map-snapshot-dialog{inset:0;width:100%;height:100dvh;max-height:none;margin:0;border-radius:0}.map-snapshot-body{padding:10px}.map-snapshot-actions{grid-template-columns:repeat(2,minmax(0,1fr));padding:9px 10px calc(9px + env(safe-area-inset-bottom))}.map-snapshot-actions [data-snapshot-share]{grid-column:1/-1}.map-snapshot-heading{padding:9px 10px}}
@media(max-width:750px){.map-zoom-overlay .map-snapshot-button{width:32px;min-width:32px;height:32px;min-height:32px;padding:5px}.map-zoom-overlay .map-snapshot-button svg{width:18px;height:18px}.map-snapshot-overlay{width:36px;min-width:36px;height:36px;min-height:36px}.map-snapshot-overlay svg{width:19px;height:19px}}
@media(max-width:380px){.map-snapshot-heading{grid-template-columns:minmax(0,1fr) 40px}.map-snapshot-heading h2{font-size:1.1rem}.map-snapshot-close{width:40px;height:40px}.map-snapshot-note,.map-snapshot-filters,.map-snapshot-status{font-size:.8rem}.map-snapshot-actions{gap:6px}.map-snapshot-actions button,.map-snapshot-actions a{min-height:44px;padding:7px 8px;font-size:.84rem}}
@media(prefers-reduced-motion:reduce){.map-snapshot-dialog::backdrop{backdrop-filter:none}}
