/* LB Search Results */

/* This template's <body> has no dark hero image behind the header (unlike
   the home page), so the header's white logo/menu text turns invisible on
   the plain white background. Give the header a dark background here only —
   this stylesheet is only enqueued on our own search/shop/category views. */
.elementor-location-header {
	background-color: #1a1a1a !important;
}

.lb-search {
	padding: 32px 0 64px;
	background: #f7f8fa;
}

.lb-search__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.lb-search__title {
	font-size: 24px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #17233c;
	margin: 0 0 20px;
}

.lb-search__count {
	color: #17233c;
}

.lb-search__term {
	color: #e8930f;
}

/* ---- Subcategory chips (parent category archives) ---- */

.lb-subcats {
	display: flex;
	gap: 8px;
	margin: 0 0 16px;
	padding-bottom: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

.lb-subcats::-webkit-scrollbar {
	display: none;
}

.lb-search .lb-subcats__chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid #d7dbe3;
	background: #fff;
	color: #17233c;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.lb-search .lb-subcats__chip span {
	font-size: 12px;
	font-weight: 700;
	color: #e8930f;
}

.lb-search .lb-subcats__chip:hover {
	border-color: #e8930f;
	background: #fff6e6;
	color: #17233c;
}

/* ---- Filter bar ----
   Compact icon toolbar. Selectors are scoped under .lb-search and reset the
   theme/Elementor global button styles (orange fill, white text) that would
   otherwise win over these classes. */

.lb-search .lb-filters {
	position: relative;
	margin-bottom: 20px;
}

.lb-search .lb-filters__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.lb-search .lb-filters__item {
	position: relative;
}

.lb-search .lb-filters__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 14px;
	margin: 0;
	border-radius: 999px;
	border: 1px solid #d7dbe3;
	background: #fff;
	background-image: none;
	color: #17233c;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.lb-search .lb-filters__btn:hover,
.lb-search .lb-filters__btn:focus-visible {
	background: #fff;
	color: #17233c;
	border-color: #17233c;
}

.lb-search .lb-filters__item.is-open .lb-filters__btn {
	border-color: #e8930f;
	box-shadow: 0 0 0 3px rgba(232, 147, 15, .18);
}

.lb-search .lb-filters__item.has-value .lb-filters__btn {
	border-color: #e8930f;
	background: #fff6e6;
}

.lb-search .lb-filters__btn svg {
	flex: none;
	color: #e8930f;
}

.lb-search .lb-filters__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #e8930f;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.lb-search .lb-filters__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e8930f;
}

.lb-search .lb-filters__clear {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: #5b6472;
	text-decoration: underline;
}

.lb-search .lb-filters__clear:hover {
	color: #e8930f;
}

.lb-search .lb-filters__panel {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 40;
	width: 280px;
	background: #fff;
	border: 1px solid #e2e5ea;
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(23, 35, 60, .14);
	overflow: hidden;
}

.lb-search .lb-filters__item.is-open .lb-filters__panel {
	display: block;
}

.lb-search .lb-filters__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #eef0f4;
	font-size: 15px;
	color: #17233c;
}

.lb-search .lb-filters__close {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f3f7;
	color: #17233c;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.lb-search .lb-filters__close:hover {
	background: #e4e8ee;
	color: #17233c;
}

.lb-search .lb-filters__panel-body {
	max-height: 280px;
	overflow-y: auto;
	padding: 8px 16px;
}

.lb-search .lb-filters__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 14px 16px;
}

.lb-search .lb-filters__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #5b6472;
	margin: 0;
}

.lb-search .lb-filters__label input {
	display: block;
	width: 100%;
	height: 42px;
	margin-top: 4px;
	padding: 0 10px;
	border: 1px solid #d7dbe3;
	border-radius: 8px;
	background: #fff;
	font-size: 16px;
	color: #17233c;
}

.lb-search .lb-filters__checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	font-size: 15px;
	color: #17233c;
	cursor: pointer;
}

.lb-search .lb-filters__checkbox input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #e8930f;
}

.lb-search .lb-filters__panel-foot {
	padding: 10px 16px 14px;
	border-top: 1px solid #eef0f4;
}

.lb-search .lb-filters__apply {
	display: block;
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background: #17233c;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	text-transform: none;
	cursor: pointer;
}

.lb-search .lb-filters__apply:hover,
.lb-search .lb-filters__apply:focus-visible {
	background: #e8930f;
	color: #fff;
}

.lb-filters__overlay {
	display: none;
}

/* Phone / small tablet: icon-first toolbar (4 equal tiles, label under the
   icon) and panels become a bottom sheet instead of a floating dropdown. */
