/* Page 7.1 — Single property */

.geocity-real-estate-single-page {
	background: var(--geocity-white, #fff);
}

.geocity-re-single-hero {
	position: relative;
	min-height: 420px;
	background-size: cover;
	background-position: center;
	color: var(--geocity-white, #fff);
}

.geocity-re-single-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

.geocity-re-single-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr minmax(280px, 360px);
	gap: 2rem;
	align-items: center;
	padding: 3rem 0;
}

.geocity-re-single-hero__address {
	margin: 0;
	font-family: var(--wp--preset--font-family--playfair, Georgia, serif);
	font-size: clamp(2rem, 4vw, 2.75rem);
}

.geocity-re-single-hero__city {
	margin: 0.35rem 0 0;
	font-size: 1rem;
	opacity: 0.9;
}

.geocity-re-single-hero__aside {
	padding: 1.25rem;
	background: rgba(255, 255, 255, 0.95);
	color: var(--geocity-color-text, #1a1a1a);
	border-radius: 4px;
}

.geocity-re-single-hero__aside .geocity-re-single-hero__price {
	margin: 0 0 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--geocity-color-border, #e0e0e0);
	font-size: 1.35rem;
	font-weight: 700;
	color: #9a7b1a;
}

.geocity-re-single-hero__specs {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.geocity-re-single-hero__specs th,
.geocity-re-single-hero__specs td {
	padding: 0.35rem 0;
	text-align: left;
	vertical-align: top;
}

.geocity-re-single-hero__specs th {
	width: 42%;
	font-weight: 600;
}

.geocity-re-single-hero__energy {
	margin: 0.75rem 0 0;
}

.geocity-re-single-hero__cta {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--geocity-color-border, #e0e0e0);
}

.geocity-re-cta-btn--hero {
	width: 100%;
}

.geocity-re-single-hero__energy-badge {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	background: #2d8a4e;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 2px;
}

.geocity-re-single-cta {
	padding: 2.5rem 0;
	background: #f0f2f2;
}

.geocity-re-single-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 2rem 2.5rem;
	background: #f0f2f2;
	border-radius: 4px;
}

.geocity-re-single-cta__copy {
	flex: 1 1 280px;
	max-width: 520px;
}

.geocity-re-single-cta__title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--geocity-color-text, #1a1a1a);
}

.geocity-re-single-cta__text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--geocity-color-text, #1a1a1a);
}

.geocity-re-single-cta__actions {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 0.75rem;
	min-width: min(100%, 320px);
}

.geocity-re-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0.85rem 1.5rem;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	transition:
		color 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease;
}

.geocity-re-cta-btn__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
}

.geocity-re-cta-btn__icon svg {
	display: block;
}

.geocity-re-cta-btn--buyers {
	color: var(--geocity-color-on-primary, #fff);
	background: var(--geocity-color-button, #e30613);
	border-color: var(--geocity-color-button, #e30613);
}

.geocity-re-cta-btn--buyers:hover,
.geocity-re-cta-btn--buyers:focus-visible {
	color: var(--geocity-color-on-primary, #fff);
	background: var(--geocity-color-button-hover, #c00510);
	border-color: var(--geocity-color-button-hover, #c00510);
}

.geocity-re-cta-btn--sales {
	color: var(--geocity-color-text, #1a1a1a);
	background: var(--geocity-white, #fff);
	border-color: var(--geocity-color-text, #1a1a1a);
}

.geocity-re-cta-btn--sales:hover,
.geocity-re-cta-btn--sales:focus-visible {
	color: var(--geocity-color-text, #1a1a1a);
	background: #f8f8f8;
	border-color: var(--geocity-color-text, #1a1a1a);
}

.geocity-re-single-body {
	padding: 3rem 0;
}

.geocity-re-single-body__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
}

.geocity-re-single-body__description h2,
.geocity-re-single-body__gallery-col h2 {
	margin: 0 0 1rem;
	font-size: 1.5rem;
}

.geocity-re-single-map-stats {
	padding: 3rem 0;
	background: #fafafa;
}

.geocity-re-single-map-stats__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
}

.geocity-re-single-map-stats__heading {
	margin: 0 0 1rem;
	font-size: 1.25rem;
}

/* Beat geocity-map.css height:100% / min-height:inherit (loads later). */
.geocity-re-single-map-stats__map.geocity-map__canvas {
	position: relative;
	z-index: 0;
	width: 100%;
	min-height: 320px;
	height: 320px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--geocity-color-surface-alt, #e8e8e8);
}

.geocity-re-single-map-stats__map.geocity-map__canvas.leaflet-container {
	min-height: 320px;
	height: 420px;
}

.geocity-re-single-map-stats__stats-col {
	padding: 1.5rem;
	background: var(--geocity-white, #fff);
	border: 1px solid var(--geocity-color-border, #d9d9d9);
	border-radius: 4px;
}

.geocity-re-single-map-stats__meta-row {
	margin-bottom: 1rem;
}

.geocity-re-single-map-stats__meta-row dt {
	font-weight: 600;
	font-size: 0.875rem;
}

.geocity-re-single-map-stats__meta-row dd {
	margin: 0.25rem 0 0;
	font-size: 0.9375rem;
}

.geocity-re-single-map-stats__progress {
	height: 8px;
	margin-top: 0.5rem;
	background: #e8e8e8;
	border-radius: 4px;
	overflow: hidden;
}

.geocity-re-single-map-stats__progress span {
	display: block;
	height: 100%;
	background: var(--geocity-color-primary, #e30613);
}

.geocity-re-single-map-stats__subheading {
	margin: 1.25rem 0 0.5rem;
	font-size: 1rem;
}

.geocity-re-single-map-stats__accessibility {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.geocity-re-single-map-stats__accessibility th,
.geocity-re-single-map-stats__accessibility td {
	padding: 0.35rem 0;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.geocity-re-single-map-stats__accessibility tr:last-child td {
    border-bottom: 0;
}

.geocity-re-similar {
	padding: 3rem 0;
	background: #f7f7f7;
}

.geocity-re-similar__title {
	margin: 0 0 1.5rem;
	font-size: 1.75rem;
}

.geocity-re-similar__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.25rem;
}

.geocity-re-similar-card {
	margin: 0;
	min-width: 0;
}

.geocity-re-similar-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.geocity-re-similar-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 4px;
	background: #e8e8e8;
}

.geocity-re-similar-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.geocity-re-similar-card__image--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
}

.geocity-re-similar-card__title {
	margin: 0.65rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
}

.geocity-re-similar-card__link:hover .geocity-re-similar-card__title,
.geocity-re-similar-card__link:focus-visible .geocity-re-similar-card__title {
	color: var(--geocity-color-primary, #e30613);
}

@media (max-width: 1100px) {
	.geocity-re-similar__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.geocity-re-single-hero__inner,
	.geocity-re-single-body__row,
	.geocity-re-single-map-stats__grid {
		grid-template-columns: 1fr;
	}

	.geocity-re-single-cta__inner {
		flex-direction: column;
		align-items: stretch;
		padding: 1.5rem;
	}

	.geocity-re-single-cta__copy {
		max-width: none;
	}

	.geocity-re-single-cta__actions {
		min-width: 0;
		width: 100%;
	}

	.geocity-re-similar__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.geocity-re-similar__grid {
		grid-template-columns: 1fr;
	}
}
