
#mappa-luoghi { height: 600px; margin-bottom: 20px; }
#categoria-filter-wrap { margin-bottom: 15px; }
#luoghi-list { margin-top: 30px; }
#luoghi-list .luogo-item { margin-bottom: 15px; font-size: 14px; }
#luoghi-list hr { border: 0; height: 1px; background-color: #CACACA; margin: 10px 0; }



.acf-mappa-wrapper {
  display: flex;
  flex-wrap: wrap;
}
#luoghi-list {
  flex: 1 1 33.33%;
  max-width: 33.33%;
  padding: 10px;
  box-sizing: border-box;
}
#mappa-luoghi {
  flex: 1 1 66.66%;
  max-width: 66.66%;
  height: 600px;
}
@media (max-width: 768px) {
  .acf-mappa-wrapper { flex-direction: column; }
  #luoghi-list, #mappa-luoghi { max-width: 100%; flex: 1 1 100%; }
  #mappa-luoghi { order: 1; }
  #luoghi-list { order: 2; }
}


.acf-mappa-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

#luoghi-list {
  flex: 1 1 33.33%;
  max-width: 33.33%;
  overflow-y: auto;
  max-height: 600px;
  padding: 10px;
  box-sizing: border-box;
}

#acf-mappa {
  flex: 1 1 66.66%;
  max-width: 66.66%;
  height: 600px;
}

@media (max-width: 768px) {
  .acf-mappa-wrapper {
    flex-direction: column;
    align-items: initial;
  }
  #luoghi-list,
  #acf-mappa {
    max-width: 100%;
    flex: 1 1 100%;
    max-height: none;
    overflow: visible;
  }
}

/* Fix legenda pin visibility */

.legenda-pin {
    display: inline-block !important;
    height: 32px !important;
    width: 32px !important;
    object-fit: contain !important;
    background-color: white !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}
