/**
 * 検索モーダル内のインクリメンタルサジェストUI
 *
 * 既存の .ad-search-modal__form の下に挿入される .ad-search-suggest を装飾。
 * 桜紅梅テーマと整合するソフトな配色、タップターゲット48px以上、文字17px。
 */

.ad-search-suggest {
	margin-top: 16px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(40, 20, 20, 0.08);
	overflow: hidden;
	max-height: 60vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.ad-search-suggest[hidden] {
	display: none !important;
}

.ad-search-suggest__section + .ad-search-suggest__section {
	border-top: 1px solid #f3e8e8;
}

.ad-search-suggest__section[hidden] {
	display: none;
}

.ad-search-suggest__heading {
	padding: 12px 20px 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: #b58a8a;
	background: linear-gradient(180deg, #fbf6f6 0%, #ffffff 100%);
}

.ad-search-suggest__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ad-search-suggest__item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	min-height: 48px;
	font-size: 17px;
	line-height: 1.5;
	color: #2a1a1a;
	cursor: pointer;
	transition: background-color 120ms ease;
}

.ad-search-suggest__item:hover,
.ad-search-suggest__item.is-active {
	background-color: #fdf2f2;
}

.ad-search-suggest__item-main {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ad-search-suggest__item-meta {
	flex: 0 0 auto;
	font-size: 13px;
	color: #8a6a6a;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ad-search-suggest__empty {
	padding: 20px;
	text-align: center;
	color: #8a6a6a;
	font-size: 15px;
}

.ad-search-suggest__empty[hidden] {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.ad-search-suggest__item {
		transition: none;
	}
}

/* ── 検索結果ページ上部のキャスト誘導カード ─────────────────────── */
.ad-search-cast-hint {
	display: block;
	margin: 0 auto 24px;
	max-width: 960px;
	background: linear-gradient(135deg, #fff7f7 0%, #ffeaea 100%);
	border: 1px solid #f3d4d4;
	border-radius: 12px;
	padding: 16px 20px;
	text-decoration: none;
	color: inherit;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.ad-search-cast-hint:hover,
.ad-search-cast-hint:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(180, 80, 80, 0.12);
}

.ad-search-cast-hint__label {
	display: block;
	font-size: 12px;
	letter-spacing: 0.12em;
	color: #b16060;
	margin-bottom: 4px;
}

.ad-search-cast-hint__name {
	font-size: 19px;
	font-weight: 600;
	color: #2a1a1a;
}

.ad-search-cast-hint__arrow {
	float: right;
	color: #b16060;
	font-weight: 600;
}

.ad-search-cast-hint__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ad-search-cast-hint__list .ad-search-cast-hint {
	margin: 0;
	flex: 1 1 280px;
	padding: 14px 18px;
}

@media (prefers-reduced-motion: reduce) {
	.ad-search-cast-hint {
		transition: none;
	}
}
