/* Advanced Search – Custom PsychDirect Layout */

/* Header reuse */
body.page-advance-search .pd-single-header {
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
	position: relative;
	z-index: 3000;
}

body.page-advance-search .pd-single-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
}

body.page-advance-search .pd-single-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 18px;
}

body.page-advance-search .pd-single-header__link {
	color: #0f172a;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-weight: 500;
	text-decoration: none;
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
	transition: border-color 0.2s ease;
}

body.page-advance-search .pd-single-header__link:hover,
body.page-advance-search .pd-single-header__link:focus {
	color: #3b82f6;
}

body.page-advance-search .pd-single-header__item {
	position: relative;
}

body.page-advance-search .pd-single-header__item.current-menu-item > .pd-single-header__link,
body.page-advance-search .pd-single-header__item.current-menu-ancestor > .pd-single-header__link {
	border-bottom-color: #3b82f6;
}

body.page-advance-search .pd-single-header__submenu {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 12px);
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px;
	min-width: 220px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15), 0 4px 8px rgba(15, 23, 42, 0.08);
	z-index: 3001;
	list-style: none;
	margin: 0;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

body.page-advance-search .pd-single-header__item--has-submenu.pd-menu-open .pd-single-header__submenu {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

body.page-advance-search .pd-single-header__submenu-link {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	color: #0f172a;
	font-weight: 400;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

body.page-advance-search .pd-single-header__submenu-link:hover,
body.page-advance-search .pd-single-header__submenu-link:focus {
	background: #f1f5f9;
	color: #3b82f6;
}

body.page-advance-search .pd-single-header__logo {
	display: inline-block;
}

/* Link color (Advanced Search only): match Search button blue */
body.page-advance-search main#content a,
body.page-advance-search main#content a:visited {
	color: #60a5fa;
}

body.page-advance-search main#content a:hover,
body.page-advance-search main#content a:focus {
	color: #3b82f6;
}

/* Card details: align labels/values with consistent spacing (Advanced Search only) */
body.page-advance-search .innerdetails table.ws-table-all.notranslate {
	width: 100%;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0 12px;
	margin: 0;
}

body.page-advance-search .innerdetails table.ws-table-all.notranslate td {
	vertical-align: top;
	padding: 0;
}

body.page-advance-search .innerdetails table.ws-table-all.notranslate td:first-child {
	width: 220px;
	color: #94a3b8;
	font-weight: 700;
}

body.page-advance-search .innerdetails table.ws-table-all.notranslate td:last-child {
	color: #303c40;
}

/* Work with clients on: blue pill tags with white text */
body.page-advance-search #specialize-container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.page-advance-search #specialize-container a.btnstyle,
body.page-advance-search #specialize-container a.btnstyle:visited {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 6px;
	background: #60a5fa;
	color: #fff;
	text-decoration: none;
	line-height: 1.1;
}

body.page-advance-search #specialize-container a.btnstyle:hover,
body.page-advance-search #specialize-container a.btnstyle:focus {
	background: #3b82f6;
	color: #fff;
}

/* Selected issues (from active search) should stand out slightly darker */
body.page-advance-search #specialize-container a.btnstyle.btnstyle--selected-issue,
body.page-advance-search #specialize-container a.btnstyle.btnstyle--selected-issue:visited {
	background: #3b82f6;
	border: 1px solid #2563eb;
}

body.page-advance-search #specialize-container a.btnstyle.btnstyle--selected-issue:hover,
body.page-advance-search #specialize-container a.btnstyle.btnstyle--selected-issue:focus {
	background: #2563eb;
	border-color: #2563eb;
}

body.page-advance-search a.seeallbtnstyle {
	display: inline-block;
	margin-top: 8px;
}

