/*
Theme Name: York Student Lettings
Author: Harry Grant Media
Description: Custom block theme for York Student Lettings - quality student HMOs across York. Built from the Claude Design handoff pack.
Version: 0.12.49
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: khalfe
*/

/* ========================================================================
   Design polish that block markup can't express on its own.
   All raw values here come from the design handoff tokens.
   ======================================================================== */

::selection {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--white);
}

html {
	scroll-behavior: smooth;
}

/* ---- Header ------------------------------------------------------------ */

/* WP wraps the header template part in a <header> exactly as tall as its
   content - sticky on the inner group has no room to travel, so the
   WRAPPER must be the sticky element. */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 60;
}

.khalfe-header {
	/* No backdrop-filter here: a blur on this element traps the mobile
	   menu's position:fixed overlay inside the header's own box (116px
	   tall), clipping the navigation on phones. The 0.97 background makes
	   the blur imperceptible anyway. */
	background: rgba(36, 28, 50, 0.97);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.khalfe-header-inner {
	min-height: 74px;
}

/* Logo lockup: gold K square + two-line wordmark */
/* The K square matches the full height of the two-line wordmark (38px). */
.khalfe-logo-mark {
	display: flex;
	flex: none;
}

.khalfe-logo-name {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 20px;
	font-weight: 600;
	color: #ffffff;
	letter-spacing: 0.2px;
	line-height: 1.05;
	white-space: nowrap;
}

.khalfe-logo-sub {
	white-space: nowrap;
}

.khalfe-logo-sub {
	font-size: 10.5px;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
	font-weight: 600;
	line-height: 1.4;
}

.khalfe-logo-mark a {
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 700;
	font-size: 21px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.khalfe-logo-mark a:hover,
.khalfe-logo-name a:hover {
	color: inherit;
}

.khalfe-logo-name a {
	color: #ffffff;
}

/* Doubled class matches core's own specificity so our colour wins. */
.khalfe-header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.82);
	font-size: 14.5px;
	font-weight: 500;
}

.khalfe-header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
	color: #ffffff;
}

.khalfe-header-phone a {
	color: #ffffff;
	font-size: 14.5px;
	font-weight: 600;
}

.khalfe-header-phone a:hover {
	color: var(--wp--preset--color--gold);
}

/* ---- Eyebrow label (small gold uppercase) ------------------------------ */

.khalfe-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

/* ---- Footer ------------------------------------------------------------ */

.khalfe-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.khalfe-footer,
.khalfe-footer p,
.khalfe-footer a {
	color: rgba(255, 255, 255, 0.72);
}

.khalfe-footer-columns p:not(.khalfe-eyebrow):not(.khalfe-footer-logo-mark):not(.khalfe-footer-logo-name) {
	font-size: 14px;
	margin-top: 0;
	margin-bottom: 10px;
}

.khalfe-footer .khalfe-footer-blurb {
	color: rgba(255, 255, 255, 0.6);
	max-width: 280px;
}

.khalfe-footer a:hover {
	color: #ffffff;
}

.khalfe-footer-logo-mark {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 700;
	font-size: 19px;
	line-height: 32px;
	text-align: center;
	display: inline-block;
}

.khalfe-footer-logo-name {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 19px;
	font-weight: 600;
	color: #ffffff;
}

.khalfe-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.khalfe-footer-bottom,
.khalfe-footer-bottom p {
	color: rgba(255, 255, 255, 0.45);
	font-size: 12.5px;
}

.khalfe-footer-devtag {
	text-align: center;
	padding-bottom: 18px;
	margin: 0;
}

/* ---- Cards (used by patterns in later phases) -------------------------- */

.khalfe-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--card-border);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--card);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.khalfe-card-hover:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--custom--shadow--card-hover);
}

/* ---- Availability badges ----------------------------------------------- */

.khalfe-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: var(--wp--custom--radius--pill);
	font-size: 12.5px;
	font-weight: 600;
	padding: 4px 12px;
	line-height: 1.5;
}

.khalfe-badge--available {
	background: var(--wp--custom--badge--available-bg);
	color: var(--wp--custom--badge--available-text);
}

.khalfe-badge--limited {
	background: var(--wp--custom--badge--limited-bg);
	color: var(--wp--custom--badge--limited-text);
}

/* "Occupied" - red per client amendment (was grey in the original tokens). */
.khalfe-badge--let {
	background: #fdecea;
	color: #c0392b;
}

/* ---- Icon chip (46×46 gold-tinted square) ------------------------------ */

.khalfe-icon-chip {
	width: 46px;
	height: 46px;
	border-radius: var(--wp--custom--radius--chip);
	background: var(--wp--preset--color--gold-tint);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---- Shared animation from the design ---------------------------------- */

@keyframes khalfe-fade-up {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ========================================================================
   Mobile & tablet responsiveness (handoff addendum)
   Breakpoints: desktop ≥1024 · tablet 640–1023 · mobile ≤639
   Additive only - desktop rules above are untouched.
   ======================================================================== */

/* ---- BRAND COLOURS ------------------------------------------------------
   Every brand colour is defined ONCE in theme.json (settings.color.palette)
   and referenced here as var(--wp--preset--color--<slug>). To rebrand the
   site, edit the palette values in theme.json - nothing else.
   Inline SVG icons in templates are remapped by the [stroke=]/[fill=]
   rules near the end of this file. ------------------------------------- */

/* ---- Global guards ----------------------------------------------------- */

body {
	/* clip (not hidden) - hidden makes the body a scroll container, which
	   silently breaks scrolling to #anchors site-wide */
	overflow-x: clip;
}

/* One visible focus style for every interactive element (keyboard users). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

/* Screen-reader-only content. */
.khalfe-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Visitors with "reduce motion" set get instant state changes instead of
   transitions (hover/focus states still apply, just without animation).
   The review carousel's auto-scroll already disables itself in JS. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	html {
		scroll-behavior: auto !important;
	}
}

h1, h2, h3, h4, h5, h6 {
	text-wrap: pretty;
}

/* Container side padding: 28px desktop → 24px tablet → 18px mobile */
@media (max-width: 1023px) {
	body {
		--wp--style--root--padding-left: 24px !important;
		--wp--style--root--padding-right: 24px !important;
	}
}

@media (max-width: 639px) {
	body {
		--wp--style--root--padding-left: 18px !important;
		--wp--style--root--padding-right: 18px !important;
	}
}

/* ---- Header: hamburger below 1024px ------------------------------------ */

/* Desktop: hide the extra items that only belong in the mobile menu. */
@media (min-width: 1024px) {
	.khalfe-header .khalfe-nav-mobile-only {
		display: none;
	}
}

@media (max-width: 1023px) {
	/* Show the hamburger button (WordPress only shows it below 600px by default).
	   Padded to a 44x44 touch target (icon stays 24px). */
	.khalfe-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
		color: #ffffff;
		padding: 10px;
		margin: -10px;
	}

	/* Hide the inline links row until the menu is opened. */
	.khalfe-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	/* Hide the inline phone number (it lives inside the menu instead). */
	.khalfe-header .khalfe-header-phone {
		display: none;
	}
}

/* Mobile: the gold CTA moves inside the menu; header slims to 64px. */
@media (max-width: 639px) {
	/* The CTA wrapper is empty on mobile - remove it entirely so the
	   hamburger sits flush against the right edge. */
	.khalfe-header .khalfe-header-cta {
		display: none;
	}

	.khalfe-header .wp-block-navigation {
		margin-left: auto;
	}

	.khalfe-header-inner {
		min-height: 64px;
	}
}

/* ---- Open menu overlay (navy panel) ------------------------------------ */

.khalfe-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--navy);
	padding: 84px 24px 32px;
}

/* Let menu rows span the full panel width (core shrink-wraps the list). */
.khalfe-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.khalfe-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
}

.khalfe-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.9);
	font-size: 17px;
	font-weight: 500;
	padding: 10px 0; /* ≥44px tap target */
}

.khalfe-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
	color: #ffffff;
}

/* Phone entry: separated from the page links above it. */
.khalfe-header .wp-block-navigation__responsive-container.is-menu-open .khalfe-nav-overlay-phone {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	margin-top: 14px;
	padding-top: 14px;
	width: 100%;
}

.khalfe-header .wp-block-navigation__responsive-container.is-menu-open .khalfe-nav-overlay-phone .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: #ffffff;
	font-weight: 600;
}

/* Gold full-width "Book a viewing" button inside the menu. */
.khalfe-header .wp-block-navigation__responsive-container.is-menu-open .khalfe-nav-overlay-cta {
	width: 100%;
	margin-top: 10px;
}

.khalfe-header .wp-block-navigation__responsive-container.is-menu-open .khalfe-nav-overlay-cta .wp-block-navigation-item__content.wp-block-navigation-item__content {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--white);
	border-radius: 10px;
	padding: 13px 20px;
	font-weight: 700;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	justify-content: center;
}

.khalfe-header .wp-block-navigation__responsive-container.is-menu-open .khalfe-nav-overlay-cta .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--gold-dark);
	color: var(--wp--preset--color--navy);
}

/* Close (X) button: white, and padded to a 44x44 touch target. */
.khalfe-header .wp-block-navigation__responsive-container-close {
	color: #ffffff;
	padding: 10px;
}

/* ---- Footer collapse ---------------------------------------------------- */

/* Tablet: 2×2 grid */
@media (min-width: 640px) and (max-width: 1023px) {
	.khalfe-footer .wp-block-columns.khalfe-footer-columns {
		flex-wrap: wrap !important;
		gap: 32px 40px !important;
	}

	.khalfe-footer .wp-block-columns.khalfe-footer-columns > .wp-block-column {
		flex-basis: calc(50% - 20px) !important;
		flex-grow: 0;
	}
}

/* Mobile: single stacked column */
@media (max-width: 639px) {
	.khalfe-footer .wp-block-columns.khalfe-footer-columns {
		flex-wrap: wrap !important;
		gap: 28px !important;
	}

	.khalfe-footer .wp-block-columns.khalfe-footer-columns > .wp-block-column {
		flex-basis: 100% !important;
		flex-grow: 0;
	}

	.khalfe-footer-bottom .wp-block-group {
		justify-content: flex-start;
	}
}

/* ========================================================================
   Phase 4 - page components (values from the design handoff)
   ======================================================================== */

/* ---- Shared section bits ----------------------------------------------- */

.khalfe-h2 {
	font-size: 34px;
	letter-spacing: -0.3px;
	margin: 0 0 6px;
}

.khalfe-section-sub {
	font-size: 15.5px;
	color: var(--wp--preset--color--muted);
	margin: 0 0 28px;
	max-width: 560px;
}

/* Universities band intro fits on one line */
.khalfe-uniband .khalfe-section-sub {
	max-width: none;
}

/* ---- Home hero ---------------------------------------------------------- */

.khalfe-hero {
	position: relative;
	background-color: var(--wp--preset--color--navy);
	background-size: cover;
	background-position: center;
	z-index: 2;
}

