body.single-trg_property main > .wp-block-group > .wp-block-post-title,
body.single-trg_property main .wp-block-post-title,
body.single-trg_property main .wp-block-post-author,
body.single-trg_property main .wp-block-post-author-name,
body.single-trg_property main .wp-block-post-date,
body.single-trg_property main .wp-block-post-terms,
body.single-trg_property main > .wp-block-group > .wp-block-spacer:first-child {
	display: none !important;
}

body.single-trg_property main .wp-block-post-content {
	grid-column: 1 / -1 !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	overflow: visible !important;
}

/* Twenty Twenty-Five can leave the plain-language byline wrapper behind
 * after its individual author and taxonomy blocks are hidden. Restrict
 * this to metadata rows whose direct child is one of those blocks. */
body.single-trg_property main .wp-block-group:has(> .wp-block-post-author),
body.single-trg_property main .wp-block-group:has(> .wp-block-post-author-name),
body.single-trg_property main .wp-block-group:has(> .wp-block-post-date),
body.single-trg_property main .wp-block-group:has(> .wp-block-post-terms) {
	display: none !important;
}

body.single-trg_property main .wp-block-post-author__name,
body.single-trg_property main .wp-block-post-author__bio,
body.single-trg_property main .wp-block-post-author__avatar {
	display: none !important;
}

.trg-property-page {
	--trg-ink: #102a2d;
	--trg-muted: #647276;
	--trg-line: #dbe3e3;
	--trg-soft: #f3f7f6;
	--trg-accent: #087f79;
	--trg-accent-dark: #05625e;
	box-sizing: border-box;
	color: var(--trg-ink);
	font-family: inherit;
	position: relative;
	width: min(1280px, calc(100vw - 32px));
	max-width: 1280px;
	margin: 0 auto 72px;
}

.trg-property-page *,
.trg-property-page *::before,
.trg-property-page *::after {
	box-sizing: border-box;
}

.trg-property-page__inner {
	width: 100%;
}

.trg-property-page__topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.trg-property-page__back {
	color: var(--trg-muted);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.trg-property-page__back:hover {
	color: var(--trg-accent);
}

.trg-property-page__status {
	background: #dff4ef;
	border: 1px solid #b8e4da;
	border-radius: 999px;
	color: #0a655f;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
	padding: 7px 12px;
	text-transform: uppercase;
}

.trg-property-page__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 32px;
	margin-bottom: 32px;
}

