/* Maps Pro layouts. Scoped under .spotthemes-map; tokens come from the free plugin's root. */
.spotthemes-map{--bar2:#22222240}
.spotthemes-map.spotthemes-t-dark{--bar2:#ffffff30}
@media (prefers-color-scheme:dark){.spotthemes-map.spotthemes-t-auto{--bar2:#ffffff30}}

/* Two-column layouts (03 data, 04 locator, 05 panel) */
.spotthemes-map .spotthemes-map-lay{display:grid;gap:20px;align-items:start}
.spotthemes-map .spotthemes-map-lay>*{min-width:0}
.spotthemes-map.spotthemes-l-data .spotthemes-map-lay{grid-template-columns:1.65fr 1fr}
.spotthemes-map.spotthemes-l-locator .spotthemes-map-lay{grid-template-columns:340px 1fr}
.spotthemes-map.spotthemes-l-panel .spotthemes-map-lay{grid-template-columns:1fr 300px}
.spotthemes-map .spotthemes-map-cb{padding:20px}
.spotthemes-map .spotthemes-map-more{margin-left:auto;color:var(--ghost)}

/* Rows + tick meter (design kit .th/.tr/.tick) */
.spotthemes-map .spotthemes-map-th,.spotthemes-map .spotthemes-map-tr{display:flex;align-items:center;gap:14px;font-family:var(--mono);font-size:13px;color:var(--ink)}
.spotthemes-map .spotthemes-map-th{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--ghost);padding:0 0 8px}
.spotthemes-map .spotthemes-map-tr{padding:9px 0;border-top:1px solid var(--line);list-style:none;margin:0}
.spotthemes-map .spotthemes-map-th .n,.spotthemes-map .spotthemes-map-tr .n{color:var(--ghost);width:28px;flex:none;font-size:12px}
.spotthemes-map .spotthemes-map-th .x,.spotthemes-map .spotthemes-map-tr .x{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.spotthemes-map .spotthemes-map-th .r,.spotthemes-map .spotthemes-map-tr .r{text-align:right;min-width:48px}
.spotthemes-map .spotthemes-map-rows,.spotthemes-map .spotthemes-map-prows{margin:0;padding:0;list-style:none}
.spotthemes-map .spotthemes-map-top .spotthemes-map-tr{cursor:pointer}
.spotthemes-map .spotthemes-map-top .spotthemes-map-tr:hover{background:var(--well);border-radius:8px;border-color:transparent;padding-left:10px;padding-right:10px;margin:0 -10px}
.spotthemes-map .spotthemes-map-tick{display:inline-flex;gap:2px;height:11px;align-items:stretch;flex:none}
.spotthemes-map .spotthemes-map-tick i{width:1.5px;background:var(--ink)}
.spotthemes-map .spotthemes-map-tick i.o{background:var(--bar2)}

/* 03 heat map legend + highlight */
.spotthemes-map .spotthemes-map-scale{display:flex;align-items:center;gap:10px;font-family:var(--mono);font-size:10.5px;color:var(--ghost);padding:8px 12px 2px}
.spotthemes-map .spotthemes-map-scale i{display:flex;gap:2px}
.spotthemes-map .spotthemes-map-scale b{width:18px;height:6px;border-radius:2px}
.spotthemes-map .spotthemes-land.is-hl{stroke:var(--ink);stroke-width:calc(1.5px / var(--z,1))}
.spotthemes-map .spotthemes-map-tip .spotthemes-map-up,.spotthemes-map .spotthemes-map-top .is-on .r{color:var(--up)}.spotthemes-map .spotthemes-map-tip .spotthemes-map-down{color:var(--down)}
.spotthemes-map .spotthemes-map-top .spotthemes-map-tr.is-on{background:var(--well);border-radius:8px;border-color:transparent;padding-left:10px;padding-right:10px;margin:0 -10px}
.spotthemes-map .spotthemes-map-top .spotthemes-map-tr.is-on+.spotthemes-map-tr{border-color:transparent}

/* 04 store locator */
.spotthemes-map .spotthemes-map-find{display:flex;gap:8px}
.spotthemes-map .spotthemes-map-input{flex:1;display:flex;align-items:center;gap:8px;background:var(--well);border-radius:10px;padding:0 12px;font-family:var(--mono);font-size:12px;color:var(--ghost);margin:0}
.spotthemes-map .spotthemes-map-input input{all:unset;box-sizing:border-box;flex:1;min-width:0;padding:10px 0;font-family:var(--mono);font-size:12px;color:var(--ink)}
.spotthemes-map .spotthemes-map-input input::placeholder{color:var(--ghost)}
.spotthemes-map .spotthemes-map-input:focus-within{box-shadow:0 0 0 2px var(--ink)}
.spotthemes-map .spotthemes-map-near{all:unset;box-sizing:border-box;cursor:pointer;background:var(--ink);color:var(--paper);border-radius:10px;padding:0 12px;font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;display:inline-flex;align-items:center}
.spotthemes-map .spotthemes-map-near[hidden]{display:none}
.spotthemes-map .spotthemes-map-near:disabled{opacity:.5;cursor:wait}
.spotthemes-map .spotthemes-map-near:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.spotthemes-map .spotthemes-map-pills{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 10px}
.spotthemes-map .spotthemes-map-pills button{all:unset;box-sizing:border-box;cursor:pointer;font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;border-radius:999px;padding:6px 11px;background:var(--well);color:var(--ink);white-space:nowrap}
.spotthemes-map .spotthemes-map-pills button.is-on{background:var(--ink);color:var(--paper)}
.spotthemes-map .spotthemes-map-pills button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.spotthemes-map .spotthemes-map-list2{margin:0;padding:0;list-style:none;max-height:460px;overflow:auto;scrollbar-width:thin}
.spotthemes-map .spotthemes-map-st{border-top:1px solid var(--line);margin:0;list-style:none}
.spotthemes-map .spotthemes-map-st[hidden]{display:none}
.spotthemes-map .spotthemes-map-st.is-on{background:var(--well);border-radius:10px;border-color:transparent}
.spotthemes-map .spotthemes-map-st.is-on+.spotthemes-map-st{border-color:transparent}
.spotthemes-map .spotthemes-map-stb{all:unset;box-sizing:border-box;display:block;width:100%;padding:12px;cursor:pointer}
.spotthemes-map .spotthemes-map-stb:focus-visible{outline:2px solid var(--ink);outline-offset:-2px;border-radius:10px}
.spotthemes-map .spotthemes-map-st .a{display:flex;justify-content:space-between;gap:10px;font-size:15px;font-weight:500;color:var(--ink)}
.spotthemes-map .spotthemes-map-st .km{font-family:var(--mono);font-size:12px;font-weight:400;color:var(--ghost);white-space:nowrap}
.spotthemes-map .spotthemes-map-st .b{display:block;font-family:var(--mono);font-size:12px;color:var(--ghost);margin-top:2px}
.spotthemes-map .spotthemes-map-st .c{display:block;font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;margin-top:6px;color:var(--ghost)}
.spotthemes-map .spotthemes-map-st .c:empty{display:none}
.spotthemes-map .spotthemes-map-st .c.is-open{color:var(--up)}
.spotthemes-map .spotthemes-map-st .d{display:flex;gap:14px;padding:0 12px 12px;font-family:var(--mono);font-size:11px}
.spotthemes-map .spotthemes-map-st .d a{color:var(--ink);text-decoration:none!important;border-bottom:1px solid var(--border)}
.spotthemes-map .spotthemes-map-none{font-family:var(--mono);font-size:12px;color:var(--ghost);margin:12px 0 0}
.spotthemes-map .spotthemes-map-none[hidden]{display:none}

/* 05 region panel */
.spotthemes-map .spotthemes-map-panel .spotthemes-map-kpis{margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
.spotthemes-map .spotthemes-map-person{display:flex;gap:12px;align-items:center}
.spotthemes-map .spotthemes-map-person .av{width:36px;height:36px;border-radius:50%;background:var(--ink);color:var(--paper);display:grid;place-items:center;font-family:var(--mono);font-size:12px;flex:none}
.spotthemes-map .spotthemes-map-person .pn{display:block;font-weight:500;color:var(--ink)}
.spotthemes-map .spotthemes-map-person .pr{display:block;font-family:var(--mono);font-size:12px;color:var(--ghost)}
.spotthemes-map .spotthemes-map-prows{margin-top:16px}
.spotthemes-map .spotthemes-map-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:14px;background:var(--ink);color:var(--paper);border-radius:9px;padding:10px 16px;font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:500;text-decoration:none!important;box-sizing:border-box}
.spotthemes-map .spotthemes-map-btn:hover,.spotthemes-map .spotthemes-map-btn:focus{color:var(--paper);opacity:.92}
.spotthemes-map .spotthemes-land.is-pick{stroke:var(--ink);stroke-width:calc(.9px / var(--z,1))}
.spotthemes-map .spotthemes-map-leg{display:flex;align-items:center;gap:14px;font-family:var(--mono);font-size:10.5px;color:var(--ghost);padding:10px 12px 8px}
.spotthemes-map .spotthemes-map-leg>span{display:inline-flex;align-items:center;gap:6px}
.spotthemes-map .spotthemes-map-ldot{width:var(--s);height:var(--s);border-radius:50%;background:var(--ring);display:inline-grid;place-items:center}
.spotthemes-map .spotthemes-map-ldot::after{content:"";width:5px;height:5px;border-radius:50%;background:var(--ink)}

/* 06 dot matrix */
.spotthemes-map.spotthemes-l-dots .spotthemes-map-box{background:var(--card)}
.spotthemes-map.spotthemes-l-dots .spotthemes-grat,.spotthemes-map.spotthemes-l-dots .spotthemes-sph{display:none}
.spotthemes-map .spotthemes-dot{fill:#d6d3cc}
.spotthemes-map .spotthemes-dot.is-on{fill:var(--ink)}
.spotthemes-map.spotthemes-t-dark .spotthemes-dot{fill:#3a3a3e}
.spotthemes-map .spotthemes-land.is-ghost{fill:transparent!important;stroke:none}
.spotthemes-map .spotthemes-map-pin.is-label{width:auto;height:auto;padding:5px 9px;border-radius:999px;background:var(--ink);color:var(--paper);font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;line-height:1.2;
 transform:translate(-50%,calc(-100% - 6px)) scale(calc(1 / var(--z,1)));transform-origin:50% 100%}
.spotthemes-map .spotthemes-map-pin.is-label::after{position:absolute!important;left:50%;bottom:-3px;width:7px;height:7px;border-radius:0;background:var(--ink);transform:translateX(-50%) rotate(45deg)}
.spotthemes-map.spotthemes-l-dots .spotthemes-map-card .spotthemes-map-kpis{margin:0;border:0;border-top:1px solid var(--line);border-radius:0;background:none}

/* Pin groups */
.spotthemes-map .spotthemes-map-pin.is-grouped{display:none!important}
.spotthemes-map .spotthemes-map-group{width:28px;height:28px;background:var(--ink);color:var(--paper);font-family:var(--mono);font-size:11px;box-shadow:0 0 0 4px color-mix(in oklab,var(--ink) 18%,transparent)}
.spotthemes-map .spotthemes-map-group::after{display:none!important}

@media (max-width:640px){
 .spotthemes-map .spotthemes-map-lay{grid-template-columns:1fr!important}
 .spotthemes-map.spotthemes-l-locator .spotthemes-map-lay>.spotthemes-map-card:not(.spotthemes-map-side){order:-1}
 .spotthemes-map .spotthemes-map-cb{padding:16px}
 .spotthemes-map .spotthemes-map-list2{max-height:none}
 .spotthemes-map .spotthemes-map-pin.is-label{font-size:8.5px;padding:3px 6px}
}
/* Distance search + directions (store locator) */
.spotthemes-map .spotthemes-map-radius{display:flex;align-items:center;gap:8px;margin-top:10px;font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--ghost)}
.spotthemes-map .spotthemes-map-radius select{font:inherit;letter-spacing:.06em;color:var(--ink);background:var(--well);border:0;border-radius:999px;padding:5px 10px;max-width:100%}
.spotthemes-map .spotthemes-map-radius select:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.spotthemes-map .spotthemes-map-dir{white-space:nowrap}
/* Drilldown: back button top-left, where the MAP / GLOBE toggle sits in the design */
.spotthemes-map .spotthemes-map-land.is-drill,.spotthemes-map .spotthemes-land.is-drill{cursor:pointer}
.spotthemes-map .spotthemes-map-box[hidden]{display:none}
.spotthemes-map .spotthemes-map-back{all:unset;box-sizing:border-box;position:absolute;left:12px;top:12px;z-index:3;background:var(--card);color:var(--ink);border-radius:999px;padding:6px 12px;font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.08),0 0 0 1px var(--line)}
.spotthemes-map .spotthemes-map-back:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
@media (max-width:640px){.spotthemes-map .spotthemes-map-back{left:8px;top:8px;padding:5px 10px}}
