﻿/* LISTA COMPATTA */
.bcc-list-card {
  border: 1px solid var(--bcc-verde-medio);
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}
.bcc-list-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--bcc-verde-scuro);
  align-items: center;
  margin-bottom: 20px;
}
.bcc-tag {
 	font-weight: 400;
 	font-size: 14px;
 	background-color: rgba(216, 233, 195, 1);
 	padding: 4px;
 	color: black;
 }
  
 .bcc-name {
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 14px;
}
.bcc-distance { 
	font-size: 14px;
	font-weight: 500;
}

.bcc-row {
	font-size: 16px;
	font-weight: 400;
	display: flex;
	align-items: center;
	line-height: 1.5;
}

.bcc-address { 
	color: #444;}

.bcc-address::before {
	display: inline-block;
	content: "";
	background-image: url('/Style%20Library/Images/All_Layouts_Images/26_images/Ico_Locator%20pieno.svg');
	width: 25px;
	height: 25px;
	background-size: contain;
	vertical-align: bottom;
	margin-right: 8px;
	background-repeat: no-repeat;
}

.bcc-phone::before {
	display: inline-block;
	content: "";
	background-image: url('/Style%20Library/Images/All_Layouts_Images/26_images/Ico_Contatti%202.svg');
	width: 25px;
	height: 25px;
	background-size: contain;
	vertical-align: bottom;
	margin-right: 8px;
	background-repeat: no-repeat;
}

.bcc-clock::before {
	display: inline-block;
	content: "";
	background-image: url('/Style%20Library/Images/All_Layouts_Images/26_images/Ico_Orologio2.svg');
	width: 25px;
	height: 25px;
	background-size: contain;
	vertical-align: bottom;
	margin-right: 8px;
	background-repeat: no-repeat;
}

.bcc-email::before {
	display: inline-block;
	content: "";
	background-image: url('/Style%20Library/Images/All_Layouts_Images/26_images/Ico_Email.svg');
	width: 25px;
	height: 25px;
	background-size: contain;
	vertical-align: bottom;
	margin-right: 8px;
	background-repeat: no-repeat;
}

.bcc-clock {
  white-space: normal !important;
  display: block;
}
 
.bcc-popup {
  width: 450px !important;
  max-width: 450px !important;
}/* POPUP */
.bcc-popup { 
	min-width: 260px;
	font-family: "Montserrat", sans-serif !important;
	padding: 16px 16px 0 16px;
}
.bcc-popup-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

 .bcc-popup .bcc-tag {
	margin-bottom: 20px;
} 

.bcc-row { font-size: 14px; margin: 6px 0; line-height: 1.5;}
.bcc-popup-details { margin-top: 10px; font-size: 13px; color: #333; }
.bcc-popup-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
}
.bcc-link {
  color: var(--bcc-verde-scuro);
  font-weight: 600;
  text-decoration: none;
}

.ico {
	width: 25px;
	height: 25px;
}

.ico-phone {
	background-image: url('/Style%20Library/Images/maps_images/phone-icon.svg');
}

/* Close button di InfoBubble (già presente con class close-it) */
.close-it {
	color: var(--bcc-verde-scuro);
	font-size: 18px;
	line-height: 18px;
	color: transparent;
	right: 10px !important;
	top: 10px !important;
}
.close-it:before, .close-it:after {
	content: '';
	width: 2px;
	height: 25px;
	background-color: var(--bcc-verde-scuro);
	transform: rotate(45deg);
	right: 10px;
	position: absolute;
	top: 0;
}
.close-it:after {
    transform: rotate(-45deg);
}


/* Modal dettaglio filiale */
.modal-header {
	border-bottom: none;
	display: flex;
	flex-direction: column;
}

.dettaglio-filiale-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.dettaglio-filiale-section-title {
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 8px;
}

.dettaglio-filiale-row {
  margin-bottom: 10px;
  font-size: 14px;
}

.dettaglio-filiale-row strong {
  display: block;
  font-weight: 600;
}

.modal-title {
	color: rgb(0, 53, 148);
}

ul.quadrati li {
  margin: 12px 0;
}

ul.quadrati li::marker {
  content: "■ ";
  color: rgb(0, 53, 148);
}

.btn-street-green::before {
	display: inline-block;
	content: "";
	background-image: url('/Style%20Library/Images/All_Layouts_Images/26_images/Ico_street-green.svg');
	width: 14px;
	height: 14px;
	background-size: contain;
	margin-right: 8px;
	position: absolute;
	left: -20px;
	top: 12px;
}

.cta-primaria.street::after {
	height: .875rem;
    left: 1rem;
    position: absolute;
    width: .875rem;
    background: url('/Style%20Library/Images/All_Layouts_Images/26_images/Ico_street-white.svg') center center / contain no-repeat;
    content: "";
}

.cta-primaria.street.icona-sx {
    padding-left: 2.375rem;
}

.cta-primaria.phone::after {
	height: .875rem;
    left: 1rem;
    position: absolute;
    width: .875rem;
    background: url('/Style%20Library/Images/All_Layouts_Images/26_images/Ico_phone-white.svg') center center / contain no-repeat;
    content: "";
}

.cta-primaria.phone.icona-sx {
    padding-left: 2.375rem;
}

.mobile-only {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.results-list {
	/*height: auto !important;*/
}


.toggle-map-list {
  display: block;
  width: fit-content;
  padding: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Stato iniziale mobile: SOLO MAPPA */
.results-list {
  display: none;
}



/* ===== BLOCCO DISTANZA: LAYOUT DEFINITIVO ===== */

.distanza-col {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  max-width: 100%;
}

.distanza-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.distanza-header {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  gap: 16px;
}

.distanza-header .form-label {
	font-size: 16px;
	font-weight: 600;
}

.distanza-value {
	font-size: 30px;
	font-weight: 700;
}

.distanza-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.distanza-slider-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 24px;
}

.distanza-track { 
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  background: #fff;
  border: 2px solid #9a9a9a;
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
  transform: none !important;
}

#distanzaFill.distanza-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 16px;
  width: 52px;
  border-radius: 999px;
  background: #0a7a3d;
  left: 0;
  transition: left .15s ease;
}

#distanzaFill {
  pointer-events: none;
}

