/* PQ1 Listing Showcase — off-market (locked) look, DDRE style.
 * Cards: any Houzez card whose image comes from /pq1-blur/ (PQ1 Off-Market's blurred copies),
 * or that the script marked with .pq1-lk. Single page: body.pq1om-locked-view.pq1om-type-locked.
 * Pure presentation: no data is added; the privacy masking stays in PQ1 Off-Market + the guard.
 */
:root {
	--pq1lk-gold: #aa8453;
	--pq1lk-ink: #2f2e2c;
	--pq1lk-cream: #f4efe7;
	--pq1lk-stone: #ebe5db;
	--pq1lk-red: #b8342b;
	--pq1lk-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

/* ================================================================ *
 * 1. Listing cards (Houzez item-wrap v9 slider + v10 grid, and others)
 * ================================================================ */

.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header,
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header-wrap {
	position: relative;
	overflow: hidden;
	background: var(--pq1lk-ink);
}

/* Smooth, heavy blur. The /pq1-blur/ files are tiny, so without this they look blocky. */
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header img,
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header-wrap img {
	filter: blur(16px) saturate(.9) brightness(.8);
	transform: scale(1.22);
	transition: transform .6s cubic-bezier(.4, 0, .2, 1), filter .6s ease;
	will-change: transform;
}
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])):hover .item-header img,
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])):hover .item-header-wrap img {
	transform: scale(1.3);
	filter: blur(16px) saturate(.9) brightness(.7);
}

/* "OFF MARKET" in the middle of the image */
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header::after,
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header-wrap::after {
	content: "Off Market";
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 6px;
	color: #fff;
	font-family: Lato, "Helvetica Neue", Arial, sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: .2em;
	text-indent: .2em; /* keeps the letter-spaced word optically centred */
	text-transform: uppercase;
	text-shadow: 0 1px 14px rgba(0, 0, 0, .25);
	pointer-events: none;
}
/* Gold rule + small line under it; the small line shows on hover */
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header::before,
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header-wrap::before {
	content: "Private listing \2014  request access";
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 5;
	transform: translate(-50%, 26px);
	padding-top: 12px;
	border-top: 2px solid var(--pq1lk-gold);
	width: max-content;
	max-width: 90%;
	color: rgba(255, 255, 255, 0);
	font-family: Lato, "Helvetica Neue", Arial, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .22em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
	transition: color .35s ease, transform .35s ease;
	/* with the text transparent, only a short centred gold line shows */
	background: linear-gradient(var(--pq1lk-gold), var(--pq1lk-gold)) center top / 44px 2px no-repeat;
	border-top-color: transparent;
}
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])):hover .item-header::before,
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])):hover .item-header-wrap::before {
	color: rgba(255, 255, 255, .92);
	transform: translate(-50%, 30px);
}

/* Clutter that does not belong on a private listing card */
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) :is(
	.slick-arrow, .slick-dots, .item-tools, .labels-wrap, .property-floating-actions,
	.preview_loader, .item-footer, .item-footer-author-tool-wrap, .item-author-wrap,
	.item-buttons-wrap, .property-image-count, .item-address:empty
) {
	display: none !important;
}

/* v10 grid card: one image instead of 1 + 2 */
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header-wrap-right {
	display: none !important;
}
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header-wrap-left {
	flex: 1 1 100% !important;
	max-width: 100% !important;
	width: 100% !important;
}
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header-wrap .item-header::before,
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header-wrap .item-header::after {
	content: none; /* v10 puts the overlay on the wrap, not twice */
}

/* Card text: full title (no "…"), quiet price */
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-title,
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-title a {
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
	display: block;
	-webkit-line-clamp: unset;
	line-height: 1.3 !important;
}
.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-price-text {
	letter-spacing: .04em;
}

/* Narrow images (list view, "More properties" on a listing page) */
.list-view .item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header::after,
.similar-property-wrap .item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header::after {
	font-size: 17px;
}
.list-view .item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header::before,
.similar-property-wrap .item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header::before {
	content: "";
	transform: translate(-50%, 18px);
}

