:root {
	--ameloc-bg: #F1F5F8;
	--ameloc-surface: #ffffff;
	--ameloc-dark: #1a1a1a;
	--ameloc-mid: #3d3d3d;
	--ameloc-muted: #7a7a7a;
	--ameloc-border: #e0dbd3;
	--ameloc-accent: #ff780b;
	--ameloc-accent-light: #f5e6e9;
	--ameloc-radius: 6px;
	--ameloc-radius-lg: 6px;
	--ameloc-shadow: 0 2px 12px rgba(0, 0, 0, .08);
	--ameloc-shadow-hover: 0 6px 24px rgba(0, 0, 0, .14);
	--ameloc-transition: .22s cubic-bezier(.4, 0, .2, 1);
}

body.post-type-archive-ame_cpt_location #content {
	background: var(--ameloc-bg) !important;
}

.ameloc-wrapper *,
.ameloc-wrapper *::before,
.ameloc-wrapper *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.ameloc-wrapper {
	color: var(--ameloc-dark);
	background: var(--ameloc-bg);
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 0;
	width: 100%;
	margin: auto;
	max-width: 1200px;
	min-height: 600px;
	border-radius: 0px;
	overflow: hidden;
}

.ameloc-sidebar {
	background: var(--ameloc-surface);
	border-right: 1px solid var(--ameloc-border);
	padding: 0;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100%;
	max-height: none;
	overflow-y: auto;
	overflow-x: hidden;
}

.ameloc-sidebar::-webkit-scrollbar {
	width: 5px;
}

.ameloc-sidebar::-webkit-scrollbar-track {
	box-shadow: none;
	border-radius: 0px;
}

.ameloc-sidebar::-webkit-scrollbar-thumb {
	background: var(--ameloc-muted);
	border-radius: 2px;
}

.ameloc-sidebar::-webkit-scrollbar-thumb:hover {
	background: var(--ameloc-mid);
}

.ameloc-sidebar-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 16px 16px;
	border-bottom: 2px solid var(--ameloc-accent);
	color: #fff;
}

.ameloc-sidebar-header h2 {
	font-size: 1.3rem !important;
	font-weight: 400;
	text-transform: capitalize;
}

.ameloc-search-wrap {
	padding: 12px;
}

.ameloc-label {
	font-size: .75rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--ameloc-muted);
	margin-bottom: 8px;
}

.ameloc-search-box {
	position: relative;
}

.ameloc-search-icon {
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-75%);
	width: 16px;
	height: 16px;
	stroke: var(--ameloc-muted);
	pointer-events: none;
}

.ameloc-input {
	width: 100% !important;
	padding: 8px 8px 8px 30px !important;
	border: 1px solid var(--ameloc-border) !important;
	border-radius: var(--ameloc-radius);
	transition: border-color var(--ameloc-transition), box-shadow var(--ameloc-transition) !important;
	outline: none !important;
	margin: 0 0 8px 0 !important;
}

.ameloc-input:focus {
	border-color: var(--ameloc-accent);
	box-shadow: 0 0 0 3px var(--ameloc-accent-light);
}

.ameloc-divider {
	width: auto;
	margin: 0px 16px;
	border: 1px solid #f5f5f5;
	display: block;
}

.ameloc-filter-group {
	padding: 12px;
}

.ameloc-filter-group .ameloc-label {
	margin-bottom: 8px;
}

.ameloc-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	cursor: pointer;
	font-size: 0.9rem;
	color: var(--ameloc-mid);
	transition: color var(--ameloc-transition);
	user-select: none;
	font-family: 'Fira Sans', sans-serif;
}

.ameloc-radio-label:hover {
	color: var(--ameloc-accent);
}

.ameloc-radio {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.ameloc-radio-custom {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid var(--ameloc-border);
	flex-shrink: 0;
	position: relative;
	transition: border-color var(--ameloc-transition), background var(--ameloc-transition);
}

.ameloc-radio:checked+.ameloc-radio-custom {
	border-color: var(--ameloc-accent);
	background: var(--ameloc-accent);
	box-shadow: inset 0 0 0 2px #fff;
}

.ameloc-content {
	background: var(--ameloc-bg);
	padding: 30px 40px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ameloc-results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ameloc-border);
}

.ameloc-results-count {
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ameloc-muted);
}

.ameloc-spinner {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	opacity: 0;
	transition: opacity .2s;
}

.ameloc-spinner.is-active {
	opacity: 1;
}

.ameloc-spinner>div {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ameloc-accent);
	animation: ameloc-bounce 1s infinite;
}

.ameloc-spinner>div:nth-child(2) {
	animation-delay: .15s;
}

.ameloc-spinner>div:nth-child(3) {
	animation-delay: .3s;
}

.ameloc-spinner>div:nth-child(4) {
	animation-delay: .45s;
}

