/* ════════════════════════════════════════════════════════════
   CartoSoins Map — cso-map.css
   ════════════════════════════════════════════════════════════ */


/* ── CARTE ── */

.cso-map-canvas {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #e0e0e0;
}

.cso-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4a90d9;
    border: 3px solid #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,0.3);
    transition: transform .15s ease, box-shadow .15s ease;
}
.cso-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ── InfoWindow Google Maps (hover tooltip + popup classique) ──
   On override le rendu par défaut Google pour matcher notre design.
*/
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,.12) !important;
    max-width: none !important;
    overflow: hidden !important;
}
.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    max-height: none !important;
}
.gm-style .gm-style-iw-tc::after { background: #ffffff !important; }
/* Vire la croix de fermeture sur les tooltips de hover */
.gm-style .gm-ui-hover-effect { display: none !important; }

.cso-tooltip-inner {
    padding: 10px 14px;
    font: 500 13px/1.35 inherit;
    max-width: 260px;
    color: #1a1a1a;
}
.cso-tooltip-inner .cso-tt-name {
    font-weight: 700;
    color: #121234;
    display: block;
    margin-bottom: 2px;
}
.cso-tooltip-inner .cso-tt-job {
    font-weight: 500;
    color: #f48e00;
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
}
.cso-tooltip-inner .cso-tt-addr {
    font-weight: 400;
    color: #5a5a5a;
    font-size: 12px;
    display: block;
}

/* Popup riche (mode classique, clic marker) */
.cso-popup {
    padding: 14px 14px 12px;
    font-family: inherit;
    min-width: 180px;
}
.cso-popup img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 0.6rem;
    border: 2px solid #e0e0e0;
}
.cso-popup strong {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}
.cso-popup span {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 0.4rem;
}
.cso-popup-lien {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #121234;
    text-decoration: none;
    margin-top: 0.3rem;
}
.cso-popup-lien:hover { color: #4a90d9; }


/* ── LISTE ── */

.cso-map-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    padding-right: 0.4rem;
}
.cso-map-list::-webkit-scrollbar { width: 4px; }
.cso-map-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

.cso-list-item {
    display: flex;
    align-items: center;
   
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1.5px solid #e8e8e8;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cso-list-item:hover  { border-color: #4a90d9; box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.cso-list-item.active { border-color: #4a90d9; box-shadow: 0 3px 14px rgba(74,144,217,0.2); }

.cso-li-thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    background: #eee;
    border: 0px solid #e0e0e0;
}
.cso-li-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cso-li-body { flex: 1; min-width: 0; background-color:white; }

.cso-li-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.cso-li-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cso-li-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1.5px solid #e0e0e0;
    background: #f5f5f5;
    color: #777;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cso-li-btn:hover { background: #4a90d9; border-color: #4a90d9; color: #fff; }

