/* KC Site Tweaks — layout fixes and small front-end changes.
   Colours follow KC Geo Search: text #111827, muted #6b7280, borders #e5e7eb, site red #f91942. */

/* ---------- Phone header (Elementor "Mobile Header": logo only) ----------
   The script turns it into: menu (left) · logo (centred) · account (right), with a full-width
   location row below. Everything hangs off .kc-mh-host, which only that header gets. */

.kc-mh-host > .elementor-container {
	justify-content: center;
}
.kc-mh-host > .elementor-container > .elementor-column {
	width: auto !important;
	flex: 0 0 auto;
}
.kc-mh-host .elementor-widget-site-logo img {
	width: 96px !important; /* the template shows the logo at 49px wide, hard to read */
	max-width: none !important;
	height: auto !important;
}
.kc-mh-host > .kc-mh-burger,
.kc-mh-host > .kc-mh-account {
	position: absolute;
	z-index: 6;
	top: calc(var(--kc-mh-row, 51px) / 2);
	transform: translateY(-50%);
}
.kc-mh-host > .kc-mh-burger {
	left: 12px;
}
.kc-mh-host > .kc-mh-account {
	right: 12px;
}

/* Location row: KC Geo Search's button, full width, place name and "Kerala" on one line. */
.kc-mh-locrow {
	display: none;
	padding: 0 12px 8px;
	line-height: 1.2;
}
.kc-mh-has-loc > .kc-mh-locrow {
	display: block;
}
.kc-mh-locrow > .kc-geo-header-slot--m {
	position: static;
	display: block;
	width: 100% !important;
	max-width: none !important;
	margin: 0;
	transform: none;
}
.kc-mh-locrow .kc-geo-picker--chip {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	max-width: none !important;
	min-height: 0;
	padding: 6px 10px !important;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
	text-align: left;
}
.kc-mh-locrow .kc-geo-picker-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: row; /* KC Geo Search stacks the town over "Kerala" */
	align-items: baseline;
	gap: 4px;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}
.kc-mh-locrow .kc-geo-picker-label {
	overflow: hidden;
	text-overflow: ellipsis;
}
.kc-mh-locrow .kc-geo-picker-sub {
	display: inline !important;
	font-size: 13px;
	flex: 0 0 auto;
	color: #6b7280;
}
.kc-mh-locrow .kc-geo-picker-sub::before {
	content: "· ";
}
.kc-mh-locrow .kc-geo-caret {
	flex: 0 0 auto;
	margin-left: auto;
}

.kc-mh-btn {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	background: #fff;
	color: #111827;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
	text-decoration: none;
}
.kc-mh-btn:hover,
.kc-mh-btn:focus {
	border-color: #f91942;
	background: #fff;
	color: #f91942;
}
.kc-mh-btn:focus-visible {
	outline: 2px solid #f91942;
	outline-offset: 2px;
}
.kc-mh-burger {
	border-radius: 10px;
}

/* Logged in: profile photo (or initial) with a green "signed in" dot. */
.kc-mh-account.is-in {
	padding: 2px;
	border-color: #f91942;
}
.kc-mh-avatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	overflow: hidden;
	border-radius: 50%;
	background: #f91942;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}
.kc-mh-avatar img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border-radius: 50%;
}
.kc-mh-dot {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 11px;
	height: 11px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #16a34a;
}

