/* AnaZoneYa Smart Search */
.azy-wrap {
	--azy-accent: #e4572e;
	--azy-text: #2d2e2f;
	--azy-muted: #6e7072;
	--azy-line: #e2e2e2;
	--azy-bg: #fff;
	--azy-radius: 10px;
	color: var(--azy-text);
	font-size: 15px;
	line-height: 1.45;
	box-sizing: border-box;
}
.azy-wrap *, .azy-wrap *::before, .azy-wrap *::after { box-sizing: inherit; }

/* ---------- Search bar ---------- */
.azy-bar {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 760px;
	background: var(--azy-bg);
	border: 1px solid var(--azy-line);
	border-radius: var(--azy-radius);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	margin: 0;
	position: relative;
}
.azy-field {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 0;
	min-width: 0;
	padding: 0 14px;
	gap: 8px;
}
.azy-field--find { flex-grow: 1.3; }
.azy-field + .azy-field { border-inline-start: 1px solid var(--azy-line); }
.azy-field__label {
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
	margin: 0;
	color: var(--azy-text);
}
.azy-wrap .azy-field__input {
	flex: 1;
	min-width: 0;
	border: 0 !important;
	outline: 0;
	box-shadow: none !important;
	background: transparent !important;
	padding: 14px 0 !important;
	margin: 0;
	font: inherit;
	font-size: 15px;
	color: var(--azy-text);
	height: auto;
}
.azy-field__input::placeholder { color: #9a9b9c; }
.azy-field:focus-within { box-shadow: inset 0 -2px 0 var(--azy-accent); }
.azy-wrap .azy-bar__btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 0;
	margin: 0;
	padding: 0 20px;
	min-width: 56px;
	background: var(--azy-accent);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	border-start-end-radius: var(--azy-radius);
	border-end-end-radius: var(--azy-radius);
	border-start-start-radius: 0;
	border-end-start-radius: 0;
	transition: filter .15s;
}
.azy-bar__btn:hover, .azy-bar__btn:focus-visible { filter: brightness(.92); }
.azy-bar__btn-text { display: none; }

/* Swapped-in bars (theme header / homepage hero) */
.azy-wrap--hero .azy-bar { margin: 0 auto; text-align: start; }
.azy-wrap--header { width: 100%; }
.azy-wrap--header .azy-bar { max-width: 100%; box-shadow: none; }
.azy-wrap--bar .azy-field__label { color: var(--azy-text); }

