/* Components (STYLE-GUIDE §7). One block per component, BEM-ish names. Values come from tokens.css. */

/* ---------- Icons ---------- */
.icon {
	flex: none;
	vertical-align: middle;
}

/* ---------- Buttons (§7.4) ---------- */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2xs);
	min-height: var(--tap);
	padding: var(--space-2xs) var(--space-m);
	border: 2px solid transparent;
	border-radius: var(--radius-s);
	background: var(--brand);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.button:hover {
	background: var(--color-green-800);
	color: #fff;
}

.button--cta {
	background: var(--cta);
}

.button--cta:hover {
	background: var(--cta-hover);
}

.button--ghost {
	background: transparent;
	border-color: currentColor;
	color: var(--brand);
}

.button--ghost:hover {
	background: var(--color-green-50);
	color: var(--color-green-800);
}

/* Terracotta outline: "List your facility" in the header, "View" on result cards. */
.button--ghost-cta {
	color: var(--cta);
}

.button--ghost-cta:hover {
	background: var(--color-accent-100);
	color: var(--cta-hover);
}

.button--quiet {
	background: transparent;
	color: var(--brand);
	padding-inline: var(--space-xs);
}

.button--quiet:hover {
	background: var(--color-sand);
	color: var(--color-green-800);
}

.button--light {
	background: #fff;
	color: var(--text);
	border-color: var(--border);
}

.button--light:hover {
	background: var(--color-green-50);
	color: var(--text);
}

.button--large {
	min-height: var(--tap-l);
	padding-inline: var(--space-l);
}

.button--block {
	width: 100%;
}

.button[disabled],
fieldset[disabled] .button {
	opacity: 0.5;
	cursor: not-allowed;
}

.site-header__menu-button {
	display: none;
}

.icon-label {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: var(--tap);
	min-height: var(--tap-l);
	padding: var(--space-3xs) var(--space-2xs);
	border-radius: var(--radius-s);
	color: var(--text);
	font-size: var(--step--1);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	list-style: none;
}

.icon-label::-webkit-details-marker {
	display: none;
}

.icon-label .icon {
	color: var(--brand);
}

.icon-label:hover {
	background: var(--color-green-50);
	color: var(--text);
}

.back-link,
.view-all {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3xs);
	min-height: var(--tap);
	font-size: var(--step--1);
	font-weight: 700;
	text-decoration: none;
}

/* ---------- Section header (§7.8) ---------- */
.section-header {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: var(--space-2xs) var(--space-m);
}

.section-header h2 {
	font-family: var(--font-serif);
	font-weight: 600;
}

.section-header__intro {
	color: var(--text-soft);
}

.eyebrow {
	position: relative;
	padding-bottom: var(--space-2xs);
	font-size: var(--step--1);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-soft);
}

.eyebrow::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 3rem;
	height: 2px;
	background: var(--cta);
}

.eyebrow-small {
	font-size: var(--step--1);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-soft);
}

.meta {
	font-size: var(--step--1);
	color: var(--text-soft);
}

.lead {
	font-size: var(--step-1);
	color: var(--text-soft);
}

.sponsored-label {
	font-size: var(--step--1);
	color: var(--text-soft); /* muted fails 4.5:1 on sand */
}

/* ---------- Media and images ---------- */
.media {
	position: relative;
	overflow: hidden;
	background: var(--color-sand);
}

.media--4x3 {
	aspect-ratio: 4 / 3;
}

.media--16x9 {
	aspect-ratio: 16 / 9;
}

.media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.media--contain img {
	object-fit: contain;
	padding: var(--space-s);
	background: #fff;
}

.media--placeholder {
	display: grid;
	place-items: center;
	color: var(--color-green-500);
}

/* ---------- Cards (§7.7) ---------- */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-s);
}

.band--sand .card {
	border-color: transparent;
}

.card__image {
	position: relative;
}

.card__image-link {
	display: block;
}

.card__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-3xs);
	flex: 1;
	padding: var(--space-s);
	font-size: var(--step-ui);
}

.card__title {
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: var(--leading-tight);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card__title--sans {
	font-family: var(--font-sans);
	font-weight: 700;
}

.card__link {
	color: var(--text);
	text-decoration: none;
}

/* The title link covers the whole card. */
.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.card:hover .card__link {
	color: var(--brand);
}

.card__link:focus-visible {
	outline: none;
}

.card:has(.card__link:focus-visible) {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.card__meta {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3xs);
	font-size: var(--step--1);
	color: var(--text-soft);
}

.card__meta .icon {
	margin-top: 0.15em;
	color: var(--brand);
}

.card__facts {
	list-style: none;
	padding: 0;
	margin-top: var(--space-2xs);
	display: grid;
	gap: var(--space-3xs);
	font-size: var(--step--1);
	color: var(--text-soft);
}

.card__facts li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2xs);
}

.card__facts .icon {
	color: var(--brand);
}

.card__price {
	margin-top: var(--space-2xs);
	font-weight: 700;
	color: var(--text);
}

/* The start of a description on a vertical card: two lines at most. */
.card__text--clamp {
	margin-top: var(--space-3xs);
	font-size: var(--step-ui);
	color: var(--text-soft);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card__chevron {
	display: grid;
	place-items: center;
	align-self: flex-end;
	width: 2.25rem;
	height: 2.25rem;
	margin-top: auto;
	border-radius: var(--radius-pill);
	background: var(--color-green-100);
	color: var(--brand);
}

.card__body > .card__chevron {
	margin-top: var(--space-xs);
}

/* Horizontal result card. */
.results {
	list-style: none;
	padding: 0;
}

.result-card {
	display: grid;
	grid-template-columns: 1fr;
}

.result-card__image {
	position: relative;
}

.result-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-3xs);
	padding: var(--space-s) var(--space-m);
	min-width: 0;
	font-size: var(--step-ui);
}

.result-card__title {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: var(--step-1);
	line-height: var(--leading-tight);
}

.result-card__text {
	color: var(--text-soft);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.result-card__available {
	display: flex;
	align-items: center;
	gap: var(--space-2xs);
	font-weight: 700;
	color: var(--brand);
}

.result-card__seen {
	font-size: var(--step--1);
	color: var(--text-muted);
}

.result-card__actions {
	display: flex;
	align-items: flex-start;
	padding: 0 var(--space-m) var(--space-m);
}

.result-card--paid {
	border-color: var(--color-green-200);
}

/*
 * "Has available accommodation" as a solid band across the bottom of the photo, as on the old
 * site, so families notice it (client feedback v3).
 */
.photo-band {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: var(--space-2xs);
	margin: 0;
	padding: var(--space-2xs) var(--space-xs);
	background: var(--color-green-800);
	color: #fff;
	font-size: var(--step-ui);
	font-weight: 700;
	line-height: var(--leading-tight);
}

.photo-band .icon {
	flex: none;
}

/* Adverts: the town in a box on the photo, as on the old site (client feedback v3). */
.town-label {
	position: absolute;
	right: var(--space-2xs);
	bottom: var(--space-2xs);
	z-index: 2;
	max-width: calc(100% - var(--space-xs));
	margin: 0;
	padding: 0.2rem var(--space-2xs);
	border-radius: var(--radius-s);
	background: var(--color-green-800);
	color: #fff;
	font-size: var(--step--1);
	font-weight: 700;
	line-height: var(--leading-tight);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.card__facility {
	color: var(--text);
	font-weight: 600;
}

.result-card--unit .card__price {
	margin-top: var(--space-3xs);
}

@media (min-width: 40rem) {
	.result-card {
		grid-template-columns: 16rem 1fr auto;
		align-items: start;
	}

	.result-card--no-photo {
		grid-template-columns: 1fr auto;
	}

	/* Every result photo the same shape (was stretched to each card's height). */
	.result-card__image .media {
		aspect-ratio: 4 / 3;
		height: auto;
	}

	.result-card__actions {
		padding: var(--space-m) var(--space-m) var(--space-m) 0;
	}
}

/* Type-of-care cards. */
.type-cards .card__body {
	padding-right: var(--space-l);
}

/* ---------- Tags, chips, badges (§7.5-7.6) ---------- */
.tags,
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	list-style: none;
	padding: 0;
}

.tag {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: 0.1em 0.75em;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--text-soft);
	font-size: var(--step--1);
	text-decoration: none;
}

a.tag {
	position: relative;
	z-index: 2;
	min-height: var(--tap);
}

a.tag:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	min-height: var(--tap);
	padding: 0.25em 1em;
	border-radius: var(--radius-pill);
	font-size: var(--step--1);
	font-weight: 600;
	text-decoration: none;
}

.chip--fact {
	background: var(--color-green-100);
	color: var(--text);
}

.chip--fact .icon {
	color: var(--brand);
}

.chip--filter {
	background: #fff;
	border: 1px solid var(--field-border);
	color: var(--text);
}

.chip--filter:hover {
	border-color: var(--danger, var(--color-danger));
	color: var(--color-danger);
}

.clear-all {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	font-size: var(--step--1);
	font-weight: 700;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.15em 0.7em;
	border-radius: var(--radius-pill);
	font-size: var(--step--1);
	font-weight: 700;
	line-height: 1.4;
}

.badge--info {
	background: var(--ribbon-info-bg);
	color: var(--ribbon-info-text);
}

.badge--gold {
	background: var(--badge-gold-bg);
	color: var(--badge-gold-text);
}

/* Ribbons sit stacked top-left on images. */
.ribbons {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-3xs);
	list-style: none;
	padding: 0;
	pointer-events: none;
}

.ribbon {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	min-height: 1.9rem;
	padding: 0.15em 0.8em;
	border-radius: var(--radius-pill);
	font-size: var(--step--1);
	font-weight: 700;
	line-height: 1.2;
	background: var(--ribbon-status-bg);
	color: var(--ribbon-status-text);
}

/* A small line icon per ribbon group (client brief: "use icons", no borders). */
.ribbon .icon {
	flex: none;
	width: 0.95em;
	height: 0.95em;
	margin-left: -0.15em;
	stroke-width: 2.25;
}

.ribbon--offer {
	background: var(--ribbon-offer-bg);
	color: var(--ribbon-offer-text);
}

/* Detail pages show up to 6 (client feedback v3): on phones they wrap in rows rather than
   running down the photo. */
@media (max-width: 39.99rem) {
	.gallery .ribbons {
		right: 12px;
		flex-direction: row;
		flex-wrap: wrap;
	}
}

/* ---------- Forms (§7.18) ---------- */
.field {
	display: grid;
	gap: var(--space-3xs);
	min-width: 0;
}

