/**
 * Property. The gallery runs edge to edge with the middle photo centred and its neighbours cut by
 * the viewport; everything else sits in the 1110 column.
 */

.as-property {
	display: flex;
	flex-direction: column;
	gap: 56px;
	padding: 196px 0 80px;
	color: var(--as-page-ink);
}

.as-property__header {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
}

.as-property__title {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	width: 100%;
	max-width: 1174px;
	padding: 0 32px;
}

.as-property__address {
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-self: stretch;
	text-align: center;
}

.as-property__street,
.as-property__suburb {
	margin: 0;
}

.as-property__street {
	font-size: 40px;
	font-weight: 400;
	line-height: 1.35;
	color: #020816;
}

.as-property__suburb {
	font-size: 18px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

/* A strip that can be swiped; property.js opens it on the middle photo, as the design shows. */
.as-property__gallery {
	display: flex;
	gap: 8px;
	justify-content: safe center;
	width: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.as-property__gallery::-webkit-scrollbar {
	display: none;
}

.as-property__gallery:focus-visible {
	outline: 2px solid var(--as-page-ink);
	outline-offset: 2px;
}

.as-property {
	--as-photo-w: 873px;
	--as-photo-h: 534px;
}

.as-property__photo {
	flex: 0 0 var(--as-photo-w);
	height: var(--as-photo-h);
	margin: 0;
	scroll-snap-align: center;
}

.as-property__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Each photo opens the viewer (assets/js/lightbox.js) on itself. */
.as-property__open {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.as-property__open:focus-visible {
	outline: 2px solid var(--as-white);
	outline-offset: -4px;
}

.as-property__media {
	position: relative;
	width: 100%;
}

/* "View N photos": a dark glass pill 16px above the bottom of the photos, centred on the page. */
.as-property__more {
	position: absolute;
	bottom: 16px;
	left: 50%;
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: rgba(8, 12, 22, 0.72);
	font: inherit;
	font-size: 13px;
	line-height: 20px;
	letter-spacing: 0.02em;
	white-space: nowrap;
	color: var(--as-white);
	cursor: pointer;
	transform: translateX(-50%);
	transition: background-color 0.2s ease;
}

.as-property__more:hover {
	background: rgba(8, 12, 22, 0.88);
}

.as-property__more:focus-visible {
	outline: 2px solid var(--as-white);
	outline-offset: 2px;
}

.as-property__more-icon {
	flex: 0 0 auto;
}

.as-property__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
	padding: 0 20px;
}

.as-property__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 168px;
	padding: 16px 24px;
	border: 0;
	border-radius: 30px;
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--as-page-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--as-page-ink);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.as-property__action:hover,
.as-property__action[aria-pressed="true"] {
	background: var(--as-page-ink);
	color: #fff;
}

.as-property__action:focus-visible {
	outline: 2px solid var(--as-page-ink);
	outline-offset: 3px;
}

.as-property__body {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
	max-width: 1174px;
	margin: 0 auto;
	padding: 0 32px;
}

.as-property__details {
	display: flex;
	flex: 0 0 723px;
	flex-direction: column;
	gap: 40px;
	min-width: 0;
}

.as-property__facts {
	display: flex;
	gap: 40px;
	margin: 0;
}

.as-property__fact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
	padding: 12px 0;
}

.as-property__fact dt {
	font-size: 14px;
	line-height: 1.45;
	letter-spacing: -0.01em;
}

.as-property__fact--area dt {
	line-height: 1.25;
	letter-spacing: normal;
}

.as-property__fact dd {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
}

.as-property__block {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.as-property__heading {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.as-property__highlight,
.as-property__copy p,
.as-property__closing,
.as-property__list {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
}

.as-property__highlight,
.as-property__copy p,
.as-property__closing {
	letter-spacing: -0.01em;
}

.as-property__highlight {
	color: var(--as-page-marker);
	text-transform: uppercase;
}

.as-property__copy {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.as-property__list {
	padding: 0;
	list-style: none;
}

.as-property__list li {
	position: relative;
	padding-left: 1.256em;
}

.as-property__list li span {
	display: block;
}

.as-property__list li::before {
	content: "•";
	position: absolute;
	left: 0.35em;
}

.as-property__list--caps {
	text-transform: uppercase;
}

.as-property__map {
	height: 550px;
	overflow: hidden;
	border-radius: 4px;
	background: #e9e9e9;
}

.as-property__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.as-property__agents {
	display: flex;
	flex: 0 0 276px;
	flex-direction: column;
	gap: 24px;
}

.as-agent {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 4px;
	background: #fff;
}

.as-agent__photo {
	display: block;
	width: 100%;
	height: 325px;
	object-fit: cover;
}

.as-agent__body {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 8px 0 16px;
}

.as-agent__head {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.as-agent__name {
	align-self: stretch;
}

.as-agent__title,
.as-agent__role {
	margin: 0;
	line-height: 1.25;
}

.as-agent__title {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.as-agent__role {
	font-size: 14px;
	color: var(--as-page-muted);
}

.as-agent__contact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.as-agent__contact li {
	display: flex;
}

.as-agent__contact a {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--as-page-marker);
	text-decoration: none;
}

.as-agent__contact a:hover span,
.as-agent__contact a:focus-visible span {
	text-decoration: underline;
}

.as-agent__icon {
	flex: 0 0 auto;
}

@media (max-width: 1199px) {
	.as-property {
		--as-photo-w: 640px;
		--as-photo-h: 392px;

		padding: 160px 0 72px;
	}

	.as-property__body {
		flex-direction: column;
		gap: 48px;
		align-items: stretch;
	}

	.as-property__details {
		flex: 0 0 auto;
	}

	.as-property__map {
		height: 420px;
	}

	/*
	 * Two agents side by side. The design's grid gives the heading a row as tall as a card (rows
	 * are 1fr), leaving a 463px hole under "Contact Us"; here the heading's row fits the heading.
	 */
	.as-property__agents {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 16px;
	}

	.as-property__agents > .as-property__heading {
		grid-column: 1 / -1;
	}
}

@media (max-width: 809px) {
	.as-property {
		--as-photo-w: min(360px, calc(100vw - 30px));
		--as-photo-h: 220px;

		gap: 40px;
		padding: 128px 0 64px;
	}

	.as-property__title {
		padding: 0 20px;
	}

	.as-property__street {
		font-size: 30px;
	}

	.as-property__suburb {
		font-size: 15px;
	}

	.as-property__actions {
		gap: 10px;
	}

	.as-property__action {
		width: auto;
		padding: 12px 20px;
	}

	.as-property__body {
		gap: 40px;
		padding: 0 20px;
	}

	.as-property__details {
		gap: 32px;
	}

	.as-property__map {
		height: 300px;
	}

	.as-property__agents {
		display: flex;
	}
}

/* Enquiry modal styles: assets/css/enquiry.css (enqueued globally). */

