/**
 * Styles Frontend - Carte Interactive
 * 
 * Styles pour l'interface utilisateur de la carte interactive
 * Compatible WoodMart et responsive design
 */

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    --ci-primary-color: #2c3e50;
    --ci-secondary-color: #3b82f6;
    /* Bleu plus moderne */
    --ci-accent-color: #10b981;
    /* Teal plus vif */
    --ci-success-color: #10b981;
    --ci-danger-color: #ef4444;
    --ci-text-color: #1f2937;
    --ci-text-light: #6b7280;
    --ci-border-color: #e5e7eb;
    --ci-background-color: #ffffff;
    --ci-item-bg: #ffffff;
    --ci-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --ci-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --ci-radius: 16px;
    --ci-radius-sm: 8px;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.carte-interactive-container {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    color: var(--ci-text-color);
}

/* ============================================
   POPUP INITIAL - DÉSACTIVÉ (formulaire dans liste maintenant)
   ============================================ */
.carte-interactive-popup-overlay {
    display: none !important;
    /* Plus de popup, formulaire dans la liste */
}

.carte-interactive-popup {
    background: var(--ci-background-color);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--ci-shadow-lg);
    animation: slideUp 0.4s ease;
}

.carte-interactive-popup-content h3 {
    margin: 0 0 25px 0;
    color: var(--ci-primary-color);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.carte-interactive-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.carte-interactive-search-input-wrapper {
    display: flex;
    gap: 10px;
}

.carte-interactive-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--ci-border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.carte-interactive-search-input:focus {
    outline: none;
    border-color: var(--ci-secondary-color);
}

.carte-interactive-filter-section {
    margin-bottom: 15px;
}

.carte-interactive-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--ci-border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--ci-text-color);
    background-color: var(--ci-background-color);
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65em auto;
}

.carte-interactive-select:focus {
    outline: none;
    border-color: var(--ci-secondary-color);
}

.carte-interactive-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.carte-interactive-btn-search {
    background: var(--ci-secondary-color);
    color: white;
}

.carte-interactive-btn-search:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.carte-interactive-btn-geolocation {
    width: 100%;
    background: var(--ci-success-color);
    color: white;
}

.carte-interactive-btn-geolocation:hover {
    background: #229954;
    transform: translateY(-2px);
}

.carte-interactive-or {
    text-align: center;
    position: relative;
    margin: 10px 0;
}

.carte-interactive-or:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--ci-border-color);
}

.carte-interactive-or span {
    background: var(--ci-background-color);
    padding: 0 15px;
    position: relative;
    color: #999;
}

.carte-interactive-loading {
    text-align: center;
    padding: 15px;
    color: var(--ci-secondary-color);
}