@media (max-width: 767px) {
	.lb-search {
		padding-top: 20px;
	}

	.lb-search__container {
		padding: 0 14px;
	}

	.lb-search__title {
		font-size: 21px !important;
		line-height: 1.25 !important;
		margin-bottom: 14px;
	}

	.lb-search .lb-filters__bar {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}

	.lb-search .lb-filters__item {
		position: static;
	}

	.lb-search .lb-filters__btn {
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 100%;
		height: 62px;
		padding: 6px 2px;
		border-radius: 14px;
	}

	.lb-search .lb-filters__btn-text {
		font-size: 11.5px;
		font-weight: 600;
	}

	.lb-search .lb-filters__badge {
		position: absolute;
		top: 5px;
		right: 7px;
		min-width: 16px;
		height: 16px;
		font-size: 10px;
	}

	.lb-search .lb-filters__dot {
		position: absolute;
		top: 8px;
		right: 10px;
	}

	.lb-search .lb-filters__clear {
		grid-column: 1 / -1;
		justify-content: center;
		height: 30px;
	}

	.lb-search .lb-filters__panel {
		position: fixed;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		z-index: 99999;
		max-height: 80vh;
		border: 0;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -10px 40px rgba(23, 35, 60, .25);
	}

	.lb-search .lb-filters__panel-body {
		max-height: 50vh;
	}

	.lb-search .lb-filters__panel-foot {
		padding-bottom: calc(14px + env(safe-area-inset-bottom));
	}

	html.lb-sheet-open .lb-filters__overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 99998;
		background: rgba(23, 35, 60, .5);
	}

	html.lb-sheet-open {
		overflow: hidden;
	}

	/* The floating WhatsApp button would sit on top of the sheet's Apply button. */
	html.lb-sheet-open .ht-ctc,
	html.lb-sheet-open [class*="ht-ctc"] {
		display: none !important;
	}
}

/* ---- Grid ---- */

.lb-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

@media (max-width: 1080px) {
	.lb-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
	.lb-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.lb-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(23, 35, 60, .08);
	transition: transform .18s ease, box-shadow .18s ease;
}

.lb-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(23, 35, 60, .16);
}

.lb-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e9ecf1;
}

.lb-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lb-card__img--placeholder {
	background: linear-gradient(135deg, #dfe3ea, #eef0f4);
}

.lb-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #17233c;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 999px;
	letter-spacing: .01em;
}

.lb-card__fav {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
}

.lb-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 14px 16px 18px;
}

.lb-card__duration {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #e8930f;
	margin-bottom: 6px;
}

.lb-card__title {
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	color: #17233c;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lb-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: #17233c;
	margin-bottom: 8px;
}

.lb-card__star {
	color: #e8930f;
}

.lb-card__rating-count {
	color: #8890a0;
}

.lb-card__price {
	display: block;
	margin-top: auto;
	font-size: 12px;
	color: #5b6472;
}

.lb-card__price-label {
	display: block;
	font-size: 11px;
	color: #8890a0;
}

.lb-card__price .woocommerce-Price-amount {
	font-size: 17px;
	font-weight: 800;
	color: #17233c;
}

/* Two compact, even columns on phones. */
@media (max-width: 800px) {
	.lb-card__badge {
		top: 8px;
		left: 8px;
		font-size: 9.5px;
		padding: 3px 8px;
	}

	.lb-card__fav {
		top: 8px;
		right: 8px;
		width: 28px;
		height: 28px;
	}

	.lb-card__body {
		padding: 10px 12px 14px;
	}

	.lb-card__duration {
		font-size: 10px;
		margin-bottom: 4px;
	}

	.lb-card__title {
		font-size: 13.5px !important;
		line-height: 1.3 !important;
		-webkit-line-clamp: 3;
		min-height: calc(1.3em * 3);
		margin-bottom: 6px;
	}

	.lb-card__rating {
		font-size: 12px;
		margin-bottom: 6px;
	}

	.lb-card__price .woocommerce-Price-amount {
		font-size: 15px;
	}
}

/* ---- Empty state ---- */

.lb-empty {
	background: #fff;
	border-radius: 14px;
	padding: 40px;
	text-align: center;
	color: #5b6472;
}

/* ---- Pagination ---- */

.lb-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 32px;
}

.lb-pagination a,
.lb-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border-radius: 8px;
	border: 1px solid #d7dbe3;
	color: #17233c;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.lb-pagination .current {
	background: #17233c;
	color: #fff;
	border-color: #17233c;
}
