:root {
	--sm-navy: #0b2c52;
	--sm-gold: #c7a35a;
	--sm-border: #e5e7eb;
	--sm-text: #1f2937;
}

.sm-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px;
	color: var(--sm-text);
}

.sm-hero {
	background: linear-gradient(145deg, #fff, #f8fafc);
	border: 1px solid var(--sm-border);
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 8px 24px rgba(11, 44, 82, 0.08);
}

.sm-kicker {
	margin: 0;
	color: var(--sm-gold);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 12px;
}

.sm-title {
	margin: 8px 0 8px;
	color: var(--sm-navy);
	font-size: clamp(24px, 3vw, 36px);
	line-height: 1.15;
	font-family: Georgia, "Times New Roman", serif;
}

.sm-subtitle {
	margin: 0;
	max-width: 700px;
	color: #475569;
	font-size: 15px;
}

.sm-controls {
	width: 100%;
	margin-bottom: 20px;
}

/* Filter layout: 4 / 8 column split (scoped; works if theme has no Bootstrap grid). */
.sm-controls > .row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	margin-left: -8px;
	margin-right: -8px;
}

.sm-controls > .row > [class*="col-"] {
	padding-left: 8px;
	padding-right: 8px;
	box-sizing: border-box;
	width: 100%;
	flex: 0 0 100%;
	max-width: 100%;
}

.sm-controls .d-flex.flex-column {
	display: flex;
	flex-direction: column;
}

.sm-controls .gap-3 {
	gap: 1rem;
}

@media (min-width: 768px) {
	.sm-controls > .row > .col-md-4 {
		flex: 0 0 33.333333%;
		max-width: 33.333333%;
	}

	.sm-controls > .row > .col-md-8 {
		flex: 0 0 66.666667%;
		max-width: 66.666667%;
	}
}

.service-section .sm-control-group,
.state-section .sm-control-group,
.city-section .sm-control-group {
	width: 100%;
}

.sm-control-group {
	background: #fff;
	border: 1px solid var(--sm-border);
	border-radius: 12px;
	padding: 14px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.sm-control-label {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--sm-navy);
	font-family: Merriweather, serif !important;
}

.sm-btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sm-option-btn {
	border: 1px solid #cbd5e1;
	background: #fff;
	color: var(--sm-navy);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 14px;
	font-family: Merriweather, serif !important;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.sm-option-btn:hover {
	border-color: var(--sm-navy);
	background: #f8fafc;
	transform: translateY(-1px);
}

.sm-option-btn:focus-visible {
	outline: 2px solid var(--sm-gold);
	outline-offset: 2px;
}

.sm-option-btn.is-active {
	background: var(--sm-navy);
	border-color: var(--sm-navy);
	color: #fff;
	box-shadow: 0 6px 14px rgba(11, 44, 82, 0.25);
}

.sm-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.sm-hidden {
	display: none;
}

.sm-content-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 20px;
}

#sm-map {
	width: 100%;
	height: 520px;
	border-radius: 10px;
	border: 1px solid var(--sm-border);
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.sm-info-panel {
	border: 1px solid var(--sm-border);
	border-radius: 10px;
	padding: 18px;
	background: #ffffff;
	min-height: 520px;
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.sm-info-panel h3 {
	margin: 0 0 14px;
	color: var(--sm-navy);
	font-size: 20px;
	font-family: Georgia, "Times New Roman", serif;
}

.sm-card {
	border-top: 3px solid var(--sm-gold);
	padding-top: 12px;
}

.sm-card p {
	margin: 0 0 10px;
	line-height: 1.5;
}

.sm-location-name strong {
	font-size: 22px;
	line-height: 1.3;
}

.sm-groups-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 18px;
}

.sm-group {
	margin: 8px 0 16px;
}

.sm-group h4 {
	margin: 0 0 8px;
	color: var(--sm-navy);
	font-size: 22px;
	font-family: Georgia, "Times New Roman", serif;
}

.sm-group ul {
	margin: 0 0 0 18px;
	padding: 0;
}

.sm-group li {
	margin: 0 0 6px;
}

.sm-card strong {
	color: var(--sm-navy);
}

.sm-view-btn {
	display: inline-block;
	padding: 10px 16px;
	background: var(--sm-navy);
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
}

