/* Default single-listing template (includes/views/single-listing.php). */

.gp-single {
	--gp-text: #1d1d1d;
	--gp-muted: #6b6b6b;
	--gp-line: #2b2b2b;
	--gp-soft-line: #e3e3e3;
	--gp-card-line: #e3e6ea;
	--gp-input-bg: #f1f3f5;
	--gp-accent: #3e88c7;
	--gp-back: #a8865a;
	--gp-btn-bg: #9b9b9b;
	--gp-btn-bg-hover: #858585;
	--gp-btn-text: #161616;
	--gp-status-active: #2e6b30;
	--gp-status-pending: #b86e00;
	--gp-status-sold: #a32020;
	--gp-status-other: #2f74b5;
	--gp-status-exclusive: #6b3fa0;
	--gp-sticky-top: 32px; /* Fallback; the script measures the theme's fixed header and overrides this. */

	box-sizing: border-box;
	margin: 0 auto;
	padding: 24px 0 56px;
	color: var(--gp-text);
	font-weight: 400;
	line-height: 1.5;
}

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

.admin-bar .gp-single {
	--gp-sticky-top: 64px;
}

/*
 * Divi draws its sidebar divider on #main-content .container::before. The
 * template already swaps Divi's sidebar body classes for full-width ones;
 * this is the fallback if another plugin re-adds them.
 */
.gp-single-listing-default #main-content .container::before,
.gp-single-content-area::before {
	display: none !important;
}

.gp-single-content-area {
	width: 100% !important;
	padding-top: 0 !important;
}

/*
 * Divi's content container on listing pages only: no 58px top padding and a
 * wider maximum width (Divi's default is 1080px). "html body" outranks Divi's
 * "body:not(.et-tb) #main-content .container" whichever stylesheet loads last.
 */
html body.gp-single-listing-default #main-content .container {
	max-width: 1920px;
	padding-top: 0;
}

/* Back link */

.gp-single a.gp-single-back {
	display: inline-block;
	margin: 0 0 28px;
	color: var(--gp-back);
	font-size: 18px;
	text-decoration: none;
	border: 0;
	box-shadow: none;
}

.gp-single a.gp-single-back:hover,
.gp-single a.gp-single-back:focus {
	text-decoration: underline;
}

/* Two-column layout with sticky request form */

.gp-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 56px;
	align-items: start;
}

/* Full width when there's no inquiry sidebar (IDX pages until platform lead capture). */
.gp-single-layout-no-aside {
	grid-template-columns: minmax(0, 1fr);
}

.gp-single-aside {
	position: sticky;
	top: var(--gp-sticky-top);
	min-width: 0;
	/* On short screens keep the whole form reachable while it is stuck. */
	max-height: calc(100vh - var(--gp-sticky-top) - 16px);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	padding: 2px; /* room for input focus outlines inside the scroll area */
	transition: top 0.2s ease;
}

@media (max-width: 1024px) {
	.gp-single dl.gp-feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gp-single-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.gp-single-aside {
		position: static;
		max-width: 560px;
		max-height: none;
		overflow: visible;
	}
}

/* Header */

.gp-single-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 16px;
}

.gp-single-header-text {
	min-width: 0;
}

.gp-single-status {
	display: inline-block;
	margin: 0 0 6px 8px;
	padding: 2px 7px;
	border-radius: 3px;
	background: var(--gp-status-other);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}

.gp-single-status.gp-status-active,
.gp-single-status.gp-status-new,
.gp-single-status.gp-status-featured {
	background: var(--gp-status-active);
}

.gp-single-status.gp-status-pending {
	background: var(--gp-status-pending);
}

.gp-single-status.gp-status-sold,
.gp-single-status.gp-status-leased {
	background: var(--gp-status-sold);
}

.gp-single-status.gp-status-exclusive {
	background: var(--gp-status-exclusive);
}

.gp-single p.gp-single-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 20px;
	margin: 0 0 14px;
	padding: 0;
}

.gp-single-price-label {
	font-size: 17px;
}

.gp-single-price-value {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
}

.gp-single .gp-single-title {
	margin: 0;
	padding: 0;
	color: var(--gp-text);
	font-family: inherit;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}

.gp-single-street {
	display: block;
	font-size: 26px;
}

.gp-single-locality {
	display: block;
	margin-top: 2px;
	font-size: 18px;
}

