/**
 * More Filters (advanced search) + sidebar link.
 */

/* Hide parent theme page hero on More Filters */
.pts-more-filters-page .header-hero {
	display: none !important;
}

/* Field labels: sentence case (sidebar + More Filters; override parent uppercase) */
.hp-form--listing-filter .hp-field__label,
.hp-form--listing-filter .hp-form__label,
.pts-more-filters-page .pts-more-filters__form .hp-field__label,
.pts-more-filters-page .pts-more-filters__form .hp-form__label {
	font-size: 1rem !important;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	color: #6b6a63;
}

/* Category headings on More Filters (and sidebar listing filter) */
.hp-form--listing-filter .pts-filter-category-title,
.pts-more-filters-page .pts-more-filters__form .pts-filter-category-title {
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	color: #6b6a63;
	border-bottom-color: #e4e7e4;
}

/* Sidebar: More Filters above Filter button, then Reset */
.hp-form--listing-filter .hp-form__footer {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

.hp-form--listing-filter .hp-form__footer > .hp-form__button {
	order: 2;
}

.hp-form--listing-filter .pts-more-filters-link,
.hp-form--listing-filter .pts-more-filters__back-link {
	order: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	padding: 0.35rem 0.5rem;
	color: #134a56;
	font-size: 0.95rem;
	font-weight: 600;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 3px;
	line-height: 1.3;
	background: transparent;
	border: 0;
}

.hp-form--listing-filter .pts-more-filters-link:hover,
.hp-form--listing-filter .pts-more-filters-link:focus,
.hp-form--listing-filter .pts-more-filters__back-link:hover,
.hp-form--listing-filter .pts-more-filters__back-link:focus {
	color: #0d323a;
}

.hp-form--listing-filter .pts-reset-sidebar-filters {
	order: 3;
}

/* Page layout */
.pts-more-filters {
	background: #f4f5f4;
	padding: 1.75rem 0 3.5rem;
	min-height: 60vh;
}

.pts-more-filters__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.pts-more-filters__header {
	margin-bottom: 1.5rem;
}

.pts-more-filters__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.6rem, 2.2vw, 2rem);
	font-weight: 700;
	color: #1c1c1a;
	letter-spacing: -0.02em;
}

.pts-more-filters__subtitle {
	margin: 0;
	color: #6b6a63;
	font-size: 1rem;
}

.pts-more-filters__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 1.5rem;
	align-items: start;
}

.pts-more-filters__filters {
	background: #fff;
	border: 1px solid #e4e7e4;
	border-radius: 14px;
	padding: 1.25rem 1.35rem 1.5rem;
	box-shadow: 0 1px 2px rgba(19, 74, 86, 0.04);
}

.pts-more-filters__form .hp-form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem 1.25rem;
}

.pts-more-filters__form .hp-form__field--pts-category-heading,
.pts-more-filters__form .hp-form__field--checkboxes,
.pts-more-filters__form .hp-form__field--textarea,
.pts-more-filters__form .hp-form__field--radio {
	grid-column: 1 / -1;
}

.pts-more-filters__form .hp-form__footer {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #e8ebe8;
}

.pts-more-filters__ads {
	min-width: 0;
}

.pts-more-filters__ads-sticky {
	position: sticky;
	top: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.pts-more-filters__ad-widget {
	margin: 0;
}

.pts-more-filters__ad-widget img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.pts-more-filters__ad {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	width: 100%;
	max-width: 300px;
	margin: 0 auto;
	border-radius: 10px;
	border: 1px dashed #b7c4b9;
	background:
		linear-gradient(180deg, #fbfcfb 0%, #eef2ef 100%);
	color: #5f6d62;
	text-align: center;
	padding: 1.25rem;
	box-sizing: border-box;
}

.pts-more-filters__ad--halfpage {
	min-height: 600px;
}

.pts-more-filters__ad--mpu {
	min-height: 250px;
}

.pts-more-filters__ad-label {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #134a56;
}

.pts-more-filters__ad-size {
	font-size: 1.05rem;
	font-weight: 600;
	color: #1c1c1a;
}

.pts-more-filters__ad-hint {
	max-width: 220px;
	font-size: 0.78rem;
	line-height: 1.4;
	color: #7a857e;
}

@media (max-width: 900px) {
	.pts-more-filters__layout {
		grid-template-columns: 1fr;
	}

	.pts-more-filters__ads-sticky {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}

	.pts-more-filters__ad--halfpage {
		min-height: 360px;
	}

	.pts-more-filters__form .hp-form__fields {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.pts-more-filters {
		padding: 1.25rem 0 2.5rem;
	}

	.pts-more-filters__filters {
		padding: 1rem;
	}
}
