/**
 * NH Makelaar — Property cards and grids
 */

/* Icons */
.nh-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	vertical-align: middle;
	margin-right: var(--nh-space-1);
}

/* Archive layout */
.nh-archive {
	padding: 3rem 0 6rem;
}

.nh-archive__main {
	display: grid;
	grid-template-columns: 838px 1fr;
	gap: 3rem;
	max-width: 1440px;
	margin: 0 auto;
	padding: 2rem;
}

@media (max-width: 991px) {
	.nh-archive__main {
		grid-template-columns: 1fr;
	}
}

.nh-archive__head {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 2rem;
}

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

.nh-pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 1rem;
	border: 1px solid #e0e0e0;
	margin-right: 0.25rem;
	text-decoration: none;
	color: #1a1a1a;
	font-size: 1.4rem;
}

.nh-pagination .page-numbers.current,
.nh-pagination .page-numbers:hover,
.nh-pagination .page-numbers:focus {
	background-color: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

/* Sidebar */
.nh-sidebar {
	background-color: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 2rem;
}

.nh-archive-widget + .nh-archive-widget {
	margin-top: 2rem;
}

.nh-archive-widget-title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.nh-property-grid--sidebar {
	grid-template-columns: 1fr;
}

/* Filters */
.nh-archive-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-bottom: 2rem;
	padding: 2rem;
	background-color: #f7f7f7;
	border-radius: 4px;
}

.nh-filter-group select {
	min-width: 200px;
	padding: 0.75rem 1rem;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	font-size: 1.4rem;
	background-color: #fff;
}

.nh-property-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 3rem;
}

/* Property section on homepage */
.nh-property-section {
	padding: 100px 0;
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.nh-property-section .nh-section-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 2rem;
}

.nh-property-section .nh-section-header h2 {
	font-size: 3rem;
	font-weight: 300;
	color: #1a1a1a;
	margin: 0;
}

.nh-view-all {
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--nh-color-primary);
	text-decoration: none;
}

.nh-view-all:hover {
	text-decoration: underline;
}

/* Property grid */
.nh-property-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin: 0;
}

/* Property card */
.nh-property-card {
	background-color: transparent;
	overflow: hidden;
	padding: 0;
	margin-bottom: 30px;
	color: #808080;
	position: relative;
	line-height: 1.2;
}

.nh-property-card:hover,
.nh-property-card:focus-within {
	box-shadow: 0 0 8px 4px rgba(0,0,0,0.08);
}

.nh-property-thumb {
	position: relative;
	margin: 0;
	padding-top: 75%;
	overflow: hidden;
	background-color: #f7f7f7;
}

.nh-property-thumb a {
	display: block;
	position: absolute;
	inset: 0;
}

.nh-property-thumb img,
.nh-property-thumb .nh-property-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s linear;
}

.nh-property-card:hover .nh-property-thumb img {
	transform: scale(1.05);
}

.nh-property-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #e0e0e0;
}

.nh-property-label {
	position: absolute;
	left: 7px;
	top: 7px;
	padding: 5px 7px;
	background-color: #1a1a1a;
	color: #fff;
	font-size: 1.3rem;
	font-weight: 500;
}

.nh-property-card--sidebar {
	font-size: 1.4rem;
}

.nh-property-card--sidebar .nh-property-thumb {
	padding-top: 56.25%;
}

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

.nh-property-content {
	display: block;
	width: 100%;
	background: transparent;
	padding: 20px 0 0;
	text-align: left;
}

.nh-property-title {
	margin: 0 0 0.5rem;
}

.nh-property-title a {
	color: #1a1a1a;
	font-size: 1.7rem;
	font-weight: 500;
	line-height: 1.5;
	transition: 0.2s color linear;
}

.nh-property-title a:hover,
.nh-property-title a:focus {
	color: var(--nh-color-primary);
}

.nh-property-address,
.nh-property-excerpt {
	font-size: 1.5rem;
	line-height: 1.5;
	color: #b7b4b4;
	margin: 0 0 0.5rem;
}

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

.nh-property-meta {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
	margin: 1rem 0 0;
	gap: 0;
}

.nh-meta-item {
	display: flex;
	align-items: center;
	padding: 0 7px 14px;
	font-size: 1.5rem;
	font-weight: 500;
}

.nh-meta-label {
	display: none;
}

.nh-meta-value {
	font-size: 1.5rem;
	font-weight: 500;
	color: #1a1a1a;
}

.nh-meta-value svg {
	fill: #b3b3b3;
	width: 1.6rem;
	height: 1.6rem;
	vertical-align: middle;
	margin-right: 0.5rem;
}

.nh-property-price {
	font-size: 2.2rem;
	font-weight: 500;
	color: #fbae31;
	margin-top: 0.5rem;
}
