/* Medupi Properties
   Colours inherit from the Astra global palette so the listings always match
   whatever the theme is set to. Fallbacks match the current website. */

:root {
	--mp-primary: var(--ast-global-color-0, #e8491d);
	--mp-dark: var(--ast-global-color-2, #1a1a1a);
	--mp-body: var(--ast-global-color-3, #4a4a4a);
	--mp-line: #e4e6e9;
	--mp-soft: #f5f6f8;
	--mp-white: #ffffff;
	--mp-radius: 6px;
	--mp-shadow: 0 2px 14px rgba(0, 0, 0, .07);
}

.mp-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 40px 20px 70px;
	width: 100%;
}

/* Astra renders the content container as a flex parent on archive templates,
   which collapses our grid to its content width. Force full width. */
.ast-container > .mp-wrap,
.ast-container-fluid > .mp-wrap {
	flex: 1 1 100%;
	width: 100%;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.mp-btn {
	display: inline-block;
	padding: 12px 22px;
	border: 2px solid transparent;
	border-radius: var(--mp-radius);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .4px;
	cursor: pointer;
	transition: all .18s ease;
}

.mp-btn--primary {
	background: var(--mp-primary);
	border-color: var(--mp-primary);
	color: #fff;
}

.mp-btn--primary:hover,
.mp-btn--primary:focus {
	background: var(--mp-dark);
	border-color: var(--mp-dark);
	color: #fff;
}

.mp-btn--outline {
	background: transparent;
	border-color: var(--mp-primary);
	color: var(--mp-primary);
}

.mp-btn--outline:hover {
	background: var(--mp-primary);
	color: #fff;
}

.mp-btn--whatsapp {
	background: #25d366;
	border-color: #25d366;
	color: #fff;
}

.mp-btn--whatsapp:hover {
	background: #1da851;
	border-color: #1da851;
	color: #fff;
}

.mp-btn--block {
	display: block;
	width: 100%;
}

/* ------------------------------------------------------------------ */
/* Archive header                                                      */
/* ------------------------------------------------------------------ */
.mp-archive__header {
	margin-bottom: 26px;
}

.mp-archive__title {
	margin: 0 0 6px;
	font-size: 36px;
	line-height: 1.15;
	color: var(--mp-dark);
}

.mp-archive__intro {
	margin: 0;
	color: var(--mp-body);
}

.mp-results-count {
	margin: 22px 0 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--mp-body);
}

.mp-breadcrumb {
	margin-bottom: 18px;
	font-size: 13px;
	color: var(--mp-body);
}

.mp-breadcrumb a {
	color: var(--mp-body);
	text-decoration: none;
}

.mp-breadcrumb a:hover {
	color: var(--mp-primary);
}

.mp-breadcrumb span {
	margin: 0 6px;
}

/* ------------------------------------------------------------------ */
/* Search form                                                         */
/* ------------------------------------------------------------------ */
.mp-search {
	background: var(--mp-soft);
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	padding: 18px;
}

.mp-search__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
}

.mp-search__row--advanced {
	display: none;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--mp-line);
}

.mp-search__row--advanced.is-open {
	display: grid;
}

.mp-search__field--wide {
	grid-column: span 2;
}

.mp-search__field label {
	display: block;
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: var(--mp-body);
}

.mp-search__field input,
.mp-search__field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--mp-line);
	border-radius: 4px;
	background: #fff;
	font-size: 15px;
	color: var(--mp-dark);
}

.mp-search__pricehint {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 13px;
	color: var(--mp-body);
	font-style: italic;
}

/* ------------------------------------------------------------------ */
/* Self-contained section, for dropping into a page builder            */
/* ------------------------------------------------------------------ */
.mp-section {
	padding: 60px 0;
}

.mp-section--soft {
	background: var(--mp-soft);
}

.mp-section--dark {
	background: var(--mp-dark);
}

.mp-section__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.mp-section__head {
	margin-bottom: 32px;
	text-align: center;
}

.mp-section__title {
	margin: 0 0 10px;
	font-size: 34px;
	line-height: 1.2;
	color: var(--mp-dark);
}

.mp-section__intro {
	max-width: 720px;
	margin: 0 auto;
	color: var(--mp-body);
}

.mp-section--dark .mp-section__title,
.mp-section--dark .mp-section__intro {
	color: #fff;
}

.mp-section__cta {
	margin-top: 34px;
	text-align: center;
}