.khalfe-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(36, 28, 50, 0.78) 0%, rgba(36, 28, 50, 0.55) 45%, rgba(36, 28, 50, 0.86) 100%);
}

.khalfe-hero__inner {
	position: relative;
	padding-top: 84px;
	padding-bottom: 64px;
}

.khalfe-hero__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 7px 14px;
	border-radius: 999px;
	margin: 0 0 24px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.2px;
}

.khalfe-hero__pill-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3ec47a;
	box-shadow: 0 0 0 3px rgba(62, 196, 122, 0.25);
}

.khalfe-hero__title {
	color: #fff;
	font-size: 60px;
	line-height: 1.05;
	letter-spacing: -0.5px;
	margin: 0 0 18px;
	max-width: 760px;
}

.khalfe-hero__sub {
	font-size: 19px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.86);
	max-width: 560px;
	margin: 0;
}

/* ---- Filter bar (static shell - Phase 5 wires it up) -------------------- */

.khalfe-filterbar-wrap {
	position: relative;
	z-index: 30;
	max-width: 1060px;
	margin: 0 auto;
	transform: translateY(50%);
}

.khalfe-filterbar-wrap--flat {
	transform: none;
	margin-bottom: 30px;
}

.khalfe-filterbar {
	display: flex;
	align-items: stretch;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 60px -18px rgba(36, 28, 50, 0.45);
	border: 1px solid #e7e3da;
}

.khalfe-filterbar__seg {
	flex: 1;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
	padding: 16px 22px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-family: inherit;
	border-radius: 18px 0 0 18px;
}

.khalfe-filterbar__seg--area {
	flex: 1.4;
}

.khalfe-filterbar__seg:hover {
	background: #faf8f4;
}

.khalfe-filterbar__seg-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--wp--preset--color--navy);
}

.khalfe-filterbar__seg-value {
	font-size: 15px;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

.khalfe-filterbar__divider {
	width: 1px;
	background: #e7e3da;
	margin: 12px 0;
}

.khalfe-filterbar__searchwrap {
	display: flex;
	align-items: center;
	padding-right: 10px;
}

.khalfe-filterbar__search {
	display: flex;
	align-items: center;
	gap: 9px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--white);
	border: none;
	cursor: pointer;
	font-weight: 700;
	font-size: 15px;
	font-family: inherit;
	padding: 0 22px;
	height: 52px;
	border-radius: 13px;
}

.khalfe-filterbar__search:hover {
	background: var(--wp--preset--color--gold-dark);
}

/* ---- Stats strip --------------------------------------------------------- */

.khalfe-stats {
	position: relative;
	z-index: 1;
	background: #fff;
	border-bottom: 1px solid var(--wp--preset--color--card-border);
}

.khalfe-stats__row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	padding: 72px 0 42px;
}

.khalfe-stats__item {
	text-align: center;
}

.khalfe-stats__item + .khalfe-stats__item {
	border-left: 1px solid var(--wp--preset--color--card-border);
}

.khalfe-stats__num {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 38px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.khalfe-stats__label {
	font-size: 13.5px;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
	margin-top: 2px;
}

/* ---- Property grid ------------------------------------------------------- */

.khalfe-results {
	padding-top: 56px;
	padding-bottom: 20px;
}

.khalfe-results--archive {
	padding-top: 40px;
	padding-bottom: 80px;
}

ul.khalfe-prop-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	list-style: none;
	padding: 0;
	margin: 0;
}

ul.khalfe-prop-grid > li {
	margin: 0;
}

.khalfe-prop-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(36, 28, 50, 0.04);
	transition: box-shadow 0.2s, transform 0.2s;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.khalfe-prop-card:hover {
	box-shadow: 0 18px 40px -20px rgba(36, 28, 50, 0.32);
	transform: translateY(-3px);
}

.khalfe-prop-card__media {
	position: relative;
}

.khalfe-prop-card__img,
.khalfe-prop-card__img img {
	display: block;
	width: 100%;
	height: 212px;
	object-fit: cover;
}

.khalfe-prop-card__img-empty {
	display: block;
	width: 100%;
	height: 212px;
	background: linear-gradient(135deg, var(--wp--preset--color--navy-alt), var(--wp--preset--color--navy));
}

.khalfe-prop-card__area-pill {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(36, 28, 50, 0.9);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 999px;
}

.khalfe-prop-card__avail {
	position: absolute;
	bottom: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 12px;
}

.khalfe-badge__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
}

.khalfe-prop-card__body {
	display: block;
	padding: 17px 18px 19px;
	color: inherit;
	flex: 1;
}

.khalfe-prop-card__titlerow {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.khalfe-prop-card__title {
	font-size: 19px;
	margin: 0;
	line-height: 1.2;
	letter-spacing: -0.3px;
}

.khalfe-prop-card__rating {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	white-space: nowrap;
}

.khalfe-prop-card__dist {
	font-size: 13.5px;
	color: var(--wp--preset--color--muted-light);
	margin: 4px 0 14px;
}

.khalfe-prop-card__specs {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--wp--preset--color--divider);
}

.khalfe-prop-card__spec {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 500;
	color: #5b616e;
}

.khalfe-prop-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
}

.khalfe-prop-card__price {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 25px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.khalfe-prop-card__price-unit {
	font-size: 13px;
	color: var(--wp--preset--color--muted-light);
	font-weight: 500;
}

.khalfe-prop-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--wp--preset--color--gold-dark);
}

/* ---- Area tiles & cards -------------------------------------------------- */

.khalfe-areas-section {
	background: #fff;
	/* Top padding mirrors the 48px sitting under the Discover all areas button. */
	padding-top: 48px;
	padding-bottom: 48px;
}

/* Below the grid's View all button, mirror the 32px gap above it (20px came
   from the section itself). */
.khalfe-prop-query + .khalfe-viewall-wrap {
	margin-bottom: 12px;
}

.khalfe-areas--tiles {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
}

.khalfe-areas--tiles .khalfe-area-tile {
	width: calc((100% - 72px) / 5);
}

.khalfe-area-tile {
	position: relative;
	height: 150px;
	border-radius: 14px;
	overflow: hidden;
	display: block;
	background: linear-gradient(135deg, var(--wp--preset--color--navy-alt), var(--wp--preset--color--navy));
	transition: transform 0.18s ease;
}

.khalfe-area-tile:hover {
	transform: translateY(-2px);
}

.khalfe-area-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.khalfe-area-tile__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(36, 28, 50, 0.15), rgba(36, 28, 50, 0.82));
}

.khalfe-area-tile__text {
	position: absolute;
	left: 15px;
	bottom: 13px;
	right: 15px;
}

.khalfe-area-tile__name {
	display: block;
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 19px;
	font-weight: 600;
	color: #fff;
}

.khalfe-area-tile__count {
	display: block;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.82);
	font-weight: 500;
}

.khalfe-areas--cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.khalfe-areas-page {
	padding-top: 48px;
	padding-bottom: 64px;
}

.khalfe-area-card {
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.khalfe-area-card__media img,
.khalfe-area-card__img-empty {
	display: block;
	width: 100%;
	height: 170px;
	object-fit: cover;
	background: linear-gradient(135deg, var(--wp--preset--color--navy-alt), var(--wp--preset--color--navy));
}

.khalfe-area-card__body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.khalfe-area-card__toprow {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.khalfe-area-card__name {
	font-size: 20px;
	margin: 0;
}

.khalfe-area-card__count {
	font-size: 12.5px;
	color: var(--wp--preset--color--muted-light);
	font-weight: 600;
	white-space: nowrap;
}

.khalfe-area-card__from {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--wp--preset--color--gold-dark);
	margin-top: 3px;
	margin-bottom: 16px;
}

.khalfe-area-card__btn {
	display: block;
	margin-top: auto;
	text-align: center;
	background: var(--wp--preset--color--navy);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 12px;
	border-radius: 10px;
}

.khalfe-area-card__btn:hover {
	background: var(--wp--preset--color--navy-alt);
	color: #fff;
}

/* ---- Why band ------------------------------------------------------------ */

.khalfe-whyband {
	padding-top: 72px;
	padding-bottom: 72px;
}

.khalfe-whyband__grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 60px;
	align-items: center;
}

.khalfe-whyband__title {
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 600;
	font-size: 38px;
	color: #fff;
	line-height: 1.12;
	margin: 0 0 18px;
	letter-spacing: -0.4px;
}

.khalfe-whyband__copy {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
	margin: 0 0 26px;
}

.khalfe-whyband__btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--white);
	font-weight: 700;
	font-size: 15px;
	padding: 13px 22px;
	border-radius: 10px;
}

.khalfe-whyband__btn:hover {
	background: #d49a4a;
	color: var(--wp--preset--color--navy);
}

.khalfe-whyband__cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.khalfe-whyband__card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	padding: 22px;
}

.khalfe-whyband__card-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(186, 15, 49, 0.16);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.khalfe-whyband__card-title {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 5px;
}

.khalfe-whyband__card-body {
	font-size: 13.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.66);
}

/* ---- Reviews ------------------------------------------------------------- */

.khalfe-reviews {
	padding-top: 64px;
	padding-bottom: 56px;
}

.khalfe-reviews__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.khalfe-reviews__scorebox {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	padding: 12px 18px;
	border-radius: 12px;
}

.khalfe-reviews__score {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 30px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.khalfe-stars {
	color: var(--wp--preset--color--gold);
	font-size: 15px;
	letter-spacing: 2px;
}

.khalfe-reviews__count {
	font-size: 12.5px;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

/* Carousel prev/next arrows: either side of the track, fully outside the
   cards. Hidden on narrower screens (the track swipes/scrolls instead). */
.khalfe-carousel-wrap {
	position: relative;
}

.khalfe-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--card-border);
	background: #fff;
	color: var(--wp--preset--color--navy);
	cursor: pointer;
}

.khalfe-carousel-arrow--prev {
	left: -60px;
}

.khalfe-carousel-arrow--next {
	right: -60px;
}

.khalfe-carousel-arrow:hover {
	background: var(--wp--preset--color--navy);
	color: #fff;
	border-color: var(--wp--preset--color--navy);
}

@media (max-width: 1339px) {
	.khalfe-carousel-arrow { display: none; }
}

/* Home review carousel: horizontal snap track, auto-advanced by
   review-carousel.js (3 cards in view on desktop). */
.khalfe-reviews__grid {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.khalfe-reviews__grid::-webkit-scrollbar {
	display: none;
}

.khalfe-reviews__grid > .khalfe-review-card {
	flex: 0 0 calc((100% - 44px) / 3);
	scroll-snap-align: start;
	box-sizing: border-box;
}

/* Reviews page: all reviews shown at once, 3 cards wide. */
.khalfe-reviews-page__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.khalfe-reviews__grid {
	margin-top: 10px;
}

.khalfe-review-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	border-radius: 16px;
	padding: 26px;
	display: flex;
	flex-direction: column;
}

.khalfe-review-card .khalfe-stars {
	margin-bottom: 14px;
}

.khalfe-review-card p {
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--wp--preset--color--ink);
	margin: 0 0 22px;
	flex: 1;
}

