/* Cartes MapLibre (07/10/2026) */
.maplibregl-map { font: inherit; }
.cml-btn { display: grid !important; place-items: center; font-size: 12px; color: var(--ink, #1a1a2e); }
.cml-btn b { font-weight: 800; letter-spacing: .02em; }
.cml-btn.cml-on { background: var(--indigo-soft, #eef2ff) !important; color: var(--indigo-dark, #4338ca); }
.cml-popup .maplibregl-popup-content { padding: 10px; border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); }
.cml-popup .maplibregl-popup-close-button { font-size: 18px; width: 26px; height: 26px; right: 2px; top: 2px; border-radius: 50%; background: rgba(255,255,255,.9); z-index: 1; }
.cml-popup .ria-popup { width: auto; }
.cml-baisse { color: #dc2626; font-weight: 700; font-size: 12px; }
.cml-voir { display: block; margin-top: 6px; color: var(--indigo-dark, #4338ca); font-weight: 700; font-size: 12.5px; }
.cml-zone { position: absolute; top: 12px; left: 50%; transform: translate(-50%, -8px); z-index: 2; display: flex; gap: 6px; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 120px); }
.cml-zone.cml-zone-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.cml-zone-btn, .cml-zone-reset, .cml-zone-info { font: inherit; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 7px 14px;
    border: 1px solid var(--line, #e5e7eb); background: #fff; color: var(--ink, #1a1a2e); box-shadow: 0 4px 14px rgba(15, 23, 42, .15); cursor: pointer; white-space: nowrap; }
.cml-zone-btn { background: var(--indigo-dark, #4338ca); color: #fff; border-color: transparent; }
.cml-zone-info { cursor: default; font-weight: 600; }
.cml-note { position: absolute; left: 10px; bottom: 34px; z-index: 2; font-size: 12px; font-weight: 600; color: var(--muted, #64748b);
    background: rgba(255, 255, 255, .92); border-radius: 8px; padding: 4px 9px; max-width: calc(100% - 20px); }
.cml-hors-zone { display: none !important; }
.cml-point { width: 18px; height: 18px; border-radius: 50%; background: #4f46e5; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(79, 70, 229, .5); cursor: pointer; }
.cml-point.cml-comparable { width: 12px; height: 12px; border-width: 2px; background: #f59e0b; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
#ria-carte, #map-agence, #map { position: relative; }

html[data-theme="dark"] .maplibregl-ctrl-group { background: var(--surface); }
html[data-theme="dark"] .maplibregl-ctrl-group button + button { border-top-color: var(--line); }
html[data-theme="dark"] .maplibregl-ctrl-icon { filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] .cml-btn { color: var(--ink); }
html[data-theme="dark"] .cml-btn.cml-on { background: #2a2f55 !important; color: #c7d2fe; }
html[data-theme="dark"] .maplibregl-ctrl-attrib { background: rgba(15, 17, 32, .8) !important; color: #a0a7bd; }
html[data-theme="dark"] .maplibregl-ctrl-attrib a { color: #a5b4fc; }
html[data-theme="dark"] .maplibregl-ctrl-attrib-button { filter: invert(1); }
html[data-theme="dark"] .maplibregl-ctrl-scale { background: rgba(15, 17, 32, .7); color: #cbd5e1; border-color: #94a3b8; }
html[data-theme="dark"] .cml-popup .maplibregl-popup-content { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .cml-popup .maplibregl-popup-tip { border-top-color: var(--surface); border-bottom-color: var(--surface); }
html[data-theme="dark"] .cml-popup .maplibregl-popup-close-button { background: rgba(15, 17, 32, .8); color: #e2e8f0; }
html[data-theme="dark"] .cml-zone-reset, html[data-theme="dark"] .cml-zone-info { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .cml-note { background: rgba(15, 17, 32, .85); color: #a0a7bd; }
html[data-theme="dark"] .cml-point { border-color: var(--surface); }
html[data-theme="dark"] .cml-voir { color: #a5b4fc; }
@media (max-width: 720px) { .cml-zone { top: 10px; max-width: calc(100% - 70px); left: calc(50% - 22px); } }
