/**
 * Property Hive UI — Astra / Elementor kit alignment
 * Colors: primary #221C13, secondary #CD8C66, text #827E78, accent #F6F4F1
 */

:root {
	--ph-primary: var(--e-global-color-primary, #221c13);
	--ph-secondary: var(--e-global-color-secondary, #cd8c66);
	--ph-text: var(--e-global-color-text, #827e78);
	--ph-accent: var(--e-global-color-accent, #f6f4f1);
	--ph-surface: var(--e-global-color-932fb72, #ffffff);
	--ph-border: var(--e-global-color-92574f5, #ebe8e4);
	--ph-muted: var(--e-global-color-67aa08b, #7a736a);
	--ph-font-heading: var(--e-global-typography-secondary-font-family, "Teko", sans-serif);
	--ph-font-body: var(--e-global-typography-text-font-family, "Manrope", sans-serif);
	--ph-radius: 0;
	--ph-shadow: 0 8px 32px rgba(34, 28, 19, 0.08);
	--ph-shadow-hover: 0 16px 40px rgba(34, 28, 19, 0.14);
	--ph-transition: 0.25s ease;
}

/* ── Search form ─────────────────────────────────────────────── */

.property-search-form.ph-search-astra {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 20px;
	width: 100%;
	padding: 28px 32px;
	background: var(--ph-surface);
	border: 1px solid var(--ph-border);
	box-shadow: var(--ph-shadow);
}

.property-search-form.ph-search-astra .ph-search-fields {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 20px;
	min-width: 0;
}

.property-search-form.ph-search-astra .ph-search-submit {
	flex: 0 0 auto;
}

.property-search-form.ph-search-astra .control {
	display: flex;
	flex-direction: column;
	flex: 1 1 160px;
	min-width: 140px;
	padding: 0;
	vertical-align: initial;
}

.property-search-form.ph-search-astra .control.control-department {
	flex: 1 1 100%;
}

.property-search-form.ph-search-astra .control label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--ph-font-heading);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ph-primary);
	line-height: 1.2;
}

.property-search-form.ph-search-astra .control select,
.property-search-form.ph-search-astra .control input[type="text"],
.property-search-form.ph-search-astra .control input[type="number"],
.property-search-form.ph-search-astra .control input[type="email"] {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font-family: var(--ph-font-body);
	font-size: 15px;
	font-weight: 500;
	color: var(--ph-primary);
	background: var(--ph-accent);
	border: 1px solid var(--ph-border);
	border-radius: var(--ph-radius);
	transition: border-color var(--ph-transition), box-shadow var(--ph-transition);
	-webkit-appearance: none;
	appearance: none;
}

.property-search-form.ph-search-astra .control select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23827E78' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	cursor: pointer;
}

.property-search-form.ph-search-astra .control select:focus,
.property-search-form.ph-search-astra .control input:focus {
	outline: none;
	border-color: var(--ph-secondary);
	box-shadow: 0 0 0 2px rgba(205, 140, 102, 0.2);
}

/* Department tabs */
.property-search-form.ph-search-astra .control-department {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-bottom: 4px;
}

.property-search-form.ph-search-astra .control-department label {
	display: inline-flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 10px 20px;
	font-family: var(--ph-font-heading);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ph-text);
	background: var(--ph-accent);
	border: 1px solid var(--ph-border);
	cursor: pointer;
	transition: background var(--ph-transition), color var(--ph-transition), border-color var(--ph-transition);
}

.property-search-form.ph-search-astra .control-department label:has(input:checked) {
	color: var(--ph-surface);
	background: var(--ph-primary);
	border-color: var(--ph-primary);
}

.property-search-form.ph-search-astra .control-department input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* Search button */
.property-search-form.ph-search-astra input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	min-height: 48px;
	padding: 14px 40px 12px;
	font-family: var(--ph-font-heading);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ph-surface);
	background: var(--ph-primary);
	border: none;
	border-radius: var(--ph-radius);
	cursor: pointer;
	transition: background var(--ph-transition), transform var(--ph-transition);
}