@keyframes ameloc-bounce {

	0%,
	80%,
	100% {
		transform: scale(.6);
		opacity: .4;
	}

	40% {
		transform: scale(1);
		opacity: 1;
	}
}

.ameloc-list {
	flex: 1;
	gap: 22px;
	display: flex;
	padding-top: 16px;
	padding-bottom: 16px;
	flex-direction: column;
}

.ameloc-card {
	background: var(--ameloc-surface);
	border: 0px solid var(--ameloc-border);
	border-radius: 0px;
	display: grid;
	grid-template-columns: 150px 1fr 150px;
	align-items: stretch;
	overflow: hidden;
	box-shadow: var(--ameloc-shadow);
	transition: box-shadow var(--ameloc-transition), transform var(--ameloc-transition), border-color var(--ameloc-transition);
	animation: ameloc-slide-in .35s ease both;
}

@keyframes ameloc-slide-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ameloc-card-thumb {
	width: 150px;
	height: 150px;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--ameloc-muted);
	border-right: 1px solid var(--ameloc-border);
}

.ameloc-card:hover {
	box-shadow: var(--ameloc-shadow-hover);
	border: 0px solid var(--ameloc-border);
	transform: translateY(-2px);
}

.ameloc-card-thumb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: transform .4s ease;
}

.ameloc-card-body {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ameloc-card-title {
	font-weight: 700;
	overflow: hidden;
	white-space: nowrap;
	letter-spacing: .02em;
	text-overflow: ellipsis;
	font-size: 1.1rem !important;
	color: var(--ameloc-dark) !important;
}

a.ameloc-card-title:hover {
	color: var(--ameloc-accent) !important;
}

.ameloc-card-description {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	font-size: .82rem;
	color: var(--ameloc-muted);
	line-height: 1.4;
}

.ameloc-map-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ameloc-muted);
}

.ameloc-card-items {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

ul.ameloc-card-products {
	gap: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	list-style: none !important;
}

ul.ameloc-card-products li {
	margin: 0;
}

ul.ameloc-card-products li img {
	width: 1.7rem;
	height: 1.7rem;
	object-fit: contain;
}

.ameloc-button-goloc {
	outline: none;
	box-shadow: none;
	font-weight: 500;
	padding: 5px 10px;
	font-size: 0.7rem;
	border-radius: 0px;
	color: white !important;
	text-transform: uppercase;
	text-decoration: none !important;
	background-color: var(--ameloc-accent);
	transition: all var(--ameloc-transition);
}

.ameloc-button-goloc:hover {
	outline: none;
	box-shadow: none;
	background-color: var(--ameloc-mid);
}

.ameloc-no-results {
	text-align: center;
	padding: 40px 20px;
	color: var(--ameloc-muted);
	font-size: 1rem;
}

.ameloc-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--ameloc-border);
	margin-top: auto;
}

.ameloc-pages {
	display: flex;
	gap: 8px;
	align-items: center;
}

.ameloc-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 8px 18px;
	border-radius: var(--ameloc-radius);
	border: 1px solid var(--ameloc-border);
	background: var(--ameloc-surface);
	color: var(--ameloc-mid);
	cursor: pointer;
	transition: all var(--ameloc-transition);
}

.ameloc-btn svg {
	width: 16px;
	height: 16px;
}

.ameloc-btn:hover:not(:disabled) {
	background: var(--ameloc-dark);
	border-color: var(--ameloc-dark);
	color: #fff;
}

.ameloc-btn:disabled {
	opacity: .35;
	cursor: not-allowed;
}

.ameloc-page-btn {
	width: 36px;
	height: 36px;
	border-radius: var(--ameloc-radius);
	border: 1px solid var(--ameloc-border);
	background: var(--ameloc-surface);
	color: var(--ameloc-mid);
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
	transition: all var(--ameloc-transition);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ameloc-page-btn:hover {
	background: var(--ameloc-dark);
	border-color: var(--ameloc-dark);
	color: #fff;
}

.ameloc-page-btn.is-active {
	background: var(--ameloc-accent);
	border-color: var(--ameloc-accent);
	color: #fff;
}

@media (max-width: 900px) {
	.ameloc-wrapper {
		grid-template-columns: 1fr;
	}

	.ameloc-sidebar {
		border-right: none;
		border-bottom: 1px solid var(--ameloc-border);
		max-height: none;
		position: static;
	}

	.ameloc-filter-group {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 2px 8px;
	}

	.ameloc-filter-group .ameloc-label {
		grid-column: 1 / -1;
	}

	.ameloc-sidebar-footer {
		display: none;
	}
}

@media (max-width: 600px) {
	.ameloc-card {
		grid-template-columns: 1fr;
	}

	.ameloc-card-thumb {
		width: 100%;
		height: 200px;
	}

	.ameloc-map-placeholder {
		display: none;
	}

	.ameloc-card-map {
		display: none;
	}

	.ameloc-btn-nav {
		min-width: auto;
		padding: 8px 12px;
		font-size: .78rem;
	}
}