/**
 * Business Directory browse page (/business-directory/) - enqueued only on
 * that page (see JFDIR_Directory_Browse::maybe_enqueue_assets()). Same brand
 * tokens as the rest of the child theme's own standalone public pages
 * (--child-theme-primary-color / --child-theme-secondary-color, defined in
 * workscout-child/style.css) and the same pill-search / soft-shadow-card
 * visual language as its 404 page (css/404-page.css) - one consistent look
 * for this theme's non-WorkScout-template pages.
 */

.jfdir-browse {
	background: #f7f8fa;
	padding-bottom: 60px;
}

.jfdir-browse__hero {
	background: linear-gradient(135deg, var(--child-theme-secondary-color, #26368d) 0%, #1b2568 100%);
	padding: 56px 0 90px;
}

.jfdir-browse__heading {
	margin: 0 0 10px;
	color: #fff;
	font-size: 34px;
	font-weight: 800;
	text-align: center;
}

.jfdir-browse__subheading {
	margin: 0 auto 32px;
	max-width: 560px;
	color: rgba(255, 255, 255, .78);
	font-size: 16px;
	text-align: center;
}

.jfdir-browse__search {
	max-width: 880px;
	margin: 0 auto;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	background: #fff;
	border-radius: 999px;
	padding: 8px;
	box-shadow: 0 20px 45px -18px rgba(9, 13, 33, .45);
}

.jfdir-browse__search-field {
	flex: 1 1 180px;
	min-width: 0;
}

.jfdir-browse__search-field--text {
	flex: 1.6 1 220px;
	border-right: 1px solid #eceef1;
}

.jfdir-browse__search-field input,
.jfdir-browse__search-field select {
	width: 100%;
	height: 46px;
	padding: 0 18px;
	border: none;
	border-radius: 999px;
	background: transparent;
	font-size: 15px;
	color: #15181c;
	appearance: none;
}

.jfdir-browse__search-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 34px;
}

.jfdir-browse__search-field input::placeholder {
	color: #9aa1ab;
}

.jfdir-browse__search-field input:focus,
.jfdir-browse__search-field select:focus {
	outline: none;
	background-color: #f5f6f8;
}

.jfdir-browse__search-submit {
	flex: 0 0 auto;
	height: 46px;
	padding: 0 30px;
	border: none;
	border-radius: 999px;
	background: var(--child-theme-primary-color, #07b1e5);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease;
}

.jfdir-browse__search-submit:hover {
	background: var(--child-theme-secondary-color, #26368d);
}

.jfdir-browse__results-wrap {
	margin-top: -50px;
}

.jfdir-browse-count {
	margin: 0 0 20px;
	color: #6b7280;
	font-size: 14px;
	font-weight: 600;
}

.jfdir-browse-empty {
	background: #fff;
	border-radius: 16px;
	padding: 60px 20px;
	text-align: center;
	color: #6b7280;
	font-size: 15px;
	box-shadow: 0 12px 30px -18px rgba(15, 23, 42, .18);
}

.jfdir-browse-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.jfdir-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	padding: 22px;
	box-shadow: 0 12px 30px -18px rgba(15, 23, 42, .18);
	transition: transform .15s ease, box-shadow .15s ease;
}

.jfdir-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 38px -18px rgba(15, 23, 42, .28);
}

.jfdir-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.jfdir-card__logo {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	overflow: hidden;
	background: #f5f6f8;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.jfdir-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jfdir-card__badge {
	flex: 0 0 auto;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	white-space: nowrap;
}

.jfdir-card__badge--verified {
	background: #e6f4ea;
	color: #1e7e34;
}

.jfdir-card__badge--pending {
	background: #fff8e1;
	color: #8a6d3b;
}

.jfdir-card__badge--unclaimed {
	background: #f1f2f5;
	color: #6b7280;
}

.jfdir-card__name {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.jfdir-card__name a {
	color: #15181c;
}

.jfdir-card__name a:hover {
	color: var(--child-theme-primary-color, #07b1e5);
}

.jfdir-card__type {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--child-theme-secondary-color, #26368d);
	font-size: 12.5px;
	font-weight: 600;
}

.jfdir-card__tagline {
	margin: 0 0 10px;
	color: #6b7280;
	font-size: 13.5px;
	line-height: 1.5;
}

.jfdir-card__location {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 16px;
	color: #6b7280;
	font-size: 13px;
}

.jfdir-card__location svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	color: #9aa1ab;
}

.jfdir-card__footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 14px;
	border-top: 1px solid #eceef1;
}

.jfdir-card__jobs {
	color: #15181c;
	font-size: 13px;
	font-weight: 600;
}

.jfdir-card__cta {
	flex: 0 0 auto;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--child-theme-primary-color, #07b1e5);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.jfdir-card__cta:hover {
	background: var(--child-theme-secondary-color, #26368d);
	color: #fff;
}

.jfdir-card__cta--ghost {
	background: transparent;
	border: 1px solid #dde1e7;
	color: #15181c;
	margin-left: auto;
}

.jfdir-card__cta--ghost:hover {
	border-color: var(--child-theme-primary-color, #07b1e5);
	color: var(--child-theme-primary-color, #07b1e5);
	background: transparent;
}

.jfdir-browse-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 36px;
}

.jfdir-browse-pager__btn {
	padding: 10px 22px;
	border: 1px solid #dde1e7;
	border-radius: 999px;
	background: #fff;
	color: #15181c;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}

.jfdir-browse-pager__btn:hover {
	border-color: var(--child-theme-primary-color, #07b1e5);
	color: var(--child-theme-primary-color, #07b1e5);
}

.jfdir-browse-pager__status {
	color: #6b7280;
	font-size: 13.5px;
}

@media (max-width: 782px) {
	.jfdir-browse__hero {
		padding: 40px 0 76px;
	}

	.jfdir-browse__heading {
		font-size: 26px;
	}

	.jfdir-browse__search {
		flex-wrap: wrap;
		border-radius: 20px;
	}

	.jfdir-browse__search-field,
	.jfdir-browse__search-field--text {
		flex: 1 1 100%;
		border-right: none;
	}

	.jfdir-browse__search-submit {
		width: 100%;
		border-radius: 999px;
	}

	.jfdir-browse-grid {
		grid-template-columns: 1fr;
	}
}