.property-search-form.ph-search-astra input[type="submit"]:hover,
.property-search-form.ph-search-astra input[type="submit"]:focus {
	background: var(--ph-secondary);
	color: var(--ph-surface);
	outline: none;
}

/* All search forms (Elementor widget, shortcode, archive) */
.property-search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 20px;
	padding: 28px 32px;
	background: var(--ph-surface);
	border: 1px solid var(--ph-border);
	box-shadow: var(--ph-shadow);
}

.property-search-form .control {
	display: flex;
	flex-direction: column;
	flex: 1 1 160px;
	min-width: 140px;
	padding: 0;
	vertical-align: initial;
}

.property-search-form .control.control-department {
	flex: 1 1 auto;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-bottom: 4px;
}

.property-search-form .control label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--ph-font-heading);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ph-primary);
	line-height: 1.2;
}

.property-search-form .control-department label {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 10px 20px;
	font-size: 14px;
	color: var(--ph-text);
	background: var(--ph-accent);
	border: 1px solid var(--ph-border);
	cursor: pointer;
	transition: background var(--ph-transition), color var(--ph-transition), border-color var(--ph-transition);
}

.property-search-form .control-department label:has(input:checked) {
	color: var(--ph-surface);
	background: var(--ph-primary);
	border-color: var(--ph-primary);
}

.property-search-form .control-department input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.property-search-form .control select,
.property-search-form .control input[type="text"],
.property-search-form .control input[type="number"],
.property-search-form .control input[type="email"] {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font-family: var(--ph-font-body);
	font-size: 15px;
	font-weight: 500;
	color: var(--ph-primary);
	background: var(--ph-accent);
	border: 1px solid var(--ph-border);
	border-radius: var(--ph-radius);
	transition: border-color var(--ph-transition), box-shadow var(--ph-transition);
	-webkit-appearance: none;
	appearance: none;
}

.property-search-form .control select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23827E78' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	cursor: pointer;
}

.property-search-form .control select:focus,
.property-search-form .control input:focus {
	outline: none;
	border-color: var(--ph-secondary);
	box-shadow: 0 0 0 2px rgba(205, 140, 102, 0.2);
}

.property-search-form > input[type="submit"],
.property-search-form .ph-search-submit {
	margin-left: auto;
	align-self: flex-end;
}

.property-search-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	min-height: 48px;
	padding: 14px 40px 12px;
	font-family: var(--ph-font-heading);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ph-surface);
	background: var(--ph-primary);
	border: none;
	border-radius: var(--ph-radius);
	cursor: pointer;
	transition: background var(--ph-transition), transform var(--ph-transition);
}

.property-search-form input[type="submit"]:hover,
.property-search-form input[type="submit"]:focus {
	background: var(--ph-secondary);
	color: var(--ph-surface);
	outline: none;
}

/* Elementor widget wrapper */
.elementor-widget-property-search-form .property-search-form {
	width: 100%;
}

/* ── Bayut-style search layout ───────────────────────────────── */

.property-search-form.ph-search-bayut {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 0;
	overflow: hidden;
}

.property-search-form.ph-search-bayut .ph-search-purpose {
	padding: 18px 24px 14px;
	border-bottom: 1px solid var(--ph-border);
	background: var(--ph-accent);
}

.property-search-form.ph-search-bayut .ph-search-purpose .control-department {
	padding-bottom: 0;
	gap: 8px;
}

.property-search-form.ph-search-bayut .ph-search-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 20px;
	padding: 22px 24px 24px;
}

.property-search-form.ph-search-bayut .ph-search-filters {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px 18px;
	min-width: 0;
}

.property-search-form.ph-search-bayut .ph-search-filters .control {
	flex: 1 1 150px;
	min-width: 130px;
}

.property-search-form.ph-search-bayut .ph-search-filters .control-location {
	flex: 1.4 1 180px;
}