#ddlDistanza {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
  z-index: 10;
  cursor: pointer;
}

.distanza-btn.minus,
.distanza-btn.plus {
  background-color: #0a7a3d;
  color: #fff;
  font-size: 2rem;
}
button.distanza-btn.minus[disabled],
button.distanza-btn.plus[disabled] {
  background-color: #E9EAEB;
  color: #B6B9BB;
  font-size: 2rem;
}
.distanza-btn.minus,
.distanza-btn.plus {
  background-color: #0a7a3d;
  color: #fff;
  font-size: 2rem;
}
.search-block { width:100%; margin-top: 16px; }
.search-row { display:flex; gap:24px; width:100%; flex-wrap:wrap; }
.search-col { flex:1 1 420px; }
.distance-col { flex:1 1 320px; }

.search-input-wrapper { display:flex; gap:8px; }

.cta-row { display:flex; justify-content:center; margin-top: 20px; }
div#_ibaniID {
	border:1px solid #00491F;
	border-bottom:2px solid #00491F;
}
@media (max-width: 767px) {
	.bcc-popup {
		min-width: 0 !important;
	    max-width: 290px !important;
	    width: 290px !important;	
	    padding: 0;
	    max-height: 500px !important;
	}
}
@media (min-width: 769px) {
  .mobile-only {
    display: none;
  	}
  
  .results-list {
	height: 600px;
	}
	
	
.toggle-map-list {
    display: none;
  }

  .results-list {
    display: block;
  }
}