.cso-li-address {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cso-list-empty,
.cso-list-loading {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

.cso-map-list.cso-loading { opacity: 0.5; pointer-events: none; }


/* ── FILTRES ── */

.cso-filtres {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Recherche */
.cso-search-input {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #2c2c2c;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.cso-search-input:focus { border-color: #4a90d9; }

/* Section filtre */
.cso-filtre-section {
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.cso-filtre-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c2c2c;
    font-family: inherit;
    transition: background 0.15s;
}
.cso-filtre-toggle:hover { background: #f0f0f0; }
.cso-toggle-arrow { font-size: 0.75rem; }

.cso-filtre-body {
    display: none;
    padding: 0.75rem;
    border-top: 1px solid #ececec;
}
.cso-filtre-body.open { display: block; }

/* Chips */
.cso-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.cso-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border: 1.5px solid #d0d0d0;
    border-radius: 20px;
    background: #fff;
    color: #444;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.cso-chip img { width: 16px; height: 16px; object-fit: contain; }
.cso-chip:hover   { border-color: #4a90d9; color: #4a90d9; }
.cso-chip.selected {
    background: #4a90d9;
    border-color: #4a90d9;
    color: #fff;
}
.cso-chip.selected img { filter: brightness(0) invert(1); }

/* Tags bar */
.cso-tags-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-height: 0;
}

.cso-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    background: #e8f0fb;
    color: #2a6099;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
}
.cso-tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #2a6099;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0;
    margin-left: 0.1rem;
    transition: color 0.15s;
}
.cso-tag-remove:hover { color: #c0392b; }

/* Booléens */
.cso-bool-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    cursor: pointer;
    font-size: 0.83rem;
    color: #333;
}
.cso-bool-label + .cso-bool-label {
    border-top: 1px solid #f0f0f0;
}
.cso-bool-input { width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; accent-color: #4a90d9; }
.cso-bool-icon  { font-size: 1rem; }

/* Footer filtres */
.cso-filtre-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

.cso-result-count {
    font-size: 0.8rem;
    color: #666;
}

.cso-reset-btn {
    font-size: 0.78rem;
    font-weight: 600;
    color: #c0392b;
    background: none;
    border: 1.5px solid #c0392b;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.cso-reset-btn:hover { background: #c0392b; color: #fff; }


/* ════════════════════════════════════════════════════════════
   FULLPAGE LAYOUT  —  [cartosoins_fullpage]
   ════════════════════════════════════════════════════════════ */

/* ── Conteneur principal ── */
.cso-fullpage {
    position: relative !important;
    width: 100% !important;
    /* height calculée par JS selon l'espace restant après le header du thème */
    height: 600px; /* fallback avant JS */
    overflow: hidden;
    display: block;
    isolation: isolate; /* stacking context propre → drawer/topbar au-dessus de Leaflet */
}

/* ── Carte plein fond ── */
.cso-fullpage-map {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
    border-radius: 0;
    border: none;
}

/* ════ TOPBAR (filtres en haut au centre) ════ */

.cso-topbar {
    position: absolute;
    top: 14px;
    left: 380px;   /* après le drawer (360px + 20px) */
    right: 20px;
    z-index: 30;
    display: flex;
    justify-content: center;
    pointer-events: none;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cso-fullpage.drawer-closed .cso-topbar { left: 20px; }

.cso-tb-inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 5px 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.14);
    max-width: 100%;
    flex-wrap: nowrap;
}

/* Séparateur vertical */
.cso-tb-sep {
    width: 1px;
    height: 20px;
    background: #e0e0e0;
    margin: 0 2px;
    flex-shrink: 0;
}

/* Recherche */
.cso-tb-search-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 4px;
}
.cso-tb-search-icon { color: #999; flex-shrink: 0; }
.cso-tb-search {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.82rem;
    font-family: inherit;
    color: #2c2c2c;
    width: 130px;
    transition: width 0.2s;
}
.cso-tb-search:focus { width: 190px; }
.cso-tb-search::placeholder { color: #bbb; }

/* Bouton dropdown */
.cso-tb-item { position: relative; }

.cso-tb-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 30px;
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    color: #333;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.cso-tb-btn:hover   { background: #f0f0f0; }
.cso-tb-btn.active  { background: #4a90d9; color: #fff; }
.cso-tb-btn.active svg { stroke: #fff; }
.cso-tb-arrow { transition: transform 0.2s; flex-shrink: 0; }
.cso-tb-item.open .cso-tb-arrow { transform: rotate(180deg); }

/* Reset button (dans la topbar) */
.cso-topbar .cso-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.78rem;
}

/* Compteur résultats (topbar) */
.cso-topbar .cso-result-count {
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
    padding: 0 4px;
}

/* Panneau dropdown — portalé dans <body> par JS, position absolute = fixe par rapport à la page */
.cso-tb-panel {
    display: none;
    position: absolute;
    min-width: 240px;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 12px;
    z-index: 999999;
}
.cso-tb-panel-wide { min-width: 340px; }

/* Sous-section dans le panel large */
.cso-tb-sub { margin-bottom: 14px; }
.cso-tb-sub:last-child { margin-bottom: 0; }
.cso-tb-sub-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}
/* Grille 2 colonnes pour les booléens */
.cso-bool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* ════ DRAWER GAUCHE ════ */

.cso-drawer {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 360px;
    background: #fff;
    z-index: 20;
    box-shadow: 2px 0 24px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cso-drawer.closed {
    transform: translateX(-360px);
}

/* Bouton toggle drawer */
.cso-drawer-toggle {
    position: absolute;
    right: -44px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 52px;
    background: #fff;
    border: none;
    border-radius: 0 10px 10px 0;
    box-shadow: 3px 0 14px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.15s, color 0.15s;
    z-index: 21;
}
.cso-drawer-toggle:hover { background: #f5f5f5; color: #222; }

/* Icônes chevron selon état */
.cso-drawer .cso-drawer-icon-open  { display: none; }
.cso-drawer .cso-drawer-icon-close { display: block; }
.cso-drawer.closed .cso-drawer-icon-open  { display: block; }
.cso-drawer.closed .cso-drawer-icon-close { display: none; }

.cso-drawer-inner {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column; 
    overflow: hidden; 
    background-color:#121234;
}

/* ════ LISTE DANS LE DRAWER ════ */

.cso-fullpage .cso-map-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
    gap: 0;
}

/* ── Item liste — mode accordéon ── */
.cso-fullpage .cso-list-item {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    
    
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    
    margin-bottom: 6px;
    cursor: default;
    border-radius: 8px;
   
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cso-fullpage .cso-list-item.active  { box-shadow: 0 2px 12px rgba(255, 255, 255, 0.18);}

/* En-tête de l'item (toujours visible) */
.cso-li-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding:0px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
}
.cso-li-header-row:hover { background: #fafbfe; }
.cso-fullpage .cso-list-item.active .cso-li-header-row { background: #ffffff; border-radius:8px 8px 0 0!important;}

.cso-li-info { flex: 1; min-width: 0;padding:2%; }

/* Texte des infos de l'item en blanc par défaut, navy au hover de l'item */
.cso-li-info,
.cso-li-info .cso-li-title,
.cso-li-info .cso-li-subtitle,
.cso-li-info .cso-li-type {
    color: #ffffff;
    transition: color 0.18s ease;
}
.cso-list-item:hover .cso-li-info,
.cso-list-item:hover .cso-li-info .cso-li-title,
.cso-list-item:hover .cso-li-info .cso-li-subtitle,
.cso-list-item:hover .cso-li-info .cso-li-type,
.cso-list-item.active .cso-li-info,
.cso-list-item.active .cso-li-info .cso-li-title,
.cso-list-item.active .cso-li-info .cso-li-subtitle,
.cso-list-item.active .cso-li-info .cso-li-type {
    color: #121234;
}

.cso-li-subtitle {
        padding: 0;
    font-size: 0.7rem;
    font-weight: 400;
    margin: 0 0 1px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cso-li-type {
    font-size: 0.68rem;
    margin: 0 0 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cso-li-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding-right:5px;
}

.cso-li-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 3px;
    color: #aaa;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.cso-li-toggle-btn:hover { background: #f0f0f0; color: #333; }
.cso-li-toggle-btn svg { transition: transform 0.2s; }
.cso-fullpage .cso-list-item.expanded .cso-li-toggle-btn svg { transform: rotate(180deg); }

/* Corps accordéon */
.cso-li-body {
    display: none;
    padding: 0 12px 12px;
    border-top: 1px solid #f0f0f0;
    min-width: 0;
}
.cso-fullpage .cso-list-item.expanded .cso-li-body { display: block; border-radius:0 0 8px 8px;}

/* Tags catégories dans la bascule */
.cso-cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cso-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 6px;
    background: #f0f4ff;
    color: #3a5fc8;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
a.cso-cat-tag:hover {
    background: #3a5fc8;
    color: #fff;
}
.cso-tag-picto {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}
.cso-tag-picto-txt {
    font-size: 14px;
    line-height: 1;
}

/* Sections dans le corps */
.cso-li-section { margin-top: 10px; }
.cso-li-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #bbb;
    margin: 0 0 5px;
}
.cso-li-text {
    font-size: 0.82rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}
.cso-li-body a {
    word-break: break-all;
}

/* Badges services */
.cso-li-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.cso-li-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    background: #eef4ff;
    color: #2a6099;
    font-weight: 500;
    line-height: 1.4;
}

/* Lignes contact */
.cso-li-contact-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 4px;
}
.cso-li-contact-line svg { flex-shrink: 0; }
.cso-li-contact-line a { color: #4a90d9; text-decoration: none; }
.cso-li-contact-line a:hover { text-decoration: underline; }

/* Bouton "Voir le profil" en bas du corps */
.cso-li-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 6px 14px;
    background: #4a90d9;
    color: #fff !important;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s;
}
.cso-li-profile-link:hover { background: #2a6099; }

/* Photo de présentation dans la bascule */
.cso-photo-presentation {
    display: block;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 4px;
}

/* ── Override du thumb dans le drawer (plus petit) ── */
.cso-fullpage .cso-li-thumb {
    width: 60px;
    height: 100%;
    max-height:85px;
    flex-shrink: 0;
}
.cso-fullpage .cso-li-title { font-size: 0.87rem; }
.cso-fullpage .cso-li-address { font-size: 0.72rem; }

/* ════ SECTIONS ACF (dans l'accordéon) ════ */

/* Wrappeur générique du contenu pré-rendu */
.cso-acf-content { font-size: 0.8rem; }

/* Ligne label + valeur : label au-dessus, valeur en dessous */
.cso-acf-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}
.cso-acf-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.cso-acf-label::after { content: ''; }
.cso-acf-row > span:not(.cso-acf-label),
.cso-acf-row > a,
.cso-acf-text {
    font-size: 0.82rem;
    color: #444;
    line-height: 1.5;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}
.cso-acf-text p { margin: 0 0 4px; }

/* Badge true/false actif */
.cso-acf-badge {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 2px 8px;
    background: #edfaf3;
    color: #2a7a52;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Sous-groupe imbriqué */
.cso-acf-subgroup {
    margin-top: 6px;
    padding: 6px 10px;
    background: #f8f9fb;
    border-radius: 8px;
    border-left: 3px solid #d0dff0;
}
.cso-acf-sublabel {
    font-size: 0.7rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0 0 5px;
}

/* Horaires */
.cso-horaires { display: flex; flex-direction: column; gap: 3px; }
.cso-horaire-row {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
}
.cso-horaire-jour {
    font-weight: 600;
    color: #555;
    min-width: 72px;
    flex-shrink: 0;
    text-transform: capitalize;
}
.cso-horaire-slots { color: #333; }

/* Lien téléphone */
.cso-contact-tel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4a90d9;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.82rem;
}
.cso-contact-tel:hover { text-decoration: underline; }
.cso-contact-private { font-size: 0.78rem; color: #aaa; font-style: italic; }

/* ════ CLUSTERS ════ */

.cso-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    border: 3px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    transition: transform 0.15s;
}
.cso-cluster:hover { transform: scale(1.1); }
.cso-cluster-sm { width: 34px; height: 34px; font-size: 0.8rem;  background: #4a90d9; }
.cso-cluster-md { width: 44px; height: 44px; font-size: 0.88rem; background: #2a6099; }
.cso-cluster-lg { width: 54px; height: 54px; font-size: 0.95rem; background: #1a3d6b; }

/* Scrollbar drawer */
.cso-fullpage .cso-map-list::-webkit-scrollbar { width: 4px; }
.cso-fullpage .cso-map-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }



/* ════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 1024px  —  Bottom sheet + topbar full width
   ════════════════════════════════════════════════════════════ */

/* ── Poignée mobile : cachée sur desktop ── */
.cso-drawer-handle {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px 8px;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.cso-drawer-handle-pill {
    width: 38px;
    height: 4px;
    background: #d0d0d0;
    border-radius: 2px;
    margin-bottom: 7px;
    transition: background 0.15s;
}
.cso-drawer-handle:hover .cso-drawer-handle-pill { background: #aaa; }
.cso-drawer-handle-info {
    font-size: 0.78rem;
    font-weight: 600;
    color: #666;
    line-height: 1;
}

@media (max-width: 1024px) {

    /* ── Topbar : full width au-dessus de la carte ── */
    .cso-topbar {
        left: 10px !important;
        right: 10px !important;
        top: 10px !important;
        justify-content: stretch;
    }
    .cso-fullpage.drawer-closed .cso-topbar { left: 10px !important; }

    .cso-tb-inner {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        border-radius: 14px;
        padding: 5px 10px;
        gap: 3px;
    }
    .cso-tb-inner::-webkit-scrollbar { display: none; }

    .cso-tb-search { width: 90px; }
    .cso-tb-search:focus { width: 130px; }

    /* Panels dropdown : max-height réduit sur mobile (largeur/position gérées par JS) */
    .cso-tb-panel,
    .cso-tb-panel-wide {
        max-height: 55vh;
    }

    /* ── Drawer → Bottom sheet ── */
    .cso-drawer {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 70vh !important;
        border-radius: 18px 18px 0 0 !important;
        box-shadow: 0 -4px 32px rgba(0,0,0,0.14) !important;
        /* Peek : 72px visibles en bas */
        transform: translateY(calc(100% - 72px)) !important;
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1) !important;
    }

    /* Ouvert : sheet full visible */
    .cso-fullpage.drawer-open .cso-drawer {
        transform: translateY(0) !important;
    }

    /* Sur mobile, .closed = même chose que default (peek) */
    .cso-drawer.closed {
        transform: translateY(calc(100% - 72px)) !important;
    }

    /* Cache le bouton chevron latéral desktop */
    .cso-drawer-toggle { display: none !important; }

    /* Affiche la poignée mobile */
    .cso-drawer-handle { display: flex; }

    /* Quand ouvert : overlay sombre semi-transparent sur la carte */
    .cso-fullpage.drawer-open::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.18);
        z-index: 15;
        pointer-events: none;
        animation: cso-fadein 0.3s ease;
    }

    /* Drawer-inner scroll autorisé */
    .cso-fullpage .cso-map-list {
        padding: 8px 10px 24px; /* padding-bottom pour safe area */
    }

    /* Liste : items légèrement plus grands pour le touch */
    .cso-fullpage .cso-li-header-row {
        padding: 12px 14px;
        min-height: 62px;
    }
    .cso-fullpage .cso-li-thumb {
        width: 46px;
        height: 46px;
    }
    .cso-fullpage .cso-li-title { font-size: 0.9rem; }

    /* Bouton reset dans topbar */
    .cso-topbar .cso-reset-btn { padding: 5px 8px; }

    /* Cacher le label "Plus de filtres" sur très petit écran */
}

@media (max-width: 480px) {
    .cso-tb-btn-label { display: none; }
    .cso-tb-more .cso-tb-btn-label { display: inline; } /* garder "Plus de filtres" */
    .cso-tb-sep { display: none; }
    .cso-tb-btn { padding: 6px 8px; }
}

@keyframes cso-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safe area iOS */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    @media (max-width: 1024px) {
        .cso-fullpage .cso-map-list {
            padding-bottom: calc(16px + env(safe-area-inset-bottom));
        }
    }
}
