/**
 * A property page, as the Property and PropertyMobile boards set it.
 *
 * Wide: the trail, the labels, title and place with a share button, the photos, then one reading column beside a
 * 400px price card that follows the page. Phone: no site header — the first photo runs to the top with a way back
 * on it — then the title, the plans and the rest as bands, with the price card turned into a bar along the bottom.
 *
 * The friendly system: bold brand-blue headings with a green accent word, 12–16px corners, soft blue shadows, and
 * one solid blue band (the enquiry) for the moment that matters.
 */

.wp-site-blocks > .maxkan-property {
	margin-block: 0;
}

/* A step above site.css's `.single-property h2`, and below a block's own two-class heading rule. */
body.single-property h2 {
	margin: 0;
	font-size: var(--maxkan-title);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--brand);
}

/* Every part below spaces itself; the flow layout's own margins would add to that. */
.wp-site-blocks > .maxkan-property > *,
.maxkan-property .maxkan-property__head > *,
.maxkan-property .maxkan-property__title-row > *,
.maxkan-property .maxkan-property__title > *,
.maxkan-property .maxkan-property__main > *,
.maxkan-property .maxkan-property__body > *,
.maxkan-property .maxkan-property__about > *,
.maxkan-property .maxkan-property__visit > *,
.maxkan-property .maxkan-property__visit-actions > * {
	margin-block: 0;
}

/* ---------------------------------------------------------------- Trail, labels, title, place, share */

.maxkan-property__head {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 28px var(--maxkan-gutter) 0;
}

.maxkan-property__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
}

.maxkan-property__title {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.maxkan-property__title .wp-block-post-title {
	font-size: var(--maxkan-display);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--brand);
}

.maxkan-property__share .maxkan-details__share {
	height: 44px;
}

/* ---------------------------------------------------------------- Photos */

.maxkan-property .maxkan-property__gallery {
	margin: 0;
	padding: 24px var(--maxkan-gutter) 0;
}

/* ---------------------------------------------------------------- Reading column and price card */

.maxkan-property__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	align-items: start;
	gap: 56px;
	padding: 40px var(--maxkan-gutter) 120px;
}

.maxkan-property__main {
	display: flex;
	flex-direction: column;
	gap: 48px;
	min-width: 0;
}

.maxkan-property__about {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.maxkan-property__about .wp-block-post-content {
	font-size: 17px;
	line-height: 1.7;
	color: var(--wp--preset--color--slate);
}

.maxkan-property__about .wp-block-post-content > * {
	margin-block: 0;
}

.maxkan-property__about .wp-block-post-content > * + * {
	margin-block-start: 1em;
}

/* ---------------------------------------------------------------- In between: no room for the card beside */

@media (min-width: 782px) and (max-width: 1099px) {
	.maxkan-property__body {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 32px;
	}

	.maxkan-property .maxkan-plans__options,
	.maxkan-property .maxkan-details__cards {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------- Phone */

@media (max-width: 781px) {
	/* The first photo is the top of the page, with its own way back; the shared header is not drawn. */
	.maxkan-header {
		display: none;
	}

	.wp-site-blocks > .maxkan-property {
		display: flex;
		flex-direction: column;
	}

	.maxkan-property .maxkan-property__gallery {
		order: -1;
		padding: 0;
	}

	.maxkan-property__head {
		padding: 20px 16px 0;
	}

	.maxkan-property__head .maxkan-crumbs,
	.maxkan-property__share {
		display: none;
	}

	body.single-property h2 {
		font-size: 26px;
	}

	.maxkan-property__title .wp-block-post-title {
		font-size: 32px;
	}

	.maxkan-property__body {
		display: block;
		padding: 0;
	}

	.maxkan-property__main {
		gap: 0;
	}

	.maxkan-property .maxkan-property__facts {
		padding: 18px 16px 20px;
	}

	/* The phone board goes from the facts straight to the plans. */
	.maxkan-property__about {
		display: none;
	}

	.maxkan-property .maxkan-property__plans {
		padding: 8px 16px 24px;
	}

	/* The sizes and prices keep the same 16px margin as the facts above them. */
	.maxkan-property .maxkan-property__units {
		padding: 8px 16px 24px;
	}

	.maxkan-property__visit {
		display: flex;
		flex-direction: column;
		gap: 12px;
		padding: 24px 16px;
	}

	.maxkan-property__visit > p {
		font-size: 15px;
		line-height: 1.5;
		color: var(--wp--preset--color--slate);
	}

	.maxkan-property__visit-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.maxkan-property__visit-actions .maxkan-action-button {
		padding: 0 10px;
	}

	.maxkan-property .maxkan-property__ground {
		padding: 24px 16px;
	}

	.maxkan-property .maxkan-property__media {
		padding: 0 16px 24px;
	}

	.maxkan-property .maxkan-property__similar {
		padding: 24px 16px 32px;
		background: var(--wp--preset--color--mist);
	}
}
