/* ===================================================================
   VENTABREN.INFO — Carte des lieux (géolocalisation)
   =================================================================== */

.carte-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 0 20px;
}
.carte-page {
  position: relative;
  overflow: hidden;
}
.carte-page::after {
  content: "";
  position: fixed;
  top: 0%;
  right: -400px;
  width: 1800px;
  height: 1800px;

  background-image: url("images/olivier2.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right top;

  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.carte-page > * {
  position: relative;
  z-index: 1;
}
.carte-intro h1 {
  font-family: 'Cormorant Garamond', serif;
  color: #5a4a36;
}
.carte-intro-line2 {
  color: #b68b52;
}
.carte-retour-lien {
  display: inline-block;
  margin-top: 34px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: #b68b52 !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(182, 139, 82, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.carte-retour-lien:hover {
  color: #5a4a36;
  border-color: #5a4a36;
}
.carte-conteneur {
  max-width: 1100px;
  margin: 40px auto 48px;
  padding: 0 20px;
}
#carte-lieux {
  width: 100%;
  height: 560px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(90, 74, 54, 0.18);
  position: relative;
  z-index: 1;
}
/* Les panneaux internes de Leaflet utilisent des z-index élevés par
   défaut, ce qui peut faire passer la carte au-dessus d'un menu fixe
   même quand elle est plus bas dans la page. On les plafonne. */
#carte-lieux .leaflet-pane,
#carte-lieux .leaflet-top,
#carte-lieux .leaflet-bottom,
#carte-lieux .leaflet-control {
  z-index: 10;
}

/* Marqueurs : pastille ronde bronze translucide avec la lettre "I" */
.carte-marqueur-pastille {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(90, 74, 54, 0.4);
  border: 2px solid rgba(247, 245, 240, 0.9);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(90, 74, 54, 0.35);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
  color: #f7f5f0;
}

/* Variante "Regards" : même présentation, couleur distincte pour
   signaler qu'il ne s'agit pas d'un lieu patrimonial (bleu-gris,
   cohérent avec les teintes déjà utilisées sur les cartes des lieux). */
.carte-marqueur-pastille--regard {
  background: rgba(42, 62, 76, 0.95);
  border-color: rgba(247, 245, 240, 0.9);
}

.carte-legende {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: #5a4a36;
}
.carte-legende-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Tooltip au survol (nom du lieu) */
.carte-tooltip {
  background: rgba(90, 74, 54, 0.92);
  color: #f7f5f0;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  box-shadow: 0 3px 8px rgba(90, 74, 54, 0.3);
}
.carte-tooltip::before {
  border-top-color: rgba(90, 74, 54, 0.92);
}

/* Popup */
.leaflet-popup-content-wrapper {
  background: #f7f5f0;
  border-radius: 12px;
  border: 1px solid rgba(182, 139, 82, 0.35);
}
.leaflet-popup-content {
  margin: 16px 18px;
  min-width: 220px;
}
.carte-popup {
  font-family: 'Cormorant Garamond', serif;
}
.carte-popup img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}
.carte-popup h3 {
  margin: 0 0 10px;
  color: #5a4a36;
  font-size: 1.4rem;
}
.carte-popup a {
  color: #b68b52;
  font-style: italic;
  font-size: 1.05rem;
  text-decoration: none;
}
.carte-popup a:hover {
  text-decoration: underline;
}
