/**
 * Residential property detail redesign — all rules scoped to .property-detail-page
 */
/* Match Pall Spera Co theme header color when available */
.property-detail-page {
	--pd-accent: var(--page-header-color, #152d4d);
	--pd-text: #1a1a1a;
	--pd-muted: #5a5a5a;
	--pd-radius: 10px;
	--pd-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

html:has(body.property-detail-page) {
	overflow-x: hidden;
}

/* -------------------------------------------------------------------------
   Slideshow — flush, full width, max-height 100vh
   ------------------------------------------------------------------------- */
.property-detail-page .pd-slideshow-section.slideshow-section {
	padding: 0;
	margin-top: 0;
	width: 100%;
	max-width: 100%;
	position: relative;
	left: auto;
	right: auto;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
	overflow: hidden;
}

.property-detail-page .pd-slideshow-inner {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.property-detail-page .pd-main-splide {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.property-detail-page .pd-main-splide .splide__arrows {
	max-width: 100%;
}

.property-detail-page .pd-main-splide .splide__track {
	min-height: min(100vh, 90vw);
}

@media (max-width: 768px) {
	.property-detail-page .pd-main-splide .splide__track {
		min-height: min(85vh, 100vw);
	}
}

.property-detail-page .pd-main-splide .splide__track,
.property-detail-page .pd-main-splide .splide__list,
.property-detail-page .pd-main-splide .splide__slide {
	height: 100%;
}

.property-detail-page .pd-main-splide .splide__slide {
	display: flex;
	align-items: stretch;
	justify-content: center;
}

.property-detail-page .pd-slide-frame {
	position: relative;
	width: 100%;
	height: min(100vh, 90vw);
	max-height: 100vh;
	min-height: 280px;
	overflow: hidden;
	background: #0d0d0d;
	display: flex;
	align-items: center;
	justify-content: center;
}

.property-detail-page .pd-slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: blur(20px);
	transform: scale(1.1);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.property-detail-page .pd-slide-frame.pd-slide--portrait .pd-slide-bg {
	opacity: 1;
}

.property-detail-page .pd-slide-img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	max-height: 100vh;
	object-fit: cover;
	object-position: center;
}

.property-detail-page .pd-slide-frame.pd-slide--portrait .pd-slide-img {
	object-fit: contain;
	width: auto;
	max-width: 100%;
	height: 100%;
	margin: 0 auto;
}

.property-detail-page .pd-slide-border-overlay {
	position: absolute;
	top: 20px;
	left: 20px;
	right: 20px;
	bottom: 20px;
	border: 3px solid #fff;
	box-sizing: border-box;
	pointer-events: none;
	z-index: 4;
}

.property-detail-page .pd-slide-labels {
	position: absolute;
	left: 28px;
	right: 28px;
	bottom: 28px;
	z-index: 5;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 12px;
	pointer-events: none;
	flex-wrap: wrap;
}

.property-detail-page .pd-label {
	color: #fff;
	font-family: Cinzel, serif;
	font-size: clamp(1.05rem, 3vw, 1.5rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0;
	margin: 0;
	background: none;
	border: none;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
	/* Legibility on varied photos without a box behind the text */
	text-shadow:
		0 0 14px rgba(0, 0, 0, 0.75),
		0 1px 3px rgba(0, 0, 0, 0.95),
		0 2px 24px rgba(0, 0, 0, 0.45);
}

.property-detail-page .pd-label--price {
	margin-left: auto;
	text-align: right;
}

.property-detail-page .pd-main-splide .splide__arrow {
	background: rgba(255, 255, 255, 0.92);
	opacity: 1;
}

.property-detail-page .pd-main-splide .splide__arrow:hover {
	background: #fff;
}

.property-detail-page .pd-thumb-splide {
	margin-top: 0;
	padding: 12px 16px 16px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
	position: relative;
	z-index: 6;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.property-detail-page .pd-thumb-splide .splide__slide {
	opacity: 0.65;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
	border-radius: 6px;
	overflow: hidden;
}

.property-detail-page .pd-thumb-splide .splide__slide.is-active {
	opacity: 1;
	box-shadow: 0 0 0 3px #fff;
}

.property-detail-page .pd-thumb-splide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	aspect-ratio: 4/3;
}

.property-detail-page .pd-thumb-splide .splide__track {
	padding: 4px 0;
}

/* -------------------------------------------------------------------------
   Breadcrumb
   ------------------------------------------------------------------------- */
.property-detail-page .pd-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	font-family: Cinzel, serif;
	font-size: clamp(0.8rem, 1.8vw, 1rem);
	padding: 16px 0;
	border-bottom: 1px solid #e8e8e8;
	color: var(--pd-muted);
	letter-spacing: 0.08em;
	line-height: 1.5;
	row-gap: 6px;
	column-gap: 0;
}

.property-detail-page .pd-breadcrumb a {
	color: var(--pd-accent);
	text-decoration: none;
}

.property-detail-page .pd-breadcrumb a:hover {
	text-decoration: underline;
}

.property-detail-page .pd-breadcrumb-sep {
	margin: 0 0.5em;
	opacity: 0.6;
}

.property-detail-page .pd-breadcrumb-current {
	color: var(--pd-text);
	font-weight: 600;
}

/* -------------------------------------------------------------------------
   Header block
   ------------------------------------------------------------------------- */
.property-detail-page .pd-page-header {
	padding: 28px 0 20px;
	text-align: center;
	border-bottom: 1px solid #eee;
	font-family: Cinzel, serif;
}

.property-detail-page .pd-page-header h1,
.property-detail-page .pd-page-header__street {
	font-family: Cinzel, serif;
	font-size: clamp(1.5rem, 4vw, 2.75rem);
	margin: 0 0 8px;
	color: var(--pd-text);
	font-weight: 700;
	letter-spacing: 0.06em;
}

.property-detail-page .pd-page-header__location {
	font-family: Cinzel, serif;
	font-size: clamp(1rem, 2.2vw, 1.35rem);
	color: var(--pd-muted);
	margin: 0 0 18px;
	letter-spacing: 0.1em;
	font-weight: 500;
}

.property-detail-page .pd-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 10px 14px;
	margin: 0 0 16px;
	font-family: Cinzel, serif;
}

.property-detail-page .pd-meta {
	font-size: clamp(0.95rem, 2vw, 1.15rem);
	color: var(--pd-text);
	font-weight: 600;
	letter-spacing: 0.06em;
}

.property-detail-page .pd-meta--mls {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
}

.property-detail-page .pd-meta--mls .pd-meta__label {
	font-size: 0.75em;
	font-weight: 600;
	color: var(--pd-muted);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.property-detail-page .pd-meta--mls .pd-meta__value {
	font-size: clamp(1.15rem, 2.5vw, 1.45rem);
	font-weight: 700;
	color: var(--pd-accent);
	letter-spacing: 0.08em;
}

.property-detail-page .pd-meta--type,
.property-detail-page .pd-meta--status {
	color: var(--pd-accent);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.property-detail-page .pd-meta-sep {
	color: var(--pd-muted);
	opacity: 0.45;
	font-weight: 400;
	user-select: none;
}

.property-detail-page .pd-broker-line {
	font-size: 0.95rem;
	margin: 0;
	font-family: Lato, sans-serif;
	letter-spacing: normal;
}

.property-detail-page .pd-broker-line a {
	color: var(--pd-accent);
}

/* -------------------------------------------------------------------------
   Stat tiles
   ------------------------------------------------------------------------- */
.property-detail-page .pd-stat-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	padding: 28px 0;
}

.property-detail-page .pd-stat-tile {
	background: var(--pd-accent);
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: var(--pd-radius);
	padding: 22px 16px;
	text-align: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.property-detail-page .pd-stat-tile:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
	filter: brightness(1.06);
}

.property-detail-page .pd-stat-tile__icon {
	font-size: 1.75rem;
	color: #fff;
	margin-bottom: 8px;
	line-height: 1;
}

.property-detail-page .pd-stat-tile__icon svg {
	width: 1.75rem;
	height: 1.75rem;
	fill: currentColor;
	vertical-align: middle;
}

.property-detail-page .pd-stat-tile__value {
	font-family: Cinzel, serif;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	color: #fff;
}

.property-detail-page .pd-stat-tile__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.82);
	margin-top: 6px;
}

/* -------------------------------------------------------------------------
   Action buttons
   ------------------------------------------------------------------------- */
.property-detail-page .pd-action-row {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	padding: 8px 0 28px;
}

.property-detail-page .pd-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 14px;
	border: 2px solid var(--pd-accent);
	border-radius: 0;
	background: #fff;
	font-family: Lato, sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	color: var(--pd-accent);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.property-detail-page .pd-action-btn:hover {
	background: var(--pd-accent);
	color: #fff;
}

.property-detail-page .pd-action-btn .fa {
	font-size: 1.1rem;
}

.property-detail-page .favorite-btn.active .fa-heart {
	color: #e74c3c;
}

/* -------------------------------------------------------------------------
   Parallax strips
   ------------------------------------------------------------------------- */
.property-detail-page .parallax-strip {
	position: relative;
	min-height: 220px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	width: 100%;
	max-width: 100%;
	left: auto;
	right: auto;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
	overflow: hidden;
}

.property-detail-page .parallax-strip {
	background-attachment: fixed;
}

html.pd-ios-parallax .property-detail-page .parallax-strip {
	background-attachment: scroll;
}

/* Strip B — editorial */
.property-detail-page .parallax-strip--b .pd-parallax__overlay {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	min-height: 220px;
	padding: 36px 24px;
	background: rgba(255, 255, 255, 0.82);
	border-left: 4px solid var(--pd-accent);
	max-width: 1400px;
	margin: 0 auto;
	box-sizing: border-box;
}

.property-detail-page .parallax-strip--b .pd-parallax__body {
	flex: 1;
	padding-right: 20px;
}

.property-detail-page .parallax-strip--b .pd-parallax__eyebrow {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--pd-accent);
	font-weight: 700;
	margin: 0 0 8px;
}

