/* ==========================================================================
   PROUDLY SERVING / LOCATIONS WIDGET

   Rendered by arm_locations_widget() (inc/widget-locations.php) and the
   [proudly_serving] shortcode. Content comes from the "Proudly Serving"
   options page (inc/acf-locations-fields.php).

   Self-contained and namespaced (.psl-*) with no ancestor dependencies, so the
   section looks identical on template-service-page.php, template-junk-removal.php
   or any page that drops in the shortcode. Design mirrors the old Service Page
   "Proudly Serving" section (Sora font, #1C3F95 brand blue). Owl Carousel init
   lives in assets/js/locations.js. Enqueued from functions.php (md_theme_scripts()).
   ========================================================================== */

.psl-section {
	padding: 50px 0;
}

.psl-title {
	font-family: 'Sora', sans-serif;
	font-size: 24px;
	line-height: 28px;
	font-weight: 600;
	letter-spacing: -0.5px;
	color: #222222;
	text-align: center;
	margin: 0 0 40px;
}

/* ---------- GRID / PRE-CAROUSEL FALLBACK ---------- */
.psl-grid.owl-carousel {
	display: block;
}

.psl-grid:not(.owl-loaded) {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -10px;
}

.psl-grid:not(.owl-loaded) > .psl-item-link,
.psl-grid:not(.owl-loaded) > .psl-item {
	width: 14.2857%;
	padding: 0 10px;
	margin-bottom: 20px;
}

/* ---------- ITEM ---------- */
.psl-item-link {
	display: block;
	text-decoration: none;
}

.psl-item {
	text-align: center;
}

.psl-photo {
	width: 100%;
	aspect-ratio: 4 / 3;
	margin-bottom: 12px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.psl-photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #EEF1F8 0%, #D9DCE3 100%);
	border: 1px solid #D9DCE3;
	color: #1C3F95;
}

.psl-photo-placeholder i {
	font-size: 36px;
	opacity: .55;
}

.psl-item span {
	font-family: 'Sora', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #222222;
}

.psl-note {
	text-align: center;
	font-family: 'Sora', sans-serif;
	font-size: 15px;
	font-weight: 300;
	color: #35383E;
	margin: 10px 0 0;
}

/* ---------- OWL CAROUSEL OVERRIDES ---------- */
.psl-locations-carousel.owl-carousel {
	margin-bottom: 10px;
}

.psl-locations-carousel .owl-stage-outer {
	padding-bottom: 4px;
}

.psl-locations-carousel .owl-nav {
	display: none;
}

.psl-locations-carousel .owl-dots {
	text-align: center;
	margin-top: 20px;
	line-height: 0;
}

.psl-locations-carousel .owl-dots .owl-dot span {
	width: 9px;
	height: 9px;
	margin: 0 4px;
	background: #d6dbe6;
	border-radius: 50%;
	display: block;
	transition: background-color .2s ease, transform .2s ease;
}

.psl-locations-carousel .owl-dots .owl-dot.active span,
.psl-locations-carousel .owl-dots .owl-dot:hover span {
	background: #1C3F95;
	transform: scale(1.15);
}

/* ==========================================================================
   RESPONSIVE (fallback grid only - Owl handles its own breakpoints once loaded)
   ========================================================================== */
@media screen and (max-width: 991px) {
	.psl-grid:not(.owl-loaded) > .psl-item-link,
	.psl-grid:not(.owl-loaded) > .psl-item {
		width: 25%;
	}
}

@media screen and (max-width: 767px) {
	.psl-grid:not(.owl-loaded) > .psl-item-link,
	.psl-grid:not(.owl-loaded) > .psl-item {
		width: 33.3333%;
	}

	.psl-title {
		font-size: 20px;
		line-height: 26px;
	}
}

@media screen and (max-width: 576px) {
	.psl-grid:not(.owl-loaded) > .psl-item-link,
	.psl-grid:not(.owl-loaded) > .psl-item {
		width: 50%;
	}
}
