/**
 * Styles pour la carte des agences Leaflet
 */

.velo-agences-map-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Layout carte + sidebar */
.velo-map-layout {
    display: flex;
    width: 100%;
    height: 600px;
    position: relative;
}

.velo-agences-map {
    flex: 1;
    min-width: 0;
    z-index: 1;
}

/* Sidebar */
.velo-map-sidebar {
    width: 350px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.velo-sidebar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px 30px;
    text-align: center;
    color: #999;
}

.velo-sidebar-placeholder i {
    font-size: 36px;
    margin-bottom: 16px;
    color: #ccc;
}

.velo-sidebar-placeholder p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Contenu sidebar */
.velo-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.velo-sidebar-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.velo-sidebar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.velo-sidebar-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.velo-sidebar-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0066cc;
    line-height: 1.3;
}

.velo-sidebar-description {
    display: flex;
    flex-direction: column;
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.velo-sidebar-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    line-height: 1.6;
}

.velo-sidebar-address i {
    color: #0066cc;
    margin-right: 8px;
}

.velo-sidebar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: auto;
}

.velo-sidebar-link:hover {
    background: linear-gradient(135deg, #0077ee 0%, #0055aa 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.velo-sidebar-link i {
    font-size: 15px;
}

/* Marqueur vélo personnalisé */
.velo-marker-container {
    background: transparent !important;
    border: none !important;
}

.velo-marker {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.4);
    transition: all 0.2s ease;
    cursor: pointer;
}

.velo-marker:hover {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.5);
}

.velo-marker i {
    transform: rotate(45deg);
    color: white;
    font-size: 18px;
}

/* Marqueur actif */
.velo-marker.velo-marker-active {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #ff6600 0%, #cc4400 100%);
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.5);
}

.velo-marker.velo-marker-active i {
    font-size: 20px;
}

/* Message si aucune agence */
.velo-map-no-agencies {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .velo-map-layout {
        flex-direction: column;
        height: auto;
    }

    .velo-agences-map {
        height: 400px;
    }

    .velo-map-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        max-height: 350px;
    }

    .velo-sidebar-placeholder {
        padding: 30px 20px;
    }

    .velo-sidebar-placeholder i {
        font-size: 28px;
    }

    .velo-sidebar-photo {
        height: 160px;
    }

    .velo-sidebar-info {
        padding: 15px;
    }

    .velo-sidebar-title {
        font-size: 16px;
    }

    .velo-sidebar-description,
    .velo-sidebar-address {
        font-size: 13px;
    }
}