.property-detail-page .parallax-strip--b .pd-parallax__title {
	font-family: Cinzel, serif;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	margin: 0 0 8px;
}

.property-detail-page .parallax-strip--b .pd-parallax__sub {
	margin: 0;
	color: var(--pd-muted);
	font-size: 0.95rem;
	max-width: 36em;
}

.property-detail-page .parallax-strip--b .pd-parallax__pin {
	font-size: 2.5rem;
	color: var(--pd-accent);
	opacity: 0.85;
}

/* Strip C — dark gradient */
.property-detail-page .parallax-strip--c .pd-parallax__overlay {
	position: relative;
	z-index: 2;
	min-height: 240px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 28px 24px 32px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
	color: #fff;
	max-width: 1400px;
	margin: 0 auto;
	box-sizing: border-box;
}

.property-detail-page .parallax-strip--c .pd-parallax__title {
	font-family: Cinzel, serif;
	font-size: clamp(1.35rem, 3vw, 2rem);
	margin: 0 0 4px;
}

.property-detail-page .parallax-strip--c .pd-parallax__county {
	font-size: 0.9rem;
	opacity: 0.9;
}

.property-detail-page .parallax-strip--c .pd-parallax__stat {
	font-size: 1rem;
	font-weight: 600;
	max-width: 22em;
	text-align: right;
}