.carte-interactive-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-top-color: var(--ci-secondary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.carte-interactive-error {
    background: #ffe6e6;
    border: 1px solid var(--ci-danger-color);
    color: var(--ci-danger-color);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

/* ============================================
   CONTAINER PRINCIPAL (CARTE PLEIN ÉCRAN)
   ============================================ */
.carte-interactive-main {
    position: relative;
    width: 100%;
    min-height: 700px;
}

/* ============================================
   PANEL FLOTTANT (RECHERCHE + LISTE)
   ============================================ */
/* ============================================
   PANEL FLOTTANT (RECHERCHE + LISTE)
   ============================================ */
.carte-interactive-stores-list {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 400px;
    max-height: calc(100vh - 100px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--ci-radius);
    box-shadow: var(--ci-shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.carte-interactive-stores-list.collapsed {
    transform: translateX(-420px);
}

/* NOUVEAU : Section de recherche en haut */
.carte-interactive-search-section {
    background: transparent;
    padding: 24px 24px 0 24px;
    flex-shrink: 0;
}

.carte-interactive-search-header {
    background: transparent;
    color: var(--ci-text-color);
    padding: 0 0 16px 0;
    border: none;
}

.carte-interactive-search-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carte-interactive-search-header h3:before {
    content: "🔎";
    font-size: 20px;
}

.carte-interactive-search-section .carte-interactive-search-form {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.carte-interactive-search-section .carte-interactive-search-input-wrapper {
    position: relative;
    margin: 0;
}

.carte-interactive-search-section .carte-interactive-search-input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    border: 1px solid transparent;
    background: #f3f4f6;
    border-radius: 12px;
    font-size: 15px;
    color: var(--ci-text-color);
    transition: all 0.2s;
}

.carte-interactive-search-section .carte-interactive-search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--ci-secondary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.carte-interactive-search-section .carte-interactive-search-input::placeholder {
    color: #9ca3af;
}

.carte-interactive-search-section .carte-interactive-btn-search {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: var(--ci-secondary-color);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.carte-interactive-search-section .carte-interactive-btn-search:hover {
    background: #2563eb;
    transform: translateY(-50%) scale(1.05);
}

.carte-interactive-search-section .carte-interactive-btn-search:before {
    content: "➜";
}

.carte-interactive-search-section .carte-interactive-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.carte-interactive-search-section .carte-interactive-btn-geolocation {
    width: 100%;
    background: var(--ci-accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.carte-interactive-search-section .carte-interactive-btn-geolocation:hover {
    transform: translateY(-1px);
    background: #059669;
    box-shadow: 0 6px 8px -1px rgba(16, 185, 129, 0.3);
}

/* Section résultats */
.carte-interactive-results-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.carte-interactive-stores-list-header {
    display: none;
    /* Caché v1.6.0 */
}

.carte-interactive-stores-list-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* En-têtes de zones (départements) */
.carte-interactive-zone-header {
    background: linear-gradient(135deg, #5B8FF9 0%, #3B82F6 100%);
    color: white;
    padding: 12px 15px;
    margin: 10px 0 5px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(91, 143, 249, 0.3);
}

.carte-interactive-zone-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Items dans les zones (plus compacts) */
.carte-interactive-zone-item {
    padding: 10px 15px;
    margin-bottom: 8px;
}

.carte-interactive-zone-item .carte-interactive-store-name {
    font-size: 16px;
    margin-bottom: 5px;
}

.carte-interactive-zone-item .carte-interactive-store-address {
    font-size: 13px;
    margin: 0;
}

.carte-interactive-stores-list-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Message initial */
.carte-interactive-initial-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.carte-interactive-initial-message p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Item de magasin dans la liste */
/* Item de magasin dans la liste */
.carte-interactive-store-item {
    background: var(--ci-item-bg);
    border: 1px solid var(--ci-border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.carte-interactive-store-item:hover {
    border-color: var(--ci-secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--ci-shadow);
}

.carte-interactive-store-item.active {
    border-color: var(--ci-secondary-color);
    background: #eff6ff;
    box-shadow: 0 0 0 1px var(--ci-secondary-color);
}

.carte-interactive-store-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--ci-text-color);
    margin: 0 0 8px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.carte-interactive-store-distance {
    display: inline-block;
    background: #dbeafe;
    color: var(--ci-secondary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

.carte-interactive-store-address {
    color: var(--ci-text-light);
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.carte-interactive-store-address:before {
    content: "📍";
    font-size: 14px;
    opacity: 0.7;
}

.carte-interactive-store-phone {
    color: var(--ci-text-light);
    font-size: 14px;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carte-interactive-store-phone:before {
    content: "📞";
    font-size: 14px;
    opacity: 0.7;
}

.carte-interactive-store-phone a {
    color: var(--ci-text-color);
    text-decoration: none;
    font-weight: 600;
}

.carte-interactive-store-phone a:hover {
    color: var(--ci-secondary-color);
}

.carte-interactive-store-hours {
    color: #9ca3af;
    font-size: 13px;
    margin: 8px 0;
    white-space: pre-line;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.carte-interactive-store-hours:before {
    content: "🕐";
    font-size: 14px;
    opacity: 0.7;
}

.carte-interactive-store-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.carte-interactive-store-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.carte-interactive-btn-call {
    background: white;
    color: var(--ci-text-color);
    border: 1px solid var(--ci-border-color);
}

.carte-interactive-btn-call:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.carte-interactive-btn-call:before {
    content: "📞";
    font-size: 14px;
}

.carte-interactive-btn-directions {
    background: var(--ci-secondary-color);
    color: white;
}

.carte-interactive-btn-directions:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.carte-interactive-btn-directions:before {
    content: "🧭";
    font-size: 14px;
}

.carte-interactive-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* ============================================
   CARTE LEAFLET (PLEIN ÉCRAN)
   ============================================ */
.carte-interactive-map-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.carte-interactive-map {
    width: 100%;
    height: 100%;
    min-height: 700px;
}

/* ============================================
   MARKER CLUSTERS (Cercles orange avec chiffres)
   ============================================ */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(255, 127, 80, 0.6);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: #FF5733;
    width: 40px;
    height: 40px;
    margin-left: 0;
    margin-top: 0;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
}

.marker-cluster-small span,
.marker-cluster-medium span,
.marker-cluster-large span {
    line-height: 40px;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.marker-cluster-medium {
    background-color: rgba(255, 127, 80, 0.7);
}

.marker-cluster-medium div {
    width: 50px;
    height: 50px;
}

.marker-cluster-medium span {
    line-height: 50px;
    font-size: 16px;
}

.marker-cluster-large {
    background-color: rgba(255, 127, 80, 0.8);
}

.marker-cluster-large div {
    width: 60px;
    height: 60px;
}

.marker-cluster-large span {
    line-height: 60px;
    font-size: 18px;
}

/* Personnalisation des popups Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    background: #F8F9FA;
    border: 1px solid #E5E7EB;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 0;
    min-width: 280px;
}

.leaflet-popup-tip {
    background: #F8F9FA;
    border: 1px solid #E5E7EB;
}

/* Popup avec même design que les cards de liste */
.carte-interactive-marker-popup {
    padding: 20px;
    min-width: 280px;
}

.carte-interactive-store-item-popup .carte-interactive-store-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.carte-interactive-store-item-popup .carte-interactive-store-distance {
    display: inline-block;
    background: linear-gradient(135deg, #2DB5A3 0%, #14B8A6 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(45, 181, 163, 0.3);
}

.carte-interactive-store-item-popup .carte-interactive-store-address {
    color: #555;
    font-size: 15px;
    margin: 12px 0;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.carte-interactive-store-item-popup .carte-interactive-store-address:before {
    content: "📍";
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.carte-interactive-store-item-popup .carte-interactive-store-phone {
    color: #555;
    font-size: 15px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carte-interactive-store-item-popup .carte-interactive-store-phone:before {
    content: "📞";
    font-size: 16px;
}

.carte-interactive-store-item-popup .carte-interactive-store-phone a {
    color: var(--ci-secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.carte-interactive-store-item-popup .carte-interactive-store-phone a:hover {
    text-decoration: underline;
}

.carte-interactive-store-item-popup .carte-interactive-store-email {
    color: #555;
    font-size: 15px;
    margin: 10px 0;
}

.carte-interactive-store-item-popup .carte-interactive-store-email a {
    color: var(--ci-secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.carte-interactive-store-item-popup .carte-interactive-store-hours {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
    white-space: pre-line;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.carte-interactive-store-item-popup .carte-interactive-store-hours:before {
    content: "🕐";
    font-size: 16px;
    flex-shrink: 0;
}

.carte-interactive-store-item-popup .carte-interactive-store-representative {
    color: #555;
    font-size: 14px;
    margin: 10px 0;
    padding: 10px;
    background: rgba(45, 181, 163, 0.05);
    border-radius: 8px;
}

.carte-interactive-store-item-popup .carte-interactive-store-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.carte-interactive-store-item-popup .carte-interactive-store-btn {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.carte-interactive-store-item-popup .carte-interactive-btn-call {
    background: linear-gradient(135deg, #2DB5A3 0%, #14B8A6 100%);
    color: white;
}

.carte-interactive-store-item-popup .carte-interactive-btn-call:before {
    content: "📞";
    font-size: 16px;
}

.carte-interactive-store-item-popup .carte-interactive-btn-call:hover {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(45, 181, 163, 0.4);
}

.carte-interactive-store-item-popup .carte-interactive-btn-directions {
    background: linear-gradient(135deg, #5B8FF9 0%, #3B82F6 100%);
    color: white;
}

.carte-interactive-store-item-popup .carte-interactive-btn-directions:before {
    content: "🧭";
    font-size: 16px;
}

.carte-interactive-store-item-popup .carte-interactive-btn-directions:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(91, 143, 249, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Intégration Woodmart Theme
   ========================================================================== */
.carte-interactive-woodmart-enabled .carte-interactive-btn-search,
.carte-interactive-woodmart-enabled .carte-interactive-btn-geolocation {
    /* Reset des styles par défaut pour laisser Woodmart gérer */
    background-image: none;
    width: auto;
    height: auto;
    border-radius: 0;
}

.carte-interactive-woodmart-enabled .carte-interactive-btn-search::after,
.carte-interactive-woodmart-enabled .carte-interactive-btn-geolocation::after {
    /* Reset icones par défaut */
    content: none;
}

/* Espacement spécifique Woodmart dans le formulaire */
.carte-interactive-woodmart-enabled .carte-interactive-search-form {
    gap: 15px;
}

.carte-interactive-woodmart-enabled .carte-interactive-search-input-wrapper {
    flex-grow: 1;
}

/* Ajustement boutons liste */
.carte-interactive-woodmart-enabled .carte-interactive-store-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.carte-interactive-woodmart-enabled .carte-interactive-store-actions .btn {
    flex: 1;
    /* Boutons pleine largeur dans la liste */
    justify-content: center;
}

/* Reset de certains inputs si Woodmart force trop */
.carte-interactive-woodmart-enabled input[type="text"] {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 15px;
    height: 42px;
    /* Hauteur standard Woodmart */
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* RESPONSIVE - Panel flottant desktop & tablet */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .carte-interactive-stores-list {
        top: 15px;
        left: 15px;
        width: 320px;
    }
}

/* ============================================
   RESPONSIVE MOBILE (FRONTEND)
   ============================================ */
@media screen and (max-width: 900px) {
    .carte-interactive-container {
        display: flex;
        flex-direction: column;
        height: 80vh;
        /* Hauteur fixe sur mobile */
        position: relative;
    }

    /* Le panneau devient un "Bottom Sheet" */
    .carte-interactive-stores-list {
        position: absolute;
        bottom: 0;
        left: 0;
        top: auto;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 60vh;
        border-radius: 24px 24px 0 0;
        transform: translate3d(0, 0, 0);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 2000;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border: none;
        background: white;
    }

    .carte-interactive-stores-list.collapsed {
        transform: translateY(calc(100% - 60px));
    }

    /* Poignée de redimensionnement visuelle */
    .carte-interactive-search-section::after {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #e5e7eb;
        border-radius: 2px;
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Input plus gros sur mobile pour le tactile */
    .carte-interactive-search-section .carte-interactive-search-input {
        padding: 14px 16px;
        font-size: 16px;
        /* Évite le zoom sur iOS */
    }

    /* Liste scrollable */
    .carte-interactive-stores-list-content {
        padding-bottom: 80px;
        /* Espace pour le scroll */
    }

    /* Carte prend tout l'espace */
    .carte-interactive-map-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .carte-interactive-map {
        min-height: auto;
    }

    .carte-interactive-store-item {
        padding: 16px;
    }

    .carte-interactive-store-actions {
        flex-direction: row;
    }
}

/* ============================================
   MARKER CLUSTERS (MODERNE)
   ============================================ */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(59, 130, 246, 0.2);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: var(--ci-secondary-color);
    width: 36px;
    height: 36px;
    margin-left: 2px;
    margin-top: 2px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    color: white;
    font-family: 'Lato', sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster-small span,
.marker-cluster-medium span,
.marker-cluster-large span {
    line-height: normal;
}

/* ============================================
   UTILITAIRES
   ============================================ */
.carte-interactive-hidden {
    display: none !important;
}

/* Scrollbar personnalisée */
.carte-interactive-stores-list-content::-webkit-scrollbar {
    width: 6px;
}

.carte-interactive-stores-list-content::-webkit-scrollbar-track {
    background: transparent;
}

.carte-interactive-stores-list-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.carte-interactive-stores-list-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}