/* ==========================================================================
   Bromley — PPC "New Developments" landing
   Intentionally minimal: the search form (koble_search), the grid (koble_listing)
   and the modal all reuse the theme's themed Bootstrap + Koble styles.
   Only small, landing-specific tweaks live here.
   ========================================================================== */

/* --- Hero -------------------------------------------------------------- */
.ppc-landing .ppc-hero {
	background: #32373c;
	color: #fff;
	/* Top padding clears the overlaid logo; see .ppc-topbar below. */
	padding: 166px 0 56px;
}
@media (max-width: 575.98px) {
	.ppc-landing .ppc-hero {
		padding: 118px 0 40px;
	}
}
.ppc-landing .ppc-hero .ppc-eyebrow {
	letter-spacing: .15em;
	color: #00aca3;
}
.ppc-landing .ppc-hero .ppc-hero-sub {
	max-width: 720px;
	opacity: .85;
}

/* --- Standalone chrome (no site menu/footer) -------------------------- */
/* The logo used to sit on its own black band above the hero. The band made the
   page feel top-heavy and cropped the photo, so the logo now floats over the
   hero itself at roughly twice the size (client request). The hero reserves
   room for it via .ppc-hero's top padding below. */
.ppc-landing {
	position: relative;
}
.ppc-landing .ppc-topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	background: transparent;
	text-align: center;
	padding: 48px 16px 0;
	pointer-events: none;
}
.ppc-landing .ppc-topbar-logo {
	height: 80px;
	width: auto;
	max-width: 78%;
	display: inline-block;
	vertical-align: middle;
	/* Keeps the white mark readable if the photo behind it is pale. */
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45));
}
@media (max-width: 575.98px) {
	.ppc-landing .ppc-topbar {
		padding-top: 34px;
	}
	.ppc-landing .ppc-topbar-logo {
		height: 56px;
	}
}
.ppc-landing .ppc-legal {
	background: #32373c;
	color: #aeb3b6;
	text-align: center;
	padding: 32px 16px 20px;
	font-size: 13px;
}
.ppc-landing .ppc-legal p {
	margin: 0;
}
.ppc-landing .ppc-contact,
.ppc-landing .ppc-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.ppc-landing .ppc-contact {
	gap: .5rem 1.75rem;
	font-size: 15px;
}
.ppc-landing .ppc-legal .ppc-contact a {
	color: #fff;
	overflow-wrap: anywhere;
}
.ppc-landing .ppc-contact .bi {
	color: #00aca3;
	margin-right: .35rem;
}
.ppc-landing .ppc-social {
	gap: .75rem;
	margin: 18px 0 22px;
}
.ppc-landing .ppc-legal .ppc-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 18px;
	text-decoration: none;
	transition: background-color .15s ease;
}
.ppc-landing .ppc-legal .ppc-social a:hover,
.ppc-landing .ppc-legal .ppc-social a:focus-visible {
	background: #00aca3;
}
.ppc-landing .ppc-legal-line {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding-top: 16px;
}
.ppc-landing .ppc-legal a {
	color: #00aca3;
	text-decoration: none;
}
.ppc-landing .ppc-legal a:hover {
	text-decoration: underline;
}

