/* Map Locations – Frontend (shortcode) */



.map-locations-list::-webkit-scrollbar{
  width:3px;
}

.map-locations-list::-webkit-scrollbar-track{
  background: #F2EBE1; margin: 0px 0; 
}

.map-locations-list::-webkit-scrollbar-thumb{
  background: #172951;
  border-radius: 0px; 
}

.map-locations-wrapper {
	--ml-pin-color: #2563eb;
	--ml-pin-active: #dc2626;
	--ml-accent: #dc2626;
	box-sizing: border-box;
	max-width: 100%;
	font-family: inherit;
}

.map-locations-wrapper *,
.map-locations-wrapper *::before,
.map-locations-wrapper *::after {
	box-sizing: border-box;
}

.map-locations-container {
	display: flex; max-width: 1120px; margin: 0 auto; justify-content: space-between;
}

.map-locations-container .map-locations-map-panel {
    width: 50%; max-width: 456px; padding-right: 25px;
}
.map-locations-svg-wrap {
	position: relative;
	width: 100%;
	background: #f5f5f5;
	border-radius: 8px;
	overflow: hidden; 
}

.map-locations-svg-wrap .map-locations-svg {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

.map-locations-pins {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}

.map-locations-pin {
	position: absolute;
	pointer-events: auto;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
	    padding: 0;
		    border: 2px solid #FFF;
}
.map-locations-pin * {
    color: #172951;
}
.map-locations-pin:hover {
	transform: scale(1.1);
}

/* Custom pin images */
.map-locations-pin--image {
	background: transparent !important;
	padding: 0;
	overflow: hidden;
}
.map-locations-pin--image .map-locations-pin-img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.map-locations-pin--image .map-locations-pin-img--hover {
	display: none;
}
.map-locations-pin--image.map-locations-pin--has-hover:hover .map-locations-pin-img--default {
	display: none;
}
.map-locations-pin--image.map-locations-pin--has-hover:hover .map-locations-pin-img--hover {
	display: block;
}
.map-locations-pin--image.map-locations-pin--has-hover.is-active .map-locations-pin-img--default {
	display: none;
}
.map-locations-pin--image.map-locations-pin--has-hover.is-active .map-locations-pin-img--hover {
	display: block;
}

.map-locations-pin.is-active {
	background-color: var(--ml-pin-active) !important;
	color: #fff !important;
	border: 2px solid #fff;
	transform: scale(1.15);
}

.map-locations-container .map-locations-list-panel {
	width: 50%;
}

.map-locations-filter-wrap {
	margin-bottom: 12px; 
}

.map-locations-filter {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}
.map-locations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 512px;
    max-width: 560px;
    margin-left: auto;
    overflow: auto;
    padding-right: 25px;
}

.map-locations-card {
	background: none;
	border-radius: 7px;
	padding: 11px 15px;
	position: relative;
	transition: border-color 0.15s ease, background-color 0.15s ease;
	border: 1px solid #24584E2E;
}

.map-locations-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: transparent;
	border-radius: 4px 0 0 4px;
	transition: background-color 0.15s ease;
	display: none;
}

.map-locations-card.is-active {
	background: #24584E14;
}

.map-locations-card.is-active::before {
	background: var(--ml-accent);
}

.map-locations-card-title {
	margin: 0 0 8px 0;
	font-size: 1.125rem;
	line-height: 1.3;
	    color: #172951;
    font-weight: 600;
    font-size: 16px;
}

.map-locations-card.is-active .map-locations-card-title {
 
}

.map-locations-card-address,
.map-locations-card-desc,
.map-locations-card-phone,
.map-locations-card-link {
	margin: 4px 0;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.map-locations-card-phone a,
.map-locations-card-link a {
	color: var(--ml-accent);
	text-decoration: none;
}

.map-locations-card-phone a:hover,
.map-locations-card-link a:hover {
	text-decoration: underline;
}

.map-locations-card-content,
.map-locations-card-desc {
	 
}

.map-locations-error {
	color: #b91c1c;
	padding: 12px;
	background: #fef2f2;
	border-radius: 4px;
}
.map-locations-pin.is-active {
    border-color: #ffbb6f !important;
}
.map-locations-wrapper span.number {
    display: block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background-color: #172951;
    border-radius: 50%;
    color: #FFF;
    text-align: center;
    font-weight: 700;
    font-family: "tt-commons-pro", sans-serif;
	    position: absolute;
    left: 14px;
    top: 11px;
}
.map-locations-wrapper  .map-locations-card-cover {
    display: flex;
    padding-left: 74px;
}

.map-locations-card-cover .map-locations-card-link {
    width: 110px;
    text-align: right;
    margin: 0px 0 0 0;
    display: flex;
    align-items: center;
}

.map-locations-wrapper .map-locations-card-cover .map-content-title {
    width: calc(100% - 110px);
}

.map-locations-card-cover .map-locations-card-link a {
    font-size: 15px;
    font-family: "tt-commons-pro", sans-serif;
    font-weight: 600;
    text-decoration: none;
    background: #e8ba61;
    padding: 6px 20px  7px 20px;
    border-radius: 20px;
    color: #172951;
}
.map-locations-card-content {
    padding-top: 9px;
    padding-bottom: 9px;
    display: flex;
    align-items: center;
    min-height: 100px;
}
/* Responsive: stack on small screens */
.map-locations-wrapper .map-locations-card-cover {
    display: flex;
    padding-left: 55px;
}
@media (max-width:1199px) {
    .map-locations-list { max-height: 725px; }
    .map-locations-container .map-locations-list-panel { margin-right: 15px; }
}

@media (max-width: 991px) {
  .map-locations-card-inner { height: auto !important; }   
    .map-locations-list { max-height: 700px; }
	.map-locations-card-content{
		    min-height: 75px;
	}
}

@media (max-width:767px) {
    .map-locations-list {
        padding-right: 15px !important;
    }
    .map-locations-list { 
        max-width: 100%;
    }
    .map-locations-container .map-locations-map-panel {
        width: 100%;
        max-width: 100%;
        padding: 0 0 40px 0;
    }

    .map-locations-container .map-locations-list-panel {
        width: 100%;
    }
	.map-locations-container {
		flex-direction: column; flex-wrap: wrap; 
	}
	.map-locations-map-panel {
		order: 1;
	}
	.map-locations-list-panel {
		order: 2;
	}
    .map-locations-list {
        max-height: 665px;
    }

}
