:root {
  --bg: #f3f1ea;
  --panel: #ffffff;
  --ink: #20322a;
  --muted: #7c8a82;
  --line: #e4e0d6;
  --green: #2f7d4f;
  --green-soft: #e7f1ea;
  --earth: #d9701b;
  --earth-soft: #fbeadb;
  --radius: 12px;
  --shadow: 0 4px 14px rgba(0,0,0,.09);
  --ui: "Hanken Grotesk", -apple-system, "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--ui); color: var(--ink); background: var(--bg);
  display: flex; flex-direction: column; height: 100vh; overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }

body.dark {
  --bg: #14171b; --panel: #1d2127; --ink: #e7eae6; --muted: #8b958c;
  --line: #2b3037; --green: #5cbe83; --green-soft: #1b2a21;
  --earth: #e8843a; --earth-soft: #2f2014; --shadow: 0 4px 16px rgba(0,0,0,.5);
}
body.dark .tab.on { background: #2a3038; }
body.dark .search, body.dark .iconbtn, body.dark .stat, body.dark .list-filter input,
body.dark .card, body.dark .theme-btn, body.dark .load-more { background: #181c21; }
body.dark .search { background: #181c21; }
body.dark .leaflet-bar a, body.dark .leaflet-control-layers-toggle,
body.dark .leaflet-control-layers-expanded { background-color: #1d2127; color: #e7eae6; border-color: #2b3037; }
body.dark .leaflet-bar a { color: #e7eae6; }
body.dark .leaflet-popup-content-wrapper, body.dark .leaflet-popup-tip { background: #1d2127; color: #e7eae6; }
body.dark .stat.soon .v, body.dark .soon-tag { color: #7a8478; }

.theme-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: #faf9f5;
  color: var(--ink); cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: border-color .15s, color .15s; }
.theme-btn:hover { border-color: var(--green); color: var(--green); }

.topbar {
  height: 58px; flex-shrink: 0; background: var(--panel); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px; padding: 0 18px; z-index: 1200;
}
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: .2px; }
.logo .mark { color: var(--green); font-size: 17px; transform: translateY(1px); }
.tabs { display: flex; gap: 3px; background: #f0eee7; border-radius: 999px; padding: 3px; }
.tab { padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; border: none; background: transparent; }
.tab.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.search { margin-left: auto; position: relative; display: flex; align-items: center; height: 38px; width: 340px;
  background: #faf9f5; border: 1px solid var(--line); border-radius: 999px; padding: 0 5px 0 12px; transition: border-color .15s, background .15s; }
.search:focus-within { border-color: var(--green); background: #fff; }
.search .ico { color: var(--muted); font-size: 14px; margin-right: 8px; flex-shrink: 0; }
.search input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-size: 13px; color: var(--ink); font-family: inherit; }
.search .divider { width: 1px; height: 20px; background: var(--line); margin: 0 4px; flex-shrink: 0; }
.search .loc { display: flex; align-items: center; height: 28px; border-radius: 999px; padding: 0 8px; color: var(--muted);
  cursor: pointer; overflow: hidden; flex-shrink: 0; border: none; background: transparent; transition: background .2s ease, color .2s ease; }
.search .loc .target { font-size: 14px; line-height: 1; }
.search .loc .label { max-width: 0; opacity: 0; white-space: nowrap; overflow: hidden; font-size: 12px; font-weight: 600;
  transition: max-width .16s ease, opacity .1s ease, margin-left .16s ease; }
.search .loc:hover { background: var(--green-soft); color: var(--green); }
.search .loc:hover .label { max-width: 70px; opacity: 1; margin-left: 6px;
  transition: max-width .4s cubic-bezier(.22,.61,.36,1), opacity .28s ease .08s, margin-left .4s cubic-bezier(.22,.61,.36,1); }
.search-dropdown { position: absolute; top: 44px; left: 0; right: 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); max-height: 240px; overflow-y: auto; display: none; z-index: 1300; }
.search-dropdown .item { padding: 9px 12px; font-size: 12.5px; cursor: pointer; border-bottom: 1px solid #f0eee7; line-height: 1.35; }
.search-dropdown .item:last-child { border-bottom: none; }
.search-dropdown .item:hover { background: var(--green-soft); }

.stage { flex: 1; display: flex; min-height: 0; position: relative; }

.filters { width: 232px; flex-shrink: 0; background: var(--panel); border-right: 1px solid var(--line); padding: 18px 16px; overflow-y: auto; z-index: 2; }
.f-group { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.f-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.f-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin-bottom: 11px; }
.opt { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 7px 9px; cursor: pointer; border-radius: 8px; margin: 0 -9px; }
.opt:hover { background: #faf9f5; }
.opt .radio { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #cfcabd; flex-shrink: 0; position: relative; }
.opt.on .radio { border-color: var(--green); }
.opt.on .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--green); }
.opt.on { color: var(--ink); font-weight: 600; }

.soon-box { opacity: .55; pointer-events: none; }
.soon-tag { font-size: 9px; background: #f0eee7; color: #a59f92; border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; font-weight: 700; letter-spacing: .03em; }
.range { position: relative; height: 20px; margin: 14px 2px 6px; }
.range-rail { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 4px; background: var(--line); border-radius: 999px; }
.range-fill { position: absolute; top: 50%; transform: translateY(-50%); height: 4px; background: var(--green); border-radius: 999px; }
.range input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 20px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input[type=range]::-webkit-slider-runnable-track { height: 4px; background: none; border: none; }
.range input[type=range]::-moz-range-track { height: 4px; background: none; border: none; }
.range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--panel); border: 2px solid var(--green); box-shadow: 0 1px 3px rgba(0,0,0,.25); cursor: pointer; pointer-events: auto; margin-top: -5.5px; }
.range input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--panel); border: 2px solid var(--green); box-shadow: 0 1px 3px rgba(0,0,0,.25); cursor: pointer; pointer-events: auto; }
.range-val { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.switch { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 13px; cursor: pointer; }
.swatch { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.toggle { width: 34px; height: 20px; border-radius: 999px; background: var(--green); position: relative; margin-left: auto; transition: background .15s; flex-shrink: 0; }
.toggle::after { content:""; position:absolute; right:2px; top:2px; width:16px; height:16px; border-radius:50%; background:#fff; transition: all .15s; }
.toggle.off { background: #d6d1c5; }
.toggle.off::after { left:2px; right:auto; }

.results { width: 350px; flex-shrink: 0; border-right: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; z-index: 2; }
.results-head { padding: 12px 14px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.list-filter { position: relative; margin-bottom: 9px; }
.list-filter input { width: 100%; padding: 8px 12px 8px 32px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; background: var(--panel); color: var(--ink); font-family: inherit; outline: none; }
.list-filter input:focus { border-color: var(--green); }
.list-filter .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.results-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.results-meta b { color: var(--ink); font-weight: 700; }
.scope-seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.scope-seg button { border: none; background: transparent; font-family: inherit; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 9px; cursor: pointer; }
.scope-seg button + button { border-left: 1px solid var(--line); }
.scope-seg button.on { background: var(--green); color: #fff; }
.scope-seg button:disabled { opacity: .4; cursor: default; }
.scope { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.scope .chk { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #cfcabd; position: relative; }
.scope.on .chk { background: var(--green); border-color: var(--green); }
.scope.on .chk::after { content:""; position:absolute; left:4px; top:1px; width:4px; height:8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.cards { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.cards::-webkit-scrollbar { width: 7px; }
.cards::-webkit-scrollbar-thumb { background: #d6d1c5; border-radius: 4px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 13px; cursor: pointer;
  transition: box-shadow .15s, border-color .15s, transform .15s; border-left: 3px solid transparent; }
.card:hover { box-shadow: var(--shadow); }
.card.active { border-color: var(--earth); border-left-color: var(--earth); box-shadow: 0 4px 14px rgba(217,112,27,.16); }
.card .name { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; user-select: text; -webkit-user-select: text; cursor: text; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.b-dist { background: var(--green-soft); color: var(--green); }
.b-diff { background: var(--bg); color: var(--ink); }
.list-info { text-align: center; padding: 14px; font-size: 12px; color: var(--muted); }
.load-more { width: 100%; padding: 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 600; }
.load-more:hover { border-color: var(--green); color: var(--green); }

.map-wrap { flex: 1; position: relative; }
#map { position: absolute; inset: 0; }
.leaflet-container { font-family: var(--ui); background: #cdd9cb; }
.legend { position: absolute; bottom: 16px; right: 16px; background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font-size: 12px; z-index: 800; box-shadow: var(--shadow); }
.legend .row { display: flex; align-items: center; gap: 7px; padding: 3px 0; }
.locate-btn { position: absolute; top: 78px; right: 12px; width: 34px; height: 34px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 7px; z-index: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.locate-btn:hover { color: var(--green); }
.cam-icon { font-size: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.spot-pin { width: 26px; height: 26px; border-radius: 50%; background: var(--earth); border: 2.5px solid #fff;
  box-shadow: 0 2px 7px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.poi-pin { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.55); }
.legend-spot { width: 16px; height: 16px; border-radius: 50%; background: var(--earth); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); display: inline-flex; align-items: center; justify-content: center; font-size: 9px; }
.cl { border-radius: 50%; background: var(--cl); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.marker-cluster, .marker-cluster div { background: none; }
.cl-popup .leaflet-popup-content { margin: 9px 10px; }
.cl-list { max-height: 270px; overflow-y: auto; }
.cl-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.cl-row { display: flex; align-items: center; gap: 9px; padding: 6px 5px; border-radius: 7px; cursor: pointer; }
.cl-row:hover { background: var(--green-soft); }
.cl-thumb { width: 42px; height: 32px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.cl-ph { display: flex; align-items: center; justify-content: center; background: var(--earth); color: #fff; font-size: 14px; }
.cl-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; margin: 0 4px; }
.cl-txt { min-width: 0; }
.cl-nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.detail {
  position: absolute; top: 0; left: 0; bottom: 0; width: 582px; max-width: calc(100% - 80px);
  background: var(--panel); border-right: 1px solid var(--line); box-shadow: 8px 0 28px rgba(0,0,0,.10);
  display: flex; flex-direction: column; z-index: 1000;
  transform: translateX(-100%); transition: transform .32s cubic-bezier(.22,.61,.36,1); visibility: hidden;
}
.detail.open { transform: translateX(0); visibility: visible; }
.detail-top { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.back { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--green); cursor: pointer; border: none; background: transparent; }
.top-actions { margin-left: auto; display: flex; gap: 8px; }
.iconbtn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #faf9f5; cursor: pointer; font-size: 15px; color: var(--ink); }
.detail-scroll { flex: 1; overflow-y: auto; }
.hero { height: 200px; position: relative; display: flex; align-items: flex-end; padding: 18px 20px; color: #fff;
  background: linear-gradient(135deg, #3a5a44 0%, #2f7d4f 55%, #d9701b 140%); background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(circle at 20% 30%, #fff 0, transparent 40%), radial-gradient(circle at 80% 70%, #fff 0, transparent 35%); }
.hero .htitle { position: relative; z-index: 2; font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.15; max-width: 90%; user-select: text; -webkit-user-select: text; cursor: text; }
.pad { padding: 18px 20px; }
.place { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.stat { background: #faf9f5; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.stat:has(.ev-up) { text-align: center; }
.stat .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 16px; font-weight: 700; margin-top: 4px; }
.stat.soon .v { color: #b9b3a6; font-weight: 600; font-size: 13px; }
.stat .v:has(.ev-up) { white-space: nowrap; font-size: 13px; }
.ev-up { color: var(--green); }
.ev-dn { color: #b07a4a; margin-left: 6px; }
body.dark .ev-dn { color: #d59c6b; }
.dv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
#diff-stat { position: relative; }
.stat .k .help { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; padding: 0; margin-left: 4px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 9px; font-weight: 700; line-height: 1; cursor: pointer; vertical-align: middle; font-family: inherit; }
.stat .k .help:hover { border-color: var(--muted); color: var(--ink); }
.diff-pop { position: absolute; top: 100%; left: 0; margin-top: 7px; width: 234px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.18); padding: 11px 13px; z-index: 30; display: none; text-align: left; }
.diff-pop.on { display: block; }
.dp-h { font-size: 12px; font-weight: 700; color: var(--ink); }
.dp-f { font-size: 11px; color: var(--muted); margin: 3px 0 9px; line-height: 1.35; }
.dp-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink); padding: 2.5px 0; }
.dp-row b { min-width: 58px; font-weight: 700; }
.dp-b { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.section { padding: 16px 20px; border-top: 1px solid var(--line); }
.section h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; font-weight: 700; text-align: center; }
.elev { position: relative; padding-top: 22px; }
.elev-svg { display: block; width: 100%; height: 150px; }
.elev-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.elev-cur { stroke: var(--earth); stroke-width: 1.5; stroke-dasharray: 3 3; }
.elev-dot { fill: var(--earth); stroke: #fff; stroke-width: 2; }
.elev-dot.pinned { stroke-width: 3; filter: drop-shadow(0 0 3px rgba(0,0,0,.4)); }
.elev-max { position: absolute; top: 1px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--earth); background: #fff; padding: 1px 7px; border-radius: 5px; pointer-events: none; z-index: 4; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: background .12s, color .12s; }
.elev-max::after { content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); border: 5px solid transparent; border-bottom: 0; border-top-color: #fff; transition: border-top-color .12s; }
body.dark .elev-max { background: #181c21; }
body.dark .elev-max::after { border-top-color: #181c21; }
.elev-max.lit { background: var(--earth); color: #fff; }
.elev-max.lit::after { border-top-color: var(--earth); }
.elev-mk { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--earth); box-shadow: 0 1px 5px rgba(0,0,0,.5); position: relative; }
.elev-mk::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 6px; height: 6px; border-radius: 50%; background: var(--earth); }
.elev-y { position: absolute; left: 3px; font-size: 10px; color: var(--muted); font-weight: 600; background: rgba(255,255,255,.55); padding: 0 3px; border-radius: 3px; pointer-events: none; }
body.dark .elev-y { background: rgba(24,28,33,.55); }
.elev-y-max { top: 6px; }
.elev-y-min { bottom: 40px; }
.elev-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 3px; }
.elev-cap { font-size: 11px; color: var(--muted); margin-top: 8px; text-align: center; }
.elev-tip { position: absolute; top: 2px; background: rgba(20,30,25,.92); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; display: none; z-index: 5; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.spot { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid #f0eee7; }
.spot:last-child { border-bottom: none; }
.spot .cam { font-size: 17px; flex-shrink: 0; width: 58px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--green-soft); border-radius: 7px; }
.spot .thumb { width: 58px; height: 44px; border-radius: 7px; object-fit: cover; flex-shrink: 0; background: var(--green-soft); display: block; }
.spot .nm { font-size: 13px; font-weight: 600; }
.spot .sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.spot a { margin-left: auto; color: var(--green); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.poi { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid #f0eee7; }
.poi:last-child { border-bottom: none; }
.poi .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.poi .nm { font-size: 13px; font-weight: 600; }
.poi .cat { font-size: 11px; color: var(--muted); margin-top: 1px; }
.poi .el { margin-left: auto; font-size: 12px; color: var(--muted); }
.empty { font-size: 13px; color: var(--muted); font-style: italic; padding: 4px 0; }
.js-photo { cursor: zoom-in; }

.litem { border-bottom: 1px solid #f0eee7; }
.litem:last-child { border-bottom: none; }
.litem .spot, .litem .poi { border-bottom: none; cursor: pointer; border-radius: 8px; margin: 0 -8px; padding: 9px 8px; }
.litem .spot:hover, .litem .poi:hover { background: #faf9f5; }
.litem.focused .spot, .litem.focused .poi { background: var(--green-soft); }
.ltxt { flex: 1; min-width: 0; }
.ltxt .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--muted); font-size: 16px; transition: transform .2s ease; flex-shrink: 0; }
.litem.open .chev { transform: rotate(90deg); }
.litem .more { display: none; padding: 0 8px 11px 8px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.litem.open .more { display: block; }
.litem .more a { color: var(--green); font-weight: 600; text-decoration: none; }
body.dark .litem .spot:hover, body.dark .litem .poi:hover { background: #181c21; }
.mk-pulse { z-index: 1000 !important; }
.mk-pulse-spot .spot-pin, .mk-pulse-spot .cl { animation: mkPulseSpot 1.4s ease-out infinite; }
.mk-pulse-poi .poi-pin, .mk-pulse-poi .cl { animation: mkPulsePoi 1.4s ease-out infinite; }
@keyframes mkPulseSpot {
  0%   { box-shadow: 0 2px 7px rgba(0,0,0,.5), 0 0 0 0 rgba(217,112,27,.55); }
  70%  { box-shadow: 0 2px 7px rgba(0,0,0,.5), 0 0 0 13px rgba(217,112,27,0); }
  100% { box-shadow: 0 2px 7px rgba(0,0,0,.5), 0 0 0 0 rgba(217,112,27,0); }
}
@keyframes mkPulsePoi {
  0%   { box-shadow: 0 1px 4px rgba(0,0,0,.55), 0 0 0 0 rgba(47,125,79,.6); }
  70%  { box-shadow: 0 1px 4px rgba(0,0,0,.55), 0 0 0 11px rgba(47,125,79,0); }
  100% { box-shadow: 0 1px 4px rgba(0,0,0,.55), 0 0 0 0 rgba(47,125,79,0); }
}

.lightbox { position: fixed; inset: 0; background: rgba(10,12,11,0); z-index: 3000;
  display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
  opacity: 0; visibility: hidden; pointer-events: none; backdrop-filter: blur(0px);
  transition: background .28s ease, opacity .24s ease, visibility .28s, backdrop-filter .28s ease; }
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto;
  background: rgba(10,12,11,.88); backdrop-filter: blur(4px); }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0,0,0,.65); object-fit: contain;
  transform: scale(.97); opacity: 0;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), opacity .26s ease; }
.lightbox.open img { transform: scale(1); opacity: 1; }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 42px; height: 42px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff;
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease .12s, background .15s; }
.lightbox.open .lightbox-close { opacity: 1; }
.lightbox-close:hover { background: rgba(255,255,255,.24); }
