/* =========================================
   CARTE INTERACTIVE - MARQUEURS NOIRS UNIFIÉS
   ========================================= */

/* 1. Conteneur de la carte - Plein écran */
.carte-conteneur-v2 {
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: #f0f0f0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* 2. Marqueurs noirs unifiés (individuels ET clusters) */
.marker-noir-unifie {
    background: transparent !important;
    border: none !important;
}

.cercle-noir {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    border: 3px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.cercle-noir:hover {
    transform: scale(1.15);
    z-index: 1000 !important;
}

/* 3. Panneau latéral */
.panneau-v2 {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panneau-v2.active {
    right: 0;
}

.overlay-v2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.overlay-v2.active {
    opacity: 1;
    visibility: visible;
}

.panel-img {
    height: 50%;
    width: 100%;
    overflow: hidden;
}

.panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-content {
    height: 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.panel-content h2 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: #222;
}

.panel-content p {
    color: #666;
    font-style: italic;
    margin: 0 0 20px 0;
}

.panel-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: #7b2d8e;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.panel-btn:hover {
    background: #5a1f6a;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-btn:hover {
    background: #fff;
}

/* 4. Responsive Mobile */
@media (max-width: 768px) {
    .panneau-v2 {
        width: 100%;
        right: -100%;
    }
}