/* Ensure logo displays on Advanced Search even if global style.css is cached */
body.page-advance-search a.custom-header {
	width: 173px;
	height: 50px !important;
	background-image: url(https://psychdirect.com.au/wp-content/uploads/2023/11/Group-56132.svg);
	background-repeat: no-repeat;
}

body.page-advance-search a.custom-header img {
	display: none;
}

/* Top section layout */
.pd-adv-top {
	position: relative;
	z-index: 1;
	margin-top: -40px;
	padding: 0 0 20px;
	background: #fff;
}

/* Google Places dropdown (pac-container is appended to body) */
.pac-container {
	z-index: 3000 !important;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
	margin-top: 6px;
	padding: 6px 0;
	background: #fff;
}

/* Force hide dropdown when place is selected */
body.pd-pac-hidden .pac-container,
.pac-container[style*="display: none"] {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.pac-container::after {
	/* Hide "powered by Google" logo */
	display: none !important;
}

.pac-item {
	padding: 12px 16px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.5;
	color: #334155;
	border: none;
	transition: background-color 0.12s ease;
}

.pac-item:first-child {
	border-radius: 8px 8px 0 0;
}

.pac-item:last-child {
	border-radius: 0 0 8px 8px;
}

.pac-item:hover,
.pac-item.pac-item-selected {
	background: #f1f5f9;
}

.pac-item-query {
	font-size: 14px;
	font-weight: 500;
	color: #0f172a;
}

.pac-matched {
	font-weight: 600;
	color: #3b82f6;
}

.pac-icon {
	display: none;
}

.pd-adv-top .pd-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
}

.pd-adv-top .sr-only {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Legacy overrides - now handled in UX Polish section below */

/* Active filter: highlight box (Advanced Search only) */
body.page-advance-search .pd-adv-control .form-select.pd-filter-active {
	border-color: rgba(147, 180, 232, 0.6);
	background: rgba(239, 246, 255, 0.7);
	color: var(--pd-blue-600, #2563eb);
}

body.page-advance-search .pd-adv-control .form-select.pd-filter-active .dropdown-text {
	color: var(--pd-blue-600, #2563eb);
	font-weight: 500;
}

/* Selected count badge (top-right) - status indicator style */
body.page-advance-search .pd-adv-control .form-select .pd-filter-count {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: rgba(126, 168, 220, 0.9);
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	font-size: 10px;
	font-weight: 600;
	line-height: 13px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Helper callout - confirmation panel (visually subordinate to search bar) */
.pd-adv-helper {
	position: relative;
	z-index: var(--z-helper, 10);
	background: rgba(255, 255, 255, 0.85);
	border-left: 2px solid rgba(126, 168, 220, 0.3);
	border-top: 1px solid rgba(226, 232, 240, 0.3);
	border-right: 1px solid rgba(226, 232, 240, 0.3);
	border-bottom: 1px solid rgba(226, 232, 240, 0.3);
	border-radius: 0 8px 8px 0;
	padding: 10px 16px 10px 14px;
	box-shadow: none;
}

/* Results area: grey background starts after the helper and fills down the page */
body.page-advance-search .pd-job-listings {
	background: rgb(242, 243, 246);
	padding-top: 22px;
	padding-bottom: 80px;

	/* Full-bleed background while keeping content aligned to the .container */
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding-left: calc(50vw - 50%);
	padding-right: calc(50vw - 50%);
}

/* Listing card layout tweaks (Advanced Search only) */
body.page-advance-search .content-box.card.mainjob {
	border-radius: 14px;
}

body.page-advance-search .content-box.card.mainjob .home_job_listing {
	border-radius: 14px;
}

body.page-advance-search .home_job_listing .left_colmn {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Desktop: keep existing two-column layout, but make the left column square */
@media (min-width: 577px) {
	body.page-advance-search .home_job_listing {
		display: flex !important;
		align-items: flex-start;
	}

	body.page-advance-search .home_job_listing .left_colmn {
		float: none;
		width: auto;
		flex: 0 0 35%;
		max-width: 220px;
		aspect-ratio: 1 / 1;
		padding: 16px 12px;
		box-sizing: border-box;
	}

	body.page-advance-search .home_job_listing .right_colmn {
		float: none;
		width: auto;
		flex: 1 1 auto;
		min-width: 0;
		padding-left: 4% !important;
	}

	body.page-advance-search .home_job_listing .left_colmn h4 {
		margin-top: auto;
		margin-bottom: 0;
	}
}

body.page-advance-search .home_job_listing .left_colmn > img,
body.page-template-page-advance-search .home_job_listing .left_colmn > img,
body.page-template-page-advance-search-php .home_job_listing .left_colmn > img,
body.page-advance-search .home_job_listing .left_colmn img.pd-card-avatar {
	width: 115px !important;
	height: 115px !important;
	min-width: 115px !important;
	min-height: 115px !important;
	max-width: 115px !important;
	max-height: 115px !important;
	object-fit: cover;
	object-position: center;
	display: block;
	margin: 0 auto 18px;
}

/* Some optimization plugins rewrite <img> into <picture> (e.g. WebP sources).
   In that case, the class/style can move to <picture>, and the inner <img>
   can still be targeted by global 80×80 rules. */
body.page-advance-search .home_job_listing .left_colmn picture.pd-card-avatar {
	display: block;
	width: 115px !important;
	height: 115px !important;
	margin: 0 auto 18px;
}

body.page-advance-search .home_job_listing .left_colmn picture.pd-card-avatar > img {
	width: 115px !important;
	height: 115px !important;
	min-width: 115px !important;
	min-height: 115px !important;
	max-width: 115px !important;
	max-height: 115px !important;
	object-fit: cover;
	object-position: center;
	display: block;
	border-radius: 9999px;
}

body.page-advance-search .home_job_listing .left_colmn .pd-card-location {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	width: 100%;
	text-align: left;
	margin-top: 16px;
}

body.page-advance-search .home_job_listing .left_colmn .pd-card-location img {
	width: 16px;
	height: 16px;
	object-fit: contain;
	flex: 0 0 auto;
}

/* Verified badge: inline with display name (Advanced Search only) */
body.page-advance-search .mainjob .home_job_listing .right_inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

body.page-advance-search .mainjob .home_job_listing .right_inner > div:first-child {
	flex: 1 1 auto;
	min-width: 0;
}

body.page-advance-search .mainjob .home_job_listing .right_inner > div:last-child {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-start;
}

body.page-advance-search .mainjob .home_job_listing .pd-verified-badge {
	width: 146px;
	height: 35px;
	object-fit: contain;
	transform: translateY(-4px);
}

.pd-adv-helper::before {
	content: '';
	position: absolute;
	pointer-events: none;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #60a5fa;
	border-radius: 12px 0 0 12px;
}

.pd-helper-title {
	font-weight: 700;
	color: #0f172a;
	font-size: 18px;
	line-height: 1.3;
	margin-bottom: 8px;
}

.pd-helper-text {
	color: #334155;
	font-size: 16px;
	line-height: 1.5;
}

/* Dynamic filter values (bold + underline) */
.pd-helper-text strong u {
	text-underline-offset: 2px;
}

/* Mobile responsive */
@media (max-width: 980px) {
	.pd-adv-control--location {
		flex: 1 1 100%;
		min-width: 0;
	}
	.pd-adv-control {
		flex: 1 1 calc(50% - 6px);
		min-width: 0;
	}
	.pd-adv-actions {
		width: 100%;
		margin-left: 0;
		justify-content: flex-end;
	}
}

@media (max-width: 560px) {
	.pd-adv-control {
		flex: 1 1 100%;
	}
	.pd-adv-actions {
		justify-content: space-between;
	}
	.pd-search-btn {
		flex: 1;
	}
}

/* Mobile card layout (below 577px) */
@media (max-width: 576px) {
	/* Card container */
	body.page-advance-search .content-box.card.mainjob {
		padding: 16px;
	}
	
	/* Stack layout */
	body.page-advance-search .home_job_listing {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	
	body.page-advance-search .home_job_listing .left_colmn {
		width: 100%;
		float: none;
		padding: 0;
		margin-bottom: 12px;
	}
	
	body.page-advance-search .home_job_listing .right_colmn {
		width: 100%;
		float: none;
		padding: 0 !important;
	}
	
	/* Location text centering */
	body.page-advance-search .home_job_listing .left_colmn .pd-card-location {
		justify-content: center;
		text-align: center;
	}
	
	/* Name and title centering */
	body.page-advance-search .home_job_listing .right_colmn h4,
	body.page-advance-search .home_job_listing .right_colmn .job-listing-title {
		text-align: center;
	}
	
	/* Verified badge centering */
	body.page-advance-search .mainjob .home_job_listing .right_inner {
		flex-direction: column;
		align-items: center;
	}
	
	body.page-advance-search .mainjob .home_job_listing .right_inner > div:first-child {
		text-align: center;
		width: 100%;
	}
	
	body.page-advance-search .mainjob .home_job_listing .pd-verified-badge {
		transform: none;
		margin-top: 8px;
	}
	
	/* Details table: stack label above value */
	body.page-advance-search .innerdetails table.ws-table-all.notranslate {
		border-spacing: 0 14px;
	}
	
	body.page-advance-search .innerdetails table.ws-table-all.notranslate tr {
		display: flex;
		flex-direction: column;
		gap: 4px;
	}
	
	body.page-advance-search .innerdetails table.ws-table-all.notranslate td {
		display: block;
		width: 100% !important;
	}
	
	body.page-advance-search .innerdetails table.ws-table-all.notranslate td:first-child {
		width: 100% !important;
		font-size: 13px;
	}
	
	body.page-advance-search .innerdetails table.ws-table-all.notranslate td:last-child {
		font-size: 15px;
	}
	
	/* Work with clients tags: better wrapping */
	body.page-advance-search #specialize-container {
		justify-content: center;
	}
	
	body.page-advance-search #specialize-container a.btnstyle {
		font-size: 13px;
		padding: 5px 8px;
	}
	
	/* See all link styling */
	body.page-advance-search a.seeallbtnstyle {
		display: block;
		text-align: center;
		margin-top: 10px;
	}
}

/* ==========================================================================
   Mobile UX Polish (≤480px) — Compact, scannable cards
   ========================================================================== */
@media (max-width: 480px) {
	/* Tighter card padding */
	body.page-advance-search .content-box.card.mainjob {
		padding: 14px;
	}
	
	/* Smaller profile image */
	body.page-advance-search .home_job_listing .left_colmn > img,
	body.page-advance-search .home_job_listing .left_colmn img.pd-card-avatar,
	body.page-advance-search .home_job_listing .left_colmn picture.pd-card-avatar,
	body.page-advance-search .home_job_listing .left_colmn picture.pd-card-avatar > img {
		width: 90px !important;
		height: 90px !important;
		min-width: 90px !important;
		min-height: 90px !important;
		max-width: 90px !important;
		max-height: 90px !important;
		margin-bottom: 12px !important;
	}
	
	/* Reduced name font size + tighter line-height */
	body.page-advance-search .home_job_listing .right_colmn h2 {
		font-size: 1.125rem;
		line-height: 1.25;
		margin-bottom: 2px;
	}
	
	body.page-advance-search .home_job_listing .right_colmn h2 .pronoun {
		font-size: 0.875rem;
	}
	
	/* Smaller job title */
	body.page-advance-search .home_job_listing .right_colmn h3.social_name {
		font-size: 0.875rem;
		line-height: 1.3;
		margin-bottom: 6px;
	}
	
	/* Compact verified badge */
	body.page-advance-search .mainjob .home_job_listing .pd-verified-badge {
		width: 120px;
		height: auto;
		margin-top: 6px;
		margin-bottom: 4px;
	}
	
	/* Simplified location line */
	body.page-advance-search .home_job_listing .left_colmn .pd-card-location {
		font-size: 0.8125rem;
		gap: 4px;
		margin-top: 8px;
	}
	
	body.page-advance-search .home_job_listing .left_colmn .pd-card-location img {
		width: 14px;
		height: 14px;
	}
	
	/* Hide "See full profile" in left column - we'll show it at bottom */
	body.page-advance-search .home_job_listing .left_colmn h4 {
		display: none;
	}
	
	/* Compact details table */
	body.page-advance-search .innerdetails table.ws-table-all.notranslate {
		border-spacing: 0 10px;
	}
	
	body.page-advance-search .innerdetails table.ws-table-all.notranslate td:first-child {
		font-size: 0.75rem;
		margin-bottom: 2px;
	}
	
	body.page-advance-search .innerdetails table.ws-table-all.notranslate td:last-child {
		font-size: 0.875rem;
		line-height: 1.4;
	}
	
	/* Compact issue pills - show max 4-5 with smaller sizing */
	body.page-advance-search #specialize-container {
		gap: 6px;
	}
	
	body.page-advance-search #specialize-container a.btnstyle {
		font-size: 0.75rem;
		padding: 4px 8px;
		border-radius: 5px;
	}
	
	/* Hide pills beyond 4th (JS will add "+X more" text) */
	body.page-advance-search #specialize-container a.btnstyle:nth-child(n+5) {
		display: none;
	}
	
	/* Show "+X more" indicator (added via CSS counter or JS) */
	body.page-advance-search #specialize-container::after {
		content: attr(data-more-count);
		display: inline-flex;
		align-items: center;
		padding: 4px 8px;
		font-size: 0.75rem;
		color: #64748b;
		background: #f1f5f9;
		border-radius: 5px;
	}
	
	body.page-advance-search #specialize-container:not([data-more-count])::after,
	body.page-advance-search #specialize-container[data-more-count=""]::after {
		display: none;
	}
	
	/* Hide old "see all" link - replaced by full-width button */
	body.page-advance-search a.seeallbtnstyle {
		display: none !important;
	}
	
	/* Full-width ghost button for "See full profile" at bottom */
	body.page-advance-search .innerdetails::after {
		content: 'See full profile';
		display: block;
		width: 100%;
		padding: 12px 16px;
		margin-top: 14px;
		text-align: center;
		font-size: 0.875rem;
		font-weight: 600;
		color: #3b82f6;
		background: transparent;
		border: 2px solid #3b82f6;
		border-radius: 8px;
		cursor: pointer;
		min-height: 44px;
		box-sizing: border-box;
	}
	
	/* Make the entire innerdetails clickable area for the button */
	body.page-advance-search .innerdetails {
		position: relative;
	}
}

