.portal-listing-preview .site-content {
	padding: clamp(20px, 3.4vw, 48px) 0 68px;
	background: #f6f7f9;
	font-family: var(--portal-form-font);
}
.portal-listing-preview .site-content > .container {
	width: min(100% - 48px, 1216px);
	max-width: none;
	padding-inline: 0;
}
.portal-listing-preview .hp-listing--view-page {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(275px, .43fr);
	align-items: start;
	column-gap: 30px;
	margin: 0;
}
.portal-listing-preview .hp-listing--view-page > :is(.hp-page__content, .hp-page__sidebar) {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 0;
}
.portal-preview-header { min-width: 0; }

@media (min-width: 768px) {
	.portal-preview-header { grid-area: 1 / 1; }
	.portal-listing-preview .hp-listing--view-page > .hp-page__content { grid-area: 2 / 1; }
	.portal-listing-preview .hp-listing--view-page > .hp-page__sidebar { grid-area: 2 / 2; }
}
@media (min-width: 768px) and (min-height: 560px) {
	/* Keep the theme wrapper clipped without making it a scroll container. */
	.portal-listing-preview .site-container { overflow: clip; }
	.portal-listing-preview .hp-listing--view-page > .hp-page__sidebar {
		position: sticky;
		top: 32px;
	}
	.portal-listing-preview.admin-bar .hp-listing--view-page > .hp-page__sidebar {
		top: calc(32px + var(--wp-admin--admin-bar--height, 32px));
	}
}

