.tne-search-page {
	--tne-search-bg: #171216;
	--tne-search-panel: #1d171c;
	--tne-search-panel-2: #241b22;
	--tne-search-border: rgba(214, 179, 106, .18);
	--tne-search-text: #f7f2f5;
	--tne-search-muted: #b8adb5;
	--tne-search-gold: #d6b36a;
	--tne-search-wine: #b80f3d;
}

.tne-search-heading,
.tne-search-filter-panel,
.tne-search-results-head,
.tne-search-start-state,
.tne-search-empty-state {
	box-sizing: border-box;
}

.tne-search-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding: 26px 28px;
	margin-bottom: 18px;
	border: 1px solid var(--tne-search-border);
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(74, 17, 40, .22), rgba(18, 17, 20, .86));
}

.tne-search-heading h1 {
	margin: 5px 0 7px;
	font-size: clamp(28px, 3vw, 42px);
	line-height: 1.05;
}

.tne-search-heading p {
	max-width: 760px;
	margin: 0;
	color: var(--tne-search-muted);
}

.tne-search-eyebrow {
	display: block;
	color: var(--tne-search-gold);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.tne-search-filter-toggle {
	display: none;
}

.tne-search-filter-panel {
	padding: 22px;
	margin-bottom: 18px;
	border: 1px solid var(--tne-search-border);
	border-radius: 20px;
	background: var(--tne-search-panel);
}

.tne-search-filter-panel__mobile-head {
	display: none;
}

.tne-search-fields {
	display: grid;
	grid-template-columns: minmax(180px, 1.3fr) repeat(4, minmax(145px, 1fr));
	gap: 12px;
}

.tne-search-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.tne-search-field > span,
.tne-search-choice-groups legend,
.tne-search-sort > span {
	color: var(--tne-search-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
}

.tne-search-field input,
.tne-search-field select,
.tne-search-sort select {
	width: 100%;
	min-height: 46px;
	box-sizing: border-box;
	padding: 0 13px;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 12px;
	outline: none;
	background: #151419;
	color: var(--tne-search-text);
	font: inherit;
}

.tne-search-field input:focus,
.tne-search-field select:focus,
.tne-search-sort select:focus {
	border-color: rgba(214,179,106,.65);
	box-shadow: 0 0 0 3px rgba(214,179,106,.08);
}

.tne-search-field select:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.tne-search-age-inputs {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 7px;
}

.tne-search-age-inputs span {
	color: var(--tne-search-muted);
}

.tne-search-choice-groups {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 14px;
}

.tne-search-choice-groups fieldset {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	min-width: 0;
	padding: 13px 14px;
	margin: 0;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 14px;
	background: rgba(255,255,255,.025);
}

.tne-search-choice-groups legend {
	padding: 0 6px;
}

.tne-search-choice-groups label {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.tne-search-choice-groups input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tne-search-choice-groups label span {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 13px;
	border: 1px solid rgba(255,255,255,.11);
	border-radius: 999px;
	background: #151419;
	color: #d9d0d6;
	font-weight: 700;
}

.tne-search-choice-groups input:checked + span {
	border-color: rgba(214,179,106,.56);
	background: rgba(184,15,61,.23);
	color: #fff;
}

.tne-search-filter-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 16px;
}

.tne-search-clear,
.tne-search-apply,
.tne-search-reset-button,
.tne-search-pagination button,
.tne-search-filter-toggle {
	min-height: 44px;
	box-sizing: border-box;
	border-radius: 999px;
	font-weight: 800;
	text-decoration: none !important;
}

.tne-search-clear {
	display: inline-flex;
	align-items: center;
	padding: 0 16px;
	color: var(--tne-search-muted) !important;
}

.tne-search-apply,
.tne-search-reset-button,
.tne-search-pagination button,
.tne-search-filter-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 22px;
	border: 1px solid rgba(255,255,255,.12);
	background: linear-gradient(180deg, #c11648, #a70d37);
	color: #fff !important;
	cursor: pointer;
}

.tne-search-results-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 16px 18px;
	margin: 4px 0 16px;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 16px;
	background: rgba(255,255,255,.025);
}

.tne-search-results-head > div {
	display: flex;
	align-items: baseline;
	gap: 7px;
	flex-wrap: wrap;
}

.tne-search-result-count {
	color: var(--tne-search-gold);
	font-size: 26px;
	font-weight: 900;
}

.tne-search-results-head small {
	color: var(--tne-search-muted);
}

.tne-search-sort {
	display: grid;
	grid-template-columns: auto minmax(170px, 1fr);
	align-items: center;
	gap: 8px;
}

.tne-search-sort select {
	min-height: 42px;
}

.tne-search-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 24px 0 6px;
}

