/* ==================== PAGE HERO ==================== */
.page-hero {
  padding: 140px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: url('https://res.cloudinary.com/dlsyd2icz/image/upload/v1769474235/concept_hero_ghtpds.jpg');
  background-size: cover;
  background-position: center;
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ==================== MAP LAYOUT ==================== */
.section-wide {
  max-width: 1400px;
}

.map-container-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 0;
  height: 600px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(106, 143, 185, 0.15);
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ==================== SIDEBAR LISTE ==================== */
.partners-sidebar {
  background: #fff;
  border-left: 1px solid #eee;
  display: flex;
  flex-direction: column;
  height: 100%; 
  max-height: 100%;
  overflow: hidden;
}

.sidebar-title {
  padding: 24px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 1px solid #eee;
  background: #fcfcfc;
  flex-shrink: 0;
}

.partners-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.partners-list::-webkit-scrollbar {
  width: 6px;
}
.partners-list::-webkit-scrollbar-track {
  background: transparent;
}
.partners-list::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}

.partner-item {
  padding: 20px 24px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.2s;
}

.partner-item:hover {
  background: #f0f8ff;
}

.partner-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.partner-item p {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.partner-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #6A8FB9;
  background: rgba(106, 143, 185, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

.partner-infos-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}
.partner-infos-row i { color: #6A8FB9; width: 14px; text-align: center; }

/* ==================== LEAFLET CUSTOMIZATION ==================== */
/* Personnalisation des popups de la carte */

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 0;
  overflow: hidden;
}

.leaflet-container a 
{
  color: #6A8FB9;
}

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

.mpf-popup-header {
  background: white;
  color: #1a1a1a;
  padding: 16px 16px 8px;
  border-bottom: 1px solid #f0f0f0;
}

.mpf-popup-title {
  color: #6A8FB9;
  font-size: 17px;
  margin-bottom: 4px;
}

.mpf-popup-type {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  opacity: 0.9;
}

.mpf-popup-body {
  padding: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

.mpf-popup-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  background: #f0f4f8;
  color: #6A8FB9;
  text-decoration: none;
  padding: 8px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 12px;
  transition: 0.2s;
}

.mpf-popup-link:hover {
  background: #6A8FB9;
  color: white;
}

.mpf-popup-img {
  width: 100%;
  height: 130px;       /* Hauteur fixe pour uniformiser */
  object-fit: cover;   /* Coupe l'image proprement pour remplir le cadre */
  display: block;
  margin-bottom: 12px;
  border-radius: 8px;  /* Coins arrondis */
  background-color: #f0f4f8; /* Gris clair si l'image charge mal */
}

/* Ajustement du header pour qu'il soit blanc si on met une image */
.mpf-popup-header {
  background: white;   /* Fond blanc au lieu de bleu */
  color: #1a1a1a;      /* Texte noir */
  padding: 16px 16px 8px; /* Ajustement des marges */
  border-bottom: 1px solid #f0f0f0;
}

.mpf-popup-title {
  color: #6A8FB9; /* Le titre devient bleu */
  font-size: 18px;
}

/* ==================== MARQUEUR EPINGLE (PIN) ==================== */

/* La forme de l'épingle (Goutte) */
.mpf-pin {
  width: 36px;
  height: 36px;
  background: #6A8FB9; /* Bleu MPF */
  
  /* C'est ici que la magie opère : 3 coins ronds, 1 coin pointu */
  border-radius: 50% 50% 50% 0;
  
  /* On tourne de 45° pour mettre la pointe en bas */
  transform: rotate(-45deg);
  
  /* Effets de style */
  border: 3px solid white;
  box-shadow: -3px 3px 10px rgba(0,0,0,0.3); /* Ombre ajustée à la rotation */
  
  /* Centrage de l'icône interne */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Animation */
  transition: transform 0.2s, background-color 0.2s;
}

/* L'icône à l'intérieur (il faut la redresser car le parent est tourné) */
.mpf-pin i {
  color: white;
  font-size: 16px;
  transform: rotate(45deg); /* Contre-rotation pour qu'elle soit droite */
  margin-top: 2px; /* Petit ajustement optique */
}

/* Effet au survol */
.mpf-pin-wrapper:hover .mpf-pin {
  background-color: #5a7fa9; /* Fonce légèrement */
  transform: rotate(-45deg) scale(1.1); /* Grossit en gardant l'angle */
  cursor: pointer;
}

/* Petit effet d'ombre au sol (optionnel, pour le réalisme) */
.mpf-pin::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  bottom: -20px; /* Sous la pointe */
  left: -10px;
  z-index: -1;
  filter: blur(2px);
  transform: rotate(45deg); /* On annule la rotation pour l'ombre */
}

/* ==================== BADGES CONCEPT ==================== */
.partner-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.concept-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Style pour les SHOPS (Boutiques) */
.badge-shop {
  background-color: #6A8FB9;
  color: white;
  border: 1px solid #6A8FB9;
}

/* Style pour les CORNERS (Stands) */
.badge-corner {
  background-color: #f0f4f8;
  color: #6A8FB9;
  border: 1px solid #d9e2ec;
}

/* Prénom du partenaire */
.partner-firstname {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.partner-firstname i {
  color: #6A8FB9;
  font-size: 12px;
}

/* Ajustement de l'item liste */
.partner-item h4 {
  margin-bottom: 8px; /* Un peu plus d'espace pour les badges */
}

.concept-badge i {
  font-size: 11px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .map-container-wrapper {
    grid-template-columns: 1fr; /* On empile : carte dessus, liste dessous */
    height: auto;
    border-radius: 16px;
  }

  #map {
    height: 400px; /* Hauteur fixe pour la carte sur mobile */
  }

  .partners-sidebar {
    border-left: none;
    border-top: 1px solid #eee;
    max-height: 300px; /* On limite la hauteur de la liste sur mobile */
  }
}