.mp-shortcode__button {
	margin-top: 26px;
	text-align: center;
}

.mp-search__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.mp-search__toggle {
	background: none;
	border: none;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--mp-primary);
	cursor: pointer;
	text-decoration: underline;
}

.mp-search__reset {
	font-size: 14px;
	color: var(--mp-body);
	text-decoration: underline;
}

.mp-search-wrap {
	margin-bottom: 34px;
}

.mp-search-wrap .mp-search {
	background: rgba(255, 255, 255, .95);
}

/* ------------------------------------------------------------------ */
/* Grid and cards                                                      */
/* ------------------------------------------------------------------ */
.mp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 26px;
}

.mp-grid--cols-1 { grid-template-columns: 1fr; }
.mp-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.mp-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.mp-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.mp-card {
	display: flex;
	flex-direction: column;
	background: var(--mp-white);
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}

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

.mp-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--mp-soft);
	overflow: hidden;
}

/* Elementor and some themes apply a global img { height: auto }, which breaks
   the fixed card ratio. Raise specificity so cards always line up. */
.mp-grid .mp-card .mp-card__media img,
.mp-card .mp-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	max-width: none;
	border-radius: 0;
}

/* Elementor's global link styling underlines card titles. */
.mp-grid .mp-card .mp-card__title a,
.mp-card .mp-card__title a,
.mp-card .mp-card__link {
	text-decoration: none;
	box-shadow: none;
}

.mp-grid .mp-card .mp-card__title a:hover,
.mp-card .mp-card__link:hover {
	text-decoration: none;
	color: var(--mp-primary);
}

.mp-card__media--agent {
	aspect-ratio: 1 / 1;
}

.mp-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: #9aa0a6;
}

.mp-card__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	gap: 6px;
}

.mp-badge {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #fff;
	background: var(--mp-primary);
}

.mp-badge--status {
	background: var(--mp-dark);
}

.mp-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px;
}

.mp-card .mp-card__price {
	margin: 0 0 4px;
	font-size: 21px;
	font-weight: 700;
	color: var(--mp-primary);
	line-height: 1.25;
}

.mp-pm {
	font-size: 13px;
	font-weight: 600;
	color: var(--mp-body);
}

.mp-card .mp-card__title {
	margin: 0 0 4px;
	font-size: 17px;
	line-height: 1.35;
}

.mp-card__title a {
	color: var(--mp-dark);
	text-decoration: none;
}

.mp-card__title a:hover {
	color: var(--mp-primary);
}

.mp-card .mp-card__meta {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--mp-body);
}

.mp-card .mp-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 16px;
	padding: 12px 0 0;
	border-top: 1px solid var(--mp-line);
	list-style: none;
	font-size: 13px;
	color: var(--mp-body);
}

.mp-card .mp-specs li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mp-specs__n {
	font-weight: 700;
	color: var(--mp-dark);
}

.mp-card__link {
	margin-top: auto;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: var(--mp-primary);
	text-decoration: none;
}

.mp-card__link:hover {
	text-decoration: underline;
}

.mp-agent-contact {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.mp-agent-contact a {
	color: var(--mp-body);
	text-decoration: none;
}

.mp-agent-contact a:hover {
	color: var(--mp-primary);
}

/* ------------------------------------------------------------------ */
/* Pagination and empty states                                         */
/* ------------------------------------------------------------------ */
.mp-pagination {
	margin-top: 34px;
	text-align: center;
}

.mp-pagination .page-numbers {
	display: inline-block;
	min-width: 38px;
	padding: 9px 12px;
	margin: 0 3px;
	border: 1px solid var(--mp-line);
	border-radius: 4px;
	font-size: 14px;
	color: var(--mp-dark);
	text-decoration: none;
}

.mp-pagination .page-numbers.current,
.mp-pagination .page-numbers:hover {
	background: var(--mp-primary);
	border-color: var(--mp-primary);
	color: #fff;
}

.mp-empty {
	padding: 60px 20px;
	text-align: center;
	background: var(--mp-soft);
	border-radius: var(--mp-radius);
	margin-top: 26px;
}

.mp-empty h2 {
	margin-top: 0;
	font-size: 24px;
}

.mp-empty__inline {
	padding: 20px;
	background: var(--mp-soft);
	border-radius: var(--mp-radius);
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Single property                                                     */
/* ------------------------------------------------------------------ */
.mp-single__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	margin-bottom: 24px;
}

.mp-single__title {
	margin: 0 0 6px;
	font-size: 32px;
	line-height: 1.2;
	color: var(--mp-dark);
}

.mp-single__location {
	margin: 0;
	color: var(--mp-body);
}

.mp-single__address {
	font-size: 14px;
}

.mp-single__pricebox {
	text-align: right;
}

.mp-single__price {
	margin: 0;
	font-size: 30px;
	font-weight: 700;
	color: var(--mp-primary);
}

.mp-single__ref {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--mp-body);
}

