/* Schilling Real Estate – property page (0.4.0). Scoped to .sre-pp; the font comes from the theme. */

.sre-pp {
	--sre-ink: #1e2b33;
	--sre-muted: #5a6a74;
	--sre-line: #dfe4e7;
	--sre-surface: #f4f6f7;
	--sre-blue: #1f5f99;
	--sre-blue-dark: #174a78;
	--sre-available: #2e7d4f;
	--sre-soon: #8a5a00;
	--sre-contract: #5b4f9a;
	color: var(--sre-ink);
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	font-variant-numeric: tabular-nums;
	font-size: 16px;
	line-height: 1.55;
	letter-spacing: 0;
	--sre-jump-h: 56px;
}
.sre-pp *,
.sre-pp *::before,
.sre-pp *::after { box-sizing: border-box; }
/* The theme sets its own (smaller) sizes on these; inherit the page size instead. */
.sre-pp :where(p, li, td, th, dt, dd, figcaption, address, span, a) { font-size: inherit; letter-spacing: inherit; }
.sre-pp a { color: var(--sre-blue); }
.sre-pp a:hover { color: var(--sre-blue-dark); }
.sre-pp :focus-visible { outline: 3px solid var(--sre-blue); outline-offset: 2px; }

/* Header: street on the left, acreage as the one large figure on the right. */
.sre-pp-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 32px;
	padding-bottom: 20px;
	margin-bottom: 0;
}
.sre-pp-head h1 {
	margin: 6px 0 2px;
	font-size: clamp(26px, 18px + 1.8vw, 36px);
	line-height: 1.15;
	letter-spacing: -0.01em;
}
.sre-pp-place { margin: 0; color: var(--sre-muted); font-size: 16px; }
.sre-pp-size { margin: 0; line-height: 1; white-space: nowrap; }
.sre-pp-devname { margin: 8px 0 0; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sre-blue); }
.sre-pp-multilot {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 10px;
	border: 2px solid var(--sre-blue);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sre-blue);
	background: #fff;
}
.sre-pp-lots { margin: 10px 0 0; font-size: 20px; font-weight: 700; color: var(--sre-blue); }
.sre-pp-lots-note { margin: 2px 0 0; color: var(--sre-muted); }
.sre-pp-size-num {
	font-size: clamp(36px, 24px + 3vw, 56px);
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--sre-blue);
}
.sre-pp-size-unit { font-size: 16px; color: var(--sre-muted); margin-left: 2px; }

.sre-pp-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: var(--sre-available);
}
.sre-pp-status--coming-soon { background: var(--sre-soon); }
.sre-pp-status--under-contract { background: var(--sre-contract); }

/* Gallery */
.sre-pp-gallery { grid-area: gallery; min-width: 0; }
.sre-pp-gallery-main { display: block; border-radius: 8px; overflow: hidden; background: var(--sre-surface); }
.sre-pp-gallery-main img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.sre-pp-thumbs {
	display: flex;
	gap: 8px;
	list-style: none;
	margin: 10px 0 0;
	padding: 0 0 4px;
	overflow-x: auto;
}
.sre-pp-thumbs li { margin: 0; flex: 0 0 auto; }
.sre-pp-thumb {
	display: block;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	background: none;
	cursor: pointer;
	overflow: hidden;
	opacity: 0.75;
}
.sre-pp-thumb img { display: block; width: 80px; height: 56px; object-fit: cover; }
.sre-pp-thumb:hover,
.sre-pp-thumb.is-current { opacity: 1; border-color: var(--sre-blue); }

/* Body: gallery, then the info card, then the sections on phones.
   Wide screens: gallery and sections on the left; the info card sits to the
   right of the gallery and stays in view while scrolling. It is kept shorter
   than the screen; if a screen is very short it scrolls inside itself. */