/* Drawer */
.kc-mh-overlay {
	position: fixed;
	z-index: 100000;
	inset: 0;
	background: rgba(17, 24, 39, 0.45);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.kc-mh-drawer {
	position: fixed;
	z-index: 100001;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(86vw, 340px);
	background: #fff;
	color: #111827;
	box-shadow: -8px 0 24px rgba(17, 24, 39, 0.15);
	transform: translateX(100%);
	transition: transform 0.25s ease;
}
.kc-mh-overlay[hidden],
.kc-mh-drawer[hidden] {
	display: none;
}
.kc-mh-open .kc-mh-overlay {
	opacity: 1;
}
.kc-mh-open .kc-mh-drawer {
	transform: none;
}
html.kc-mh-open,
html.kc-mh-open body {
	overflow: hidden;
}
.kc-mh-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #e5e7eb;
}
.kc-mh-title {
	font-size: 18px;
	font-weight: 700;
}
.kc-mh-user {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.kc-mh-avatar--lg {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	font-size: 20px;
}
.kc-mh-user-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}
.kc-mh-user-text strong {
	overflow: hidden;
	font-size: 16px;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.kc-mh-user-text span {
	color: #16a34a;
	font-size: 13px;
}
.kc-mh-drawer-body {
	flex: 1 1 auto;
	padding: 8px 16px 24px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.kc-mh-drawer .kc-mh-links {
	margin: 0;
	padding: 0;
	list-style: none;
}
.kc-mh-drawer .kc-mh-links li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.kc-mh-drawer .kc-mh-links a {
	display: block;
	padding: 13px 4px;
	border-bottom: 1px solid #f3f4f6;
	color: #111827;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
}
.kc-mh-drawer .kc-mh-links a:hover,
.kc-mh-drawer .kc-mh-links .current-menu-item > a {
	color: #f91942;
}
.kc-mh-drawer .kc-mh-links .sub-menu {
	margin: 0;
	padding: 0 0 0 14px;
	list-style: none;
}
.kc-mh-links--account {
	margin-bottom: 8px !important;
	padding-bottom: 8px !important;
	border-bottom: 1px solid #e5e7eb;
}
.kc-mh-auth {
	display: flex;
	gap: 10px;
	padding: 8px 0 16px;
	border-bottom: 1px solid #e5e7eb;
}
.kc-mh-auth-btn {
	flex: 1 1 0;
	padding: 11px 8px;
	border: 1px solid #f91942;
	border-radius: 8px;
	color: #f91942;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}
.kc-mh-auth-btn.is-primary {
	background: #f91942;
	color: #fff;
}
.kc-mh-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 20px;
	padding: 12px;
	border-radius: 8px;
	background: #f91942;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}
.kc-mh-cta:hover,
.kc-mh-cta:focus,
.kc-mh-auth-btn.is-primary:hover {
	background: #111827;
	color: #fff;
}
.kc-mh-logout {
	display: block;
	margin-top: 14px;
	color: #6b7280;
	font-size: 15px;
	text-align: center;
	text-decoration: underline;
}

/* ---------- Listing results: cards on phones and tablets, list on desktop ----------
   DirectoryPress list view (listview_mod; card markup from KC Contact Access's template-list-3).
   Tablets (768–1023px): a two-column grid with the photo on top, one category, title (2 lines),
   town and distance, then the contact buttons as a row of icons (labels stay for screen
   readers). Phones (below 768px): one card per row, see the next block. Desktop keeps the list. */

@media (max-width: 1023px) {
	.listing-list-view-inner-wrap.listview_mod {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		padding: 0 10px;
	}
	.listview_mod > .row.directorypress-listing {
		display: flex;
		float: none !important;
		width: auto !important;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-item-holder {
		display: flex !important;
		flex-direction: column;
		width: 100%;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden;
		border: 1px solid #e5e7eb;
		border-radius: 10px;
		background: #fff;
		box-shadow: none !important;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-figure {
		position: relative;
		float: none !important;
		width: 100% !important;
		max-width: none !important;
		height: auto !important;
		margin: 0 !important;
		aspect-ratio: 4 / 3;
		overflow: hidden;
		background: #f3f4f6;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-figure .listing-thumbnail {
		display: block;
		width: 100%;
		height: 100% !important;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-figure img {
		display: block;
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		object-fit: cover;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-text-content-wrap {
		float: none !important;
		flex: 1 1 auto;
		width: auto !important;
		min-width: 0;
		margin: 0 !important;
		padding: 8px 10px 4px !important;
	}
	.listview_mod .row.directorypress-listing .mod-inner-content {
		padding: 0 !important;
	}
	/* One category, one line ("IT Companies", not "IT Companies › Web Hosting"). */
	.listview_mod .row.directorypress-listing .cat-wrapper {
		height: auto !important;
		margin: 0 0 2px !important;
		overflow: hidden;
		line-height: 1.3;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
	.listview_mod .row.directorypress-listing .cat-wrapper .listing-cat {
		display: inline !important;
		height: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
		color: #6b7280 !important;
		font-size: 11px !important;
		line-height: 1.3 !important;
	}
	.listview_mod .row.directorypress-listing .cat-wrapper .cat-seperator,
	.listview_mod .row.directorypress-listing .cat-wrapper .cat-seperator ~ * {
		display: none !important;
	}
	/* Favourite (heart): on the photo's top-right corner instead of over the title. */
	.listview_mod .row.directorypress-listing .directorypress-listing-item-holder {
		position: relative;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-text-content-wrap,
	.listview_mod .row.directorypress-listing .mod-inner-content {
		position: static !important; /* the theme makes these the heart's positioning box */
	}
	.listview_mod .row.directorypress-listing .listing-listview-buttons {
		position: absolute !important;
		z-index: 2;
		top: 8px;
		right: 8px;
		float: none !important;
		margin: 0 !important;
	}
	.listview_mod .row.directorypress-listing .kc-listview-tags-wrap:not(:empty) {
		margin: 2px 0 !important;
		transform: scale(0.85);
		transform-origin: left center;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-title {
		margin: 2px 0 4px !important;
		padding: 0 !important;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-title h2 {
		display: -webkit-box;
		width: auto !important;
		margin: 0 !important;
		overflow: hidden;
		color: #111827;
		font-size: 14px !important;
		font-weight: 600;
		line-height: 1.3 !important;
		white-space: normal !important;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
	.listview_mod .row.directorypress-listing .listing-content-fields:empty {
		display: none;
	}
	.listview_mod .row.directorypress-listing .listing-location {
		display: flex;
		align-items: center;
		gap: 4px;
		margin: 0 0 4px !important;
		padding: 0 !important;
		overflow: hidden;
		font-size: 12px !important;
		line-height: 1.3 !important;
		white-space: nowrap;
	}
	.listview_mod .row.directorypress-listing .listing-location i {
		flex: 0 0 auto;
		width: auto !important;
		margin: 0 !important;
		font-size: 11px;
	}
	.listview_mod .row.directorypress-listing .listing-location .directorypress-location {
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.listview_mod .row.directorypress-listing .kc-geo-dist {
		margin: 0 0 4px !important;
		font-size: 11px !important;
	}

	/* Contact buttons: one row of icon buttons at the bottom of the card. */
	.listview_mod .row.directorypress-listing .modlist-bottom-area {
		margin: auto 0 0 !important;
		padding: 4px 10px 10px !important;
		border: 0 !important;
	}
	.listview_mod .row.directorypress-listing .kc-ca-card-actions {
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: 6px !important;
		margin: 0 !important;
		padding: 0 !important;
	}
	.listview_mod .row.directorypress-listing .kc-ca-action-card,
	.listview_mod .row.directorypress-listing .kc-ca-card-enquiry {
		flex: 1 1 0 !important;
		justify-content: center;
		min-width: 0;
		min-height: 36px !important;
		padding: 0 !important;
		border-radius: 8px !important;
	}
	.listview_mod .row.directorypress-listing .kc-ca-action-card::after {
		content: none !important;
	}
	.listview_mod .row.directorypress-listing .kc-ca-action-card .kc-ca-action-icon {
		flex: 0 0 26px !important;
		width: 26px !important;
		height: 26px !important;
		margin: 0 !important;
		font-size: 13px !important;
	}
	.listview_mod .row.directorypress-listing .kc-ca-action-card .number-main,
	.listview_mod .row.directorypress-listing .kc-ca-card-enquiry span {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		overflow: hidden !important;
		clip: rect(0 0 0 0) !important;
		white-space: nowrap;
	}
	.listview_mod .row.directorypress-listing .kc-ca-card-enquiry {
		font-size: 15px !important;
	}
}
/* Phones: one card per row, dubizzle-style. Large photo, clear text, and labelled buttons
   ("View Number", "WhatsApp Chat") side by side; Send enquiry stays a square icon button. */
@media (max-width: 767px) {
	.listing-list-view-inner-wrap.listview_mod {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
		padding: 0 12px;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-item-holder {
		border-radius: 12px;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-figure {
		aspect-ratio: 16 / 10;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-text-content-wrap {
		padding: 12px 14px 4px !important;
	}
	.listview_mod .row.directorypress-listing .cat-wrapper .listing-cat {
		font-size: 13px !important;
	}
	/* long selector: the theme sets 12px !important on phones with a similar chain */
	.listview_mod .row.directorypress-listing .directorypress-listing-item-holder .directorypress-listing-text-content-wrap .directorypress-listing-title h2,
	.listview_mod .row.directorypress-listing .directorypress-listing-item-holder .directorypress-listing-text-content-wrap .directorypress-listing-title h2 a {
		font-size: 17px !important;
		font-weight: 700 !important;
		line-height: 1.3 !important;
	}
	/* Full name on up to two lines instead of the theme's one-line "…". */
	.listview_mod .row.directorypress-listing .directorypress-listing-item-holder .directorypress-listing-text-content-wrap .directorypress-listing-title h2 {
		max-width: none !important;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-item-holder .directorypress-listing-text-content-wrap .directorypress-listing-title h2 a {
		display: inline !important;
		overflow: visible !important;
		white-space: normal !important;
		text-overflow: clip !important;
	}
	.listview_mod .row.directorypress-listing .listing-location {
		margin: 2px 0 6px !important;
		font-size: 14px !important;
	}
	.listview_mod .row.directorypress-listing .listing-location i {
		font-size: 13px;
	}
	.listview_mod .row.directorypress-listing .kc-geo-dist {
		font-size: 12px !important;
	}
	.listview_mod .row.directorypress-listing .modlist-bottom-area {
		padding: 6px 14px 14px !important;
	}
}

/* ---------- Enquiry icon ----------
   A message bubble with text lines instead of the thin envelope: it reads as "ask a question".
   Used on listing cards (all sizes) and the listing page's bottom bar (KC Contact Access), so
   both match. Drawn with a CSS mask in the button's text colour. */

.kc-ca-card-enquiry i.pacz-theme-icon-email::before,
.kc-ca-mobile-bar .mobile-author-msg a::before {
	content: "" !important;
	display: inline-block;
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H8l-5 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3Cpath d='M8 8.5h8M8 12.5h5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H8l-5 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3Cpath d='M8 8.5h8M8 12.5h5'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* Card contact buttons on phones (tablets keep the icon row; desktop keeps KC Contact Access's
   own View Number / WhatsApp Chat buttons): same as the listing page's bottom bar. */
@media (max-width: 767px) {
	/* Buttons: same as the listing page's bottom bar (KC Contact Access mobile-bar):
	   three equal 46px buttons, icon and one word — Call, WhatsApp, Enquiry. */
	.listview_mod .row.directorypress-listing .kc-ca-card-actions {
		gap: 8px !important;
	}
	.listview_mod .row.directorypress-listing .kc-ca-action-card,
	.listview_mod .row.directorypress-listing .kc-ca-card-enquiry {
		display: inline-flex !important;
		flex: 1 1 0 !important;
		align-items: center;
		justify-content: center;
		gap: 5px !important;
		min-height: 46px !important;
		padding: 0 4px !important;
		border: 1px solid #d1d5db !important;
		border-radius: 9px !important;
		background: #fff !important;
		color: #374151 !important;
		box-shadow: none !important;
		font-size: 15px !important;
		font-weight: 600;
		text-decoration: none !important;
	}
	.listview_mod .row.directorypress-listing .kc-ca-action-card::after {
		content: none !important; /* KC Contact Access's "›" */
	}
	.listview_mod .row.directorypress-listing .kc-ca-action-call {
		border-color: #f6c9c9 !important;
		background: #fdeeee !important;
		color: #b42318 !important;
	}
	.listview_mod .row.directorypress-listing .kc-ca-action-whatsapp {
		border-color: #bfe8cf !important;
		background: #e9f8ef !important;
		color: #0a7a43 !important;
	}
	.listview_mod .row.directorypress-listing .kc-ca-action-card .kc-ca-action-icon {
		flex: 0 0 auto !important;
		width: auto !important;
		height: auto !important;
		border-radius: 0 !important;
		background: none !important;
		color: inherit !important;
		font-size: 16px !important;
	}
	.listview_mod .row.directorypress-listing .kc-ca-action-card .kc-ca-action-icon i,
	.listview_mod .row.directorypress-listing .kc-ca-card-enquiry i {
		color: inherit !important;
		font-size: 16px !important;
	}
	/* One word per button; the original text ("View Number", "WhatsApp Chat", "Send enquiry")
	   stays in the page for screen readers. */
	.listview_mod .row.directorypress-listing .kc-ca-action-card .number-main,
	.listview_mod .row.directorypress-listing .kc-ca-card-enquiry span {
		position: static !important;
		width: auto !important;
		height: auto !important;
		min-width: 0;
		overflow: hidden !important;
		clip: auto !important;
		white-space: nowrap;
	}
	.listview_mod .row.directorypress-listing .kc-ca-action-card .kc-ca-action-label,
	.listview_mod .row.directorypress-listing .kc-ca-card-enquiry span {
		display: block;
		font-size: 0 !important;
		line-height: 1.2;
		color: inherit !important;
	}
	.listview_mod .row.directorypress-listing .kc-ca-action-card .kc-ca-action-label::after,
	.listview_mod .row.directorypress-listing .kc-ca-card-enquiry span::after {
		font-size: 14px;
		font-weight: 600;
		letter-spacing: -0.1px;
	}
	.listview_mod .row.directorypress-listing .kc-ca-action-call .kc-ca-action-label::after {
		content: "Call";
	}
	.listview_mod .row.directorypress-listing .kc-ca-action-whatsapp .kc-ca-action-label::after {
		content: "WhatsApp";
	}
	.listview_mod .row.directorypress-listing .kc-ca-card-enquiry span::after {
		content: "Enquiry";
	}
	/* No number on the button: a tap dials or opens WhatsApp directly (one-tap mode, script). */
	.listview_mod .row.directorypress-listing .kc-ca-action-card .kc-ca-value {
		display: none !important;
	}
}
.kc-ca-card-enquiry i.pacz-theme-icon-email {
	display: inline-flex;
	line-height: 1;
}
.kc-ca-mobile-bar .mobile-author-msg a > svg.kc-ca-micon {
	display: none;
}

@keyframes kc-sheet-up {
	from { transform: translateY(100%); }
	to { transform: none; }
}

/* ---------- Phone search filters (dubizzle-style) ----------
   The child theme's "Filters" link and top-dropping popup become a sticky row of chips and a
   full-screen filter page that slides up, with a sticky "Show results" button. The script adds
   the chips and .kc-fbar-on; the DirectoryPress form inside is unchanged. */

@media (max-width: 767px) {
	.kc-fbar-on .open-mobile-search-popup {
		display: none !important;
	}
	/* The theme's overflow-x: hidden on body and .site turns them into scroll boxes, which stops
	   position: sticky; clip still cuts off sideways overflow but keeps sticky working. */
	html.kc-fbar-on body,
	html.kc-fbar-on .hfbed.site {
		overflow-x: clip !important;
		overflow-y: visible !important;
	}
	/* Search box under the chips (opens the filter page with the keyword field focused). */
	.kc-fsearch {
		display: flex;
		align-items: center;
		gap: 10px;
		width: calc(100% - 24px);
		height: 46px;
		margin: 2px 12px 14px;
		padding: 0 14px;
		border: 1px solid #d1d5db;
		border-radius: 10px;
		background: #fff;
		color: #111827;
		font-size: 15px;
		font-weight: 600;
		text-align: left;
		cursor: text;
	}
	.kc-fsearch svg {
		flex: 0 0 auto;
		color: #f91942;
	}
	.kc-fsearch-text {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
	.kc-fsearch.is-empty {
		color: #6b7280;
		font-weight: 400;
	}
	.kc-fbar {
		position: sticky;
		z-index: 10000; /* the results are in an Elementor widget with z-index 9999; stay above it (below the filter page, 99999) */
		top: var(--kc-mh-h, 0px);
		margin: 0 -12px 12px;
		padding: 10px 0;
		border-bottom: 1px solid #eef0f3;
		background: #fff;
	}
	.kc-fbar-row {
		display: flex;
		gap: 8px;
		padding: 0 12px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.kc-fbar-row::-webkit-scrollbar {
		display: none;
	}
	.kc-fbar-chip {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		gap: 5px;
		height: 36px;
		margin: 0;
		padding: 0 12px;
		border: 1px solid #d1d5db;
		border-radius: 999px;
		background: #fff;
		color: #111827;
		font-size: 14px;
		font-weight: 600;
		line-height: 1;
		white-space: nowrap;
		cursor: pointer;
	}
	.kc-fbar-chip span {
		max-width: 160px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.kc-fbar-chip.is-main {
		color: #f91942;
	}
	.kc-fbar-chip.is-on {
		border-color: #f91942;
		background: #fef2f4;
		color: #b4123a;
	}
	.kc-fbar-chip b {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		border-radius: 9px;
		background: #f91942;
		color: #fff;
		font-size: 11px;
	}
	.kc-fbar-chip svg {
		flex: 0 0 auto;
	}

	/* Full-screen filter page instead of the popup dropping from the top. */
	.kc-fbar-on .mobile-search-popup {
		top: 0 !important;
		bottom: 0;
		width: 100% !important;
		max-height: none !important;
		margin: 0 !important;
		border-radius: 0 !important;
		transition: none !important;
	}
	.kc-fbar-on .mobile-search-popup:not(.active) {
		display: none !important;
	}
	.kc-fbar-on .mobile-search-popup.active {
		animation: kc-sheet-up 0.25s ease;
	}
	.kc-fbar-on .mobile-search-popup-header {
		flex: 0 0 auto;
		padding: 14px 16px !important;
		border-bottom: 1px solid #e5e7eb !important;
	}
	.kc-sheet-title {
		color: #111827;
		font-size: 18px;
		font-weight: 700;
	}
	.kc-sheet-clear {
		margin: 0 12px 0 auto;
		padding: 6px 4px;
		border: 0;
		background: none;
		color: #f91942;
		font-size: 15px;
		font-weight: 600;
		text-decoration: underline;
		text-underline-offset: 3px;
		cursor: pointer;
	}
	.kc-sheet-clear[hidden] {
		display: none;
	}
	.kc-fbar-on .mobile-search-popup-header .mobile-search-popup-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		border-radius: 50%;
		background: #f3f4f6;
		color: #111827;
		font-size: 24px;
	}
	.kc-fbar-on .mobile-search-popup-body {
		flex: 1 1 auto;
		padding: 12px 16px 24px !important;
	}
	/* The form's own "Filters" box: no second frame inside the page. */
	.kc-fbar-on .mobile-search-popup-body .search-form-style1,
	.kc-fbar-on .mobile-search-popup-body .directorypress-search-holder,
	.kc-fbar-on .mobile-search-popup-body .search-container {
		border: 0 !important;
		box-shadow: none !important;
		background: transparent !important;
	}
	.kc-fbar-on .mobile-search-popup-body .default-search-fields-section-label {
		display: none !important; /* the small "Filters" caption repeats the page title */
	}
	.kc-fbar-on .mobile-search-popup-footer {
		flex: 0 0 auto;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		border-top: 1px solid #e5e7eb;
		background: #fff;
	}
	.kc-fbar-on .mobile-search-popup-footer .btn.mobile-search-popup-close {
		display: block;
		height: 48px;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 10px !important;
		background: #f91942 !important;
		color: #fff !important;
		font-size: 16px !important;
		font-weight: 700;
		line-height: 48px;
		text-align: center;
	}
}

/* ---------- Alignment fixes (audit 2026-10-30) ---------- */

/* 2. Desktop header, 1025–1439px: menu, Sign in, location and Add Listing need ~1380px but the
   row has ~1160px, so location and Add Listing dropped to a second row. Tighter menu spacing,
   a smaller gap after Sign in and a slimmer Add Listing keep it on one row. (Header template
   "Header Default": menu 6381d502, login 12a2985e, button 1dbebdd7.) */
@media (min-width: 1025px) and (max-width: 1439px) {
	.elementor-element-6381d502 .menu-item > a {
		padding-right: 8px !important;
		padding-left: 8px !important;
		font-size: 15px !important;
	}
	.elementor-element-12a2985e {
		margin-right: 10px !important;
		margin-left: 4px !important;
	}
	.elementor-element-1dbebdd7 .hfb-button,
	.elementor-element-1dbebdd7 a {
		width: 150px !important;
	}
	.elementor-element-1dbebdd7 .hfb-button-text,
	.elementor-element-1dbebdd7 a {
		font-size: 16px !important;
	}
}

/* 1. Tablet header (desktop template at 768–1024px): the theme gives the collapsed menu an 80px
   left margin, which pushes the ☰ button out of its 42px box onto "Sign in"; and the logo
   touches the screen edge. */
@media (min-width: 768px) and (max-width: 1024px) {
	.elementor-element-6381d502 .hfb-nav-menu {
		margin-left: 0 !important;
	}
	.elementor-element-ffcd4df {
		padding-left: 12px;
	}
}

/* Home page (Elementor page; widget ids from the page). */

/* 3. Recent Listings: its section is 20px wider on each side than Categories and Locations (at
   every width), so
   the heading, arrows and cards didn't line up with them; and the photos kept their own shape
   (150–200px tall), making the cards uneven. */
.elementor-element-e87473d,
.elementor-element-e3b28a5 {
	max-width: calc(100% - 40px);
	margin-right: auto !important;
	margin-left: auto !important;
}
.elementor-element-e3b28a5 .listing-thumbnail img,
.elementor-element-e3b28a5 .directorypress-listing-figure img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* 6. Categories: about 120px of empty space between the category cards and "Locations", and the
   slider arrows sat on a row of their own below the heading. Pull the widget up so the arrows
   sit beside the heading, and halve the spacer after it. */
.elementor-element-aa81b5e {
	margin-top: -40px !important;
}
.elementor-element-c8af1b9 .elementor-spacer-inner {
	height: 24px !important;
}

/* 5. Locations: a long district name ("Thiruvananthapuram") pushed its count onto a second line,
   making that box taller than the rest of its row. Name and count stay on one line; a name that
   still doesn't fit ends in "…". */
.elementor-element-8c85c53 .directorypress-parent-location > a {
	display: flex !important;
	align-items: center;
}
.elementor-element-8c85c53 .location-icon {
	flex: 0 0 auto;
}
.elementor-element-8c85c53 .loaction-name {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.elementor-element-8c85c53 .location-item-numbers {
	flex: 0 0 auto;
	height: auto !important;
	margin-left: auto;
	padding-left: 6px;
	white-space: nowrap;
}

/* 7. Listing, category, location and search pages (desktop and tablet): the results started 10px
   under the header; and in the desktop list, the photo (124px) sat at the top of a card ~225px
   tall, leaving a white block under it. The photo now fills the card's height. */
@media (min-width: 768px) {
	.listing-archive {
		padding-top: 24px !important;
	}
}
@media (min-width: 1024px) {
	.listview_mod .row.directorypress-listing .directorypress-listing-item-holder {
		display: flex !important;
		align-items: stretch;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-figure {
		flex: 0 0 200px;
		float: none !important;
		height: auto !important;
		min-height: 124px;
		overflow: hidden;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-figure .listing-thumbnail {
		display: block;
		height: 100% !important;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-figure img {
		width: 100% !important;
		height: 100% !important;
		object-fit: cover;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-text-content-wrap {
		flex: 1 1 auto;
		float: none !important;
	}
}

/* 9. Single listing page, desktop: the contact box in the sidebar started 20px lower than the
   main content card beside it. (No body class marks these pages, hence :has.) */
@media (min-width: 1024px) {
	.inner-page-wrapper:has(.single-listing) > aside.pacz-builtin {
		padding-top: 50px !important;
	}
}

/* ---------- Results header (dubizzle-style; markup from class-kc-st-results.php) ----------
   Breadcrumb, "AC Dealers in Thrissur · 128 businesses" with a Sort menu, district chips. */

.kc-res-head {
	margin: 0 0 16px;
}
.kc-res-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	color: #6b7280;
	font-size: 13px;
}
.kc-res-crumbs a {
	color: #6b7280;
	text-decoration: none;
}
.kc-res-crumbs a:hover {
	color: #f91942;
}
.kc-res-crumbs span:last-child {
	color: #111827;
}
.kc-res-titlebar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
}
h1.kc-res-title {
	flex: 1 1 260px;
	margin: 0 !important;
	padding: 0 !important;
	color: #111827 !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-transform: none !important;
}
.kc-res-count {
	color: #6b7280;
	font-size: 16px;
	font-weight: 500;
	white-space: nowrap;
}
.kc-res-sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #6b7280;
	font-size: 14px;
	font-weight: 500;
}
.kc-res-sort .select2-container {
	width: auto !important;
	min-width: 150px;
}
.kc-res-sort .select2-container .select2-selection--single,
.kc-res-sort .select2-container--default .select2-selection--single,
.kc-res-sort select {
	height: 38px !important;
	border: 1px solid #d1d5db !important;
	border-radius: 999px !important;
	background: #fff;
}
.kc-res-sort .select2-container .select2-selection__rendered,
.kc-res-sort .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0 32px 0 14px !important;
	color: #111827 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 36px !important;
}
.kc-res-sort .select2-container .select2-selection__arrow {
	top: 6px !important;
	right: 8px !important;
}
.kc-res-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 2px 0;
}
/* Busiest 5 districts (4 on phones) plus the current one; "+N more" shows the rest. */
.kc-res-chips:not(.is-all) .kc-res-chip:nth-of-type(n+6):not(.is-on) {
	display: none;
}
.kc-res-more {
	flex: 0 0 auto;
	margin: 0;
	padding: 7px 14px;
	border: 1px dashed #9ca3af;
	border-radius: 999px;
	background: #f9fafb;
	color: #374151;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.kc-res-more:hover {
	border-color: #1d4ed8;
	color: #1d4ed8;
}
.kc-res-more-phone,
.kc-res-more[data-phone-only] {
	display: none;
}
.kc-res-chips.is-all .kc-res-more span {
	display: none;
}
.kc-res-chips.is-all .kc-res-more::after {
	content: attr(data-less);
}
@media (max-width: 767px) {
	.kc-res-chips:not(.is-all) .kc-res-chip:nth-of-type(n+5):not(.is-on) {
		display: none;
	}
	.kc-res-more[data-phone-only] {
		display: inline-block;
	}
	.kc-res-more-desk {
		display: none;
	}
	.kc-res-chips:not(.is-all) .kc-res-more-phone {
		display: inline;
	}
}
.kc-res-chip {
	flex: 0 0 auto;
	padding: 7px 14px;
	border: 1px solid #c7d2fe;
	border-radius: 999px;
	background: #fff;
	color: #1d4ed8 !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
}
.kc-res-chip span {
	color: #6b7280;
	font-weight: 500;
}
.kc-res-chip:hover {
	border-color: #1d4ed8;
	background: #eff6ff;
}
.kc-res-chip.is-on {
	border-color: #1d4ed8;
	background: #1d4ed8;
	color: #fff !important;
}
.kc-res-chip.is-on span {
	color: #dbeafe;
}
@media (max-width: 767px) {
	.kc-res-head {
		margin: 0 12px 14px;
	}
	h1.kc-res-title {
		font-size: 18px !important;
	}
	.kc-res-count {
		font-size: 14px;
	}
	.kc-res-crumbs {
		display: none; /* the phone header and chip row already say where you are */
	}
}

/* ---------- Desktop listing card (1024px+), dubizzle-style ----------
   Bigger photo with the favourite heart on it, one category, a larger title, town and
   distance. The contact buttons stay as KC Contact Access draws them (user's choice). */
@media (min-width: 1024px) {
	.listview_mod > .row.directorypress-listing {
		margin: 0 0 16px !important;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-item-holder {
		position: relative;
		overflow: hidden;
		border: 1px solid #e5e7eb !important;
		border-radius: 12px !important;
		background: #fff;
		box-shadow: none !important;
		transition: box-shadow 0.15s ease;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-item-holder:hover {
		box-shadow: 0 6px 20px rgba(17, 24, 39, 0.08) !important;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-figure {
		flex: 0 0 280px !important;
		min-height: 190px !important;
		margin: 0 !important;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-text-content-wrap,
	.listview_mod .row.directorypress-listing .mod-inner-content {
		position: static !important;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-text-content-wrap {
		display: flex;
		flex-direction: column;
		padding: 16px 20px !important;
	}
	.listview_mod .row.directorypress-listing .mod-inner-content {
		padding: 0 !important;
	}
	.listview_mod .row.directorypress-listing .listing-content-fields:empty,
	.listview_mod .row.directorypress-listing .kc-listview-tags-wrap:empty {
		display: none !important;
	}
	/* heart on the photo's top-right corner */
	.listview_mod .row.directorypress-listing .listing-listview-buttons {
		position: absolute !important;
		z-index: 2;
		top: 10px;
		right: auto !important;
		left: 238px;
		width: auto !important;
		float: none !important;
		margin: 0 !important;
	}
	.listview_mod .row.directorypress-listing .listing-listview-buttons > * {
		float: none !important;
		margin: 0 !important;
	}
	/* one category, small and grey */
	.listview_mod .row.directorypress-listing .cat-wrapper {
		height: auto !important;
		margin: 0 0 4px !important;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
	.listview_mod .row.directorypress-listing .cat-wrapper .listing-cat {
		display: inline !important;
		height: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
		color: #6b7280 !important;
		font-size: 13px !important;
		line-height: 1.4 !important;
	}
	.listview_mod .row.directorypress-listing .cat-wrapper .cat-seperator,
	.listview_mod .row.directorypress-listing .cat-wrapper .cat-seperator ~ * {
		display: none !important;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-item-holder .directorypress-listing-text-content-wrap .directorypress-listing-title,
	.listview_mod .row.directorypress-listing .directorypress-listing-item-holder .directorypress-listing-text-content-wrap .directorypress-listing-title h2 {
		max-width: none !important;
		margin: 2px 0 6px !important;
		padding: 0 !important;
	}
	.listview_mod .row.directorypress-listing .directorypress-listing-item-holder .directorypress-listing-text-content-wrap .directorypress-listing-title h2,
	.listview_mod .row.directorypress-listing .directorypress-listing-item-holder .directorypress-listing-text-content-wrap .directorypress-listing-title h2 a {
		color: #111827 !important;
		font-size: 19px !important;
		font-weight: 700 !important;
		line-height: 1.3 !important;
		white-space: normal !important;
	}
	.listview_mod .row.directorypress-listing .listing-location {
		margin: 0 0 6px !important;
		padding: 0 !important;
		font-size: 14px !important;
		line-height: 1.4 !important;
	}
	.listview_mod .row.directorypress-listing .modlist-bottom-area {
		margin: auto 0 0 !important;
		padding: 10px 0 0 !important;
		border: 0 !important;
	}
}
.kc-res-head .kc-res-sort select.kc-res-sort-select,
#theme-page .kc-res-head .kc-res-sort select.kc-res-sort-select { /* the theme styles "#theme-page select" */
	width: auto !important;
	min-width: 150px;
	height: 38px !important;
	margin: 0 !important;
	padding: 0 36px 0 14px !important;
	border: 1px solid #d1d5db !important;
	border-radius: 999px !important;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23111827' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right 10px center / 18px no-repeat !important;
	color: #111827 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 36px !important;
	box-shadow: none !important;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.kc-res-head .kc-res-sort select.kc-res-sort-select:focus,
#theme-page .kc-res-head .kc-res-sort select.kc-res-sort-select:focus {
	border-color: #f91942 !important;
	outline: none;
}

/* ---------- Desktop search bar and sidebar card (1024px+, dubizzle-style) ----------
   The script moves the DirectoryPress search form above the results (.kc-tbar) and puts the
   category's filter groups in a drop-down panel; the sidebar gets a sticky "List your
   business" card (.kc-side-card). */
@media (min-width: 1024px) {
	/* body and .site: overflow-x hidden makes them scroll boxes, which stops position: sticky. */
	html.kc-tbar-on body,
	html.kc-tbar-on .hfbed.site {
		overflow-x: clip !important;
		overflow-y: visible !important;
	}
	.kc-tbar-on .archive-content-wrapper {
		display: flex !important;
		flex-wrap: wrap;
		align-items: stretch;
	}
	.kc-tbar-on .archive-content-wrapper::before,
	.kc-tbar-on .archive-content-wrapper::after {
		display: none !important;
	}
	.kc-tbar {
		position: relative;
		z-index: 1000; /* above the results' loading layer, which otherwise covered the open Filters panel */
		flex: 0 0 calc(100% - 30px);
		box-sizing: border-box;
		margin: 0 15px 20px;
		padding: 12px;
		border: 1px solid #e5e7eb;
		border-radius: 12px;
		background: #fff;
		box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
	}
	.kc-tbar .main-search-bar,
	.kc-tbar form.directorypress-search-form,
	.kc-tbar .directorypress-search-holder,
	.kc-tbar .search-container,
	.kc-tbar .default-search-fields-wrapper,
	.kc-tbar .default-search-fields-content-box {
		position: static !important;
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
		box-shadow: none !important;
	}
	.kc-tbar .search-container {
		display: flex !important;
		align-items: center;
		gap: 10px;
	}
	.kc-tbar .search-container > script,
	.kc-tbar .default-search-fields-section-label,
	.kc-tbar .directorypress-search-submit-button-wrap,
	.kc-tbar .kc-geo-label {
		display: none !important;
	}
	.kc-tbar .default-search-fields-wrapper {
		flex: 1 1 auto;
		min-width: 0;
	}
	.kc-tbar .default-search-fields-content-box {
		display: flex !important;
		align-items: center;
		gap: 10px;
	}
	.kc-tbar .default-search-fields-content-box > .search-element-col {
		float: none !important;
		width: auto !important;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
	}
	.kc-tbar .kc-geo-kw {
		flex: 1 1 0;
	}
	.kc-tbar .kc-geo.kc-geo--form {
		display: flex !important;
		flex: 1.6 1 0;
		flex-wrap: wrap;
		align-items: center;
		gap: 10px;
		overflow: visible !important;
	}
	/* KC Geo Search's "Showing businesses within 10 km of … Clear" note: its own line under the
	   place field and distance chips, instead of squeezed into the row. */
	.kc-tbar .kc-geo-status {
		flex: 0 0 100%;
		order: 5;
		margin: 0 !important;
		font-size: 13px;
	}
	.kc-tbar .kc-geo-where {
		flex: 1 1 0;
		min-width: 140px;
	}
	.kc-tbar .kc-geo-field,
	.kc-tbar .kc-geo-where {
		height: 48px !important;
		min-height: 48px !important;
	}
	.kc-tbar .kc-geo-kw-input {
		height: 46px !important;
	}
	.kc-tbar .kc-geo-chips {
		display: flex !important;
		flex: 0 0 auto;
		gap: 6px;
		margin: 0 !important;
	}
	.kc-tbar .kc-geo-chips .kc-geo-chip {
		min-width: 50px;
		height: 40px;
		padding: 0 10px;
	}
	.kc-tbar-btn {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		gap: 6px;
		height: 48px;
		margin: 0;
		padding: 0 16px;
		border: 1px solid #d1d5db;
		border-radius: 10px;
		background: #fff;
		color: #111827;
		font-size: 15px;
		font-weight: 600;
		cursor: pointer;
	}
	.kc-tbar-btn[hidden] {
		display: none;
	}
	.kc-tbar-btn:hover,
	.kc-tbar.is-open .kc-tbar-btn {
		border-color: #f91942;
		color: #f91942;
	}
	.kc-tbar-btn.is-on {
		border-color: #f91942;
		background: #fef2f4;
		color: #b4123a;
	}
	.kc-tbar-btn b {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 20px;
		height: 20px;
		padding: 0 6px;
		border-radius: 10px;
		background: #f91942;
		color: #fff;
		font-size: 12px;
	}
	.kc-tbar-btn b[hidden] {
		display: none;
	}

	/* Filters panel: drops down under the bar, on the right. */
	.kc-tbar-panel {
		position: absolute;
		z-index: 40;
		top: calc(100% + 8px);
		right: 0;
		display: flex;
		flex-direction: column;
		width: min(760px, 100%);
		max-height: 70vh;
		border: 1px solid #e5e7eb;
		border-radius: 12px;
		background: #fff;
		box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16);
	}
	.kc-tbar-panel[hidden] {
		display: none;
	}
	.kc-tbar-panel-head,
	.kc-tbar-panel-foot {
		display: flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: space-between;
		padding: 14px 18px;
	}
	.kc-tbar-panel-head {
		border-bottom: 1px solid #e5e7eb;
		font-size: 17px;
	}
	.kc-tbar-panel-foot {
		justify-content: flex-end;
		border-top: 1px solid #e5e7eb;
	}
	.kc-tbar-clear {
		padding: 4px;
		border: 0;
		background: none;
		color: #f91942;
		font-size: 14px;
		font-weight: 600;
		text-decoration: underline;
		text-underline-offset: 3px;
		cursor: pointer;
	}
	.kc-tbar-clear[hidden] {
		display: none;
	}
	.kc-tbar-done {
		height: 44px;
		padding: 0 22px;
		border: 0;
		border-radius: 10px;
		background: #f91942;
		color: #fff;
		font-size: 15px;
		font-weight: 700;
		cursor: pointer;
	}
	.kc-tbar-done:hover {
		background: #111827;
	}
	.kc-tbar-panel-body {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
		gap: 4px 16px;
		padding: 8px 18px 16px;
		overflow-y: auto;
	}
	.kc-tbar-panel-body > .search-element-col {
		float: none !important;
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
	}
	.kc-tbar-panel-body .search-content-field-label {
		margin: 0 !important;
		padding: 10px 0 6px !important;
		border: 0 !important;
		background: none !important;
	}
	.kc-tbar-panel-body .search-content-field-label label {
		color: #111827 !important;
		font-size: 15px !important;
		font-weight: 700 !important;
	}
	.kc-tbar-panel-body .search-field-content-wrapper {
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}

	/* Results left, sidebar right (the sidebar comes first in the HTML; the theme floated it). */
	.kc-tbar-on .archive-content-wrapper > .listing-archive-content {
		order: 1;
	}
	.kc-tbar-on .archive-content-wrapper > .listing-archive-sidearea {
		order: 2;
	}

	/* Sidebar: sticky "List your business" card. */
	.listing-archive-sidearea.kc-side-on {
		align-self: stretch;
	}
	.kc-side-card {
		position: sticky;
		top: 24px;
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 22px;
		border: 1px solid #e5e7eb;
		border-radius: 12px;
		background: #fff;
	}
	.kc-side-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		border-radius: 12px;
		background: #fef2f4;
		color: #f91942;
	}
	.kc-side-title {
		color: #111827;
		font-size: 19px;
		font-weight: 700;
		line-height: 1.3;
	}
	.kc-side-text {
		margin: 0 !important;
		color: #4b5563;
		font-size: 14px;
		line-height: 1.5;
	}
	.kc-side-points {
		margin: 0 !important;
		padding: 0 !important;
		list-style: none !important;
	}
	.kc-side-points li {
		position: relative;
		margin: 0 0 6px !important;
		padding: 0 0 0 24px !important;
		color: #374151;
		font-size: 14px;
		list-style: none !important;
	}
	.kc-side-points li::before {
		content: "";
		position: absolute;
		top: 3px;
		left: 0;
		width: 15px;
		height: 15px;
		border-radius: 50%;
		background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat;
	}
	.kc-side-cta {
		display: block;
		margin-top: 4px;
		padding: 12px;
		border-radius: 10px;
		background: #f91942;
		color: #fff !important;
		font-size: 16px;
		font-weight: 700;
		text-align: center;
		text-decoration: none !important;
	}
	.kc-side-cta:hover {
		background: #111827;
	}
	.kc-side-link {
		color: #4b5563 !important;
		font-size: 14px;
		text-align: center;
		text-decoration: underline !important;
		text-underline-offset: 3px;
	}
}

/* ---------- Search enquiry card (desktop results sidebar) ---------- */
.kc-lead-card .kc-side-title {
	font-size: 20px;
}
.kc-lead-what,
.kc-lead-where {
	color: #f91942;
}
.kc-lead-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 4px 0 0 !important;
}
.kc-lead-label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 !important;
	color: #111827;
	font-size: 14px;
	font-weight: 600;
}
.kc-lead-form input[type="text"],
.kc-lead-form input[type="tel"],
.kc-lead-form input[type="email"],
#theme-page .kc-lead-form input[type="text"],
#theme-page .kc-lead-form input[type="tel"],
#theme-page .kc-lead-form input[type="email"] {
	width: 100% !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid #d1d5db !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #111827 !important;
	font-size: 15px !important;
	font-weight: 400;
	box-shadow: none !important;
}
.kc-lead-form input:focus {
	border-color: #f91942 !important;
	outline: none;
}
.kc-lead-form input[aria-invalid="true"] {
	border-color: #dc2626 !important;
	background: #fef2f2 !important;
}
.kc-lead-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.kc-lead-msg {
	margin: 0 !important;
	color: #b91c1c;
	font-size: 14px;
}
.kc-lead-msg.is-ok {
	padding: 10px 12px;
	border-radius: 8px;
	background: #ecfdf5;
	color: #047857;
	font-weight: 600;
}
.kc-lead-msg[hidden] {
	display: none;
}
button.kc-lead-submit {
	width: 100%;
	margin: 0;
	border: 0;
	cursor: pointer;
}
button.kc-lead-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}
.kc-lead-note {
	margin: 0 !important;
	color: #6b7280;
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
}
.kc-lead-turnstile {
	min-height: 65px;
}

/* Category questions in the enquiry card (class-kc-st-lead-questions.php). */
.kc-lead-questions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.kc-lead-questions:empty {
	display: none;
}
.kc-lead-q {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.kc-lead-q-label {
	margin: 0 !important;
	color: #111827;
	font-size: 14px;
	font-weight: 600;
}
.kc-lead-q-label i {
	color: #f91942;
	font-style: normal;
}
.kc-lead-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.kc-lead-chips label {
	position: relative;
	margin: 0 !important;
	cursor: pointer;
}
.kc-lead-chips input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.kc-lead-chips span {
	display: inline-block;
	padding: 7px 12px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	color: #374151;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
}
.kc-lead-chips label:hover span {
	border-color: #f91942;
}
.kc-lead-chips input:checked + span {
	border-color: #f91942;
	background: #fef2f4;
	color: #b4123a;
	font-weight: 600;
}
.kc-lead-chips input:focus-visible + span {
	outline: 2px solid #f91942;
	outline-offset: 2px;
}
.kc-lead-form input[type="date"],
.kc-lead-form input[type="number"],
#theme-page .kc-lead-form input[type="date"],
#theme-page .kc-lead-form input[type="number"] {
	width: 100% !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid #d1d5db !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #111827 !important;
	font-size: 15px !important;
	box-shadow: none !important;
}

/* ---------- Search filter options (sidebar, desktop Filters panel, phone filter page) ----------
   DirectoryPress prints the count as a tiny superscript ("Breakfast¹⁰⁴¹") in pale grey. Show the
   name in dark text and the count as a small grey pill on the right; ticked options in bold. */
.directorypress-search-form .search-checkbox label {
	display: flex !important;
	align-items: center;
	margin: 0 0 8px !important;
	color: #374151 !important;
}
.directorypress-search-form .search-checkbox .checkbox-item-name {
	display: flex !important;
	flex: 1 1 auto;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-width: 0;
	color: #374151 !important;
	font-size: 14px !important;
	line-height: 20px !important;
}
.directorypress-search-form .search-checkbox .field-item-count {
	flex: 0 0 auto;
	margin-left: auto !important;
	padding: 0 8px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #6b7280 !important;
	font-size: 12px !important;
	font-weight: 500;
	line-height: 20px !important;
	vertical-align: middle !important;
}
.directorypress-search-form .search-checkbox input:checked + .checkbox-item-name {
	color: #111827 !important;
	font-weight: 600;
}
.directorypress-search-form .search-checkbox input:checked + .checkbox-item-name .field-item-count {
	background: #fef2f4;
	color: #b4123a !important;
}

/* ---------- "Load more" (DirectoryPress .directorypress-show-more-button) ----------
   A rounded button; while DirectoryPress loads the next page it marks the button disabled and
   adds its own loader, which is replaced here by a spinning ring and "Loading more…". New cards
   then fade and slide in one after another (class .kc-in, added by the script). */
.directorypress-show-more-button.btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100% !important;
	max-width: 340px;
	height: 50px;
	margin: 20px auto 8px !important;
	padding: 0 24px !important;
	border: 1.5px solid #111827 !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #111827 !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
	text-transform: none !important;
	box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08) !important;
	transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.directorypress-show-more-button.btn:hover,
.directorypress-show-more-button.btn:focus-visible {
	border-color: #f91942 !important;
	background: #f91942 !important;
	color: #fff !important;
	box-shadow: 0 8px 22px rgba(249, 25, 66, 0.28) !important;
}
.directorypress-show-more-button.btn:active {
	transform: scale(0.97);
}
/* Loading: DirectoryPress hides the label and adds its loader; show ours instead. */
.directorypress-show-more-button.btn[disabled] {
	border-color: #f91942 !important;
	background: #fff !important;
	color: #f91942 !important;
	opacity: 1 !important;
	cursor: progress;
	pointer-events: none;
	animation: kc-more-pulse 1.2s ease-in-out infinite;
}
.directorypress-show-more-button.btn[disabled] .loadmore-ajax-wrapper,
.directorypress-show-more-button.btn[disabled] .directorypress-hidden {
	display: none !important;
}
.directorypress-show-more-button.btn[disabled]::before {
	content: "";
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(249, 25, 66, 0.25);
	border-top-color: #f91942;
	border-radius: 50%;
	animation: kc-spin 0.7s linear infinite;
}
.directorypress-show-more-button.btn[disabled]::after {
	content: "Loading more…";
}
@keyframes kc-spin {
	to { transform: rotate(360deg); }
}
@keyframes kc-more-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(249, 25, 66, 0.28); }
	50% { box-shadow: 0 0 0 8px rgba(249, 25, 66, 0); }
}
/* New cards after "Load more". */
.listview_mod > .row.directorypress-listing.kc-in {
	animation: kc-card-in 0.45s ease-out both;
	animation-delay: calc(var(--kc-i, 0) * 70ms);
}
@keyframes kc-card-in {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.directorypress-show-more-button.btn[disabled],
	.directorypress-show-more-button.btn[disabled]::before,
	.listview_mod > .row.directorypress-listing.kc-in {
		animation: none !important;
	}
}

/* Desktop search bar: line the fields up at the top, so KC Geo Search's "Showing businesses
   within 10 km… Clear" note (shown under the place field after a place search) adds a line
   below instead of pushing the keyword field and Filters button down to the middle. */
@media (min-width: 1024px) {
	.kc-tbar .search-container,
	.kc-tbar .default-search-fields-content-box {
		align-items: flex-start !important;
	}
	.kc-tbar .kc-geo.kc-geo--form {
		align-items: center;
		row-gap: 6px;
	}
	.kc-tbar .kc-geo-field,
	.kc-tbar .kc-geo-where {
		box-sizing: border-box;
		height: 48px !important;
		min-height: 48px !important;
		margin: 0 !important;
	}
	.kc-tbar .kc-geo-kw {
		align-self: flex-start;
	}
	.kc-tbar .kc-geo-status {
		padding-left: 2px;
		line-height: 1.4;
	}
}

/* Single listing on phones: no location row under the header (it is for searching, not needed
   while reading one business). The header script re-measures, so the page moves up with it. */
body:has(.directorypress-single-content-area) .kc-mh-has-loc > .kc-mh-locrow { display: none; }
