/* Le thème contraint .entry-content à une largeur de lecture (~700px) même
   sur le template pleine largeur : on la lève spécifiquement pour la page
   de la carte, pour exploiter toute la largeur disponible. */
body.page-id-3590 .entry-content{max-width:none!important;}

.anm-page{font-family:inherit;width:100%;margin:0 auto;}
.anm-page *{box-sizing:border-box;}
.anm-loading{text-align:center;color:#888;padding:60px 0;}
.anm-credit{font-size:0.78em;color:#999;margin:10px 2px 0;}
.anm-credit a{color:#7a5fd6;}

.anm-layout{display:flex;gap:0;height:720px;max-height:78vh;border:1px solid #ece5fa;border-radius:16px;overflow:hidden;box-shadow:0 4px 16px rgba(90,70,160,0.08);}

.anm-sidebar{width:290px;flex:none;background:#fbfaff;border-right:1px solid #ece5fa;display:flex;flex-direction:column;padding:14px;overflow-y:auto;}
.anm-search{padding:9px 12px;border-radius:10px;border:2px solid #e5ddf5;font-size:0.85em;margin-bottom:10px;width:100%;}
.anm-sidebar-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;}
.anm-btn{border:1px solid #ddd0f5;background:#fff;color:#5b4a94;padding:5px 10px;border-radius:8px;font-size:0.75em;cursor:pointer;font-weight:600;}
.anm-region-toggle{font-size:0.78em;color:#5b4a94;display:flex;align-items:center;gap:4px;white-space:nowrap;}
.anm-count{font-size:0.75em;color:#999;margin:0 0 10px;}

.anm-cats{display:flex;flex-direction:column;gap:6px;}
.anm-cat{border:1px solid #ece5fa;border-radius:10px;overflow:hidden;background:#fff;}
.anm-cat-head{display:flex;align-items:center;justify-content:space-between;padding:2px 4px;cursor:pointer;}
.anm-cat-toggle-all{flex:1;text-align:left;background:none;border:none;padding:8px 6px;font-weight:700;font-size:0.82em;color:#3a2b5e;cursor:pointer;}
.anm-cat-arrow{padding-right:8px;color:#aaa;font-size:0.7em;transition:transform .15s ease;}
.anm-cat.is-collapsed .anm-cat-arrow{transform:rotate(-90deg);}
.anm-cat.is-collapsed .anm-cat-body{display:none;}
.anm-cat-body{padding:2px 8px 8px;display:flex;flex-direction:column;gap:2px;}
.anm-type-row{display:flex;align-items:center;gap:7px;padding:4px 4px;border-radius:6px;font-size:0.78em;color:#4a3b74;cursor:pointer;}
.anm-type-row:hover{background:#f6f2ff;}
.anm-type-row img{width:18px;height:18px;object-fit:contain;flex:none;}
.anm-type-row input{flex:none;}

.anm-map-wrap{flex:1;position:relative;}
#anm-leaflet{width:100%;height:100%;background:#1a1430;}

.anm-marker-icon img{width:22px;height:22px;object-fit:contain;filter:drop-shadow(0 1px 3px rgba(0,0,0,0.6));cursor:pointer;}
.anm-region-tooltip{font-size:0.78em;font-weight:700;color:#3a2b5e;}

.anm-modal-overlay{position:fixed;inset:0;background:rgba(25,15,50,0.55);z-index:9999;display:flex;align-items:center;justify-content:center;padding:16px;}
.anm-modal-overlay[hidden]{display:none;}
.anm-modal{background:#fff;border-radius:16px;max-width:420px;width:100%;position:relative;box-shadow:0 30px 60px rgba(0,0,0,0.3);padding:20px 22px;}
.anm-modal-close{position:absolute;top:10px;right:12px;background:#f0ecfa;border:none;border-radius:50%;width:28px;height:28px;font-size:1.1em;cursor:pointer;color:#3a2b5e;}
.anm-modal-head{display:flex;align-items:center;gap:12px;margin-bottom:8px;}
.anm-modal-head img{width:36px;height:36px;object-fit:contain;flex:none;}
.anm-modal-head h3{margin:0;font-size:1.05em;color:#2a2340;}
.anm-modal-type{font-size:0.75em;color:#8a7ac0;font-weight:700;text-transform:uppercase;letter-spacing:.03em;}
.anm-modal-desc{margin:0;font-size:0.88em;color:#5b4a94;line-height:1.5;}

@media (max-width:820px){
	.anm-layout{flex-direction:column;height:auto;}
	.anm-sidebar{width:100%;max-height:280px;border-right:none;border-bottom:1px solid #ece5fa;}
	.anm-map-wrap{height:480px;}
}
