.jp-locales {
	font-family: "Work Sans", sans-serif;
	color: #1f2430;
}

.jp-locales-header {
	text-align: left;
	margin: 20px 0 16px;
}

.jp-locales-header h1 {
	font-size: 36px;
	margin: 0 0 6px;
}

.jp-locales-header p {
	margin: 0;
	color: #5b6276;
}

.jp-locales-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	align-items: center;
}

.jp-filter {
	border: 1px solid #d5dbea;
	background: #ffffff;
	border-radius: 999px;
	padding: 6px 14px;
	cursor: pointer;
	font-weight: 600;
	color: #2f3d88;
}

.jp-filter.active {
	background: #2f3d88;
	color: #ffffff;
}

.jp-map-compass {
	position: absolute;
	right: 16px;
	top: 16px;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #d8deee;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
	font-weight: 700;
	color: #2f3d88;
	z-index: 5;
	pointer-events: none;
}

.jp-map-compass-arrow {
	font-size: 14px;
	line-height: 1;
}

.jp-map-compass-label {
	font-size: 12px;
	line-height: 1;
}

.jp-locales-body {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 24px;
}

.jp-locales-map-wrap {
	min-height: 420px;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid #d8deee;
	background: #f2f4f9;
	position: relative;
}

.jp-locales-map {
	position: absolute;
	inset: 0;
}

.jp-locales-map-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #7481a4;
	font-weight: 600;
}

.jp-locales-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.jp-sector-group {
	background: #ffffff;
	border-radius: 20px;
	border: 1px solid #e1e6f2;
	padding: 18px;
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.jp-sector-locations {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.jp-locales--layout-2 .jp-sector-locations {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jp-sector-title {
	margin: 8px 0 6px;
	padding: 8px 14px;
	background: #f4f6fb;
	border-left: 4px solid #2f3d88;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.jp-location-card {
	display: block;
	background: #f9fafc;
	border-radius: 16px;
	border: 1px solid #e6ebf4;
	padding: 14px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
}

.jp-location-card::after {
	content: "";
	display: table;
	clear: both;
}

.jp-location-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.jp-location-card.is-active {
	transform: translateY(-6px) scale(1.02);
	box-shadow: 0 22px 34px rgba(15, 23, 42, 0.18);
	border-color: #c9d3eb;
}

.jp-location-color {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.jp-location-media {
	float: right;
	display: block;
	margin-left: 14px;
	margin-bottom: 6px;
}

.jp-location-media img,
.jp-location-placeholder {
	width: 120px;
	height: 120px;
	border-radius: 999px;
	object-fit: cover;
	background: #eef1f8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #2f3d88;
	filter: brightness(1.12) contrast(1.05) saturate(1.05);
}

.jp-location-info h3 {
	margin: 0 0 4px;
	font-size: 20px;
}

.jp-location-address {
	margin: 0 0 4px;
	color: #4d5466;
	line-height: 1.5;
}

.jp-location-phones,
.jp-location-whatsapp,
.jp-location-email {
	margin: 0 0 2px;
	color: #2c3242;
}

.jp-location-whatsapp a {
	color: #1b7a4f;
	text-decoration: underline;
	font-weight: 600;
}

.jp-location-whatsapp a:hover {
	color: #14643f;
}

.jp-location-status {
	margin: 8px 0;
	font-weight: 700;
}

.jp-location-status.is-open {
	color: #1a7f4b;
}

.jp-location-status.is-closed {
	color: #b42318;
}

.jp-location-hours {
	font-size: 13px;
	color: #5a6278;
	margin-bottom: 8px;
}

.jp-location-map-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border-radius: 999px;
	background: #2f3d88;
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
}

.jp-locales--layout-2 .jp-locales-body {
	display: flex;
	flex-direction: column;
	grid-template-columns: 1fr;
	position: sticky;
	top: 90px;
	height: calc(100vh - 140px);
	overflow: hidden;
}

.jp-locales--layout-2 .jp-locales-map {
	min-height: 360px;
}

.jp-locales--layout-2 .jp-locales-map-wrap {
	position: relative;
	flex: 0 0 auto;
	z-index: 2;
}

.jp-locales--layout-2 .jp-locales-list {
	margin-top: 24px;
	flex: 1 1 auto;
	overflow-y: auto;
	padding-right: 8px;
}

.jp-locales--layout-2 .jp-location-card {
	grid-template-columns: 200px 1fr;
}

.jp-locales--layout-3 .jp-locales-body {
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.jp-locales--layout-3 .jp-locales-map {
	position: sticky;
	top: 90px;
	min-height: 520px;
}

@media (max-width: 980px) {
	.jp-locales-body {
		grid-template-columns: 1fr;
	}

	.jp-locales-map-wrap {
		min-height: 320px;
	}

	.jp-location-card {
		grid-template-columns: 90px 1fr;
	}

	.jp-sector-locations {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.jp-location-card {
		text-align: center;
	}

	.jp-location-media {
		float: none;
		display: block;
		margin: 0 auto 12px;
	}

	.jp-location-media img,
	.jp-location-placeholder {
		width: 160px;
		height: 160px;
	}
}
