.wscd-directory {
	max-width: 1200px;
	margin: 0 auto;
	color: #1f2937;
	font-size: 14px;
}
.wscd-directory *, .wscd-directory *::before, .wscd-directory *::after { box-sizing: border-box; }

/* -----------------------------------------------------------
   Top pill search bar
----------------------------------------------------------- */
.wscd-topbar {
	display: flex;
	gap: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	padding: 6px;
	margin-bottom: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
	transition: box-shadow .15s, border-color .15s;
}
.wscd-topbar:focus-within {
	border-color: #16a34a;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, .12);
}

.wscd-input-wrap {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	border-right: 1px solid #e5e7eb;
}
.wscd-input-wrap:last-of-type { border-right: none; }

.wscd-input-wrap > svg {
	position: absolute;
	left: 16px;
	color: #9ca3af;
	pointer-events: none;
}

.wscd-topbar-input {
	flex: 1;
	width: 100%;
	border: none;
	padding: 12px 34px 12px 42px;
	font-size: 14px;
	background: transparent;
	color: #111827;
}
.wscd-topbar-input::placeholder { color: #9ca3af; }
.wscd-topbar-input:focus { outline: none; }

.wscd-input-clear {
	display: none;
	align-items: center;
	justify-content: center;
	position: absolute;
	right: 10px;
	width: 20px;
	height: 20px;
	border: none;
	border-radius: 50%;
	background: #f3f4f6;
	color: #6b7280;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.wscd-input-wrap.has-value .wscd-input-clear { display: flex; }
.wscd-input-clear:hover { background: #e5e7eb; color: #111827; }

.wscd-topbar-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #dc2626;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 28px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s;
}
.wscd-topbar-btn:hover { background: #b91c1c; }

@media (max-width: 700px) {
	.wscd-topbar { flex-wrap: wrap; border-radius: 16px; }
	.wscd-input-wrap { flex: 1 1 100%; border-right: none; border-bottom: 1px solid #e5e7eb; }
	.wscd-input-wrap:last-of-type { border-bottom: none; }
	.wscd-topbar-btn { width: 100%; justify-content: center; margin-top: 6px; }
}

/* -----------------------------------------------------------
   Topbar multi-select dropdown (e.g. Industry, next to City/region)
----------------------------------------------------------- */
.wscd-multiselect { position: relative; }
.wscd-ms-toggle {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	background: none;
	border: none;
	font: inherit;
	text-align: left;
	padding: 12px 30px 12px 42px;
	color: #9ca3af;
	cursor: pointer;
}
.wscd-multiselect.has-selection .wscd-ms-toggle { color: #111827; }
.wscd-ms-toggle-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wscd-ms-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #16a34a;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}
.wscd-multiselect::after {
	content: '▾';
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	pointer-events: none;
	font-size: 11px;
}
.wscd-multiselect.is-open::after { content: '▴'; }

.wscd-ms-panel {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	width: 300px;
	max-width: 90vw;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
	padding: 14px;
	z-index: 50;
}
.wscd-multiselect.is-open .wscd-ms-panel { display: block; }
.wscd-ms-options { max-height: 240px; }
.wscd-ms-panel-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #f0f0f0;
}
.wscd-ms-clear { background: none; border: none; padding: 0; font-size: 12.5px; font-weight: 600; color: #6b7280; cursor: pointer; }
.wscd-ms-clear:hover { color: #dc2626; text-decoration: underline; }
.wscd-ms-done {
	background: #16a34a;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 18px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s;
}
.wscd-ms-done:hover { background: #15803d; }
@media (max-width: 700px) {
	.wscd-ms-panel { left: 0; right: 0; width: auto; max-width: none; }
}

/* Google Places dropdown sits above everything else on the page */
.pac-container { z-index: 10000; }

/* City preview map, revealed once a city is picked from autocomplete */
.wscd-city-preview {
	display: none;
	height: 190px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	margin: 0 0 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.wscd-city-preview.is-visible { display: block; }

/* -----------------------------------------------------------
   Breadcrumb
----------------------------------------------------------- */
.wscd-breadcrumb { font-size: 13px; color: #6b7280; margin-bottom: 14px; }
.wscd-breadcrumb a { color: #2563eb; text-decoration: none; }
.wscd-breadcrumb a:hover { text-decoration: underline; }
.wscd-breadcrumb span { margin: 0 6px; }

/* -----------------------------------------------------------
   Active filter pills
----------------------------------------------------------- */
.wscd-active-filters {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}
.wscd-active-filters-label {
	font-size: 12.5px;
	font-weight: 600;
	color: #6b7280;
	margin-right: 2px;
}
.wscd-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	padding: 6px 10px 6px 14px;
	font-size: 12.5px;
	font-weight: 500;
	text-decoration: none;
	transition: background .15s, border-color .15s;
}
.wscd-pill:hover { background: #dbeafe; border-color: #93c5fd; color: #1e40af; }
.wscd-pill-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: rgba(29, 78, 216, .12);
	font-size: 13px;
	line-height: 1;
	flex-shrink: 0;
}
.wscd-pill:hover .wscd-pill-x { background: rgba(29, 78, 216, .22); }
.wscd-clear-all {
	font-size: 12.5px;
	font-weight: 700;
	color: #dc2626;
	text-decoration: none;
	margin-left: 6px;
	white-space: nowrap;
}
.wscd-clear-all:hover { text-decoration: underline; }

/* -----------------------------------------------------------
   Layout
----------------------------------------------------------- */
.wscd-body { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .wscd-body { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------
   Sidebar
----------------------------------------------------------- */
.wscd-sidebar {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px;
}
@media (min-width: 801px) {
	.wscd-sidebar { position: sticky; top: 20px; }
}
.wscd-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 14px;
}
.wscd-sidebar-header h4 {
	margin: 0;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.wscd-sidebar-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: #16a34a;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}
.wscd-sidebar-reset {
	font-size: 12.5px;
	font-weight: 600;
	color: #dc2626;
	text-decoration: none;
}
.wscd-sidebar-reset:hover { text-decoration: underline; }

.wscd-filter-group { border-bottom: 1px solid #f0f0f0; padding: 10px 0; }
.wscd-filter-group:last-of-type { border-bottom: none; }
.wscd-filter-group summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.wscd-filter-group summary::-webkit-details-marker { display: none; }
.wscd-filter-group-title { display: inline-flex; align-items: center; gap: 7px; }
.wscd-filter-group summary::after { content: '▾'; color: #9ca3af; font-weight: 400; }
.wscd-filter-group[open] summary::after { content: '▴'; }

.wscd-group-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #eafaf0;
	color: #16a34a;
	font-size: 11px;
	font-weight: 700;
}

.wscd-filter-body { margin-top: 10px; }

.wscd-filter-search-wrap { position: relative; margin-bottom: 10px; }
.wscd-filter-search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.wscd-filter-search {
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 7px 10px 7px 32px;
	font-size: 12.5px;
	color: #111827;
	background: #f9fafb;
	transition: border-color .15s, background .15s;
}
.wscd-filter-search::placeholder { color: #9ca3af; }
.wscd-filter-search:focus { outline: none; border-color: #16a34a; background: #fff; }

.wscd-filter-options { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; }
.wscd-checkbox {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	color: #374151;
	cursor: pointer;
	padding: 5px 6px;
	border-radius: 6px;
	transition: background .12s;
}
.wscd-checkbox:hover { background: #f3f4f6; }
.wscd-checkbox-left { display: flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wscd-checkbox input { accent-color: #16a34a; flex-shrink: 0; }
.wscd-checkbox-count { font-size: 12px; color: #9ca3af; font-weight: 600; flex-shrink: 0; }
.wscd-filter-empty { font-size: 12.5px; color: #9ca3af; margin: 4px 6px; }

.wscd-clear-group {
	background: none;
	border: none;
	padding: 8px 6px 0;
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	cursor: pointer;
}
.wscd-clear-group:hover { color: #dc2626; text-decoration: underline; }
.wscd-apply-btn {
	width: 100%;
	margin-top: 16px;
	padding: 12px;
	background: #16a34a;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s;
}
.wscd-apply-btn:hover { background: #15803d; }

/* -----------------------------------------------------------
   Results header + popular chips
----------------------------------------------------------- */
.wscd-results-header {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	column-gap: 8px;
	row-gap: 2px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 16px;
}
.wscd-results-count { font-size: 20px; font-weight: 800; color: #111827; }
.wscd-results-label { font-size: 14px; font-weight: 600; color: #374151; }
.wscd-results-query { font-size: 13px; color: #6b7280; }

.wscd-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.wscd-chips-label { font-size: 13px; color: #6b7280; margin-right: 4px; }
.wscd-chip {
	border: 1px solid #d1d5db;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	color: #374151;
	text-decoration: none;
	transition: border-color .15s, color .15s;
}
.wscd-chip:hover { border-color: #16a34a; color: #16a34a; }

/* -----------------------------------------------------------
   Cards
----------------------------------------------------------- */
.wscd-list { display: flex; flex-direction: column; gap: 14px; }
.wscd-card {
	display: flex;
	gap: 16px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 18px 20px;
	transition: box-shadow .15s, transform .15s, border-color .15s;
}
.wscd-card:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
	border-color: #d1d5db;
	transform: translateY(-1px);
}
.wscd-card-logo img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; }
.wscd-card-body h3 { margin: 0 0 4px; font-size: 16px; }
.wscd-card-body h3 a { color: #1d4ed8; text-decoration: none; }
.wscd-card-body h3 a:hover { text-decoration: underline; }
.wscd-tagline { margin: 0 0 8px; color: #6b7280; font-size: 13px; }
.wscd-card-meta { display: flex; flex-wrap: wrap; gap: 16px; }
.wscd-card-meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #6b7280; }
.wscd-card-meta svg { flex-shrink: 0; }

.wscd-no-results { padding: 30px; text-align: center; color: #6b7280; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }
.wscd-no-results-hint { margin: 8px 0 0; font-size: 13px; }
.wscd-no-results-hint a { color: #2563eb; font-weight: 600; text-decoration: none; }
.wscd-no-results-hint a:hover { text-decoration: underline; }

/* -----------------------------------------------------------
   Pagination
----------------------------------------------------------- */
.wscd-pagination { margin: 22px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wscd-pagination .page-numbers {
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	text-decoration: none;
	color: #374151;
	transition: border-color .15s, color .15s;
}
.wscd-pagination .page-numbers:hover { border-color: #16a34a; color: #16a34a; }
.wscd-pagination .page-numbers.current { background: #16a34a; color: #fff; border-color: #16a34a; }

/* -----------------------------------------------------------
   Full results map (Leaflet)
----------------------------------------------------------- */
.wscd-map { margin-top: 24px; height: 400px; border-radius: 10px; overflow: hidden; border: 1px solid #e5e7eb; }