.property-search-form.ph-search-bayut .ph-search-submit {
	margin-left: 0;
}

/* ── Bayut-style listings toolbar ────────────────────────────── */

.ph-bayut-listings-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin: 24px 0 20px;
	padding: 14px 18px;
	background: var(--ph-surface);
	border: 1px solid var(--ph-border);
}

.ph-bayut-listings-toolbar .propertyhive-result-count,
.ph-bayut-listings-toolbar .propertyhive-ordering {
	margin: 0;
}

/* ── Bayut-style property grid ───────────────────────────────── */

.propertyhive ul.properties {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
	clear: both;
}

.propertyhive ul.properties li.ph-bayut-listing,
.propertyhive ul.properties li {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-bottom: none !important;
	clear: none !important;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.propertyhive ul.properties li.ph-bayut-listing:hover,
.propertyhive ul.properties li:hover {
	transform: none;
	box-shadow: none;
}

/* Card */
.ph-bayut-card {
	height: 100%;
	background: var(--ph-surface);
	border: 1px solid var(--ph-border);
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow var(--ph-transition), border-color var(--ph-transition);
}

.ph-bayut-card:hover {
	border-color: rgba(205, 140, 102, 0.45);
	box-shadow: var(--ph-shadow-hover);
}

.ph-bayut-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

/* Compact image — Bayut ratio */
.ph-bayut-card__media {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: var(--ph-accent);
}

.ph-bayut-card__media img,
.ph-bayut-card__media .ph-bayut-card-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
	transition: transform 0.35s ease;
}

.ph-bayut-card:hover .ph-bayut-card__media img {
	transform: scale(1.03);
}

.ph-bayut-card__badge {
	position: absolute;
	top: 10px;
	padding: 5px 10px;
	font-family: var(--ph-font-body);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: 3px;
}

.ph-bayut-card__badge--status {
	left: 10px;
	color: var(--ph-surface);
	background: var(--ph-primary);
}

.ph-bayut-card__badge--off-plan {
	background: var(--ph-secondary);
}

.ph-bayut-card__badge--ready {
	background: #3d7a5f;
}

.ph-bayut-card__badge--type {
	right: 10px;
	max-width: 46%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--ph-primary);
	background: rgba(255, 255, 255, 0.92);
}

.ph-bayut-card__photos {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	font-family: var(--ph-font-body);
	font-size: 12px;
	font-weight: 600;
	color: var(--ph-surface);
	background: rgba(34, 28, 19, 0.72);
	border-radius: 3px;
}

.ph-bayut-card__photos svg {
	flex-shrink: 0;
}

/* Body */
.ph-bayut-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 6px;
	padding: 14px 16px 16px;
}

.ph-bayut-card__price {
	font-family: var(--ph-font-body);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--ph-primary);
}

.ph-bayut-card__price .price-qualifier {
	font-size: 12px;
	font-weight: 500;
	color: var(--ph-muted);
}

.ph-bayut-card__title {
	margin: 0;
	font-family: var(--ph-font-body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ph-primary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-transform: none;
	letter-spacing: 0;
}

.ph-bayut-card__location {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	margin: 0;
	font-family: var(--ph-font-body);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ph-text);
}

.ph-bayut-card__location svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--ph-secondary);
}

.ph-bayut-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 4px 0 0;
	padding: 10px 0 0;
	list-style: none;
	border-top: 1px solid var(--ph-border);
}

.ph-bayut-card__meta li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: var(--ph-font-body);
	font-size: 13px;
	font-weight: 600;
	color: var(--ph-muted);
}

.ph-bayut-card__meta svg {
	color: var(--ph-secondary);
	opacity: 0.9;
}

.ph-bayut-card__developer {
	margin: 2px 0 0;
	font-family: var(--ph-font-body);
	font-size: 12px;
	font-weight: 600;
	color: var(--ph-secondary);
	text-transform: capitalize;
}

