/* ==========================================================================
   CONFIUGRATION ET GRILLE DE STYLE : /panel/mapview.css
   ========================================================================== */

.map-layout-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    min-height: 80vh;
}

.map-header-info {
    margin-bottom: 25px;
}

.map-header-info h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.map-header-info p {
    color: #64748b;
    margin: 0;
    font-size: 1rem;
}

/* ENCADRÉ SUBTILE DE COMPARTIMENTATION AUTOUR DE LA CARTE */
.map-outer-frame {
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    padding: 24px;
    border-radius: 32px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.map-wrapper-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
}

#map {
    width: 100%;
    height: 550px;
    border-radius: 14px;
    z-index: 1;
}

/* ==========================================================================
   MARQUEURS SAAS MODERNES AVEC COMPTEUR DE ROLLERCOASTERS INTÉGRÉ
   ========================================================================== */
.pt-custom-marker-badge {
    background: #4a51ff;
    color: #ffffff;
    border: 3px solid #ffffff;
    border-radius: 50%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(74, 81, 255, 0.4);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pt-custom-marker-badge:hover {
    background: #0f172a;
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.4);
    cursor: pointer;
}

/* ==========================================================================
   PERSONNALISATION DESIGN DES INFOBULLES (POPUPS LEAFLET)
   ========================================================================== */
.leaflet-popup-content-wrapper {
    border-radius: 14px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 240px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.map-popup-card { 
    display: flex; 
    flex-direction: column; 
}

.map-popup-thumb { 
    width: 100%; 
    height: 110px; 
    object-fit: cover; 
    background: #f1f5f9; 
}

.map-popup-body { 
    padding: 14px; 
}

.map-popup-body h4 { 
    font-size: 0.95rem; 
    font-weight: 800; 
    color: #0f172a; 
    margin: 0 0 4px 0; 
}

.map-popup-body p { 
    font-size: 0.8rem; 
    color: #64748b; 
    margin: 0 0 12px 0; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

.map-popup-btn { 
    display: block; 
    text-align: center; 
    background: #4a51ff; 
    color: #ffffff !important; 
    text-decoration: none; 
    padding: 8px 12px; 
    border-radius: 8px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    transition: background 0.2s;
}

.map-popup-btn:hover { 
    background: #0f172a; 
}

/* ==========================================================================
   RESPONSIVE DESIGN SMARTPHONES
   ========================================================================== */
@media (max-width: 768px) {
    .map-layout-container { padding: 20px 15px; }
    .map-outer-frame { padding: 12px; border-radius: 20px; }
    .map-header-info h1 { font-size: 1.6rem; }
    #map { height: 420px; }
}