.repm-property,
.repm-auth,
.repm-property-summary {
	--repm-primary: #9335b6;
	--repm-primary-dark: #6f238b;
	--repm-ink: #160b1c;
	--repm-muted: #5e4868;
	--repm-soft: #f5edf9;
	--repm-line: #ead5f3;
	--repm-white: #fff;
	box-sizing: border-box;
	color: var(--repm-ink);
}

.repm-property *,
.repm-auth *,
.repm-property-summary * {
	box-sizing: border-box;
}

.repm-property {
	display: grid;
	gap: 28px;
	margin: 0 calc(50% - 50vw) 36px;
	max-width: none;
	padding: clamp(20px, 4vw, 56px);
	width: auto;
}

.entry-content[data-ast-blocks-layout] > .repm-property {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: none;
}

.repm-property-home {
	padding-top: 0;
}

.repm-property__hero {
	background: var(--repm-soft);
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
	min-height: 420px;
}

.repm-property__image {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.repm-property__intro {
	align-self: center;
	padding: 36px;
}

.repm-home-hero {
	background: var(--repm-soft);
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
	min-height: 560px;
}

.repm-home-hero__image {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.repm-home-hero__content {
	align-self: center;
	padding: 44px;
}

.repm-home-hero__content h2 {
	font-size: 44px;
	line-height: 1.05;
}

.repm-eyebrow {
	color: var(--repm-primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.repm-property h2,
.repm-auth h2 {
	color: var(--repm-ink);
	font-size: 34px;
	line-height: 1.08;
	margin: 0 0 12px;
}

.repm-property h3,
.repm-auth h3 {
	color: var(--repm-ink);
	font-size: 22px;
	line-height: 1.2;
	margin: 0 0 12px;
}

.repm-price {
	color: var(--repm-primary-dark);
	display: block;
	font-size: 26px;
	line-height: 1.2;
	margin: 0 0 10px;
}

.repm-property__content {
	color: var(--repm-muted);
	font-size: 17px;
	line-height: 1.7;
}

.repm-facts {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin: 0;
}

.repm-facts div {
	background: var(--repm-soft);
	border: 1px solid var(--repm-line);
	padding: 16px;
}

.repm-facts dt {
	color: var(--repm-muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.repm-facts dd {
	font-size: 20px;
	font-weight: 800;
	margin: 4px 0 0;
}

.repm-section,
.repm-realtors,
.repm-realtor,
.repm-auth__panel,
.repm-alert,
.repm-document {
	background: var(--repm-white);
	border: 1px solid var(--repm-line);
}

.repm-section,
.repm-realtors,
.repm-realtor,
.repm-auth__panel {
	padding: 24px;
}

.repm-section__header {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

.repm-section__header a {
	color: var(--repm-primary-dark);
	font-weight: 800;
}

.repm-highlights {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin: 0;
	padding-left: 18px;
}

.repm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.repm-button,
.repm-form button {
	background: var(--repm-primary);
	border: 0;
	color: var(--repm-white);
	cursor: pointer;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	min-height: 44px;
	padding: 12px 18px;
	text-decoration: none;
}

.repm-button:hover,
.repm-button:focus,
.repm-form button:hover,
.repm-form button:focus {
	background: var(--repm-primary-dark);
	color: var(--repm-white);
}

.repm-button--secondary {
	background: var(--repm-soft);
	color: var(--repm-primary-dark);
}

.repm-map iframe {
	aspect-ratio: 16 / 9;
	border: 0;
	width: 100%;
}

.repm-realtor {
	align-items: center;
	display: grid;
	gap: 20px;
	grid-template-columns: 96px minmax(0, 1fr);
}

.repm-realtors {
	display: grid;
	gap: 16px;
}

.repm-realtors__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.repm-realtor img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 96px;
}

.repm-realtor__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
}

.repm-realtor__links a {
	color: var(--repm-primary-dark);
	font-weight: 800;
}

.repm-gallery__section,
.repm-documents__section {
	display: grid;
	gap: 14px;
}

.repm-gallery__grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.repm-gallery__item {
	background: var(--repm-soft);
	cursor: zoom-in;
	margin: 0;
	position: relative;
}

.repm-gallery__item img {
	aspect-ratio: 4 / 3;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.repm-gallery__item:focus {
	box-shadow: 0 0 0 4px rgb(147 53 182 / 24%);
	outline: 0;
}

.repm-gallery-viewer-open {
	overflow: hidden;
}

.repm-gallery-viewer {
	align-items: center;
	display: none;
	inset: 0;
	justify-content: center;
	padding: clamp(16px, 3vw, 42px);
	position: fixed;
	z-index: 99999;
}

.repm-gallery-viewer.is-open {
	display: flex;
}

.repm-gallery-viewer__backdrop {
	background: rgb(10 6 13 / 88%);
	inset: 0;
	position: absolute;
}

.repm-gallery-viewer__dialog {
	align-items: center;
	display: grid;
	gap: 14px;
	grid-template-columns: 56px minmax(0, 1fr) 56px;
	max-height: 92vh;
	max-width: min(1280px, 96vw);
	position: relative;
	width: 100%;
	z-index: 1;
}

.repm-gallery-viewer__image {
	background: #111;
	box-shadow: 0 24px 80px rgb(0 0 0 / 45%);
	display: block;
	grid-column: 2;
	max-height: 78vh;
	object-fit: contain;
	width: 100%;
}

.repm-gallery-viewer__close,
.repm-gallery-viewer__nav {
	align-items: center;
	background: rgb(255 255 255 / 94%);
	border: 0;
	color: var(--repm-ink);
	cursor: pointer;
	display: inline-flex;
	font-size: 36px;
	font-weight: 800;
	height: 52px;
	justify-content: center;
	line-height: 1;
	width: 52px;
}

.repm-gallery-viewer__close:hover,
.repm-gallery-viewer__close:focus,
.repm-gallery-viewer__nav:hover,
.repm-gallery-viewer__nav:focus {
	background: var(--repm-primary);
	color: var(--repm-white);
	outline: 0;
}

.repm-gallery-viewer__close {
	position: absolute;
	right: 0;
	top: 0;
	z-index: 2;
}

.repm-gallery-viewer__nav--prev {
	grid-column: 1;
	grid-row: 1;
}

.repm-gallery-viewer__nav--next {
	grid-column: 3;
	grid-row: 1;
}

.repm-gallery-viewer__meta {
	color: var(--repm-white);
	display: flex;
	gap: 14px;
	grid-column: 2;
	justify-content: space-between;
	line-height: 1.4;
}

.repm-gallery-viewer__caption {
	margin: 0;
}

.repm-gallery-viewer__counter {
	font-weight: 800;
	white-space: nowrap;
}

.repm-gallery__item figcaption {
	color: var(--repm-muted);
	font-size: 14px;
	padding: 10px;
}

.repm-document-list {
	display: grid;
	gap: 10px;
}

.repm-document {
	color: var(--repm-ink);
	display: grid;
	gap: 4px;
	padding: 16px;
	text-decoration: none;
}

.repm-document:hover,
.repm-document:focus {
	border-color: var(--repm-primary);
}

.repm-document span {
	color: var(--repm-muted);
}

.repm-alert {
	padding: 16px;
}

.repm-alert--success {
	background: #f0fff6;
	border-color: #9ed7b4;
}

.repm-auth {
	background: var(--repm-soft);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0 calc(50% - 50vw) 36px;
	max-width: none;
	padding: clamp(20px, 4vw, 56px);
	width: auto;
}

.entry-content[data-ast-blocks-layout] > .repm-auth {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: none;
}

.repm-login-gate {
	grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
	min-height: 520px;
}

.repm-auth__image {
	background-position: center;
	background-size: cover;
	min-height: 360px;
}

.repm-auth__panel {
	align-self: stretch;
	display: grid;
	gap: 18px;
}

.repm-auth__forms {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.repm-form {
	display: grid;
	gap: 13px;
}

.repm-form label {
	display: grid;
	font-size: 14px;
	font-weight: 800;
	gap: 6px;
}

.repm-form input[type="text"],
.repm-form input[type="email"],
.repm-form input[type="password"],
.repm-form textarea {
	background: var(--repm-white);
	border: 1px solid var(--repm-line);
	color: var(--repm-ink);
	font-size: 16px;
	min-height: 46px;
	padding: 10px 12px;
	width: 100%;
}

.repm-form input:focus,
.repm-form textarea:focus {
	border-color: var(--repm-primary);
	box-shadow: 0 0 0 3px rgb(147 53 182 / 16%);
	outline: 0;
}

.repm-check {
	align-items: center;
	display: flex !important;
	font-weight: 600 !important;
	gap: 8px;
}

.repm-property-summary {
	align-items: center;
	background: var(--repm-soft);
	display: grid;
	gap: 18px;
	grid-template-columns: 160px minmax(0, 1fr);
	padding: 18px;
}

.repm-property-summary__image {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

@media (max-width: 760px) {
	.repm-property__hero,
	.repm-home-hero,
	.repm-login-gate,
	.repm-auth__forms,
	.repm-realtor,
	.repm-property-summary {
		grid-template-columns: 1fr;
	}

	.repm-property h2,
	.repm-auth h2 {
		font-size: 28px;
	}

	.repm-property__intro,
	.repm-home-hero__content,
	.repm-section,
	.repm-realtors,
	.repm-realtor,
	.repm-auth__panel {
		padding: 20px;
	}

	.repm-gallery-viewer__dialog {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
	}

	.repm-gallery-viewer__close,
	.repm-gallery-viewer__nav {
		font-size: 30px;
		height: 42px;
		width: 42px;
	}

	.repm-gallery-viewer__meta {
		align-items: flex-start;
		flex-direction: column;
	}
}
