/* =========================================================
   Map address + print layout (v1.5.0)
   ========================================================= */

/* Address shown with the map: below it on screen, beside it in print. */
.ich-map-address{
	margin-top: 10px;
	font-size: 0.95rem;
}
.ich-map-address-label{
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ich-ink-soft);
	margin-bottom: 2px;
}

/* Print-only blocks (branding, Listed By + QR code). Never shown on screen. */
.ich-print-bar,
.ich-print-brand{ display: none; }

@media print{
	/* Site chrome: header, footer, scroll-to-top, cookie/sticky bits. */
	#masthead,
	.site-header,
	.ast-mobile-header-wrap,
	#ast-mobile-header,
	.site-footer,
	#colophon,
	#ast-scroll-top,
	.ast-scroll-top-icon,
	.ich-sticky-cta,
	.ich-price-change{ /* 1.23.0: price change line stays on screen only */
		display: none !important;
	}

	/* White paper, not the warm-stone web background (saves ink). */
	html,
	body,
	.site,
	.site-content,
	.ast-container,
	.ich-listing{
		background: #fff !important;
	}

	/* Sidebar is all screen-only actions (tour button, Print/Share, 3D tour,
	   PDF links). "Listed By" moves up into the print block instead. */
	.ich-sidebar{ display: none !important; }
	.ich-body{
		grid-template-columns: 1fr !important;
		padding-top: 20px;
		padding-bottom: 0;
	}

	/* ---- Branding at the very top ---- */
	.ich-print-brand{
		display: block;
		max-width: 1180px;
		margin: 0 auto;
		padding: 0 24px 14px;
		border-bottom: 2px solid #000;
		margin-bottom: 18px;
	}
	.ich-print-logo{
		display: block;
		max-height: 0.65in;
		max-width: 3in;
		width: auto;
		height: auto;
	}
	/* 1.24.0: compass + INTRACOASTAL HOMES, LLC (ich_brand_mark_html()) */
	.ich-print-mark{
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
		color: #000;
	}
	.ich-print-mark img{ display: block; height: 0.55in; width: auto; }
	.ich-print-word{
		display: flex;
		flex-direction: column;
		align-items: center;
		font-family: 'Fraunces', Georgia, serif;
		text-transform: uppercase;
		line-height: 1;
	}
	.ich-print-word-1{ font-size: 13pt; font-weight: 600; letter-spacing: 0.14em; padding-left: 0.14em; }
	.ich-print-word-2{ font-size: 7pt; font-weight: 600; letter-spacing: 0.3em; padding-left: 0.3em; margin-top: 3pt; }
	.ich-print-sitename{
		font-family: 'Fraunces', Georgia, serif;
		font-size: 1.6rem;
		font-weight: 500;
		color: #000;
		letter-spacing: 0.01em;
	}

	/* ---- Listed By + QR block ---- */
	.ich-print-bar{
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 24px;
		max-width: 1180px;
		margin: 16px auto 0;
		padding: 12px 24px;
		border-top: 1px solid #000;
		border-bottom: 1px solid #000;
		break-inside: avoid;
		page-break-inside: avoid;
		color: #000;
	}
	.ich-print-agents{ flex: 1 1 auto; min-width: 0; }
	/* Copy closing the last page: sits after everything else, never split. */
	.ich-print-bar--end{
		margin-top: 28px;
		margin-bottom: 0;
	}
	.ich-print-agents h3{
		font-family: 'Fraunces', Georgia, serif;
		font-size: 1rem;
		font-weight: 500;
		margin: 0 0 6px;
		color: #000;
	}
	.ich-print-agents ul{
		list-style: none;
		margin: 0;
		padding: 0;
		font-size: 0.9rem;
		line-height: 1.5;
	}
	.ich-print-qr-wrap{
		display: flex;
		align-items: center;
		gap: 12px;
		margin-left: auto;
		text-align: right;
	}
	.ich-print-qr{
		order: 2;
		width: 1in;
		height: 1in;
		flex: 0 0 1in;
	}
	.ich-print-qr svg{
		display: block;
		width: 100%;
		height: 100%;
		shape-rendering: crispEdges;
	}
	/* No library = no code; don't leave an empty 1-inch gap. */
	.ich-print-qr:empty{ display: none; }
	.ich-print-qr-text{
		order: 1;
		max-width: 2.9in;
		font-size: 0.78rem;
		line-height: 1.4;
	}
	.ich-print-qr-label{
		display: block;
		font-weight: 600;
	}
	.ich-print-url{
		display: block;
		overflow-wrap: anywhere;
	}
	.ich-print-phone{ white-space: nowrap; }

	/* ---- Map with the address beside it ---- */
	.ich-map-section{
		break-inside: avoid;
		page-break-inside: avoid;
	}
	.ich-map-wrap{
		display: grid;
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
		gap: 20px;
		align-items: start;
	}
	.ich-map{
		margin-top: 0;
		border-color: #000;
	}
	.ich-map iframe{ height: 230px; }
	.ich-map-address{
		margin-top: 0;
		color: #000;
	}
	.ich-map-address-label{ color: #000; }

	/* Links read as plain text on paper. */
	.ich-listing a{
		color: #000 !important;
		border-bottom: 0 !important;
		text-decoration: none !important;
	}
}
