/* Shared vector controls; only mounted map containers are affected. */
.tatouage-vector-map{background:var(--map-bg);position:relative;container-type:inline-size}
.tatouage-vector-map .maplibregl-ctrl-top-right{top:6px;right:6px}
.tatouage-vector-map .maplibregl-ctrl-group{border:1px solid var(--map-line);border-radius:12px;background:var(--map-surface);box-shadow:0 3px 12px #0002;overflow:hidden}
.tatouage-vector-map .maplibregl-ctrl-group button{width:36px;height:36px;display:grid;place-items:center;padding:0;border:0;background:var(--map-surface);color:var(--map-text);-webkit-tap-highlight-color:transparent}
.tatouage-vector-map .maplibregl-ctrl-group button+button{border-top:1px solid var(--map-line)}
.tatouage-vector-map .maplibregl-ctrl-group button:hover,.tatouage-vector-map .maplibregl-ctrl-group button[aria-pressed="true"]{color:var(--map-accent);background:var(--map-bg)}
.tatouage-vector-map .maplibregl-ctrl-group button:focus-visible{outline:2px solid var(--map-accent);outline-offset:-3px}
.tatouage-vector-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon{background-image:none!important;display:grid;place-items:center;width:100%;height:100%;color:inherit}
.tatouage-vector-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon>svg{display:block;margin:0;width:19px;height:19px}
.tatouage-vector-map .maplibregl-ctrl-group button:disabled{opacity:.4}
.tatouage-vector-map .maplibregl-ctrl-bottom-right{bottom:6px;right:6px}
.tatouage-vector-map.vector-map-locked,.tatouage-vector-map.vector-map-locked .maplibregl-canvas-container,.tatouage-vector-map.vector-map-locked canvas{touch-action:pan-y!important}
.tatouage-vector-map.vector-map-locked .maplibregl-canvas-container>canvas{pointer-events:none}
.tatouage-vector-map:not(.vector-map-locked) .maplibregl-canvas-container{touch-action:none}
#studio-map .maplibregl-marker{cursor:pointer}
#studio-map .studio-cluster,#studio-map .studio-pin{display:grid;place-items:center;padding:0;border:2px solid var(--map-accent);background:var(--map-surface);color:var(--map-accent);border-radius:50%;box-shadow:0 2px 8px #0004;font:700 13px system-ui}
#studio-map .studio-cluster{width:44px;height:44px}
#studio-map .studio-pin{width:28px;height:28px}
#studio-map .studio-cluster.is-active,#studio-map .studio-pin.is-active{background:var(--map-accent);color:var(--map-bg)}
.tatouage-vector-map .maplibregl-popup-content{background:var(--map-surface);color:var(--map-text);border:1px solid var(--map-line);border-radius:12px;max-height:250px;overflow:auto;padding:14px}
.tatouage-vector-map .maplibregl-popup-tip{border-top-color:var(--map-surface)}
#studio-map .cluster-popup a{color:var(--map-accent)}
#studio-map .cluster-popup button{background:transparent;border:1px solid var(--map-line);border-radius:6px;color:var(--map-text);font:inherit;cursor:pointer}
@media(max-width:600px){.tatouage-vector-map .maplibregl-ctrl-top-right{top:2px;right:2px}}

#discovery .map-location-toolbar{display:none}


#studio-map .studio-pin-featured{width:36px;height:36px;border-width:3px;background:var(--map-accent);color:var(--map-bg);box-shadow:0 0 0 5px color-mix(in srgb,var(--map-accent) 20%,transparent)}
.vector-map-static .maplibregl-canvas-container,.vector-map-static canvas{touch-action:pan-y!important;pointer-events:none}

/* Directory popups close gently; map geometry and marker positions stay intact. */
.tatouage-vector-map .maplibregl-popup{transition:opacity .14s ease}
.tatouage-vector-map .maplibregl-popup.studio-popup-closing{opacity:0;pointer-events:none}
@media(prefers-reduced-motion:reduce){.tatouage-vector-map .maplibregl-popup{transition:none}}

/* Cartographic appearance is independent of the site's decorative palette. */
.tatouage-vector-map[data-map-appearance="light"]{--map-bg:#f5f5f3;--map-surface:#fff;--map-line:#c8cbd0;--map-text:#20252b;--map-muted:#4b525b;--map-accent:var(--st-accent,#a65431)}
.tatouage-vector-map[data-map-appearance="dark"]{--map-bg:#111216;--map-surface:#202228;--map-line:#4a4e58;--map-text:#f2f3f5;--map-muted:#c0c4cc;--map-accent:var(--st-accent,#d29b68)}
.tatouage-vector-map[data-vector-palette="landing"]{--map-accent:var(--accent,#d29b68)}
/* Shared attribution on every MapLibre map, including the directory's external slot.
   Keep the native <details>/<summary> and all provider links; only the drawer slides. */
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib{
 --credits-bg:var(--map-surface,var(--st-panel,#fff));
 --credits-border:var(--map-line,var(--st-edge,#bbb));
 --credits-text:var(--map-text,var(--st-ink,#20252b));
 --credits-muted:var(--map-muted,var(--st-muted,#4b525b));
 box-sizing:border-box;position:relative;display:block;width:18px;height:18px;
 min-width:18px;min-height:18px;max-width:none;margin:0;padding:0;
 overflow:visible;border:1px solid var(--credits-border);border-radius:50%;
 background:var(--credits-bg);color:var(--credits-muted);
 font:10px/1.4 sans-serif;-webkit-user-select:none;user-select:none;
}
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib.maplibregl-compact,
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib.maplibregl-compact-show{
 box-sizing:border-box;width:18px;height:18px;min-height:18px;max-width:none;
 padding:0;border-radius:50%;
}
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib-button{
 position:absolute;inset:0;display:grid;place-items:center;box-sizing:border-box;
 width:16px;height:16px;margin:0;padding:0;border:0;border-radius:50%;
 background:transparent!important;background-image:none!important;
 color:var(--credits-text);cursor:pointer;-webkit-tap-highlight-color:transparent;
}
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib-button::before{
 content:'i';display:grid;place-items:center;
 font:italic 700 11px/1 Georgia,serif;color:inherit;
}
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib-button:focus:not(:focus-visible){outline:0;box-shadow:none}
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib-button:focus-visible{
 outline:2px solid var(--map-accent,var(--st-accent));outline-offset:2px;
}
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner,
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{
 position:absolute;right:calc(100% + 8px);bottom:50%;display:block;box-sizing:border-box;
 width:max-content;max-width:min(360px,calc(100vw - 52px),calc(100cqw - 52px));max-height:none;
 overflow-x:auto;overflow-y:hidden;white-space:nowrap;overflow-wrap:normal;
 padding:6px 9px;border:1px solid var(--credits-border);border-radius:8px;
 background:var(--credits-bg);box-shadow:0 3px 12px #0002;color:var(--credits-muted);
 font:10px/1.4 sans-serif;opacity:0;visibility:hidden;pointer-events:none;
 transform:translate(8px,50%);transition:opacity .18s ease,transform .18s ease,visibility .18s;
}
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib[open] .maplibregl-ctrl-attrib-inner{
 opacity:1;visibility:visible;pointer-events:auto;transform:translate(0,50%);
}
:is(.tatouage-vector-map,.map-note-credits) details::details-content{content-visibility:visible}
@starting-style{
 :is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib[open] .maplibregl-ctrl-attrib-inner{
  opacity:0;transform:translate(8px,50%);
 }
}
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib-inner a{color:var(--credits-text)}
@media(prefers-reduced-motion:reduce){
 :is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib-inner{transition:none}
}

/* Map controls: consistent pointer, keyboard focus and attribution at every size. */
.tatouage-vector-map .maplibregl-ctrl-group button,
.tatouage-vector-map .maplibregl-ctrl-compass,
.tatouage-vector-map .maplibregl-ctrl-group button:focus{box-shadow:none!important;outline:0}
.tatouage-vector-map .maplibregl-ctrl-group button:focus-visible{outline:2px solid var(--map-accent)!important;outline-offset:-3px}

/* The map surface is never outlined on Tab, Space or Escape. Interactive controls
   and marker buttons keep their own focus treatment. */
.tatouage-vector-map:focus,.tatouage-vector-map:focus-visible,
.tatouage-vector-map .maplibregl-canvas:focus,
.tatouage-vector-map .maplibregl-canvas:focus-visible{outline:none!important;box-shadow:none!important}
/* Precisely centered vector 'i', independent of italic font metrics and
   native summary markers. Applies to small cards and the external credit slot. */
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib-button{
 display:grid;place-items:center;appearance:none;-webkit-appearance:none;
 text-align:center;list-style:none;font-size:0;
}
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib-button::marker{content:''}
:is(.tatouage-vector-map,.map-note-credits) .maplibregl-ctrl-attrib-button::before{
 content:'';display:block;width:14px;height:14px;position:static;margin:0;padding:0;
 background:currentColor;
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='3.5' r='1.25'/%3E%3Crect x='5.9' y='5.7' width='2.2' height='6.1' rx='.65'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='3.5' r='1.25'/%3E%3Crect x='5.9' y='5.7' width='2.2' height='6.1' rx='.65'/%3E%3C/svg%3E") center/contain no-repeat;
}
