/* Damico — print stylesheet. Pensado para que los asesores puedan imprimir
   una ficha de propiedad legible (1 página A4 si se puede). */

@media print {

	/* Reset básico para la impresión */
	*, *::before, *::after {
		background: transparent !important;
		box-shadow: none !important;
		text-shadow: none !important;
		color: #111 !important;
	}

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

	a, a:visited { color: #111; text-decoration: none; }

	/* Ocultar chrome */
	.site-header,
	.site-footer,
	.cookie-banner,
	.fav-toggle,
	.property__actions,
	.modal,
	.lb,
	.filters, .filters-trigger, .filters-drawer,
	.results__sort,
	.skip-link,
	.menu-toggle,
	.mobile-drawer,
	.back-link,
	.similar,
	.home-newsletter,
	.home-zonas,
	.home-emp,
	.section--ink,
	.emp-cta,
	.empty,
	#wpadminbar { display: none !important; }

	/* Asegurar que las imágenes de la galería se vean */
	.property-gallery {
		display: grid !important;
		grid-template-columns: 2fr 1fr 1fr !important;
		grid-template-rows: 1fr 1fr !important;
		gap: 4px !important;
		height: 280px !important;
		page-break-inside: avoid;
	}
	.property-gallery__main { grid-row: 1 / span 2 !important; }
	.property-gallery__main, .property-gallery__cell {
		print-color-adjust: exact;
		-webkit-print-color-adjust: exact;
	}

	.container { max-width: 100% !important; padding: 0 !important; }

	.page-property__inner { padding: 12mm !important; }

	/* Header de propiedad */
	.property__title {
		font-size: 22pt !important;
		margin-bottom: 4mm !important;
	}
	.property__sub { font-size: 10pt !important; color: #555 !important; }

	/* Stats */
	.property-stats {
		display: grid !important;
		grid-template-columns: repeat(4, 1fr) !important;
		padding: 4mm 0 !important;
		border-top: 1px solid #999 !important;
		border-bottom: 1px solid #999 !important;
		margin-bottom: 4mm !important;
	}
	.stat__value { font-size: 18pt !important; }
	.stat__label { font-size: 8pt !important; }

	/* Tabs colapsadas: mostrar todo el contenido */
	.property-tabs__nav { display: none !important; }
	.property-tabs__panel { display: block !important; margin-bottom: 4mm; font-size: 10.5pt !important; }
	.property-tabs__panel[data-panel="ubicacion"] iframe { display: none; }
	.property-tabs__panel[data-panel="ubicacion"]::before {
		content: 'Ubicación: ' attr(data-address);
	}

	/* Body en una sola columna */
	.property-body {
		display: block !important;
		margin-top: 4mm !important;
	}
	.property-body__side { margin-top: 4mm; }

	/* Price card */
	.price-card {
		border: 1px solid #999 !important;
		padding: 4mm !important;
		page-break-inside: avoid;
	}
	.price-card__price { font-size: 22pt !important; }

	/* Agente */
	.agent-card { page-break-inside: avoid; }

	/* Footer impreso (URL) */
	.page-property__inner::after {
		content: 'Graciela D\'Amico & Asociados — ' attr(data-print-url);
		display: block;
		margin-top: 6mm;
		padding-top: 3mm;
		border-top: 1px solid #ccc;
		font-size: 9pt;
		color: #666 !important;
		text-align: center;
	}

	/* Page breaks */
	h1, h2, h3 { page-break-after: avoid; }
	img { page-break-inside: avoid; max-width: 100% !important; }

	@page {
		margin: 12mm;
	}
}