.khalfe-review-card__who {
	display: flex;
	align-items: center;
	gap: 12px;
}

.khalfe-review-card__avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--wp--preset--color--navy);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
	flex-shrink: 0;
}

.khalfe-review-card__name {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--wp--preset--color--navy);
}

.khalfe-review-card__role {
	font-size: 12.5px;
	color: var(--wp--preset--color--muted-light);
}

.khalfe-review-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.khalfe-google-g {
	font-weight: 700;
	font-size: 15px;
	color: #4285F4;
	font-family: Arial, sans-serif;
}

/* ---- CTA band ------------------------------------------------------------ */

.khalfe-ctaband-wrap {
	padding-bottom: 80px;
}

.khalfe-ctaband {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--navy-alt);
	border-radius: 22px;
	padding: 56px;
	display: grid;
	grid-template-columns: 1.3fr 0.7fr;
	gap: 40px;
	align-items: center;
}

.khalfe-ctaband__title {
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 600;
	font-size: 36px;
	color: #fff;
	margin: 0 0 12px;
	letter-spacing: -0.4px;
}

.khalfe-ctaband__copy {
	font-size: 16.5px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
	max-width: 480px;
}

.khalfe-ctaband__btns {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.khalfe-ctaband__book,
.khalfe-ctaband__wa,
.khalfe-ctaband__ghost {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font-weight: 700;
	font-size: 15.5px;
	padding: 16px;
	border-radius: 12px;
}

.khalfe-ctaband__book {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--white);
}

.khalfe-ctaband__book:hover {
	background: #d49a4a;
	color: var(--wp--preset--color--navy);
}

.khalfe-ctaband__wa {
	background: #25D366;
	color: #0b3d22;
}

.khalfe-ctaband__wa:hover {
	background: #1fc05c;
	color: #0b3d22;
}

.khalfe-ctaband__ghost {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.khalfe-ctaband__ghost:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

/* ---- Page banner (navy strip on subpages) -------------------------------- */

.khalfe-banner {
	background: var(--wp--preset--color--navy);
	background-size: cover;
	background-position: center;
	position: relative;
	padding-top: 54px;
	padding-bottom: 46px;
	/* Every inner-page banner matches the tallest (universities) so page
	   headers are a consistent height site-wide. Content anchors to the
	   top padding (not centred) so the crumb and title sit at exactly
	   the same spot on every page, with or without a subtitle. */
	min-height: 247px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

/* Flex items shrink-wrap under core's auto side margins, which would
   centre the crumb and title horizontally - full width restores the
   normal left-aligned constrained column. */
.khalfe-banner > * {
	width: 100%;
}

/* Tenant hub banner: show the lower-middle of the photo so the key is
   fully in view (page id 1352 = /tenants/). The application page reuses
   the same photo, so its banner (class, not id - ids differ on live)
   gets the same framing. */
.page-id-1352 .khalfe-banner,
.khalfe-banner--tenantapp {
	background-position: center 62%;
}

/* Reviews banner: line the strip up with the row of red houses
   (page id 26 = /reviews/). */
.page-id-26 .khalfe-banner {
	background-position: center 40%;
}

.khalfe-banner--photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(36, 28, 50, 0.82), rgba(36, 28, 50, 0.7));
}

/* Map banner: the artwork is already navy - keep the overlay light. */
.khalfe-banner--map::before {
	background: linear-gradient(180deg, rgba(36, 28, 50, 0.45), rgba(36, 28, 50, 0.25));
}

.khalfe-banner > * {
	position: relative;
}

.khalfe-banner__crumb {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
	font-weight: 500;
	margin-bottom: 14px;
	display: flex;
	gap: 8px;
}

.khalfe-banner__crumb a {
	color: rgba(255, 255, 255, 0.55);
}

.khalfe-banner__crumb a:hover {
	color: #fff;
}

.khalfe-banner__crumb-here {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
}

.khalfe-banner__title {
	color: #fff;
	margin: 0 0 10px;
	font-size: 44px;
	letter-spacing: -0.5px;
}

.khalfe-banner__sub {
	font-size: 16.5px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.8);
	max-width: 620px;
	margin: 0;
}

/* ---- Single property ------------------------------------------------------ */

.khalfe-prop {
	padding-top: 24px;
	padding-bottom: 90px;
}

.khalfe-prop__crumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--wp--preset--color--muted-light);
	font-weight: 500;
	margin-bottom: 16px;
}

.khalfe-prop__crumb a {
	color: var(--wp--preset--color--muted-light);
}

.khalfe-prop__crumb a:hover {
	color: var(--wp--preset--color--navy);
}

.khalfe-prop__crumb-current {
	color: var(--wp--preset--color--navy);
	font-weight: 600;
}

.khalfe-prop__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.khalfe-prop__head-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 9px;
}

.khalfe-prop__rating {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.khalfe-prop__title {
	font-size: 38px;
	margin: 0 0 7px;
	letter-spacing: -0.5px;
	line-height: 1.05;
}

.khalfe-prop__addr {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

.khalfe-prop__head-actions {
	align-self: flex-end;
	margin-bottom: 4px;
}

.khalfe-prop__allphotos {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wp--preset--color--navy);
	border: none;
	cursor: pointer;
	padding: 12px 18px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	color: #fff;
}

.khalfe-prop__allphotos:hover {
	background: var(--wp--preset--color--navy-alt);
}

.khalfe-prop__photogrid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 10px;
	height: 480px;
	margin-bottom: 46px;
}

.khalfe-prop__photogrid--solo {
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	height: 420px;
}

.khalfe-prop__photo {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
}

.khalfe-prop__photo--hero {
	grid-row: span 2;
	grid-column: 1;
	border-radius: 18px;
}

.khalfe-prop__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.khalfe-prop__photo-empty {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--wp--preset--color--navy-alt), var(--wp--preset--color--navy));
}

.khalfe-prop__morebtn {
	position: absolute;
	inset: 0;
	border: none;
	cursor: pointer;
	background: rgba(36, 28, 50, 0.55);
	border-radius: 14px;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	font-family: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.khalfe-prop__morebtn:hover {
	background: rgba(36, 28, 50, 0.68);
}

.khalfe-prop__viewall-mobile {
	display: none;
}

.khalfe-prop__highlights {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 48px;
}

.khalfe-prop__chipcard {
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.khalfe-prop__chip-val {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 21px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
	line-height: 1;
}

.khalfe-prop__chip-label {
	font-size: 13px;
	color: var(--wp--preset--color--muted-light);
	font-weight: 500;
	margin-top: 3px;
}

.khalfe-prop__cols {
	display: grid;
	/* minmax(0, ...) stops wide content (floor plans) forcing the main
	   column open and crushing the booking sidebar */
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.khalfe-prop__main {
	min-width: 0;
}

.khalfe-prop__h2 {
	font-size: 26px;
	margin: 0 0 14px;
	letter-spacing: -0.3px;
}

.khalfe-prop__about {
	font-size: 16px;
	line-height: 1.68;
	color: var(--wp--preset--color--ink);
	margin-bottom: 18px;
}

.khalfe-prop__distances {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	border-radius: 14px;
	margin-bottom: 18px;
}

.khalfe-prop__dist {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.khalfe-prop__dist-divider {
	width: 1px;
	background: var(--wp--preset--color--card-border);
}

.khalfe-prop__video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(135deg, var(--wp--preset--color--navy-alt), var(--wp--preset--color--navy));
	border: 1px solid var(--wp--preset--color--card-border);
	margin-bottom: 14px;
}

.khalfe-prop__video-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.khalfe-prop__video-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(36, 28, 50, 0.3), rgba(36, 28, 50, 0.72));
}

.khalfe-prop__video-play {
	position: absolute;
	inset: 0;
	border: none;
	cursor: pointer;
	background: none;
	font-family: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
}

.khalfe-prop__video-playbtn {
	width: 78px;
	height: 78px;
	border-radius: 50%;
	background: rgba(186, 15, 49, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
}

.khalfe-prop__video-play:hover .khalfe-prop__video-playbtn {
	background: var(--wp--preset--color--gold);
}

.khalfe-prop__video-title {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
}

.khalfe-prop__video-sub {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.75);
}

.khalfe-prop__video-ext {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: #fff;
	border: 1px solid #e0dccf;
	padding: 12px 20px;
	border-radius: 11px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
	margin-bottom: 48px;
}

.khalfe-prop__video-ext:hover {
	border-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
}

.khalfe-prop__gallery-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.khalfe-prop__gallery-head .khalfe-prop__h2 {
	margin: 0;
}

.khalfe-prop__gallery-viewall {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	color: var(--wp--preset--color--gold-dark);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.khalfe-prop__gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 48px;
}

.khalfe-prop__gallery-item {
	border: none;
	padding: 0;
	cursor: pointer;
	background: none;
	border-radius: 12px;
	overflow: hidden;
}

.khalfe-prop__gallery-item img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
	border-radius: 12px;
}

.khalfe-prop__amenities {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 11px 24px;
	margin-bottom: 48px;
}

.khalfe-prop__amenity {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14.5px;
	color: var(--wp--preset--color--ink);
}

/* Cookie consent banner: "Allow maps" auto-loads Google Maps embeds;
   "No thanks" keeps the click-to-load gate. Reopened via the footer's
   Cookie settings link. */
/* While the mobile menu overlay is open, the banner yields to it. */
html:has(.wp-block-navigation__responsive-container.is-menu-open) .khalfe-cookiebar {
	visibility: hidden;
}

/* On phone property pages, sit above the fixed price/CTA bar. */
@media (max-width: 639px) {
	body.single-property .khalfe-cookiebar {
		bottom: 92px;
	}
}

.khalfe-cookiebar {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	flex-wrap: wrap;
	max-width: 760px;
	margin: 0 auto;
	padding: 18px 24px;
	background: var(--wp--preset--color--navy);
	color: rgba(255, 255, 255, 0.85);
	border-radius: 14px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
	font-size: 13.5px;
}

.khalfe-cookiebar p {
	margin: 0;
	flex: 1 1 320px;
}

.khalfe-cookiebar a {
	color: var(--wp--preset--color--accent-soft);
	text-decoration: underline;
}

.khalfe-cookiebar__btns {
	display: flex;
	gap: 10px;
}

.khalfe-cookiebar__btns button {
	border: 0;
	border-radius: 9px;
	padding: 10px 18px;
	font-weight: 700;
	font-size: 13.5px;
	cursor: pointer;
}

.khalfe-cookiebar__accept {
	background: var(--wp--preset--color--gold);
	color: #fff;
}

