/* Lanoy Advanced Search — red & white theme (matches the Lanoy logo)
   Override the red anywhere with:  .lanoy-search { --lanoy-red: #c8102e; }      */

/* ---- Full-width band auto-injected under the menu bar (all pages) ---- */
.lanoy-search-band {
	width: 100%;
	background: #ffffff;         /* white band */
	padding: 20px 16px;         /* 20px whitespace top & bottom */
	box-sizing: border-box;
	display: flex;
	justify-content: center;    /* centre the 960px bar */
	position: relative;
	z-index: 500;
}
.lanoy-search-band .lanoy-search {
	max-width: 960px;           /* bar spans up to 960px, centered */
	width: 100%;
	margin: 0 auto;
}

.lanoy-search {
	--lanoy-red: #c8102e;        /* primary red */
	--lanoy-red-dark: #9c0c23;   /* hover / accents */
	--lanoy-white: #ffffff;
	--lanoy-ink: #1f2937;        /* body text */
	--lanoy-muted: #6b7280;      /* secondary text */
	--lanoy-line: #f0d3d7;       /* soft red-tinted border */

	position: relative;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	font-family: inherit;
	box-sizing: border-box;
}
.lanoy-search *,
.lanoy-search *::before,
.lanoy-search *::after { box-sizing: border-box; }

/* ---- Search bar ---- */
.lanoy-search__form {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--lanoy-white);
	border: 2px solid var(--lanoy-red);
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(200, 16, 46, 0.12);
	transition: box-shadow .18s ease, border-color .18s ease;
	margin: 0;
}
.lanoy-search__form:focus-within {
	border-color: var(--lanoy-red-dark);
	box-shadow: 0 4px 18px rgba(200, 16, 46, 0.22);
}
.lanoy-search__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--lanoy-red);
	padding: 0 6px 0 16px;
	flex: 0 0 auto;
}
.lanoy-search__input {
	flex: 1 1 auto;
	border: 0;
	outline: 0;
	background: transparent;
	padding: 13px 8px;
	font-size: 16px;
	color: var(--lanoy-ink);
	width: 100%;
	line-height: 1.3;
}
.lanoy-search__input::placeholder { color: var(--lanoy-muted); }

.lanoy-search__clear {
	flex: 0 0 auto;
	border: 0;
	background: var(--lanoy-red);
	color: #fff;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	margin-right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease;
}
.lanoy-search__clear:hover { background: var(--lanoy-red-dark); }

/* ---- Results panel ---- */
.lanoy-search__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: var(--lanoy-white);
	border: 1px solid var(--lanoy-line);
	border-radius: 16px;
	box-shadow: 0 12px 34px rgba(31, 41, 55, 0.18);
	overflow: hidden;
	z-index: 9999;
	animation: lanoy-pop .14s ease;
}
@keyframes lanoy-pop {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.lanoy-search__results {
	list-style: none;
	margin: 0;
	padding: 6px;
	max-height: 420px;
	overflow-y: auto;
}

/* ---- Result card ---- */
.lanoy-search__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border-radius: 12px;
	cursor: pointer;
	text-decoration: none;
	color: var(--lanoy-ink);
	transition: background .12s ease;
}
.lanoy-search__item:hover,
.lanoy-search__item.is-active {
	background: #fdeef0;
}
.lanoy-search__thumb {
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	border-radius: 10px;
	overflow: hidden;
	background: #f6f7f9;
	border: 1px solid var(--lanoy-line);
	display: flex;
	align-items: center;
	justify-content: center;
}
.lanoy-search__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background: #fff;
}
.lanoy-search__body {
	flex: 1 1 auto;
	min-width: 0;
}
.lanoy-search__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 3px;
	color: var(--lanoy-ink);
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.lanoy-search__title mark {
	background: rgba(200, 16, 46, 0.16);
	color: inherit;
	padding: 0 1px;
	border-radius: 3px;
}
.lanoy-search__info {
	font-size: 12.5px;
	color: var(--lanoy-muted);
	line-height: 1.35;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.lanoy-search__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 5px;
}
.lanoy-search__badge {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 999px;
	white-space: nowrap;
}
.lanoy-search__badge--cat {
	background: var(--lanoy-red);
	color: #fff;
}
.lanoy-search__badge--src {
	background: #fff;
	color: var(--lanoy-red-dark);
	border: 1px solid var(--lanoy-line);
}
.lanoy-search__ext {
	flex: 0 0 auto;
	color: var(--lanoy-muted);
	display: flex;
	align-items: center;
}

/* ---- Live "search all partner sites" fallback row ---- */
.lanoy-search__item--all {
	border-top: 1px dashed var(--lanoy-line);
	margin-top: 4px;
}
.lanoy-search__item--all .lanoy-search__title { color: var(--lanoy-red-dark); }
.lanoy-search__thumb--all {
	background: var(--lanoy-red);
	border-color: var(--lanoy-red);
	color: #fff;
}
.lanoy-search__thumb--all svg { width: 24px; height: 24px; }

/* ---- Empty + footer ---- */
.lanoy-search__empty {
	padding: 22px 16px;
	text-align: center;
	color: var(--lanoy-muted);
	font-size: 14px;
}
.lanoy-search__foot {
	padding: 9px 14px;
	font-size: 11px;
	color: var(--lanoy-muted);
	background: #fbfbfc;
	border-top: 1px solid #f1f1f3;
	text-align: center;
}

/* ---- Scrollbar polish ---- */
.lanoy-search__results::-webkit-scrollbar { width: 8px; }
.lanoy-search__results::-webkit-scrollbar-thumb {
	background: var(--lanoy-line);
	border-radius: 8px;
}

@media (max-width: 480px) {
	.lanoy-search__thumb { width: 48px; height: 48px; }
	.lanoy-search__input { font-size: 15px; }
}
