/* Map Locations – Frontend (shortcode) */



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

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

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

.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; align-items: center;
}

.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);
}

.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%;
	position: relative;
}

.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: 740px;
    max-width: 560px;
    margin-left: auto;
    overflow: auto;
    padding-right: 40px;
}

.map-locations-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px;
	position: relative;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.map-locations-card::before {
    bottom: 0;
    border-radius: 4px 0 0 4px;
    transition: background-color 0.15s ease;
    content: "" !important;
    position: absolute !important;
    left: 0px !important;
    top: 23px !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 25px solid transparent !important;
    border-left: 30px solid #B3152E !important;
    border-bottom: 25px solid transparent !important;
    background: transparent !important;
    z-index: 99; opacity:0;
}

.map-locations-card.is-active {
	border-color: var(--ml-accent);
	background: #fef2f2;
}

.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;
}

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

.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 {
	border-top: 1px solid #e5e7eb;
	padding-top: 8px;
	margin-top: 8px;
}

.map-locations-error {
	color: #b91c1c;
	padding: 12px;
	background: #fef2f2;
	border-radius: 4px;
}

/* Responsive: stack on small screens */
@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; }
}

@media (max-width:767px) {
    .map-locations-list::-webkit-scrollbar{
      width: 2px; height: 4px;
    }
    .map-locations-list::-webkit-scrollbar-track{ 
      margin: 0 50px;    
    }
    .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;
		flex-direction: row;
    }
	.map-locations-card {
		width: 100%;
		display: flex;
		overflow-x: auto;
		flex: none;
        margin-bottom: 20px !important;
	}
	.map-locations-list{
		display:flex;
		overflow-x:auto;
		overflow-y:hidden;
		flex-direction: inherit;
		padding-bottom: 15px;
		padding-right: 0 !important;
	}
    .map-locations-card::before {     top: 20px !important; border-top: 20px solid transparent !important; border-left: 25px solid #B3152E !important; border-bottom: 20px solid transparent !important;}

}