.khalfe-cookiebar__decline {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

/* Consent-gated map placeholder (click-to-load fallback when maps are
   not allowed to load automatically). */
.khalfe-prop__map.khalfe-prop__map--gated {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: center;
	padding: 24px 28px;
	background: var(--wp--preset--color--navy);
}

.khalfe-prop__map--gated .khalfe-prop__map-addr {
	color: #fff;
	font-weight: 700;
	margin: 0;
}

.khalfe-prop__map-load {
	background: var(--wp--preset--color--gold);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 11px 26px;
	font-weight: 700;
	font-size: 14.5px;
	cursor: pointer;
}

.khalfe-prop__map-load:hover {
	filter: brightness(1.1);
}

.khalfe-prop__map--gated .khalfe-prop__map-note {
	color: rgba(255, 255, 255, 0.62);
	font-size: 12px;
	max-width: 480px;
	margin: 2px 0 0;
}

.khalfe-prop__map--gated .khalfe-prop__map-note a {
	color: var(--wp--preset--color--accent-soft);
	text-decoration: underline;
}

.khalfe-prop__map {
	position: relative;
	height: 280px;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--card-border);
	background: #eef0ea;
}

.khalfe-prop__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.khalfe-prop__map-pin {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.khalfe-prop__map-pin span {
	background: var(--wp--preset--color--navy);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 8px;
}

/* Booking sidebar */

.khalfe-prop__side {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.khalfe-prop__bookcard {
	background: #fff;
	border: 1px solid #e7e3da;
	border-radius: 18px;
	padding: 24px;
	box-shadow: 0 12px 36px -18px rgba(36, 28, 50, 0.3);
}

.khalfe-prop__priceline {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 4px;
}

.khalfe-prop__price {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 32px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.khalfe-prop__price-unit {
	font-size: 14px;
	color: var(--wp--preset--color--muted-light);
	font-weight: 500;
}

.khalfe-prop__pricemeta {
	font-size: 13.5px;
	color: var(--wp--preset--color--muted);
	margin-bottom: 18px;
}

.khalfe-prop__formtitle {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 21px;
	font-weight: 600;
	letter-spacing: -0.3px;
	color: var(--wp--preset--color--navy);
	margin-bottom: 6px;
}

.khalfe-prop__whatsapp {
	width: 100%;
	margin-top: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	background: #25D366;
	color: #0b3d22;
	font-weight: 700;
	font-size: 15px;
	padding: 13px;
	border-radius: 11px;
	box-sizing: border-box;
}

.khalfe-prop__whatsapp:hover {
	background: #1fc05c;
	color: #0b3d22;
}

.khalfe-prop__socialproof {
	background: var(--wp--preset--color--navy);
	border-radius: 16px;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	gap: 13px;
}

.khalfe-prop__socialproof-dot {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(62, 196, 122, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.khalfe-prop__socialproof-dot span {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #3ec47a;
	box-shadow: 0 0 0 4px rgba(62, 196, 122, 0.25);
}

.khalfe-prop__socialproof-title {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}

.khalfe-prop__socialproof-sub {
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.65);
}

.khalfe-prop__trust {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

/* Mobile fixed action bar (hidden on desktop) */

.khalfe-prop__mobilebar {
	display: none;
}

/* Lightbox */

.khalfe-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(26, 19, 38, 0.94);
	overflow-y: auto;
	padding: 60px 20px 40px;
}

.khalfe-lightbox__close {
	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 101;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.1);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.khalfe-lightbox__scroll {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.khalfe-lightbox__scroll img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

/* ---- WPForms restyle (match design inputs/buttons) ------------------------ */

.khalfe-enquiry-form .wpforms-container,
.khalfe-prop__form .wpforms-container {
	margin: 0 !important;
}

.khalfe-enquiry-form .wpforms-container-full .wpforms-form .wpforms-field,
.khalfe-prop__form .wpforms-container-full .wpforms-form .wpforms-field {
	padding: 6px 0 !important;
}

/* WPForms renders an empty title placeholder above the fields - hide it. */
.khalfe-enquiry-form .wpforms-head-container,
.khalfe-prop__form .wpforms-head-container {
	display: none;
}

.khalfe-enquiry-form .wpforms-field,
.khalfe-prop__form .wpforms-field {
	padding: 6px 0;
}

.khalfe-enquiry-form .wpforms-field-label,
.khalfe-prop__form .wpforms-field-label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
	margin-bottom: 5px;
}

.khalfe-enquiry-form input[type="text"],
.khalfe-enquiry-form input[type="email"],
.khalfe-enquiry-form select,
.khalfe-enquiry-form textarea,
.khalfe-prop__form input[type="text"],
.khalfe-prop__form input[type="email"],
.khalfe-prop__form select,
.khalfe-prop__form textarea {
	width: 100%;
	padding: 12px 14px !important;
	border: 1px solid #e0dccf !important;
	border-radius: 10px !important;
	font-size: 14.5px !important;
	font-family: inherit;
	background: #fff;
	box-sizing: border-box;
	max-width: 100%;
	height: auto !important;
	line-height: 1.4 !important;
}

/* Dropdowns: WPForms fixes their height, which clips the text with our
   padding - let them size naturally and keep a tidy custom arrow. */
.khalfe-enquiry-form select,
.khalfe-prop__form select {
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236c7180' stroke-width='2'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	padding-right: 38px !important;
}

.khalfe-enquiry-form input:focus,
.khalfe-enquiry-form select:focus,
.khalfe-enquiry-form textarea:focus,
.khalfe-prop__form input:focus,
.khalfe-prop__form select:focus,
.khalfe-prop__form textarea:focus {
	border-color: var(--wp--preset--color--navy) !important;
	outline: none;
	box-shadow: none !important;
}

.khalfe-enquiry-form button[type="submit"],
.khalfe-prop__form button[type="submit"] {
	width: 100%;
	margin-top: 8px !important;
	background: var(--wp--preset--color--gold) !important;
	color: var(--wp--preset--color--white) !important;
	border: none !important;
	cursor: pointer;
	font-weight: 700 !important;
	font-size: 15px !important;
	font-family: inherit;
	padding: 14px !important;
	border-radius: 11px !important;
}

.khalfe-enquiry-form button[type="submit"]:hover,
.khalfe-prop__form button[type="submit"]:hover {
	background: var(--wp--preset--color--gold-dark) !important;
}

.khalfe-form-powered {
	font-size: 12px;
	color: var(--wp--preset--color--muted-light);
	text-align: center;
	margin: 10px 0 0;
}

/* ---- Book a Viewing page --------------------------------------------------- */

.khalfe-book {
	padding-top: 48px;
	padding-bottom: 80px;
}

.khalfe-book__grid {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	gap: 48px;
	align-items: start;
}

.khalfe-book__formcard {
	background: #fff;
	border: 1px solid #e7e3da;
	border-radius: 18px;
	padding: 30px;
	box-shadow: 0 12px 36px -18px rgba(36, 28, 50, 0.3);
}

.khalfe-book__side {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

@media (max-width: 1023px) {
	.khalfe-book__side {
		position: static;
	}
}

.khalfe-book__contactcard,
.khalfe-book__steps {
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	border-radius: 16px;
	padding: 24px;
}

.khalfe-book__side-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	margin-bottom: 14px;
}

.khalfe-book__phone {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 16px;
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	margin-bottom: 12px;
}

.khalfe-book__wa {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	background: #25D366;
	color: #0b3d22;
	font-weight: 700;
	font-size: 14.5px;
	padding: 12px;
	border-radius: 11px;
}

.khalfe-book__wa:hover {
	background: #1fc05c;
	color: #0b3d22;
}

.khalfe-book__step {
	display: flex;
	gap: 13px;
	margin-bottom: 14px;
}

.khalfe-book__step:last-child {
	margin-bottom: 0;
}

.khalfe-book__step p {
	font-size: 14px;
	line-height: 1.5;
	color: #5b616e;
	margin: 2px 0 0;
}

.khalfe-book__step-n {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--wp--preset--color--gold-tint);
	color: var(--wp--preset--color--gold-dark);
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.khalfe-book__trust {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

/* ---- Reviews page ----------------------------------------------------------- */

.khalfe-reviews-page {
	padding-top: 48px;
	padding-bottom: 72px;
}

.khalfe-reviews-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	border-radius: 16px;
	padding: 20px 26px;
	margin-bottom: 14px;
}

.khalfe-reviews-summary__left {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.khalfe-reviews-summary__score {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 40px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.khalfe-reviews-summary__sync {
	font-size: 13px;
	color: var(--wp--preset--color--muted-light);
	font-weight: 500;
}

.khalfe-reviews-summary__write {
	background: var(--wp--preset--color--navy);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 20px;
	border-radius: 10px;
}

.khalfe-reviews-summary__write:hover {
	background: var(--wp--preset--color--navy-alt);
	color: #fff;
}

.khalfe-reviews-note {
	font-size: 13px;
	color: var(--wp--preset--color--muted-light);
	margin-bottom: 24px;
}

/* ---- Why Us page ------------------------------------------------------------- */

.khalfe-why-page {
	/* values measured against the site-wide 100px section rhythm */
	padding-top: 27px;
	padding-bottom: 55px;
}

.khalfe-why-page--cta {
	padding-top: 2px;
}

.khalfe-why-page__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	margin-bottom: 56px;
}

.khalfe-why-card {
	padding: 26px;
}

.khalfe-why-card h3 {
	font-size: 18px;
	margin: 16px 0 8px;
}

.khalfe-why-card p {
	font-size: 14.5px;
	line-height: 1.6;
	color: #5b616e;
	margin: 0;
}

.khalfe-ctaband--why {
	padding: 48px;
}

/* ---- Area landing page --------------------------------------------------------- */

.khalfe-area-page {
	padding-top: 44px;
	padding-bottom: 72px;
}

.khalfe-area-intro {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	align-items: stretch;
	margin-bottom: 52px;
}

.khalfe-area-intro__media img,
.khalfe-area-intro__img-empty {
	width: 100%;
	height: 100%;
	min-height: 330px;
	object-fit: cover;
	border-radius: 18px;
	display: block;
	background: linear-gradient(135deg, var(--wp--preset--color--navy-alt), var(--wp--preset--color--navy));
}

.khalfe-area-intro__body > .khalfe-eyebrow {
	margin-top: 0;
	margin-bottom: 8px;
}

.khalfe-area-intro__title {
	font-size: 40px;
	margin: 8px 0 14px;
	letter-spacing: -0.5px;
}

.khalfe-area-intro__blurb {
	font-size: 16px;
	line-height: 1.65;
	color: var(--wp--preset--color--ink);
	margin: 0 0 24px;
}

.khalfe-area-intro__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.khalfe-area-intro__stat {
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	border-radius: 12px;
	padding: 16px;
}

.khalfe-area-intro__stat-num {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 22px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.khalfe-area-intro__stat-label {
	font-size: 12.5px;
	color: var(--wp--preset--color--muted-light);
	font-weight: 500;
	margin-top: 3px;
}

.khalfe-area-page__homes-title {
	margin-bottom: 24px;
}

/* ---- Universities page ------------------------------------------------------------ */

.khalfe-uni {
	padding-top: 44px;
	padding-bottom: 80px;
}

.khalfe-uni__toggle {
	display: flex;
	gap: 10px;
	margin-bottom: 34px;
}

.khalfe-uni__toggle-btn {
	background: #fff;
	color: var(--wp--preset--color--navy);
	border: 1px solid #e0dccf;
	font-size: 14.5px;
	font-weight: 600;
	padding: 11px 20px;
	border-radius: 10px;
}

.khalfe-uni__toggle-btn.is-active {
	background: var(--wp--preset--color--navy);
	color: #fff;
	border-color: var(--wp--preset--color--navy);
}

.khalfe-uni__toggle-btn:hover {
	border-color: var(--wp--preset--color--navy);
	color: inherit;
}

.khalfe-uni__toggle-btn.is-active:hover {
	color: #fff;
}

.khalfe-uni__intro {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	align-items: stretch;
	margin-bottom: 44px;
}

.khalfe-uni__photo {
	width: 100%;
	height: 0;
	min-height: 100%;
	object-fit: cover;
	border-radius: 18px;
	display: block;
}

.khalfe-uni__h2 {
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 600;
	font-size: 30px;
	color: var(--wp--preset--color--navy);
	margin: 0 0 12px;
	letter-spacing: -0.4px;
}

.khalfe-uni__blurb {
	font-size: 16px;
	line-height: 1.65;
	color: var(--wp--preset--color--ink);
	margin: 0 0 22px;
}

.khalfe-uni__facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.khalfe-uni__fact {
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	border-radius: 12px;
	padding: 16px;
}

.khalfe-uni__fact-val {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 22px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.khalfe-uni__fact-label {
	font-size: 12.5px;
	color: var(--wp--preset--color--muted-light);
	font-weight: 500;
	margin-top: 3px;
}

.khalfe-uni__h3 {
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 600;
	font-size: 22px;
	color: var(--wp--preset--color--navy);
	margin: 0 0 8px;
}

.khalfe-uni__sub {
	font-size: 15px;
	color: var(--wp--preset--color--muted);
	margin: 0 0 22px;
}

.khalfe-uni__areas {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 44px;
}

.khalfe-uni__areacard {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	border-radius: 14px;
	padding: 18px 20px;
	flex-wrap: wrap;
}

.khalfe-uni__areaname {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 18px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
}

.khalfe-uni__areaname span {
	font-size: 13px;
	font-weight: 700;
	color: var(--wp--preset--color--gold-dark);
	font-family: var(--wp--preset--font-family--hanken);
}

.khalfe-uni__areameta {
	font-size: 13px;
	color: var(--wp--preset--color--muted-light);
	margin-top: 5px;
}

.khalfe-uni__explore {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--wp--preset--color--navy);
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	padding: 9px 15px;
	border-radius: 9px;
}

.khalfe-uni__explore:hover {
	background: var(--wp--preset--color--navy-alt);
	color: #fff;
}

.khalfe-uni__travel {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 44px;
}

.khalfe-uni__travelcard {
	padding: 24px;
}

.khalfe-uni__travelhead {
	display: flex;
	align-items: center;
	gap: 13px;
	margin-bottom: 14px;
}

.khalfe-uni__travelhead h4 {
	font-size: 18px;
	margin: 0;
}

.khalfe-uni__travelcard p {
	font-size: 14px;
	line-height: 1.55;
	color: #5b616e;
	margin: 0 0 12px;
}

.khalfe-uni__travelprice {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--wp--preset--color--gold-dark);
}

.khalfe-uni__travelprice a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.khalfe-uni__travelprice a:hover,
.khalfe-uni__travelprice a:focus-visible {
	text-decoration-thickness: 2px;
}

/* ---- Tenant hub (placeholder until the 10ninety CRM goes live) --------- */

.khalfe-tenants {
	/* 48px top matches the gap below the banner on other inner pages. */
	padding: 48px 0 56px;
}

.khalfe-tenants__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px;
}

.khalfe-tenants__card {
	padding: 34px;
	/* Symmetric pair: the description grows, so the Launching soon chip and
	   note pin to the same baseline in both cards. */
	display: flex;
	flex-direction: column;
}

.khalfe-tenants__card .khalfe-icon-chip,
.khalfe-tenants__card .khalfe-tenants__btn {
	align-self: flex-start;
}

.khalfe-tenants__card .khalfe-tenants__btn {
	margin-top: auto;
}

.khalfe-tenants__card .khalfe-tenants__soon-note {
	min-height: 40px;
	margin: 22px 0 0;
}

.khalfe-tenants__card h2 {
	font-size: 22px;
	font-weight: 700;
	margin: 16px 0 10px;
}

.khalfe-tenants__card p {
	color: var(--wp--preset--color--muted);
	margin: 0 0 16px;
}

.khalfe-tenants__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14.5px;
}

.khalfe-tenants__btn--live {
	background: var(--wp--preset--color--gold);
	color: #fff;
}

.khalfe-tenants__btn--live:hover {
	filter: brightness(1.1);
	color: #fff;
}

/* Tenant application embed (Paperform) */
.khalfe-apply__title {
	margin: 52px 0 6px;
	scroll-margin-top: 96px;
}

.khalfe-apply__card {
	padding: 18px 22px;
	margin-top: 18px;
	min-height: 420px;
}

.khalfe-apply__note {
	font-size: 13px;
	color: var(--wp--preset--color--muted);
	max-width: 640px;
	margin: 14px 0 0;
}

.khalfe-tenants__btn--soon {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--muted);
	border: 1px dashed var(--wp--preset--color--card-border);
	cursor: default;
}

.khalfe-tenants__soon-note {
	font-size: 13px;
	margin-top: 22px;
}

.khalfe-tenants__steps-title {
	margin: 46px 0 18px;
}

.khalfe-tenants__steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.khalfe-tenants__step {
	padding: 26px;
}

.khalfe-tenants__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--wp--preset--color--navy);
	color: #fff;
	font-weight: 700;
}

