.abivet-locator {
	--abivet-locator-height: 600px;
	display: grid;
	grid-template-columns: 380px minmax(0, 1fr);
	gap: 20px;
	height: var( --abivet-locator-height );
	min-height: 0;
	width: 100%;
	max-width: 100%;
	align-items: stretch;
	overflow: hidden;
}

.abivet-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto auto minmax(0, 1fr);
	grid-template-areas:
		"search"
		"toolbar"
		"list";
	align-items: stretch;
	gap: 12px;
	min-height: 0;
	height: 100%;
	overflow: hidden;
}

.abivet-search-wrap {
	grid-area: search;
	position: relative;
	width: 100%;
	background: #ffffff;
	z-index: 2;
}

.abivet-search-wrap:focus-within {
	outline: 2px solid #0d6efd;
	outline-offset: 2px;
	border-radius: 8px;
}

.abivet-search {
	width: 100%;
	padding: 10px 38px 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	min-height: 44px;
}

.abivet-search-clear {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY( -50% );
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 4px;
	background: #e2e8f0;
	color: #334155;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0;
}

.abivet-results-count {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.abivet-toolbar {
	grid-area: toolbar;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	background: #ffffff;
	z-index: 2;
	padding: 4px 0;
}

.abivet-toolbar-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
}

.abivet-toolbar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
	white-space: nowrap;
	font-family: inherit;
	appearance: none;
	box-sizing: border-box;
}

.abivet-toolbar-btn .abivet-btn-icon {
	font-size: 16px;
	line-height: 1;
	opacity: 0.9;
}

.abivet-near-me {
	background: linear-gradient( 135deg, #0d6efd 0%, #0a58ca 100% );
	color: #ffffff;
	border-color: rgba( 255, 255, 255, 0.2 );
	box-shadow: 0 1px 3px rgba( 13, 110, 253, 0.3 );
}

.abivet-near-me:hover {
	background: linear-gradient( 135deg, #0a58ca 0%, #084298 100% );
	box-shadow: 0 2px 6px rgba( 13, 110, 253, 0.4 );
}

.abivet-near-me:active {
	transform: translateY( 1px );
	box-shadow: 0 1px 2px rgba( 13, 110, 253, 0.3 );
}

.abivet-near-me:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.abivet-reset-view {
	background: #ffffff;
	color: #475569;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 2px rgba( 15, 23, 42, 0.04 );
}

.abivet-reset-view:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #334155;
	box-shadow: 0 2px 4px rgba( 15, 23, 42, 0.06 );
}

.abivet-reset-view:active {
	transform: translateY( 1px );
}

.abivet-reset-view:focus-visible,
.abivet-near-me:focus-visible {
	outline: 2px solid #0d6efd;
	outline-offset: 2px;
}

.abivet-location-list {
	grid-area: list;
	width: 100%;
	min-height: 0;
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #ffffff;
	padding: 10px;
	scrollbar-width: thin;
	scrollbar-color: #94a3b8 #e2e8f0;
}

.abivet-location-list::-webkit-scrollbar {
	width: 10px;
}

.abivet-location-list::-webkit-scrollbar-track {
	background: #e2e8f0;
	border-radius: 10px;
}

.abivet-location-list::-webkit-scrollbar-thumb {
	background: #94a3b8;
	border-radius: 10px;
	border: 2px solid #e2e8f0;
}

.abivet-location,
.abivet-location-item {
	padding: 10px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin-bottom: 10px;
	background: #f8fafc;
}

.abivet-location.active,
.abivet-location-item.is-active {
	border-color: #0d6efd;
	box-shadow: inset 0 0 0 1px #0d6efd;
	background: #eef4ff;
}

.abivet-location-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
}

.abivet-location-address,
.abivet-location-phone {
	font-size: 14px;
	line-height: 1.4;
	margin: 0 0 8px;
	color: #334155;
}

.abivet-location-distance {
	font-size: 12px;
	margin: 0 0 8px;
	color: #0f766e;
	font-weight: 600;
}

.abivet-location-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.abivet-show-on-map,
.abivet-navigate,
.abivet-navigate-link {
	display: inline-block;
	padding: 8px 10px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 13px;
	line-height: 1.2;
	cursor: pointer;
	min-height: 40px;
}

.abivet-show-on-map {
	border: 1px solid #0d6efd;
	background: #ffffff;
	color: #0d6efd;
}

.abivet-mobile-only {
	display: none;
}

.abivet-navigate-link.abivet-mobile-only,
.abivet-popup-navigate.abivet-mobile-only {
	border: 1px solid #0d6efd;
	background: #0d6efd;
	color: #ffffff;
	box-sizing: border-box;
}