/* Saved-details note (one-click brochures after the first submit) */
.ppc-landing .ppc-saved-note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	background: #eafaf8;
	border: 1px solid #b8e9e4;
	color: #216c66;
	border-radius: 8px;
	padding: .5rem .9rem;
	font-size: .875rem;
	margin: 0 auto 1rem;
	max-width: 720px;
}
.ppc-landing .ppc-saved-note .ppc-saved-clear {
	background: none;
	border: 0;
	color: #00806f;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

/* --- Search box + wireframe filter bar --------------------------------- */
.ppc-landing .ppc-search-box {
	background: #f5f4f2;
}
/* Filter bar (Bootstrap row/col): label + segmented pills per group. */
.ppc-landing .ppc-flabel {
	letter-spacing: .08em;
	white-space: nowrap;
}
.ppc-landing .ppc-seg {
	flex-wrap: nowrap;
}
.ppc-landing .ppc-seg .btn {
	white-space: nowrap;
}
.ppc-landing .ppc-fcount {
	white-space: nowrap;
}
.ppc-landing .ppc-fcount b {
	color: #00aca3;
}

/* Phones: pills go full-width and share the row equally. */
@media (max-width: 575.98px) {
	.ppc-landing .ppc-seg {
		width: 100%;
	}
	.ppc-landing .ppc-seg .btn {
		flex: 1 1 0;
		padding-left: .35rem;
		padding-right: .35rem;
	}
}
/* pull the search box up so it overlaps the hero edge a touch */
.ppc-landing .ppc-search-section {
	margin-top: -2rem;
	position: relative;
	z-index: 2;
}

/* --- Results section heading ------------------------------------------- */
.ppc-landing .ppc-results-section .ppc-section-title {
	color: #32373c;
}

/* Card image: single cover photo (no slider/lazyload dependency), opens quick view. */
/* The image container owns the aspect ratio (override koble's 1.8); the photo
   fills it absolutely so a tall child never overflows onto the title. */
.ppc-landing .listing-property .listing-property_image {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 0; /* the title row's pt-3 already gives the gap; avoid a double space */
}
/* Tighten the title's distance from the photo (was too far) and give the
   action bar some breathing room from the price/specs above (was too tight). */
.ppc-landing .listing-property .listing-property_text.pt-3 {
	padding-top: .75rem !important;
}
.ppc-landing .ppc-card-actions {
	margin-top: .5rem;
}

/* --- Tidy grid: equal-height cards, action bars on one baseline ---------
   The Bootstrap .row already stretches every column of a line to the same
   height; the card content has to fill it. So: card = flex column, photo
   fixed, and the specs/price/actions block pushed to the bottom as a group
   (margin-top:auto) so prices and buttons line up across the row no matter
   how long the title or whether the development eyebrow is there. */
.ppc-landing .row.listing > .listing-property {
	display: flex;
	flex-direction: column;
}
.ppc-landing .listing-property .listing-property_image {
	flex: 0 0 auto;
}
.ppc-landing .listing-property .ppc-card-meta-row {
	margin-top: auto;
}
/* Titles clamp to two lines to keep the top block steady — the full title is
   still shown in the quick view. */
.ppc-landing .listing-property .property-title h3 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* --- Card image carousel (scroll across ~5 pics; no lightbox) ---------- */
.ppc-landing .ppc-carousel {
	position: absolute;
	inset: 0;
	background: #e9ecef;
}
.ppc-landing .ppc-carousel-track {
	display: flex;
	width: 100%;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
}
.ppc-landing .ppc-carousel-track::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}
.ppc-landing .ppc-slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	scroll-snap-align: start;
}
.ppc-landing .ppc-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	cursor: pointer;
}
.ppc-landing .ppc-slide-empty {
	background: #e9ecef;
}
/* prev / next arrows */
.ppc-landing .ppc-cnav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: #32373c;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transition: opacity .15s ease-in-out, background-color .15s ease-in-out;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
	z-index: 2;
}
.ppc-landing .ppc-carousel:hover .ppc-cnav {
	opacity: 1;
}
.ppc-landing .ppc-cnav:hover {
	background: #fff;
}
.ppc-landing .ppc-prev {
	left: 8px;
}
.ppc-landing .ppc-next {
	right: 8px;
}
/* dots */
.ppc-landing .ppc-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	display: flex;
	justify-content: center;
	gap: 5px;
	z-index: 2;
	pointer-events: none;
}
.ppc-landing .ppc-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .6);
	box-shadow: 0 0 2px rgba(0, 0, 0, .35);
	transition: background-color .15s ease-in-out, transform .15s ease-in-out;
}
.ppc-landing .ppc-dot.is-active {
	background: #fff;
	transform: scale(1.25);
}
@media (max-width: 575.98px) {
	.ppc-landing .ppc-cnav {
		opacity: 1; /* touch: always show arrows */
	}
}

/* Card actions on one line: compact icon button + brochure button that grows
   to fill, keeping its label on a single line (never two lines / tall). */
