:root{
  --purple:#6338f5;
  --purple-2:#7b5cff;
  --ink:#15131f;
  --muted:#66627a;
  --line:#e9e7f0;
  --soft:#f7f5fb;
  --shadow:0 18px 50px rgba(37,28,82,.12);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff}
button,input,select{font:inherit}
button{cursor:pointer}
.map-page-body{overflow:hidden}
.map-explorer{height:calc(100vh - 78px);display:flex;flex-direction:column;background:#fff}
.map-toolbar{position:relative;z-index:500;padding:18px 28px 15px;border-bottom:1px solid var(--line);background:#fff;box-shadow:0 7px 20px rgba(39,30,73,.04)}
.map-search-line{display:grid;grid-template-columns:minmax(260px,1.05fr) minmax(180px,.7fr) minmax(180px,.7fr) minmax(210px,.8fr) 118px;gap:12px;max-width:1400px;margin:0 auto}
.map-search-field{height:48px;display:flex;align-items:center;gap:11px;padding:0 14px;border:1px solid #dfdce8;border-radius:11px;background:#fff;box-shadow:0 4px 12px rgba(35,29,63,.05)}
.map-search-field svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;color:#49445d;flex:0 0 auto}
.map-search-field input,.map-search-field select{width:100%;border:0;outline:0;background:transparent;color:#1c1926;min-width:0}
.map-search-field select{appearance:none}
.map-search-submit{border:0;border-radius:11px;color:#fff;font-weight:800;background:linear-gradient(135deg,#7148ff,#5a30ed);box-shadow:0 9px 20px rgba(99,56,245,.24)}
.map-filter-row{max-width:1400px;margin:14px auto 0;display:flex;align-items:center;gap:9px;overflow-x:auto;scrollbar-width:none}
.map-filter-row::-webkit-scrollbar{display:none}
.map-category-chips{display:flex;gap:9px}
.map-filter-chip{height:40px;display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;padding:0 17px;border:1px solid #e2dfeb;border-radius:999px;background:#fff;color:#1d1a27;font-weight:700}
.map-filter-chip svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
.map-filter-chip .chip-icon{display:inline-flex;width:18px;height:18px}
.map-filter-chip .chip-icon svg{width:100%;height:100%}
.map-filter-chip.active{border-color:var(--purple);color:#fff;background:linear-gradient(135deg,#7047ff,#5a30ef);box-shadow:0 8px 18px rgba(99,56,245,.22)}
.map-filter-more-mobile,.mobile-map-heading,.mobile-results-sheet,.mobile-weekend-chip,.map-location-chip{display:none}
.map-more-filters{position:absolute;right:32px;top:132px;width:min(640px,calc(100% - 64px));padding:18px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow)}
.map-more-filters[hidden]{display:none}
.map-more-filters label{display:grid;gap:7px;color:#4e4960;font-size:13px;font-weight:700}
.map-more-filters input,.map-more-filters select{height:42px;border:1px solid #ddd9e7;border-radius:9px;padding:0 11px;background:#fff}
.map-filter-checkbox{grid-column:1/-1;display:flex!important;grid-template-columns:auto 1fr!important;align-items:center}
.map-filter-checkbox input{width:18px;height:18px}
.map-more-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px}
.map-more-actions button{height:41px;padding:0 18px;border:1px solid #ddd9e7;border-radius:9px;background:#fff;font-weight:750}
.map-more-actions .primary{border-color:var(--purple);color:#fff;background:var(--purple)}
.map-workspace{min-height:0;flex:1;display:grid;grid-template-columns:minmax(430px,45%) 1fr}
.desktop-results-panel{min-height:0;display:flex;flex-direction:column;padding:20px 22px 16px;border-right:1px solid var(--line);background:#fff}
.results-panel-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:14px}
.results-panel-head h1{margin:0 0 9px;font-size:22px;letter-spacing:-.45px}
.sort-control{height:40px;display:inline-flex;align-items:center;gap:5px;padding:0 11px;border:1px solid #dedbe7;border-radius:8px;color:#403b50}
.sort-control select{border:0;background:transparent;outline:0;font-weight:750}
.view-switch{display:flex;border:1px solid #dedbe7;border-radius:9px;overflow:hidden;background:#fff}
.view-switch button{height:40px;padding:0 13px;border:0;border-right:1px solid #e2dfe8;background:#fff;color:#373244;font-weight:700}
.view-switch button:last-child{border-right:0}
.view-switch button.active{color:var(--purple);background:#f1edff}
.desktop-events-list{min-height:0;flex:1;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:11px;overflow-y:auto;padding:2px 5px 12px 0;scrollbar-width:thin}
.desktop-events-list>.map-list-card{flex:0 0 auto;height:auto}
.desktop-events-list.grid-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start}
.map-list-card{position:relative;display:grid;grid-template-columns:178px 1fr;min-height:116px;border:1px solid #e2dfe8;border-radius:12px;overflow:hidden;background:#fff;color:inherit;text-decoration:none;box-shadow:0 4px 12px rgba(27,21,58,.05);transition:.18s ease}
.map-list-card:hover,.map-list-card.selected{border-color:#b7a9ff;box-shadow:0 10px 22px rgba(75,51,165,.12);transform:translateY(-1px)}
.grid-mode .map-list-card{grid-template-columns:1fr;min-height:290px}
.map-list-card img{width:100%;height:100%;min-height:116px;object-fit:cover;background:#eee}
.grid-mode .map-list-card img{height:165px}
.map-card-content{min-width:0;padding:13px 42px 12px 16px}
.map-card-content h3{margin:0 0 6px;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.map-card-place{margin:0 0 13px;color:#4d485e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.map-card-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#403b50;font-size:14px}
.map-card-meta span{display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border-radius:999px;background:#f7f6fa}
.map-card-meta .distance{padding-left:0;background:transparent}
.map-card-meta .time{color:var(--purple);background:#f0edff;font-weight:800}
.map-card-meta .free{color:#198a46;background:#eaf8ef}
.map-card-favorite{position:absolute;right:14px;top:13px;border:0;background:transparent;color:#8f8aa2;font-size:26px;line-height:1}
.map-card-favorite.active{color:#ef2b65}
.map-card-badge{position:absolute;left:9px;top:9px;padding:5px 8px;border-radius:6px;color:#fff;background:var(--badge-color,#6338f5);font-size:10px;font-weight:900;text-transform:uppercase;z-index:2}
.load-more-button{align-self:center;margin-top:7px;height:40px;padding:0 30px;border:1px solid #ddd9e7;border-radius:9px;background:#fff;color:#4b465b;font-weight:700}
.map-canvas-wrap{position:relative;min-width:0;min-height:0;background:#eef1f4}
.explore-map{position:absolute;inset:0}
.map-floating-actions{position:absolute;z-index:450;right:18px;top:18px;display:flex;gap:10px}
.search-on-move,.map-floating-actions button{height:44px;display:flex;align-items:center;gap:8px;padding:0 14px;border:1px solid #dedbe7;border-radius:10px;background:#fff;box-shadow:0 7px 18px rgba(30,25,58,.12);font-weight:700}
.search-on-move input{width:18px;height:18px;accent-color:var(--purple)}
.map-recenter{position:absolute;right:18px;bottom:160px;z-index:450;width:48px;height:48px;display:grid;place-items:center;border:0;border-radius:12px;background:#fff;color:#312c42;box-shadow:0 8px 22px rgba(24,19,52,.16)}
.map-recenter svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}
.map-recenter span{display:none}
.map-selection-card{position:absolute;z-index:450;right:18px;bottom:18px;width:min(470px,calc(100% - 36px));display:grid;grid-template-columns:180px 1fr;padding:10px;border:1px solid #dedbe7;border-radius:14px;background:#fff;box-shadow:0 18px 45px rgba(30,21,70,.2)}
.map-selection-card[hidden]{display:none}
.map-selection-close{
  position:absolute;
  z-index:3;
  right:9px;
  top:9px;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:#29243a;
  box-shadow:0 4px 12px rgba(30,21,70,.16);
  font-size:22px;
  line-height:1;
}
.map-selection-card img{width:100%;height:180px;border-radius:10px;object-fit:cover}
.map-selection-copy{padding:7px 10px 5px 16px}
.map-selection-copy h3{margin:0 0 7px;font-size:18px}
.map-selection-copy p{margin:5px 0;color:#575165}
.map-selection-copy .selection-meta{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}
.map-selection-copy .selection-meta span{font-size:13px}
.map-selection-copy a{height:42px;display:flex;align-items:center;justify-content:center;border-radius:9px;color:#fff;background:linear-gradient(135deg,#7047ff,#5a30ef);text-decoration:none;font-weight:850}
.map-marker-wrap{
  width:44px!important;
  height:52px!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  overflow:visible!important;
  cursor:pointer!important;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.map-event-marker{
  position:relative;
  width:44px;
  height:52px;
  display:block;
  color:#fff;
  transform:translateZ(0);
}
.map-pin-shape{
  position:absolute;
  inset:0;
  width:44px;
  height:52px;
  display:block;
  overflow:visible;
  filter:drop-shadow(0 5px 5px rgba(31,22,65,.22));
  shape-rendering:geometricPrecision;
}
.map-user-marker-wrap{
  width:24px!important;
  height:24px!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  overflow:visible!important;
}
.map-user-dot{
  display:block;
  width:24px;
  height:24px;
  aspect-ratio:1/1;
  box-sizing:border-box;
  border:4px solid #fff;
  border-radius:999px;
  background:#2781ff;
  box-shadow:0 0 0 13px rgba(39,129,255,.16),0 5px 14px rgba(20,80,180,.3);
}
.map-loading,.map-empty{padding:28px;text-align:center;color:#625d72}
.leaflet-control-zoom{border:0!important;box-shadow:0 7px 18px rgba(30,25,58,.13)!important}
.leaflet-control-zoom a{border:0!important;color:#262133!important}
@media(max-width:1180px){
  .map-search-line{grid-template-columns:minmax(230px,1fr) 160px 165px 190px 105px}
  .map-workspace{grid-template-columns:minmax(390px,45%) 1fr}
  .map-list-card{grid-template-columns:145px 1fr}
  .view-switch button{padding:0 10px}
}
@media(max-width:920px){
  .map-page-body{overflow:auto;background:#fff}
  .map-explorer{height:auto;min-height:100dvh}
  .map-toolbar{padding:14px 20px 10px;border:0;box-shadow:0 8px 20px rgba(34,26,70,.06)}
  .mobile-map-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}
  .mobile-map-heading h1{margin:0;font-size:31px;letter-spacing:-1.15px}
  .mobile-filter-trigger{height:44px;display:flex;align-items:center;gap:8px;padding:0 17px;border:1px solid #ddd8f2;border-radius:999px;color:#37305b;background:#fff;font-weight:750}
  .mobile-filter-trigger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}
  .map-search-line{display:block}
  .map-search-main{height:48px}
  .map-search-main input{font-size:15px}
  .desktop-map-control{display:none!important}
  .map-filter-row{margin-top:8px;padding-bottom:1px}
  .map-filter-chip{height:39px;padding:0 13px;background:#f4f1fb;font-size:14px}
  .map-location-chip{display:inline-flex;color:var(--purple);background:#eee9ff;border-color:#d9ceff;font-weight:850}
  .map-location-chip svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
  .map-filter-chip[data-quick-filter="all"]{display:none}
  .mobile-weekend-chip,.map-filter-more-mobile{display:inline-flex}
  .map-category-chips .map-filter-chip:nth-child(n+3){display:none}
  .map-more-filters{position:fixed;z-index:2000;left:12px;right:12px;top:auto;bottom:92px;width:auto;grid-template-columns:1fr 1fr;padding:18px;border-radius:20px}
  .map-more-filters label:first-child{grid-column:1/-1}
  .map-workspace{display:block}
  .desktop-results-panel{display:none}
  .map-canvas-wrap{height:425px}

  .map-marker-wrap{
    width:46px!important;
    height:54px!important;
  }
  .map-event-marker,
  .map-pin-shape{
    width:46px;
    height:54px;
  }
  .map-event-marker-icon{
    top:22px;
  }
  .map-floating-actions{display:none}
  .map-recenter{right:20px;bottom:40px;width:78px;height:78px;border-radius:22px;color:var(--purple)}
  .map-recenter span{display:block;font-size:12px;font-weight:800}
  .map-recenter svg{width:29px;height:29px}
  .mobile-results-sheet{position:relative;z-index:500;display:block;margin-top:-28px;padding:11px 20px 26px;border-radius:30px 30px 0 0;background:#fff;box-shadow:0 -12px 30px rgba(37,29,75,.12)}
  .mobile-sheet-handle{width:70px;height:5px;margin:0 auto 18px;border-radius:999px;background:#c8c4d5}
  .mobile-results-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}
  .mobile-results-head h2{margin:0 0 5px;font-size:20px}
  .mobile-results-head p{margin:0;color:#5f5878}
  .mobile-sort{display:flex;align-items:center;gap:4px;color:var(--purple);font-weight:800}
  .mobile-sort select{max-width:82px;border:0;color:var(--purple);background:transparent;font-weight:800}
  .mobile-events-list{display:grid;gap:12px}
  .mobile-events-list .map-list-card{grid-template-columns:42% 58%;min-height:176px;border-radius:18px}
  .mobile-events-list .map-list-card img{min-height:176px}
  .mobile-events-list .map-card-content{padding:18px 36px 12px 14px}
  .mobile-events-list .map-card-content h3{font-size:18px;white-space:normal}
  .mobile-events-list .map-card-place{white-space:normal;line-height:1.35}
  .mobile-events-list .map-card-meta{gap:7px}
  .mobile-events-list .map-card-meta span{font-size:13px}
  .map-selection-card{
    left:12px;
    right:12px;
    bottom:12px;
    width:auto;
    grid-template-columns:104px minmax(0,1fr);
    gap:0;
    padding:8px;
    border-radius:17px;
    box-shadow:0 16px 38px rgba(30,21,70,.26);
  }
  .map-selection-card img{
    width:104px;
    height:112px;
    border-radius:12px;
  }
  .map-selection-copy{
    min-width:0;
    padding:7px 31px 5px 12px;
  }
  .map-selection-copy h3{
    margin:0 0 4px;
    font-size:16px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .map-selection-copy p{
    margin:3px 0;
    font-size:12px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .map-selection-copy .selection-meta{
    gap:7px;
    margin:7px 0;
  }
  .map-selection-copy .selection-meta span{
    font-size:11px;
  }
  .map-selection-copy a{
    height:35px;
    font-size:13px;
  }
  .map-selection-close{
    right:7px;
    top:7px;
    width:28px;
    height:28px;
    font-size:19px;
  }
  .map-canvas-wrap.selection-open .map-recenter{
    bottom:150px;
  }
}
@media(max-width:520px){
  .map-toolbar{padding-left:16px;padding-right:16px}
  .mobile-map-heading h1{font-size:31px}
  .map-canvas-wrap{height:390px}
  .mobile-results-sheet{padding-left:14px;padding-right:14px}
  .mobile-events-list .map-list-card{grid-template-columns:41% 59%;min-height:166px}
  .mobile-events-list .map-list-card img{min-height:166px}
}


.map-pin-shape{
  shape-rendering:geometricPrecision;
  text-rendering:geometricPrecision;
}




.map-pin-category-icon{
  pointer-events:none;
  color:#fff;
}
.map-pin-category-icon *{
  vector-effect:non-scaling-stroke;
}

/* V3.39 — le filtre de date conserve la date précise et permet « Toute ». */
.map-date-field{gap:8px;padding-right:6px}
.map-date-field input{min-width:0}
.map-date-all{flex:0 0 auto;height:32px;padding:0 9px;border:1px solid #dcd7e8;border-radius:8px;background:#f7f5fb;color:#5f5870;font-size:11px;font-weight:800}
.map-date-all:hover,.map-date-all.active{border-color:var(--purple);color:var(--purple);background:#f0ecff}
.map-date-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}
.map-date-input-row input{width:100%;min-width:0}
.map-date-input-row .map-date-all{height:42px}