/* Fields share a row only in the search bars and the one-line keyword form. */
.search-panel__form .field,
.compact-search__fields .field,
.keyword-search .field {
	flex: 1 1 12rem;
}

.field > label {
	font-size: var(--step--1);
	font-weight: 700;
}

.search-panel__form .field--wide,
.compact-search__fields .field--wide {
	flex-basis: 20rem;
}

input,
select,
textarea {
	border-color: var(--field-border);
}

select {
	appearance: none;
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233d7048' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	text-overflow: ellipsis;
}

fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.required {
	color: var(--color-danger);
}

.optional {
	font-weight: 400;
	color: var(--text-muted);
}

.keyword-search {
	align-items: end;
}

/* Radio/checkbox rows, whole row clickable. */
.check {
	display: flex;
	align-items: center;
	gap: var(--space-2xs);
	min-height: 2.5rem;
	font-size: var(--step-ui);
	line-height: var(--leading-tight);
	font-weight: 400;
	cursor: pointer;
}

.check input {
	width: 1.25rem;
	height: 1.25rem;
	min-height: 0;
	flex: none;
	accent-color: var(--brand);
}

.check--child {
	padding-left: var(--space-m);
}

.check__count {
	margin-left: auto;
	font-size: var(--step--1);
	color: var(--text-muted);
}

/* Segmented switch: Places | Available homes | Keyword. */
.segmented {
	display: inline-flex;
	flex-wrap: wrap;
	padding: 3px;
	border: 1px solid var(--field-border);
	border-radius: var(--radius-s);
	background: #fff;
}

.segmented__option {
	position: relative;
	display: inline-flex;
}

.segmented__option input {
	position: absolute;
	opacity: 0;
	inset: 0;
	min-height: 0;
	cursor: pointer;
}

.segmented__option span {
	display: inline-flex;
	align-items: center;
	min-height: calc(var(--tap) - 8px);
	padding: 0 var(--space-s);
	border-radius: 4px;
	font-size: var(--step--1);
	font-weight: 700;
}

.segmented__option input:checked + span {
	background: var(--brand);
	color: #fff;
}

.segmented__option input:focus-visible + span {
	outline: 3px solid var(--focus);
	outline-offset: 1px;
}

/* ---------- Hero search panel (§7.2) ---------- */
.search-panel {
	background: var(--bg-raised);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-m);
	overflow: hidden;
}

.search-panel__tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-2xs);
	padding: var(--space-2xs) var(--space-2xs) 0;
	background: var(--color-green-100);
}

.search-panel__tab {
	display: flex;
	align-items: flex-start;
	gap: var(--space-xs);
	min-height: var(--tap-l);
	padding: var(--space-s);
	border: 0;
	border-radius: var(--radius-s) var(--radius-s) 0 0;
	background: #fff;
	color: var(--text);
	text-align: left;
	cursor: pointer;
}

.search-panel__tab .icon {
	color: var(--brand);
}

.search-panel__tab[aria-selected="true"] {
	background: var(--brand);
	color: #fff;
}

.search-panel__tab[aria-selected="true"] .icon {
	color: #fff;
}

.search-panel__tab-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.search-panel__tab-title {
	font-weight: 700;
	line-height: 1.25;
}

.search-panel__tab-help {
	font-size: var(--step--1);
	line-height: 1.3;
	opacity: 0.85;
}

.search-panel__form {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: var(--space-s);
	padding: var(--space-m);
}

.search-panel__panel[hidden] {
	display: none;
}

.search-panel__form .button {
	flex: 1 1 12rem;
}

@media (max-width: 47.99rem) {
	.search-panel__tabs {
		gap: var(--space-3xs);
		padding: var(--space-3xs) var(--space-3xs) 0;
	}

	.search-panel__tab {
		flex-direction: column;
		align-items: center;
		min-width: 0;
		padding: var(--space-xs) var(--space-3xs);
		text-align: center;
		font-size: var(--step--1);
	}

	.search-panel__tab-title {
		overflow-wrap: anywhere;
	}

	.search-panel__tab-text {
		align-items: center;
	}

	.search-panel__tab-help,
	.search-panel__tab .badge {
		display: none;
	}

	.search-panel__form {
		flex-direction: column;
		align-items: stretch;
	}

	.search-panel__form .field,
	.search-panel__form .button {
		flex: none;
	}
}

/* ---------- Compact search bar (§7.2) ---------- */
.compact-search {
	padding-block: var(--space-s);
	background: var(--color-green-100);
}

.compact-search__form {
	display: grid;
	gap: var(--space-s);
}

.compact-search__fields {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: var(--space-s);
}

.compact-search__fields .button {
	flex: 0 0 auto;
}

.compact-search__summary,
.filters__open,
.filters__close {
	display: none;
}

.compact-search__summary {
	width: 100%;
	justify-content: space-between;
	background: #fff;
}

.compact-search__summary span {
	flex: 1;
	text-align: left;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.js .compact-search [data-for][hidden] {
	display: none;
}

.active-filters {
	margin-top: var(--space-s);
}

@media (max-width: 47.99rem) {
	.js .compact-search__summary {
		display: inline-flex;
	}

	.js .compact-search:not(.is-open) .compact-search__form {
		display: none;
	}

	.js .compact-search.is-open .compact-search__form {
		margin-top: var(--space-s);
	}

	.compact-search__fields {
		flex-direction: column;
		align-items: stretch;
	}

	.compact-search__fields .field,
	.compact-search__fields .button {
		flex: none;
	}
}

/* ---------- Home ---------- */
.hero {
	position: relative;
	isolation: isolate;
	padding-block: var(--space-xl) var(--space-l);
	background: var(--color-green-50);
}

.hero__image {
	position: absolute;
	inset: 0 0 auto auto;
	z-index: -1;
	width: 55%;
	height: 100%;
}

.hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 35%);
	mask-image: linear-gradient(to right, transparent, #000 35%);
}

.hero__inner {
	display: grid;
	gap: var(--space-l);
}

.hero__text {
	max-width: 36rem;
}

.hero__title {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: var(--step-4);
}

.hero__intro {
	font-size: var(--step-1);
	color: var(--text-soft);
}

.hero__guided a {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	min-height: var(--tap);
	font-weight: 700;
}

@media (max-width: 47.99rem) {
	.hero {
		padding-top: var(--space-l);
	}

	.hero__image {
		display: none;
	}

	.hero__intro {
		font-size: var(--step-0);
	}
}

.stats {
	padding-block: var(--space-l);
}

.stats__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-m);
	list-style: none;
}

@media (min-width: 60rem) {
	.stats__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.stat + .stat {
		border-left: 1px solid var(--color-green-200);
		padding-left: var(--space-m);
	}
}

.stat {
	display: flex;
	align-items: center;
	gap: var(--space-s);
	color: var(--brand);
}

.stat__text {
	display: flex;
	flex-direction: column;
}

.stat__number {
	font-size: var(--step-3);
	font-weight: 700;
	line-height: 1.1;
	color: var(--color-green-800);
	font-variant-numeric: tabular-nums;
}

.stat__label {
	font-size: var(--step--1);
	color: var(--text);
}

@media (max-width: 39.99rem) {
	.stat {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--space-2xs);
	}
}

/* Sponsored strip (§7.20). */
.sponsored-strip {
	padding-block: var(--space-m) var(--space-l);
}

.sponsored-strip__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-s);
	list-style: none;
	padding: 0;
	margin-top: var(--space-2xs);
}

.sponsored-tile {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 1;
	overflow: hidden;
	border-radius: var(--radius-m);
	background: #fff;
	box-shadow: var(--shadow-s);
}

/* Banners come in many shapes: show each whole, never cropped or spilling over the next. */
.sponsored-tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sponsored-tile--offers {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--space-3xs);
	padding: var(--space-s);
	background: var(--color-accent-100); /* same peach tile as on the home page */
	color: var(--text);
	text-decoration: none;
	font-size: var(--step--1);
}

.sponsored-tile--offers:hover {
	background: #f7dcc4;
	color: var(--text);
}

.sponsored-tile--offers .sponsored-tile__title {
	display: block;
	color: var(--color-accent-700);
}

.sponsored-tile__title {
	font-family: var(--font-serif);
	font-size: var(--step-1);
	font-weight: 600;
}

@media (max-width: 59.99rem) {
	.sponsored-strip__list {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.sponsored-strip__list li {
		flex: 0 0 min(75%, 18rem);
		scroll-snap-align: start;
	}
}

/* Choice chips ("Tell us what matters most"). */
.choice-chips {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
	gap: var(--space-s);
	list-style: none;
	padding: 0;
}

.choice-chip {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	min-height: var(--tap-l);
	height: 100%;
	padding: var(--space-xs) var(--space-m);
	border-radius: var(--radius-pill);
	background: #fff;
	box-shadow: var(--shadow-s);
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
}

.choice-chip .icon {
	color: var(--cta);
}

.choice-chip:hover {
	background: var(--color-green-100);
	color: var(--text);
}

/* Partner cards (§7.21). */
.partner-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
	gap: var(--space-m);
}

.partner-card__image {
	position: relative;
}

.partner-card__image .ribbon {
	position: absolute;
	top: 12px;
	left: 12px;
}

.partner-card__title {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: var(--step-2);
}

.partner-card__icon {
	color: var(--brand);
}

.partner-card__icon--facebook {
	color: #1877f2;
}

.partner-card__count {
	font-weight: 700;
}

.home-copy h2 {
	font-size: var(--step-2);
}

.home-copy h3 {
	font-size: var(--step-1);
}

/* List your facility band (§7.21). */
.list-band {
	padding-block: var(--space-xl);
	background: var(--color-green-800);
	color: var(--color-green-100);
}

.list-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-l);
}

.list-band__inner > .stack {
	flex: 1 1 24rem;
}

.list-band h2 {
	font-family: var(--font-serif);
	font-weight: 600;
	color: #fff;
}

.list-band__icon {
	color: #fff;
}

.list-band__ticks {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs) var(--space-m);
	list-style: none;
	padding: 0;
	font-weight: 600;
	color: #fff;
}

.list-band__ticks li {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3xs);
}

/* ---------- Rails (horizontal scroll, no autoplay) ---------- */
.rail {
	position: relative;
}

.rail__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(78%, 17rem);
	gap: var(--space-m);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	list-style: none;
	padding: var(--space-3xs) var(--space-3xs) var(--space-s);
	margin: 0 calc(var(--space-3xs) * -1);
	scrollbar-width: thin;
}

.rail__item {
	scroll-snap-align: start;
	display: flex;
}

.rail__item > .card {
	width: 100%;
}

.rail__button {
	position: absolute;
	top: 35%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: var(--tap);
	height: var(--tap);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: #fff;
	box-shadow: var(--shadow-m);
	color: var(--text);
	cursor: pointer;
}