.portal-preview-breadcrumb { margin: 0 0 15px; }
.portal-preview-breadcrumb a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #47566f;
	font-size: .86rem;
	font-weight: 650;
}
.portal-preview-breadcrumb svg { width: 15px; height: 15px; }
.portal-preview-labels, .portal-preview-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 9px;
}
.portal-preview-labels .hp-listing__category { margin: 0; }
.portal-preview-labels .hp-listing__category a {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 7px;
	background: #fff;
	color: #344966;
	font-size: .74rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: normal;
}
.portal-preview-badge {
	display: inline-block;
	width: fit-content;
	padding: 5px 10px;
	border-radius: 7px;
	background: #e9eef5;
	color: #344966;
	font-size: .74rem;
	font-weight: 700;
}
.portal-listing-preview .hp-listing--view-page .hp-listing__title {
	margin: 8px 0 2px;
	color: var(--portal-navy);
	font-family: inherit;
	font-weight: 780;
	font-size: clamp(2rem, 4.15vw, 3.6rem);
	letter-spacing: -.055em;
	line-height: 1.04;
}
.portal-preview-meta { justify-content: space-between; margin: 10px 0 13px; }
.portal-listing-preview .hp-listing__details--primary {
	margin: 0;
	color: #52627a;
}
.portal-listing-preview .hp-listing__details--primary .hp-meta {
	color: inherit;
	font-size: .82rem;
	letter-spacing: 0;
	text-transform: none;
}
.portal-listing-preview .hp-page__topbar {
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	justify-content: flex-end;
}
.portal-listing-preview .hp-page__topbar:has(.hp-menu__item + .hp-menu__item) { justify-content: space-between; }
.portal-listing-preview .hp-menu--listing-manage:not(:has(.hp-menu__item + .hp-menu__item)) { display: none; }
.portal-listing-preview .hp-listing__action--favorite {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #384961;
	font-size: .84rem;
	font-weight: 650;
}
.portal-listing-preview .hp-listing__action--favorite i { margin: 0; color: #617089; }
.portal-listing-preview .hp-listing__action--favorite[data-state="active"] i { color: #ba3e24; }

.portal-preview-gallery { margin: 0 0 24px; }
.portal-preview-stage {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 600px;
	border-radius: 18px;
	background: #1b2632;
}
.portal-preview-enlarge { display: block; width: 100%; height: 100%; }
.portal-preview-main-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.portal-preview-main-image.portal-preview-cover {
	object-fit: cover;
	object-position: center 60%;
}
.portal-preview-icon {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--portal-navy);
	box-shadow: 0 2px 10px rgb(0 0 0 / 22%);
}
.portal-preview-icon[hidden] { display: none; }
.portal-preview-icon svg { width: 20px; height: 20px; }
.portal-preview-stage .portal-preview-expand,
.portal-preview-stage .portal-preview-count,
.portal-preview-stage .portal-preview-prev,
.portal-preview-stage .portal-preview-next { position: absolute; }
.portal-preview-expand { right: 13px; top: 13px; pointer-events: none; }
.portal-preview-prev, .portal-preview-next { position: absolute; top: 50%; transform: translateY(-50%); }
.portal-preview-prev { left: 13px; }
.portal-preview-next { right: 13px; }
.portal-preview-count {
	right: 13px;
	bottom: 13px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgb(12 23 38 / 90%);
	color: #fff;
	font-size: .78rem;
	font-weight: 690;
}
.portal-preview-seller,
.portal-preview-specs,
.portal-preview-description {
	padding: clamp(16px, 2.3vw, 26px);
	border: 1px solid #e0e6ee;
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 3px 12px rgb(16 31 59 / 5%);
}
.portal-preview-seller { padding: clamp(16px, 2vw, 25px); }
.portal-preview-seller .hp-listing__attributes--primary {
	display: block;
	margin: 0;
	padding: 0 0 16px;
	border: none;
	border-bottom: 1px solid #e4e9f0;
	border-radius: 0;
	color: var(--portal-navy);
	box-shadow: none;
	text-align: left;
}
.portal-preview-seller .hp-listing__attributes--primary .portal-price {
	color: var(--portal-navy);
	font-size: clamp(1.8rem, 3.15vw, 2.65rem);
	font-weight: 800;
	white-space: nowrap;
	letter-spacing: -.055em;
	line-height: 1.15;
}
.portal-preview-seller .hp-listing__attributes--primary .hp-listing__attribute { text-align: left; }
.portal-preview-seller .hp-listing__actions--primary {
	display: block;
	margin: 0;
	padding: 0;
	border: none;
	box-shadow: none;
}
.portal-preview-contact-heading,
.portal-preview-specs h2, .portal-preview-description h2,
.portal-preview-specs h3, .portal-preview-description h3 {
	margin: 0 0 13px;
	color: var(--portal-navy);
	font-family: inherit;
	font-size: 1.25rem;
	font-weight: 760;
	letter-spacing: -.025em;
}
.portal-preview-seller .portal-preview-contact-heading { margin: 16px 0 12px; font-size: 1rem; }
.portal-preview-seller .portal-listing-phone { margin: 0; }
.portal-preview-seller .hp-listing__action--message,
.portal-preview-seller .portal-phone-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 46px;
	margin: 0 0 9px;
	padding: 9px 12px;
	border: 1px solid transparent;
	border-radius: 9px;
	font-size: .89rem;
	font-weight: 720;
	line-height: 1.2;
}
.portal-preview-seller .hp-listing__action--message { background: #c64100; color: #fff; }
.portal-preview-seller .hp-listing__action--message:hover { background: #a93700; color: #fff; }
.portal-preview-seller .portal-phone-toggle { border-color: #d7e0ec; background: #eff3f8; color: var(--portal-navy); }
.portal-preview-seller .portal-phone-toggle:hover { background: #e3ebf5; color: var(--portal-navy); }
.portal-preview-seller .portal-report-link {
	margin: 16px 0 0;
	padding-top: 12px;
	border-top: 1px solid #e4e9f0;
	text-align: left;
}
.portal-preview-seller .portal-report-link a {
	color: #4c5b72;
	font-size: .79rem;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.portal-preview-specs, .portal-preview-description { margin-bottom: 18px; }
.portal-preview-specs > :is(header, .hp-section__header),
.portal-preview-description > :is(header, .hp-section__header) { margin: 0 0 12px; }
.portal-preview-specs .hp-listing__attributes { margin: 0; }
.portal-preview-specs .hp-listing__attributes > .hp-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 7px;
	margin: 0;
}
.portal-preview-specs .hp-listing__attributes > .hp-row > div {
	max-width: none;
	min-width: 0;
	padding: 9px 12px;
	border-radius: 7px;
	background: #f5f7fb;
	color: #34445e;
	font-size: .89rem;
}
.portal-preview-specs .hp-listing__attribute { margin: 0; }
.portal-preview-specs .portal-detail-attribute-label { display: inline; }
.portal-preview-specs .portal-detail-attribute-label + .hp-icon { display: none; }
.portal-preview-description .hp-listing__description { color: #34445e; font-size: .95rem; }
.portal-preview-description .hp-listing__description p { margin: 0 0 10px; }
.portal-preview-description .hp-listing__description p:last-child { margin-bottom: 0; }

.portal-preview-lightbox {
	max-width: calc(100vw - 24px);
	max-height: calc(100dvh - 24px);
	padding: 0;
	border: 0;
	border-radius: 14px;
}
.portal-preview-lightbox::backdrop { background: rgb(12 23 38 / 76%); }
.portal-preview-lightbox { width: min(980px, 100%); background: #142030; color: #fff; }
.portal-preview-lightbox-image {
	display: block;
	width: 100%;
	height: min(74dvh, 740px);
	object-fit: contain;
}
.portal-preview-lightbox .portal-preview-close { position: absolute; z-index: 1; top: 12px; right: 12px; }
.portal-preview-lightbox-caption { padding: 9px 10px; text-align: center; font-size: .9rem; }
@media (max-width: 767px) {
	.portal-listing-preview .site-content > .container { width: calc(100% - 28px); }
	.portal-listing-preview .hp-listing--view-page { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.portal-listing-preview .hp-listing--view-page > .hp-page__content { display: contents; }
	.portal-listing-preview .hp-listing--view-page > .hp-page__sidebar { order: 1; padding: 0; margin: 0 0 18px; }
	.portal-preview-specs, .portal-preview-description { order: 2; }
	.portal-preview-gallery { margin-bottom: 15px; }
	.portal-preview-stage { border-radius: 12px; }
	.portal-preview-icon { width: 36px; height: 36px; }
	.portal-preview-specs .hp-listing__attributes > .hp-row > div { padding: 8px; }
}