.ppc-landing .ppc-card-actions .ppc-btn-info {
	flex: 0 0 auto;
}
.ppc-landing .ppc-card-actions .ppc-brochure-btn {
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
}

/* Keep the WS Form comfortable inside the Bootstrap modal. */
#ppcBrochureModal .modal-body .ws-form,
#ppcBrochureModal .modal-body form {
	margin-bottom: 0;
}

/* ==========================================================================
   Brochure modal — property-branded card
   ========================================================================== */
.ppc-brochure-modal .modal-content {
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

/* Hero: the photo of the requested development, with a legibility scrim. */
.ppc-brochure-hero {
	position: relative;
	background: #32373c;
	flex: 0 0 auto;
}
.ppc-brochure-hero-img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}
.ppc-brochure-hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20, 22, 24, .9) 0%, rgba(20, 22, 24, .45) 42%, rgba(20, 22, 24, .1) 100%);
	pointer-events: none;
}
.ppc-brochure-close {
	position: absolute;
	top: .9rem;
	right: .9rem;
	z-index: 3;
	background-color: rgba(0, 0, 0, .4);
	border-radius: 50%;
	padding: .6rem;
	background-size: .7em;
	opacity: .9;
}
.ppc-brochure-close:hover {
	opacity: 1;
	background-color: rgba(0, 0, 0, .6);
}
.ppc-brochure-hero-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 1.35rem 1.6rem;
	color: #fff;
}
.ppc-brochure-eyebrow {
	display: inline-block;
	font-size: .7rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
	background: #00aca3;
	padding: .22rem .65rem;
	border-radius: 999px;
	margin-bottom: .6rem;
}
.ppc-brochure-name {
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 .45rem;
	color: #fff;
}
.ppc-brochure-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .3rem .95rem;
	font-size: .95rem;
}
.ppc-brochure-meta .ppc-brochure-loc {
	opacity: .9;
}
.ppc-brochure-meta .ppc-brochure-loc:empty {
	display: none;
}
.ppc-brochure-meta .ppc-brochure-price {
	font-weight: 700;
	color: #fff;
}
.ppc-brochure-body {
	padding: 1.6rem;
}
.ppc-brochure-intro {
	display: flex;
	align-items: center;
	gap: .55rem;
	background: #f5f4f2;
	color: #4b5157;
	border-radius: 10px;
	padding: .75rem .95rem;
	font-size: .9rem;
	margin-bottom: 1.4rem;
}
.ppc-brochure-intro i {
	color: #00aca3;
	font-size: 1.15rem;
	flex: 0 0 auto;
}

/* Hide WS Form's own title (the header above brands the property instead). */
#ppcBrochureModal form h2 {
	display: none !important;
}

/* intl-tel-input nests WS Form's label *inside* .iti (as .form-label, after the
   input), which breaks WS Form's floating label so it drops below the field.
   Fix: reserve space at the top of .iti, pin the label there as a static top
   label, and shift the country-flag container down so it stays aligned with the
   input row (not the taller wrapper). */
#ppcBrochureModal .form-floating:has(.iti) .iti {
	display: block;
	width: 100%;
	padding-top: 1.5rem;
}
#ppcBrochureModal .form-floating:has(.iti) .iti > .form-label {
	position: absolute;
	top: 0;
	left: 0 !important; /* beat the theme's global [data-type=tel] label { left: calc(86px - .75rem) } */
	height: auto;
	width: auto;
	margin: 0;
	padding: 0;
	transform: none;
	transition: none;
	opacity: 1;
	pointer-events: none;
	font-size: .8125rem;
	line-height: 1.2;
	color: #6c757d;
}
#ppcBrochureModal .form-floating:has(.iti) .iti__flag-container {
	/* intl-tel-input forces height:100% !important on this, which spans the label
	   padding too and drops the flag ~11px low; clamp it to the input row. */
	top: 1.5rem !important;
	height: calc(100% - 1.5rem) !important;
}
#ppcBrochureModal .iti__tel-input.form-control {
	width: 100%;
}

/* Responsive */
@media (max-width: 575.98px) {
	.ppc-brochure-hero-img {
		height: 168px;
	}
	.ppc-brochure-hero-body {
		padding: 1.1rem 1.2rem;
	}
	.ppc-brochure-name {
		font-size: 1.22rem;
	}
	.ppc-brochure-body {
		padding: 1.2rem;
	}
}