.gp-single p.gp-single-open-house {
	margin: 10px 0 0;
	padding: 0;
	font-size: 16px;
}

.gp-single button.gp-single-share {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 6px;
	margin: 4px 0 0;
	padding: 4px 2px;
	border: 0;
	background: none;
	color: var(--gp-muted);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.gp-single button.gp-single-share:hover,
.gp-single button.gp-single-share:focus-visible {
	color: var(--gp-text);
}

.gp-single .gp-single-share .gp-icon {
	width: 18px;
	height: 18px;
	background-color: currentColor;
}

/* Gallery */

.gp-gallery {
	position: relative;
	margin: 0 0 30px;
	background: #f1f1f1;
}

.gp-gallery-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	aspect-ratio: 3 / 2;
	outline-offset: 3px;
}

.gp-gallery-track::-webkit-scrollbar {
	display: none;
}

.gp-gallery-slide {
	flex: 0 0 100%;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
}

.gp-gallery-empty {
	width: 100%;
	height: 100%;
	background: #eee;
}

.gp-single .gp-gallery-slide img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}

.gp-gallery-nav {
	position: absolute;
	top: 50%;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	cursor: pointer;
	transition: background-color 0.15s;
}

.gp-gallery-nav::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	-webkit-mask: var(--gp-chevron) center / 22px no-repeat;
	mask: var(--gp-chevron) center / 22px no-repeat;
}

.gp-gallery-nav:hover,
.gp-gallery-nav:focus-visible {
	background: rgba(0, 0, 0, 0.6);
}

.gp-gallery-prev {
	left: 16px;
	--gp-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.4 5.4 14 4l-8 8 8 8 1.4-1.4L8.8 12z'/%3E%3C/svg%3E");
}

.gp-gallery-next {
	right: 16px;
	--gp-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.6 5.4 10 4l8 8-8 8-1.4-1.4 6.6-6.6z'/%3E%3C/svg%3E");
}

.gp-gallery-count {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 3px 10px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 13px;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}

/* Expand control: opens the full-screen viewer (a plain link without JavaScript). */

.gp-gallery-expand {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	transition: background-color 0.15s;
}

.gp-gallery-expand::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h6v2H7.4l3.3 3.3-1.4 1.4L6 7.4V10H4zm10 0h6v6h-2V7.4l-3.3 3.3-1.4-1.4L16.6 6H14zM4 14h2v2.6l3.3-3.3 1.4 1.4L7.4 18H10v2H4zm14 2.6V14h2v6h-6v-2h2.6l-3.3-3.3 1.4-1.4z'/%3E%3C/svg%3E") center / 20px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h6v2H7.4l3.3 3.3-1.4 1.4L6 7.4V10H4zm10 0h6v6h-2V7.4l-3.3 3.3-1.4-1.4L16.6 6H14zM4 14h2v2.6l3.3-3.3 1.4 1.4L7.4 18H10v2H4zm14 2.6V14h2v6h-6v-2h2.6l-3.3-3.3 1.4-1.4z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.gp-gallery-expand:hover,
.gp-gallery-expand:focus-visible {
	background: rgba(0, 0, 0, 0.7);
}

/* Thumbnail strip (desktop): scroll it and pick a photo. */

.gp-gallery-thumbs {
	display: flex;
	gap: 8px;
	margin: -20px 0 30px;
	padding: 0 0 6px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: thin;
}

.gp-gallery-thumbs[hidden] {
	display: none;
}

.gp-single .gp-gallery-thumb {
	position: relative;
	flex: 0 0 104px;
	height: 70px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: #f1f1f1;
	cursor: pointer;
	opacity: 0.6;
	overflow: hidden;
	transition: opacity 0.15s;
}

.gp-single .gp-gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.gp-single .gp-gallery-thumb:hover,
.gp-single .gp-gallery-thumb:focus-visible,
.gp-single .gp-gallery-thumb[aria-current="true"] {
	opacity: 1;
}

.gp-single .gp-gallery-thumb[aria-current="true"]::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 3px solid var(--gp-text);
	border-radius: 2px;
}

/* Full-screen viewer */

html.gp-lightbox-open {
	overflow: hidden;
}

.gp-lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #0b0b0b;
	color: #fff;
	overflow: hidden;
}

.gp-lightbox::backdrop {
	background: #0b0b0b;
}