/* Link added by locked.js */
.pq1-lk-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	color: var(--pq1lk-ink) !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	line-height: 1.4;
	text-transform: uppercase;
	text-decoration: none !important;
	border-bottom: 1px solid var(--pq1lk-gold);
	padding-bottom: 4px;
	transition: color .2s ease, gap .2s ease;
}
.pq1-lk-cta:hover { color: var(--pq1lk-gold) !important; gap: 12px; }
.pq1-lk-cta-wrap { padding: 0 20px 22px; line-height: 1; }
.item-body .pq1-lk-cta-wrap { padding: 0; }

/* ================================================================ *
 * 2. Locked single listing page
 * ================================================================ */

.pq1om-type-locked .reserve-icon,
.pq1om-type-locked .property-image-count,
.pq1om-type-locked #property-gallery-grid,
.pq1om-type-locked .property-gallery-grid,
.pq1om-type-locked .page-title-wrap .item-tools {
	display: none !important;
}

/* Gallery: one calm, heavily blurred hero; no lightbox (it would show the blocky files) */
.pq1om-type-locked .property-top-wrap .houzez-photoswipe a,
.pq1om-type-locked .property-top-wrap .property-banner-trigger {
	pointer-events: none;
	cursor: default;
}
.pq1om-type-locked .property-top-wrap .hidden-on-mobile .houzez-photoswipe > [class*="col-md-8"] > a,
.pq1om-type-locked .property-top-wrap .hidden-on-mobile .houzez-photoswipe > [class*="col-md-4"] > a {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--pq1lk-ink);
}
.pq1om-type-locked .property-top-wrap .hidden-on-mobile .houzez-photoswipe img {
	filter: blur(22px) saturate(.9) brightness(.85);
	transform: scale(1.2);
}
.pq1om-type-locked .property-top-wrap #pills-gallery {
	filter: blur(18px) saturate(.9) brightness(.85);
	transform: scale(1.2);
}
.pq1om-type-locked .property-top-wrap .visible-on-mobile,
.pq1om-type-locked .property-top-wrap .property-banner {
	position: relative;
	overflow: hidden;
}

/* The "Off Market" box, as on DDRE, in PQ1 colours */
.pq1om-type-locked .property-top-wrap .hidden-on-mobile .houzez-photoswipe > [class*="col-md-8"] > a::after,
.pq1om-type-locked .property-top-wrap .visible-on-mobile::after {
	content: "Off Market";
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 6;
	transform: translate(-50%, -50%);
	padding: 18px 38px 18px calc(38px + .2em);
	background: var(--pq1lk-ink);
	border-top: 2px solid var(--pq1lk-gold);
	color: #fff;
	font-family: Lato, "Helvetica Neue", Arial, sans-serif;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: .2em;
	line-height: 1.1;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
	pointer-events: none;
}
.pq1om-type-locked .property-top-wrap .visible-on-mobile::after {
	font-size: 15px;
	padding: 14px 26px 14px calc(26px + .2em);
}

/* Description block: only the teaser lives here, so drop the generic heading */
.pq1om-type-locked #property-description-wrap .block-title-wrap { display: none; }
.pq1om-type-locked #property-description-wrap .block-wrap {
	padding: 0;
	background: transparent;
	box-shadow: none;
	border: 0;
}
.pq1om-type-locked #property-description-wrap .property-description-content,
.pq1om-type-locked #property-description-wrap .description-content {
	max-height: none !important;
	overflow: visible !important;
}
.pq1om-type-locked #property-description-wrap .show-more-less-btn,
.pq1om-type-locked #property-description-wrap .show-more,
.pq1om-type-locked #property-description-wrap .houzez-show-more,
.pq1om-type-locked #property-description-wrap .hz-show-more-btn {
	display: none !important;
}