/* Hide legacy card markup if present */
.propertyhive ul.properties li .thumbnail,
.propertyhive ul.properties li .details,
.propertyhive ul.properties li .summary,
.propertyhive ul.properties li .actions {
	display: none !important;
}

.propertyhive ul.properties li.featured .ph-bayut-card {
	border-color: var(--ph-secondary);
}

/* Shortcode column overrides */
.propertyhive-properties-shortcode.columns-2 ul.properties,
.propertyhive-recent-properties-shortcode.columns-2 ul.properties,
.propertyhive-featured-properties-shortcode.columns-2 ul.properties {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.propertyhive-properties-shortcode.columns-4 ul.properties,
.propertyhive-recent-properties-shortcode.columns-4 ul.properties {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.propertyhive-properties-shortcode.columns-1 ul.properties {
	grid-template-columns: 1fr;
}

/* ── Search results toolbar ──────────────────────────────────── */

.propertyhive-result-count,
.propertyhive-ordering {
	font-family: var(--ph-font-body);
	font-size: 14px;
	color: var(--ph-text);
	margin-bottom: 0;
}

.propertyhive-ordering select {
	min-height: 42px;
	padding: 8px 32px 8px 12px;
	font-family: var(--ph-font-body);
	font-size: 14px;
	color: var(--ph-primary);
	background: var(--ph-accent);
	border: 1px solid var(--ph-border);
	border-radius: var(--ph-radius);
}

.propertyhive-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
}

.propertyhive-pagination ul li a,
.propertyhive-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	font-family: var(--ph-font-heading);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	color: var(--ph-primary);
	background: var(--ph-accent);
	border: 1px solid var(--ph-border);
	text-decoration: none;
	transition: background var(--ph-transition), color var(--ph-transition);
}

.propertyhive-pagination ul li a:hover,
.propertyhive-pagination ul li span.current {
	color: var(--ph-surface);
	background: var(--ph-primary);
	border-color: var(--ph-primary);
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.propertyhive ul.properties {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.propertyhive-properties-shortcode.columns-4 ul.properties {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ph-bayut-card__media {
		height: 190px;
	}
}

@media (max-width: 767px) {
	.property-search-form.ph-search-bayut .ph-search-purpose,
	.property-search-form.ph-search-bayut .ph-search-row {
		padding: 16px;
	}

	.property-search-form.ph-search-bayut .ph-search-filters .control {
		flex: 1 1 100%;
	}

	.property-search-form.ph-search-bayut .ph-search-submit,
	.property-search-form.ph-search-bayut .ph-search-submit input[type="submit"] {
		width: 100%;
	}

	.property-search-form.ph-search-astra,
	.property-search-form:not(.ph-search-astra) {
		padding: 20px;
		gap: 14px;
	}

	.property-search-form.ph-search-astra .control,
	.property-search-form:not(.ph-search-astra) .control {
		flex: 1 1 100%;
	}

	.property-search-form.ph-search-astra .ph-search-submit,
	.property-search-form.ph-search-astra input[type="submit"],
	.property-search-form:not(.ph-search-astra) input[type="submit"] {
		width: 100%;
	}

	.propertyhive ul.properties,
	.propertyhive-properties-shortcode.columns-2 ul.properties,
	.propertyhive-properties-shortcode.columns-4 ul.properties {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ph-bayut-card__media {
		height: 220px;
	}

	.ph-bayut-listings-toolbar {
		flex-direction: column;
		align-items: stretch;
	}
}

/* ── Bayut single property ───────────────────────────────────── */

.ph-bayut-single-wrap .images,
.ph-bayut-single-wrap .flexslider,
.ph-bayut-single-wrap #slider {
	display: none !important;
}

.ph-bayut-single {
	margin: 0 0 48px;
}

.ph-bayut-single__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 24px;
	margin-bottom: 32px;
}

.ph-bayut-gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ph-bayut-gallery__main {
	position: relative;
	height: 420px;
	overflow: hidden;
	background: var(--ph-accent);
	border: 1px solid var(--ph-border);
	border-radius: 4px;
}

.ph-bayut-gallery__main-link {
	display: block;
	height: 100%;
}

.ph-bayut-gallery__main-img,
.ph-bayut-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ph-bayut-gallery__count {
	position: absolute;
	right: 14px;
	bottom: 14px;
	padding: 6px 10px;
	font-family: var(--ph-font-body);
	font-size: 12px;
	font-weight: 700;
	color: var(--ph-surface);
	background: rgba(34, 28, 19, 0.75);
	border-radius: 3px;
}

.ph-bayut-gallery__thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.ph-bayut-gallery__thumb {
	flex: 0 0 88px;
	width: 88px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 3px;
	overflow: hidden;
	cursor: pointer;
	background: var(--ph-accent);
	transition: border-color var(--ph-transition);
}

.ph-bayut-gallery__thumb.is-active,
.ph-bayut-gallery__thumb:hover {
	border-color: var(--ph-secondary);
}

.ph-bayut-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ph-bayut-gallery__hidden {
	display: none !important;
}

.ph-bayut-single__overview {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	background: var(--ph-surface);
	border: 1px solid var(--ph-border);
	border-radius: 4px;
	box-shadow: var(--ph-shadow);
}

.ph-bayut-single__price {
	font-family: var(--ph-font-body);
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--ph-primary);
}

