/* list.html 页面样式 - 餐厅列表 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
	background-color: #F9F9F9;
}

.page {
	min-height: 100vh;
	padding: 0;
}

.top-bar {
	display: flex;
	align-items: center;
	min-height: 5.8rem;
	background-color: #EBF4FF;
}

.top-bar .back {
	padding-left: 1.6rem;
	padding-top: 0.3rem;
}

.back-img {
	width: 1rem;
}

.top-bar .title {
	flex: 1;
	text-align: center;
	font-size: 1.7rem;
	font-weight: 600;
	color: #333;
}

.top-bar .placeholder {
	width: 4rem;
}

.search-bar {
	padding: 1rem 1.4rem;
	background-color: #fff;
	background-color: #EBF4FF;
}

.search-input {
	width: 100%;
	height: 3rem;
	border: 1px solid #1279FE;
	border-radius: 2rem;
	padding: 0 1.6rem;
	font-size: 1.2rem;
	color: #666;
	background-color: #fff;
	background-image: url('../img/search1.png');
	background-size: 1.4rem 1.4rem;
	background-repeat: no-repeat;
	background-position: right 1.2rem center;
}

.search-input:hover {
	border: 1px solid #1279FE;
}

.search-bar {
	background-color: #EBF4FF;
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 1rem 1.4rem;
}
.search-bar .search-input-wrap { flex: 1; }
.search-bar .search-input { width: 100%; }
.search-bar .search-btn {
	position: absolute;
	width: 1.4rem;
	height: 1.4rem;
	right: 2.6rem;
	top: 1.7rem;
}
.sort {
	display: flex;
	align-items: center;
	font-size: 1.2rem;
	color: #333;
}
.load-more {
	text-align: center;
	padding: 1.6rem;
	font-size: 1.3rem;
	color: #999;
}
.load-more.loading { color: #1279FE; }
.load-more.no-more { color: #ccc; }

.filter-bar {
	display: flex;
	align-items: center;
	padding: 1.2rem 1.6rem;
}

.location {
	display: flex;
	align-items: center;
	font-size: 1.2rem;
	color: #333;
	margin-right: auto;
}

.filter-entry {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 1.2rem;
	color: #333;
	background: none;
	border: none;
	padding: 0.4rem 0;
	margin: 0;
	cursor: pointer;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
}

.filter-entry-icon {
	width: 1rem;
	height: 1.6rem;
	flex-shrink: 0;
	background-image: url('../img/filter.png');
	background-size: 1rem auto;
	background-repeat: no-repeat;
	background-position: center;
}

.list-filter-mask {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(0, 0, 0, 0.45);
	align-items: center;
	justify-content: center;
	padding: 1.6rem;
	box-sizing: border-box;
}

.list-filter-mask.show {
	display: flex;
}

.list-filter-modal {
	width: 100%;
	max-width: 32rem;
	background: #fff;
	border-radius: 0.8rem;
	padding: 1.6rem 1.4rem 1.4rem;
	box-shadow: 0 0.2rem 1.6rem rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
}

.list-filter-title {
	font-size: 1.6rem;
	font-weight: 600;
	color: #333;
	margin-bottom: 1.4rem;
}

.list-filter-row {
	display: flex;
	align-items: center;
	margin-bottom: 1.2rem;
	gap: 1rem;
}

.list-filter-label {
	flex-shrink: 0;
	width: 4rem;
	font-size: 1.3rem;
	color: #333;
	text-align: right;
}

.list-filter-field {
	flex: 1;
	min-width: 0;
}

.list-filter-select {
	width: 100%;
	height: 3rem;
	padding: 0 2.4rem 0 1rem;
	font-size: 1.2rem;
	color: #333;
	border: 1px solid #ddd;
	border-radius: 0.5rem;
	background-color: #fff;
	background-image: url('../img/select.png');
	background-repeat: no-repeat;
	background-position: right 0.8rem center;
	background-size: 1rem auto;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
}

.list-filter-actions {
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
	margin-top: 1.8rem;
	padding-top: 0.4rem;
}

.list-filter-btn {
	min-width: 7rem;
	height: 3rem;
	padding: 0 1.2rem;
	font-size: 1.2rem;
	border-radius: 0.5rem;
	cursor: pointer;
	font-family: inherit;
	border: 1px solid #ccc;
	background: #fff;
	color: #333;
	-webkit-tap-highlight-color: transparent;
}

.list-filter-btn-ok {
	border: none;
	background: #1279FE;
	color: #fff;
}

.list-filter-btn-ok:active {
	opacity: 0.9;
}

.list-filter-btn-cancel:active {
	background: #f5f5f5;
}

.location-icon {
	width: 1.6rem;
	margin-right: 1rem;
}

.restaurant-list {
	padding: 0.8rem;
}

.restaurant-item {
	background-color: #fff;
	border-radius: 0.8rem;
	margin-bottom: 1.2rem;
	overflow: hidden;
	box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
}

.item-header {
	display: flex;
	padding: 1.2rem;
}

.item-img {
	width: 9rem;
	height: 9rem;
	border-radius: 0.8rem;
	object-fit: cover;
	margin-right: 1.2rem;
}

.item-info {
	flex: 1;
}

.item-title {
	font-size: 1.2rem;
	color: #3F3F3F;
	margin-bottom: 0.8rem;
	flex: 1;
}

.item-address {
	display: flex;
	font-size: 1.2rem;
	color: #999999;
	margin-bottom: 0.8rem;
	flex: 1;
}

.address-icon {
	width: 1.2rem;
	height: 1.2rem;
	margin-top: 0.3rem;
	margin-right: 0.4rem;
}

.item-meta {
	display: flex;
	align-items: center;
	font-size: 1.2rem;
	color: #999999;
}

.meta-item {
	display: flex;
	align-items: center;
	margin-right: 1.6rem;
}

.meta-icon {
	width: 1.2rem;
	height: 1.2rem;
	margin-right: 0.4rem;
	background-repeat: no-repeat;
	background-size: contain;
}

.seat-icon {
	background-image: url('../img/cws.png');
}

.area-icon {
	background-image: url('../img/mj.png');
}

.distance {
	font-size: 1.2rem;
	color: #1279FE;
	display: flex;
	align-items: center;
	padding-left: 1rem;
}

.distance-icon {
	width: 1.2rem;
}

.call-btn {
	width: 2.2rem;
	height: 2.2rem;
}

.call-btn img {
	width: 2.2rem;
	height: 2.2rem;
}

.item-footer {
	margin: 1.2rem;
	margin-top: 0;
	border-top: 1px #999999 dashed;
	padding-top: 1.2rem;
	display: flex;
}

.policy-title {
	font-size: 1.2rem;
	color: #D91728;
	margin-bottom: 0.8rem;
}

.policy-item {
	font-size: 1.2rem;
	color: #666;
	margin-bottom: 0.4rem;
	flex: 1;
	margin-left: 2rem;
}

.more {
	width: 0.5rem;
	margin-left: 0.5rem;
}

.location a {
	text-decoration: none;
	color: #333;
	display: flex;
	align-items: center;
}

/* 地图选择弹窗（与 map.html 保持一致） */
.map-choice-mask {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: rgba(0, 0, 0, .5);
	z-index: 100;
}

.map-choice-mask.show {
	display: block;
}

.map-choice-sheet {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
	border-radius: 1.2rem 1.2rem 0 0;
	padding: 0.8rem 0 2.4rem;
	z-index: 101;
}

.map-choice-sheet .choice-item {
	display: block;
	width: 100%;
	padding: 1.4rem 2rem;
	text-align: center;
	font-size: 1.6rem;
	color: #333;
	background: none;
	border: none;
	border-bottom: 1px solid #eee;
	cursor: pointer;
}

.map-choice-sheet .choice-item:last-of-type {
	border-bottom: none;
}

.map-choice-sheet .choice-cancel {
	margin-top: 0.8rem;
	color: #666;
}