.tne-search-pagination button {
	min-width: 120px;
}

.tne-search-pagination span {
	color: var(--tne-search-muted);
	font-weight: 700;
}

.tne-search-start-state,
.tne-search-empty-state {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
	padding: 30px;
	border: 1px dashed rgba(214,179,106,.26);
	border-radius: 18px;
	background: rgba(255,255,255,.02);
}

.tne-search-start-state span,
.tne-search-empty-state p {
	margin: 0;
	color: var(--tne-search-muted);
}

.tne-search-empty-state h2 {
	margin: 0;
}

.tne-search-reset-button {
	margin-top: 8px;
}

@media screen and (max-width: 1180px) {
	.tne-search-fields {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tne-search-field--name {
		grid-column: span 2;
	}
}

@media screen and (max-width: 960px) {
	.tne-search-heading {
		align-items: center;
		padding: 22px;
	}

	.tne-search-filter-toggle {
		display: inline-flex;
		flex: 0 0 auto;
		gap: 8px;
	}

	.tne-search-filter-panel {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 100002;
		max-height: min(88vh, 760px);
		overflow-y: auto;
		padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
		margin: 0;
		border-radius: 22px 22px 0 0;
		transform: translateY(105%);
		transition: transform .24s ease;
		box-shadow: 0 -24px 60px rgba(0,0,0,.42);
	}

	.tne-search-filter-panel.is-open {
		transform: translateY(0);
	}

	.tne-search-filter-panel__mobile-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 16px;
		font-size: 19px;
	}

	.tne-search-sheet-close {
		width: 42px;
		height: 42px;
		border: 1px solid rgba(255,255,255,.12);
		border-radius: 50%;
		background: #151419;
		color: #fff;
		font-size: 26px;
		line-height: 1;
		cursor: pointer;
	}

	.tne-search-sheet-backdrop {
		position: fixed;
		inset: 0;
		z-index: 100001;
		background: rgba(0,0,0,.63);
		opacity: 0;
		transition: opacity .2s ease;
	}

	.tne-search-sheet-backdrop.is-open {
		opacity: 1;
	}

	body.tne-search-sheet-open {
		overflow: hidden;
	}

	.tne-search-fields {
		grid-template-columns: 1fr 1fr;
	}

	.tne-search-field--name {
		grid-column: 1 / -1;
	}

	.tne-search-choice-groups {
		grid-template-columns: 1fr;
	}

	.tne-search-filter-actions {
		position: sticky;
		bottom: calc(-18px - env(safe-area-inset-bottom));
		padding: 14px 0 calc(18px + env(safe-area-inset-bottom));
		background: linear-gradient(180deg, rgba(29,23,28,0), var(--tne-search-panel) 24%);
	}
}

@media screen and (max-width: 620px) {
	.tne-search-heading {
		align-items: flex-start;
		padding: 18px;
		border-radius: 16px;
	}

	.tne-search-heading p {
		display: none;
	}

	.tne-search-filter-toggle {
		min-width: 96px;
		padding: 0 14px;
	}

	.tne-search-fields {
		grid-template-columns: 1fr;
	}

	.tne-search-field--name {
		grid-column: auto;
	}

	.tne-search-results-head {
		align-items: stretch;
		flex-direction: column;
	}

	.tne-search-sort {
		grid-template-columns: auto 1fr;
	}

	.tne-search-pagination {
		justify-content: space-between;
		gap: 8px;
	}

	.tne-search-pagination span {
		font-size: 12px;
		text-align: center;
	}

	.tne-search-pagination button {
		min-width: 0;
		padding: 0 16px;
	}
}