.ph-bayut-single__title {
	margin: 0;
	font-family: var(--ph-font-body);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ph-primary);
	text-transform: none;
	letter-spacing: 0;
}

.ph-bayut-single__location {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-family: var(--ph-font-body);
	font-size: 15px;
	font-weight: 500;
	color: var(--ph-text);
}

.ph-bayut-single__location svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--ph-secondary);
}

.ph-bayut-single__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 14px 0 0;
	list-style: none;
	border-top: 1px solid var(--ph-border);
}

.ph-bayut-single__facts li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--ph-font-body);
	font-size: 14px;
	font-weight: 600;
	color: var(--ph-muted);
}

.ph-bayut-single__facts svg {
	color: var(--ph-secondary);
}

.ph-bayut-single__fact-badge {
	padding: 6px 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ph-primary);
	background: var(--ph-accent);
	border: 1px solid var(--ph-border);
	border-radius: 3px;
}

.ph-bayut-single__fact-badge--off-plan {
	color: var(--ph-surface);
	background: var(--ph-secondary);
	border-color: var(--ph-secondary);
}

.ph-bayut-single__fact-badge--ready {
	color: var(--ph-surface);
	background: #3d7a5f;
	border-color: #3d7a5f;
}

.ph-bayut-single__developer {
	margin: 0;
	font-family: var(--ph-font-body);
	font-size: 14px;
	color: var(--ph-text);
}

.ph-bayut-single__developer span {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ph-muted);
}

.ph-bayut-single__quick-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.ph-bayut-single__quick-action {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	font-family: var(--ph-font-heading);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ph-primary);
	background: var(--ph-accent);
	border: 1px solid var(--ph-border);
	transition: background var(--ph-transition), color var(--ph-transition), border-color var(--ph-transition);
}

.ph-bayut-single__quick-action:hover {
	color: var(--ph-surface);
	background: var(--ph-primary);
	border-color: var(--ph-primary);
}

.ph-bayut-single__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 28px;
	align-items: start;
}

.ph-bayut-single__main .features,
.ph-bayut-single__main .summary,
.ph-bayut-single__main .description {
	margin-bottom: 28px;
	padding: 24px;
	background: var(--ph-surface);
	border: 1px solid var(--ph-border);
	border-radius: 4px;
}

.ph-bayut-single__main h4 {
	margin: 0 0 16px;
	font-family: var(--ph-font-heading);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ph-primary);
}

.ph-bayut-single__main .features ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ph-bayut-single__main .features li {
	padding: 8px 12px;
	font-family: var(--ph-font-body);
	font-size: 13px;
	font-weight: 600;
	color: var(--ph-primary);
	background: var(--ph-accent);
	border: 1px solid var(--ph-border);
	border-radius: 3px;
}