.khalfe-tenants__step h3 {
	font-size: 17px;
	margin: 14px 0 8px;
}

.khalfe-tenants__step p {
	color: var(--wp--preset--color--muted);
	font-size: 14.5px;
	margin: 0;
}

/* Property page tenant sign up band */
.khalfe-prop__signup {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
	flex-wrap: wrap;
	padding: 28px 32px;
	margin-top: 26px;
}

.khalfe-prop__signup p {
	color: var(--wp--preset--color--muted);
	margin: 8px 0 0;
	max-width: 560px;
}

.khalfe-prop__signup-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--wp--preset--color--navy);
	color: #fff;
	padding: 13px 24px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14.5px;
	white-space: nowrap;
}

.khalfe-prop__signup-btn:hover {
	background: var(--wp--preset--color--gold);
	color: #fff;
}

@media (max-width: 1023px) {
	.khalfe-tenants__grid { grid-template-columns: 1fr; }
	.khalfe-tenants__steps { grid-template-columns: 1fr; }
}

/* ========================================================================
   Phase 4 responsive (addendum items 2–11)
   ======================================================================== */

@media (min-width: 640px) and (max-width: 1023px) {
	.khalfe-hero__title { font-size: 40px; }
	.khalfe-hero__inner { padding-top: 56px; padding-bottom: 44px; }

	/* Filter bar → 2×2 grid + full-width search */
	.khalfe-filterbar { display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; padding: 8px; gap: 4px; }
	.khalfe-filterbar__seg { border-radius: 12px; border: 1px solid var(--wp--preset--color--divider); }
	.khalfe-filterbar__divider { display: none; }
	.khalfe-filterbar__searchwrap { grid-column: span 2; padding: 4px 0 0; }
	.khalfe-filterbar__search { width: 100%; justify-content: center; }
	.khalfe-filterbar-wrap { transform: none; padding-top: 26px; padding-bottom: 26px; }
	.khalfe-stats__row { padding-top: 42px; }

	ul.khalfe-prop-grid { grid-template-columns: repeat(2, 1fr); }
	.khalfe-areas--tiles .khalfe-area-tile { width: calc((100% - 18px) / 2); }
	.khalfe-areas--cards { grid-template-columns: repeat(2, 1fr); }
	.khalfe-reviews__grid > .khalfe-review-card { flex-basis: calc((100% - 22px) / 2); }
	.khalfe-reviews-page__grid { grid-template-columns: repeat(2, 1fr); }
	.khalfe-why-page__grid { grid-template-columns: repeat(2, 1fr); }
	.khalfe-whyband__grid { grid-template-columns: 1fr; gap: 36px; }
	.khalfe-stats__row { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
	.khalfe-stats__item:nth-child(3) { border-left: none; }

	/* Property page */
	.khalfe-prop__photogrid { grid-template-columns: 2fr 1fr; height: 400px; }
	.khalfe-prop__photo:nth-child(4), .khalfe-prop__photo:nth-child(5) { display: none; }
	.khalfe-prop__cols { grid-template-columns: 1fr; }
	.khalfe-prop__side { position: static; }
	.khalfe-uni__areas, .khalfe-uni__travel { grid-template-columns: repeat(2, 1fr); }
	.khalfe-book__grid { grid-template-columns: 1fr; }
}

@media (max-width: 639px) {
	.khalfe-hero__title { font-size: 32px; }
	.khalfe-hero__sub { font-size: 16.5px; }
	.khalfe-hero__inner { padding-top: 44px; padding-bottom: 36px; }

	/* Filter bar → stacked rows, no overlap */
	.khalfe-filterbar-wrap { transform: none; padding-top: 20px; padding-bottom: 24px; }
	.khalfe-filterbar { display: flex; flex-direction: column; padding: 10px; gap: 6px; border-radius: 16px; }
	.khalfe-filterbar__seg { border-radius: 11px; border: 1px solid var(--wp--preset--color--divider); width: 100%; box-sizing: border-box; padding: 13px 16px; }
	.khalfe-filterbar__divider { display: none; }
	.khalfe-filterbar__searchwrap { padding: 2px 0 0; }
	.khalfe-filterbar__search { width: 100%; justify-content: center; }
	.khalfe-stats__row { padding-top: 36px; grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
	.khalfe-stats__item { border-left: none !important; }

	.khalfe-h2 { font-size: 27px; }
	.khalfe-banner__title { font-size: 32px; }
	ul.khalfe-prop-grid { grid-template-columns: 1fr; }
	.khalfe-areas--tiles .khalfe-area-tile { width: 100%; }
	.khalfe-areas--cards { grid-template-columns: 1fr; }
	.khalfe-reviews__grid > .khalfe-review-card { flex-basis: 100%; }
	.khalfe-reviews-page__grid { grid-template-columns: 1fr; }
	.khalfe-why-page__grid { grid-template-columns: 1fr; }
	.khalfe-whyband__grid { grid-template-columns: 1fr; gap: 32px; }
	.khalfe-whyband__cards { grid-template-columns: 1fr; }
	.khalfe-whyband__title { font-size: 29px; }
	.khalfe-ctaband { grid-template-columns: 1fr; padding: 34px 26px; gap: 24px; }
	.khalfe-ctaband__title { font-size: 28px; }

	/* Property page: hero photo only + view-all button; stacked columns */
	.khalfe-prop__photogrid { display: block; height: auto; margin-bottom: 10px; }
	.khalfe-prop__photo { display: none; }
	.khalfe-prop__photo--hero { display: block; height: 260px; border-radius: 14px; }
	/* The head pill duplicates this button on phones - show only this one,
	   styled identically to the pill it replaces. */
	.khalfe-prop__head-actions { display: none; }
	.khalfe-prop__viewall-mobile { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-bottom: 30px; background: var(--wp--preset--color--navy); border: none; cursor: pointer; padding: 13px; border-radius: 10px; font-size: 14px; font-weight: 600; font-family: inherit; color: #fff; }
	.khalfe-prop__highlights { grid-template-columns: 1fr 1fr; gap: 12px; }
	.khalfe-prop__cols { grid-template-columns: 1fr; gap: 36px; }
	.khalfe-prop__side { position: static; }
	.khalfe-prop__title { font-size: 29px; }
	.khalfe-prop__gallery { grid-template-columns: 1fr 1fr; }
	.khalfe-prop__amenities { grid-template-columns: 1fr; }
	.khalfe-prop { padding-bottom: 130px; }

	/* Fixed bottom action bar */
	.khalfe-prop__mobilebar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 70;
		background: #fff;
		border-top: 1px solid var(--wp--preset--color--card-border);
		box-shadow: 0 -8px 24px -12px rgba(36, 28, 50, 0.25);
		padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
		align-items: center;
		gap: 12px;
	}
	.khalfe-prop__mobilebar-price { font-family: var(--wp--preset--font-family--spectral); font-size: 20px; font-weight: 600; color: var(--wp--preset--color--navy); flex: 1; }
	.khalfe-prop__mobilebar-price span { font-size: 12.5px; color: var(--wp--preset--color--muted-light); font-family: var(--wp--preset--font-family--hanken); font-weight: 500; }
	.khalfe-prop__mobilebar-wa { width: 46px; height: 46px; border-radius: 12px; background: #25D366; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
	.khalfe-prop__mobilebar-cta { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--white); font-weight: 700; font-size: 14.5px; padding: 13px 20px; border-radius: 11px; }

	/* Area / Uni pages stack */
	.khalfe-area-intro { grid-template-columns: 1fr; gap: 22px; }
	.khalfe-area-intro__stats { grid-template-columns: 1fr 1fr; }
	.khalfe-area-intro__media img, .khalfe-area-intro__img-empty { min-height: 240px; height: 240px; }
	.khalfe-area-intro__body > .khalfe-eyebrow {
	margin-top: 0;
	margin-bottom: 8px;
}

.khalfe-area-intro__title { font-size: 31px; }
	.khalfe-uni__intro { grid-template-columns: 1fr; gap: 22px; }
	.khalfe-uni__photo { min-height: 240px; height: 240px; }
	.khalfe-uni__areas, .khalfe-uni__travel { grid-template-columns: 1fr; }
	.khalfe-uni__toggle { flex-direction: column; }
	.khalfe-uni__toggle-btn { text-align: center; }
	.khalfe-book__grid { grid-template-columns: 1fr; gap: 24px; }
	.khalfe-book__formcard { padding: 22px 18px; }

	/* Reviews summary stacks */
	.khalfe-reviews-summary { flex-direction: column; align-items: flex-start; }
	.khalfe-reviews-summary__write { width: 100%; text-align: center; box-sizing: border-box; }

	/* Lightbox */
	.khalfe-lightbox { padding: 70px 12px 30px; }
}

/* ========================================================================
   Phase 5 - live filter bar (popovers, mobile sheet, results states)
   ======================================================================== */

.khalfe-filterbar-wrap .khalfe-filterbar {
	position: relative;
}

.khalfe-hidden {
	display: none !important;
}

/* Results header row (heading/count left, clear button right) */
.khalfe-results-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.khalfe-results-head .khalfe-h2 {
	margin-bottom: 6px;
}

.khalfe-results-head .khalfe-section-sub {
	margin-bottom: 0;
}

.khalfe-clearfilters {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fff;
	border: 1px solid #e0dccf;
	cursor: pointer;
	padding: 10px 16px;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	color: var(--wp--preset--color--navy);
}

.khalfe-clearfilters:hover {
	border-color: var(--wp--preset--color--navy);
}

/* Invisible overlay that closes popovers on outside click */
.khalfe-filteroverlay {
	position: fixed;
	inset: 0;
	z-index: 30;
}

/* Popovers */
.khalfe-filterpop {
	position: absolute;
	top: calc(100% + 12px);
	z-index: 40;
	background: #fff;
	border: 1px solid #e7e3da;
	border-radius: 16px;
	box-shadow: 0 24px 50px -16px rgba(36, 28, 50, 0.4);
	padding: 14px;
	animation: khalfe-fade-up 0.16s ease;
	text-align: left;
}

.khalfe-filterpop--area { left: 0; width: 340px; }
.khalfe-filterpop--beds { left: 33%; width: 300px; padding: 16px; }
.khalfe-filterpop--price { left: 50%; width: 300px; padding: 16px; }
.khalfe-filterpop--year { right: 120px; width: 240px; }

.khalfe-filterpop__title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #9aa0ac;
	padding: 6px 10px 10px;
}

.khalfe-filterpop__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
}