/* Strip A — cinematic */
.property-detail-page .parallax-strip--a .pd-parallax__overlay {
	position: relative;
	z-index: 2;
	min-height: 260px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	text-align: center;
}

.property-detail-page .parallax-strip--a .pd-parallax__title {
	font-family: Cinzel, serif;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	margin: 0 0 10px;
}

.property-detail-page .parallax-strip--a .pd-parallax__sub {
	margin: 0;
	font-size: 1rem;
	opacity: 0.92;
}

/* -------------------------------------------------------------------------
   Content sections & dividers
   ------------------------------------------------------------------------- */
.property-detail-page .pd-section-divider {
	height: 1px;
	background: linear-gradient(to right, transparent, #ccc, transparent);
	margin: 0 0 8px;
}

.property-detail-page .pd-block {
	margin-bottom: 8px;
}

.property-detail-page .pd-block h2,
.property-detail-page .pd-section-head h2 {
	font-family: Cinzel, serif;
	font-size: 1.5rem;
	color: var(--pd-text);
	margin: 0;
}

.property-detail-page .pd-block.pd-accordion .pd-section-head {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 0;
	background: none;
	border: none;
	border-bottom: 1px solid #e0e0e0;
	cursor: pointer;
	text-align: left;
	font: inherit;
}

.property-detail-page .pd-block.pd-accordion .pd-section-head .pd-section-chevron {
	font-size: 0.85rem;
	color: var(--pd-muted);
	transition: transform 0.25s ease;
	flex-shrink: 0;
}

.property-detail-page .pd-block.pd-accordion:not(.is-open) .pd-section-head .pd-section-chevron {
	transform: rotate(-90deg);
}

.property-detail-page .pd-block.pd-accordion:not(.is-open) .pd-section-body {
	display: none;
}

.property-detail-page .pd-block.pd-accordion.is-open .pd-section-body {
	display: block;
}

.property-detail-page .pd-section-body {
	padding: 16px 0 28px;
}

/* -------------------------------------------------------------------------
   Contact sidebar (moved from inline styles, scoped)
   ------------------------------------------------------------------------- */
.property-detail-page .contact-sidebar {
	background: #f8f9fa;
	padding: 20px;
	border-radius: var(--pd-radius);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	margin: 24px 0 32px;
}

.property-detail-page .contact-sidebar h3 {
	color: var(--pd-accent);
	font-family: Lato, sans-serif;
	font-size: 1.15em;
	margin: 0 0 15px;
	border-bottom: 2px solid var(--pd-accent);
	padding-bottom: 6px;
}

.property-detail-page .contact-sidebar .company-details {
	background: #fff;
	padding: 15px;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
}

.property-detail-page .contact-sidebar .company-name {
	font-weight: 700;
	font-size: 1.05em;
	color: var(--pd-accent);
	margin-bottom: 12px;
	text-align: center;
}

.property-detail-page .contact-sidebar .contact-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 10px;
	padding: 6px 0;
}