.ph-bayut-single__sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 24px;
}

.ph-bayut-single__card {
	padding: 22px;
	background: var(--ph-surface);
	border: 1px solid var(--ph-border);
	border-radius: 4px;
	box-shadow: var(--ph-shadow);
}

.ph-bayut-single__card-title {
	margin: 0 0 14px;
	font-family: var(--ph-font-heading);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ph-primary);
}

.ph-bayut-single__card-text {
	margin: 0 0 16px;
	font-family: var(--ph-font-body);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ph-text);
}

.ph-bayut-single__card .property_meta ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ph-bayut-single__card .property_meta li {
	padding: 10px 0;
	font-family: var(--ph-font-body);
	font-size: 14px;
	color: var(--ph-text);
	border-bottom: 1px solid var(--ph-border);
}

.ph-bayut-single__card .property_meta li:last-child {
	border-bottom: none;
}

.ph-bayut-single__card .property_meta li span {
	display: block;
	margin-bottom: 2px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ph-muted);
}

.ph-bayut-single__card--enquiry .control {
	margin-bottom: 12px;
}

.ph-bayut-single__card--enquiry label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--ph-font-body);
	font-size: 13px;
	font-weight: 600;
	color: var(--ph-primary);
}

.ph-bayut-single__card--enquiry input[type="text"],
.ph-bayut-single__card--enquiry input[type="email"],
.ph-bayut-single__card--enquiry input[type="tel"],
.ph-bayut-single__card--enquiry textarea {
	width: 100%;
	padding: 10px 12px;
	font-family: var(--ph-font-body);
	font-size: 14px;
	color: var(--ph-primary);
	background: var(--ph-accent);
	border: 1px solid var(--ph-border);
}

.ph-bayut-single__card--enquiry input[type="submit"] {
	width: 100%;
	min-height: 46px;
	margin-top: 4px;
	font-family: var(--ph-font-heading);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ph-surface);
	background: var(--ph-primary);
	border: none;
	cursor: pointer;
	transition: background var(--ph-transition);
}

.ph-bayut-single__card--enquiry input[type="submit"]:hover {
	background: var(--ph-secondary);
}

.ph-bayut-single__related {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--ph-border);
}

/* ── Homepage listing sections ───────────────────────────────── */

.ph-bayut-home-listings {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 20px 24px;
}

.ph-bayut-home-section {
	margin-bottom: 48px;
}

.ph-bayut-section-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 22px;
}

.ph-bayut-section-header__title {
	margin: 0;
	font-family: var(--ph-font-heading);
	font-size: 28px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ph-primary);
}

.ph-bayut-section-header__subtitle {
	margin: 6px 0 0;
	font-family: var(--ph-font-body);
	font-size: 15px;
	color: var(--ph-text);
}

.ph-bayut-section-header__link {
	font-family: var(--ph-font-heading);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ph-secondary);
	transition: color var(--ph-transition);
}

.ph-bayut-section-header__link:hover {
	color: var(--ph-primary);
}

.ph-bayut-home-listings .propertyhive-recent-properties-shortcode,
.ph-bayut-home-listings .propertyhive-featured-properties-shortcode,
.ph-bayut-home-listings .propertyhive-properties-shortcode {
	margin: 0;
}

@media (max-width: 1024px) {
	.ph-bayut-single__hero {
		grid-template-columns: 1fr;
	}

	.ph-bayut-gallery__main {
		height: 360px;
	}

	.ph-bayut-single__body {
		grid-template-columns: 1fr;
	}

	.ph-bayut-single__sidebar {
		position: static;
	}
}

@media (max-width: 767px) {
	.ph-bayut-gallery__main {
		height: 280px;
	}

	.ph-bayut-single__price {
		font-size: 24px;
	}

	.ph-bayut-single__title {
		font-size: 20px;
	}

	.ph-bayut-section-header__title {
		font-size: 22px;
	}
}