.gp-lightbox-track {
	display: flex;
	width: 100%;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	outline: none;
}

.gp-lightbox-track::-webkit-scrollbar {
	display: none;
}

.gp-lightbox-slide {
	display: flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 56px 16px;
	box-sizing: border-box;
	scroll-snap-align: start;
}

.gp-lightbox-slide img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* A photo's description, under it (the editor's photo tiles). */
.gp-lightbox-slide {
	flex-direction: column;
	gap: 10px;
}

.gp-lightbox-slide img {
	min-height: 0;
}

.gp-lightbox-caption {
	max-width: 60rem;
	color: #f3f4f6;
	font-size: 15px;
	line-height: 1.45;
	text-align: center;
}

.gp-lightbox-nav,
.gp-lightbox-close {
	position: absolute;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	cursor: pointer;
	transition: background-color 0.15s;
}

.gp-lightbox-nav:hover,
.gp-lightbox-nav:focus-visible,
.gp-lightbox-close:hover,
.gp-lightbox-close:focus-visible {
	background: rgba(255, 255, 255, 0.28);
}

.gp-lightbox-nav::before,
.gp-lightbox-close::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	-webkit-mask: var(--gp-icon) center / 24px no-repeat;
	mask: var(--gp-icon) center / 24px no-repeat;
}

.gp-lightbox-nav {
	top: 50%;
	margin-top: -24px;
}

.gp-lightbox-prev {
	left: 16px;
	--gp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.4 5.4 14 4l-8 8 8 8 1.4-1.4L8.8 12z'/%3E%3C/svg%3E");
}

.gp-lightbox-next {
	right: 16px;
	--gp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.6 5.4 10 4l8 8-8 8-1.4-1.4 6.6-6.6z'/%3E%3C/svg%3E");
}

.gp-lightbox-close {
	top: 12px;
	right: 12px;
	--gp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.3 5.7 16.9 4.3 12 9.2 7.1 4.3 5.7 5.7 10.6 12l-4.9 4.9 1.4 1.4 4.9-4.9 4.9 4.9 1.4-1.4-4.9-4.9z'/%3E%3C/svg%3E");
}

.gp-lightbox-count {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	padding: 3px 12px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.55);
	font-size: 14px;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}

/* Listing # and key facts */

.gp-single p.gp-single-mls {
	margin: 0 0 24px;
	padding: 0;
	font-size: 19px;
	font-weight: 700;
}

/* Key facts: equal tiles with the icon above the value. */
.gp-single-facts {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	margin: 0 0 48px;
}

.gp-single ul.gp-single-facts-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gp-single ul.gp-single-facts-list li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	margin: 0;
	padding: 20px 12px;
	border-radius: 12px;
	background: var(--gp-input-bg);
	list-style: none;
	text-align: center;
}

.gp-single-fact-value {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: break-word;
}

.gp-single-fact-long {
	font-size: 19px;
	line-height: 1.25;
}

.gp-single-fact-label {
	margin-top: 4px;
	color: var(--gp-muted);
	font-size: 16px;
}

.gp-single .gp-single-fact-value .gp-icon {
	width: 24px;
	height: 24px;
	background-color: var(--gp-muted);
}

.gp-icon-bed {
	--gp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 6h2v7h7V8h8a3 3 0 0 1 3 3v8h-2v-3H4v3H2V6zm5.5 2a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z'/%3E%3C/svg%3E");
}

.gp-icon-bath {
	--gp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3a3 3 0 0 0-3 3v5H2v2h1v2a5 5 0 0 0 3 4.6V21h2v-1h8v1h2v-1.4a5 5 0 0 0 3-4.6v-2h1v-2H6V6a1 1 0 0 1 2 0h2a3 3 0 0 0-3-3z'/%3E%3C/svg%3E");
}

.gp-icon-area {
	--gp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h2v14h14v2H3V3zm4 10h2v2H7v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zM7 9h2v2H7V9zm0-4h2v2H7V5z'/%3E%3C/svg%3E");
}

.gp-icon-home {
	--gp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 11.5h3V20h5.5v-5.5h3V20H19v-8.5h3z'/%3E%3C/svg%3E");
}

.gp-icon-built {
	--gp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21V10l9-7 9 7v11h-6v-6H9v6zm2-2h2v-6h10v6h2v-8l-7-5.5L5 11z'/%3E%3Cpath d='M11 9h2v2h-2z'/%3E%3C/svg%3E");
}