.rail__button--prev {
	left: calc(var(--space-s) * -1);
}

.rail__button--next {
	right: calc(var(--space-s) * -1);
}

.rail__button[disabled] {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 47.99rem) {
	.rail__button {
		display: none;
	}
}

/* ---------- Search page ---------- */
.search-header {
	margin-bottom: var(--space-m);
}

.search-header h1 {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: var(--step-3);
}

.filters__panel {
	padding: var(--space-m);
	gap: var(--space-s);
}

.filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.filters__head h2 {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: var(--step-2);
}

.filters__group legend {
	margin-bottom: var(--space-2xs);
	font-weight: 700;
}

.filters__foot {
	display: grid;
	gap: var(--space-2xs);
	padding-top: var(--space-s);
	border-top: 1px solid var(--border);
}

@media (min-width: 60rem) {
	.filters__panel {
		position: sticky;
		top: calc(130px + var(--space-s));
		max-height: calc(100vh - 150px);
		overflow-y: auto;
	}
}

@media (max-width: 59.99rem) {
	.js .filters__open {
		display: inline-flex;
	}

	.js .filters__close {
		display: inline-flex;
	}

	.js .filters__panel {
		position: fixed;
		inset: 0;
		z-index: 60;
		overflow-y: auto;
		border-radius: 0;
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform var(--duration) var(--ease), visibility var(--duration);
	}

	.js .filters.is-open .filters__panel {
		transform: none;
		visibility: visible;
	}

	.filters__foot {
		position: sticky;
		bottom: 0;
		background: #fff;
		padding-bottom: var(--space-s);
	}
}

.promo-banner {
	display: grid;
	gap: var(--space-3xs);
}

.promo-banner img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-m);
}

/* ---------- Listing and advert pages ---------- */
.listing {
	padding-block: var(--space-m) var(--space-xl);
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2xs) var(--space-m);
	margin-bottom: var(--space-s);
	font-size: var(--step--1);
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3xs);
	list-style: none;
	padding: 0;
}

.breadcrumb li + li::before {
	content: "/";
	margin-right: var(--space-3xs);
	color: var(--text-muted);
}

.breadcrumb a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	min-width: var(--tap);
}

.details a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
}

@media (max-width: 39.99rem) {
	.breadcrumb [aria-current] {
		display: none !important;
	}
}

.breadcrumb [aria-current] {
	display: inline-flex;
	align-items: center;
	color: var(--text-soft);
}

/* Gallery (§7.14). */
.gallery {
	position: relative;
	display: grid;
	gap: var(--space-2xs);
	margin-bottom: var(--space-m);
	border-radius: var(--radius-m);
	overflow: hidden;
}

.gallery button {
	display: block;
	padding: 0;
	border: 0;
	background: var(--color-sand);
	cursor: zoom-in;
}

.gallery__main {
	/* Listing photos are 4:3 everywhere: cards, results and the gallery (design review). */
	aspect-ratio: 4 / 3;
}

.gallery img,
.gallery--logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery--logo {
	max-height: 22rem;
	background: #fff;
}

.gallery--logo img {
	object-fit: contain;
	padding: var(--space-m);
}

.gallery__thumbs,
.gallery__more {
	display: none;
}

.gallery__all {
	position: absolute;
	/* Bottom-left of the main photo: clear of the floating "Help me search" button. */
	left: var(--space-s);
	bottom: var(--space-s);
	z-index: 2;
	cursor: pointer !important;
	background: #fff !important;
	padding: var(--space-2xs) var(--space-s) !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-s);
	box-shadow: var(--shadow-m);
}

.gallery button img {
	transition: transform 0.4s var(--ease);
}

.gallery button:hover img {
	transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
	.gallery button img,
	.gallery button:hover img {
		transition: none;
		transform: none;
	}
}

@media (min-width: 48rem) {
	/* One large 4:3 photo beside a 2x2 grid of 4:3 thumbnails: 2fr + 1fr + 1fr gives the large
	   photo two thumbnail rows of height, so every photo keeps (almost exactly) 4:3. */
	.gallery:not(.gallery--single) {
		grid-template-columns: 2fr 1fr 1fr;
		grid-template-rows: auto auto;
	}

	.gallery:not(.gallery--single) .gallery__main {
		grid-row: 1 / 3;
		grid-column: 1;
		aspect-ratio: auto;
		height: 100%;
	}

	.gallery__thumbs {
		display: contents;
	}

	.gallery__thumb {
		aspect-ratio: 4 / 3;
		overflow: hidden;
	}

	/* With 2 or 3 extra photos, the free cell(s) become a "View all photos" tile. */
	.gallery__more {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: var(--space-2xs);
		aspect-ratio: auto;
		background: var(--color-green-800) !important;
		color: #fff;
		font: inherit;
		font-weight: 700;
		cursor: pointer !important;
	}

	.gallery--thumbs-2 .gallery__more {
		grid-column: 2 / 4;
	}

	/* Seven or more photos: a third row of thumbnails makes the large photo taller, which suits
	   portrait photos better (client feedback 22 Oct 2026). */
	.gallery--thumbs-6 {
		grid-template-rows: auto auto auto;
	}

	.gallery--thumbs-6 .gallery__main {
		grid-row: 1 / 4 !important;
	}

	.gallery--thumbs-2 .gallery__thumb,
	.gallery--thumbs-3 .gallery__thumb {
		aspect-ratio: 4 / 3;
	}

	/* One or two photos: a single 4:3 photo, centred on sand. */
	.gallery--single {
		background: var(--color-sand);
		justify-items: center;
	}

	.gallery--single .gallery__main {
		height: min(30rem, 60vw);
		width: auto;
	}
}

/* Lightbox. */
.lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(20 24 22 / 0.96);
	color: #fff;
}

.lightbox::backdrop {
	background: rgb(20 24 22 / 0.96);
}

.lightbox[open] {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	overflow: hidden;
}

.lightbox__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-s) var(--gutter);
}

.lightbox__slides {
	list-style: none;
	padding: 0 var(--space-3xl);
	margin: 0;
	min-height: 0;
	overflow: hidden;
}

.lightbox__slide {
	height: 100%;
	display: grid;
	place-items: center;
	padding-bottom: var(--space-l);
	overflow: hidden;
}

/*
 * The photo always fits the window (client feedback v3: in Chrome it opened larger than the
 * screen, and zooming out lost the arrows). A percentage max-height doesn't resolve inside the
 * slide's auto-sized grid row in Chrome, so the limits are in viewport units: the window less
 * the top bar (about 4.5rem) and the slide's bottom padding; the arrows' gutters on the sides.
 */
.lightbox__slide img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 7rem);
	max-height: calc(100dvh - 7rem);
	object-fit: contain;
}

.lightbox__nav {
	position: absolute;
	top: 50%;
	display: grid;
	place-items: center;
	width: var(--tap-l);
	height: var(--tap-l);
	border: 0;
	border-radius: var(--radius-pill);
	background: rgb(255 255 255 / 0.9);
	color: var(--text);
	cursor: pointer;
}

.lightbox__nav--prev {
	left: var(--space-s);
}

.lightbox__nav--next {
	right: var(--space-s);
}

@media (max-width: 47.99rem) {
	.lightbox__slides {
		padding-inline: var(--space-2xs);
	}

	.lightbox__nav {
		top: auto;
		bottom: var(--space-s);
	}
}

/* Listing header (§7.15). */
.listing-header {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--space-m);
	padding: var(--space-m);
	margin-bottom: var(--space-m);
}

.listing-header__logo {
	flex: 0 0 auto;
	width: 9rem;
	padding: var(--space-xs);
	border: 1px solid var(--border);
	border-radius: var(--radius-m);
	background: #fff;
}

.listing-header__logo img {
	width: 100%;
	height: auto;
	max-height: 7rem;
	object-fit: contain;
}

.listing-header__main {
	flex: 1 1 20rem;
	min-width: 0;
}

.listing-header__title {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: var(--step-4);
}

.listing-header__place {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2xs);
	font-weight: 600;
	color: var(--text-soft);
}

.listing-header__place .icon,
.listing-header__facility .icon {
	margin-top: 0.15em;
	color: var(--brand);
}

/* Advert page: the facility the home is at, under the title (client feedback v3). */
.listing-header__facility {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2xs);
	font-size: var(--step-1);
	font-weight: 600;
}

.listing-header__facility a {
	color: var(--link);
	text-decoration: none;
}

.listing-header__facility a:hover {
	color: var(--link-hover);
	text-decoration: underline;
}

.listing-header__actions {
	display: flex;
	gap: var(--space-2xs);
}

/* Share menu. */
.share {
	position: relative;
}

.share__menu {
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 20;
	min-width: 12rem;
	padding: var(--space-2xs);
	list-style: none;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-m);
}

.share__menu a {
	display: flex;
	align-items: center;
	min-height: var(--tap);
	padding-inline: var(--space-s);
	border-radius: var(--radius-s);
	color: var(--text);
	text-decoration: none;
}

.share__menu a:hover {
	background: var(--color-green-50);
}

/* In-page tab bar (§7.10). */
.page-tabs {
	position: sticky;
	top: 60px;
	z-index: 30;
	margin-bottom: var(--space-m);
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-s);
}

.page-tabs ul {
	display: flex;
	gap: var(--space-xs);
	overflow-x: auto;
	list-style: none;
	padding: 0 var(--space-s);
	margin: 0;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
	mask-image: linear-gradient(to right, #000 85%, transparent);
}

.page-tabs a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap-l);
	padding-inline: var(--space-2xs);
	border-bottom: 3px solid transparent;
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.page-tabs a[aria-current="true"] {
	border-bottom-color: var(--brand);
	color: var(--brand);
}

@media (min-width: 60rem) {
	.page-tabs {
		top: 130px;
	}

	.page-tabs ul {
		-webkit-mask-image: none;
		mask-image: none;
	}
}

[id] {
	scroll-margin-top: 140px;
}

@media (min-width: 60rem) {
	[id] {
		scroll-margin-top: 210px;
	}
}

/* Main column panels. */
.listing__body {
	align-items: flex-start;
}

.panel {
	padding: var(--space-m);
	background: var(--bg-raised);
	border: 1px solid var(--border);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-s);
}

.panel > * + * {
	margin-top: var(--space-s);
}

.panel > h2 {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: var(--step-3);
}

.panel--plain {
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
}

/* Read more. */
.read-more__content {
	max-width: none;
}

.read-more.is-clamped .read-more__content {
	max-height: 14rem;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 60%, transparent);
	mask-image: linear-gradient(#000 60%, transparent);
}