/* Results container */
.pd-advance-search-container {
	padding-bottom: 0;
}

/* Utility */
#no-available {
	display: none;
}

/* Profile image sizing is handled above with page-scoped selectors. */

/*
 * More Filters modal styles are now in pd-filters-modal.css
 * This keeps the advance search CSS focused on search-specific styles.
 */
body.page-advance-search [class*="recaptcha-error"],
body.page-advance-search .g-recaptcha-error {
	display: none !important;
}

/* ==========================================================================
   UX Polish: Search Toolbar + Summary Card
   ========================================================================== */

/* CSS Variables for consistent styling */
:root {
	--pd-blue-50: #eff6ff;
	--pd-blue-100: #dbeafe;
	--pd-blue-400: #60a5fa;
	--pd-blue-500: #3b82f6;
	--pd-blue-600: #2563eb;
	--pd-slate-50: #f8fafc;
	--pd-slate-100: #f1f5f9;
	--pd-slate-200: #e2e8f0;
	--pd-slate-300: #cbd5e1;
	--pd-slate-400: #94a3b8;
	--pd-slate-500: #64748b;
	--pd-slate-600: #475569;
	--pd-slate-700: #334155;
	--pd-slate-900: #0f172a;
	--pd-radius-sm: 8px;
	--pd-radius-md: 12px;
	--pd-radius-lg: 14px;
	--pd-input-height: 44px;
	--pd-chip-height: 44px;
	--pd-search-bg: #f8fafc;
	
	/* Z-index scale (documented hierarchy)
	   10: Helper text panel
	   100: Search toolbar container
	   200: Filter dropdowns
	   1000: Modals
	   3000: Header/nav
	*/
	--z-helper: 10;
	--z-toolbar: 100;
	--z-dropdown: 200;
	--z-modal: 1000;
	--z-header: 3000;
}

