/*
 * Shared styles for the single listing page (templates/single-listing.html, bh/listing-* blocks).
 * Loaded through block.json ("style": [..., "bh-listing", ...]).
 */

/* Page layout: main column + sticky sidebar ------------------------------ */
.bh-listing-page { background: var(--wp--preset--color--light); }
.bh-listing-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 72px;
	align-items: start;
	padding-block: 48px 120px;
}
.bh-listing-layout > *,
.bh-listing-main > *,
.bh-listing-page > * { margin-block: 0; }
.bh-listing-main { min-width: 0; }

@media (max-width: 1099px) {
	.bh-listing-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
}
@media (max-width: 899px) {
	.bh-listing-layout { grid-template-columns: 1fr; padding-block: 32px 72px; }
}

/* Content sections inside the main column -------------------------------- */
.bh-lsec { padding-top: 56px; margin-top: 56px !important; border-top: 1px solid var(--wp--preset--color--stone); }
.bh-lsec__title {
	margin-bottom: 24px !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 300; line-height: 1.15; letter-spacing: -.015em;
	color: var(--wp--preset--color--primary);
}

/* Form fields (calculator, sidebar forms) -------------------------------- */
.bh-lfield { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bh-lfield--full { grid-column: 1 / -1; }
.bh-lfield label,
.bh-lfield__label {
	font: 600 var(--wp--preset--font-size--x-small)/1.4 var(--wp--preset--font-family--body);
	letter-spacing: .08em; text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.bh-lfield input,
.bh-lfield select,
.bh-lfield textarea {
	width: 100%; min-height: 48px; padding: 10px 14px;
	border: 1px solid var(--wp--preset--color--stone); border-radius: var(--wp--custom--radius);
	background: var(--wp--preset--color--light);
	font: 400 0.9375rem/1.4 var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--primary);
}
.bh-lfield textarea { min-height: 96px; resize: vertical; }
.bh-lfield input:focus,
.bh-lfield select:focus,
.bh-lfield textarea:focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 1px var(--wp--preset--color--primary); }

.bh-btn--sm { min-height: 44px; padding: 0 18px; font-size: var(--wp--preset--font-size--small); }
button.bh-text-link { padding: 0; border: 0; background: none; cursor: pointer; }

@media print {
	.bh-listing-tools, .bh-listing-agent, .bh-listing-mobile-bar, .bh-gallery__count, .bh-listing-similar { display: none !important; }
	.bh-listing-layout { display: block; padding: 0; }
}