.sre-pp-body {
	display: grid;
	gap: 24px 32px;
	grid-template-areas: "gallery" "side" "main";
}
.sre-pp-side { grid-area: side; min-width: 0; }
.sre-pp-main { grid-area: main; min-width: 0; }
@media (min-width: 960px) {
	.sre-pp-body {
		grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
		grid-template-areas: "gallery side" "main side";
		grid-template-rows: auto 1fr;
	}
	.sre-pp-side {
		position: sticky;
		top: calc(var(--sre-jump-h) + 16px);
		align-self: start;
		max-height: calc(100vh - var(--sre-jump-h) - 32px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	.admin-bar .sre-pp-side {
		top: calc(var(--sre-jump-h) + 48px);
		max-height: calc(100vh - var(--sre-jump-h) - 64px);
	}
}
.sre-pp-main > .sre-pp-section + .sre-pp-section { margin-top: 36px; }
/* Section menu, docked under the top of the screen while scrolling.
   The current section always has a blue pill that slides to it as you
   scroll; on narrow screens faded edges show there is more to swipe. */
.sre-pp-jump {
	position: sticky;
	top: 0;
	z-index: 50;
	margin: 0 0 28px;
	background: #fff;
	border-top: 1px solid var(--sre-line);
	border-bottom: 1px solid var(--sre-line);
	transition: box-shadow 0.2s ease;
}
.sre-pp-jump.is-stuck { box-shadow: 0 6px 16px -8px rgba(30, 43, 51, 0.25); }
.admin-bar .sre-pp-jump { top: 32px; }
@media (max-width: 782px) { .admin-bar .sre-pp-jump { top: 46px; } }
@media (max-width: 600px) { .admin-bar .sre-pp-jump { top: 0; } }
.sre-pp-jump-track { position: relative; }
.sre-pp-jump ul {
	position: relative;
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 8px 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.sre-pp-jump ul::-webkit-scrollbar { display: none; }
.sre-pp-jump li { position: relative; z-index: 1; margin: 0; flex: 0 0 auto; }
.sre-pp-jump a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
	color: var(--sre-ink) !important;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.25s ease;
}
.sre-pp-jump a:hover { color: var(--sre-blue) !important; }
.sre-pp-jump a.is-current,
.sre-pp-jump a.is-current:hover { color: #fff !important; }
.sre-pp-jump li.sre-pp-jump-pill {
	position: absolute;
	flex: none;
	z-index: 0;
	top: 8px;
	left: 0;
	height: 0;
	width: 0;
	border-radius: 999px;
	background: var(--sre-blue);
	transition: transform 0.3s ease, width 0.3s ease;
	pointer-events: none;
}
.sre-pp-jump-track::before,
.sre-pp-jump-track::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 40px;
	z-index: 2;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.sre-pp-jump-track::before { left: 0; background: linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)); }
.sre-pp-jump-track::after { right: 0; background: linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)); }
.sre-pp-jump-track.has-more-left::before,
.sre-pp-jump-track.has-more-right::after { opacity: 1; }
@media (max-width: 959px) {
	.sre-pp-jump { margin-left: -16px; margin-right: -16px; padding: 0 8px; }
	.sre-pp-jump a { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.sre-pp-jump-pill { transition: none; }
}
.sre-pp-section,
.sre-pp-gallery { scroll-margin-top: calc(var(--sre-jump-h) + 20px); }
.admin-bar .sre-pp-section { scroll-margin-top: calc(var(--sre-jump-h) + 52px); }

.sre-pp-section h2,
.sre-pp-contact h2 { font-size: 23px; font-weight: 700; line-height: 1.25; margin: 0 0 14px; }
.sre-pp-overview { font-size: 19px; max-width: 68ch; margin: 0 0 18px; }

.sre-pp-highlights { list-style: none; margin: 0; padding: 0; max-width: 72ch; }
.sre-pp-highlights li {
	padding: 10px 0 10px 18px;
	border-top: 1px solid var(--sre-line);
	position: relative;
}
.sre-pp-highlights li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 19px;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--sre-blue);
}
.sre-pp-hl-text { display: block; }
.sre-pp-source { display: block; font-size: 14px; color: var(--sre-muted); margin: 2px 0 0; }
.sre-pp-section > .sre-pp-source { margin-top: 8px; }

