/* Nivas — single property, dark editorial layout */

body.single-property {
	background: linear-gradient(180deg, #62767f 0%, #3f505a 40%, #2a373f 100%) fixed;
}

.pv {
	--pv-card: #1b2326;
	--pv-card-2: #232d31;
	--pv-ink: #f2f5f4;
	--pv-mute: #93a2a8;
	--pv-line: rgba(255, 255, 255, 0.16);
	--pv-radius: 10px;
	--pv-display: "Syne", "Helvetica Neue", Arial, sans-serif;
	--pv-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	color: var(--pv-ink);
	font-family: var(--pv-body);
	padding: 28px 0 80px;
}

.pv__wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* ---------- top bar ---------- */
.pv-topbar {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--pv-ink);
	font-size: 14px;
}
.pv-topbar a { color: inherit; }
.pv-back {
	width: 40px;
	height: 40px;
	flex: none;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	transition: background 0.2s, color 0.2s;
}
.pv-back:hover { background: var(--pv-ink); color: var(--pv-card); }
.pv a:focus-visible,
.pv button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* ---------- hero ---------- */
.pv-hero {
	position: relative;
	min-height: clamp(380px, 52vw, 620px);
	border-radius: var(--pv-radius);
	overflow: hidden;
	background: var(--pv-card);
	display: grid;
	grid-template-rows: 1fr auto;
	grid-template-columns: 1fr auto;
	align-items: end;
	padding: clamp(18px, 3vw, 34px);
	gap: 8px 24px;
}
.pv-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pv-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(10, 16, 18, 0.55) 0%, rgba(10, 16, 18, 0) 38%),
		linear-gradient(0deg, rgba(10, 16, 18, 0.7) 0%, rgba(10, 16, 18, 0) 40%);
	pointer-events: none;
}
.pv-hero__title {
	position: relative;
	grid-column: 1 / -1;
	grid-row: 1;
	align-self: start;
	margin: 0;
	font-family: var(--pv-display);
	font-weight: 800;
	font-size: clamp(2.4rem, 9.4vw, 8.5rem);
	line-height: 0.92;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	color: #fff;
	text-wrap: balance;
	overflow-wrap: anywhere;
}
.pv-hero__price,
.pv-hero__loc {
	position: relative;
	margin: 0;
	font-family: var(--pv-display);
	font-weight: 500;
	font-size: clamp(0.85rem, 1.5vw, 1.15rem);
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}
.pv-hero__price { grid-column: 1; grid-row: 2; }
.pv-hero__loc   { grid-column: 2; grid-row: 2; text-align: right; font-size: clamp(0.7rem, 1.1vw, 0.85rem); }

/* ---------- cards ---------- */
.pv-card {
	background: var(--pv-card);
	border-radius: var(--pv-radius);
	padding: clamp(22px, 3.4vw, 40px);
}
.pv-card__title {
	margin: 0 0 clamp(20px, 3vw, 34px);
	font-family: var(--pv-display);
	font-weight: 600;
	font-size: clamp(1.8rem, 4.2vw, 3.1rem);
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--pv-ink);
}

/* ---------- gallery row ---------- */
.pv-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
.pv-shot {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	text-align: left;
	color: inherit;
	font: inherit;
	cursor: pointer;
	display: flex;
	flex-direction: column;
}
.pv-shot__img {
	display: block;
	aspect-ratio: 1 / 0.82;
	border-radius: 4px;
	overflow: hidden;
	background: var(--pv-card-2);
}
.pv-shot__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.8;
	transition: opacity 0.25s;
}
.pv-shot:hover .pv-shot__img img,
.pv-shot.is-active .pv-shot__img img { opacity: 1; }
.pv-shot__num {
	margin-top: 18px;
	font-family: var(--pv-display);
	font-weight: 500;
	font-size: clamp(1.6rem, 2.6vw, 2.2rem);
	line-height: 1;
	color: var(--pv-ink);
}
.pv-shot__label {
	margin-top: 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--pv-ink);
}
.pv-shot.is-active .pv-shot__label::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	border-radius: 50%;
	background: var(--pv-ink);
	vertical-align: middle;
}