.read-more__toggle .icon {
	transition: transform var(--duration) var(--ease);
}

.read-more__toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

/* Services. */
.services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	gap: var(--space-m);
}

.services__group h3 {
	margin-bottom: var(--space-2xs);
	font-size: var(--step-1);
}

/* Facilities (§7.12). */
.facilities {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(8.5rem, 100%), 1fr));
	gap: var(--space-s);
	list-style: none;
	padding: 0;
}

.facility {
	display: flex;
	flex-direction: column;
	gap: var(--space-3xs);
	padding: var(--space-s);
	border-radius: var(--radius-m);
	background: var(--color-green-50);
	color: var(--brand);
}

.facility__label {
	font-weight: 700;
	color: var(--text);
}

.facility__value {
	font-size: var(--step--1);
	color: var(--text-soft);
}

/* Video, click to load. */
.video__poster {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius-m);
	background: #000;
}

.video__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
}

.video__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2xs);
	color: #fff;
	font-weight: 700;
	text-shadow: 0 1px 3px rgb(0 0 0 / 0.6);
}

.video__play .icon {
	width: 4rem;
	height: 4rem;
	padding: 1rem;
	border-radius: var(--radius-pill);
	background: #c4302b;
	fill: #fff;
}

.video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: var(--radius-m);
}

/* Details list. */
.details {
	display: grid;
	gap: var(--space-2xs);
	margin: 0;
}

.details > div {
	display: grid;
	grid-template-columns: minmax(8rem, 12rem) 1fr;
	gap: var(--space-s);
	align-items: baseline; /* linked values (city, province) line up with their labels (feedback v2) */
}

.details dt {
	font-weight: 700;
}

.details dd {
	margin: 0;
}

@media (max-width: 39.99rem) {
	.details > div {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

.map {
	height: 20rem;
	border-radius: var(--radius-m);
	overflow: hidden;
	background: var(--color-sand);
	z-index: 0;
}

.map-pin {
	color: var(--cta);
}

/* Info cards (advert price, conditions, availability). */
.info-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
	gap: var(--space-s);
	list-style: none;
	padding: 0;
}

.info-card {
	padding: var(--space-m);
	gap: var(--space-2xs);
}

.info-card__label {
	display: flex;
	align-items: center;
	gap: var(--space-2xs);
	font-weight: 700;
	color: var(--brand);
}

.info-card__value {
	font-weight: 600;
}

/* Advert: Conditions wide on the left, Price and Availability small on the right (feedback v2). */
.info-layout {
	display: grid;
	gap: var(--space-s);
}

.info-layout__side {
	display: grid;
	gap: var(--space-s);
	align-content: start;
	margin: 0;
	padding: 0;
	list-style: none;
}

.info-layout__side .info-card {
	padding: var(--space-s);
}

@media (min-width: 48rem) {
	.info-layout--split {
		grid-template-columns: minmax(0, 2fr) minmax(12rem, 1fr);
		align-items: start;
	}
}

.parent-card .map {
	margin-top: var(--space-s);
	height: 16rem;
}

/* "This home is at". */
.parent-card__body {
	display: grid;
	gap: var(--space-m);
}

@media (min-width: 40rem) {
	.parent-card__body {
		grid-template-columns: 14rem 1fr;
	}
}

.parent-card__image {
	border-radius: var(--radius-m);
	overflow: hidden;
}

.parent-card h3 {
	font-family: var(--font-serif);
	font-weight: 600;
}

/* Sidebar enquiry card (§7.11). */
.listing__aside {
	align-self: stretch;
}

.sticky-aside {
	position: sticky;
	top: calc(130px + var(--space-s));
}

/* The listing's contact column is taller than the screen, so it scrolls with the page instead of
   sticking (client feedback 22 Oct 2026: the lower contact details could not be reached). */
.listing__aside .sticky-aside {
	position: static;
}

.enquiry-card__title {
	display: flex;
	align-items: center;
	gap: var(--space-2xs);
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: var(--step-2);
}

.enquiry-card__title .icon {
	color: var(--brand);
}

.contact-reveal.is-revealed {
	border-style: dashed;
}

.listing__views {
	text-align: center;
}

@media (max-width: 59.99rem) {
	.sticky-aside {
		position: static;
	}
}

/* Mobile action bar: Enquire · Call (WhatsApp joins in M3). */
.action-bar {
	display: none;
}

@media (max-width: 59.99rem) {
	.action-bar {
		position: fixed;
		inset: auto 0 0;
		z-index: 40;
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		gap: var(--space-2xs);
		padding: var(--space-2xs) var(--gutter) calc(var(--space-2xs) + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid var(--border);
		box-shadow: var(--shadow-m);
	}

	.action-bar .button {
		min-width: 0;
		padding-inline: var(--space-2xs);
		gap: var(--space-3xs);
	}

	.action-bar .button span {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	body:has(.action-bar) .site-footer {
		padding-bottom: calc(var(--space-3xl) + env(safe-area-inset-bottom));
	}
}

/* Agent and organisation header. */
.profile-header {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: var(--space-m);
	padding: var(--space-m);
	align-items: flex-start;
}

.profile-header > .stack {
	flex: 1 1 20rem;
}

.profile-header h1 {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: var(--step-3);
}

.profile-header__logo {
	flex: none;
	width: 8rem;
}

.profile-header__logo img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-m);
}

.profile-header__initial {
	display: grid;
	place-items: center;
	width: 8rem;
	height: 8rem;
	border-radius: var(--radius-pill);
	background: var(--color-green-100);
	color: var(--brand);
	font-family: var(--font-serif);
	font-size: var(--step-4);
}

/* ---------- Notices (§7.19) ---------- */
.notice {
	padding: var(--space-s) var(--space-m);
	border-left: 4px solid var(--color-info);
	border-radius: var(--radius-s);
	background: var(--bg-raised);
}

.notice > * + * {
	margin-top: var(--space-2xs);
}

.notice--info {
	font-size: var(--step--1);
	background: #eef5fa;
}

.notice--warning {
	border-left-color: var(--color-warning);
	background: #fdf6e3;
}

/* ---------- Pagination (§7.17) ---------- */
.pagination ul,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	list-style: none;
	padding: 0;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--tap);
	min-height: var(--tap);
	padding-inline: var(--space-xs);
	border: 1px solid var(--border);
	border-radius: var(--radius-s);
	background: var(--bg-raised);
	font-weight: 600;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.pagination .page-numbers.dots {
	border: 0;
	background: none;
}

/* Grids inside page content (shortcodes). */
.not-prose {
	list-style: none;
	padding: 0;
}

.grid {
	list-style: none;
	padding: 0;
}

.grid > li {
	display: flex;
}

.grid > li > .card {
	width: 100%;
}

/* ---------- M3 listing features ---------- */

/* WhatsApp: secondary green with the brand glyph (§7.4). Above the card's stretched link. */
.button--whatsapp .icon {
	fill: currentColor;
}

.result-card__actions {
	flex-direction: column;
	gap: var(--space-2xs);
}

.result-card__whatsapp {
	position: relative;
	z-index: 2;
}

/* FAQ accordion (§7.13). */
.faq__group + .faq__group {
	margin-top: var(--space-m);
}

.faq__group-title {
	display: flex;
	align-items: center;
	gap: var(--space-2xs);
	margin-bottom: var(--space-2xs);
	font-size: var(--step-1);
	color: var(--text);
}

.faq__group-title .icon {
	color: var(--brand);
}

.faq__item {
	border-bottom: 1px solid var(--border);
}

.faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-s);
	min-height: var(--tap);
	padding-block: var(--space-xs);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

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

.faq__item summary .icon {
	color: var(--brand);
	transition: transform var(--duration) var(--ease);
}

.faq__item[open] summary .icon {
	transform: rotate(180deg);
}

.faq__answer {
	padding-bottom: var(--space-s);
	color: var(--text-soft);
}

/* Brochure tiles (§7.14). */
.brochures {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(8rem, 100%), 11rem));
	gap: var(--space-s);
	list-style: none;
	padding: 0;
}

.brochure {
	display: flex;
	flex-direction: column;
	gap: var(--space-3xs);
	height: 100%;
	color: var(--text);
	text-decoration: none;
}

.brochure__thumb {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-m);
	background: var(--color-sand);
	color: var(--color-green-500);
}

.brochure__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.brochure__badge {
	position: absolute;
	top: var(--space-2xs);
	left: var(--space-2xs);
	padding: 0.1em 0.5em;
	border-radius: var(--radius-s);
	background: var(--color-danger);
	color: #fff;
	font-size: var(--step--1);
	font-weight: 700;
}

.brochure__title {
	font-weight: 700;
}

.brochure__meta {
	font-size: var(--step--1);
	color: var(--text-soft);
}

.brochure:hover .brochure__title {
	color: var(--brand);
	text-decoration: underline;
}

/* Virtual tour (§7.14). */
.tour {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius-m);
	background: var(--color-green-800);
}

.tour iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.tour__start {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-2xs);
	width: 100%;
	height: 100%;
	padding: var(--space-m);
	border: 0;
	background: radial-gradient(circle at 50% 40%, var(--color-green-700), var(--color-green-900));
	color: #fff;
	font-size: var(--step-1);
	font-weight: 700;
	cursor: pointer;
}

.tour__mark {
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	border: 3px solid #fff;
	border-radius: var(--radius-pill);
	font-size: var(--step-1);
}

.tour__provider {
	font-size: var(--step--1);
	font-weight: 400;
	opacity: 0.9;
}

.tour:fullscreen {
	border-radius: 0;
}

/* Owner statistics table ([ss_report]); becomes stacked rows on phones. */
.table-scroll {
	overflow-x: auto;
}

.report-table {
	min-width: 48rem;
	font-size: var(--step--1);
	background: #fff;
}

.report-table th,
.report-table td {
	padding: var(--space-2xs) var(--space-xs);
	border: 1px solid var(--border);
	text-align: right;
}

.report-table th[scope="row"],
.report-table thead th:first-child {
	text-align: left;
}

.report-table thead th {
	background: var(--color-green-100);
}

.report-table__child th[scope="row"] {
	padding-left: var(--space-l);
	font-weight: 400;
}

.report-table tfoot {
	font-weight: 700;
}

/* ---------- M4: forms, dashboard, accounts ---------- */

.ss-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.field__label {
	font-size: var(--step--1);
	font-weight: 700;
}

.field__help {
	font-size: var(--step--1);
	color: var(--text-soft);
}

.field__error {
	display: flex;
	gap: var(--space-3xs);
	font-size: var(--step--1);
	font-weight: 700;
	color: var(--color-danger);
}

