/* SR Branch Locator — Saferide brand styling
   Colors: Saferide Blue #005299, Orange/CTA #FA8334, Deep Sea Navy #002B4D
   Fonts inherit the site stack (General Sans / Clash Display headings, Plus Jakarta Sans body)
   with safe fallbacks in case those fonts aren't loaded on a given page. */

:root {
	--srbl-blue: #02539A;
	--srbl-orange: #FA8334;
	--srbl-navy: #002B4D;
	--srbl-bg: #F7F8FA;
	--srbl-border: #E7EBEF;
	--srbl-text-muted: #6B7686;
	--srbl-radius: 14px;
}

.srbl-wrap {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--srbl-navy);
	max-width: 1200px;
	margin: 0 auto;
}

.srbl-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.srbl-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.srbl-filter-pill {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1.5px solid var(--srbl-border);
	background: #fff;
	color: var(--srbl-navy);
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.srbl-filter-pill:hover {
	border-color: var(--srbl-orange);
}

.srbl-filter-pill.is-active {
	background: var(--srbl-orange);
	border-color: var(--srbl-orange);
	color: #fff;
}

.srbl-toolbar {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	background: #fff;
	border: 1.5px solid var(--srbl-border);
	border-radius: 999px;
	padding: 4px 4px 4px 18px;
	box-shadow: 0 4px 16px rgba(0, 43, 77, 0.06);
}

.srbl-toolbar-search {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
	color: var(--srbl-text-muted);
}

.srbl-toolbar-search input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	background: transparent;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: var(--srbl-navy);
	padding: 12px 0;
}

.srbl-toolbar-divider {
	width: 1px;
	height: 26px;
	background: var(--srbl-border);
	flex-shrink: 0;
}

.srbl-locate-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	padding: 11px 18px;
	border-radius: 999px;
	border: none;
	background: var(--srbl-orange);
	color: #fff;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	transition: opacity .15s ease;
}

.srbl-locate-btn:hover {
	opacity: .88;
}

.srbl-locate-btn:disabled {
	opacity: .6;
	cursor: default;
}

@media (max-width: 640px) {
	.srbl-toolbar {
		flex-direction: column;
		align-items: stretch;
		max-width: 100%;
		border-radius: 20px;
		padding: 6px 16px;
	}
	.srbl-toolbar-divider {
		display: none;
	}
	.srbl-locate-btn {
		justify-content: center;
		margin: 4px 0 8px;
	}
}

.srbl-body {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

/* --- List column --- */

.srbl-list {
	flex: 0 0 42%;
	max-width: 42%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	max-height: 640px;
	overflow-y: auto;
	padding-right: 6px;
}

.srbl-list .srbl-card:only-child {
	grid-column: 1 / -1;
}

.srbl-card {
	background: #fff;
	border: 1px solid var(--srbl-border);
	border-radius: var(--srbl-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 16px rgba(0, 43, 77, 0.06);
	transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
	cursor: pointer;
}

.srbl-card:hover,
.srbl-card.is-active {
	box-shadow: 0 10px 28px rgba(0, 43, 77, 0.14);
	border-color: var(--srbl-orange);
	transform: translateY(-2px);
}

.srbl-card-thumb {
	height: 120px;
	background-size: cover;
	background-position: center;
	background-color: var(--srbl-bg);
}

.srbl-card-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.srbl-card-name {
	font-family: 'Baloo 2', 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--srbl-blue);
}

.srbl-card-address {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 13px;
	color: var(--srbl-text-muted);
	margin: 0 0 14px;
	line-height: 1.55;
}

.srbl-card-address svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--srbl-orange);
}

.srbl-card-distance {
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: var(--srbl-orange);
	margin: -4px 0 8px;
}

.srbl-card-distance[hidden] {
	display: none;
}

.srbl-card-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
}

.srbl-btn {
	flex: 1;
	min-width: 0;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	padding: 9px 8px;
	border-radius: 8px;
	text-decoration: none;
	transition: opacity .15s ease, background .15s ease, transform .1s ease;
	line-height: 1.3;
}

.srbl-btn:active {
	transform: translateY(1px);
}

/* Solid navy — secondary action, matches the "Book with Driver" hero button */
.srbl-btn-outline {
	background: var(--srbl-navy);
	color: #fff;
	border: 1.5px solid var(--srbl-navy);
}

.srbl-btn-outline:hover {
	opacity: .88;
	color: #fff;
}

/* Solid orange — primary action, matches "Book Self-Drive" / "Book Now" buttons */
.srbl-btn-solid {
	background: var(--srbl-orange);
	color: #fff;
	border: 1.5px solid var(--srbl-orange);
}

.srbl-btn-solid:hover {
	opacity: .88;
}

/* --- Map column --- */

.srbl-map-col {
	flex: 1;
	position: sticky;
	top: 20px;
}

#srbl-map {
	width: 100%;
	height: 640px;
	border-radius: var(--srbl-radius);
	overflow: hidden;
	background: var(--srbl-bg);
}

/* Info window content (styled via JS-injected class) */
.srbl-infowindow {
	font-family: 'Poppins', sans-serif;
	padding: 2px;
}
.srbl-infowindow h4 {
	font-family: 'Baloo 2', sans-serif;
	margin: 0 0 4px;
	font-size: 14px;
	color: var(--srbl-navy);
}
.srbl-infowindow p {
	margin: 0;
	font-size: 12px;
	color: var(--srbl-text-muted);
}

/* --- Responsive --- */

@media (max-width: 900px) {
	.srbl-body {
		flex-direction: column;
	}
	.srbl-list {
		flex: 1 1 auto;
		max-width: 100%;
		grid-template-columns: 1fr 1fr;
		max-height: none;
	}
	.srbl-map-col {
		width: 100%;
		position: static;
	}
	#srbl-map {
		height: 360px;
	}
}

@media (max-width: 560px) {
	.srbl-list {
		grid-template-columns: 1fr;
	}
}

/* --- Admin map picker --- */

#srbl-admin-map {
	border: 1px solid var(--srbl-border);
}