.mp-single__ref .mp-badge {
	margin-right: 6px;
	vertical-align: middle;
}

.mp-gallery {
	margin-bottom: 34px;
}

.mp-gallery__main img {
	width: 100%;
	max-height: 620px;
	object-fit: cover;
	border-radius: var(--mp-radius);
	display: block;
}

.mp-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.mp-gallery__thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: none;
	cursor: pointer;
	overflow: hidden;
	line-height: 0;
}

.mp-gallery__thumb img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.mp-gallery__thumb.is-active {
	border-color: var(--mp-primary);
}

.mp-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 40px;
	align-items: start;
}

.mp-block {
	margin-bottom: 34px;
}

.mp-block__title {
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--mp-line);
	font-size: 22px;
	color: var(--mp-dark);
}

.mp-keyspecs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mp-keyspecs li {
	padding: 16px 12px;
	background: var(--mp-soft);
	border-radius: var(--mp-radius);
	text-align: center;
}

.mp-keyspecs__value {
	display: block;
	font-size: 22px;
	font-weight: 700;
	color: var(--mp-dark);
}

.mp-keyspecs__label {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: var(--mp-body);
}

.mp-content {
	color: var(--mp-body);
	line-height: 1.75;
}

.mp-table {
	width: 100%;
	border-collapse: collapse;
}

.mp-table th,
.mp-table td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--mp-line);
	font-size: 15px;
	text-align: left;
}

.mp-table th {
	width: 45%;
	font-weight: 700;
	color: var(--mp-dark);
}

.mp-table td {
	color: var(--mp-body);
}

.mp-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 8px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mp-features li {
	position: relative;
	padding-left: 24px;
	font-size: 15px;
	color: var(--mp-body);
}

.mp-features li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 7px;
	width: 6px;
	height: 11px;
	border: solid var(--mp-primary);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.mp-map {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--mp-radius);
	overflow: hidden;
}

.mp-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.mp-note {
	margin-top: 10px;
	font-size: 13px;
	color: var(--mp-body);
	font-style: italic;
}

/* ------------------------------------------------------------------ */
/* Agent card in the sidebar                                           */
/* ------------------------------------------------------------------ */
.mp-single__side > * + * {
	margin-top: 22px;
}

.mp-agentcard {
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	overflow: hidden;
	background: #fff;
}

.mp-agentcard__photo {
	display: block;
	line-height: 0;
}

.mp-agentcard__photo img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.mp-agentcard__body {
	padding: 18px;
}

.mp-agentcard__label {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: var(--mp-primary);
}

.mp-agentcard__name {
	margin: 0 0 2px;
	font-size: 20px;
}

.mp-agentcard__name a {
	color: var(--mp-dark);
	text-decoration: none;
}

.mp-agentcard__role {
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--mp-body);
}

.mp-agentcard__actions {
	display: grid;
	gap: 8px;
}

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */
.mp-form-wrap {
	padding: 22px;
	background: var(--mp-soft);
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	scroll-margin-top: 100px;
}

.mp-form__title {
	margin: 0 0 6px;
	font-size: 22px;
	color: var(--mp-dark);
}

.mp-form__intro {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--mp-body);
}

.mp-form__error {
	padding: 10px 14px;
	margin-bottom: 16px;
	background: #fdecea;
	border-left: 3px solid #d93025;
	font-size: 14px;
	color: #b3261e;
}

.mp-form__field {
	margin-bottom: 14px;
}

.mp-form__row {
	display: grid;
	grid-template-columns: repeat( 2, minmax(0, 1fr) );
	gap: 12px;
}

.mp-form__field label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 700;
	color: var(--mp-dark);
}

.mp-form__field label span {
	color: var(--mp-primary);
}

