/* ==========================================================================
   Locations Map module
   Loaded only on pages that include the Locations Map content module.
   ========================================================================== */

.locations-map-section__intro {
	max-width: 640px;
	margin: 0 auto;
}

/* --- Location cards ------------------------------------------------------ */
.locations-map-cards .location-card {
	height: 100%;
	background-color: var(--color-white-100);
}

.locations-map-cards .location-card .box-card__content {
	padding: 40px 24px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	height: 100%;
}

.location-card__ico {
	margin-bottom: 16px;
}

.location-card__ico img,
.location-card__ico svg {
	width: 44px;
	height: 44px;
	-o-object-fit: contain;
	   object-fit: contain;
}

/* Title block: colored underline spans the FULL card width (Figma),
   with a uniform gap between the title text and the underline whether the
   title is one line or wraps to several. */
.locations-map-cards .location-card .box-card__top {
	width: 100%;
	padding: 0 0 16px 0;
	margin: 0;
	border-bottom-width: 1px;
	border-bottom-style: solid;
}

.locations-map-cards .location-card .box-card__title.location-card__title {
	display: block;
	margin: 0;
	padding: 0;
	font-family: var(--accent-font);
	font-size: 24px;
	line-height: 1.25;
	font-weight: 400;
	color: var(--color-d-purple);
}

.location-card__txt {
	margin-top: 20px;
	font-size: 16px;
	line-height: 1.6;
}

.location-card__txt p {
	margin: 0 0 8px;
}

.location-card__address {
	white-space: normal;
	margin-bottom: 16px !important;
}

/* Description (services list) */
.location-card__desc {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 16px;
	line-height: 1.6;
}

.location-card__desc .list {
	margin-bottom: 0;
}

.location-card__desc p:last-child {
	margin-bottom: 0;
}

.location-card__desc .list li {
	padding-left: 28px;
	padding-bottom: 10px;
}

.location-card__desc .list li:before {
	top: 0.3em;
	width: 14px;
	height: 14px;
}

.location-card__phone a,
.location-card__fax {
	color: var(--base-text-color);
}

.location-card__phone {
	margin-bottom: 6px !important;
}

.location-card__phone a {
	text-decoration: underline;
}

.location-card__directions {
	margin-top: auto;
	padding-top: 24px;
}

/* Get Directions link: Ultra Violet, 16px gap between text and arrow (Figma) */
.location-card__directions .link-more {
	gap: 16px;
	color: var(--color-violet);
}

.location-card__directions .link-more .link-arrow svg path {
	stroke: var(--color-violet);
}

/* --- Leaflet map --------------------------------------------------------- */
.psp-locations-map {
	width: 100%;
	min-height: 320px;
	border-radius: var(--border-radius-lg);
	overflow: hidden;
	z-index: 1; /* keep tiles/controls below site header */
}

.psp-locations-map .leaflet-container {
	font-family: var(--base-font);
}

/* Colored SVG pin */
.psp-map-pin {
	background: transparent;
	border: none;
}

.psp-map-pin svg {
	-webkit-filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
	        filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

/* Popup styling to match card look */
.psp-locations-map .leaflet-popup-content-wrapper {
	border-radius: var(--border-radius);
	-webkit-box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.psp-locations-map .leaflet-popup-content {
	margin: 18px 22px;
}

.psp-map-popup__title {
	display: block;
	font-family: var(--accent-font);
	font-size: 20px;
	line-height: 1.25;
	color: var(--color-d-purple);
	margin-bottom: 10px;
}

.psp-map-popup__link {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 8px;
	font-weight: bold;
	font-size: 14px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--color-violet);
}

.psp-map-popup__link:hover {
	opacity: 0.85;
}

@media (max-width: 767px) {
	.locations-map-cards .location-card .box-card__content {
		padding: 24px;
	}
}