/**
 * NH Makelaar — Print styles for single property pages
 *
 * Hides site chrome, maps and forms and keeps the key property details
 * in a clean print layout. Long descriptions and larger galleries may
 * continue across multiple pages without being clipped.
 */

@media print {
	* {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		box-sizing: border-box;
	}

	@page {
		margin: 1.5cm 1cm;
	}

	body {
		color: #000;
		background: #fff;
		font-size: 11pt;
		line-height: 1.4;
	}

	img,
	svg {
		max-width: 100%;
		height: auto;
	}

	/* Hide site chrome and interactive surfaces. */
	header,
	.site-header,
	footer,
	.site-footer,
	.main-navigation,
	nav,
	.nh-hero,
	.nh-hero-slider,
	.nh-property-map,
	#nh-property-map,
	.leaflet-container,
	.nh-property-related,
	.nh-btn,
	button,
	form,
	input,
	textarea,
	select,
	iframe,
	video,
	audio,
	[aria-hidden="true"] {
		display: none !important;
	}

	/* Reset containers for the printed page. */
	.nh-main,
	.nh-container,
	.nh-property-article,
	.nh-property-layout,
	.nh-property-main {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		float: none !important;
	}

	.nh-property-layout {
		display: block !important;
	}

	.nh-property-aside {
		display: none !important;
	}

	/* Property header. */
	.nh-property-header {
		margin-bottom: 1cm;
		page-break-inside: avoid;
	}

	.nh-property-header h1 {
		font-size: 18pt;
		font-weight: bold;
		margin: 0 0 0.3cm 0;
	}

	.nh-property-status {
		display: inline-block;
		font-size: 10pt;
		font-weight: bold;
		text-transform: uppercase;
		border: 1pt solid #000;
		padding: 0.1cm 0.3cm;
		margin-bottom: 0.3cm;
	}

	.nh-property-address--large,
	.nh-property-price--large {
		font-size: 13pt;
		margin: 0.15cm 0;
	}

	.nh-property-price--large {
		font-weight: bold;
	}

	/* Gallery: show the featured image plus a small number of thumbnails. */
	.nh-property-gallery {
		margin-bottom: 1cm;
	}

	.nh-gallery-primary {
		text-align: center;
		margin-bottom: 0.5cm;
	}

	.nh-gallery-primary img {
		max-width: 100%;
		max-height: 7cm;
		width: auto;
		height: auto;
		object-fit: contain;
	}

	.nh-gallery-thumbs li:nth-child(n+5) {
		display: none;
	}

	.nh-gallery-thumbs {
		list-style: none;
		padding: 0;
		margin: 0;
		display: flex;
		flex-wrap: wrap;
		gap: 0.4cm;
	}

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

	.nh-gallery-thumbs img {
		width: 2.5cm;
		height: auto;
		border: 1pt solid #ccc;
	}

	/* Facts. */
	.nh-property-facts {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.25cm 1cm;
		margin: 0.5cm 0 1cm 0;
	}

	.nh-fact-row {
		display: flex;
		justify-content: space-between;
		border-bottom: 0.5pt solid #999;
		padding: 0.15cm 0;
		page-break-inside: avoid;
	}

	.nh-fact-row dt {
		font-weight: bold;
		color: #444;
		padding-right: 0.3cm;
	}

	.nh-fact-row dd {
		margin: 0;
		text-align: right;
	}

	/* Description. */
	.nh-property-description {
		margin: 1cm 0;
	}

	.nh-property-description img,
	.nh-property-description svg {
		max-width: 100%;
		height: auto;
	}

	.nh-property-description h2 {
		font-size: 13pt;
		border-bottom: 0.5pt solid #999;
		margin-bottom: 0.4cm;
		padding-bottom: 0.15cm;
	}

	/* Links. */
	a {
		color: #000;
		text-decoration: none;
	}

	a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		word-break: break-all;
	}
}