.property-detail-page .contact-sidebar .contact-icon {
	margin-right: 10px;
	min-width: 24px;
}

.property-detail-page .contact-sidebar .contact-text {
	flex: 1;
	color: #333;
	line-height: 1.45;
}

.property-detail-page .contact-sidebar .contact-text a {
	color: var(--pd-accent);
	text-decoration: none;
}

.property-detail-page .contact-sidebar .contact-text a:hover {
	text-decoration: underline;
}

.property-detail-page .contact-sidebar .contact-form {
	background: #fff;
	padding: 20px;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
}

.property-detail-page .contact-sidebar .form-group {
	margin-bottom: 14px;
}

.property-detail-page .contact-sidebar .form-group label {
	display: block;
	margin-bottom: 5px;
	color: #333;
	font-weight: 500;
	font-family: Lato, sans-serif;
	font-size: 0.9rem;
}

.property-detail-page .contact-sidebar .form-group input,
.property-detail-page .contact-sidebar .form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: Lato, sans-serif;
	font-size: 14px;
	box-sizing: border-box;
}

.property-detail-page .contact-sidebar .form-group input:focus,
.property-detail-page .contact-sidebar .form-group textarea:focus {
	outline: none;
	border-color: var(--pd-accent);
	box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.2);
}

.property-detail-page .contact-sidebar .contact-submit-btn {
	background: var(--pd-accent);
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	width: 100%;
	transition: background 0.25s ease;
}

.property-detail-page .contact-sidebar .contact-submit-btn:hover:not(:disabled) {
	filter: brightness(0.92);
}

.property-detail-page .contact-sidebar .contact-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.property-detail-page .contact-sidebar .form-message {
	margin-top: 12px;
	padding: 10px;
	border-radius: 4px;
}

.property-detail-page .contact-sidebar .success-message {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.property-detail-page .contact-sidebar .error-message {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.property-detail-page .contact-sidebar .quick-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.property-detail-page .contact-sidebar .quick-action-btn {
	display: flex;
	align-items: center;
	padding: 12px 15px;
	border-radius: 6px;
	text-decoration: none;
	color: #fff;
	font-weight: 600;
	border: none;
	cursor: pointer;
	width: 100%;
	box-sizing: border-box;
}

.property-detail-page .contact-sidebar .phone-btn {
	background: #28a745;
}

.property-detail-page .contact-sidebar .email-btn {
	background: #007bff;
}

.property-detail-page .contact-sidebar .schedule-btn {
	background: #fd7e14;
}

/* -------------------------------------------------------------------------
   Sticky agent CTA
   ------------------------------------------------------------------------- */
.property-detail-page #agent-cta {
	display: none;
}

.property-detail-page .pd-agent-cta__peek-tab {
	position: fixed;
	right: 0;
	top: 50%;
	z-index: 10051;
	transform: translateY(-50%);
	display: none;
	padding: 18px 10px;
	margin: 0;
	background: var(--pd-accent);
	color: #fff;
	border: none;
	border-radius: 8px 0 0 8px;
	cursor: pointer;
	font-family: Cinzel, serif;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.15);
	line-height: 1.2;
	transition: background 0.2s ease, transform 0.2s ease;
}