/* ==========================================================================
   Search Toolbar: Calm, Premium, Healthcare Feel
   ========================================================================== */

/* Card-style container for the entire search bar */
.pd-adv-controls {
	position: relative;
	z-index: var(--z-toolbar, 100);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: var(--pd-search-bg);
	border: 1px solid rgba(226, 232, 240, 0.5);
	border-radius: var(--pd-radius-lg);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
	margin-bottom: 16px;
}

/* Location input - inline with filters on desktop */
.pd-adv-control--location {
	flex: 1 1 240px;
	max-width: 280px;
	margin-bottom: 0;
}

.pd-adv-input {
	height: var(--pd-input-height);
	padding: 0 16px;
	border: 1px solid rgba(203, 213, 225, 0.7);
	border-radius: var(--pd-radius-md);
	background: #fff;
	font-size: 14px;
	font-weight: 400;
	color: var(--pd-slate-900);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	width: 100%;
}

.pd-adv-input::placeholder {
	color: var(--pd-slate-400);
	font-weight: 400;
}

.pd-adv-input:hover {
	border-color: var(--pd-slate-300);
}

.pd-adv-input:focus {
	outline: none;
	border-color: var(--pd-slate-400);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
}

/* Filter buttons - soft pill style */
.pd-adv-control {
	flex: 0 0 auto;
	min-width: auto;
}