.sm-view-btn:hover {
	background: #143d6b;
}

/* THEME PRESETS */
.sm-theme-classic .sm-hero,
.sm-theme-classic .sm-control-group,
.sm-theme-classic #sm-map,
.sm-theme-classic .sm-info-panel {
	box-shadow: none;
}

.sm-theme-classic .sm-hero,
.sm-theme-classic .sm-control-group,
.sm-theme-classic #sm-map,
.sm-theme-classic .sm-info-panel {
	border-radius: 6px;
}

.sm-theme-classic .sm-view-btn {
	border-radius: 4px;
}

.sm-theme-modern .sm-hero {
	background: linear-gradient(145deg, #fff, #f8fafc);
}

.sm-theme-modern #sm-map {
	border-radius: 10px;
}

.sm-theme-modern .sm-info-panel {
	border-radius: 10px;
}

.sm-theme-premium .sm-wrapper {
	--sm-border: #d8c7a3;
}

.sm-theme-premium .sm-hero {
	background: linear-gradient(130deg, #fffefb, #f7f2e8);
	border: 1px solid #d8c7a3;
	border-radius: 18px;
	box-shadow: 0 12px 28px rgba(80, 59, 28, 0.14);
}

.sm-theme-premium .sm-control-group {
	background: #fffefb;
	border: 1px solid #e3d6bc;
	border-radius: 14px;
	box-shadow: 0 8px 20px rgba(80, 59, 28, 0.1);
}

.sm-theme-premium #sm-map {
	border: 1px solid #e3d6bc;
	border-radius: 18px;
	box-shadow: 0 14px 30px rgba(80, 59, 28, 0.15);
}

.sm-theme-premium .sm-info-panel {
	background: #fffefb;
	border: 1px solid #e3d6bc;
	border-radius: 18px;
	box-shadow: 0 14px 30px rgba(80, 59, 28, 0.12);
}

.sm-theme-premium .sm-card {
	border-top: 3px solid #b8862b;
}

.sm-theme-premium .sm-view-btn {
	background: linear-gradient(135deg, #0b2c52, #1c4d82);
	border-radius: 8px;
}

.sm-theme-premium .sm-view-btn:hover {
	background: linear-gradient(135deg, #143d6b, #2a629a);
}

@media (max-width: 1024px) {
	.sm-wrapper {
		padding: 20px 14px;
	}

	.sm-content-grid {
		grid-template-columns: 1.35fr 1fr;
		gap: 16px;
	}

	#sm-map {
		height: 460px;
	}

	.sm-info-panel {
		padding: 16px;
		min-height: 460px;
	}
}

@media (max-width: 768px) {
	.sm-wrapper {
		padding: 16px 12px;
	}

	.sm-hero {
		padding: 16px;
		margin-bottom: 16px;
	}

	.sm-title {
		font-size: clamp(22px, 6vw, 30px);
	}

	.sm-subtitle {
		font-size: 14px;
	}

	.sm-control-group {
		padding: 12px;
	}

	.sm-content-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	#sm-map {
		height: 360px;
		min-height: 360px;
	}

	.sm-info-panel {
		min-height: auto;
		height: auto;
		padding: 14px;
	}

	.sm-groups-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.sm-wrapper {
		padding: 12px 10px;
	}

	.sm-hero {
		padding: 14px;
		border-radius: 12px;
	}

	.sm-kicker {
		font-size: 11px;
	}

	.sm-title {
		font-size: 24px;
	}

	.sm-control-label {
		font-size: 14px;
	}

	.sm-option-btn {
		font-size: 13px;
		padding: 8px 12px;
	}

	#sm-map {
		height: 300px;
		min-height: 300px;
		border-radius: 8px;
	}

	.sm-info-panel {
		border-radius: 8px;
		padding: 12px;
	}

	.sm-info-panel h3 {
		font-size: 18px;
	}

	.sm-location-name strong,
	.sm-group h4 {
		font-size: 20px;
	}

	.sm-group li {
		font-size: 14px;
		margin-bottom: 5px;
	}

	.sm-view-btn {
		width: 100%;
		text-align: center;
		padding: 10px 12px;
	}
}