/* The teaser + Request Access card */
.pq1om-teaser {
	position: relative;
	margin: 0 0 30px !important;
	padding: 44px 44px 40px !important;
	background: #fff !important;
	border: 0 !important;
	border-top: 3px solid var(--pq1lk-gold) !important;
	border-radius: 0 !important;
	box-shadow: 0 10px 40px rgba(47, 46, 44, .08);
	color: var(--pq1lk-ink);
	line-height: 1.6;
}
.pq1om-teaser .pq1om-badge {
	display: flex !important;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px !important;
	padding: 0 !important;
	background: none !important;
	color: var(--pq1lk-ink) !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: .22em !important;
	line-height: 1.2;
	text-transform: uppercase;
}
.pq1om-teaser .pq1om-badge > span[aria-hidden],
.pq1om-teaser .pq1om-badge img.emoji { display: none !important; }
.pq1om-teaser .pq1om-badge::before {
	content: "";
	flex: 0 0 26px;
	height: 2px;
	background: var(--pq1lk-red);
}
.pq1om-teaser .pq1om-text,
.pq1om-teaser .pq1om-text p {
	font-family: var(--pq1lk-serif);
	font-size: 23px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--pq1lk-ink);
}
.pq1om-teaser .pq1om-text p:last-child { margin-bottom: 0; }
.pq1om-teaser .pq1om-note {
	margin: 26px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--pq1lk-stone);
	color: #6b6760 !important;
	font-size: 14px;
	line-height: 1.6;
}
.pq1om-teaser .pq1om-note a { color: var(--pq1lk-gold) !important; font-weight: 700; }

/* Form */
.pq1om-teaser .pq1om-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 22px;
	margin-top: 26px;
	padding: 30px 30px 8px;
	background: var(--pq1lk-cream);
}
.pq1om-teaser .pq1om-form::before {
	content: "Request access";
	grid-column: 1 / -1;
	margin-bottom: 18px;
	font-family: var(--pq1lk-serif);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.1;
	color: var(--pq1lk-ink);
}
.pq1om-teaser .pq1om-form > p { margin: 0 0 18px; }
.pq1om-teaser .pq1om-form > p:nth-of-type(5),
.pq1om-teaser .pq1om-form > p:has(textarea),
.pq1om-teaser .pq1om-form > .pq1om-nda,
.pq1om-teaser .pq1om-form > p:last-of-type {
	grid-column: 1 / -1;
}
.pq1om-teaser .pq1om-form label {
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--pq1lk-ink);
	line-height: 1.4;
}
.pq1om-teaser .pq1om-form input:not([type="checkbox"]):not([type="hidden"]),
.pq1om-teaser .pq1om-form textarea {
	margin-top: 8px !important;
	padding: 12px 14px !important;
	background: #fff !important;
	border: 1px solid #d9d2c5 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 15px !important;
	letter-spacing: 0;
	text-transform: none;
	color: var(--pq1lk-ink);
	transition: border-color .2s ease;
}
.pq1om-teaser .pq1om-form input:focus,
.pq1om-teaser .pq1om-form textarea:focus {
	outline: none;
	border-color: var(--pq1lk-gold) !important;
}
.pq1om-teaser .pq1om-form .pq1om-nda label {
	font-size: 13px !important;
	font-weight: 400 !important;
	letter-spacing: 0;
	text-transform: none;
	color: #55524c;
	line-height: 1.55;
}
.pq1om-teaser .pq1om-form .pq1om-nda input { accent-color: var(--pq1lk-gold); }
.pq1om-teaser .pq1om-form button[type="submit"] {
	width: 100%;
	padding: 16px 28px !important;
	background: var(--pq1lk-ink) !important;
	border: 1px solid var(--pq1lk-ink) !important;
	border-radius: 0 !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: .22em;
	line-height: 1.2;
	text-transform: uppercase;
	transition: background .2s ease, border-color .2s ease;
}
.pq1om-teaser .pq1om-form button[type="submit"]:hover {
	background: var(--pq1lk-gold) !important;
	border-color: var(--pq1lk-gold) !important;
}
.pq1om-teaser .pq1om-msg { border-radius: 0; margin-top: 16px; }

@media (max-width: 767px) {
	.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header::after,
	.item-listing-wrap:is(.pq1-lk, :has(img[src*="/pq1-blur/"])) .item-header-wrap::after { font-size: 22px; }
	.pq1om-teaser { padding: 30px 22px 26px !important; }
	.pq1om-teaser .pq1om-text,
	.pq1om-teaser .pq1om-text p { font-size: 20px; }
	.pq1om-teaser .pq1om-form { grid-template-columns: 1fr; padding: 24px 18px 4px; }
}

/* Pill "you are viewing as approved" etc. from PQ1 Off-Market keeps its own style. */
