a, a:hover { color: #1450A8;}

/* Map map */
#mapCanvas img {
  max-width: none;
}

.leaflet-google-layer{
    z-index: 0 !important;
}

.leaflet-map-pane{
    z-index: 100;
}

.info {
  font-family: 'Lato', sans-serif;
  padding: 6px 8px;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  border-radius: 5px;
}

.info h4 {
  margin: 0 0 5px;
  color: #777;
}

.results-count {
  font-family: 'Lato', sans-serif;
  padding: 6px 8px;
  background: #ffffff;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  border-radius: 5px;
}

.filter-box { 
  margin-top: 5px;
  height: 15px; 
  width: 15px;  
  display: inline-block;
  *border-right-width: 4px;
  *border-bottom-width: 4px;
  -webkit-border-radius: 10px;
     -moz-border-radius: 10px;
          border-radius: 10px;
  -webkit-background-clip: padding-box;
     -moz-background-clip: padding;
          background-clip: padding-box; 
}

.filter-yellow { background-color: #FFCC0D; }
.filter-green { background-color: #10AC03; }
.filter-blue { background-color: #1653A8; }
.filter-purple { background-color: #6614AC; }
.filter-red { background-color: #CC2537; }
.filter-orange { background-color: #CD8518; }
.filter-grey { background-color: #7B7B7B; }

body {
  font-family: Inter Tight , sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.container-fluid {
  padding: 0 !important;
  overflow-x: hidden;
  width: 100%;
}

.container-fluid.bd-example-row {
    overflow: visible;
}

.modal h2 {
  font-size: clamp(1.875rem, 1.3929rem + 0.5357vw, 2.25rem);
  font-style: normal;
  font-weight: 700;
  line-height: clamp(2.125rem, 1.6429rem + 0.5357vw, 2.5rem);
}

.modal p {
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.25rem; 
}

.modal span {
  font-size: 2.875rem;
  font-weight: 700;
  line-height: 3.25rem;
}

.modal-content {
  border-radius: 0;
  border: none;
  min-height: 30vh;
}

.modal-dialog {
  margin: 0;
}

.modal-lg, .modal-xl {
  max-width: 45vw !important;
  min-width: 550px;
}

.modal {
  scrollbar-width: none; /* Per Firefox */
  -ms-overflow-style: none;  /* Per IE e Edge */
}

/* Nasconde la scrollbar su WebKit */
.modal::-webkit-scrollbar {
  display: none;
}

.modal {
  padding-right: 0 !important;
}  

.modal {
  position: fixed;
  top: 50%;
  left: 23vw;
  transform: translate(-50%, -50%);
  z-index: 1050;
  display: none;
  height: auto;
  width: 100%;
  overflow: hidden;
  outline: 0;
}

@media screen and (max-width: 820px) {
  .modal {
    left: 32vw;
  }
}

@media screen and (max-width: 768px) {
  .modal {
    left: 35vw;
  }
}

.card-body {
  position: absolute;
  z-index: 999;
  word-wrap: break-word;
  margin: 1rem 2rem;
  background-color: #fff;
}

@media screen and (max-width:767px) {
  .card-body {
    position: relative;
    margin: 0;
    padding: 1rem 0 1.5rem .9rem;
  }

  .card-body_2 {
    border: 0;
  }

  .input-group {
    min-width: 100vw !important;
  }

  .row {
    margin-right: 0;
  }

  .form-check-inline {
    margin-left: 0;
    margin-right: 0;
  }
}

.card-body .container {
  padding: 0 !important;
}

.input-group {
  background-color: #EDEDED !important;
  width: 30vw !important;
  max-width: 600px;
  min-width: 400px;
}

.input-group input {
  margin-left: 1.5rem !important;
  margin-right: 1.5rem !important;
  padding: 1rem 0 1rem 0 !important;
  height: 3.5rem !important;
}

.input-group-append .btn {
  border: 0 !important;
}

.btn-outline-secondary {
  color: #005FB7;
  background-color: #000;
  border-color: #fff;
  border-radius: 0 !important;
  margin: .3rem .3rem .3rem 0;
}

.btn-outline-secondary.focus, .btn-outline-secondary:focus {
  box-shadow: none !important;
}

.btn-outline-secondary:hover svg {
  fill: #fff !important;
}

button#btnSearch:hover svg path {
  fill: #fff !important;
}

button#btnSearch:hover {
  background-color: #ff0000 !important;
}

.form-control {
  border: none !important;
  background-color: transparent !important;
}

.form-control:focus {
  box-shadow: none !important;
}

.modal-content {
  background-color: #EDEDED;
}

.modal-body {
  padding: 2rem !important;
}

#modal-main { 
  padding-top: 3rem !important;
}

.top-section {
  margin-top: 3rem;
  display: grid !important;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  align-self: stretch;
  border-top: 1px solid #161616;
  padding: 0.5rem 0;
  width: 100%;
  height: 100%;
}

.accordion {
  margin: 2rem 0;
}

.accordion-button {
  color: #31A360;
  background: none;
  text-decoration: underline;
  border: none;
  padding:0;
  cursor: pointer;
  text-align: left;
  font-size: clamp(1rem, 0.8393rem + 0.1786vw, 1.125rem);
  font-weight: 600;
  line-height: clamp(1.25rem, 1.0893rem + 0.1786vw, 1.375rem);
}

.table-1 {
  margin-top: 2rem;
}

.accordion-content {
  padding: 1rem 0;
  display: none;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

table {
  width: 100%;
}
table tr {
  border-bottom: solid 1px #1b1b1b !important;
}

table tr td {
  padding: 10px 0;
}

td:nth-child(1) {
  width: 50%;
  padding-right: 1rem;
}
td:nth-child(2) {
  width: 28%;
}
td:nth-child(3) {
  width: 18%;
}

td:nth-child(4) {
  width: 4%;
}

.modal.fade .modal-dialog {
  transition: transform 0.4s ease-out;
  transform: translateX(0) !important;
}

.modal.show .modal-dialog {
  transform: translateX(0) !important;
}

.marker-cluster-small {
  background-color: rgba(0, 0, 0, 0.1) !important;
}

.marker-cluster-small div {
  background-color:  #000 !important;
}

.marker-cluster-medium {
  background-color: rgba(0, 0, 0, 0.1) !important;
}

.marker-cluster-medium div {
  background-color:  #000 !important;
}

.marker-cluster-large {
  background-color:  #000 !important;
}

.marker-cluster-large div {
  background-color: #000 !important;
}

.leaflet-marker-icon span {
  color: #fff !important;
}

.col-md-12 {
  padding: 0 !important;
}

.col-md-12 .form-check {
  display: flex;
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid #B3B3B3;
  margin-right: 10px;
  position: relative;
}

.form-check input[type="checkbox"]:checked {
  background-color: #000;
}

.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 10px;
  border: solid white;
  top: 0.3vw;
  right: 0.1vw;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

@media screen and (max-width: 1500px) {
  .form-check input[type="checkbox"]:checked::after {
    top: 0.5vw !important;
    right: 0.25vw !important;
  }
}

@media screen and (max-width:1024px) {
  .form-check input[type="checkbox"]:checked::after {
      top: 1vw !important;
      right: 0.5vw !important;
  }
}

.icon-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-check {
  justify-content: space-between;
  border-bottom: 1px solid #B3B3B3 !important;
  padding-bottom: 0.75rem;
}

.form-check-inline {
  margin-right: 1rem !important;
  margin-left: 1rem;
}

.form-check-label {
  font-family: 'Inter Tight', sans-serif !important;
  font-size: max(16px,16px + 5*(100vw - 1440px)/1440) !important;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 0.16px;
}

.reset-filtri {
  display: none;
  gap: 0.5rem;
  align-items: center;
  padding-left: 1rem;
  padding-top: 1rem;
  cursor: pointer;
  position: relative;
  z-index: 1000;
}

.reset-filtri p {
  transition: 0.3s;
}

.reset-filtri.visible:hover p {
  color: #ff0000 !important;
  opacity: 1 !important;
}

.reset-filtri.visible {
  display: flex !important;
}

/* Font definition */
@font-face {
  font-family: 'BwGradual';
  src: url('../font/bwgradual-bold.woff2') format('woff2'),
       url('../font/bwgradual-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.reset-filtri p {
  color: #000 !important;
  font-family: 'BwGradual', Sans-serif !important;
  font-size: max(20px, 20px + 5*(100vw - 1440px) / 1440) !important;
  font-weight: 700 !important;
  line-height: max(24px,24px + 5*(100vw - 1440px)/1440) !important;
  margin: 0 !important;
  padding-top: 3px;
}

h4.popup-title {
  color: #ff0000;
  font-family: 'BwGradual', Sans-serif !important;
  font-weight: 700 !important;
  font-size: max(32px,32px + 15*(100vw - 1440px)/1440);
  line-height: max(34px,34px + 15*(100vw - 1440px)/1440);
}

p.inter {
  margin: 0 !important;
}

.inter {
  color: #000;
  font-family: 'Inter Tight', sans-serif !important;
  font-weight: 400 !important;
  font-size: max(20px,20px + 5*(100vw - 1440px)/1440) !important;
}

.inter a {
  color: #000;
  text-decoration: underline;
  transition: 0.4s;
}

.inter a:hover {
  color: #ff0000;
}

.info-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media screen and (max-width: 1024px) {
  .info-container {
    padding-left: 1rem;
  }

  .modal-body {
    padding: 1rem !important
  }
}


@media screen and (max-width: 1024px) and (min-width: 821px) {
  .modal-content {
    min-height: 26vh;
  }
}

@media screen and (max-width: 1024px) and (min-width: 768px) {
  button.close {
    padding-right: 1rem;
  }
}


/* Mobile Filters */

.mobile-filters .btn-primary {
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
  box-shadow: none;
  margin: 0 1rem;
}

button.btn.btn-primary.w-100.mb-2 {
  width: 100vw !important;
  border-radius: 0;
  text-align: start;
  display: flex;
  justify-content: space-between;
}

.btn-primary:not(:disabled):not(.disabled):active {
  color: #000;
  background-color: #ffffff;
  border-color: #ffffff;
}

.mobile-filters .card {
  max-height: 80vh;
  overflow-y: auto;
}

.mobile-filters .form-check {
  margin-bottom: 10px;
}

/* Adjust desktop filters for better spacing */
.desktop-filters .form-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 767px) {
  .form-check-inline {
    display: block;
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .icon-label {
    display: flex;
    align-items: center;
    gap: 10px;
  }


@media screen and (max-width:767px) {
  .form-check input[type="checkbox"]:checked::after {
    top: 2.5vw;
    right: 1vw;
  }
}

  .form-check input[type="checkbox"] {
    margin-right: 8px;
    border: 1px solid #000;
  }

  .form-check-inline {
    margin-right: 0 !important;
  }

  .modal {
    left: 50%;
  }

  .modal-lg {
    min-width: 100vw !important;
  }
}

div#mobileFilters {
  padding-top: 0.5rem;
}

/* .leaflet-top.leaflet-left {
  top: auto !important;
  bottom: 20px;
} */

.leaflet-control-zoom.leaflet-bar.leaflet-control {
  margin-bottom: 10px;
}

@media screen and (max-width:1024px) {
    .container {
        max-width: 100% !important;
    }
}

.leaflet-bottom.leaflet-right {
    display: none;
}