/* ---------- Voice search ---------- */
.azy-wrap .azy-mic {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--azy-muted);
	cursor: pointer;
	transition: background .15s, color .15s;
}
.azy-wrap .azy-mic[hidden] { display: none; }
.azy-wrap .azy-mic:hover, .azy-wrap .azy-mic:focus-visible { background: #f2f2f2; color: var(--azy-text); }
.azy-wrap .azy-mic.is-listening { background: var(--azy-accent); color: #fff; animation: azy-pulse 1.2s ease-out infinite; }
@keyframes azy-pulse {
	0% { box-shadow: 0 0 0 0 rgba(228, 87, 46, .55); }
	100% { box-shadow: 0 0 0 12px rgba(228, 87, 46, 0); }
}
@media (prefers-reduced-motion: reduce) { .azy-wrap .azy-mic.is-listening { animation: none; } }

/* ---------- Suggestions dropdown ---------- */
.azy-suggest {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-start: 0;
	width: max(100%, 320px);
	max-height: 380px;
	overflow-y: auto;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--azy-line);
	border-radius: var(--azy-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
	z-index: 9999;
}
.azy-suggest[hidden] { display: none; }
.azy-suggest__head {
	padding: 8px 14px 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--azy-muted);
	margin: 0;
}
.azy-suggest__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	margin: 0;
	cursor: pointer;
}
.azy-suggest__item.is-active { background: #f2f2f2; }
.azy-suggest__media {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: #f5f5f5;
	color: var(--azy-muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.azy-suggest__media img { width: 100%; height: 100%; object-fit: cover; }
.azy-suggest__text { display: flex; flex-direction: column; min-width: 0; }
.azy-suggest__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.azy-suggest__sub { font-size: 12px; color: var(--azy-muted); }

/* ---------- Results layout ---------- */
.azy-results { max-width: 1280px; margin: 0 auto; }
.azy-results__bar { margin: 8px 0 20px; }
.azy-results__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
	gap: 28px;
	align-items: start;
}
.azy-results__layout > .azy-results__main:only-child { grid-column: 1 / -1; max-width: 860px; }
.azy-results__head { margin-bottom: 10px; }
.azy-wrap .azy-results__title { font-size: 26px; line-height: 1.2; margin: 0 0 4px; font-weight: 800; }
.azy-results__count { margin: 0; color: var(--azy-muted); }
.azy-notice { background: #fff8e5; border: 1px solid #f3dd9b; padding: 8px 12px; border-radius: 8px; font-size: 14px; }

/* ---------- Filters ---------- */
.azy-filters { border-bottom: 1px solid var(--azy-line); padding-bottom: 12px; margin-bottom: 8px; }
.azy-chips, .azy-filters__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.azy-filters__row { margin-top: 10px; }
.azy-wrap .azy-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid #c8c9ca;
	border-radius: 999px;
	color: var(--azy-text);
	text-decoration: none;
	font-size: 14px;
	background: #fff;
	transition: background .15s, border-color .15s;
}
.azy-chip:hover { background: #f5f5f5; }
.azy-wrap .azy-chip.is-active { background: var(--azy-text); border-color: var(--azy-text); color: #fff; }
.azy-chip__n { font-size: 12px; opacity: .7; }
.azy-chip--sm { padding: 4px 12px; font-size: 13px; }
.azy-wrap .azy-clear { font-size: 13px; color: var(--azy-accent); text-decoration: none; }
.azy-sort { margin: 0; margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.azy-sort__label { font-size: 13px; color: var(--azy-muted); margin: 0; }
.azy-wrap .azy-sort__select { font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid #c8c9ca; border-radius: 8px; background: #fff; width: auto; height: auto; }

/* ---------- Cards ---------- */
.azy-wrap .azy-list { list-style: none; margin: 0; padding: 0; }
.azy-card {
	display: flex;
	gap: 16px;
	padding: 18px 12px;
	margin: 0 -12px;
	border-bottom: 1px solid var(--azy-line);
	border-radius: 8px;
	transition: background .2s, box-shadow .2s;
}
.azy-card:hover { box-shadow: 0 2px 14px rgba(0, 0, 0, .09); }
.azy-card.is-flash { background: #fff4ef; }
.azy-card__media {
	flex: 0 0 180px;
	width: 180px;
	height: 180px;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f1f1;
	display: block;
	text-decoration: none !important;
}
.azy-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.azy-card__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; font-weight: 800; color: #c9c9c9; }
.azy-card__body { min-width: 0; flex: 1; }
.azy-wrap .azy-card__title { font-size: 19px; line-height: 1.3; margin: 2px 0 6px; font-weight: 700; }
.azy-wrap .azy-card__title a { color: var(--azy-text); text-decoration: none; }
.azy-card__title a:hover { text-decoration: underline; }
.azy-card__rating { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; margin-bottom: 8px; }
.azy-muted { color: var(--azy-muted); }
.azy-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; margin-bottom: 8px; }
.azy-wrap .azy-tag { background: #f1f1f1; color: var(--azy-text); padding: 2px 9px; border-radius: 4px; font-size: 13px; text-decoration: none; }
.azy-tag:hover { background: #e6e6e6; }
.azy-card__where, .azy-card__dist { color: var(--azy-muted); }
.azy-card__dist::before { content: "• "; }
.azy-card__excerpt { margin: 0; font-size: 14px; color: #444; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.azy-empty { padding: 24px 0; color: var(--azy-muted); }

/* ---------- Stars ---------- */
.azy-stars { position: relative; display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 2px; white-space: nowrap; }
.azy-stars__base { color: #dcdcdc; }
.azy-stars__fill { position: absolute; top: 0; inset-inline-start: 0; overflow: hidden; color: var(--azy-accent); }

/* ---------- Pagination ---------- */
.azy-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0; }
.azy-wrap .azy-pager a { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #c8c9ca; border-radius: 8px; color: var(--azy-text); text-decoration: none; }
.azy-wrap .azy-pager a.is-active { background: var(--azy-text); color: #fff; border-color: var(--azy-text); }

/* ---------- Map ---------- */
.azy-results__map { position: sticky; top: 20px; }
.azy-map { height: calc(100vh - 40px); max-height: 820px; min-height: 360px; border-radius: var(--azy-radius); overflow: hidden; border: 1px solid var(--azy-line); z-index: 0; }
.azy-map-toggle { display: none; }
.azy-pin { background: none; border: 0; }
.azy-pin span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	background: var(--azy-text);
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	transition: background .15s, transform .15s;
}
.azy-pin b { transform: rotate(45deg); line-height: 1; font-weight: 700; }
.azy-pin.is-active span, .azy-pin:hover span { background: var(--azy-accent); transform: rotate(-45deg) scale(1.15); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
	.azy-bar__btn-text { display: inline; }
}
@media (max-width: 960px) {
	.azy-results__layout { grid-template-columns: 1fr; }
	.azy-results__map { position: static; order: -1; }
	.azy-map { display: none; height: 60vh; }
	.azy-show-map .azy-map { display: block; }
	.azy-show-map .azy-results__main { display: none; }
	.azy-wrap .azy-map-toggle {
		display: inline-flex;
		position: fixed;
		bottom: 18px;
		left: 50%;
		transform: translateX(-50%);
		z-index: 1000;
		padding: 10px 22px;
		border-radius: 999px;
		border: 0;
		background: var(--azy-text);
		color: #fff;
		font: inherit;
		font-weight: 700;
		box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
		cursor: pointer;
	}
}
@media (max-width: 600px) {
	.azy-bar { flex-direction: column; }
	.azy-field + .azy-field { border-inline-start: 0; border-top: 1px solid var(--azy-line); }
	.azy-wrap .azy-bar__btn { padding: 12px; border-radius: 0 0 var(--azy-radius) var(--azy-radius); }
	.azy-bar__btn-text { display: inline; }
	.azy-suggest { width: 100%; }
	.azy-card { gap: 12px; }
	.azy-card__media { flex-basis: 96px; width: 96px; height: 96px; }
	.azy-wrap .azy-card__title { font-size: 17px; }
	.azy-sort { margin-inline-start: 0; }
}
