/**
 * Property flyer print stylesheet (browser "Print to PDF").
 *
 * Mirrors the server-side TCPDF layout as closely as CSS allows so
 * users who don't have Composer installed can still hit "Print" from
 * the front-end single-property template and get an MLS-style flyer.
 *
 * Targets `.tx-property` on the single-property template.
 */

@page {
	size: Letter portrait;
	margin: 0.5in;
}

@media print {
	body,
	.site-header,
	.site-footer,
	.tx-property__actions,
	.tx-property__map,
	.tx-property__contact,
	nav,
	.wp-block-navigation,
	.entry-comments,
	.comment-form,
	form,
	.tx-share,
	.breadcrumbs,
	#wpadminbar {
		display: none !important;
	}

	body,
	.site-content,
	.tx-property {
		background: #fff !important;
		color: #000 !important;
		font-family: "Titillium Web", Arial, sans-serif;
		font-size: 10pt;
		line-height: 1.35;
	}

	.tx-property__hero img {
		width: 100% !important;
		height: auto !important;
		max-height: 3.5in;
		object-fit: cover;
	}

	.tx-property__title,
	.tx-property__title h1 {
		font-family: "Oswald", Impact, sans-serif;
		font-size: 20pt;
		font-weight: 700;
		margin: 0.15in 0 0.05in;
	}

	.tx-property__address {
		font-size: 11pt;
		margin: 0 0 0.15in;
	}

	.tx-property__rent {
		font-size: 14pt;
		font-weight: 700;
		float: right;
	}

	.tx-property__specs {
		width: 100%;
		border-collapse: collapse;
		margin: 0.15in 0;
	}

	.tx-property__specs th,
	.tx-property__specs td {
		border: 1px solid #333;
		padding: 4pt 6pt;
		font-size: 10pt;
		text-align: left;
	}

	.tx-property__specs th {
		background: #f0f0f0;
		font-weight: 700;
		width: 30%;
	}

	.tx-property__desc {
		margin: 0.1in 0;
	}

	.tx-property__gallery {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 0.1in;
		margin-top: 0.15in;
	}

	.tx-property__gallery img {
		width: 100%;
		height: 1.5in;
		object-fit: cover;
	}

	.tx-property__policies {
		margin-top: 0.15in;
		font-size: 9pt;
		color: #333;
	}

	.tx-property__policies dt {
		font-weight: 700;
		float: left;
		margin-right: 0.05in;
	}

	.tx-property__policies dd {
		margin: 0 0 4pt 0.9in;
	}

	.page-break {
		page-break-before: always;
	}

	a, a:visited {
		color: #000 !important;
		text-decoration: none !important;
	}
}