/* Inactive filter buttons - low visual weight */
.pd-adv-control .form-select {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: var(--pd-chip-height);
	padding: 0 16px;
	border: 1px solid rgba(203, 213, 225, 0.35);
	border-radius: var(--pd-radius-md);
	background: rgba(248, 250, 252, 0.6);
	font-size: 14px;
	font-weight: 400;
	color: var(--pd-slate-500);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.15s ease;
	position: relative;
	min-width: auto;
	width: auto;
}

.pd-adv-control .form-select:hover {
	border-color: rgba(203, 213, 225, 0.6);
	background: rgba(255, 255, 255, 0.95);
	color: var(--pd-slate-600);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.pd-adv-control .form-select:focus {
	outline: none;
	border-color: rgba(203, 213, 225, 0.6);
	box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.08);
}

/* Open dropdown state */
.pd-adv-control .form-select[aria-expanded="true"] {
	border-color: rgba(148, 163, 184, 0.5);
	background: #fff;
	color: var(--pd-slate-700);
	box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.1);
}

/* Active state for filters with selections - clear distinction */
.pd-adv-control .form-select.pd-filter-active {
	border-color: rgba(126, 168, 220, 0.5);
	background: rgba(248, 250, 255, 0.98);
	color: var(--pd-blue-600);
	font-weight: 450;
}

.pd-adv-control .form-select.pd-filter-active .dropdown-text {
	color: var(--pd-blue-600);
	font-weight: 500;
}

.pd-adv-control .form-select.pd-filter-active[aria-expanded="true"] {
	border-color: rgba(126, 168, 220, 0.6);
	box-shadow: 0 0 0 2px rgba(126, 168, 220, 0.12);
}