.field--error input,
.field--error select,
.field--error textarea {
	border-color: var(--color-danger);
	border-width: 2px;
}

.field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
	gap: var(--space-s) var(--space-m);
}

.form-section {
	/* Block, not grid: in some browsers a grid fieldset drew its heading on the top border
	   ("the text is over the line", feedback v2). Spacing comes from .panel > * + *. */
	display: block;
}

.form-section > legend {
	float: left;
	width: 100%;
	margin-bottom: var(--space-xs);
	padding: 0;
	font-family: var(--font-serif);
	font-size: var(--step-2);
	font-weight: 600;
}

/* Everything after the floated legend starts below it. Only the next sibling used to clear; when
   that was a hidden input, a grid or flex block after it (Services check groups, the brochure
   upload, the ribbon picker) sat beside the full-width legend and was squeezed into a narrow
   column (client feedback v3, all browsers). */
.form-section > legend ~ * {
	clear: both;
}

.form-section__intro {
	font-weight: 600;
	color: var(--brand);
}

/* The owner's own FAQ: question and answer as one block. */
.own-faq {
	display: grid;
	gap: var(--space-2xs);
	padding: var(--space-s);
	border: 1px dashed var(--border);
	border-radius: var(--radius-m);
}

/* The rich text editor (description) inside the form. */
.richtext .wp-editor-wrap {
	border: 1px solid var(--border);
	border-radius: var(--radius-s);
	overflow: hidden;
}

.richtext .mce-toolbar-grp,
.richtext .quicktags-toolbar {
	background: var(--bg);
}

/* Where ribbons show, in the client's words (feedback v2, v3). */
.ribbon-explainer {
	display: grid;
	gap: var(--space-2xs);
	padding: var(--space-s);
	border-radius: var(--radius-m);
	background: var(--color-green-50);
}

.ribbon-explainer p {
	margin: 0;
}

/* Ribbon picker: up to 6, with a live "x of 6 chosen" (client feedback v3). */
.ribbon-picker__count {
	align-self: flex-start;
	padding: 0.15em 0.75em;
	border-radius: var(--radius-pill);
	background: var(--color-green-100);
	color: var(--brand);
	font-size: var(--step--1);
	font-weight: 700;
}

.ribbon-picker__count--full {
	background: var(--ribbon-info-bg);
	color: var(--ribbon-info-text);
}

.ribbon-picker__count--over {
	background: var(--color-danger);
	color: #fff;
}

.ribbon-group__label {
	margin-bottom: var(--space-3xs);
}

/* Boxes that can't be ticked once 6 are chosen. */
.check--disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.form-section--admin {
	border-color: var(--color-warning);
}

.form-subhead {
	margin-top: var(--space-s);
	font-size: var(--step-1);
}

.form-steps ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	list-style: none;
	padding: 0;
	counter-reset: step;
}

.form-steps a {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	min-height: var(--tap);
	padding: 0 var(--space-s);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--text);
	font-size: var(--step--1);
	font-weight: 600;
	text-decoration: none;
}

.form-steps li {
	counter-increment: step;
}

.form-steps a::before {
	content: counter(step);
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: var(--radius-pill);
	background: var(--color-green-100);
	color: var(--brand);
	font-size: 0.85rem;
}

.readonly-box {
	max-height: 14rem;
	overflow: auto;
	padding: var(--space-s);
	border: 1px dashed var(--field-border);
	border-radius: var(--radius-s);
	background: var(--bg);
	color: var(--text-soft);
}

.check-groups {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
	gap: var(--space-m);
}

.check-columns {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
	gap: 0 var(--space-m);
}

.check-columns .ribbon {
	font-size: var(--step--1);
	white-space: nowrap; /* a price never breaks over two lines (v3) */
}

/*
 * Ribbon choices: columns wide enough for the longest ribbon ("Not Government Subsidised"), and
 * filled top to bottom, so pairs listed together stay together: Rentals Available directly above
 * No Rentals Available (client feedback v4). The price rows below keep left-to-right order.
 */
.check-columns:has(.ribbon) {
	display: block;
	columns: 3 16rem;
	column-gap: var(--space-m);
}

.check-columns:has(.ribbon) > .check {
	break-inside: avoid;
}

/* Prices together (feedback v2: "the pricing should be together"); as many to a row as fit
   whole, so "From R1,200,000" never wraps inside its ribbon. */
.check-columns--row,
.check-columns--row:has(.ribbon) {
	display: grid;
	columns: auto;
	grid-template-columns: repeat(auto-fill, minmax(min(12.5rem, 100%), 1fr));
}

.thumb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
	gap: var(--space-xs);
	list-style: none;
	padding: 0;
}

.thumb-pick {
	display: grid;
	gap: var(--space-3xs);
	max-width: 10rem;
}

.thumb-pick img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--radius-s);
	background: var(--color-sand);
}

.thumb-pick--logo img {
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--border);
}

.suggestion {
	padding: var(--space-xs) var(--space-s);
	border-left: 4px solid var(--brand);
	border-radius: var(--radius-s);
	background: var(--color-green-100);
}

.suggestion__why {
	color: var(--text-soft);
}

.button--small {
	min-height: 2.5rem;
	padding: var(--space-3xs) var(--space-s);
	font-size: var(--step--1);
}

.meter {
	height: 0.75rem;
	overflow: hidden;
	border-radius: var(--radius-pill);
	background: var(--color-green-100);
}

.meter span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--brand);
}

.meter--small {
	height: 0.5rem;
	max-width: 16rem;
}

.completeness__title {
	font-family: var(--font-sans);
	font-size: var(--step-1);
	font-weight: 700;
}

.completeness__list {
	display: grid;
	gap: var(--space-2xs);
	padding-left: 1.2em;
	font-size: var(--step--1);
}

.save-bar {
	display: none;
}

@media (max-width: 59.99rem) {
	.save-panel {
		display: none;
	}

	.save-bar {
		position: sticky;
		bottom: 0;
		z-index: 30;
		display: block;
		margin-top: var(--space-m);
		padding: var(--space-2xs) 0 calc(var(--space-2xs) + env(safe-area-inset-bottom));
		background: var(--bg);
	}
}

.form-layout {
	align-items: flex-start;
}

/* Dashboard (STYLE-GUIDE §8 "Dashboard"). */
.dashboard__nav ul {
	list-style: none;
	padding: var(--space-2xs);
	display: grid;
	gap: 2px;
}

.dashboard__nav a {
	display: flex;
	align-items: center;
	min-height: var(--tap);
	padding: 0 var(--space-s);
	border-radius: var(--radius-s);
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
}

.dashboard__nav a:hover {
	background: var(--color-green-50);
}

.dashboard__nav a[aria-current] {
	background: var(--color-green-100);
	color: var(--brand);
}

@media (min-width: 60rem) {
	.dashboard__nav {
		position: sticky;
		top: calc(130px + var(--space-s));
	}
}

@media (max-width: 59.99rem) {
	.dashboard__nav ul {
		display: flex;
		overflow-x: auto;
	}

	.dashboard__nav a {
		white-space: nowrap;
	}
}

.dashboard__main {
	--stack: var(--space-m);
	min-width: 0;
}

.dashboard__main h1 {
	font-size: var(--step-3);
}

.dash-list {
	display: grid;
	gap: var(--space-s);
	list-style: none;
	padding: 0;
}

.dash-item {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-s);
	padding: var(--space-s);
}

@media (min-width: 40rem) {
	.dash-item {
		grid-template-columns: 7rem 1fr auto;
		align-items: center;
	}

	.dash-item.enquiry,
	.dash-item:not(:has(> .dash-item__image)) {
		/* No photo column (enquiries, articles): the text gets the full width (feedback v2). */
		grid-template-columns: 1fr auto;
	}
}

.dash-item__image .media {
	border-radius: var(--radius-s);
}

/* A listing without a photo: a plain white box, so the names still line up (feedback v2). */
.dash-item__image .media--blank {
	border: 1px solid var(--border);
	background: #fff;
}

.dash-item__title {
	font-family: var(--font-serif);
	font-size: var(--step-1);
	font-weight: 600;
}

.dash-item__title a {
	color: var(--text);
}

.enquiry--seen {
	opacity: 0.75;
	background: var(--bg);
}

.enquiry__body {
	padding: var(--space-xs) var(--space-s);
	border-radius: var(--radius-s);
	background: var(--color-green-50);
	white-space: normal;
}

.inline-form {
	display: inline;
}

/* Log in / register card. */
.auth-card {
	max-width: 32rem;
	margin-inline: auto;
}

.auth-card h1 {
	font-size: var(--step-3);
}

/* Notices used by forms. */
.notice--success {
	border-left-color: var(--color-success);
	background: var(--color-green-100);
}

.notice--error {
	border-left-color: var(--color-danger);
	background: #fdecea;
}

.notice ul {
	padding-left: 1.2em;
}

/* Guided search widget (§7.3, quote Q1). Floats bottom-right; a bottom sheet on phones. */
.guided {
	position: fixed;
	right: var(--gutter);
	bottom: calc(var(--space-m) + env(safe-area-inset-bottom));
	z-index: 45;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--space-xs);
}

.guided[hidden] {
	display: none;
}

.guided__toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	min-height: var(--tap);
	padding: 0 var(--space-s) 0 var(--space-xs);
	font-size: var(--step-ui);
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--cta);
	box-shadow: var(--shadow-m);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.guided__toggle:hover {
	background: var(--cta-hover);
}

.guided.is-open .guided__toggle {
	display: none;
}

.guided__panel {
	width: min(22rem, calc(100vw - 2 * var(--gutter)));
	max-height: min(36rem, calc(100vh - 2 * var(--space-m)));
	overflow-y: auto;
	padding: var(--space-m);
	box-shadow: var(--shadow-m);
}

.guided__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-xs);
	margin-bottom: var(--space-xs);
}

.guided__title {
	font-size: var(--step-1);
}

.guided__title:focus {
	outline: none;
}

.guided__close {
	flex: none;
	margin: calc(-1 * var(--space-2xs)) calc(-1 * var(--space-2xs)) 0 0;
}

.guided__intro,
.guided__path {
	color: var(--text-soft);
}

.guided__path {
	font-size: var(--step--1);
}

.guided__progress {
	margin-bottom: var(--space-3xs);
}

.guided__question {
	margin-block: var(--space-2xs) var(--space-xs);
	font-size: var(--step-0);
}

.guided__choices {
	display: grid;
	gap: var(--space-2xs);
	margin-block: var(--space-xs);
	padding: 0;
	list-style: none;
}

