<div class="city-grid" data-save-url="{{ action }}">
{% for zone in zones %}
	<button type="button" class="city-item{% if zone.active %} active{% endif %}" data-city-id="{{ zone.zone_id }}">{{ zone.name }}</button>
{% endfor %}
</div>
<style>
.city-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 0 4px;
}
.city-item {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	color: #222;
	cursor: pointer;
	text-align: center;
	transition: all 0.15s ease;
	font-family: inherit;
	line-height: 1.3;
}
.city-item:hover {
	border-color: #aaa;
	background: #f9f9f9;
}
.city-item.active {
	background: #222;
	color: #fff;
	border-color: #222;
}
@media (max-width: 380px) {
	.city-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
</style>