/* Dropdown caret - softer chevron */
.pd-adv-control .form-select::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 4px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid currentColor;
	opacity: 0.4;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.pd-adv-control .form-select:hover::after {
	opacity: 0.5;
}

.pd-adv-control .form-select[aria-expanded="true"]::after {
	transform: rotate(180deg);
	opacity: 0.6;
}

/* Filters trigger button - visually differentiated as "advanced options" */
.pd-filters-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: var(--pd-chip-height);
	padding: 0 14px;
	border: 1px dashed rgba(203, 213, 225, 0.5);
	border-radius: var(--pd-radius-md);
	background: transparent;
	font-size: 14px;
	font-weight: 400;
	color: var(--pd-slate-400);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.15s ease;
	position: relative;
}

.pd-filters-trigger:hover {
	border-color: rgba(203, 213, 225, 0.7);
	border-style: solid;
	background: rgba(255, 255, 255, 0.7);
	color: var(--pd-slate-500);
}

.pd-filters-trigger:focus {
	outline: none;
	border-color: var(--pd-slate-300);
	border-style: solid;
	box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.08);
}

/* Active state when filters are selected */
.pd-filters-trigger.pd-filter-active {
	border-color: rgba(126, 168, 220, 0.5);
	border-style: solid;
	background: rgba(248, 250, 255, 0.6);
	color: var(--pd-blue-600);
}

.pd-filters-trigger.pd-filter-active:hover {
	border-color: rgba(126, 168, 220, 0.7);
	background: rgba(248, 250, 255, 0.8);
}

.pd-filters-trigger__icon {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	opacity: 0.7;
}

.pd-filters-trigger:hover .pd-filters-trigger__icon {
	opacity: 0.85;
}

/* Divider before actions */
.pd-adv-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
	padding-left: 12px;
}

/* Reset link - de-emphasized secondary action */
.pd-reset {
	padding: 6px 2px;
	font-size: 13px;
	font-weight: 400;
	color: var(--pd-slate-400);
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.15s ease;
	border-radius: 4px;
}

.pd-reset:hover {
	color: var(--pd-slate-600);
	text-decoration: none;
}

/* Search button - clear primary action */
.pd-search-btn {
	height: var(--pd-chip-height);
	min-width: 100px;
	padding: 0 26px;
	border: none;
	border-radius: var(--pd-radius-md);
	background: #7ea8dc;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.pd-search-btn:hover {
	background: #6a9ad4;
	box-shadow: 0 2px 8px rgba(106, 154, 212, 0.25);
}

.pd-search-btn:active {
	transform: translateY(1px);
}

.pd-search-btn:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(126, 168, 220, 0.35);
}

/* ==========================================================================
   Filter Dropdowns - Clean & Modern (Languages Typeahead Style)
   ========================================================================== */

.pd-adv-control .dropdown-menu {
	position: absolute;
	z-index: var(--z-dropdown, 200) !important;
	min-width: 300px;
	max-height: 420px;
	overflow-y: auto;
	padding: 0;
	border: 1px solid rgba(226, 232, 240, 0.8);
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
	background: #fff;
}

/* ==========================================================================
   Issues Dropdown - Enhanced with sections
   ========================================================================== */

.pd-issues-dropdown .dropdown-menu {
	min-width: 340px;
	max-height: 480px;
}

/* Section headers */
.pd-issues-section-header {
	display: flex;
	align-items: center;
	padding: 10px 16px 6px 16px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pd-slate-400);
	background: #fff;
	list-style: none;
	border-bottom: none;
}

.pd-issues-section-header--common {
	color: var(--pd-slate-400);
}

.pd-issues-section-header--other {
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid rgba(226, 232, 240, 0.6);
}

/* Priority items have subtle blue tint */
.pd-issue-priority .dropdown-item {
	background: rgba(126, 168, 220, 0.04);
}

.pd-issue-priority .dropdown-item:hover {
	background: rgba(126, 168, 220, 0.09);
}

/* Hide section headers when filtering/searching */
.pd-issues-dropdown.pd-filtering .pd-issues-section-header {
	display: none !important;
}

/* Search input at top of dropdown */
.pd-adv-control .dropdown-menu .form-control {
	height: 46px;
	border: 1px solid rgba(203, 213, 225, 0.6);
	border-radius: 10px;
	padding: 0 16px;
	padding-right: 44px;
	font-size: 14px;
	margin: 12px;
	margin-bottom: 0;
	width: calc(100% - 24px);
	box-sizing: border-box;
	background: var(--pd-slate-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='5'/%3E%3Cpath d='m15 15-3.5-3.5'/%3E%3C/svg%3E") no-repeat right 14px center;
	background-size: 18px 18px;
}

.pd-adv-control .dropdown-menu .form-control::placeholder {
	color: var(--pd-slate-400);
}

.pd-adv-control .dropdown-menu .form-control:focus {
	border-color: rgba(126, 168, 220, 0.7);
	background-color: #fff;
	box-shadow: 0 0 0 3px rgba(126, 168, 220, 0.1);
	outline: none;
}

/* "No results" message styling */
.pd-adv-control .dropdown-menu #no-available {
	display: none;
	padding: 20px 16px;
	text-align: center;
	color: var(--pd-slate-500);
	font-size: 14px;
	line-height: 1.5;
}

