/* Simply Locations Map — Frontend */

.slm-wrap {
	--slm-border: #d0d0d0;
	--slm-text: #333333;
	--slm-muted: #666666;
	--slm-header: #4a4a4a;
	--slm-accent: #8b1e2d;
	--slm-accent-soft: rgba(139, 30, 45, 0.06);
	--slm-radius: 4px;
	color: var(--slm-text);
	max-width: 1100px;
	margin: 0 auto;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.slm-map-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #f3f3f3;
	border-radius: var(--slm-radius);
	overflow: hidden;
	border: 1px solid var(--slm-border);
}

.slm-map-stage iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.slm-map-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 1.5rem;
	text-align: center;
	color: var(--slm-muted);
}

.slm-toolbar {
	margin: 1.25rem 0 1rem;
}

.slm-search {
	display: block;
	width: 100%;
	max-width: 360px;
}

.slm-search__input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--slm-border);
	border-radius: var(--slm-radius);
	font: inherit;
	line-height: 1.4;
	background: #fff;
}

.slm-search__input:focus {
	outline: 2px solid var(--slm-accent);
	outline-offset: 1px;
	border-color: var(--slm-accent);
}

.slm-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--slm-border);
	box-sizing: border-box;
}

.slm-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	background: #fff;
}

.slm-table th,
.slm-table td {
	text-align: left;
	vertical-align: top;
	padding: 1.1rem 1.25rem;
	border-bottom: 1px solid var(--slm-border);
	border-right: 1px solid var(--slm-border);
	border-top: 0;
	border-left: 0;
}

.slm-table th:last-child,
.slm-table td:last-child {
	border-right: 0;
}

.slm-table tbody tr:last-child td {
	border-bottom: 0;
}

.slm-table thead th {
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
	color: var(--slm-header);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	background: #fff;
}

.slm-table .slm-col-title {
	width: 18%;
}

.slm-table .slm-col-address {
	width: 34%;
}

.slm-table .slm-col-description {
	width: 32%;
}

.slm-table .slm-col-link {
	width: 16%;
}

.slm-row {
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.slm-row:hover,
.slm-row:focus-visible {
	background: #fafafa;
	outline: none;
}

.slm-row.is-active {
	background: var(--slm-accent-soft);
}

.slm-row.is-hidden {
	display: none;
}

.slm-item__title {
	display: block;
	font-size: 1rem;
	line-height: 1.45;
	font-weight: 400;
	color: var(--slm-text);
}

.slm-item__address,
.slm-item__description {
	display: block;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--slm-text);
	font-weight: 400;
}

.slm-item__link {
	color: var(--slm-accent);
	font-size: 1rem;
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.slm-item__link:hover,
.slm-item__link:focus {
	color: #6e1623;
}

.slm-item__link-empty {
	color: var(--slm-muted);
}

.slm-no-results {
	margin: 1rem 0 0;
	color: var(--slm-muted);
	text-align: center;
}

/* Phone: stacked rows, keep table look on iPad+ */
@media (max-width: 767px) {
	.slm-map-stage {
		aspect-ratio: 4 / 3;
	}

	.slm-search {
		max-width: none;
	}

	.slm-table-wrap {
		border: 0;
	}

	.slm-table,
	.slm-table thead,
	.slm-table tbody,
	.slm-table th,
	.slm-table td,
	.slm-table tr {
		display: block;
		width: 100%;
	}

	.slm-table thead {
		display: none;
	}

	.slm-table .slm-row {
		padding: 0.85rem 1rem;
		border: 1px solid var(--slm-border);
		border-bottom: 0;
		box-sizing: border-box;
	}

	.slm-table .slm-row:last-child {
		border-bottom: 1px solid var(--slm-border);
	}

	.slm-table td {
		padding: 0.25rem 0;
		border: 0;
	}

	.slm-table td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 0.15rem;
		font-size: 0.8rem;
		font-weight: 700;
		color: var(--slm-header);
	}

	.slm-col-link {
		margin-top: 0.35rem;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.slm-table th,
	.slm-table td {
		padding: 1rem 1rem;
		font-size: 0.95rem;
	}

	.slm-table .slm-col-title {
		width: 16%;
	}

	.slm-table .slm-col-address {
		width: 34%;
	}

	.slm-table .slm-col-description {
		width: 30%;
	}

	.slm-table .slm-col-link {
		width: 20%;
	}
}
