.city-selector {
	display: inline-block;
	margin-right: 15px;
	margin-top: 5px;
}
.city-selector .city-current {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}
.city-selector .city-current:hover {
	text-decoration: underline;
}
.city-selector .fa-map-marker {
	margin-right: 5px;
}

.city-popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99999;
	align-items: center;
	justify-content: center;
}
.city-popup-overlay.active {
	display: flex;
}

.city-popup {
	background: #fff;
	border-radius: 8px;
	width: 90%;
	max-width: 480px;
	max-height: 80vh;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
}
.city-popup.city-popup-cols-2 { max-width: 640px; }
.city-popup.city-popup-cols-3 { max-width: 800px; }
.city-popup.city-popup-cols-4 { max-width: 960px; }

.city-popup-header {
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.city-popup-header h3 {
	margin: 0;
	font-size: 18px;
}
.city-popup-close {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #999;
	padding: 0 5px;
}
.city-popup-close:hover {
	color: #333;
}
.city-popup-body {
	padding: 15px 20px;
	overflow-y: auto;
}

.city-search {
	margin-bottom: 15px;
}
.city-search input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.city-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.city-list-cols-2,
.city-list-cols-3,
.city-list-cols-4 {
	display: flex;
	flex-wrap: wrap;
}
.city-list-cols-2 .city-item { width: 50%; }
.city-list-cols-3 .city-item { width: 33.333%; }
.city-list-cols-4 .city-item { width: 25%; }

.city-list .city-item {
	border-bottom: 1px solid #f0f0f0;
	box-sizing: border-box;
}
.city-list .city-item a {
	display: block;
	padding: 10px 8px;
	color: #333;
	text-decoration: none;
}
.city-list .city-item a:hover,
.city-list .city-item.active a {
	color: #229ac8;
	background: #f7f7f7;
}
.city-list .city-item.hidden {
	display: none;
}

.city-confirm-bar {
	position: fixed !important;
	bottom: 24px !important;
	left: 50% !important;
	right: auto !important;
	top: auto !important;
	transform: translateX(-50%) !important;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
	padding: 16px 22px;
	z-index: 100000 !important;
	display: none;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px 16px;
	max-width: min(560px, calc(100vw - 32px));
	width: max-content;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.4;
	color: #333;
	border: 1px solid rgba(0, 0, 0, 0.06);
}
.city-confirm-bar.active {
	display: flex !important;
}
.city-confirm-bar span {
	white-space: normal;
}
.city-confirm-bar strong {
	font-weight: 600;
}
.city-confirm-bar .btn {
	margin: 0;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.city-list-cols-2 .city-item,
	.city-list-cols-3 .city-item,
	.city-list-cols-4 .city-item {
		width: 50%;
	}
	.city-popup.city-popup-cols-2,
	.city-popup.city-popup-cols-3,
	.city-popup.city-popup-cols-4 {
		max-width: 96%;
	}
}
@media (max-width: 480px) {
	.city-list-cols-2 .city-item,
	.city-list-cols-3 .city-item,
	.city-list-cols-4 .city-item {
		width: 100%;
	}
	.city-confirm-bar {
		flex-direction: column;
		text-align: center;
		width: calc(100vw - 24px);
		max-width: none;
		padding: 14px 16px;
	}
	.city-confirm-bar .btn {
		width: 100%;
	}
}
