/**
 * NH Makelaar — Property archive, search, taxonomy, and single surfaces.
 */

/* Archive / Search / Taxonomy */
.nh-main {
	padding: var(--nh-space-12) 0;
}

.nh-archive-property h1,
.nh-taxonomy-property-city h1,
.nh-search-results h1 {
	margin-bottom: var(--nh-space-6);
	font-size: var(--nh-font-size-xl);
}

.nh-taxonomy-description {
	margin-bottom: var(--nh-space-8);
	color: var(--nh-color-text-muted);
	font-size: var(--nh-font-size-md);
}

.nh-property-filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nh-space-4);
	align-items: flex-end;
	margin-bottom: var(--nh-space-8);
	padding: var(--nh-space-4);
	background-color: var(--nh-color-background-alt);
	border-radius: var(--nh-radius-md);
}

.nh-filter-group {
	display: flex;
	flex-direction: column;
	gap: var(--nh-space-1);
}

.nh-filter-group select {
	padding: var(--nh-space-3);
	font-size: var(--nh-font-size-base);
	border: 1px solid var(--nh-color-border);
	border-radius: var(--nh-radius-sm);
	background-color: var(--nh-color-background);
	min-width: 180px;
}

.nh-pagination {
	margin-top: var(--nh-space-8);
}

.nh-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	padding: var(--nh-space-2) var(--nh-space-3);
	margin-right: var(--nh-space-2);
	border: 1px solid var(--nh-color-border);
	border-radius: var(--nh-radius-sm);
	color: var(--nh-color-text);
	background-color: var(--nh-color-background);
	transition: background-color var(--nh-transition-fast), color var(--nh-transition-fast);
}

.nh-pagination .page-numbers:hover,
.nh-pagination .page-numbers:focus {
	background-color: var(--nh-color-primary);
	color: var(--nh-color-text-light);
	border-color: var(--nh-color-primary);
}

.nh-pagination .page-numbers.current {
	background-color: var(--nh-color-primary);
	color: var(--nh-color-text-light);
	border-color: var(--nh-color-primary);
}

.nh-empty-state {
	text-align: center;
	padding: var(--nh-space-12) var(--nh-space-4);
	background-color: var(--nh-color-background-alt);
	border-radius: var(--nh-radius-md);
}

.nh-empty-state p {
	font-size: var(--nh-font-size-md);
	margin-bottom: var(--nh-space-6);
}

/* Search */
.nh-search-section-title {
	font-size: var(--nh-font-size-lg);
	margin-top: var(--nh-space-10);
	margin-bottom: var(--nh-space-4);
}

.nh-search-content-list {
	display: grid;
	gap: var(--nh-space-4);
}

.nh-search-content-item {
	padding: var(--nh-space-4);
	border: 1px solid var(--nh-color-border);
	border-radius: var(--nh-radius-md);
}

/* Archive sidebar layout */
.nh-archive-layout {
	display: grid;
	gap: var(--nh-space-8);
}

@media (min-width: 1024px) {
	.nh-archive-layout {
		grid-template-columns: 1fr 320px;
		align-items: start;
	}
}

.nh-archive-sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--nh-space-6);
}

.nh-archive-widget {
	padding: var(--nh-space-5);
	background-color: var(--nh-color-background);
	border: 1px solid var(--nh-color-border);
	border-radius: var(--nh-radius-md);
}

.nh-archive-widget-title {
	margin-bottom: var(--nh-space-4);
	font-size: var(--nh-font-size-lg);
	font-weight: 600;
	color: var(--nh-color-text);
}

.nh-widget-contact__item {
	margin-bottom: var(--nh-space-2);
}

.nh-widget-contact__item a {
	color: var(--nh-color-primary);
	text-decoration: none;
}

.nh-widget-contact__item a:hover,
.nh-widget-contact__item a:focus {
	text-decoration: underline;
}

.nh-widget-contact__hours {
	margin-top: var(--nh-space-3);
	font-size: var(--nh-font-size-sm);
	color: var(--nh-color-text-muted);
}

.nh-property-grid--sidebar {
	display: grid;
	gap: var(--nh-space-4);
}

.nh-property-card--sidebar {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: var(--nh-space-3);
	align-items: center;
}

.nh-property-card--sidebar .nh-property-thumb {
	width: 80px;
	height: 60px;
	border-radius: var(--nh-radius-sm);
	overflow: hidden;
	flex-shrink: 0;
}

.nh-property-card--sidebar .nh-property-thumb img,
.nh-property-card--sidebar .nh-property-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nh-property-card--sidebar .nh-property-content {
	min-width: 0;
}

