
.pos-box{position:relative}
.pos-demo{margin:0 0 10px;font-size:11.5px;color:var(--muted)}
.pos-head{display:flex;align-items:center;gap:10px;margin:0 0 10px;min-height:28px}
.pos-st{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:650;padding:5px 12px 5px 10px;border-radius:999px;border:1px solid var(--line);background:var(--white);color:var(--ink)}
.pos-st::before{content:"";width:9px;height:9px;border-radius:50%;background:#8a98a0}
.pos-st.pos-u{border-color:#e98b55}.pos-st.pos-u::before{background:#e98b55}
.pos-st.pos-c{border-color:#16786f}.pos-st.pos-c::before{background:#16786f}
.pos-st.pos-pop{animation:pospop .5s ease-out}
@keyframes pospop{0%{transform:scale(.92)}60%{transform:scale(1.06)}100%{transform:scale(1)}}
.pos-empty{margin:0;font-size:13px;color:var(--muted)}
.pos-search{position:relative;margin:0 0 10px}
.pos-search label{display:block;font-size:12px;font-weight:650;color:var(--muted);margin-bottom:4px}
.pos-search input{width:100%;box-sizing:border-box}
.pos-list{position:absolute;z-index:20;left:0;right:0;top:100%;margin:4px 0 0;padding:6px;list-style:none;background:var(--white);border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 34px -14px rgba(20,47,67,.45)}
.pos-list[hidden]{display:none}
.pos-list li{display:flex;flex-direction:column;gap:2px;padding:9px 11px;border-radius:10px;cursor:pointer;color:var(--ink);font-size:14px;min-height:44px;justify-content:center;box-sizing:border-box}
.pos-list li span{font-size:12px;color:var(--muted)}
.pos-list li[aria-selected="true"],.pos-list li[data-i]:hover{background:rgba(22,120,111,.12)}
.pos-list .pos-none,.pos-list .pos-foot{cursor:default;font-size:12px;color:var(--muted);min-height:0}
.pos-mapbox{position:relative;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--paper)}
.pos-map{height:360px;width:100%}
.pos-mapstate{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;text-align:center;background:var(--white);padding:16px;font-size:13px;color:var(--muted)}
.pos-mapstate[hidden]{display:none}
.pos-mapstate>div{display:flex;flex-direction:column;gap:10px;align-items:center;max-width:320px}
.pos-help{margin:10px 0 0;font-size:12.5px;color:var(--muted)}
.pos-warn{margin:10px 0 0;padding:10px 12px;border-radius:12px;font-size:13px;line-height:1.45;background:#fff4e8;border:1px solid #f0c9a3;color:#7a4513}
.pos-warn[hidden],.pos-note[hidden]{display:none}
.pos-note{margin:8px 0 0;font-size:12px;color:var(--muted)}
.pos-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.pos-actions .btn{min-height:44px!important;padding-top:10px;padding-bottom:10px}
.pos-actions .btn[disabled],.pos-actions .btn[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
.pos-actions .btn,.pos-search input{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.pos-actions .btn:active:not([disabled]){transform:scale(.97)}
.pos-pin{width:36px;height:46px;cursor:grab;touch-action:none}
.pos-pin .pos-sh{fill:rgba(20,47,67,.35);stroke:none}
.pos-pin svg{width:100%;height:100%;display:block}
.pos-pin path{fill:#e98b55;stroke:#fff;stroke-width:2}.pos-pin circle{fill:#fff}
.pos-pin.c path{fill:#16786f}
.pos-pin:focus-visible{outline:3px solid #142f43;outline-offset:3px;border-radius:8px}
.pos-pin:active{cursor:grabbing}
.pos-zone{pointer-events:none}
.pos-zone span{display:inline-block;font-size:12px;padding:5px 11px;border-radius:999px;background:var(--white);color:var(--ink);border:1.5px dashed #16786f;box-shadow:0 3px 10px -3px rgba(20,47,67,.4);white-space:nowrap}
.pos-actions .btn:focus-visible,.pos-search input:focus-visible,.pos-list li:focus-visible{outline:2px solid #e98b55;outline-offset:2px}
html[data-theme="dark"] .pos-warn{background:#3a2a1a;border-color:#6d4a2d;color:#ffd9b3}
html[data-theme="dark"] .pos-list{box-shadow:0 14px 34px -14px rgba(0,0,0,.7)}
html[data-theme="dark"] .pos-pin path{stroke:#1b2832}
html[data-theme="dark"] .pos-pin circle{fill:#1b2832}
html[data-theme="dark"] .maplibregl-ctrl-attrib{background:rgba(17,27,36,.7)!important}
html[data-theme="dark"] .maplibregl-ctrl-attrib a{color:#b0bec7!important}
@media(max-width:700px){
.pos-map{height:clamp(340px,62vh,560px)}
.pos-actions{position:sticky;bottom:calc(66px + env(safe-area-inset-bottom,0px));z-index:15;margin:12px -4px 0;padding:10px 4px;background:var(--white);border-top:1px solid var(--line)}
.pos-actions .btn{flex:1 1 100%;justify-content:center}
.pos-box{padding-left:12px;padding-right:12px}
}
@media(prefers-reduced-motion:reduce){.pos-st.pos-pop{animation:none}}

/* Pastille d'état : texte par défaut tant que l'état n'est pas calculé (évite une pastille réduite à son point sur mobile) */
.pos-st:empty::after{content:"Position approximative"}