/* --- Quick view modal -------------------------------------------------- */
#ppcQuickview .btn-close {
	position: absolute;
	right: 1rem;
	top: 1rem;
	z-index: 3;
	background-color: #fff;
	border-radius: 50%;
	padding: .65rem;
	opacity: .95;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
#ppcQuickview .ppc-qv-media {
	position: relative;
	cursor: pointer;
}
#ppcQuickview .ppc-qv-media img {
	object-fit: cover;
	min-height: 240px;
	cursor: pointer;
}
#ppcQuickview .ppc-qv-zoom {
	position: absolute;
	right: .75rem;
	bottom: .75rem;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
#ppcQuickview .ppc-qv-price {
	color: #00aca3;
}
@media (max-width: 767.98px) {
	#ppcQuickview .ppc-qv-media img {
		min-height: 200px;
		max-height: 240px;
	}
}

/* --- Sort dropdown ----------------------------------------------------- */
/* Order along the bar: price pills, then the count, then the dropdown hard
   against the right edge. The count column is the one that flexes, so it does
   the pushing. */
.ppc-landing .ppc-sort-select {
	width: auto;
	min-width: 200px;
	max-width: 100%;
}
@media (min-width: 992px) {
	.ppc-landing .ppc-filterbar .ppc-sort-select {
		margin-left: auto;
	}
}
@media (max-width: 575.98px) {
	.ppc-landing .ppc-sort-select {
		width: 100%;
	}
}

/* --- Development card: vertical rhythm ---------------------------------
   Both figures became ranges, so sharing one row stopped working: a price like
   "€3,250,000 – €13,000,000" is 24 characters and wrapped inside half a column
   while "3 to 4 bed" sat alone on the other half. They are stacked now — a
   quiet specs line, then the price with the whole card width.

   Every block is .row > .col-12 so they share one left edge; spacing is set
   here rather than with utility classes, which were adding up unevenly. */
.ppc-landing .listing-property .ppc-dev-head {
	padding-top: .875rem;
}
.ppc-landing .listing-property .ppc-dev-head .location {
	display: inline-block;
	margin-top: .125rem;
}
.ppc-landing .listing-property .ppc-dev-specs {
	padding-top: .625rem;
}
.ppc-landing .listing-property .ppc-dev-price {
	padding-top: .1875rem;
}
.ppc-landing .listing-property .ppc-card-actions-row {
	padding-bottom: 1.25rem;
}
.ppc-landing .listing-property .ppc-card-actions {
	margin-top: .75rem;
}

/* Specs: quiet, one line, dot between items so a card without a completion
   date doesn't trail a stray separator. */
.ppc-landing .listing-property .ppc-dev-specs .col-12 {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .125rem .625rem;
	font-size: .875rem;
	line-height: 1.4;
	color: #6c757d;
}
.ppc-landing .listing-property .ppc-dev-specs .icon-value {
	margin-right: 0;
	white-space: nowrap;
}
.ppc-landing .listing-property .ppc-dev-specs .icon-value i {
	font-size: 1.05rem;
	margin-right: .25rem;
}
.ppc-landing .listing-property .ppc-dev-specs .col-12 > * + *::before {
	content: "·";
	margin-right: .625rem;
	color: #c8cdd1;
}
.ppc-landing .listing-property .ppc-dev-completion {
	white-space: nowrap;
}

/* Price: the card's headline figure, on its own line. */
.ppc-landing .listing-property .ppc-dev-price .price {
	margin-right: 0;               /* base theme spaces it for the old side-by-side */
	font-size: 1.15rem;
	line-height: 1.3;
	letter-spacing: -.01em;
	white-space: nowrap;           /* never split a range */
	font-variant-numeric: tabular-nums;
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
	/* Three per row at their narrowest — shave the type rather than wrap. */
	.ppc-landing .listing-property .ppc-dev-price .price {
		font-size: 1.05rem;
	}
}
@media (max-width: 400px) {
	.ppc-landing .listing-property .ppc-dev-price .price {
		font-size: 1rem;
	}
}

