/*
 * 全店舗から探すページ（[machinavi_search]、/sagasu/）。
 * カード・検索欄・チップは list.css、地区の選択欄は discover.css の部品をそのまま使い、ここでは並べ方と追加の部品だけ。
 */
.mn-sagasu__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0 0 20px;
}
.mn-sagasu__row {
	display: flex;
	flex: 1 1 420px;
	gap: 8px;
	max-width: 520px;
}
.mn-sagasu__row .mn-search {
	flex: 1 1 auto;
}
.mn-sagasu__go {
	flex: 0 0 auto;
	height: 44px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: #0071e3;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.mn-sagasu__go:hover {
	background: #0077ed;
}
.mn-sagasu__go:active {
	transform: scale(.97);
}
.mn-sagasu .mn-search input:focus {
	box-shadow: 0 0 0 3px rgba(0, 113, 227, .3), 0 1px 3px rgba(0, 0, 0, .08);
}

/* ジャンル：灰色の帯の中で選ぶ（iPhone の切り替えボタン風） */
.mn-sagasu__genres {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 16px;
	padding: 4px;
	border-radius: 999px;
	background: #f5f5f7;
}
.mn-sagasu__seg {
	--mn-seg: #1d1d1f;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 16px;
	border-radius: 999px;
	color: #1d1d1f;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease, box-shadow .2s ease;
}
.mn-sagasu__seg:hover {
	color: #1d1d1f;
	text-decoration: none;
	background: rgba(0, 0, 0, .04);
}
.mn-sagasu__seg span {
	color: #86868b;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.mn-sagasu__seg.is-active {
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 3px 10px rgba(0, 0, 0, .06);
	color: var(--mn-seg);
}
.mn-sagasu__seg.is-active span {
	color: inherit;
	opacity: .7;
}

/* 種類（タグ）のチップは list.css の .mn-chip をリンクで使う */
.mn-sagasu .mn-chips {
	margin: 0 0 18px;
}
.mn-sagasu a.mn-chip {
	display: inline-flex;
	align-items: center;
	color: #1d1d1f;
	text-decoration: none;
}
.mn-sagasu a.mn-chip.is-active {
	color: #fff;
}

/* 今の条件 */
.mn-sagasu__now {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0 0 22px;
	font-size: 14px;
}
.mn-sagasu__pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px 0 14px;
	border-radius: 999px;
	background: rgba(0, 113, 227, .1);
	color: #0066cc;
	font-weight: 600;
	text-decoration: none;
}
.mn-sagasu__pill:hover {
	color: #0066cc;
	text-decoration: none;
	background: rgba(0, 113, 227, .16);
}
.mn-sagasu__clear {
	color: #0066cc;
	text-decoration: none;
}
.mn-sagasu__clear:hover {
	text-decoration: underline;
}

/* 見つからないとき */
.mn-sagasu__empty p + p {
	margin-top: 12px;
}
.mn-sagasu__hint {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 18px;
}
.mn-sagasu__hint a {
	color: #0066cc;
	text-decoration: none;
}

/* ページ送り */
.mn-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 40px 0 0;
}
.mn-pager__num,
.mn-pager__step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	color: #1d1d1f;
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	transition: background-color .2s ease;
}
.mn-pager a:hover {
	background: #f5f5f7;
	color: #1d1d1f;
	text-decoration: none;
}
.mn-pager__step {
	color: #0066cc;
}
.mn-pager__num.is-current {
	background: #1d1d1f;
	color: #fff;
}
.mn-pager__gap {
	color: #86868b;
}

/* 現在地を確認中などの短いお知らせ */
.mn-sagasu__toast {
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom));
	z-index: 100000;
	margin: 0;
	padding: 12px 20px;
	border-radius: 999px;
	background: rgba(29, 29, 31, .86);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	backdrop-filter: blur(16px) saturate(180%);
	color: #fff;
	font-size: 14px;
	transform: translateX(-50%);
	box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

@media screen and (max-width: 768px) {
	.mn-sagasu__row {
		flex-basis: 100%;
		max-width: none;
	}
	.mn-sagasu__row .mn-search {
		flex-basis: auto;
	}
	.mn-sagasu .mn-areabar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}
	.mn-sagasu .mn-select,
	.mn-sagasu .mn-select select {
		width: 100%;
		min-width: 0;
	}
	/* ジャンルは横にスクロール */
	.mn-sagasu__genres {
		display: flex;
		flex-wrap: nowrap;
		max-width: 100%;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.mn-sagasu__genres::-webkit-scrollbar {
		display: none;
	}
	.mn-sagasu__seg {
		flex: 0 0 auto;
		padding: 0 14px;
	}
	.mn-pager {
		margin-top: 28px;
	}
	/* アプリの下のタブと重ならないように */
	.mn-sagasu__toast {
		bottom: calc(88px + env(safe-area-inset-bottom));
	}
}
