/* Global Visit List — carte du monde de la homepage (ordinateur ≥ 900 px)
   Tablette et mobile : la carte n'existe pas, la homepage reste le tableau. */
.map-hero{--mh-bar:56px;--mh-list:360px;--mh-panel:400px;--mh-orange:#F97316;--mh-blue:#60A5FA;--mh-bg2:#F3F5F8;--mh-b1:#E3E8EE;--mh-b2:#D3DAE3;--mh-t2:#44546A;--mh-t3:#5B6B7F;
  position:relative;height:calc(100vh - var(--mh-top,111px));min-height:560px;overflow:hidden;background:#C9D3DE;color:var(--ink);font-size:15px}
@media (max-width:899px){.map-hero{display:none!important}}
.map-hero .dot{width:8px;height:8px;border-radius:50%;display:inline-block}
.map-hero .dot-com{background:var(--mh-orange)}.map-hero .dot-cc{background:var(--mh-blue)}.map-hero .dot-teal{background:#14B8A6}

/* barre du haut : chiffres + recherche */
.mh-bar{position:absolute;top:0;left:0;right:0;height:var(--mh-bar);z-index:80;display:flex;align-items:center;gap:20px;padding:0 20px;background:rgba(255,255,255,.9);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--mh-b1)}
.mh-stats{display:flex;gap:16px;font-size:13px;color:var(--mh-t2)}
.mh-stat{display:flex;align-items:center;gap:6px;white-space:nowrap}
.mh-stat b{font-family:var(--f-mono);color:var(--ink);font-weight:500}
.mh-search{margin-left:auto;position:relative;width:min(340px,34vw)}
.mh-search input{width:100%;height:38px;border-radius:999px;border:1px solid var(--mh-b2);background:#fff;padding:0 14px 0 38px;font:14px var(--f-body);color:var(--ink)}
.mh-search svg{position:absolute;left:12px;top:10px;opacity:.6}
.mh-results{position:absolute;top:44px;left:0;right:0;background:#fff;border:1px solid var(--mh-b2);border-radius:12px;box-shadow:0 18px 40px rgba(11,31,51,.25);max-height:60vh;overflow:auto;display:none;z-index:120}
.mh-results.on{display:block}
.mh-results button{display:flex;flex-direction:column;width:100%;text-align:left;padding:10px 14px;border:0;background:none;cursor:pointer;border-bottom:1px solid var(--mh-b1);font:14px var(--f-body);color:var(--ink)}
.mh-results button:hover,.mh-results button.act{background:var(--mh-bg2)}
.mh-results small{color:var(--mh-t3)}
.mh-link{font-size:13px;color:var(--mh-t2);white-space:nowrap}

/* carte */
/* sélecteur renforcé : maplibre-gl.css (chargé après) impose .maplibregl-map{position:relative} */
.map-hero .mh-map{position:absolute;top:var(--mh-bar);bottom:0;left:var(--mh-list);right:0;height:auto}

/* liste à gauche */
.mh-list{position:absolute;top:var(--mh-bar);left:0;bottom:0;width:var(--mh-list);z-index:50;background:#fff;border-right:1px solid var(--mh-b2);display:flex;flex-direction:column}
.mh-list-top{padding:14px 16px;border-bottom:1px solid var(--mh-b1);display:flex;flex-direction:column;gap:10px}
.mh-tabs{display:flex;gap:6px}
.mh-tab{flex:1;min-height:36px;border-radius:8px;border:1px solid var(--mh-b2);background:transparent;cursor:pointer;font:500 13px var(--f-body);color:var(--ink)}
.mh-tab[aria-selected="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.mh-az{display:flex;flex-wrap:wrap;gap:3px}
.mh-az[hidden]{display:none}
.mh-az button{width:26px;height:26px;border:0;border-radius:5px;background:var(--mh-bg2);font:12px var(--f-mono);color:var(--ink);cursor:pointer}
.mh-az button:hover{background:var(--mh-b2)}
.mh-az button.on{background:var(--accent);color:#fff}
.mh-count{font-size:13px;color:var(--mh-t3)}
.mh-list-body{flex:1;overflow:auto;padding:0 16px}
.mh-list-body h3{position:sticky;top:0;background:#fff;margin:0;padding:12px 0 6px;font:700 18px var(--f-display);color:var(--mh-orange);border-bottom:1px solid var(--mh-b2);z-index:1}
.mh-crow{display:flex;justify-content:space-between;align-items:center;width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--mh-b1);background:none;cursor:pointer;text-align:left;font:15px var(--f-body);color:var(--ink)}
.mh-crow b{font-family:var(--f-mono);font-weight:500;color:var(--mh-t2)}
.mh-crow:hover span{color:var(--accent)}

/* lignes Visit (liste, panneau) */
.mh-vlist{display:flex;flex-direction:column}
.mh-vrow{display:flex;gap:12px;align-items:center;padding:10px 0;border:0;border-bottom:1px solid var(--mh-b1);background:none;text-align:left;cursor:pointer;width:100%;font-family:var(--f-body);color:var(--ink)}
.mh-vrow[hidden]{display:none}
.mh-vrow:hover .mh-vname{color:var(--accent)}
.mh-mini{width:44px;height:30px;flex:none;border-radius:6px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--mh-b1)}
.mh-mini img{max-width:40px;max-height:26px;object-fit:contain}
.mh-nologo{font-size:10px;color:var(--mh-t3)}
.mh-vname{font-weight:600;font-size:14px;display:block}
.mh-vrow small{display:block;color:var(--mh-t3);font-family:var(--f-mono);font-size:12px}

/* pastilles de filtre (bas, centrées sur la carte) */
.mh-pills{position:absolute;bottom:32px;left:calc(50% + var(--mh-list) / 2);transform:translateX(-50%);z-index:40;display:flex;gap:8px;flex-wrap:wrap;justify-content:center;padding:0 16px;max-width:calc(100% - var(--mh-list))}
.mh-pill{display:flex;align-items:center;gap:6px;padding:8px 14px;background:#fff;border:1px solid var(--mh-b2);border-radius:999px;font:500 13px var(--f-body);color:var(--ink);cursor:pointer;white-space:nowrap;box-shadow:0 4px 14px rgba(11,31,51,.18);min-height:36px}
.mh-pill:hover{border-color:var(--mh-t3)}
.mh-pill[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.mh-pill b{font-family:var(--f-mono);font-weight:500;opacity:.8}
.mh-pill.down{position:relative;width:40px;padding:0;justify-content:center;background:var(--ink);border-color:var(--ink);color:#fff}
/* tentative de descendre hors de la carte : le bouton ↓ clignote + infobulle « Leave the map » */
.mh-pill.down::after{content:"Leave the map";position:absolute;bottom:calc(100% + 10px);left:50%;transform:translate(-50%,4px);padding:6px 10px;border-radius:8px;background:var(--ink);color:#fff;font:600 12px var(--f-body);white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;box-shadow:0 6px 18px rgba(11,31,51,.3)}
.mh-pill.down:hover::after,.mh-pill.down:focus-visible::after,.mh-pill.down.flash::after{opacity:1;transform:translate(-50%,0)}
.mh-pill.down.flash{animation:mh-flash .45s ease-in-out 4}
@keyframes mh-flash{0%,100%{background:var(--ink);border-color:var(--ink);box-shadow:0 4px 14px rgba(11,31,51,.18)}50%{background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 6px rgba(249,115,22,.35)}}
.mh-list-body,.mh-p-body,.mh-results{overscroll-behavior:contain}
/* flèche ↑ « Enter the Global Visit Map » (en haut de l'écran, quand on tente de remonter sur la carte) */
.mh-enter{position:fixed;top:14px;left:50%;z-index:95;display:flex;align-items:center;gap:10px;padding:6px 16px 6px 6px;border:1px solid rgba(255,255,255,.45);border-radius:999px;background:var(--ink);color:#fff;font:600 14px var(--f-body);cursor:pointer;box-shadow:0 10px 30px rgba(11,31,51,.35);opacity:0;pointer-events:none;transform:translate(-50%,-12px);transition:opacity .25s,transform .25s}
.mh-enter.on{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
.mh-enter-btn{width:34px;height:34px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center}
.mh-enter.flash .mh-enter-btn{animation:mh-flash-up .45s ease-in-out 5}
.mh-enter:hover .mh-enter-btn{background:#9A3412}
@keyframes mh-flash-up{0%,100%{background:var(--accent);box-shadow:none}50%{background:var(--mh-orange,#F97316);box-shadow:0 0 0 6px rgba(249,115,22,.4)}}
@media (max-width:899px){.mh-enter{display:none!important}}
.mh-pill.down svg,.mh-more svg{animation:mh-nudge 1.6s ease-in-out infinite}
@keyframes mh-nudge{0%,100%{transform:translateY(0)}50%{transform:translateY(4px)}}

/* panneau de droite */
.mh-panel{position:absolute;top:var(--mh-bar);bottom:0;right:calc(-1 * var(--mh-panel) - 30px);width:var(--mh-panel);z-index:70;background:#fff;border-left:1px solid var(--mh-b2);display:flex;flex-direction:column;transition:right .35s cubic-bezier(.4,0,.2,1)}
.mh-panel.on{right:0;box-shadow:-20px 0 60px rgba(11,31,51,.25)}
.mh-p-head{display:flex;gap:14px;align-items:flex-start;padding:20px;border-bottom:1px solid var(--mh-b1)}
.mh-p-logo{width:72px;height:72px;flex:none;border-radius:10px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--mh-b1)}
.mh-p-logo img{max-width:64px;max-height:64px;object-fit:contain}
.mh-p-logo.cc{font:500 22px var(--f-mono);color:var(--ink)}
.mh-p-titles{flex:1;min-width:0}
.mh-p-titles h2{font:700 22px/1.15 var(--f-display);margin:0 0 4px;letter-spacing:-.01em}
.mh-p-titles p{margin:0;color:var(--mh-t2);font-size:14px}
.mh-p-close,.mh-p-back{width:36px;height:36px;flex:none;border-radius:50%;border:1px solid var(--mh-b2);background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.mh-p-close:hover,.mh-p-back:hover{background:var(--mh-bg2)}
.mh-p-body{flex:1;overflow:auto;padding:20px}
.mh-sec{margin-bottom:22px}
.mh-sec-t{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--mh-t3);margin-bottom:10px}
.mh-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mh-kv div{background:var(--mh-bg2);border:1px solid var(--mh-b1);border-radius:10px;padding:10px 12px}
.mh-kv small{display:block;font-size:11px;color:var(--mh-t3)}
.mh-kv b{font-family:var(--f-mono);font-weight:500;font-size:14px}
.mh-by{margin:12px 0 0;font-size:14px;color:var(--mh-t2)}.mh-by b{color:var(--ink)}
.mh-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;border-radius:10px;border:1px solid var(--mh-b2);background:transparent;font:600 15px var(--f-body);cursor:pointer;color:var(--ink)}
.mh-btn:hover{text-decoration:none;background:var(--mh-bg2)}
.mh-btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.mh-btn.primary:hover{background:#9A3412}
.mh-more{min-height:56px;font-size:17px}
.mh-tags{display:flex;flex-wrap:wrap;gap:6px}
.mh-tag{font-size:12px;padding:3px 9px;border-radius:999px;background:var(--mh-bg2);border:1px solid var(--mh-b1);color:var(--mh-t2)}
.mh-bigline{display:flex;align-items:baseline;gap:10px}
.mh-bigline b{font:700 40px/1 var(--f-display)}
.mh-share{height:6px;border-radius:3px;background:var(--mh-b1);overflow:hidden;margin-top:10px}
.mh-share span{display:block;height:100%;background:var(--mh-orange)}
.mh-filter{width:100%;height:38px;border-radius:10px;border:1px solid var(--mh-b2);background:var(--mh-bg2);padding:0 12px;margin-bottom:6px;font:14px var(--f-body)}

/* MapLibre : infobulles, boutons de zoom */
.map-hero .maplibregl-popup-content{background:#fff;color:var(--ink);border:1px solid var(--mh-b2);border-radius:10px;padding:10px 12px;box-shadow:0 10px 30px rgba(11,31,51,.3);font:13px/1.4 var(--f-body)}
.map-hero .maplibregl-popup-tip{display:none}
.map-hero .mh-sel-tip{z-index:3}.map-hero .mh-sel-tip .maplibregl-popup-content{pointer-events:none}
.map-hero .maplibregl-ctrl-top-right{top:12px}

/* repère qui pulse sur le lieu choisi */
.mh-pulse{position:relative;width:22px;height:22px;pointer-events:none}
.mh-pulse-dot{position:absolute;inset:5px;border-radius:50%;background:var(--accent);border:2px solid #fff;box-shadow:0 0 0 2px var(--accent),0 2px 8px rgba(0,0,0,.4)}
.mh-pulse-ring{position:absolute;inset:0;border-radius:50%;background:rgba(249,115,22,.45);animation:mh-pulse 1.8s ease-out infinite}
.mh-pulse-ring.r2{animation-delay:.9s}
@keyframes mh-pulse{0%{transform:scale(.6);opacity:.9}100%{transform:scale(3.6);opacity:0}}


@media (prefers-reduced-motion:reduce){
  .mh-pulse-ring{animation:none;transform:scale(1.8);opacity:.35}
  .mh-panel{transition:none!important}
}