.property-detail-page .pd-agent-cta__peek-tab:hover {
	filter: brightness(1.08);
}

.property-detail-page #agent-cta.is-panel-slid-away .pd-agent-cta__peek-tab {
	display: block;
}

.property-detail-page .pd-agent-cta__panel {
	position: fixed;
	right: 12px;
	top: 50%;
	transform: translateY(-50%) translateX(0);
	width: 300px;
	max-width: calc(100% - 24px);
	max-height: calc(100vh - 24px);
	overflow-y: auto;
	background: #fff;
	border-radius: var(--pd-radius);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
	z-index: 10050;
	padding: 44px 16px 20px;
	border: 1px solid #e8e8e8;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.property-detail-page #agent-cta.is-panel-slid-away .pd-agent-cta__panel {
	transform: translateY(-50%) translateX(calc(100% + 32px));
	opacity: 0;
	pointer-events: none;
}

.property-detail-page .pd-agent-cta__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 2px solid var(--pd-accent);
	border-radius: 0;
	background: #fff;
	color: var(--pd-accent);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s, color 0.2s;
}

.property-detail-page .pd-agent-cta__close:hover {
	background: var(--pd-accent);
	color: #fff;
}

.property-detail-page .pd-agent-cta__avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin: 0 auto 10px;
	background: var(--pd-accent);
	color: #fff;
	font-family: Cinzel, serif;
	font-size: 1.5rem;
	line-height: 72px;
	text-align: center;
}

.property-detail-page .pd-agent-cta__name {
	text-align: center;
	font-weight: 700;
	font-size: 1.05rem;
	margin: 0 0 2px;
}

.property-detail-page .pd-agent-cta__role {
	text-align: center;
	font-size: 0.8rem;
	color: var(--pd-muted);
	margin: 0 0 10px;
}

.property-detail-page .pd-agent-cta__phone {
	text-align: center;
	margin-bottom: 12px;
}

.property-detail-page .pd-agent-cta__phone a {
	color: var(--pd-accent);
	font-weight: 600;
	text-decoration: none;
}

.property-detail-page .pd-agent-cta__divider {
	height: 1px;
	background: #e8e8e8;
	margin: 12px 0;
}

.property-detail-page .pd-agent-cta-form .form-row {
	margin-bottom: 10px;
}

.property-detail-page .pd-agent-cta-form label {
	display: block;
	font-size: 0.8rem;
	margin-bottom: 4px;
	color: var(--pd-muted);
}

.property-detail-page .pd-agent-cta-form input,
.property-detail-page .pd-agent-cta-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 0.9rem;
}

.property-detail-page .pd-agent-cta-form button[type="submit"] {
	width: 100%;
	margin-top: 8px;
	padding: 10px;
	background: var(--pd-accent);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
}

.property-detail-page .pd-agent-cta__msg {
	margin-top: 10px;
	font-size: 0.85rem;
}

/* Mobile bar */
.property-detail-page .pd-agent-cta__mobile-bar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10050;
	background: #fff;
	border-top: 1px solid #ddd;
	padding: 10px 14px;
	align-items: center;
	gap: 12px;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.property-detail-page .pd-agent-cta__mobile-bar img,
.property-detail-page .pd-agent-cta__mobile-bar .pd-agent-cta__avatar {
	width: 44px;
	height: 44px;
	line-height: 44px;
	font-size: 1rem;
	margin: 0;
}

.property-detail-page .pd-agent-cta__mobile-info {
	flex: 1;
	min-width: 0;
}