/* --- Trust band: credibility figures + buyer reviews --------------------
   Sits below the listings on purpose (Koble #442): the visitor came for the
   developments, so nothing gets in front of them. A tinted band separates it
   from the white grid above without needing a hard rule. */
.ppc-landing .ppc-trust {
	background: #f4f6f7;
	border-top: 1px solid #e3e7e9;
	padding: 3rem 0 3.25rem;
}

/* Figures: one row that becomes two columns on a phone rather than a
   stack of four, so the band never pushes the footer out of reach. */
.ppc-landing .ppc-usps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem 1rem;
}
.ppc-landing .ppc-usp {
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: .125rem;
}
.ppc-landing .ppc-usp-value {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	line-height: 1;
	color: #00aca3;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.02em;
}
.ppc-landing .ppc-usp-label {
	font-size: .9375rem;
	font-weight: 600;
	color: #32373c;
	line-height: 1.3;
}
.ppc-landing .ppc-usp-note {
	font-size: .8125rem;
	color: #78838a;
}

.ppc-landing .ppc-trust-title {
	margin: 2.75rem 0 1.25rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: #32373c;
	text-align: center;
}

/* The reviews reuse the card carousel's markup, but that one is absolutely
   positioned to fill a photo box — here it has to sit in the flow and size
   itself to the tallest review. */
.ppc-landing .ppc-reviews-carousel {
	position: relative;
	inset: auto;
	background: transparent;
}
.ppc-landing .ppc-reviews-track {
	height: auto;
	gap: 1rem;
	/* Snapping lands a card clear of the arrow that overlaps the edge. */
	scroll-padding-inline: 0;
	align-items: stretch;
}
.ppc-landing .ppc-review-slide {
	flex: 0 0 calc((100% - 2rem) / 3);
	width: auto;
	height: auto;
	scroll-snap-align: start;
	display: flex;
}
/* Always visible: these aren't an overlay on a photo, and nothing hints at
   the rest of the reviews otherwise. */
.ppc-landing .ppc-reviews-carousel .ppc-cnav {
	opacity: 1;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
	border: 1px solid #e3e7e9;
}
.ppc-landing .ppc-reviews-carousel .ppc-prev {
	left: -14px;
	transform: translateY(-50%);
}
.ppc-landing .ppc-reviews-carousel .ppc-next {
	right: -14px;
}
.ppc-landing .ppc-review {
	flex: 1 1 auto;
	margin: 0;
	background: #fff;
	border: 1px solid #e3e7e9;
	border-radius: 4px;
	padding: 1.25rem 1.25rem 1.125rem;
	display: flex;
	flex-direction: column;
	gap: .625rem;
}
.ppc-landing .ppc-review-stars {
	color: #f0a500;
	font-size: .8125rem;
	line-height: 1;
	letter-spacing: .1em;
}
.ppc-landing .ppc-review-text {
	margin: 0;
	font-size: .9375rem;
	line-height: 1.6;
	color: #4b5358;
	/* The quote mark is decorative; the text already reads as a quote. */
	quotes: none;
}
.ppc-landing .ppc-review-author {
	margin-top: auto;
	font-size: .875rem;
	font-weight: 700;
	color: #32373c;
}

@media (max-width: 991.98px) {
	.ppc-landing .ppc-review-slide {
		flex-basis: calc((100% - 1rem) / 2);
	}
}
@media (max-width: 767.98px) {
	/* A sliver of the next card is what says "there are more". */
	.ppc-landing .ppc-review-slide {
		flex-basis: 88%;
	}
	.ppc-landing .ppc-reviews-carousel .ppc-prev {
		left: 2px;
	}
	.ppc-landing .ppc-reviews-carousel .ppc-next {
		right: 2px;
	}
}
@media (max-width: 575.98px) {
	.ppc-landing .ppc-trust {
		padding: 2.25rem 0 2.5rem;
	}
	.ppc-landing .ppc-usps {
		grid-template-columns: repeat(2, 1fr);
	}
	.ppc-landing .ppc-trust-title {
		margin-top: 2rem;
	}
}
