/* Rayon sur une carte */
.carte-haut { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.carte-cherche { position: relative; min-width: 0; }
.carte-champ::-webkit-search-cancel-button { cursor: pointer; }
.carte-pos { height: 46px; padding: 0 16px; border-radius: 12px; }
.carte-res { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; margin: 0; padding: 6px; max-height: 300px; overflow-y: auto; list-style: none; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -20px rgba(12, 12, 24, .4); }
.carte-res li { padding: 10px 12px; border-radius: 10px; font-size: 15px; line-height: 1.35; color: var(--ink); cursor: pointer; }
.carte-res li:hover, .carte-res li[aria-selected="true"] { background: var(--tint); color: var(--red-deep); }
.carte-res .carte-res-vide, .carte-res .carte-res-vide:hover { background: none; color: var(--muted); cursor: default; }

.carte-cadre { position: relative; z-index: 0; isolation: isolate; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.carte-map { height: 460px; background: #e8ecef; font: 400 13px/1.4 var(--body); }
.carte-map:focus-visible { outline-offset: -2px; }
.carte-aide { position: absolute; left: 50%; top: 14px; z-index: 1000; transform: translateX(-50%); width: max-content; max-width: calc(100% - 110px); padding: 9px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 12px 24px -14px rgba(12, 12, 24, .5); font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ink); text-align: center; pointer-events: none; }
.carte-map .leaflet-control-attribution { padding: 2px 8px; font-size: 13px; line-height: 1.5; color: var(--text); }
.carte-map .leaflet-control-attribution a { color: var(--text); text-decoration: underline; }
.carte-map .leaflet-bar a { width: 36px; height: 36px; line-height: 36px; color: var(--ink); }

/* Poignées : le centre (pastille pleine) et le bord (anneau), 34 px sous le doigt */
.carte-poignee { display: grid; place-items: center; touch-action: none; cursor: grab; }
.carte-poignee:active { cursor: grabbing; }
.carte-poignee i { display: block; border-radius: 50%; box-shadow: 0 2px 8px rgba(12, 12, 24, .4); transition: transform .2s var(--ease); }
.carte-centre i { width: 20px; height: 20px; border: 3px solid #fff; background: var(--c); }
.carte-bord i { width: 24px; height: 24px; border: 4px solid var(--c); background: #fff; }
.carte-poignee:hover i, .carte-poignee:active i { transform: scale(1.18); }

.carte-liste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.carte-puce { display: inline-flex; align-items: center; height: 40px; border-radius: 11px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.carte-puce.on { background: var(--soft); box-shadow: 0 0 0 1.5px rgba(12, 12, 24, .5); }
.carte-puce-nom { display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 4px 0 12px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.carte-puce-nom i { width: 12px; height: 12px; border-radius: 50%; }
.carte-puce-x { display: grid; place-items: center; width: 34px; height: 100%; border-radius: 0 11px 11px 0; color: var(--muted); }
.carte-puce-x:hover { color: var(--red-deep); }
.carte-puce-x svg { width: 16px; height: 16px; }

.carte-rayon { display: grid; grid-template-columns: 1fr 132px; align-items: end; gap: 14px; padding: 12px 16px; border-radius: 16px; background: var(--soft); }
.carte-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.carte-stats .res { min-width: 0; }
.carte-stats .res b { display: block; white-space: nowrap; }
.carte-stats .res-main b { font-size: 28px; line-height: 1.25; }

@media (max-width: 600px) {
  .carte-map { height: min(400px, 62vh); }
  .carte-pos { padding: 0 13px; }
  .carte-pos span { display: none; }
  .carte-aide { top: 10px; max-width: calc(100% - 100px); font-size: 14px; }
  .carte-rayon { grid-template-columns: 1fr 112px; gap: 10px; padding: 10px 12px; }
  .carte-stats { grid-template-columns: 1fr 1fr; }
  .carte-stats .res-main { grid-column: 1 / -1; }
  .carte-stats .res b { font-size: 20px; }
  .carte-stats .res-main b { font-size: 28px; }
}