.property-detail-page .pd-agent-cta__mobile-name {
	font-weight: 700;
	font-size: 0.9rem;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.property-detail-page .pd-agent-cta__contact-up {
	background: var(--pd-accent);
	color: #fff;
	border: none;
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.property-detail-page .pd-agent-cta__modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10060;
	background: #fff;
	flex-direction: column;
	padding: 16px;
	box-sizing: border-box;
	overflow-y: auto;
}

.property-detail-page .pd-agent-cta__modal.is-open {
	display: flex;
}

.property-detail-page .pd-agent-cta__modal-close {
	align-self: flex-end;
	background: #eee;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 1.25rem;
	cursor: pointer;
	margin-bottom: 12px;
}

/* -------------------------------------------------------------------------
   Mortgage / map / widgets spacing
   ------------------------------------------------------------------------- */
.property-detail-page .pd-accordion .pd-section-body .mortgage-calculator-section > .content-container > h2:first-child {
	display: none;
}

.property-detail-page .mortgage-calculator-section,
.property-detail-page .property-map-section,
.property-detail-page .property-widgets-section,
.property-detail-page .school-report-section {
	padding-bottom: 8px;
}

/* Near Properties shortcode: match content column width (plugin default max-width:1200px is narrower) */
.property-detail-page #pd-panel-similar .near-properties-container {
	max-width: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.property-detail-page #pd-panel-similar .near-properties-title {
	display: none;
}

.property-detail-page #pd-panel-similar .near-properties-results {
	margin-top: 0;
}

.property-detail-page #pd-panel-similar .results-header {
	flex-wrap: wrap;
	gap: 12px;
}

.property-detail-page #pd-panel-similar .near-properties-grid {
	width: 100%;
	max-width: 100%;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	box-sizing: border-box;
}

.property-detail-page #pd-panel-similar .widget {
	max-width: 100%;
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
   Breakpoints: 768px, 480px (mobile-first)
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.property-detail-page .pd-stat-tiles {
		grid-template-columns: repeat(2, 1fr);
	}

	.property-detail-page .pd-action-row {
		grid-template-columns: repeat(2, 1fr);
	}

	.property-detail-page .pd-action-btn.pd-action--contact {
		grid-column: 1 / -1;
		background: var(--pd-accent);
		color: #fff;
		border-color: var(--pd-accent);
	}

	.property-detail-page .pd-action-btn.pd-action--contact:hover {
		filter: brightness(1.08);
		color: #fff;
	}

	.property-detail-page .parallax-strip--b .pd-parallax__overlay {
		flex-direction: column;
		align-items: flex-start;
	}

	.property-detail-page .parallax-strip--c .pd-parallax__stat {
		text-align: left;
	}

	.property-detail-page .pd-agent-cta__panel,
	.property-detail-page .pd-agent-cta__peek-tab {
		display: none !important;
	}

	.property-detail-page .pd-agent-cta__mobile-bar {
		display: flex;
	}

	.property-detail-page .pd-slide-frame {
		height: min(85vh, 100vw);
	}
}

@media (max-width: 480px) {
	.property-detail-page .pd-stat-tiles {
		gap: 10px;
		padding: 18px 0;
	}

	.property-detail-page .pd-stat-tile {
		padding: 16px 10px;
	}

	.property-detail-page .pd-action-row {
		gap: 8px;
	}

	.property-detail-page .pd-label {
		font-size: 0.8rem;
	}

	.property-detail-page .pd-slide-border-overlay {
		top: 12px;
		left: 12px;
		right: 12px;
		bottom: 12px;
	}

	.property-detail-page .pd-slide-labels {
		left: 18px;
		right: 18px;
		bottom: 18px;
	}
}

/* -------------------------------------------------------------------------
   Residential template — page framework (pd-layout regions)
   Semantic wrappers only; visual layout unchanged. Target regions in JS/CSS
   via [data-pd-region="…"] or .pd-layout__region--{name}.
   ------------------------------------------------------------------------- */
.property-detail-page.pd-layout {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.property-detail-page .pd-layout__region {
	width: 100%;
	position: relative;
	box-sizing: border-box;
}

/* Full-bleed strips (gallery + parallax) */
.property-detail-page .pd-layout__region--hero,
.property-detail-page .pd-layout__region--parallax {
	max-width: none;
}

/* Agent dock: wrapper must not clip fixed UI (no overflow/transform here) */
.property-detail-page .pd-layout__region--dock {
	overflow: visible;
}