.guided__choice {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	width: 100%;
	min-height: var(--tap-l);
	padding: var(--space-2xs) var(--space-s);
	border: 1px solid var(--border);
	border-radius: var(--radius-m);
	background: #fff;
	color: var(--text);
	font: inherit;
	font-weight: 600;
	line-height: var(--leading-tight);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.guided__choice span {
	flex: 1;
}

.guided__choice .icon:first-child {
	flex: none;
	color: var(--cta);
}

.guided__choice .icon:last-child {
	flex: none;
	color: var(--brand);
}

.guided__choice:hover {
	background: var(--color-green-100);
	color: var(--text);
}

.guided__back {
	margin-top: var(--space-2xs);
}

.guided__ask {
	display: grid;
	gap: var(--space-2xs);
	margin-top: var(--space-s);
	padding-top: var(--space-s);
	border-top: 1px solid var(--border);
}

.guided__ask label {
	font-size: var(--step--1);
	font-weight: 700;
}

.guided__ask-row {
	display: flex;
	gap: var(--space-2xs);
}

.guided__ask-row input {
	flex: 1;
	min-width: 0;
}

.guided__contact {
	margin-top: var(--space-xs);
	font-size: var(--step--1);
	color: var(--text-soft);
}

@media (max-width: 39.99rem) {
	.guided.is-open {
		right: 0;
		bottom: 0;
		left: 0;
	}

	.guided__panel {
		width: 100%;
		max-height: 85vh;
		border-radius: var(--radius-l) var(--radius-l) 0 0;
		padding-bottom: calc(var(--space-m) + env(safe-area-inset-bottom));
	}
}

@media (max-width: 59.99rem) {
	/* Listing and advert pages have a fixed contact bar on phones: float above it. */
	body:has(.action-bar) .guided:not(.is-open) {
		bottom: calc(var(--tap-l) + var(--space-s) + env(safe-area-inset-bottom));
	}
}

@media print {
	.guided {
		display: none;
	}
}

/* "New" marker on the M5 filters, and the note under them. */
.tag-new {
	display: inline-block;
	margin-left: var(--space-3xs);
	padding: 0 var(--space-2xs);
	border-radius: var(--radius-pill);
	background: var(--color-accent-100);
	color: var(--color-accent-700);
	font-size: var(--step--1);
	font-weight: 700;
	vertical-align: middle;
}

.filters__note {
	margin-top: var(--space-xs);
}

/* ===== M6 content pages ===== */

/* Content sidebar: search card, sponsored tiles, "List your facility". */
.content-sidebar {
	align-self: start;
}

.side-card {
	padding: var(--space-m);
}

.side-card__title {
	font-size: var(--step-1);
}

.side-card__link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	min-height: var(--tap);
	font-weight: 600;
}

.side-card--brand {
	background: var(--color-green-100);
	box-shadow: none;
}

.side-partners .sponsored-tile {
	display: block;
}

/* Contact page: wider form column. */
.with-sidebar--right-wide > :last-child {
	flex-basis: 26rem;
}

.contact-page {
	margin-top: var(--space-l);
}

.contact-page__form {
	align-self: start;
}

/* Site forms (contact, free listing, coding sheet). */
.site-form__section {
	margin-top: var(--space-l);
	padding-top: var(--space-s);
	border-top: 1px solid var(--border);
	font-size: var(--step-1);
}

.category-checks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
	gap: var(--space-s) var(--space-m);
}

.category-checks__group {
	display: grid;
	align-content: start;
}

/* Articles. */
.article__meta {
	justify-content: space-between;
	align-items: center;
}

.article__image img {
	width: 100%;
	border-radius: var(--radius-m);
}

/* Site FAQ: filter and groups. */
.faq-tools {
	align-items: end;
	justify-content: space-between;
}

.faq-tools__filter {
	flex: 1 1 18rem;
	max-width: 28rem;
}

.faq__answer.prose > :not(.not-prose) {
	max-width: none;
}

/* About: credential grid (Q15). */
.credential-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
	gap: var(--space-s);
	padding: 0;
	list-style: none;
}

.credential {
	display: flex;
	gap: var(--space-s);
	padding: var(--space-m);
	border-radius: var(--radius-m);
	background: #fff;
	box-shadow: var(--shadow-s);
	transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

/* All boxes alike (feedback v2: "standardise the look of the boxes, right and left"). */

.credential:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-m);
}

.credential__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--color-green-100);
	color: var(--brand);
}

.credential__title {
	font-size: var(--step-0);
	font-family: var(--font-sans);
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	.credential,
	.credential:hover {
		transition: none;
		transform: none;
	}
}

/* Pricing: comparison cards (Q10). */
.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
	gap: var(--space-s);
	padding: 0;
	list-style: none;
	align-items: stretch;
}

.price-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-s);
	padding: var(--space-m);
	border-radius: var(--radius-m);
	border-top: 6px solid var(--border);
	background: #fff;
	box-shadow: var(--shadow-s);
}

.price-card--bronze { border-top-color: var(--tier-bronze); }
.price-card--silver { border-top-color: var(--tier-silver); }
.price-card--gold { border-top-color: var(--badge-gold-bg); }
.price-card--free { border-top-color: var(--color-green-500); }

.price-card__name {
	font-size: var(--step-1);
}

.price-card__price strong {
	font-family: var(--font-serif);
	font-size: var(--step-3);
	color: var(--text);
}

.price-card__price span {
	color: var(--text-soft);
}

.price-card__features {
	display: grid;
	flex: 1;
	align-content: start;
	gap: var(--space-2xs);
	padding: 0;
	list-style: none;
}

.price-card__features li {
	display: flex;
	gap: var(--space-2xs);
	line-height: var(--leading-tight);
}

.price-card__features .icon {
	flex: none;
	color: var(--brand);
}

.pricing-notes p:empty {
	display: none;
}

/* Estate agents. */
.agent-card__logo {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	padding: var(--space-s);
	background: var(--color-green-50);
	border-radius: var(--radius-m) var(--radius-m) 0 0;
}

.agent-card__logo img {
	max-height: 7rem;
	width: auto;
	object-fit: contain;
}

.agent-card__initial {
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background: var(--brand);
	color: #fff;
	font-family: var(--font-serif);
	font-size: var(--step-3);
}

/* Full map. */
.full-map__head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: var(--space-s);
}

.full-map__search {
	position: relative;
	flex: 1 1 18rem;
	max-width: 26rem;
}

.full-map__results {
	position: absolute;
	inset: 100% 0 auto;
	z-index: 1001;
	margin-top: var(--space-3xs);
	padding: var(--space-3xs);
	list-style: none;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-m);
}

.full-map__results button {
	display: grid;
	width: 100%;
	min-height: var(--tap);
	padding: var(--space-2xs) var(--space-s);
	border: 0;
	border-radius: var(--radius-s);
	background: none;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.full-map__results button:hover,
.full-map__results button:focus-visible {
	background: var(--color-green-50);
}

.full-map__results li.meta {
	padding: var(--space-2xs) var(--space-s);
}

.map--full {
	height: min(70vh, 44rem);
	min-height: 24rem;
}

.map-popup {
	--stack: var(--space-3xs);
	max-width: 14rem;
	font-size: var(--step--1);
}

.map-popup img {
	width: 100%;
	border-radius: var(--radius-s);
}

/* Popular searches: link lists in columns. */
.quick-links .textwidget {
	columns: 3 16rem;
	column-gap: var(--space-l);
}

.quick-links .textwidget > p {
	break-after: avoid;
	margin-top: var(--space-m);
	font-family: var(--font-serif);
	font-size: var(--step-1);
	font-weight: 600;
}

.quick-links ul {
	margin: var(--space-2xs) 0 0;
	padding: 0;
	list-style: none;
	break-inside: avoid; /* each region's list stays under its heading (feedback v2) */
}

.quick-links li a {
	display: inline-block;
	padding-block: var(--space-3xs);
}

/* Special offers. */
.offers-filter {
	align-items: end;
}

/* Offers come in every shape (wide banners, tall flyers): columns that each fill from the top, so
   there are no big gaps between rows (feedback v2: "it doesn't render well"). */
.offers-grid {
	columns: 3 18rem; /* three, not four (client feedback v3) */
	column-gap: var(--space-m);
	padding: 0;
	list-style: none;
}

.offers-grid > li {
	break-inside: avoid;
	margin-bottom: var(--space-m);
}

.offer-card {
	display: block;
	overflow: hidden;
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-s);
}

.offer-card img {
	width: 100%;
	height: auto;
}

.video-card .video {
	border-radius: var(--radius-m) var(--radius-m) 0 0;
}

.leaflet-container {
	font: inherit;
	font-size: var(--step--1);
}

/* ===== Design review (Oct 2026): layout fixes after comparing with the concepts ===== */

/* Card rails show whole cards: 4 across on desktop, 3 on tablets (no sliced card at the edge). */
@media (min-width: 48rem) {
	.rail__track {
		grid-auto-columns: calc((100% - 2 * var(--space-m)) / 3);
	}
}

@media (min-width: 64rem) {
	.rail__track {
		grid-auto-columns: calc((100% - 3 * var(--space-m)) / 4);
	}
}

.site-footer li a,
.site-footer li a strong {
	font-weight: 400;
}

@media (max-width: 39.99rem) {
	/* Hero search tabs: smaller labels so "accommodation" never breaks mid-word. */
	.search-panel__tab-title {
		font-size: var(--step-small);
		overflow-wrap: normal;
		word-break: normal;
		hyphens: manual;
	}

	/* Phones: the floating guided-search button becomes a round icon button so it covers less
	   of the page; the label stays for screen readers. */
	.guided__toggle {
		width: var(--tap);
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}

	.guided__toggle span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* ===== Home partner row: every card has a 16:9 visual on top ===== */
.partner-card {
	display: flex;
	flex-direction: column;
}

.partner-card .card__body {
	flex: 1;
}

.partner-card__action {
	margin-top: auto;
	padding-top: var(--space-2xs);
}

.partner-card__title {
	font-size: var(--step-1);
}

.partner-card__visual {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.partner-card__visual--image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
}

.partner-card__visual--facebook {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	background:
		radial-gradient(circle at 85% 15%, rgb(255 255 255 / 0.18), transparent 45%),
		linear-gradient(135deg, var(--facebook), #0b4fb3);
	color: #fff;
}

.partner-card__visual--facebook p {
	display: flex;
	align-items: baseline;
	gap: var(--space-2xs);
	margin: 0;
}

.partner-card__visual--facebook strong {
	font-family: var(--font-serif);
	font-size: var(--step-3);
	line-height: 1;
}

/* "Who visits" chart: one series of monthly bars. */
.visits-chart {
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: var(--space-2xs);
	margin: 0;
	padding: var(--space-s) var(--space-s) var(--space-2xs);
	background: var(--color-green-50);
}

.visits-chart__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: var(--space-2xs);
	font-size: var(--step-ui);
}

.visits-chart__head strong {
	font-family: var(--font-serif);
	font-size: var(--step-2);
	color: var(--text);
	line-height: 1.1;
}

.visits-chart__sub {
	flex-basis: 100%;
	color: var(--text-soft);
	font-size: var(--step-small);
}

.visits-chart__bars {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	align-items: end;
	gap: 2px; /* surface gap between bars */
	min-height: 0;
	margin: 0;
	padding: 0 0 1.25rem;
	list-style: none;
	border-bottom: 1px solid var(--border);
}

.visits-chart__bar {
	position: relative;
	height: var(--h);
	min-height: 4px;
	border-radius: 4px 4px 0 0;
	background: var(--chart-1);
	outline-offset: 2px;
}

.visits-chart__month {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, 0.25rem);
	color: var(--text-muted);
	font-size: 0.75rem;
	line-height: 1;
}

