/* Skate Connect V6 · Patinoires : carte agrandissable (31.10) */
.cg-btn{position:absolute;right:14px;top:14px;z-index:500;width:44px;height:44px;border-radius:12px;border:1px solid #ECEBEF;background:#fff;color:#3D3D3D;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px rgba(61,61,61,.12);transition:border-color .18s ease,transform .18s ease}
.cg-btn:hover{border-color:#3D3D3D}
.cg-btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(139,141,166,.35)}
.cg-poignee{display:none}
html.cg-bloque,html.cg-bloque body{overflow:hidden!important}
/* Ordinateur : grande carte, liste en colonne à gauche */
.map-layout.cg-grand{position:fixed!important;inset:16px;z-index:2147483200;display:grid!important;grid-template-columns:400px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important;gap:0!important;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 30px 80px rgba(61,61,61,.28);opacity:0;transform:scale(.985);transition:opacity .22s ease,transform .22s ease;margin:0!important;max-width:none!important}
.map-layout.cg-grand.cg-vu{opacity:1;transform:none}
.map-layout.cg-grand>.map-panel{order:2;position:relative!important;top:0!important;height:100%!important;min-height:0!important;border-radius:0!important}
.map-layout.cg-grand>.rink-list{order:1;height:100%;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;padding:22px 18px 24px;border-right:1px solid #F0EFF2;background:#fff;margin:0!important}
.map-layout.cg-grand .pat-list-title{font-size:24px!important;margin:0 0 14px!important}
.map-layout.cg-grand #pat-list{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
.map-layout.cg-grand #pat-list img{max-height:120px;object-fit:cover}
.map-layout.cg-grand ~ *{visibility:visible}
@media (max-width:1000px){.map-layout.cg-grand{grid-template-columns:320px minmax(0,1fr)!important}}
/* Téléphone : carte plein écran, liste dans une feuille qui monte du bas */
@media (max-width:760px){
  .map-layout.cg-grand{inset:0;border-radius:0;display:block!important}
  .map-layout.cg-grand>.map-panel{position:absolute!important;inset:0!important;height:100%!important}
  .map-layout.cg-grand>.rink-list{position:absolute;left:0;right:0;bottom:0;height:38vh;border-right:0;border-radius:20px 20px 0 0;box-shadow:0 -10px 30px rgba(61,61,61,.16);z-index:600;padding:0 14px calc(18px + env(safe-area-inset-bottom));transition:height .26s cubic-bezier(.2,.7,.2,1)}
  .map-layout.cg-grand.cg-liste-haute>.rink-list{height:82vh}
  .map-layout.cg-grand .cg-poignee{display:flex;position:sticky;top:0;z-index:2;width:100%;height:30px;align-items:center;justify-content:center;border:0;background:#fff;cursor:pointer;margin:0 0 4px}
  .map-layout.cg-grand .cg-poignee span{width:40px;height:4px;border-radius:2px;background:#D8D6DE}
  .map-layout.cg-grand .pat-list-title{font-size:20px!important}
  .map-layout.cg-grand .cg-btn{top:calc(12px + env(safe-area-inset-top))}
}
@media (prefers-reduced-motion:reduce){.map-layout.cg-grand,.map-layout.cg-grand>.rink-list{transition:none!important}}
.map-layout .map-overlay{padding-right:58px}
/* 31.10 (Sven) : barre de recherche posée sur la grande carte, comme dans l'application */
.cg-barre{display:none}
.map-layout.cg-grand .cg-barre{display:block;position:absolute;left:16px;top:14px;z-index:520;width:min(440px,calc(100% - 92px))}
.cg-cherche{display:flex;align-items:center;gap:8px;height:48px;padding:0 6px 0 16px;background:#fff;border-radius:999px;box-shadow:0 6px 22px rgba(61,61,61,.16),0 0 0 1px rgba(61,61,61,.06);color:#67646D}
.cg-cherche:focus-within{box-shadow:0 6px 22px rgba(61,61,61,.18),0 0 0 2px #3D3D3D}
.cg-cherche svg{flex:none}
.cg-cherche input{flex:1;min-width:0;height:100%;border:0!important;outline:none;background:transparent!important;font:400 16px Inter,system-ui,sans-serif;color:#3D3D3D;padding:0!important;box-shadow:none!important;-webkit-appearance:none;appearance:none}
.cg-cherche input::-webkit-search-cancel-button{display:none}
.cg-cherche input::placeholder{color:#8E8A96}
.cg-x{flex:none;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:#67646D;font:400 20px/32px Inter,system-ui,sans-serif;cursor:pointer;padding:0}
.cg-x:hover{background:#F2F1F4;color:#3D3D3D}
.cg-sep{flex:none;width:1px;height:22px;background:#ECEBEF}
.cg-f{flex:none;display:flex;align-items:center;gap:6px;height:36px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:#3D3D3D;font:500 14px Inter,system-ui,sans-serif;cursor:pointer}
.cg-f:hover,.cg-f[aria-expanded=true]{background:#F2F1F4}
.cg-f b{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#3D3D3D;color:#fff;font:600 11px/18px Inter,system-ui,sans-serif;text-align:center;box-sizing:border-box}
.cg-panf{margin-top:8px;padding:14px;background:#fff;border-radius:18px;box-shadow:0 14px 36px rgba(61,61,61,.18);display:grid;gap:12px;max-height:calc(100vh - 140px);overflow:auto}
.cg-panf[hidden]{display:none}
.cg-panf .field{margin:0!important;width:100%!important}
.cg-ok{all:unset;box-sizing:border-box;display:block;text-align:center;height:48px;line-height:48px;border-radius:999px;background:#3D3D3D;color:#fff;font:500 15px Inter,system-ui,sans-serif;cursor:pointer}
.cg-ok:hover{background:#2B2930}
@media (max-width:760px){
  .map-layout.cg-grand .cg-barre{left:12px;top:calc(12px + env(safe-area-inset-top));width:calc(100% - 80px)}
  .cg-f span{display:none}
  .cg-f{padding:0 10px}
}
/* En grand, « Autour de moi » et la légende passent en bas de la carte (la recherche occupe le haut) */
.map-layout.cg-grand .map-overlay{top:auto!important;bottom:16px;left:60px;right:auto!important;padding-right:0;justify-content:flex-start}
@media (max-width:760px){.map-layout.cg-grand .map-overlay{bottom:calc(38vh + 12px);left:12px}.map-layout.cg-grand.cg-liste-haute .map-overlay{display:none}}
