/* CWS Location List — base styles (colors overridable via the Style tab) */

.cws-loclist {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.cws-loclist__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

a.cws-loclist__item:hover {
	transform: translateY(-2px);
}

.cws-loclist__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #10b981;
	font-size: 13px;
	line-height: 1;
}

.cws-loclist__icon i {
	color: #fff;
	font-size: 13px;
}

.cws-loclist__icon svg {
	width: 13px;
	height: 13px;
	fill: #fff;
}

.cws-loclist__label {
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.3;
}

@media (max-width: 1024px) {
	.cws-loclist {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.cws-loclist {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.cws-loclist__label {
		font-size: 15px;
	}
}

/* ============================================================
   CWS Service Hub Map
   ============================================================ */

.cws-hub-wrap {
	width: 100%;
}

.cws-hub {
	position: relative;
	width: 400px;
	max-width: 100%;
	/* Stay square at any width so the rings never become ellipses. */
	aspect-ratio: 1 / 1;
	margin: 0 auto;
}

.cws-hub__ring {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	border: 2px solid #d7edf8;
	border-radius: 50%;
	aspect-ratio: 1 / 1;
}

.cws-hub__ring--1 {
	width: 85%;
}

.cws-hub__ring--2 {
	width: 60%;
}

.cws-hub__ring--3 {
	width: 35%;
}

.cws-hub__line {
	position: absolute;
	left: 50%;
	top: 0;
	width: 2px;
	height: 52%;
	transform: translateX(-50%);
	background-image: linear-gradient(#78c8ef 40%, rgba(255, 255, 255, 0) 0%);
	background-position: right;
	background-size: 2px 12px;
	background-repeat: repeat-y;
}

.cws-hub__center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	z-index: 3;
}

.cws-hub__dot {
	width: 18px;
	height: 18px;
	margin: 0 auto;
	background: #25b9f2;
	border-radius: 50%;
	box-shadow: 0 0 0 10px rgba(37, 185, 242, 0.18);
	animation: cws-hub-pulse 2s infinite;
}

.cws-hub__title {
	margin: 10px 0 0;
	font-size: 20px;
	font-weight: 600;
	color: #1d4d72;
	line-height: 1.2;
}

.cws-hub__sub {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #6d8fa3;
}

.cws-hub__point {
	position: absolute;
	width: 12px;
	height: 12px;
	background: #00c78b;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	z-index: 2;
}

.cws-hub__point:hover,
.cws-hub__point:focus-visible {
	transform: translate(-50%, -50%) scale(1.5);
	box-shadow: 0 0 12px rgba(0, 199, 139, 0.6);
	z-index: 4;
}

.cws-hub__tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) scale(0.9);
	padding: 4px 9px;
	border-radius: 6px;
	background: #1d4d72;
	color: #fff;
	font-size: 11px;
	line-height: 1.3;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.cws-hub__point:hover .cws-hub__tip,
.cws-hub__point:focus-visible .cws-hub__tip,
.cws-hub--labels .cws-hub__tip {
	opacity: 1;
	transform: translateX(-50%) scale(1);
}

.cws-hub--labels .cws-hub__tip {
	transition: none;
}

.cws-hub__caption {
	margin-top: 18px;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 4px;
	font-size: 12px;
	color: #50748d;
}

@keyframes cws-hub-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(37, 185, 242, 0.4);
	}

	70% {
		box-shadow: 0 0 0 18px rgba(37, 185, 242, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(37, 185, 242, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cws-hub__dot {
		animation: none;
	}
}

@media (max-width: 768px) {
	.cws-hub {
		width: 320px;
	}

	.cws-hub__title {
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.cws-hub {
		width: 280px;
	}

	.cws-hub__tip {
		font-size: 10px;
		padding: 3px 7px;
	}

	.cws-hub__dot {
		width: 15px;
		height: 15px;
	}

	.cws-hub__title {
		font-size: 17px;
		margin-top: 8px;
	}

	.cws-hub__point {
		width: 9px;
		height: 9px;
	}

	.cws-hub__caption {
		font-size: 11px;
		letter-spacing: 2px;
		margin-top: 12px;
	}
}

/* ============================================================
   CWS Territory Map
   ============================================================ */

.cws-tmap {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background: #eef3f8;
}

.cws-tmap__canvas {
	width: 100%;
	height: 480px;
}

.cws-tmap__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: #5a6b85;
	pointer-events: none;
}

.cws-tmap__legend {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 10px 13px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
	font-size: 12px;
	line-height: 1.5;
	color: #39506b;
}

.cws-tmap__legend b {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #123e6b;
}

.cws-tmap__key {
	display: block;
}

.cws-tmap__key i {
	display: inline-block;
	width: 22px;
	height: 12px;
	margin-right: 7px;
	border-radius: 3px;
	opacity: 0.75;
	vertical-align: -2px;
}

.cws-tmap .maplibregl-popup-content {
	padding: 7px 11px;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: #123e6b;
}

.cws-tmap .maplibregl-popup-content small {
	font-weight: 400;
	color: #5a6b85;
}

@media (max-width: 767px) {
	.cws-tmap__canvas {
		height: 340px;
	}

	.cws-tmap__legend {
		top: 10px;
		left: 10px;
		padding: 8px 10px;
		font-size: 11px;
	}
}

.cws-tmap__key--dot {
	border-radius: 50%;
	width: 12px !important;
	height: 12px !important;
	opacity: 1 !important;
}

.cws-tmap .maplibregl-ctrl-group {
	border-radius: 10px;
	box-shadow: 0 3px 12px rgba(11, 37, 69, 0.16);
}

.cws-tmap .maplibregl-popup-content {
	box-shadow: 0 6px 20px rgba(11, 37, 69, 0.18);
}

/* ============================================================
   CWS Office Info
   ============================================================ */

.cws-office__head {
	text-align: center;
	margin-bottom: 26px;
}

.cws-office__eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #2ec4b6;
	margin-bottom: 10px;
}

.cws-office__title {
	margin: 0;
	font-size: 27px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}

.cws-office__cols {
	display: flex;
	flex-wrap: wrap;
	gap: 46px;
}

.cws-office__col {
	flex: 1 1 220px;
	min-width: 0;
}

.cws-office__coltitle {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 18px;
}

.cws-office__hours {
	margin-bottom: 16px;
}

.cws-office__day {
	font-size: 17px;
	font-weight: 700;
	color: #2ec4b6;
	line-height: 1.4;
}

.cws-office__time {
	font-size: 15px;
	color: #dde7f1;
	line-height: 1.6;
}

.cws-office__note {
	font-size: 13px;
	opacity: 0.75;
	color: #dde7f1;
	margin-top: 4px;
}

.cws-office__item {
	margin-bottom: 18px;
}

.cws-office__key {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 16px;
	font-weight: 700;
	color: #2ec4b6;
	margin-bottom: 4px;
}

.cws-office__icon svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.cws-office__icon i {
	font-size: 15px;
}

.cws-office__val {
	font-size: 15px;
	line-height: 1.65;
	color: #dde7f1;
}

.cws-office__val a {
	color: inherit;
	text-decoration: none;
}

.cws-office__val a:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.cws-office__cols {
		gap: 26px;
	}

	.cws-office__title {
		font-size: 22px;
	}
}

/* ---------- Office map card ---------- */

.cws-omap__card {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	max-width: 230px;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 4px 16px rgba(11, 37, 69, 0.18);
	font-size: 12.5px;
	line-height: 1.5;
	color: #39506b;
}

.cws-omap__card b {
	display: block;
	color: #0b2545;
	font-size: 13.5px;
	margin-bottom: 3px;
}

.cws-omap__card span {
	display: block;
}

.cws-omap__phone,
.cws-omap__dir {
	display: inline-block;
	margin-top: 7px;
	font-weight: 600;
	color: #13315c;
	text-decoration: none;
}

.cws-omap__dir {
	color: #0f6e56;
}

.cws-omap__phone:hover,
.cws-omap__dir:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.cws-omap__card {
		max-width: 180px;
		font-size: 11.5px;
		padding: 10px 11px;
	}
}