.gp-icon-calendar {
	--gp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3zM5 9v10h14V9zm2 2h2v2H7zm4 0h2v2h-2zm4 0h2v2h-2z'/%3E%3C/svg%3E");
}

.gp-icon-share {
	--gp-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6 16.7 7.3l-1.4 1.4L13 6.4V15h-2V6.4L8.7 8.7 7.3 7.3zM4 12h2v7h12v-7h2v9H4z'/%3E%3C/svg%3E");
}

/* Buttons */

.gp-single .gp-btn,
.gp-single a.gp-btn {
	display: inline-block;
	margin: 0;
	padding: 8px 18px;
	border: 0;
	border-radius: 2px;
	background: var(--gp-btn-bg);
	color: var(--gp-btn-text);
	font: inherit;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.15s;
}

.gp-single .gp-btn:hover,
.gp-single .gp-btn:focus-visible {
	background: var(--gp-btn-bg-hover);
	color: var(--gp-btn-text);
}

/* Sections */

.gp-single-section {
	margin: 0 0 48px;
}

.gp-single .gp-single-section-title {
	margin: 0 0 18px;
	padding: 0;
	color: var(--gp-text);
	font-family: inherit;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
}

.gp-single-description {
	font-size: 16px;
	line-height: 1.6;
}

.gp-single-description > :last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}

.gp-single-video iframe,
.gp-single-video video,
.gp-single-video embed {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* Property features */

/* Groups separated by a rule; three columns of small caps labels over values. */
.gp-feature-group {
	margin: 0;
	padding: 32px 0;
	border-top: 1px solid var(--gp-card-line);
}

.gp-single .gp-feature-group-title {
	margin: 0 0 22px;
	padding: 0;
	color: var(--gp-text);
	font-family: inherit;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}

.gp-single dl.gp-feature-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px 40px;
	margin: 0;
	padding: 0;
}

.gp-single dl.gp-feature-grid-wide {
	grid-template-columns: minmax(0, 1fr);
}

.gp-single .gp-feature dt {
	margin: 0 0 6px;
	padding: 0;
	color: var(--gp-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.gp-single .gp-feature dd {
	margin: 0;
	padding: 0;
	color: var(--gp-text);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;
	overflow-wrap: break-word;
}

.gp-single .gp-feature dd p {
	margin: 0 0 8px;
	padding: 0;
}

.gp-single ul.gp-feature-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gp-single ul.gp-feature-tags li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gp-single ul.gp-feature-tags a {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid var(--gp-soft-line);
	border-radius: 16px;
	color: var(--gp-text);
	font-size: 14px;
	text-decoration: none;
}

.gp-single ul.gp-feature-tags a:hover {
	border-color: var(--gp-muted);
}

/* Map */

.gp-single-map iframe,
.gp-single-map .gp-single-map-frame {
	display: block;
	width: 100%;
	height: 420px;
	border: 0;
}

.gp-map {
	position: relative;
	z-index: 0; /* keeps Leaflet's panes under the theme's sticky header */
	background: #e8eaed;
}

.gp-map-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gp-text);
}

.gp-single .gp-map img {
	max-width: none; /* themes shrink every img; Leaflet tiles must keep their size */
}

.gp-map .gp-map-pin {
	border: 0;
	background: none;
}

.gp-map .gp-map-pin svg {
	display: block;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

/* Mortgage calculator */

.gp-single .gp-mortgage {
	/* Interest is a light tint of the accent, so it always contrasts with the
	   dark principal, whatever colour the agent picked. */
	--gp-mortgage-interest: color-mix(in srgb, var(--gp-btn-bg) 45%, #fff);
	--gp-mortgage-principal: #1b2537;
	padding: 36px;
	border: 1px solid var(--gp-card-line);
	border-radius: 16px;
	background: #fff;
}

.gp-single .gp-mortgage[hidden] {
	display: none;
}

.gp-single .gp-mortgage-title {
	margin: 0 0 28px;
	padding: 0;
	color: var(--gp-text);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
}

.gp-mortgage-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
}

.gp-mortgage-field-wide {
	grid-column: 1 / -1;
}

.gp-mortgage-field label {
	display: block;
	margin: 0 0 8px;
	color: var(--gp-text);
	font-size: 15px;
	font-weight: 600;
}

.gp-mortgage-input {
	position: relative;
	display: block;
}

.gp-single .gp-mortgage-input input {
	display: block;
	width: 100%;
	margin: 0;
	padding: 15px 130px 15px 18px;
	border: 1px solid var(--gp-card-line);
	border-radius: 10px;
	background: #fff;
	color: var(--gp-text);
	font: inherit;
	font-size: 18px;
	box-shadow: none;
	box-sizing: border-box;
}

.gp-single .gp-mortgage-field-price input {
	background: var(--gp-input-bg);
}

.gp-single .gp-mortgage-input input:focus {
	border-color: var(--gp-accent);
	outline: 1px solid var(--gp-accent);
}

.gp-mortgage-suffix {
	position: absolute;
	top: 50%;
	right: 18px;
	transform: translateY(-50%);
	color: var(--gp-muted);
	font-size: 15px;
	pointer-events: none;
}

.gp-mortgage-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 0;
	color: var(--gp-text);
	font-size: 17px;
	cursor: pointer;
}