.tne-search-field select option,
.tne-search-sort select option {
	background: #151419;
	color: #f7f2f5;
}

/* ==================================================
   v5.10.6 — MOBILE DIRECTORY TOOLBAR
   ================================================== */

.tne-mobile-filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(214,179,106,.14);
	color: #efd797;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	box-sizing: border-box;
}

.tne-mobile-filter-count[hidden] {
	display: none !important;
}

.tne-all-mobile-filter-form {
	display: none;
}

@media screen and (max-width: 768px) {
	.tne-all-mobile-filter-form {
		display: block;
		position: relative;
		margin: 12px 0 18px;
	}

	.tne-all-mobile-tools {
		position: sticky;
		top: 8px;
		z-index: 880;
		display: grid;
		grid-template-columns: minmax(0,1fr) minmax(0,1fr);
		gap: 8px;
		padding: 7px;
		border: 1px solid rgba(214,179,106,.16);
		border-radius: 16px;
		background: rgba(15,13,16,.94);
		box-shadow: 0 12px 32px rgba(0,0,0,.28);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
	}

	.tne-all-mobile-filter-toggle,
	.tne-all-mobile-sort {
		min-width: 0;
		min-height: 46px;
		border: 1px solid rgba(255,255,255,.10);
		border-radius: 12px;
		background: #1a161a;
		color: #f7f2f5;
		box-sizing: border-box;
	}

	.tne-all-mobile-filter-toggle {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		gap: 7px;
		width: 100%;
		padding: 0 12px;
		font-size: 13px;
		font-weight: 850;
	}

	.tne-all-mobile-filter-toggle .icon {
		color: #d6b36a;
	}

	.tne-all-mobile-sort {
		position: relative;
		display: grid;
		grid-template-columns: auto minmax(0,1fr);
		align-items: center;
		gap: 6px;
		padding: 0 8px 0 12px;
	}

	.tne-all-mobile-sort > span {
		color: #b8adb5;
		font-size: 11px;
		font-weight: 800;
		letter-spacing: .03em;
	}

	.tne-all-mobile-sort select {
		width: 100%;
		min-width: 0;
		height: 40px;
		padding: 0 24px 0 6px;
		border: 0;
		outline: 0;
		background: transparent;
		color: #fff;
		font-size: 12px;
		font-weight: 800;
		text-align: right;
		box-shadow: none;
	}

	.tne-all-mobile-sort select option {
		background: #151419;
		color: #f7f2f5;
	}

	.tne-all-mobile-filter-panel .tne-search-filter-panel__mobile-head > div {
		display: flex;
		flex-direction: column;
		gap: 3px;
	}

	.tne-all-mobile-filter-panel .tne-search-filter-panel__mobile-head small {
		color: #d6b36a;
		font-size: 10px;
		font-weight: 900;
		letter-spacing: .12em;
		text-transform: uppercase;
	}

	.tne-all-mobile-filter-panel .tne-search-filter-panel__mobile-head strong {
		font-size: 20px;
	}

	.tne-all-mobile-filter-fields,
	.tne-all-mobile-choice-groups {
		grid-template-columns: 1fr !important;
	}

	.tne-all-mobile-choice-groups fieldset {
		gap: 8px;
	}

	.tne-all-mobile-clear {
		appearance: none;
		-webkit-appearance: none;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	/* The old category-pill wall duplicates the drawer on phones. Keep those
	   direct links on desktop, where there is enough room for them. */
	.tne-all-profiles-category-nav {
		display: none !important;
	}
}

@media screen and (max-width: 768px) {
	body.page-template-all-profiles .pagetitle,
	body.page-template-all-profiles-php .pagetitle {
		float: none !important;
		display: block;
		width: 100%;
		margin-bottom: 10px !important;
	}

	.tne-all-mobile-filter-form {
		clear: both;
	}
}

/* ==================================================
   v5.10.7 — MOBILE FILTER SHEET POLISH
   ================================================== */
@media screen and (max-width: 768px) {
	/* The site header has a deliberately high global stacking layer. Filters
	   are a modal interaction, so they must own the viewport while open. */
	body.tne-search-sheet-open .tne-search-sheet-backdrop {
		z-index: 2147483200 !important;
		background: rgba(4, 3, 5, .76) !important;
		backdrop-filter: blur(4px);
		-webkit-backdrop-filter: blur(4px);
	}

	body.tne-search-sheet-open .tne-search-filter-panel {
		left: 10px !important;
		right: 10px !important;
		bottom: 0 !important;
		z-index: 2147483201 !important;
		width: auto !important;
		max-height: min(84dvh, 760px) !important;
		padding: 0 16px calc(12px + env(safe-area-inset-bottom)) !important;
		border: 1px solid rgba(214, 179, 106, .24) !important;
		border-bottom: 0 !important;
		border-radius: 24px 24px 0 0 !important;
		background:
			radial-gradient(circle at 12% 0%, rgba(126, 18, 48, .18), transparent 32%),
			#151116 !important;
		box-shadow: 0 -28px 70px rgba(0, 0, 0, .56) !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	body.tne-search-sheet-open .tne-search-filter-panel::before {
		content: "";
		display: block;
		width: 42px;
		height: 4px;
		margin: 9px auto 0;
		border-radius: 999px;
		background: rgba(255,255,255,.22);
	}

	body.tne-search-sheet-open .tne-search-filter-panel__mobile-head {
		position: sticky !important;
		top: 0 !important;
		z-index: 4 !important;
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 12px !important;
		margin: 0 -2px 14px !important;
		padding: 13px 2px 12px !important;
		background: linear-gradient(180deg, #151116 76%, rgba(21,17,22,0)) !important;
	}

	body.tne-search-sheet-open .tne-all-mobile-filter-panel .tne-search-filter-panel__mobile-head small {
		color: #d6b36a !important;
		font-size: 9px !important;
		font-weight: 900 !important;
		letter-spacing: .15em !important;
	}

	body.tne-search-sheet-open .tne-all-mobile-filter-panel .tne-search-filter-panel__mobile-head strong {
		color: #fff !important;
		font-size: 22px !important;
		font-weight: 850 !important;
		line-height: 1.05 !important;
	}

	body.tne-search-sheet-open .tne-search-sheet-close {
		flex: 0 0 40px !important;
		width: 40px !important;
		height: 40px !important;
		border-color: rgba(255,255,255,.11) !important;
		background: #1d181d !important;
		font-size: 23px !important;
	}

	.tne-all-mobile-filter-fields {
		gap: 12px !important;
	}

	.tne-all-mobile-filter-fields .tne-search-field {
		gap: 6px !important;
	}

	.tne-all-mobile-filter-fields .tne-search-field > span,
	.tne-all-mobile-choice-groups legend {
		color: #c9bdc5 !important;
		font-size: 11px !important;
		font-weight: 850 !important;
		letter-spacing: .035em !important;
	}

	.tne-all-mobile-filter-fields .tne-search-field select {
		min-height: 48px !important;
		padding: 0 42px 0 14px !important;
		border: 1px solid rgba(255,255,255,.10) !important;
		border-radius: 13px !important;
		background: #1b161b !important;
		color: #f5f0f3 !important;
		font-size: 15px !important;
		box-shadow: none !important;
	}

	.tne-all-mobile-filter-fields .tne-search-field select:focus {
		border-color: rgba(214,179,106,.58) !important;
		box-shadow: 0 0 0 3px rgba(214,179,106,.08) !important;
	}

	.tne-all-mobile-choice-groups {
		display: grid !important;
		gap: 10px !important;
		margin-top: 13px !important;
	}

	.tne-all-mobile-choice-groups fieldset {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0,1fr)) !important;
		gap: 8px !important;
		padding: 14px !important;
		border: 1px solid rgba(255,255,255,.075) !important;
		border-radius: 16px !important;
		background: rgba(255,255,255,.022) !important;
	}

	.tne-all-mobile-choice-groups fieldset:last-child {
		grid-template-columns: repeat(3, minmax(0,1fr)) !important;
	}

	.tne-all-mobile-choice-groups legend {
		grid-column: 1 / -1;
		padding: 0 5px !important;
	}

	.tne-all-mobile-choice-groups label {
		display: block !important;
		min-width: 0 !important;
	}

	/* Parent EscortWP may decorate every checkbox using Checkator. Suppress
	   that generated square here; the filter chip itself is the control. */
	.tne-all-mobile-choice-groups label > input,
	.tne-all-mobile-choice-groups label .checkator_holder,
	.tne-all-mobile-choice-groups label .checkator_element {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		margin: -1px !important;
		padding: 0 !important;
		overflow: hidden !important;
		clip: rect(0 0 0 0) !important;
		clip-path: inset(50%) !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}

	.tne-all-mobile-choice-groups label > span {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		min-height: 42px !important;
		padding: 0 10px !important;
		border: 1px solid rgba(255,255,255,.10) !important;
		border-radius: 12px !important;
		background: #1a161a !important;
		color: #d7cfd4 !important;
		font-size: 12px !important;
		font-weight: 800 !important;
		line-height: 1.15 !important;
		text-align: center !important;
		white-space: normal !important;
		box-sizing: border-box !important;
	}

	.tne-all-mobile-choice-groups label > input:checked + span,
	.tne-all-mobile-choice-groups label:has(input:checked) > span {
		border-color: rgba(214,179,106,.52) !important;
		background: linear-gradient(180deg, rgba(185,20,61,.38), rgba(132,13,43,.28)) !important;
		color: #fff !important;
		box-shadow: inset 0 0 0 1px rgba(214,179,106,.08) !important;
	}

	.tne-all-mobile-choice-groups label > input:focus-visible + span {
		outline: 2px solid rgba(214,179,106,.58) !important;
		outline-offset: 2px !important;
	}

	body.tne-search-sheet-open .tne-search-filter-actions {
		position: sticky !important;
		bottom: calc(-12px - env(safe-area-inset-bottom)) !important;
		z-index: 5 !important;
		display: grid !important;
		grid-template-columns: minmax(90px,.7fr) minmax(0,1.4fr) !important;
		gap: 10px !important;
		margin: 12px -2px 0 !important;
		padding: 16px 2px calc(12px + env(safe-area-inset-bottom)) !important;
		background: linear-gradient(180deg, rgba(21,17,22,0), #151116 24%) !important;
	}

	body.tne-search-sheet-open .tne-all-mobile-clear,
	body.tne-search-sheet-open .tne-search-apply {
		width: 100% !important;
		min-height: 48px !important;
		margin: 0 !important;
		border-radius: 14px !important;
		justify-content: center !important;
	}

	body.tne-search-sheet-open .tne-all-mobile-clear {
		border: 1px solid rgba(255,255,255,.10) !important;
		background: #1b171b !important;
		color: #c8bdc4 !important;
	}

	body.tne-search-sheet-open .tne-search-apply {
		border-color: rgba(239,67,108,.52) !important;
		background: linear-gradient(180deg, #c91649, #a70d37) !important;
		box-shadow: 0 10px 22px rgba(161,12,53,.22) !important;
	}

	/* Floating contact buttons should not sit on top of modal actions. */
	body.tne-search-sheet-open .tne-floating-contact-button,
	body.tne-search-sheet-open .tne-profile-contact-dock {
		opacity: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}
}

@media screen and (max-width: 390px) {
	.tne-all-mobile-choice-groups fieldset,
	.tne-all-mobile-choice-groups fieldset:last-child {
		grid-template-columns: repeat(2, minmax(0,1fr)) !important;
	}
}