.khalfe-filterpop__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.khalfe-filterpop__opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	cursor: pointer;
	padding: 11px 13px;
	border-radius: 11px;
	text-align: left;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #1d2433;
}

.khalfe-filterpop__opt:hover {
	border-color: var(--wp--preset--color--navy);
}

.khalfe-filterpop__opt.is-active {
	background: var(--wp--preset--color--gold-tint);
	border-color: var(--wp--preset--color--gold);
}

.khalfe-filterpop__count {
	font-size: 12px;
	color: #9aa0ac;
	font-weight: 600;
}

.khalfe-filterpop__chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.khalfe-filterpop__chip {
	background: #fff;
	color: var(--wp--preset--color--navy);
	border: 1px solid var(--wp--preset--color--card-border);
	cursor: pointer;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
}

.khalfe-filterpop__chip:hover {
	border-color: var(--wp--preset--color--navy);
}

.khalfe-filterpop__chip.is-active {
	background: var(--wp--preset--color--navy);
	color: #fff;
	border-color: var(--wp--preset--color--navy);
}

/* No-results panel */
.khalfe-noresults {
	text-align: center;
	padding: 70px 20px;
	background: #fff;
	border: 1px dashed #d8d3c6;
	border-radius: 16px;
	margin-top: 26px;
}

.khalfe-noresults__title {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 24px;
	color: var(--wp--preset--color--navy);
	margin-bottom: 8px;
}

.khalfe-noresults p {
	color: var(--wp--preset--color--muted);
	font-size: 15px;
	margin: 0 0 20px;
}

.khalfe-noresults button {
	background: var(--wp--preset--color--navy);
	color: #fff;
	border: none;
	cursor: pointer;
	padding: 12px 22px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	font-family: inherit;
}

/* Mobile pill + sheet head: hidden on desktop/tablet */
.khalfe-filterbar-pill,
.khalfe-filterbar__sheethead {
	display: none;
}

/* ---- Mobile (≤639px): pill + full-screen sheet -------------------------- */

@media (max-width: 639px) {
	/* Show the pill instead of the bar */
	.khalfe-filterbar-pill {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
		width: 100%;
		background: #fff;
		border: 1px solid #e7e3da;
		border-radius: 16px;
		box-shadow: 0 24px 60px -18px rgba(36, 28, 50, 0.45);
		cursor: pointer;
		padding: 13px 18px;
		font-family: inherit;
		text-align: left;
	}

	.khalfe-filterbar-pill > span:not(.khalfe-filterbar-pill__hint) {
		font-size: 15px;
		font-weight: 700;
		color: var(--wp--preset--color--navy);
	}

	.khalfe-filterbar-pill svg {
		position: absolute;
		right: 34px;
		margin-top: 10px;
	}

	.khalfe-filterbar-pill__hint {
		font-size: 12.5px;
		color: var(--wp--preset--color--muted-light);
		font-weight: 500;
		max-width: 85%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.khalfe-filterbar-wrap:not(.is-sheet-open) .khalfe-filterbar {
		display: none;
	}

	/* The sheet */
	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterbar {
		display: flex;
		flex-direction: column;
		position: fixed;
		inset: 0;
		z-index: 90;
		border-radius: 0;
		overflow-y: auto;
		padding: 16px 18px calc(90px + env(safe-area-inset-bottom));
		gap: 8px;
	}

	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterbar__sheethead {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 2px 0 10px;
		font-family: var(--wp--preset--font-family--spectral);
		font-size: 20px;
		font-weight: 600;
		color: var(--wp--preset--color--navy);
	}

	.khalfe-filterbar__sheetclose {
		background: var(--wp--preset--color--cream);
		border: none;
		cursor: pointer;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	/* Popovers become full-width blocks inside the sheet */
	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterpop {
		position: static;
		width: 100%;
		box-shadow: none;
		border-color: var(--wp--preset--color--divider);
		animation: none;
		box-sizing: border-box;
	}

	/* Search pinned at the bottom of the sheet */
	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterbar__searchwrap {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 91;
		background: #fff;
		border-top: 1px solid var(--wp--preset--color--card-border);
		padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
	}

	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterbar__search {
		width: 100%;
		justify-content: center;
	}

	/* Reorder: keep each popover directly under its segment */
	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterbar { display: grid; grid-auto-rows: min-content; }
	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterbar__sheethead { order: 0; }
	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterbar__seg--area { order: 1; }
	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterpop--area { order: 2; }
	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterbar__seg:nth-of-type(2) { order: 3; }
	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterpop--beds { order: 4; }
	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterbar__seg:nth-of-type(3) { order: 5; }
	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterpop--price { order: 6; }
	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterbar__seg:nth-of-type(4) { order: 7; }
	.khalfe-filterbar-wrap.is-sheet-open .khalfe-filterpop--year { order: 8; }

	/* Popovers on mobile never float over the page */
	.khalfe-filteroverlay { display: none; }

	.khalfe-clearfilters { width: 100%; justify-content: center; box-sizing: border-box; }
}

/* Tablet: popovers can overflow the 2×2 grid - pin them under the bar */
@media (min-width: 640px) and (max-width: 1023px) {
	.khalfe-filterpop--beds, .khalfe-filterpop--price { left: 0; }
	.khalfe-filterpop--year { right: 0; }
}

/* ========================================================================
   Section flow: no default gaps between page sections - every section
   manages its own internal padding (matches the design exactly).
   ======================================================================== */

.wp-site-blocks > * {
	margin-block-start: 0 !important;
}

main.wp-block-group > * {
	margin-block-start: 0 !important;
}

/* Hero text: flush left with the availability pill (the constrained layout
   otherwise auto-centres any element with its own max-width). */
.khalfe-hero__inner > .khalfe-hero__title,
.khalfe-hero__inner > .khalfe-hero__sub {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Width-capped intro/sub paragraphs stay left-aligned, not auto-centred. */
.khalfe-section-sub {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Banner subtext: the banner is full-bleed, so left-align means "start of
   the 1200px content column", not the screen edge. */
.khalfe-banner__sub {
	margin-right: 0 !important;
	margin-left: max(0px, calc((100% - var(--wp--style--global--content-size, 1200px)) / 2)) !important;
}

/* "View all properties" link under the home page picks */
.khalfe-viewall-wrap {
	text-align: center;
	margin-top: 34px;
}

.khalfe-viewall {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wp--preset--color--navy);
	color: #fff;
	font-size: 14.5px;
	font-weight: 600;
	padding: 13px 24px;
	border-radius: 10px;
}

.khalfe-viewall:hover {
	background: var(--wp--preset--color--navy-alt);
	color: #fff;
}

/* ---- Waiting list landing page ------------------------------------------ */

.khalfe-waitlist {
	padding-top: 48px;
	padding-bottom: 24px;
}

.khalfe-waitlist__card {
	max-width: 720px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e7e3da;
	border-radius: 18px;
	padding: 34px;
	box-shadow: 0 12px 36px -18px rgba(36, 28, 50, 0.3);
}

.khalfe-waitlist__title {
	font-family: var(--wp--preset--font-family--spectral);
	font-weight: 600;
	font-size: 26px;
	color: var(--wp--preset--color--navy);
	margin: 0 0 8px;
	letter-spacing: -0.3px;
}

.khalfe-waitlist__sub {
	font-size: 15px;
	color: var(--wp--preset--color--muted);
	margin: 0 0 22px;
}

@media (max-width: 639px) {
	.khalfe-waitlist__card {
		padding: 22px 18px;
	}
}

/* ---- Universities band (home page) -------------------------------------- */

.khalfe-uniband {
	padding-top: 16px;
	padding-bottom: 56px;
}

/* Home page only: full-width white band behind "Find homes near your
   university" (the same pattern on /areas/ keeps the page background). */
.home .khalfe-uniband {
	position: relative;
	z-index: 0;
	padding-top: 48px;
	padding-bottom: 48px;
}

.home .khalfe-uniband::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background: #fff;
	z-index: -1;
}

.khalfe-uniband__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

.khalfe-uniband__card {
	position: relative;
	display: block;
	height: 260px;
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.khalfe-uniband__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px -20px rgba(36, 28, 50, 0.32);
}

.khalfe-uniband__card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.khalfe-uniband__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(36, 28, 50, 0.1), rgba(36, 28, 50, 0.85));
}