/* Dropdown items list */
.pd-adv-control .dropdown-menu li[meta-value] {
	list-style: none;
}

.pd-adv-control .dropdown-menu .dropdown-item {
	display: block;
	padding: 11px 16px;
	border-radius: 0;
	font-size: 14px;
	color: var(--pd-slate-600);
	text-decoration: none;
	transition: background 0.1s ease;
	border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}

.pd-adv-control .dropdown-menu li:last-of-type .dropdown-item,
.pd-adv-control .dropdown-menu li[meta-value]:last-of-type .dropdown-item {
	border-bottom: none;
}

.pd-adv-control .dropdown-menu .dropdown-item:hover,
.pd-adv-control .dropdown-menu .dropdown-item:focus {
	background: var(--pd-slate-50);
	color: var(--pd-slate-900);
}

.pd-adv-control .dropdown-menu label {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	cursor: pointer;
	font-weight: 400;
	width: 100%;
}

.pd-adv-control .dropdown-menu input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var(--pd-blue-500);
	flex: 0 0 auto;
	cursor: pointer;
	border-radius: 4px;
}

/* Checked item styling */
.pd-adv-control .dropdown-menu input[type="checkbox"]:checked + span,
.pd-adv-control .dropdown-menu input[type="checkbox"]:checked ~ span {
	color: var(--pd-blue-600);
	font-weight: 500;
}

/* Dropdown footer buttons */
.pd-adv-control .dropdown-menu .position-sticky.bottom-0 {
	padding: 10px 14px;
	border-top: 1px solid rgba(226, 232, 240, 0.6);
	background: rgba(248, 250, 252, 0.6);
	border-radius: 0 0 14px 14px;
}

.pd-adv-control .dropdown-menu .btn {
	height: 38px;
	padding: 0 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
}

/* Reset button - de-emphasized */
.pd-adv-control .dropdown-menu .btn#resetIssueFilter {
	background: transparent;
	color: var(--pd-slate-400);
	border: none;
	font-weight: 400;
	padding: 0 10px;
}

.pd-adv-control .dropdown-menu .btn#resetIssueFilter:hover {
	background: transparent;
	color: var(--pd-slate-600);
}

/* Apply button - primary action */
.pd-adv-control .dropdown-menu .savebtn {
	background: #7ea8dc;
	color: #fff;
	border: none;
	padding: 0 20px;
}

.pd-adv-control .dropdown-menu .savebtn:hover {
	background: #6a9ad4;
}

/* ==========================================================================
   Filter Count Badges
   ========================================================================== */

/* Sticky search header in dropdowns */
.pd-adv-control .dropdown-menu .position-sticky.top-0 {
	padding: 12px;
	padding-bottom: 12px;
	background: #fff;
	border-radius: 14px 14px 0 0;
	border-bottom: 1px solid rgba(241, 245, 249, 0.8);
	z-index: 10;
}

/* Re-style the search input inside sticky header */
.pd-adv-control .dropdown-menu .position-sticky.top-0 .form-control {
	margin: 0;
	width: 100%;
}

/* Filter count badges - subtle status indicators */
.pd-adv-control .form-select .pd-filter-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: rgba(126, 168, 220, 0.9);
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	font-size: 10px;
	font-weight: 600;
	line-height: 13px;
	text-align: center;
	pointer-events: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.pd-filters-trigger .pd-filter-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: rgba(126, 168, 220, 0.9);
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	font-size: 10px;
	font-weight: 600;
	line-height: 13px;
	text-align: center;
	pointer-events: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Summary Card
   ========================================================================== */

/* Summary card - visually subordinate confirmation panel */
.pd-adv-helper {
	background: rgba(248, 250, 252, 0.7);
	border: 1px solid rgba(226, 232, 240, 0.4);
	border-radius: var(--pd-radius-md);
	padding: 12px 16px 12px 18px;
	position: relative;
}

.pd-adv-helper::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: rgba(126, 168, 220, 0.4);
	border-radius: var(--pd-radius-md) 0 0 var(--pd-radius-md);
}

.pd-helper-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pd-slate-700);
	margin-bottom: 3px;
}

