/* MapPicker (Leaflet) — partage par le backoffice et le site public */
.mp { border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; background: #fff; }
.mp-toolbar { display: flex; gap: 8px; padding: 10px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; }
.mp-search { position: relative; flex: 1 1 240px; }
.mp-search input { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 12px; font-size: .92rem; background: #fff; }
.mp-search input:focus { outline: none; border-color: var(--app-primary, #0f766e); box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-primary, #0f766e) 18%, transparent); }
.mp-results { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(15, 23, 42, .15); max-height: 260px; overflow-y: auto; }
.mp-results:empty { display: none; }
.mp-results button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 9px 12px; font-size: .88rem; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.mp-results button:hover { background: #f1f5f9; }
.mp-empty { padding: 10px 12px; color: #64748b; font-size: .88rem; }
.mp-locate { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: .9rem; color: #fff; background: var(--app-primary, #0f766e); cursor: pointer; white-space: nowrap; }
.mp-locate:hover { filter: brightness(.93); }
.mp-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.mp-loading .mp-dot { animation: mp-pulse 1s infinite; }
@keyframes mp-pulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(255,255,255,.6); } 50% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } }
.mp-canvas { height: 340px; }
.mp-status { padding: 8px 12px; font-size: .85rem; color: #475569; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.mp-status.mp-ok { color: #166534; background: #f0fdf4; }
.mp-status.mp-error { color: #991b1b; background: #fef2f2; }
.mp-pin span { display: block; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); margin: 0 0 0 2px; }
[data-map-view] { height: 360px; border-radius: 14px; overflow: hidden; z-index: 0; }
@media (max-width: 640px) { .mp-canvas { height: 280px; } .mp-locate { width: 100%; justify-content: center; } }