.khalfe-uniband__text {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.khalfe-uniband__name {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 24px;
	font-weight: 600;
	color: #fff;
	letter-spacing: -0.3px;
}

.khalfe-uniband__meta {
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.8);
	font-weight: 500;
}

.khalfe-uniband__cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 700;
	color: var(--wp--preset--color--gold-dark);
	margin-top: 8px;
}

@media (max-width: 781px) {
	.khalfe-uniband__grid {
		grid-template-columns: 1fr;
	}

	.khalfe-uniband__card {
		height: 210px;
	}
}

/* ---- Inline area maps + boundary hover glow ------------------------------ */

.khalfe-area__map {
	position: absolute;
	inset: 0;
	display: block;
}

.khalfe-area__map svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* The intro block sizes differently: fill its media box */
.khalfe-area-intro__media {
	position: relative;
}

.khalfe-area-intro__media .khalfe-area__map {
	position: relative;
	inset: auto;
	min-height: 330px;
	height: 100%;
	border-radius: 18px;
	overflow: hidden;
	background: var(--wp--preset--color--navy);
}

.khalfe-area-card__media {
	position: relative;
	height: 170px;
	background: var(--wp--preset--color--navy);
	overflow: hidden;
}

.khalfe-area-card__media .khalfe-area__map {
	position: absolute;
	inset: 0;
}

/* Gold glow on the area outline when the card is hovered */
.khalfe-area-boundary {
	transition: filter 0.25s ease;
}

.khalfe-area-tile:hover .khalfe-area-boundary,
.khalfe-area-card:hover .khalfe-area-boundary,
.khalfe-area-intro__media:hover .khalfe-area-boundary {
	filter: drop-shadow(0 0 5px rgba(186, 15, 49, 0.95)) drop-shadow(0 0 14px rgba(186, 15, 49, 0.6));
}


/* Why Us page: stats strip sits closer to the banner (top = bottom margin). */
body.page-template-page-why-us .khalfe-stats__row {
	padding-top: 42px;
}

/* ---- EPC chart on property pages ---------------------------------------- */

.khalfe-prop__epc {
	padding: 22px 24px 16px;
	margin-bottom: 46px;
}

.khalfe-epc__chart {
	width: 100%;
	max-width: 660px;
	height: auto;
	display: block;
}

.khalfe-prop__epc-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 14px;
	font-size: 13px;
	color: var(--wp--preset--color--muted-light);
}

.khalfe-prop__epc-meta a {
	font-weight: 700;
	color: var(--wp--preset--color--gold-dark);
}

/* Council-tax exemption note under the property description */
.khalfe-prop__ctnote {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--wp--preset--color--green-bg);
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--green-dark);
	margin-bottom: 18px;
}

.khalfe-prop__ctnote svg {
	flex-shrink: 0;
}

.khalfe-prop__ctnote strong {
	color: var(--wp--preset--color--green);
}


/* Council tax band line inside the green note card */
.khalfe-prop__ctnote-band {
	display: block;
	font-weight: 700;
	color: var(--wp--preset--color--green);
	margin-bottom: 3px;
}


/* GDPR consent checkbox + locked submit state */
.khalfe-enquiry-form .khalfe-consent label.wpforms-field-label-inline,
.khalfe-prop__form .khalfe-consent label.wpforms-field-label-inline {
	font-size: 12.5px !important;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
}

.khalfe-enquiry-form button[type="submit"].khalfe-btn-locked,
.khalfe-prop__form button[type="submit"].khalfe-btn-locked {
	opacity: 0.45;
	cursor: not-allowed;
}


/* Sort row - lives in the results head, left-aligned with the card grid */
.khalfe-sortrow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.khalfe-results-head__right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.khalfe-sortrow__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	margin-right: 4px;
}

.khalfe-sortrow__chip {
	background: #fff;
	color: var(--wp--preset--color--navy);
	border: 1px solid var(--wp--preset--color--card-border);
	cursor: pointer;
	padding: 11px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	transition: border-color 0.15s ease;
}

.khalfe-sortrow__chip:hover {
	border-color: var(--wp--preset--color--gold);
}

.khalfe-sortrow__chip.is-active {
	background: var(--wp--preset--color--navy);
	color: #fff;
	border-color: var(--wp--preset--color--navy);
}


/* WPForms confirmation - restyled to match the council tax green card */
.khalfe-enquiry-form .wpforms-confirmation-container-full,
.khalfe-prop__form .wpforms-confirmation-container-full,
div.wpforms-container-full .wpforms-confirmation-container-full {
	background: var(--wp--preset--color--green-bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231f8a5b' stroke-width='2.2'><path d='M12 2 4 5v6c0 5 3.5 8 8 10 4.5-2 8-5 8-10V5l-8-3Z'/><path d='m9 12 2 2 4-4'/></svg>") no-repeat 16px 15px !important;
	border: none !important;
	border-radius: 12px;
	color: var(--wp--preset--color--green-dark) !important;
	font-size: 14px;
	line-height: 1.5;
	padding: 14px 16px 14px 48px !important;
	margin: 0;
}

.khalfe-enquiry-form .wpforms-confirmation-container-full p,
.khalfe-prop__form .wpforms-confirmation-container-full p,
div.wpforms-container-full .wpforms-confirmation-container-full p {
	margin: 0;
	color: var(--wp--preset--color--green-dark);
}

.khalfe-enquiry-form .wpforms-confirmation-container-full strong,
.khalfe-prop__form .wpforms-confirmation-container-full strong,
div.wpforms-container-full .wpforms-confirmation-container-full strong {
	color: var(--wp--preset--color--green);
}


/* Documents section - certificate download buttons */
.khalfe-prop__docs {
	display: flex;
	gap: 8px;
	margin-bottom: 46px;
}

.khalfe-prop__doc {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 1 auto;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	border-radius: 12px;
	padding: 11px 12px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.khalfe-prop__doc svg {
	flex-shrink: 0;
}

.khalfe-prop__doc > span:first-of-type {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.khalfe-prop__doc-tag {
	margin-left: auto;
	flex-shrink: 0;
}

@media (max-width: 639px) {
	.khalfe-prop__docs {
		flex-direction: column;
	}
}

.khalfe-prop__doc:hover {
	border-color: var(--wp--preset--color--gold);
	box-shadow: 0 2px 10px rgba(47, 37, 64, 0.07);
}

.khalfe-prop__doc-tag {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--gold-dark);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	border-radius: 6px;
	padding: 3px 7px;
}


/* Rent with confidence - accreditation band on the homepage */
.khalfe-confidence {
	background: #fff;
	padding: 56px 0 56px;
}


.khalfe-confidence__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
}

.khalfe-confidence__proof {
	margin-top: 8px;
}

.khalfe-confidence__proof a {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--wp--preset--color--gold-dark);
}

.khalfe-confidence__card {
	text-align: center;
}

/* Every logo occupies the same 96px zone (64px mark + 32px gap) so the
   titles and body text line up across all four cards. */
.khalfe-confidence__card img {
	height: 64px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	margin-bottom: 32px;
}

/* UKALA's mark is portrait, so it fills the zone's full height instead. */
.khalfe-confidence__card img[src*="ukala"] {
	height: 96px;
	margin-bottom: 0;
}

.khalfe-confidence__card h3 {
	font-size: 17px;
	margin: 0 0 8px;
	letter-spacing: -0.2px;
}

.khalfe-confidence__card p {
	font-size: 13.5px;
	line-height: 1.55;
	color: #5c6170;
	margin: 0;
}

@media (max-width: 1023px) {
	.khalfe-confidence__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 639px) {
	.khalfe-confidence__grid {
		grid-template-columns: 1fr;
	}
}


/* Mini FAQ block (homepage + Why us) */
.khalfe-faq {
	padding: 18px 0 36px;
	scroll-margin-top: 90px;
}

/* Home page: the gap above the FAQ heading matches the 48px inside the
   white universities band above it. */
.home .khalfe-faq {
	padding-top: 48px;
}

.khalfe-faq__list {
	margin: 30px 0 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.khalfe-faq__card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	border-radius: 14px;
	padding: 0 20px;
}

.khalfe-faq__card summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	list-style: none;
	cursor: pointer;
	padding: 17px 0;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--wp--preset--color--navy);
}

.khalfe-faq__card summary::-webkit-details-marker {
	display: none;
}

