/**
 * RealtyPro — Print Styles
 * @package RealtyPro
 */

@media print {
	/* Hide non-essential elements */
	#site-header,
	#site-footer,
	.hero-search-box,
	.property-types-strip,
	.mobile-menu-toggle,
	#mobile-menu,
	.breadcrumbs,
	.compare-bar,
	.social-share,
	.card-favorite,
	.card-compare-btn,
	.btn,
	button,
	.search-filters,
	.view-toggle,
	.sort-wrap,
	.pagination,
	.property-contact-sidebar,
	.walkscore-section,
	.nearby-section,
	.cta-section,
	.newsletter-section,
	.rp-toast,
	#rp-compare-bar,
	.back-to-top,
	nav,
	.no-print {
		display: none !important;
	}

	/* Reset backgrounds and colors */
	body {
		background: #fff !important;
		color: #000 !important;
		font-size: 12pt;
		line-height: 1.5;
	}

	a {
		color: #000 !important;
		text-decoration: underline;
	}

	/* Show URL after links */
	.property-detail a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 9pt;
		color: #555;
	}

	/* Property detail page */
	.property-detail {
		padding-top: 0 !important;
	}

	.property-gallery {
		page-break-after: avoid;
	}

	.gallery-main img {
		max-width: 100%;
		height: auto;
	}

	.gallery-thumbs {
		display: none;
	}

	.property-info-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.property-specs {
		border: 1px solid #ccc;
		padding: 12px;
		page-break-inside: avoid;
	}

	.property-description {
		page-break-inside: avoid;
	}

	/* Property card in listings */
	.property-card {
		break-inside: avoid;
		border: 1px solid #ddd;
		margin-bottom: 12px;
	}

	.listings-grid {
		display: block;
	}

	/* Agent info */
	.agent-sidebar {
		border: 1px solid #ccc;
		padding: 12px;
		break-inside: avoid;
	}

	/* Price */
	.property-price {
		font-size: 16pt;
		font-weight: bold;
	}

	/* Page breaks */
	h1, h2, h3 {
		page-break-after: avoid;
	}

	img {
		max-width: 100% !important;
	}

	/* Footer info */
	@page {
		margin: 1.5cm;
	}
}