/* Tables */
.sre-pp-table-wrap { overflow-x: auto; }
.sre-pp-table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0; }
.sre-pp-table th,
.sre-pp-table td { padding: 9px 12px; border-bottom: 1px solid var(--sre-line); text-align: left; }
.sre-pp-table thead th { font-size: 15px; color: var(--sre-muted); font-weight: 600; }
.sre-pp-table tbody th { font-weight: 600; }
.sre-pp-table .num { text-align: right; white-space: nowrap; }
.sre-pp-road-alt { white-space: nowrap; }

.sre-pp-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.sre-pp-chips li {
	margin: 0;
	padding: 4px 12px;
	border: 1px solid var(--sre-line);
	border-radius: 999px;
	font-size: 15px;
	background: #fff;
}

/* Key numbers under the gallery */
.sre-pp-stats ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0 0 36px;
	padding: 0;
}
.sre-pp-stats li {
	margin: 0;
	padding: 14px 16px;
	border-radius: 8px;
	background: var(--sre-surface);
	border-left: 4px solid var(--sre-blue);
}
.sre-pp-stat-num { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--sre-ink); }
.sre-pp-stat-label { display: block; margin-top: 4px; }
.sre-pp-stat-src { display: block; margin-top: 4px; font-size: 14px; color: var(--sre-muted); }

/* Map, aerial and plans */
.sre-pp-map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.sre-pp-map-actions .sre-pp-button { display: inline-block; margin: 0; }
.sre-pp-map { height: 400px; border-radius: 8px; background: var(--sre-surface); z-index: 0; }
.sre-pp-maplink { margin: 8px 0 0; font-size: 14px; }
.sre-pp-figure { margin: 0; }
.sre-pp-figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.sre-pp-figure figcaption { font-size: 14px; color: var(--sre-muted); margin-top: 6px; }

/* Info card */
.sre-pp-facts { border: 1px solid var(--sre-line); border-radius: 8px; padding: 14px 16px; background: #fff; }
.sre-pp-facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 0 0 12px; }
.sre-pp-facts dl > div { padding: 5px 0; border-bottom: 1px solid var(--sre-line); min-width: 0; }
.sre-pp-facts dl > div.is-wide { grid-column: 1 / -1; }
.sre-pp-facts dt { font-size: 14px; color: var(--sre-muted); line-height: 1.3; }
.sre-pp-facts dd { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.35; }
.sre-pp-features { margin-bottom: 14px; }
.sre-pp-features li { font-size: 14px; padding: 3px 10px; }