/* ---------- facts + floor plan ---------- */
.pv-plan { display: grid; gap: 34px; }
.pv-plan.has-plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.pv-plan__area {
	margin: 0 0 22px;
	font-family: var(--pv-display);
	font-weight: 500;
	font-size: clamp(1rem, 1.8vw, 1.35rem);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.pv-facts { margin: 0; max-width: 460px; }
.pv-plan:not(.has-plan) .pv-facts { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.pv-facts__row {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 13px 0;
	border-bottom: 1px solid var(--pv-line);
	font-size: 13.5px;
}
.pv-facts__row:first-child { border-top: 1px solid var(--pv-line); }
.pv-plan:not(.has-plan) .pv-facts__row:nth-child(2) { border-top: 1px solid var(--pv-line); }
.pv-facts dt { margin: 0; color: var(--pv-ink); }
.pv-facts dd { margin: 0; text-align: right; color: var(--pv-mute); font-variant-numeric: tabular-nums; }
.pv-plan__figure { margin: 0; position: relative; }
.pv-plan__figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}
.pv-plan__figure figcaption {
	margin-top: 10px;
	text-align: right;
	font-size: 11px;
	color: var(--pv-mute);
}

/* ---------- about + agent ---------- */
.pv-about {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 22px;
	align-items: start;
}
.pv-prose { color: #cdd6d9; font-size: 15.5px; line-height: 1.75; max-width: 70ch; }
.pv-prose h2, .pv-prose h3, .pv-prose h4 { color: var(--pv-ink); font-family: var(--pv-display); text-transform: uppercase; }
.pv-prose a { color: #fff; text-decoration: underline; }
.pv-rera {
	margin-top: 28px;
	padding: 14px 16px;
	border: 1px solid var(--pv-line);
	border-radius: 6px;
	font-size: 13px;
	color: var(--pv-mute);
}
.pv-rera strong { color: var(--pv-ink); }

.pv-agent {
	position: sticky;
	top: 110px;
	background: var(--pv-card-2);
	color: var(--pv-ink);
}
.pv-agent h3 {
	margin: 0 0 10px;
	font-family: var(--pv-display);
	font-weight: 600;
	font-size: 1.35rem;
	line-height: 1.15;
	text-transform: uppercase;
	color: var(--pv-ink);
}
.pv-agent p { margin: 0 0 22px; color: var(--pv-mute); font-size: 14px; line-height: 1.6; }
.pv-agent .btn { display: block; text-align: center; }
.pv-agent__call { margin-top: 10px; }
.pv-agent p.pv-agent__rera { margin: 20px 0 0; font-size: 12px; opacity: 0.7; }

/* ---------- video / map ---------- */
.pv-embed {
	aspect-ratio: 16 / 9;
	border-radius: 4px;
	overflow: hidden;
	background: #000;
}
.pv-embed iframe, .pv-embed video { width: 100%; height: 100%; border: 0; display: block; }
.pv-map iframe {
	display: block;
	width: 100%;
	height: clamp(280px, 38vw, 440px);
	border: 0;
	border-radius: 4px;
	filter: grayscale(0.35) contrast(0.95);
}

/* ---------- related ---------- */
.pv-related .property-grid { margin-top: 0; }
.pv-related .property-grid a { color: inherit; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
	.pv-gallery__grid { grid-template-columns: repeat(2, 1fr); }
	.pv-plan.has-plan { grid-template-columns: 1fr; }
	.pv-about { grid-template-columns: 1fr; }
	.pv-agent { position: static; }
}
@media (max-width: 600px) {
	.pv__wrap { padding: 0 14px; gap: 16px; }
	.pv-gallery__grid { gap: 14px; }
	.pv-plan:not(.has-plan) .pv-facts { grid-template-columns: 1fr; }
	.pv-plan:not(.has-plan) .pv-facts__row:nth-child(2) { border-top: 0; }
	.pv-hero { grid-template-columns: 1fr; }
	.pv-hero__loc { grid-column: 1; grid-row: 3; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
	.pv * { transition: none !important; }
}