.trg-property-page__eyebrow {
	color: var(--trg-accent);
	font-size: 13px;
	font-weight: 750;
	letter-spacing: .08em;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.trg-property-page__title {
	font-size: clamp(36px, 5vw, 64px);
	font-weight: 650;
	letter-spacing: -.045em;
	line-height: 1.02;
	margin: 0;
	max-width: 900px;
}

.trg-property-page__address {
	color: var(--trg-muted);
	font-size: 18px;
	margin: 14px 0 0;
}

.trg-property-page__price {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 700;
	letter-spacing: -.035em;
	line-height: 1;
	margin: 0;
	white-space: nowrap;
}

.trg-property-gallery {
	background: var(--trg-soft);
	border-radius: 20px;
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
	height: min(64vw, 650px);
	overflow: hidden;
}

.trg-property-gallery--single {
	grid-template-columns: minmax(0, 1fr);
}

.trg-property-gallery__primary,
.trg-property-gallery__thumbs,
.trg-property-gallery__thumbs img {
	min-height: 0;
}

.trg-property-gallery__primary img,
.trg-property-gallery__thumbs img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.trg-property-gallery__thumbs {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
}

.trg-property-gallery--empty {
	align-items: center;
	display: flex;
	height: 420px;
	justify-content: center;
	color: var(--trg-muted);
}

.trg-property-facts {
	background: #fff;
	border: 1px solid var(--trg-line);
	border-radius: 18px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	margin-top: 22px;
	overflow: hidden;
}

.trg-property-fact {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 3px;
	justify-content: center;
	min-height: 96px;
	padding: 18px;
	position: relative;
	text-align: center;
}

.trg-property-fact:not(:last-child)::after {
	background: var(--trg-line);
	content: "";
	position: absolute;
	right: 0;
	top: 24px;
	bottom: 24px;
	width: 1px;
}

.trg-property-fact strong {
	font-size: 22px;
	font-weight: 700;
}

.trg-property-fact span {
	color: var(--trg-muted);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.trg-property-page__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: clamp(36px, 6vw, 80px);
	margin-top: 54px;
}

.trg-property-section h2,
.trg-property-contact-card h2 {
	font-size: 28px;
	letter-spacing: -.025em;
	line-height: 1.15;
	margin: 0 0 18px;
}

.trg-property-page__description {
	color: #324549;
	font-size: 17px;
	line-height: 1.75;
}

.trg-property-page__description > :first-child {
	margin-top: 0;
}

.trg-property-contact-card {
	background: var(--trg-soft);
	border: 1px solid var(--trg-line);
	border-radius: 20px;
	padding: 28px;
	position: sticky;
	top: 32px;
}

.trg-property-contact-card__label {
	color: var(--trg-accent);
	font-size: 13px;
	font-weight: 750;
	letter-spacing: .07em;
	margin: 0 0 9px;
	text-transform: uppercase;
}

.trg-property-contact-card > p:not(.trg-property-contact-card__label):not(.trg-property-contact-card__id) {
	color: var(--trg-muted);
	line-height: 1.6;
}

.trg-property-contact-card__button {
	background: var(--trg-accent);
	border-radius: 10px;
	color: #fff;
	display: block;
	font-weight: 700;
	margin-top: 22px;
	padding: 14px 18px;
	text-align: center;
	text-decoration: none;
}

.trg-property-contact-card__button:hover {
	background: var(--trg-accent-dark);
	color: #fff;
}

.trg-property-contact-card__id {
	border-top: 1px solid var(--trg-line);
	color: var(--trg-muted);
	font-size: 12px;
	margin: 24px 0 0;
	padding-top: 18px;
}

@media (max-width: 900px) {
	.trg-property-page__header,
	.trg-property-page__body {
		grid-template-columns: 1fr;
	}

	.trg-property-page__price {
		margin-top: -12px;
	}

	.trg-property-gallery {
		grid-template-columns: 1fr;
		height: auto;
	}

	.trg-property-gallery__primary {
		aspect-ratio: 4 / 3;
	}

	.trg-property-gallery__thumbs {
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: none;
	}

	.trg-property-gallery__thumbs img {
		aspect-ratio: 1 / 1;
	}

	.trg-property-contact-card {
		position: static;
	}
}

@media (max-width: 600px) {
	.trg-property-page {
		width: min(100% - 24px, 1280px);
		margin-bottom: 48px;
	}

	.trg-property-page__topline {
		margin-bottom: 18px;
	}

	.trg-property-page__title {
		font-size: 38px;
	}

	.trg-property-page__address {
		font-size: 16px;
	}

	.trg-property-gallery {
		border-radius: 14px;
	}

	.trg-property-gallery__thumbs {
		display: none;
	}

	.trg-property-facts {
		grid-template-columns: repeat(2, 1fr);
	}

	.trg-property-fact:nth-child(2n)::after,
	.trg-property-fact:last-child::after {
		display: none;
	}

	.trg-property-page__body {
		margin-top: 38px;
	}
}

/* 0.6.1 gallery hardening: keep the primary photo and four previews in a
 * controlled grid even when the parent theme applies generic image styles. */
body.single-trg_property .trg-property-gallery {
	align-items: stretch;
}

body.single-trg_property .trg-property-gallery__primary,
body.single-trg_property .trg-property-gallery__thumbs {
	height: 100%;
	width: 100%;
}

body.single-trg_property .trg-property-gallery__thumbs {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
}

body.single-trg_property .trg-property-gallery img {
	border: 0;
	margin: 0 !important;
	max-width: none !important;
}

@media (max-width: 900px) {
	body.single-trg_property .trg-property-gallery__thumbs {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		grid-template-rows: 1fr !important;
	}
}

@media (max-width: 600px) {
	body.single-trg_property .trg-property-gallery__thumbs {
		display: none !important;
	}
}

/* ============================================================
 * 0.7.2 complete remote-photo gallery
 * ============================================================ */
.trg-property-gallery {
	position: relative;
}

.trg-property-gallery__image-button {
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	cursor: zoom-in;
	display: block;
	font: inherit;
	height: 100%;
	margin: 0;
	min-height: 0;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

.trg-property-gallery__image-button img {
	transition: transform 220ms ease;
}

.trg-property-gallery__image-button:hover img {
	transform: scale(1.015);
}

.trg-property-gallery__image-button:focus-visible {
	box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px var(--trg-accent);
	outline: 0;
	z-index: 2;
}

.trg-property-gallery__thumbs > .trg-property-gallery__thumb {
	min-height: 0;
}

.trg-property-gallery__view-all {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, .95);
	border: 1px solid rgba(16, 42, 45, .18);
	border-radius: 999px;
	bottom: 18px;
	box-shadow: 0 8px 24px rgba(16, 42, 45, .16);
	color: var(--trg-ink);
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	line-height: 1;
	margin: 0;
	padding: 12px 16px;
	position: absolute;
	right: 18px;
	z-index: 4;
}

.trg-property-gallery__view-all:hover {
	background: #fff;
}

.trg-property-gallery__view-all:focus-visible {
	outline: 3px solid var(--trg-accent);
	outline-offset: 3px;
}

.trg-property-gallery__view-all-icon {
	font-size: 18px;
	line-height: .8;
}

body.trg-property-lightbox-open {
	overflow: hidden !important;
}

.trg-property-lightbox[hidden] {
	display: none !important;
}

.trg-property-lightbox {
	color: #fff;
	font-family: inherit;
	inset: 0;
	position: fixed;
	z-index: 1000000;
}

.trg-property-lightbox *,
.trg-property-lightbox *::before,
.trg-property-lightbox *::after {
	box-sizing: border-box;
}

.trg-property-lightbox__backdrop {
	background: rgba(5, 14, 16, .96);
	inset: 0;
	position: absolute;
}

.trg-property-lightbox__dialog {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	height: 100%;
	inset: 0;
	min-height: 0;
	padding: 18px 24px 20px;
	position: absolute;
	width: 100%;
}

.trg-property-lightbox__toolbar {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	min-height: 52px;
	padding-bottom: 14px;
}

.trg-property-lightbox__toolbar > div {
	align-items: baseline;
	display: flex;
	gap: 14px;
	min-width: 0;
}

.trg-property-lightbox__title {
	display: block;
	font-size: 16px;
	font-weight: 650;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.trg-property-lightbox__counter {
	color: rgba(255, 255, 255, .72);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.trg-property-lightbox__close,
.trg-property-lightbox__nav {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	justify-content: center;
	margin: 0;
	padding: 0;
}

.trg-property-lightbox__close:hover,
.trg-property-lightbox__nav:hover {
	background: rgba(255, 255, 255, .22);
}

.trg-property-lightbox__close:focus-visible,
.trg-property-lightbox__nav:focus-visible,
.trg-property-lightbox__thumb:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.trg-property-lightbox__close {
	flex: 0 0 44px;
	font-size: 31px;
	height: 44px;
	line-height: 1;
}

.trg-property-lightbox__stage {
	align-items: center;
	display: grid;
	gap: 18px;
	grid-template-columns: 52px minmax(0, 1fr) 52px;
	min-height: 0;
	touch-action: pan-y;
}

.trg-property-lightbox__figure {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	margin: 0;
	min-height: 0;
	overflow: hidden;
	width: 100%;
}

.trg-property-lightbox__figure img {
	display: block;
	height: auto;
	margin: 0 !important;
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	opacity: 1;
	transition: opacity 120ms ease;
	width: auto;
}

.trg-property-lightbox__figure img.is-loading {
	opacity: .48;
}

.trg-property-lightbox__nav {
	font-size: 42px;
	height: 52px;
	line-height: 1;
	width: 52px;
}

.trg-property-lightbox__nav[hidden] {
	visibility: hidden;
}

.trg-property-lightbox__thumbs {
	display: flex;
	gap: 10px;
	margin: 16px auto 0;
	max-width: min(100%, 1120px);
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 4px 8px;
	scrollbar-color: rgba(255, 255, 255, .35) transparent;
	scrollbar-width: thin;
	width: 100%;
}

.trg-property-lightbox__thumb {
	appearance: none;
	background: #162326;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	flex: 0 0 108px;
	height: 74px;
	margin: 0;
	overflow: hidden;
	padding: 0;
}

.trg-property-lightbox__thumb img {
	display: block;
	height: 100%;
	margin: 0 !important;
	object-fit: cover;
	opacity: .62;
	transition: opacity 140ms ease;
	width: 100%;
}

.trg-property-lightbox__thumb:hover img,
.trg-property-lightbox__thumb.is-current img {
	opacity: 1;
}

.trg-property-lightbox__thumb.is-current {
	border-color: #fff;
}

@media (max-width: 900px) {
	.trg-property-gallery__thumbs > .trg-property-gallery__thumb {
		aspect-ratio: 1 / 1;
	}

	.trg-property-lightbox__dialog {
		padding: 12px 14px 14px;
	}

	.trg-property-lightbox__stage {
		gap: 8px;
		grid-template-columns: 44px minmax(0, 1fr) 44px;
	}

	.trg-property-lightbox__nav {
		font-size: 34px;
		height: 44px;
		width: 44px;
	}
}

@media (max-width: 600px) {
	.trg-property-gallery__view-all {
		bottom: 12px;
		font-size: 13px;
		padding: 11px 14px;
		right: 12px;
	}

	.trg-property-lightbox__dialog {
		grid-template-rows: auto minmax(0, 1fr) 82px;
		padding: 8px 8px 10px;
	}

	.trg-property-lightbox__toolbar {
		min-height: 48px;
		padding: 0 4px 8px;
	}

	.trg-property-lightbox__toolbar > div {
		display: block;
		min-width: 0;
	}

	.trg-property-lightbox__title {
		font-size: 14px;
		max-width: calc(100vw - 80px);
	}

	.trg-property-lightbox__counter {
		display: block;
		font-size: 12px;
		margin-top: 2px;
	}

	.trg-property-lightbox__close {
		flex-basis: 40px;
		height: 40px;
		width: 40px;
	}

	.trg-property-lightbox__stage {
		display: block;
		position: relative;
	}

	.trg-property-lightbox__figure {
		height: 100%;
	}

	.trg-property-lightbox__nav {
		background: rgba(0, 0, 0, .5);
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		z-index: 2;
	}

	.trg-property-lightbox__nav--previous {
		left: 8px;
	}

	.trg-property-lightbox__nav--next {
		right: 8px;
	}

	.trg-property-lightbox__thumbs {
		align-self: end;
		gap: 8px;
		margin-top: 8px;
		padding: 3px 3px 6px;
	}

	.trg-property-lightbox__thumb {
		border-radius: 6px;
		flex-basis: 84px;
		height: 62px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.trg-property-gallery__image-button img,
	.trg-property-lightbox__figure img,
	.trg-property-lightbox__thumb img {
		transition: none;
	}
}