.gp-mortgage-check input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--gp-btn-bg);
}

.gp-single p.gp-mortgage-error {
	margin: 0;
	padding: 12px 14px;
	border-radius: 8px;
	background: #fbeaea;
	color: #7a1a1a;
	font-size: 15px;
}

.gp-mortgage-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 8px;
}

.gp-single .gp-mortgage-actions .gp-btn {
	padding: 15px 18px;
	border-radius: 6px;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.gp-single .gp-mortgage-actions .gp-btn-outline {
	border: 1px solid var(--gp-btn-bg);
	background: #fff;
	color: var(--gp-text);
}

.gp-mortgage-results {
	margin-top: 32px;
}

.gp-mortgage-monthly {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 36px 20px;
	border-radius: 14px;
	background: #e3eeec;
	text-align: center;
}

.gp-mortgage-monthly-label {
	color: var(--gp-text);
	font-size: 16px;
	font-weight: 600;
}

.gp-mortgage-monthly-value {
	color: var(--gp-btn-bg);
	font-size: 46px;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	filter: brightness(0.85);
}

.gp-mortgage-breakdown {
	display: grid;
	grid-template-columns: minmax(200px, 340px) minmax(0, 1fr);
	gap: 24px 40px;
	align-items: center;
	margin-top: 18px;
	padding: 36px;
	border-radius: 14px;
	background: #f3f4f5;
}

.gp-mortgage-breakdown[hidden] {
	display: none;
}

.gp-mortgage-chart {
	position: relative;
	justify-self: center;
	width: 100%;
	max-width: 340px;
	aspect-ratio: 1;
	container-type: inline-size;
}

.gp-mortgage-chart svg {
	display: block;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.gp-mortgage-chart circle {
	fill: none;
	stroke-width: 22;
}

.gp-mortgage-ring-interest {
	stroke: var(--gp-mortgage-interest);
}

.gp-mortgage-ring-principal {
	stroke: var(--gp-mortgage-principal);
	transition: stroke-dasharray 0.4s ease;
}

.gp-mortgage-chart-center {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 24%;
	color: var(--gp-text);
	/* Sized to the chart, so the centre text fits the ring at any width. */
	font-size: 5.4cqi;
	line-height: 1.25;
	text-align: center;
}

.gp-mortgage-chart-center strong {
	font-size: 9cqi;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.gp-single .gp-mortgage-legend h3 {
	margin: 0 0 18px;
	padding: 0;
	color: var(--gp-text);
	font-size: 26px;
	font-weight: 700;
}

.gp-single .gp-mortgage-legend dl {
	max-width: 360px;
	margin: 0 0 18px;
	padding: 0;
}

.gp-mortgage-legend dl > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #dfe2e6;
}

.gp-single .gp-mortgage-legend dt {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--gp-text);
	font-size: 18px;
	font-weight: 400;
}

.gp-single .gp-mortgage-legend dd {
	margin: 0;
	color: var(--gp-text);
	font-size: 18px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.gp-mortgage-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
}

.gp-mortgage-dot-principal {
	background: var(--gp-mortgage-principal);
}

.gp-mortgage-dot-interest {
	background: var(--gp-mortgage-interest);
}

.gp-single .gp-mortgage-legend p {
	margin: 0;
	color: var(--gp-muted);
	font-size: 16px;
	line-height: 1.5;
}

.gp-mortgage-schedule summary {
	color: var(--gp-text);
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
}

.gp-mortgage-table-wrap {
	max-height: 360px;
	margin-top: 14px;
	overflow: auto;
}

.gp-single .gp-mortgage-schedule table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.gp-single .gp-mortgage-schedule th,
.gp-single .gp-mortgage-schedule td {
	padding: 8px 10px;
	border: 0;
	border-bottom: 1px solid #dfe2e6;
	text-align: right;
}

.gp-single .gp-mortgage-schedule th:first-child {
	text-align: left;
}

.gp-single .gp-mortgage-schedule thead th {
	position: sticky;
	top: 0;
	background: #f3f4f5;
	color: var(--gp-muted);
	font-weight: 600;
}

.gp-single p.gp-mortgage-disclaimer {
	margin: 28px 0 0;
	color: var(--gp-muted);
	font-size: 14px;
	line-height: 1.6;
}

/* Brokerage + disclaimer */

.gp-single-legal {
	margin: 0 0 48px;
	color: var(--gp-muted);
	font-size: 13px;
	line-height: 1.5;
}

.gp-single-legal p {
	margin: 0 0 8px;
	padding: 0;
}

/* Brokerage line under the address (MLS GRID: next to the property details). */
.gp-single p.gp-single-courtesy-top {
	margin: 10px 0 0;
	padding: 0;
	color: var(--gp-text);
	font-size: 16px;
	line-height: 1.45;
}

/* Board attribution box (ADR-0008). Required items stay full size and in
   the normal text colour; only the disclaimer and notices are muted. */
.gp-attribution {
	padding: 32px 28px;
	border-top: 1px solid var(--gp-card-line);
	background: #f6f7f8;
	color: var(--gp-muted);
	font-size: 16px;
	line-height: 1.6;
}

.gp-single .gp-attribution h3.gp-attribution-dom {
	margin: 0 0 12px;
	padding: 0;
	color: var(--gp-text);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
}

.gp-single .gp-attribution p {
	margin: 0 0 12px;
	padding: 0;
}

.gp-single .gp-attribution p.gp-attribution-updated {
	color: var(--gp-muted);
	font-size: 16px;
}

.gp-single .gp-attribution p.gp-attribution-brokerage,
.gp-single .gp-attribution p.gp-attribution-listed-by,
.gp-single .gp-attribution p.gp-attribution-source {
	color: var(--gp-text);
	font-size: 18px;
}

.gp-attribution .gp-sep {
	margin: 0 6px;
	color: var(--gp-muted);
}

.gp-attribution-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	margin: 4px 0 14px;
}

