
/* MAP */

#map {
  width: 100%;
  height: calc(100vh - 75px);
}

main:has(.map-container) {
  padding-top: 0;
}

.map-marker {
  background-image: url('../img/marker.svg');
  background-size: cover;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

/* Background e dimensione per tutti i tipi di cluster */
.marker-cluster {
    background-color: var(--bs-primary); 
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important; 
    border: 2px solid white !important; 
    z-index: 1000 !important;
}

.marker-cluster :hover {
    background-color: var(--bs-primary-hover);
}

/* Modifica l'interno del cluster */
.marker-cluster div {
    color: white;
    font-weight: bold;
    font-size: 14px;
    background-color: transparent;
    margin-left: 1px;
    margin-top: 1px;
    transition: all .3s ease-in-out;
}
/* Reset View BTN */
.reset-map-btn {
    z-index: 1000; 
    transition: opacity 0.3s ease-in-out; 
    margin-left: 72px;
}

.leaflet-container {
  font-family: 'Lato', sans-serif;
}

.leaflet-popup-content-wrapper {
  background-color: white;
  border-radius: .5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.leaflet-popup {
  margin-bottom: 38px;
}

.leaflet-popup-content {
  margin: 1rem;
  min-width: 240px
}

.leaflet-popup-content p {
  font-size: 1rem;
  margin-top: 0;
  color: var(--p-text-color);
}

.leaflet-popup-content .address {
  margin-top: 2rem;
  margin-bottom: 0;
}

.leaflet-popup-content .country-name {
  font-size: 1.1rem;
  margin-bottom: .5rem;
  margin-top: .5rem;
}

.leaflet-container a.btn {
  color: white;
  -webkit-tap-highlight-color: unset;
}

.leaflet-container a.leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  font: 24px / 24px Tahoma, Verdana, sans-serif;
  color: var(--p-text-color);
  transition: color .2s ease-in-out;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: var(--bs-primary);
}

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

.leaflet-bar {
  border-radius: .25rem;
  border: 1px solid var(--bs-border-color);
  color: var(--bs-primary);
}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
  border: none;
}

.leaflet-touch .leaflet-bar a {
  color: var(--bs-white);
  background-color: var(--bs-primary);
  transition: all .2s ease-in-out;
  line-height: 26px;
}

.leaflet-bar a:hover {
  background-color: var(--bs-primary-hover);
}

.leaflet-touch .leaflet-bar a:last-child {
  border-bottom-left-radius: .25rem;
  border-bottom-right-radius: .25rem;
}

.leaflet-touch .leaflet-bar a:first-child {
  border-top-left-radius: .25rem;
  border-top-right-radius: .25rem;
}