:root {
  --imglargeur: 230px;
}

.leaflet-popup-content {
  margin: 2px 10px 7px 10px;
}

.leaflet-popup-content-wrapper {
  border-radius: 0px;
}

/* le temps du chargement */
#custom-map.hidden {
  visibility: hidden;
  height: 600px;
}

.leaflet-popup-content-wrapper {
  max-width: calc(var(--imglargeur) + 20px);
}

a.titre-popup {
  font-family: var(--wp--preset--font-family--domaine-display);
  font-weight: 500;
  color: #000 !important;
  text-decoration: none;
  font-size: 1.05rem;
  display: block;
  text-align: center;
  margin: 0;
  padding: 0;
  margin-top: 2px;
  line-height: 1.1;
}

a.titre-popup:hover,
a.titre-popup:hover .titre-popup-ville {
  text-decoration: underline;
}

.titre-popup-ville {
  display: block;
  font-family: var(--wp--preset--font-family--poppins) !important;
  color: var(--wp--preset--color--or-2) !important;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-top: 6px;
}

.popup-img-container {
  overflow: hidden;
  margin-top: 10px;
  display: block;
  margin-bottom: 6px;
}

.img-popup {
  width: var(--imglargeur);
  aspect-ratio: 3/2;
  height: auto;
  object-fit: cover;
  transition: transform .35s;
  display: block;
}

.img-popup:hover {
  transform: scale(1.25);
}

a.leaflet-popup-close-button {
  top: -6px !important;
  right: -5px !important;
}

.leaflet-control-scale-line {
  background: none !important;
}

/* mobile */
@media (max-width: 1023px) {
  #custom-map {
    max-height: 75vh !important;
  }

  .leaflet-top.leaflet-right,
  .leaflet-bottom.leaflet-left {
    display: none;
  }

  .leaflet-popup-content-wrapper {
    max-width: calc(200px + 20px);
  }

  .img-popup {
    width: 200px;
  }
}

svg.leaflet-attribution-flag {
  display: none !important;
}

/* cacher contrôles carte Jardins - solution provisoire */
.leaflet-bar.leaflet-control.leaflet-control-custom.custom-layer-toggle.carte-post {
  visibility:hidden !important;
}

.leaflet-bar.leaflet-control.leaflet-control-custom.custom-layer-toggle {
  text-align: left;
  display: flex;
  flex-direction: column;
  background: none;
  border-radius: 0;
  border-width: 0;
  padding: 0;
  row-gap: 3px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--wp--preset--font-family--open-sans);
}

.filter-button {
  background: none;
  border: 0;
  padding: 2px 4px;
  text-align: left;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  cursor: pointer;
}

div#marker-count {
  font-size: inherit;
  width: fit-content;
  margin-top: 0;
  margin-left: 4px;
}

button.control-active{
background-color: #ffffff8a;
}