.gp-single .gp-attribution-logos img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0;
}

.gp-single .gp-attribution p.gp-attribution-disclaimer,
.gp-attribution-notice {
	color: var(--gp-muted);
	font-size: 15px;
}

.gp-attribution details.gp-attribution-notice summary {
	color: var(--gp-text);
	cursor: pointer;
}

.gp-attribution details.gp-attribution-notice[open] summary {
	margin-bottom: 8px;
}

.gp-single .gp-attribution p.gp-attribution-credit {
	margin: 16px 0 0;
	font-size: 14px;
}

.gp-attribution-credit a {
	color: inherit;
	text-decoration: underline;
}

/* Request form */

/* A card: agent, tour dates, fields, consent, then the two buttons. */
.gp-inquiry {
	padding: 28px;
	border: 1px solid var(--gp-card-line);
	border-radius: 16px;
	background: #fff;
	text-align: left;
}

.gp-inquiry-custom {
	padding: 0;
	border: 0;
}

.gp-agent {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 24px;
}

.gp-agent-photo {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: #dfe2e6;
	overflow: hidden;
}

.gp-single .gp-agent-photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}

.gp-agent-initials {
	color: var(--gp-text);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.gp-agent-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gp-agent-name {
	color: var(--gp-text);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.gp-agent-subtitle {
	color: var(--gp-muted);
	font-size: 16px;
	line-height: 1.4;
}

.gp-single .gp-inquiry fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.gp-single .gp-inquiry legend {
	width: 100%;
	margin: 0 0 12px;
	padding: 0;
	color: var(--gp-text);
	font-size: 18px;
	text-align: center;
}

.gp-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gp-inputs {
	margin: 4px 0 8px;
}

.gp-single p.gp-input {
	margin: 0 0 14px;
	padding: 0;
}

.gp-single .gp-input input,
.gp-single .gp-input textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 15px 20px;
	border: 1px solid var(--gp-card-line);
	border-radius: 10px;
	background: var(--gp-input-bg);
	color: var(--gp-text);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	box-shadow: none;
	box-sizing: border-box;
}

.gp-single .gp-input textarea {
	min-height: 84px;
	resize: vertical;
}

.gp-single .gp-input input::placeholder,
.gp-single .gp-input textarea::placeholder {
	color: #6b7280;
	opacity: 1;
}

.gp-single .gp-input input:focus,
.gp-single .gp-input textarea:focus {
	border-color: var(--gp-accent);
	outline: 1px solid var(--gp-accent);
	background: #fff;
}

.gp-inquiry-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
}