/* Value on hover or keyboard focus. */
.visits-chart__bar:hover::after,
.visits-chart__bar:focus-visible::after {
	content: attr(data-tip);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	z-index: 2;
	transform: translateX(-50%);
	padding: 0.2rem 0.5rem;
	border-radius: var(--radius-s);
	background: var(--text);
	color: #fff;
	font-size: 0.8125rem;
	white-space: nowrap;
	box-shadow: var(--shadow-m);
}

.visits-chart__bar:first-child:hover::after,
.visits-chart__bar:first-child:focus-visible::after {
	left: 0;
	transform: none;
}

.visits-chart__bar:last-child:hover::after,
.visits-chart__bar:last-child:focus-visible::after {
	right: 0;
	left: auto;
	transform: none;
}

.visits-chart__source {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.75rem;
}

/* ===== Home "About Senior Service" band: short intro, the rest on request, facts card ===== */
.about-band {
	display: grid;
	gap: var(--space-xl);
	align-items: start;
}

@media (min-width: 60rem) {
	.about-band {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	}
}

.about-band__text .home-copy > :not(.not-prose) {
	max-width: 44rem;
}

.more-details summary {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	min-height: var(--tap);
	color: var(--brand);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

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

.more-details[open] summary .icon {
	transform: rotate(180deg);
}

.more-details__close,
.more-details[open] .more-details__open {
	display: none;
}

.more-details[open] .more-details__close {
	display: inline;
}

.more-details > .prose {
	margin-top: var(--space-s);
}

.about-facts {
	display: grid;
	gap: var(--space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--step-ui);
}

.about-facts li {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
}

.about-facts .icon {
	flex: none;
	color: var(--brand);
}

@media (min-width: 60rem) {
	.about-band__card {
		position: sticky;
		top: var(--space-l);
	}
}

/* Area cards: name over the photo. */
.region-card .card__image {
	position: relative;
}

.region-card__overlay {
	position: absolute;
	inset: auto 0 0;
	padding: var(--space-xl) var(--space-s) var(--space-s);
	background: linear-gradient(to top, rgb(20 32 24 / 0.82), rgb(20 32 24 / 0));
	color: #fff;
}

.region-card__name {
	font-family: var(--font-serif);
	font-size: var(--step-1);
	font-weight: 600;
	line-height: var(--leading-tight);
}

.region-card__name .card__link,
.card:hover .region-card__name .card__link {
	color: #fff;
}

.region-card__province {
	margin: 0;
	font-size: var(--step-small);
	opacity: 0.9;
}

.region-card__body {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	padding-block: var(--space-xs);
}

/* Card polish: a gentle lift and photo zoom on hover (not for reduced motion). */
.card {
	transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.card .media img {
	transition: transform 0.5s var(--ease);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.card:has(.card__link):hover {
		transform: translateY(-3px);
		box-shadow: var(--shadow-m);
	}

	.card:has(.card__link):hover .media img {
		transform: scale(1.04);
	}
}

/* Result cards: a slightly wider 4:3 photo column, text block about the photo's height. */
@media (min-width: 40rem) {
	.result-card {
		grid-template-columns: 18rem 1fr auto;
	}

	.result-card--no-photo {
		grid-template-columns: 1fr auto;
	}

	.result-card .tags {
		flex-wrap: nowrap;
		overflow: hidden;
	}

	.result-card .tag {
		flex: none;
	}
}

/* Pricing: content highlights inside features stay readable, not shouting. */
.price-card__features strong {
	font-weight: 600;
}

.price-card__features mark {
	background: none;
	color: inherit;
}

/* Phones: type-of-care cards as compact rows (small 4:3 photo, text beside it) instead of five
   full-width tiles (about 2,000px of scrolling). */
@media (max-width: 39.99rem) {
	.type-cards {
		gap: var(--space-xs);
	}

	.type-card {
		flex-direction: row;
		align-items: center;
	}

	.type-card > .media,
	.type-card > .card__image {
		flex: none;
		width: 7.5rem;
	}

	.type-card .card__body {
		padding: var(--space-xs) var(--space-l) var(--space-xs) var(--space-s);
	}

	.type-card .card__chevron {
		position: absolute;
		top: 50%;
		right: var(--space-xs);
		bottom: auto;
		transform: translateY(-50%);
	}
}

/* Icons inside links and text sit on the text line (they wrapped onto their own line, e.g.
   "More questions about retirement living →"). */
a > .icon,
p > .icon,
summary > .icon,
button > .icon {
	display: inline-block;
	vertical-align: -0.2em;
}

/* About credential grid: two roomy columns beside the sidebar. */
.credential-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
}

@media (max-width: 39.99rem) {
	/* Type-of-care rows: room for the arrow so it never covers the text. */
	.type-card .card__body {
		padding-right: 3.5rem;
	}

	/* Breadcrumb: compact lines on phones (48px-tall crumbs left big gaps when it wrapped). */
	.breadcrumb a {
		min-height: 2rem;
		min-width: 0;
	}

	.breadcrumb ol {
		row-gap: 0;
	}

	/* Listing header: care-type chips wrap side by side, smaller. */
	.listing-header .chips {
		gap: var(--space-3xs);
	}

	.listing-header .chip {
		min-height: 2.25rem;
		padding: 0.15em 0.75em;
		font-size: var(--step-small);
	}
}

/* Search assistant as a chat (quote Q1, 8 Oct 2026): bubbles, result cards, suggestion chips. */
.guided__panel--chat {
	display: flex;
	flex-direction: column;
	width: min(26rem, calc(100vw - 2 * var(--gutter)));
	height: min(40rem, calc(100vh - 2 * var(--space-m)));
	max-height: none;
	overflow: hidden;
	padding: var(--space-s) var(--space-s) var(--space-xs);
	border-radius: var(--radius-xl);
}

.guided__panel--chat .guided__head {
	margin-bottom: var(--space-2xs);
}

.guided__panel--chat .guided__body {
	display: flex;
	flex: 1;
	min-height: 0;
}

.finder {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	gap: var(--space-2xs);
}

.finder__log {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-xs);
	min-height: 0;
	margin: 0;
	padding: var(--space-3xs) var(--space-3xs) var(--space-xs);
	overflow-y: auto;
	list-style: none;
	overscroll-behavior: contain;
}

.finder__msg {
	display: grid;
	gap: var(--space-2xs);
	max-width: 92%;
	padding: var(--space-xs) var(--space-s);
	border-radius: var(--radius-l);
	font-size: var(--step-ui);
	line-height: 1.45;
}

.finder__msg--bot {
	align-self: flex-start;
	border-bottom-left-radius: var(--radius-s);
	background: var(--color-green-50);
	border: 1px solid var(--color-green-100);
}

.finder__msg--me {
	align-self: flex-end;
	border-bottom-right-radius: var(--radius-s);
	background: var(--brand);
	color: #fff;
}

.finder__cards {
	display: grid;
	gap: var(--space-2xs);
}

.finder-card {
	display: flex;
	gap: var(--space-xs);
	padding: var(--space-2xs);
	border: 1px solid var(--border);
	border-radius: var(--radius-m);
	background: #fff;
	color: var(--text);
	text-decoration: none;
	transition: box-shadow var(--duration) var(--ease);
}

.finder-card:hover {
	box-shadow: var(--shadow-m);
	color: var(--text);
}

.finder-card__img {
	flex: none;
	width: 5.5rem;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius-s);
	background: var(--color-sand);
}

.finder-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.finder-card__text {
	display: grid;
	align-content: start;
	gap: 2px;
	min-width: 0;
	line-height: 1.3;
}

.finder-card__title {
	font-size: var(--step-small);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.finder-card__place {
	font-size: 0.875rem;
	color: var(--text-soft);
}

.finder-card__why {
	display: flex;
	flex-wrap: wrap;
	gap: 2px var(--space-2xs);
	font-size: 0.8125rem;
}

.finder-card__yes {
	color: var(--color-green-800);
	font-weight: 600;
}

.finder-card__unknown,
.finder-card__no {
	color: var(--text-soft);
}

.finder__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
}

.finder__chips:empty {
	display: none;
}

.finder__chip {
	min-height: 2.5rem;
	padding: var(--space-3xs) var(--space-s);
	border: 1px solid var(--color-green-200);
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--color-green-800);
	font: inherit;
	font-size: var(--step-small);
	font-weight: 600;
	cursor: pointer;
}

.finder__chip:hover {
	background: var(--color-green-100);
}

.finder__form {
	display: flex;
	gap: var(--space-2xs);
	padding: var(--space-3xs);
	border: 1px solid var(--field-border);
	border-radius: var(--radius-pill);
	background: #fff;
}

.finder__form:focus-within {
	outline: 3px solid var(--focus);
	outline-offset: 1px;
}

.finder__form input {
	flex: 1;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0 var(--space-xs);
	border: 0;
	background: none;
}

.finder__form input:focus-visible {
	outline: none;
}

.finder__send {
	flex: none;
	width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border-radius: 50%;
}

.finder__foot {
	display: flex;
	justify-content: space-between;
	gap: var(--space-s);
	font-size: 0.875rem;
}

.finder__restart {
	padding: 0;
	border: 0;
	background: none;
	color: var(--text-soft);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.finder__typing {
	display: flex;
	gap: 4px;
	padding-block: var(--space-s);
}

.finder__typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--color-green-500);
	animation: finder-dot 1s infinite ease-in-out;
}

.finder__typing span:nth-child(2) {
	animation-delay: 0.15s;
}

