/* Stores Map Styles */

.storesmap-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.storesmap-wrapper {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
}

/* Liste des magasins */
.stores-list {
    width: 350px;
    padding: 20px;
    background: #f8f9fa;
    overflow-y: auto;
    max-height: 600px;
}

.stores-list h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.stores-list-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.store-item {
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.store-item:hover,
.store-item.active {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.store-name {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.store-address,
.store-phone,
.store-email,
.store-description {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.store-address i,
.store-phone i,
.store-email i {
    font-size: 18px;
    color: #007bff;
    margin-top: 2px;
}

.store-phone a,
.store-email a {
    color: #007bff;
    text-decoration: none;
}

.store-phone a:hover,
.store-email a:hover {
    text-decoration: underline;
}

.store-description {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    line-height: 1.5;
}

.locate-store {
    margin-top: 12px;
    width: 100%;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Carte */
.map-container {
    flex: 1;
    min-height: 600px;
    position: relative;
}

#storesMap {
    width: 100%;
    height: 100%;
    border-radius: 0 8px 8px 0;
    z-index: 1;
}

/* Info Window personnalisée */
.custom-info-window {
    max-width: 250px;
}

.custom-info-window h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.custom-info-window p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}

.custom-info-window a {
    color: #007bff;
    text-decoration: none;
}

.custom-info-window a:hover {
    text-decoration: underline;
}

/* Animation du marqueur */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.marker-pulse {
    animation: pulse 0.6s ease-in-out 3;
}

/* Style des popups Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
    margin: 15px;
}

.leaflet-popup-tip {
    background: white;
}

/* Responsive */
@media (max-width: 992px) {
    .storesmap-wrapper {
        flex-direction: column;
    }

    .stores-list {
        width: 100%;
        max-height: 400px;
    }

    .map-container {
        min-height: 400px;
    }

    #storesMap {
        border-radius: 0;
    }
}

@media (max-width: 576px) {
    .storesmap-container {
        margin: 20px auto;
    }

    .stores-list {
        padding: 15px;
    }

    .stores-list h3 {
        font-size: 20px;
    }

    .store-name {
        font-size: 16px;
    }

    .map-container {
        min-height: 300px;
    }
}

/* Scrollbar personnalisée pour la liste */
.stores-list::-webkit-scrollbar {
    width: 8px;
}

.stores-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.stores-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.stores-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}