.mp-form__field input,
.mp-form__field select,
.mp-form__field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--mp-line);
	border-radius: 4px;
	background: #fff;
	font-size: 15px;
	color: var(--mp-dark);
}

.mp-form__field input:focus,
.mp-form__field select:focus,
.mp-form__field textarea:focus {
	outline: none;
	border-color: var(--mp-primary);
}

.mp-form__note {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--mp-body);
	text-align: center;
}

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

/* ------------------------------------------------------------------ */
/* Agent profile                                                       */
/* ------------------------------------------------------------------ */
.mp-agent-hero {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 34px;
	align-items: center;
	margin-bottom: 40px;
	text-align: left;
}

/* No photograph, so no empty column reserving 300px and pushing the name in. */
.mp-agent-hero--nophoto {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.mp-agent-hero__body {
	text-align: left;
}

.mp-agent-hero__photo img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--mp-radius);
	display: block;
}

.mp-agent-hero .mp-agent-hero__name {
	margin: 0 0 4px;
	font-size: 34px;
	line-height: 1.15;
	color: var(--mp-dark);
	text-align: left;
}

.mp-agent-hero .mp-agent-hero__role {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 700;
	color: var(--mp-primary);
	text-align: left;
}

.mp-agent-hero__meta {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	font-size: 15px;
	color: var(--mp-body);
}

.mp-agent-hero__meta li {
	padding: 7px 0;
	border-bottom: 1px solid var(--mp-line);
}

.mp-agent-hero__meta strong {
	display: inline-block;
	min-width: 140px;
	color: var(--mp-dark);
}

.mp-agent-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ------------------------------------------------------------------ */
/* Sticky mobile call bar                                              */
/* ------------------------------------------------------------------ */
/* Similar Properties follows the enquiry form, which needs clear separation,
   especially on mobile where the sidebar stacks directly above it. */
.mp-related {
	margin-top: 40px;
	padding-top: 10px;
}

.mp-callbar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 998;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	background: #fff;
	border-top: 1px solid var(--mp-line);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, .1);
}

.mp-callbar__price {
	font-size: 18px;
	font-weight: 700;
	color: var(--mp-primary);
}

.mp-shortcode__button {
	margin-top: 26px;
	text-align: center;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.mp-single__layout {
		grid-template-columns: 1fr;
	}

	.mp-grid--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 880px) {
	.mp-agent-hero {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.mp-agent-hero__photo {
		max-width: 260px;
	}

	.mp-grid--cols-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.mp-wrap {
		padding: 26px 16px 90px;
	}

	.mp-archive__title {
		font-size: 28px;
	}

	.mp-single__title {
		font-size: 25px;
	}

	.mp-single__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.mp-single__pricebox {
		text-align: left;
	}

	.mp-single__price {
		font-size: 25px;
	}

	.mp-grid,
	.mp-grid--cols-2,
	.mp-grid--cols-3,
	.mp-grid--cols-4 {
		grid-template-columns: 1fr;
	}

	/* Agent cards are small enough to sit two across on a phone. */
	.mp-grid--agents,
	.mp-grid--agents.mp-grid--cols-2,
	.mp-grid--agents.mp-grid--cols-3,
	.mp-grid--agents.mp-grid--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.mp-card--agent .mp-card__body {
		padding: 14px;
	}

	.mp-card--agent .mp-card__title {
		font-size: 15px;
	}

	.mp-card--agent .mp-card__meta,
	.mp-card--agent .mp-agent-contact {
		font-size: 13px;
		word-break: break-word;
	}

	.mp-search__field--wide {
		grid-column: span 1;
	}

	.mp-callbar {
		display: flex;
	}

	/* The archive is already one tap away in the menu on mobile, and the button
	   pushes the enquiry form further down the page. */
	.mp-shortcode__button {
		display: none;
	}

	.mp-related {
		margin-top: 46px;
		padding-top: 4px;
	}
}

@media (max-width: 480px) {
	.mp-form__row {
		grid-template-columns: 1fr;
	}

	.mp-keyspecs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mp-gallery__thumbs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}

	.mp-agent-hero__meta strong {
		display: block;
		min-width: 0;
	}

	.mp-agent-hero__actions .mp-btn,
	.mp-search__actions .mp-btn {
		flex: 1 1 100%;
	}

	.mp-callbar__price {
		font-size: 16px;
	}

	.mp-callbar .mp-btn {
		padding: 11px 16px;
		font-size: 13px;
	}
}