.nh-property-card--sidebar .nh-property-title {
	font-size: var(--nh-font-size-base);
	line-height: 1.3;
	margin-bottom: var(--nh-space-1);
}

.nh-property-card--sidebar .nh-property-address,
.nh-property-card--sidebar .nh-property-excerpt,
.nh-property-card--sidebar .nh-property-meta {
	display: none;
}

.nh-property-card--sidebar .nh-property-price {
	font-size: var(--nh-font-size-sm);
	font-weight: 600;
}

/* Single property */
.nh-single-property {
	padding: 0 0 3rem;
}

@media (min-width: 1024px) {
	.nh-single-property {
		padding-bottom: 8rem;
	}
}

.nh-property-header {
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	padding: 0 0 2rem;
	max-width: 1280px;
	margin: 0 auto;
}

@media (min-width: 240px) {
	.nh-property-header {
		flex-direction: row;
		align-items: center;
		padding: 4rem 0;
	}
}

.nh-property-header__left,
.nh-property-header__right {
	display: flex;
	flex-direction: column;
}

.nh-property-header__left {
	flex: 1 1 auto;
	margin: 0;
}

.nh-property-header__right {
	align-items: flex-end;
	text-align: right;
	padding-left: 0;
}

.nh-property-header h1 {
	color: #1a1a1a;
	font-size: 3.6rem;
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 1rem;
	padding: 0;
}

.nh-property-status {
	display: inline-block;
	padding: 0.5rem 1rem;
	background-color: var(--nh-color-primary);
	color: #fff;
	font-size: 1.3rem;
	font-weight: 500;
	margin-bottom: 1rem;
}

.nh-property-address--large {
	font-size: 1.5rem;
	margin-bottom: 0;
	color: var(--nh-color-primary);
	font-weight: 500;
}

.nh-property-price--large {
	font-size: 2.2rem;
	font-weight: 500;
	color: var(--nh-color-primary);
	margin-bottom: 0;
}

.nh-property-gallery {
	margin-bottom: 3rem;
}

.nh-gallery-primary {
	width: 100%;
	border-radius: 4px;
	overflow: hidden;
	background-color: #f7f7f7;
}

.nh-gallery-primary img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.nh-gallery-thumbs {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 0.5rem;
}

.nh-gallery-thumbs li {
	margin: 0;
}

.nh-gallery-thumb {
	width: 100%;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	background: none;
	transition: border-color 0.2s linear;
}

.nh-gallery-thumb:hover,
.nh-gallery-thumb:focus {
	border-color: var(--nh-color-primary);
}

.nh-gallery-thumb img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.nh-property-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: start;
}

@media (min-width: 1024px) {
	.nh-property-layout {
		grid-template-columns: 70% 30%;
	}
}

.nh-property-main {
	width: 100%;
	padding-right: 0;
}

@media (min-width: 1024px) {
	.nh-property-main {
		padding-right: 3rem;
	}
}

.nh-property-content {
	width: 100%;
}

.nh-property-facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1rem;
	margin-bottom: 3rem;
}

.nh-fact-row {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	background-color: #f7f7f7;
	border-radius: 4px;
}

.nh-property-facts dt {
	font-size: 1.3rem;
	font-weight: 500;
	margin: 0 0 1rem;
	line-height: 1.2;
	color: #1a1a1a;
}

.nh-property-facts dd {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 500;
	color: #1a1a1a;
}

.nh-property-facts dd svg {
	fill: #b3b3b3;
	vertical-align: middle;
}

.nh-property-description {
	margin-bottom: 3rem;
}

.nh-property-description h2 {
	font-size: 1.8rem;
	font-weight: 500;
	margin-bottom: 1.5rem;
	color: #1a1a1a;
}

.nh-property-map {
	margin-bottom: 3rem;
	border-radius: 4px;
	overflow: hidden;
}

.nh-property-aside {
	width: 100%;
	margin-top: 3rem;
}

@media (min-width: 1024px) {
	.nh-property-aside {
		width: 30%;
		margin-top: 0;
	}
}

.nh-property-contact {
	padding: 2rem;
	background-color: #f7f7f7;
	border-radius: 4px;
	margin-bottom: 2rem;
}

.nh-property-contact h2 {
	font-size: 1.8rem;
	font-weight: 500;
	margin-bottom: 1.5rem;
}

.nh-related-properties {
	margin-top: 6rem;
	padding-top: 4rem;
	border-top: 1px solid #e0e0e0;
}

.nh-related-properties h2 {
	font-size: 2.4rem;
	font-weight: 500;
	margin-bottom: 2rem;
}

@media (max-width: 1024px) {
	.nh-property-layout {
		grid-template-columns: 1fr;
	}

	.nh-property-aside {
		position: static;
	}
}