.abivet-navigate-link.abivet-mobile-only:hover,
.abivet-popup-navigate.abivet-mobile-only:hover {
	background: #0a58ca;
	border-color: #0a58ca;
	color: #ffffff;
}

.abivet-cluster-marker {
	min-width: 38px;
	height: 38px;
	border: 2px solid #ffffff;
	border-radius: 999px;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	background: #dc2626;
	box-shadow: 0 0 0 4px rgba( 220, 38, 38, 0.25 ), 0 4px 10px rgba( 15, 23, 42, 0.25 );
	cursor: pointer;
}

.abivet-marker-active {
	filter: drop-shadow( 0 0 0.35rem rgba( 37, 99, 235, 0.8 ) );
}

.abivet-navigate,
.partner-locations-map__navigate {
	border: 1px solid #0d6efd;
	background: #0d6efd;
	color: #ffffff;
}

.abivet-map {
	width: 100%;
	height: 100%;
	min-height: 0;
	border-radius: 8px;
	overflow: hidden;
}

/* MapLibre popup container */
.abivet-maplibre-popup .maplibregl-popup-content {
	min-width: 220px;
	max-width: 320px;
	padding: 16px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba( 15, 23, 42, 0.12 ), 0 0 1px rgba( 15, 23, 42, 0.08 );
	border: 1px solid rgba( 13, 110, 253, 0.15 );
}

.abivet-maplibre-popup .maplibregl-popup-tip {
	border-top-color: #ffffff;
}

.abivet-maplibre-popup .maplibregl-popup-close-button {
	font-size: 20px;
	color: #64748b;
	padding: 4px 8px;
	right: 4px;
	top: 4px;
}

.abivet-maplibre-popup .maplibregl-popup-close-button:hover {
	color: #0d6efd;
}

/* Popup content */
.abivet-popup,
.partner-locations-map__info-window {
	text-align: left;
	font-family: inherit;
}

.abivet-popup-title,
.partner-locations-map__info-window h3 {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #0f172a;
	letter-spacing: -0.01em;
}

.abivet-popup-details {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.abivet-popup-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 1.45;
	color: #475569;
}

.abivet-popup-icon {
	flex-shrink: 0;
	font-size: 14px;
	line-height: 1.4;
}

.abivet-popup-phone {
	color: #0d6efd;
	text-decoration: none;
	font-weight: 500;
	word-break: break-all;
}

.abivet-popup-phone:hover {
	text-decoration: underline;
}

.abivet-popup-navigate {
	margin-top: 8px;
	display: inline-flex;
	align-items: center;
}

/* Google Maps InfoWindow (uses same content) */
.abivet-popup p,
.partner-locations-map__info-window p {
	margin: 0 0 8px;
}

.abivet-no-results {
	margin: 0;
	color: #64748b;
	font-size: 14px;
}

@media ( max-width: 900px ) {
	.abivet-locator {
		grid-template-columns: 1fr;
		height: auto;
		min-height: 0;
		overflow: visible;
		gap: 12px;
	}

	.abivet-sidebar {
		height: auto;
		max-height: none;
		overflow: visible;
	}

	.abivet-map {
		width: 100%;
		height: 45vh;
		min-height: 320px;
		max-height: 520px;
	}

	.abivet-sidebar,
	.abivet-location-list {
		height: auto;
	}

	.abivet-sidebar {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto 1fr;
		grid-template-areas:
			"search"
			"toolbar"
			"list";
		align-items: stretch;
		gap: 10px;
	}

	.abivet-search-wrap,
	.abivet-toolbar {
		position: sticky;
		z-index: 4;
	}

	.abivet-search-wrap {
		top: 0;
		padding-top: 4px;
	}

	.abivet-toolbar {
		top: 52px;
		padding-bottom: 4px;
	}

	.abivet-toolbar-actions {
		width: 100%;
		justify-content: stretch;
	}

	.abivet-toolbar-actions .abivet-toolbar-btn {
		flex: 1 1 auto;
		min-width: 0;
	}

	.abivet-search {
		font-size: 16px;
	}

	.abivet-location-list {
		max-height: 42vh;
		overflow-y: auto;
		padding: 8px;
		-webkit-overflow-scrolling: touch;
	}

	.abivet-location {
		padding: 12px;
	}

	.abivet-location-title {
		font-size: 16px;
	}

	.abivet-show-on-map {
		width: 100%;
	}

	.abivet-mobile-only {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.abivet-location-actions .abivet-navigate-link {
		flex: 1 1 auto;
		min-width: 0;
	}
}
