.alm-filter-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}
.alm-filter-label {
	font-weight: 600;
	color: #374151;
	font-size: 14px;
}
.alm-filter-bar select {
	padding: 8px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	max-width: 260px;
}
.alm-filter-clear {
	font-size: 13px;
	color: #6b7280;
	text-decoration: underline;
}
.alm-filter-submit {
	padding: 8px 16px;
}

.alm-grid, .alm-grid *, .alm-filter-bar, .alm-filter-bar *, .alm-pagination, .alm-pagination * {
	box-sizing: border-box;
}

.alm-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(1, 1fr);
	margin: 20px 0;
}
.alm-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.alm-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.alm-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.alm-grid-cols-3, .alm-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.alm-grid-cols-2, .alm-grid-cols-3, .alm-grid-cols-4 { grid-template-columns: 1fr; }

	.alm-filter-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.alm-filter-bar select {
		max-width: 100%;
		width: 100%;
		font-size: 16px; /* prevents iOS auto-zoom on focus */
	}
	.alm-filter-clear {
		align-self: flex-start;
	}

	.alm-card-contact {
		flex-direction: column;
	}
	.alm-btn {
		width: 100%;
	}

	.alm-pagination {
		gap: 6px;
	}
	.alm-pagination .alm-page-link,
	.alm-pagination .alm-page-ellipsis {
		padding: 8px 10px;
		font-size: 14px;
		min-width: 40px;
		text-align: center;
	}
}

@media (max-width: 400px) {
	.alm-pagination .alm-page-link {
		padding: 6px 8px;
		font-size: 13px;
		min-width: 34px;
	}
}

.alm-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}
.alm-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}
.alm-card-img {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f3f4f6;
}
.alm-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.alm-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.alm-card-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	color: #111827;
}
.alm-card-category {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.alm-badge {
	background: #eef2ff;
	color: #4338ca;
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 999px;
}
.alm-card-location {
	color: #6b7280;
	font-size: 14px;
}
.alm-card-price {
	font-weight: 700;
	color: #111827;
}
.alm-card-contact {
	margin-top: auto;
	display: flex;
	gap: 8px;
	padding-top: 8px;
}
.alm-btn {
	flex: 1;
	text-align: center;
	padding: 8px 12px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}
.alm-btn-call {
	background: #111827;
	color: #fff;
}
.alm-btn-visit {
	background: #f3f4f6;
	color: #111827;
}
.alm-pagination {
	display: flex;
	gap: 8px;
	margin: 24px 0;
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
}
.alm-pagination .alm-page-link {
	padding: 6px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	text-decoration: none;
	color: #111827;
	line-height: 1.4;
}
.alm-pagination .alm-page-current {
	background: #111827;
	color: #fff;
	border-color: #111827;
}
.alm-pagination .alm-page-ellipsis {
	padding: 6px 4px;
	color: #9ca3af;
}
.alm-pagination .alm-page-prev,
.alm-pagination .alm-page-next {
	font-weight: 600;
}

/* Single listing detail view */
.alm-single {
	max-width: 800px;
	margin: 0 auto;
}
.alm-back-link {
	display: inline-block;
	margin-bottom: 16px;
	color: #6b7280;
	text-decoration: none;
	font-size: 14px;
}
.alm-back-link:hover {
	text-decoration: underline;
}
.alm-single-img {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 16px;
	background: #f3f4f6;
}
.alm-single-img img {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
	display: block;
}
.alm-single-title {
	font-size: 28px;
	line-height: 1.25;
	margin: 0 0 12px;
	color: #111827;
}
.alm-single-location {
	color: #6b7280;
	margin: 8px 0;
}
.alm-single-price {
	font-weight: 700;
	font-size: 18px;
	color: #111827;
	margin: 8px 0;
}
.alm-single-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0;
}
.alm-single-contact .alm-btn {
	flex: none;
	padding: 10px 20px;
}

.alm-single-map {
	margin: 20px 0;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
}
.alm-map-canvas {
	width: 100%;
	height: 350px;
	background: #f3f4f6;
}
.alm-single-map iframe {
	display: block;
	width: 100%;
}
.alm-map-link {
	display: block;
	text-align: center;
	padding: 10px;
	background: #f9fafb;
	color: #4338ca;
	font-size: 13px;
	text-decoration: none;
}
.alm-map-link:hover {
	text-decoration: underline;
}

.alm-single-description {
	line-height: 1.7;
	color: #1f2937;
	margin-top: 20px;
}
.alm-single-reviews {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}
.alm-single-privacy {
	margin-top: 24px;
	font-size: 13px;
	color: #9ca3af;
}

@media (max-width: 600px) {
	.alm-single-title {
		font-size: 22px;
	}
	.alm-single-contact {
		flex-direction: column;
	}
	.alm-single-contact .alm-btn {
		width: 100%;
		text-align: center;
	}
}