.gp-single .gp-inquiry-actions .gp-btn {
	display: block;
	width: 100%;
	padding: 13px 18px;
	border-radius: 6px;
	font-size: 17px;
	font-weight: 700;
}

.gp-single .gp-inquiry-actions .gp-btn-outline {
	border: 1px solid #c5cad3;
	background: #fff;
	color: var(--gp-text);
}

.gp-single .gp-inquiry-actions .gp-btn-outline:hover,
.gp-single .gp-inquiry-actions .gp-btn-outline:focus-visible {
	border-color: var(--gp-text);
	background: #fff;
	color: var(--gp-text);
}

.gp-days-wrap {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 16px;
}

.gp-days {
	display: flex;
	flex: 1;
	gap: 6px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.gp-days::-webkit-scrollbar {
	display: none;
}

.gp-single label.gp-day {
	position: relative; /* keeps the hidden radio inside the chip, not the sidebar */
	display: flex;
	flex: 0 0 calc((100% - 12px) / 3);
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 6px 4px;
	border-radius: 2px;
	color: var(--gp-text);
	cursor: pointer;
	scroll-snap-align: start;
	line-height: 1.35;
}

.gp-day input {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.gp-day-name {
	color: var(--gp-muted);
	font-size: 14px;
}

.gp-day-date {
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

.gp-day:hover {
	background: #f0f0f0;
}

.gp-day:has(input:checked) {
	background: var(--gp-btn-bg);
	color: var(--gp-btn-text);
}

.gp-day:has(input:checked) .gp-day-name {
	/* Same colour as the buttons' text, so a custom colour stays readable. */
	color: var(--gp-btn-text);
}

.gp-day:has(input:focus-visible) {
	outline: 2px solid var(--gp-accent);
	outline-offset: 1px;
}

.gp-days-nav {
	position: relative;
	flex: none;
	width: 28px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.gp-days-nav::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--gp-text);
	-webkit-mask: var(--gp-chevron) center / 20px no-repeat;
	mask: var(--gp-chevron) center / 20px no-repeat;
}

.gp-days-nav:disabled::before {
	background: #c4c4c4;
}

.gp-days-prev {
	--gp-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.4 5.4 14 4l-8 8 8 8 1.4-1.4L8.8 12z'/%3E%3C/svg%3E");
}

.gp-days-next {
	--gp-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.6 5.4 10 4l8 8-8 8-1.4-1.4 6.6-6.6z'/%3E%3C/svg%3E");
}

.gp-inquiry .g-recaptcha {
	display: flex;
	justify-content: center;
	margin: 0 0 14px;
}

.gp-hp {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gp-inquiry-form {
	position: relative;
}

.gp-single p.gp-inquiry-notice {
	margin: 0 0 20px;
	padding: 12px 14px;
	border-radius: 3px;
	font-size: 15px;
	text-align: left;
}

.gp-inquiry-notice-success {
	background: #e8f3e8;
	color: #1e4d20;
}

.gp-inquiry-notice-error {
	background: #fbeaea;
	color: #7a1a1a;
}

.gp-inquiry-custom {
	text-align: left;
}

/* Similar listings */

.gp-single-similar {
	margin-top: 24px;
}

.gp-single-edit {
	margin: 0 0 24px;
	font-size: 14px;
}

/* Phones */

@media (max-width: 680px) {
	.gp-single {
		padding-top: 12px;
	}

	.gp-single a.gp-single-back {
		margin-bottom: 18px;
	}

	.gp-single-price-value,
	.gp-single-street {
		font-size: 22px;
	}

	.gp-single-locality {
		font-size: 16px;
	}

	.gp-single-share-label {
		display: none;
	}

	.gp-gallery-nav {
		width: 36px;
		height: 36px;
		margin-top: -18px;
	}

	.gp-gallery-thumbs {
		display: none;
	}

	.gp-inquiry {
		padding: 20px;
	}

	.gp-single .gp-mortgage {
		padding: 22px;
	}

	.gp-mortgage-form,
	.gp-mortgage-actions,
	.gp-mortgage-breakdown {
		grid-template-columns: minmax(0, 1fr);
	}

	.gp-mortgage-breakdown {
		padding: 22px;
	}

	.gp-mortgage-monthly-value {
		font-size: 36px;
	}

	.gp-agent-photo {
		width: 68px;
		height: 68px;
	}

	.gp-lightbox-nav {
		width: 40px;
		height: 40px;
		margin-top: -20px;
	}

	.gp-lightbox-prev {
		left: 6px;
	}

	.gp-lightbox-next {
		right: 6px;
	}

	.gp-lightbox-slide {
		padding: 56px 0;
	}

	.gp-gallery-prev {
		left: 8px;
	}

	.gp-gallery-next {
		right: 8px;
	}

	.gp-single ul.gp-single-facts-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.gp-single-fact-value {
		font-size: 22px;
	}

	.gp-single-fact-long {
		font-size: 17px;
	}

	.gp-single-fact-label {
		font-size: 14px;
	}

	.gp-single .gp-single-section-title {
		font-size: 26px;
	}

	.gp-single .gp-feature-group-title {
		font-size: 21px;
	}

	.gp-single dl.gp-feature-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.gp-single-map iframe,
	.gp-single-map .gp-single-map-frame {
		height: 300px;
	}
}

/*
 * Tour dialog (InquiryView::tour_dialog): a modal opened by "Schedule a Tour".
 * Without JavaScript the button links to #gp-tour, and :target shows the same
 * form in place instead.
 */
.gp-single a.gp-btn[data-gp-tour-open] {
	text-align: center;
	text-decoration: none;
}

.gp-tour-dialog {
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 24px;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: var(--gp-text);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	overflow-y: auto;
	box-sizing: border-box;
}

.gp-tour-dialog::backdrop {
	background: rgba(15, 23, 42, 0.55);
}

.gp-tour-dialog:not([open]):target {
	display: block;
	position: static;
	width: auto;
	max-height: none;
	margin: 24px 0 0;
	box-shadow: none;
	border: 1px solid var(--gp-card-line);
}

.gp-tour-dialog:not([open]):target .gp-tour-close {
	display: none;
}

.gp-tour-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.gp-single .gp-tour-head h2 {
	margin: 0;
	padding: 0;
	font-size: 22px;
	line-height: 1.3;
}

.gp-tour-close {
	flex: none;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: var(--gp-text);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.gp-tour-close:hover,
.gp-tour-close:focus-visible {
	background: #e5e7eb;
}

.gp-single .gp-tour-listing {
	margin: 4px 0 18px;
	padding: 0;
	color: var(--gp-muted);
	font-size: 15px;
}

.gp-single .gp-tour-dialog legend {
	text-align: left;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
}

.gp-day.is-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.gp-times {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	margin: 0 0 16px;
}

.gp-single label.gp-time {
	position: relative;
	display: block;
	margin: 0;
	padding: 9px 4px;
	border: 1px solid var(--gp-card-line);
	border-radius: 6px;
	text-align: center;
	font-size: 14px;
	cursor: pointer;
}

.gp-time input {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.gp-time:has(input:checked) {
	border-color: var(--gp-btn-bg);
	background: var(--gp-btn-bg);
	color: var(--gp-btn-text);
}

.gp-time:has(input:focus-visible) {
	outline: 2px solid var(--gp-accent);
	outline-offset: 1px;
}

.gp-single .gp-tour-note {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: #f6f7f9;
	color: var(--gp-muted);
	font-size: 14px;
	line-height: 1.45;
}

@media (max-width: 600px) {
	.gp-tour-dialog {
		width: 100vw;
		max-width: none;
		height: 100dvh;
		max-height: none;
		margin: 0;
		border-radius: 0;
	}

	.gp-times {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* The photo opens the full-screen viewer (added by the gallery script). */
.gp-gallery-zoomable .gp-gallery-image {
	cursor: zoom-in;
}