.pd-helper-text {
	font-size: 14px;
	line-height: 1.55;
	color: var(--pd-slate-600);
	max-width: 720px;
	margin: 0;
}

/* Dynamic filter values styled as subtle chips */
.pd-helper-text strong u {
	display: inline;
	text-decoration: none;
	background: rgba(126, 168, 220, 0.12);
	color: var(--pd-blue-600);
	padding: 1px 6px;
	margin: 0 1px;
	border-radius: 3px;
	font-weight: 500;
	font-size: 13px;
	white-space: nowrap;
	line-height: 1.7;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* ==========================================================================
   Mobile Responsive - Search Toolbar
   ========================================================================== */

@media (max-width: 980px) {
	.pd-adv-control--location {
		flex: 1 1 100%;
		max-width: 100%;
		margin-bottom: 4px;
	}
	
	.pd-adv-controls {
		padding: 14px 16px;
	}
}

@media (max-width: 768px) {
	.pd-adv-controls {
		gap: 8px;
		padding: 12px 14px;
	}

	.pd-adv-control--location {
		flex: 1 1 100%;
		margin-bottom: 4px;
	}

	.pd-adv-input {
		height: 42px;
		font-size: 16px; /* Prevent iOS zoom */
	}

	.pd-adv-control .form-select {
		height: 40px;
		padding: 0 12px;
		font-size: 13px;
	}

	.pd-filters-trigger {
		height: 40px;
		padding: 0 12px;
		font-size: 13px;
	}

	.pd-search-btn {
		height: 42px;
		min-width: 85px;
		padding: 0 18px;
		font-size: 14px;
	}
	
	.pd-reset {
		font-size: 12px;
	}
	
	.pd-adv-actions {
		gap: 12px;
		padding-left: 8px;
	}

	/* Helper panel - reduced prominence on tablet */
	.pd-adv-helper {
		padding: 11px 14px 11px 16px;
	}
	
	.pd-adv-helper::before {
		width: 2px;
	}

	.pd-helper-title {
		font-size: 14px;
		font-weight: 600;
	}

	.pd-helper-text {
		font-size: 13px;
		line-height: 1.5;
	}

	.pd-helper-text strong u {
		font-size: 12px;
		padding: 1px 5px;
	}
	
	/* Badges on tablet */
	.pd-adv-control .form-select .pd-filter-count,
	.pd-filters-trigger .pd-filter-count {
		top: -4px;
		right: -4px;
		min-width: 15px;
		height: 15px;
		font-size: 9px;
		line-height: 12px;
	}
}

@media (max-width: 480px) {
	.pd-adv-controls {
		gap: 6px;
		padding: 10px 12px;
	}

	.pd-adv-control .form-select {
		height: 38px;
		padding: 0 10px;
		font-size: 12px;
	}

	.pd-filters-trigger {
		height: 38px;
		padding: 0 10px;
		font-size: 12px;
		gap: 4px;
	}

	.pd-filters-trigger__icon {
		width: 14px;
		height: 14px;
	}
	
	.pd-adv-actions {
		width: 100%;
		justify-content: flex-end;
		margin-top: 4px;
		padding-left: 0;
	}
	
	.pd-search-btn {
		flex: 1;
		max-width: 120px;
	}

	.pd-adv-actions {
		gap: 8px;
		width: 100%;
		justify-content: space-between;
	}

	.pd-reset {
		font-size: 12px;
	}

	.pd-search-btn {
		min-width: 80px;
		padding: 0 14px;
	}

	.pd-adv-helper {
		padding: 10px 12px 10px 14px;
	}

	.pd-adv-helper::before {
		width: 2px;
	}

	.pd-helper-title {
		font-size: 14px;
		margin-bottom: 3px;
	}

	.pd-helper-text {
		font-size: 12px;
		line-height: 1.5;
	}

	.pd-helper-text strong u {
		font-size: 11px;
		padding: 1px 4px;
		line-height: 1.8;
	}
	
	/* Ensure badges don't clip on mobile */
	.pd-adv-control .form-select .pd-filter-count,
	.pd-filters-trigger .pd-filter-count {
		top: -3px;
		right: -3px;
		min-width: 14px;
		height: 14px;
		font-size: 9px;
		line-height: 11px;
		padding: 0 3px;
	}
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.pd-adv-input:focus-visible,
.pd-adv-control .form-select:focus-visible,
.pd-filters-trigger:focus-visible,
.pd-search-btn:focus-visible,
.pd-reset:focus-visible {
	outline: 2px solid var(--pd-blue-500);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.pd-adv-input,
	.pd-adv-control .form-select,
	.pd-filters-trigger,
	.pd-search-btn,
	.pd-reset {
		transition: none;
	}
}
