/* ── Single Portfolio Page ─────────────────────────────────────
   Brand: Navy #1a2b4a  |  Red #e30000  |  Font via theme CSS vars
──────────────────────────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

.nwp-pf-page {
	--pf-navy:   #1a2b4a;
	--pf-red:    #e30000;
	--pf-border: #e8e8e8;
	--pf-bg:     #f7f7f7;
	background: var(--pf-bg);
	padding-bottom: clamp(60px, 8vw, 100px);
}

/* Push content below the fixed header (header JS sets --nwp-header-height + has-fixed-header) */
body.has-fixed-header .nwp-pf-page {
	padding-top: var(--nwp-header-height, 90px);
}

.nwp-pf-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 60px);
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.nwp-pf-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: clamp(16px, 2vw, 24px) 0 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #888;
}
.nwp-pf-breadcrumb a {
	color: var(--pf-navy);
	text-decoration: none;
}
.nwp-pf-breadcrumb a:hover { text-decoration: underline; }
.nwp-pf-breadcrumb span:last-child {
	color: #aaa;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 280px;
}

/* ── Property header ─────────────────────────────────────────── */
.nwp-pf-header {
	padding: clamp(20px, 3vw, 36px) 0 clamp(28px, 4vw, 44px);
}

.nwp-pf-badge {
	display: inline-block;
	background: var(--pf-red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 6px 16px;
	margin-bottom: 16px;
	line-height: 1;
}

.nwp-pf-title {
	font-family: var(--nwp-font-heading, inherit);
	font-size: clamp(28px, 4vw, 52px);
	font-weight: 800;
	letter-spacing: -0.5px;
	text-transform: uppercase;
	color: var(--pf-navy);
	margin: 0 0 14px;
	line-height: 1.05;
}

.nwp-pf-location {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #888;
	margin: 0;
}
.nwp-pf-location svg { flex-shrink: 0; }

/* ── Gallery wrapper ─────────────────────────────────────────── */
.nwp-pf-gallery-wrap {
	background: #fff;
	padding: clamp(20px, 3vw, 36px) 0;
	margin-bottom: clamp(32px, 4vw, 52px);
}

/* ── Main image ─────────────────────────────────────────────── */
.nwp-pf-main-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
}

.nwp-pf-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.22s ease;
}

/* Badge overlay on main image */
.nwp-pf-main-badge {
	position: absolute;
	bottom: 18px;
	left: 18px;
	background: var(--pf-red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 7px 18px;
	line-height: 1;
	pointer-events: none;
}

/* Prev/Next arrow buttons on main image */
.nwp-pf-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.85);
	border: none;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--pf-navy);
	transition: background 0.2s ease, color 0.2s ease;
	z-index: 2;
}
.nwp-pf-arrow:hover {
	background: var(--pf-navy);
	color: #fff;
}
.nwp-pf-arrow--prev { left: 14px; }
.nwp-pf-arrow--next { right: 14px; }

/* ── Thumbnail strip ─────────────────────────────────────────── */
.nwp-pf-thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 12px 0 4px;
	scrollbar-width: thin;
	scrollbar-color: #ddd transparent;
	-webkit-overflow-scrolling: touch;
}
.nwp-pf-thumbs::-webkit-scrollbar { height: 4px; }
.nwp-pf-thumbs::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.nwp-pf-thumb {
	flex: 0 0 auto;
	width: 120px;
	height: 80px;
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	background: #eee;
	transition: border-color 0.18s ease, opacity 0.18s ease;
	outline-offset: 2px;
}
.nwp-pf-thumb:hover { border-color: #aaa; }
.nwp-pf-thumb.is-active { border-color: var(--pf-red); }
.nwp-pf-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}
.nwp-pf-thumb:hover img { transform: scale(1.06); }

/* ── Body: content + sidebar ─────────────────────────────────── */
.nwp-pf-body {
	display: grid;
	grid-template-columns: 1fr 270px;
	gap: clamp(24px, 3vw, 48px);
	align-items: start;
}

/* ── Post content area ───────────────────────────────────────── */
.nwp-pf-content {
	background: #fff;
	padding: clamp(28px, 3.5vw, 48px);
	min-height: 200px;
}

.nwp-pf-content p {
	font-family: var(--nwp-font-body, inherit);
	font-size: clamp(16px, 1.4vw, 18px);
	line-height: 1.85;
	color: #3a3a3a;
	margin: 0 0 1.2em;
}