.khalfe-faq__card summary svg {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.khalfe-faq__card[open] summary svg {
	transform: rotate(45deg);
}

.khalfe-faq__card > p {
	margin: 0;
	padding: 0 0 17px;
	font-size: 14px;
	line-height: 1.6;
	color: #5c6170;
}

.khalfe-faq__more {
	text-align: center;
	font-size: 14px;
	color: #5c6170;
	margin: 22px 0 0;
}

.khalfe-faq__more a {
	color: var(--wp--preset--color--gold-dark);
	font-weight: 700;
}


/* Full FAQ page - expandable topic cards */
.khalfe-faqpage {
	padding: 40px 0 30px;
}

.khalfe-faqpage__tiles {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
	margin-bottom: 22px;
}

.khalfe-faqtile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	border-radius: 18px;
	padding: 20px 18px;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.khalfe-faqtile:hover {
	border-color: var(--wp--preset--color--gold);
	box-shadow: 0 4px 18px rgba(47, 37, 64, 0.06);
}

.khalfe-faqtile.is-active {
	background: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
}

.khalfe-faqtile__title {
	font-family: var(--wp--preset--font-family--spectral);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.2px;
	line-height: 1.25;
	color: var(--wp--preset--color--navy);
}

.khalfe-faqtile.is-active .khalfe-faqtile__title {
	color: #fff;
}

.khalfe-faqtile__blurb {
	font-size: 12.5px;
	line-height: 1.45;
	color: #5c6170;
}

.khalfe-faqtile.is-active .khalfe-faqtile__blurb {
	color: rgba(255, 255, 255, 0.72);
}

.khalfe-faqtile__count {
	margin-top: auto;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--gold-dark);
	font-size: 11.5px;
	font-weight: 700;
	border-radius: 999px;
	padding: 3px 10px;
}

.khalfe-faqtile.is-active .khalfe-faqtile__count {
	background: rgba(255, 255, 255, 0.14);
	color: #e3b268;
}

/* All five panels live in one container so every topic opens with the same
   gap below the tile row, whichever tile it belongs to */
.khalfe-faqpage__panels {
	margin: 0 !important;
}

.khalfe-faqpage__panels > .khalfe-faqpanelwrap {
	margin: 0 !important;
}

/* The panel expands smoothly out of the space beneath the tile row */
.khalfe-faqpanelwrap {
	position: relative;
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows 0.35s ease, visibility 0s linear 0.35s;
}

.khalfe-faqpanelwrap.is-open {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows 0.35s ease, visibility 0s;
}

/* Caret connecting the open panel to its parent card */
.khalfe-faqpanelwrap.is-open::after {
	content: "";
	position: absolute;
	top: -7px;
	width: 14px;
	height: 14px;
	background: #fff;
	border-top: 1px solid var(--wp--preset--color--card-border);
	border-left: 1px solid var(--wp--preset--color--card-border);
	transform: rotate(45deg);
}

.khalfe-faqpanelwrap--0.is-open::after { left: calc(10% - 7px); }
.khalfe-faqpanelwrap--1.is-open::after { left: calc(30% - 7px); }
.khalfe-faqpanelwrap--2.is-open::after { left: calc(50% - 7px); }
.khalfe-faqpanelwrap--3.is-open::after { left: calc(70% - 7px); }
.khalfe-faqpanelwrap--4.is-open::after { left: calc(90% - 7px); }

.khalfe-faqtopic-panel {
	overflow: hidden;
	min-height: 0;
	background: #fff;
	border: 0 solid var(--wp--preset--color--card-border);
	border-radius: 18px;
	padding: 0 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.25s ease, transform 0.3s ease, padding 0.35s ease, border-width 0.35s ease;
}

.khalfe-faqpanelwrap.is-open .khalfe-faqtopic-panel {
	opacity: 1;
	transform: translateY(0);
	padding: 20px 22px;
	border-width: 1px;
	transition: opacity 0.3s ease 0.1s, transform 0.35s ease, padding 0.35s ease, border-width 0.35s ease;
}

@media (max-width: 1023px) {
	.khalfe-faqpanelwrap.is-open::after {
		display: none;
	}
}

.khalfe-faqtopic-panel .khalfe-faq__card {
	background: #faf9f6;
}

@media (max-width: 1023px) {
	.khalfe-faqpage__tiles {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 639px) {
	.khalfe-faqpage__tiles {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.khalfe-faqtile {
		flex-direction: row;
		align-items: center;
		padding: 14px 16px;
	}

	.khalfe-faqtile__blurb,
	.khalfe-faqtile__count {
		display: none;
	}
}


/* Homepage-only spacing correction, measured against the section rhythm:
   ~100px between content blocks, ~64px of cream beside full-bleed bands */
.home .khalfe-ctaband-wrap {
	padding-bottom: 64px;
}


/* Inline SVG icons in templates carry legacy hex attributes - remap them to
   the palette so a theme.json rebrand recolours the icons too */
[stroke="#c08a3c"] { stroke: var(--wp--preset--color--gold); }
[stroke="#16243f"] { stroke: var(--wp--preset--color--navy); }
[stroke="#1f8a5b"] { stroke: var(--wp--preset--color--green); }
[stroke="#a9762f"] { stroke: var(--wp--preset--color--gold-dark); }
[fill="#16243f"] { fill: var(--wp--preset--color--navy); }


/* Icons inside red accent buttons - the palette remap would paint them
   purple, unreadable on the red, so force white in these contexts */
.khalfe-whyband__btn [stroke], .khalfe-ctaband__book [stroke],
.khalfe-filterbar__search [stroke], .khalfe-viewall [stroke] {
	stroke: var(--wp--preset--color--white);
}

.khalfe-prop__video-play:hover .khalfe-prop__video-playbtn [fill] {
	fill: var(--wp--preset--color--white);
}


/* York Student Lettings logo images (header + footer) */
.khalfe-logo-link {
	display: inline-flex;
	line-height: 0;
}

.khalfe-logo-img {
	height: 58px;
	width: auto;
}

.khalfe-footer-logo-img {
	height: 84px;
	width: auto;
}

.khalfe-footer-legal {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	margin-top: 10px;
}

@media (max-width: 639px) {
	.khalfe-logo-img {
		height: 44px;
	}
}


/* On dark purple bands the red accent is too dark for small text - use the
   soft rose accent instead (defined in the theme.json palette) */
.khalfe-whyband .khalfe-eyebrow,
.khalfe-footer .khalfe-eyebrow {
	color: var(--wp--preset--color--accent-soft);
}


/* Floor plan on property pages */
.khalfe-prop__floorplan {
	padding: 18px;
	margin-bottom: 46px;
	text-align: center;
	background: var(--wp--preset--color--white);
}

.khalfe-prop__floorplan img {
	max-width: 100%;
	max-height: 640px;
	width: auto;
	height: auto;
}

/* About Us: 2x2 accreditation logo grid beside the "Great service. Great
   reputation." text (the section is a columns block in the page content). */
.khalfe-about-service__logos {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.khalfe-about-service__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	border-radius: 14px;
	padding: 22px 18px;
	min-height: 124px;
}

.khalfe-about-service__logo img {
	max-height: 64px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

/* UKALA's mark is portrait, so it gets the taller zone. */
.khalfe-about-service__logo img[src*="ukala"] {
	max-height: 92px;
}

/* About Us: stacked copy lines in the page's own CTA band. */
.khalfe-ctaband__copy + .khalfe-ctaband__copy {
	margin-top: 10px;
}

/* About Us: tighter rhythm for the long-form content. */
.khalfe-about p {
	margin: 0 0 14px;
}

.khalfe-about h2 {
	margin: 34px 0 14px;
}

/* About Us: slim university cards at the end of "We love York!". */
.khalfe-about-unis {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin: 20px 0 40px;
}

.khalfe-about-uni {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--card-border);
	border-radius: 14px;
	padding: 16px 20px;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.khalfe-about-uni:hover {
	border-color: var(--wp--preset--color--gold-dark);
	box-shadow: 0 6px 18px rgba(47, 37, 64, 0.08);
}

.khalfe-about-uni__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.khalfe-about-uni__name {
	font-weight: 700;
	font-size: 16px;
	color: var(--wp--preset--color--navy);
}

.khalfe-about-uni__meta {
	font-size: 13.5px;
	color: #5b616e;
}

.khalfe-about-uni__arrow {
	margin-left: auto;
	color: var(--wp--preset--color--gold-dark);
	display: inline-flex;
}

@media (max-width: 639px) {
	.khalfe-about-unis { grid-template-columns: 1fr; }
}

/* About Us: full-width white bands behind the intro and "Great homes"
   sections. Core's constrained layout forces auto side margins on the
   group (!important), so the viewport-wide background comes from a
   ::before instead; the text stays in the page column. */
.khalfe-about-panel {
	position: relative;
	z-index: 0;
	margin: 0 0 40px;
	padding: 40px 0;
}

.khalfe-about-panel::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background: #fff;
	z-index: -1;
}

.khalfe-about-panel > h2:first-child {
	margin-top: 0;
}

.khalfe-about-panel > p:last-child {
	margin-bottom: 0;
}

@media (max-width: 639px) {
	.khalfe-about-panel { padding-top: 28px; padding-bottom: 28px; }
}

/* About Us: full-width white band behind the page's purple CTA card. */
.khalfe-ctaband-wrap--white {
	position: relative;
	z-index: 0;
	padding-top: 40px;
}

/* Even 40px gap between the service columns and the white CTA band. */
.khalfe-about .khalfe-about-service {
	margin-bottom: 40px;
}

.khalfe-ctaband-wrap--white::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background: #fff;
	z-index: -1;
}

/* About Us: property carousel in the intro band (query 12, post-template
   ul given the khalfe-about-props__track class; review-carousel.js adds
   the side arrows and auto-advance). */
ul.khalfe-about-props__track {
	display: flex;
	flex-wrap: nowrap;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	list-style: none;
	/* The inner padding gives card borders, shadows and the -3px hover
	   lift room inside the scroll clip; the negative margins cancel it
	   out so the cards stay aligned with the text column. */
	padding: 8px 4px 14px;
	margin: 14px -4px -14px;
}

ul.khalfe-about-props__track::-webkit-scrollbar {
	display: none;
}

ul.khalfe-about-props__track > li {
	flex: 0 0 calc((100% - 44px) / 3);
	scroll-snap-align: start;
	box-sizing: border-box;
	display: flex;
	margin: 0;
}

ul.khalfe-about-props__track > li > article {
	width: 100%;
}

@media (max-width: 1023px) {
	ul.khalfe-about-props__track > li { flex-basis: calc((100% - 22px) / 2); }
}

@media (max-width: 639px) {
	ul.khalfe-about-props__track > li { flex-basis: 100%; }
}

/* About Us: tenant sign up / portal cards in the "Great homes" band. */
.khalfe-about-tenants {
	margin-top: 22px;
}

/* 404 page. */
.khalfe-404 {
	padding: 48px 0 64px;
}

.khalfe-404__text {
	margin: 0 0 22px;
}

.khalfe-404__links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 26px;
}

.khalfe-404__links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15.5px;
	padding: 14px 22px;
	border-radius: 12px;
}

.khalfe-404__links a:first-child {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--white);
}

.khalfe-404__links a:first-child:hover {
	background: var(--wp--preset--color--gold-dark);
	color: var(--wp--preset--color--white);
}

.khalfe-404__links a:not(:first-child) {
	border: 2px solid var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
}

.khalfe-404__links a:not(:first-child):hover {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}