.sre-pp-button {
	display: block;
	text-align: center;
	font-size: 16px;
	padding: 11px 16px;
	border-radius: 6px;
	background: var(--sre-blue);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid var(--sre-blue);
}
.sre-pp-button:hover { background: var(--sre-blue-dark); border-color: var(--sre-blue-dark); }
.sre-pp-button--outline { background: #fff; color: var(--sre-blue) !important; margin-top: 10px; }
.sre-pp-button--outline:hover { background: var(--sre-blue); color: #fff !important; }
.sre-pp-card-actions { display: flex; gap: 8px; margin-top: 10px; }
.sre-pp-card-actions .sre-pp-button { flex: 1 1 0; margin: 0; padding: 9px 8px; font-size: 15px; }
.sre-pp-filesize { font-weight: 400; }
.sre-pp-call { margin: 8px 0 0; text-align: center; color: var(--sre-muted); font-size: 16px; }
.sre-pp-call a { color: var(--sre-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.sre-pp-call a:hover { text-decoration: underline; }

/* Contact section with the form, at the end of the page */
.sre-pp-contact {
	padding: 24px;
	border-radius: 8px;
	background: var(--sre-surface);
}
.sre-pp-form { max-width: 680px; }
.sre-pp-contact-lines { margin: 18px 0 0; padding: 0; list-style: none; color: var(--sre-muted); font-size: 16px; }
.sre-pp-contact-lines li { margin: 0 0 6px; padding: 0; overflow-wrap: anywhere; }
.sre-pp-contact-lines span { display: inline-block; min-width: 56px; font-weight: 700; color: var(--sre-ink); }
/* WPForms Submit in the brand style. */
.sre-pp-form button[type="submit"] {
	min-height: 48px;
	padding: 10px 28px !important;
	border: 2px solid var(--sre-blue) !important;
	border-radius: 6px !important;
	background: var(--sre-blue) !important;
	color: #fff !important;
	font-size: 17px !important;
	font-weight: 700;
	cursor: pointer;
}
.sre-pp-form button[type="submit"]:hover { background: var(--sre-blue-dark, #174a78) !important; border-color: var(--sre-blue-dark, #174a78) !important; }

.sre-pp-back { margin: 32px 0 0; }
.sre-pp-back a { font-weight: 700; }

/* Phones: the demographics table becomes a label line over three ring
   columns, so it fits the screen without sideways scrolling. */
@media (max-width: 600px) {
	.sre-pp-demo,
	.sre-pp-demo thead,
	.sre-pp-demo tbody { display: block; width: 100%; }
	.sre-pp-demo tr {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		border-bottom: 1px solid var(--sre-line);
	}
	.sre-pp-demo thead tr > :first-child { display: none; }
	.sre-pp-demo th,
	.sre-pp-demo td { border-bottom: 0; padding: 6px 4px; }
	.sre-pp-demo tbody th { grid-column: 1 / -1; padding: 10px 4px 0; }
	.sre-pp-demo .num { text-align: center; }
	.sre-pp-demo thead th { padding-bottom: 8px; }
	.sre-pp-table .sre-pp-road-alt { display: block; }
}

/* Phones: Directions, Call and Contact fixed to the bottom of the screen. */
.sre-pp-actionbar { display: none; }
@media (max-width: 959px) {
	.sre-pp { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
	.sre-pp-actionbar {
		display: flex;
		gap: 8px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid var(--sre-line);
		box-shadow: 0 -4px 16px rgba(30, 43, 51, 0.12);
	}
	.sre-pp-actionbar a {
		flex: 1;
		text-align: center;
		padding: 12px 8px;
		border-radius: 6px;
		border: 2px solid var(--sre-blue);
		color: var(--sre-blue);
		font-weight: 700;
		text-decoration: none;
		font-size: 15px;
	}
	.sre-pp-actionbar a.is-primary { background: var(--sre-blue); color: #fff; }
	/* Call is the main action on phones, filled and wider, as on SchillingDevelopment.com (0.24.1). */
	.sre-pp-actionbar a.is-call { flex-grow: 1.6; }
	.sre-pp-map { height: 320px; }
	.sre-pp-card-directions { display: none; }
	.sre-pp-stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.sre-pp-stats li { padding: 10px 12px; }
	.sre-pp-stats li:nth-child(odd):last-child { grid-column: 1 / -1; } /* A lone last tile fills the row (0.24.1). */
	.sre-pp-stat-num { font-size: 20px; }
	.sre-pp-stat-label { font-size: 14px; }
}
.sre-pp-editor-note {
	max-width: 1200px;
	margin: 24px auto;
	padding: 14px 16px;
	border-left: 4px solid #b42318;
	background: #fef3f2;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.sre-pp * { transition: none !important; }
}
@media print {
	.sre-pp-thumbs, .sre-pp-map, .sre-pp-form, .sre-pp-back, .sre-pp-button, .sre-pp-actionbar, .sre-pp-map-actions, .sre-pp-jump, .sre-pp-more { display: none; }
	.sre-pp-body { display: block; }
}

/* Full-screen image viewer (nearby-businesses aerial, site plan, photos) */
.sre-pp-figure a,
.sre-pp-gallery-main { position: relative; display: block; cursor: zoom-in; }
.sre-pp-figure a::after {
	content: "Zoom";
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 5px 10px 5px 28px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: rgba(30, 43, 51, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat 9px center;
	pointer-events: none;
}
html.sre-viewer-open,
html.sre-viewer-open body { overflow: hidden; }
.sre-viewer {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(15, 20, 24, 0.94);
}
.sre-viewer.is-open { display: block; }
.sre-viewer-stage {
	position: absolute;
	inset: 0;
	overflow: hidden;
	touch-action: none;
	cursor: grab;
}
.sre-viewer-stage:active { cursor: grabbing; }
.sre-viewer-stage img {
	position: absolute;
	top: 0;
	left: 0;
	max-width: none !important;
	width: auto !important;
	height: auto !important;
	transform-origin: 0 0;
	user-select: none;
	-webkit-user-drag: none;
}
.sre-viewer-bar {
	position: absolute;
	top: calc(12px + env(safe-area-inset-top, 0px));
	right: 12px;
	display: flex;
	gap: 8px;
}
.sre-viewer-bar button {
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 999px;
	font-size: 26px;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, 0.18);
	cursor: pointer;
}
.sre-viewer-bar button:hover { background: rgba(255, 255, 255, 0.3); }
.sre-viewer-bar button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* Gallery arrows. Selectors carry the viewer class and key values are
   !important, because the theme's own button styles (position, colors,
   padding) otherwise win and leave the arrows in the wrong place (0.12.3). */
.sre-viewer .sre-viewer-nav {
	display: none;
	position: absolute !important;
	top: 50% !important;
	bottom: auto !important;
	z-index: 3;
	width: 52px !important;
	height: 52px !important;
	min-width: 0 !important;
	margin: -26px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	font-size: 34px !important;
	line-height: 52px !important;
	text-align: center;
	color: #fff !important;
	background: rgba(255, 255, 255, 0.18) !important;
	cursor: pointer;
}
.sre-viewer.has-many .sre-viewer-nav { display: block; }
.sre-viewer .sre-viewer-prev { left: 12px !important; right: auto !important; }
.sre-viewer .sre-viewer-next { right: 12px !important; left: auto !important; }
.sre-viewer .sre-viewer-nav:hover,
.sre-viewer .sre-viewer-nav:focus { background: rgba(255, 255, 255, 0.3) !important; color: #fff !important; }
.sre-viewer .sre-viewer-nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sre-viewer .sre-viewer-bar { z-index: 3; }
.sre-viewer-count {
	position: absolute;
	top: calc(24px + env(safe-area-inset-top, 0px));
	left: 16px;
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}
.sre-viewer-hint {
	position: absolute;
	max-width: calc(100% - 32px);
	white-space: normal !important;
	text-align: center;
	left: 50%;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	margin: 0;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 14px;
	color: #fff;
	background: rgba(0, 0, 0, 0.5);
	pointer-events: none;
	white-space: nowrap;
}


/* Original sell sheet link under the card buttons (0.16.0). */
.sre-pp-sellsheet { margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--sre-muted); }
.sre-pp-sellsheet a { font-weight: 600; }

/* Driving distance (0.23.0) */
.sre-pp .sre-pp-access-h { margin: 18px 0 8px; font-size: 17px; font-weight: 700; }
.sre-pp .sre-pp-access { margin-bottom: 0; }

/* "More in [town]" cards (0.25.0): swipe row on phones (home page styles); one row on wider screens. */
.sre-pp-more { margin: 48px 0 0; padding-top: 32px; border-top: 1px solid var(--sre-line); }
@media (min-width: 640px) and (max-width: 999px) { .sre-pp-more .sre-pa-grid > li:nth-child(n+5) { display: none; } }
@media (min-width: 1000px) { .sre-pp-more .sre-pa-grid > li:nth-child(n+4) { display: none; } }
@media (max-width: 639px) { .sre-pp-more { margin-top: 36px; padding-top: 28px; } }