.nwp-pf-content h2,
.nwp-pf-content h3 {
	font-family: var(--nwp-font-heading, inherit);
	font-weight: 700;
	color: var(--pf-navy);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 1.6em 0 0.6em;
}
.nwp-pf-content h2 { font-size: clamp(20px, 1.8vw, 24px); }
.nwp-pf-content h3 { font-size: clamp(18px, 1.6vw, 22px); }

.nwp-pf-content ul,
.nwp-pf-content ol {
	padding-left: 1.4em;
	margin: 0 0 1.4em;
}
.nwp-pf-content li {
	font-size: clamp(16px, 1.3vw, 18px);
	line-height: 1.8;
	color: #3a3a3a;
	margin-bottom: 0.3em;
}

.nwp-pf-content a { color: var(--pf-navy); }
.nwp-pf-content a:hover { color: var(--pf-red); }

/* Hide any embedded images/gallery from post content — template handles them */
.nwp-pf-content figure.wp-block-image,
.nwp-pf-content figure.wp-block-gallery,
.nwp-pf-content .wp-block-gallery,
.nwp-pf-content .wp-block-image { display: none !important; }

/* ── Property sidebar ────────────────────────────────────────── */
.nwp-pf-sidebar {
	background: #fff;
	padding: clamp(16px, 2vw, 22px);
	border-top: 3px solid var(--pf-navy);
	position: sticky;
	top: 24px;
}

.nwp-pf-sidebar-heading {
	font-family: var(--nwp-font-heading, inherit);
	font-size: 17px !important;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pf-navy);
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--pf-border);
}

.nwp-pf-details { margin: 0 0 18px; }

.nwp-pf-detail-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--pf-border);
}
.nwp-pf-detail-row:first-child { padding-top: 0; }

.nwp-pf-detail-row dt {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #888;
	flex-shrink: 0;
	padding-top: 2px;
}

.nwp-pf-detail-row dd {
	font-size: 12px;
	font-weight: 600;
	color: var(--pf-navy);
	text-align: right;
	margin: 0;
	word-break: break-word;
}

.nwp-pf-detail-badge {
	display: inline-block;
	background: var(--pf-red);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 12px;
	line-height: 1.4;
}

/* ── Contact button ─────────────────────────────────────────── */
.nwp-pf-contact-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: var(--pf-navy);
	color: #fff;
	font-family: var(--nwp-font-body, inherit);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 12px 18px;
	line-height: 1;
	border: 2px solid var(--pf-navy);
	transition: background 0.2s ease, color 0.2s ease;
}
.nwp-pf-contact-btn:hover {
	background: transparent;
	color: var(--pf-navy);
}
.nwp-pf-contact-btn svg { transition: transform 0.2s ease; }
.nwp-pf-contact-btn:hover svg { transform: translateX(4px); }

/* ── Property navigation ─────────────────────────────────────── */
.nwp-pf-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: clamp(40px, 6vw, 72px);
	border-top: 1px solid var(--pf-border);
	padding-top: clamp(28px, 4vw, 44px);
}

.nwp-pf-nav-item {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: inherit;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid var(--pf-border);
	transition: border-color 0.2s ease, background 0.2s ease;
	min-width: 0;
}
.nwp-pf-nav-item:hover {
	border-color: var(--pf-navy);
	background: #f0f3f8;
}
.nwp-pf-nav-item svg {
	flex-shrink: 0;
	color: var(--pf-navy);
}

.nwp-pf-nav-next { justify-content: flex-end; text-align: right; }

.nwp-pf-nav-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.nwp-pf-nav-text small {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #888;
}
.nwp-pf-nav-text strong {
	font-size: 13px;
	font-weight: 700;
	color: var(--pf-navy);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
	.nwp-pf-body {
		grid-template-columns: 1fr;
	}
	.nwp-pf-sidebar {
		position: static;
	}
}

@media (max-width: 640px) {
	.nwp-pf-main-wrap { aspect-ratio: 4 / 3; }
	.nwp-pf-thumb { width: 88px; height: 60px; }
	.nwp-pf-nav { grid-template-columns: 1fr; }
	.nwp-pf-nav-item { padding: 16px; }
	.nwp-pf-arrow { width: 36px; height: 36px; }
}