.finder__typing span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes finder-dot {
	0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
	40% { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
	.finder__typing span {
		animation: none;
	}
}

@media (max-width: 39.99rem) {
	.guided__panel--chat {
		width: 100%;
		height: 88vh;
		height: 88dvh;
		border-radius: var(--radius-xl) var(--radius-xl) 0 0;
	}
}

.finder__followup {
	font-weight: 600;
}

/* Phone clean-up (8 Oct 2026). */
@media (max-width: 59.99rem) {
	/* The floating help button tucks away while scrolling down (main.js). */
	.guided {
		transition: transform 250ms var(--ease), opacity 250ms var(--ease);
	}

	.guided.is-tucked:not(.is-open) {
		transform: translateY(calc(100% + var(--space-l)));
		opacity: 0;
		pointer-events: none;
	}

	/* Three buttons in the bottom bar (Enquire, WhatsApp, Call): icon over the word, so none is cut off. */
	.action-bar:has(> :nth-child(3)) .button {
		flex-direction: column;
		gap: 2px;
		min-height: var(--tap-l);
		padding-block: var(--space-3xs);
		font-size: var(--step-small);
		line-height: 1.1;
	}

	/* Sidebar "Special offers" tile: title over the line, not run together. */
	.side-card + .sponsored-tile--offers,
	.sponsored-tile--offers {
		align-items: flex-start;
	}

	.sponsored-tile--offers .sponsored-tile__title {
		display: block;
	}
}

/* Owner dashboard on phones: a compact row per listing (small photo beside the text). */
@media (max-width: 39.99rem) {
	.dash-item {
		grid-template-columns: 5.5rem 1fr;
		align-items: start;
		gap: var(--space-xs) var(--space-s);
	}

	.dash-item.enquiry {
		grid-template-columns: 1fr;
	}

	.dash-item__actions {
		grid-column: 1 / -1;
	}

	.dash-item__title {
		font-size: var(--step-0);
	}
}

/* Points with an icon: About Senior Service (home) and Why use Senior Service (pricing). */
.about-points {
	display: grid;
	gap: var(--space-s);
	list-style: none;
	margin: 0;
	padding: 0;
}

.about-point {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--space-3xs) var(--space-s);
	align-content: start;
	padding: var(--space-m);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--bg-raised);
}

.about-point__icon {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--color-green-100);
	color: var(--brand);
}

.about-point__title {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: var(--step-1);
}

.about-point p {
	font-size: var(--step-ui);
	color: var(--text-soft);
}

@media (min-width: 60rem) {
	.about-points {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.why-use {
	display: grid;
	gap: var(--space-s);
}

/* Pricing notes and the discount table (page content), in one box under the cards. */
.pricing-notes {
	display: grid;
	gap: var(--space-xs);
}

.pricing-notes .discount-table {
	margin: var(--space-xs) 0 0;
	max-width: 32rem;
}

.pricing-notes .discount-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-l);
	font-size: var(--step-0);
}

.pricing-notes .discount-table th {
	padding: var(--space-xs) var(--space-s);
	background: var(--color-green-800);
	color: #fff;
	font-family: var(--font-serif);
	font-weight: 600;
	text-align: left;
}

.pricing-notes .discount-table th,
.pricing-notes .discount-table td {
	border: 0; /* the prose table grid does not apply here */
}

.pricing-notes .discount-table td {
	padding: var(--space-xs) var(--space-s);
	border-top: 1px solid var(--border);
	background: var(--bg-raised);
}

.pricing-notes .discount-table td:last-child {
	text-align: right;
	font-weight: 700;
	color: var(--color-accent-700);
}

/* Visitors line graph (template-parts/visits-line-chart.php): one series, --chart-1. */
.line-chart {
	display: grid;
	gap: var(--space-s);
	margin: 0;
}

.line-chart__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: var(--space-2xs);
}

.line-chart__title {
	flex-basis: 100%;
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: var(--step-2);
}

.line-chart__head strong {
	font-size: var(--step-3);
	line-height: 1.1;
}

.line-chart__sub {
	color: var(--text-soft);
	font-size: var(--step-ui);
}

.line-chart__plot {
	position: relative;
	height: 14rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
}

.line-chart__plot svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.line-chart__area {
	fill: var(--color-green-100);
}

.line-chart__line {
	fill: none;
	stroke: var(--chart-1);
	stroke-width: 2px;
	stroke-linejoin: round;
}

.line-chart__months {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Each month: a full-height hover strip with a dot on the line. */
.line-chart__months li {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--x);
	width: 2.5rem;
	transform: translateX(-50%);
	outline-offset: 2px;
}

.line-chart__months li::before {
	content: "";
	position: absolute;
	top: var(--y);
	left: 50%;
	width: 10px;
	height: 10px;
	border: 2px solid var(--bg-raised);
	border-radius: 50%;
	background: var(--chart-1);
	transform: translate(-50%, -50%);
}

/* Every point shows its number (feedback v2: people won't think to hover). */
.line-chart__value {
	position: absolute;
	top: calc(var(--y) - 1.6rem);
	left: 50%;
	transform: translateX(-50%);
	font-size: var(--step-small);
	font-weight: 700;
	color: var(--text);
	white-space: nowrap;
}

.line-chart__months li:first-child .line-chart__value {
	left: 0;
	transform: none;
}

.line-chart__months li:last-child .line-chart__value {
	left: auto;
	right: 0;
	transform: none;
}

/* Month names under the axis, every month. */
.line-chart__label {
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 50%;
	transform: translateX(-50%);
	color: var(--text-soft);
	font-size: var(--step-small);
	white-space: nowrap;
}

/* Narrow screens: every other month's number and name, so they don't collide. */
@media (max-width: 39.99rem) {
	.line-chart__months li:nth-child(even):not(:last-child) .line-chart__value,
	.line-chart__months li:nth-child(even):not(:last-child) .line-chart__label {
		display: none;
	}
}

/* The months as blocks with their figures (feedback v2: "maybe blocks"). */
.month-blocks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
	gap: var(--space-2xs);
	margin: var(--space-s) 0 0;
	padding: 0;
	list-style: none;
}

.month-block {
	display: grid;
	gap: 2px;
	padding: var(--space-2xs) var(--space-xs);
	border: 1px solid var(--border);
	border-radius: var(--radius-s);
	background: var(--bg);
}

.month-block__month {
	color: var(--text-soft);
	font-size: var(--step-small);
}

.month-block__value {
	font-size: var(--step-1);
}

/* Listing and advert pages after saving: the confirmation and an Edit link (feedback v2). */
.listing__notices {
	margin-block: var(--space-s);
}

.field__count {
	margin: 0;
	font-size: var(--step-small);
	color: var(--text-soft);
	text-align: right;
}

.field__count--over {
	color: var(--color-danger);
	font-weight: 700;
}

/* Enquiries: filters with counts, the current one clearly marked; Delete in a quiet red. */
.chip--current {
	outline: 2px solid var(--brand);
	outline-offset: 1px;
}

.button--danger {
	color: var(--color-danger);
}

.enquiries-header {
	flex-wrap: wrap;
}

/* Printing (or saving as PDF): only the enquiries, not the site around them. */
@media print {
	.site-header,
	.site-footer,
	.dashboard__nav,
	.enquiries-export,
	.enquiries-filter,
	.skip-link,
	.action-bar {
		display: none !important;
	}

	.dashboard {
		display: block !important;
	}

	.dash-list--print .dash-item {
		break-inside: avoid;
		box-shadow: none;
		border: 1px solid #ccc;
	}

	.dash-list--print .enquiry--seen {
		opacity: 1;
	}
}

/* Refine your search (feedback v2): Apply at the top, the location, and type groups that open. */
.filters__apply-top {
	position: sticky;
	top: calc(-1 * var(--space-m));
	z-index: 1;
	margin-inline: calc(-1 * var(--space-m));
	padding: var(--space-2xs) var(--space-m);
	background: var(--bg-raised);
	border-bottom: 1px solid var(--border);
}

.filters__where {
	display: grid;
	gap: var(--space-2xs);
}

.filters__type {
	padding-block: 2px;
}

.filters__type.is-chosen {
	margin-inline: calc(-1 * var(--space-2xs));
	padding: var(--space-3xs) var(--space-2xs);
	border-radius: var(--radius-s);
	background: var(--color-green-50);
}

.filters__more > summary {
	display: inline-flex;
	align-items: center;
	min-height: 1.75rem;
	margin-left: 1.75rem;
	color: var(--brand);
	font-size: var(--step-small);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.filters__more > summary::-webkit-details-marker {
	display: none;
}

.filters__more > summary::after {
	content: "";
	width: 0.45em;
	height: 0.45em;
	margin-left: 0.4em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.filters__more[open] > summary::after {
	transform: rotate(-135deg) translateY(-1px);
}

/* Estate agents: how many homes, prominent (feedback v2). */
.agent-card__homes {
	position: relative;
	z-index: 1; /* above the card's stretched title link */
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	min-height: var(--tap);
	padding: var(--space-3xs) var(--space-s);
	border-radius: var(--radius-pill);
	background: var(--brand);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.agent-card__homes:hover {
	background: var(--color-green-700, var(--brand));
	color: #fff;
}

.agent-card__homes.is-empty {
	background: var(--bg);
	color: var(--text-soft);
	font-weight: 600;
}

/* ---------- Client feedback v3 (19 Nov 2026) ---------- */

/* Articles (News) and New developments: one row card under the other, photo left, as on the
   old site. Rows have no action column. */
.result-card__text--long {
	-webkit-line-clamp: 3;
}

.not-prose .result-card__title {
	font-size: var(--step-1);
}

@media (min-width: 40rem) {
	.result-card.result-card--row {
		grid-template-columns: 18rem 1fr;
	}

	.result-card.result-card--row.result-card--no-photo {
		grid-template-columns: 1fr;
	}

	.result-card--row .result-card__body {
		padding-block: var(--space-s);
	}
}

/* Video gallery: three across with the text under each video, as on the old site. */
@media (min-width: 60rem) {
	.video-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.video-card__text {
	font-size: var(--step-ui);
	color: var(--text-soft);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Special offers: each flyer on a white card. */
.offer-card {
	background: var(--bg-raised);
}

/* With JS, the offers become a masonry grid (main.js): 8 px rows, each flyer spanning its height
   plus the gap, three columns on desktop (client feedback v4). */
.offers-grid.is-masonry {
	--masonry-gap: 24px;
	display: grid;
	columns: auto;
	grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
	grid-auto-rows: 8px;
	grid-auto-flow: dense;
	column-gap: var(--masonry-gap);
	row-gap: 0;
	align-items: start;
}

.offers-grid.is-masonry > li {
	margin-bottom: 0;
}
