/**
 * Property Search - Featured Properties widget styles
 *
 * Self-contained port of the static site's FEATURED PROPERTIES section
 * (index.css .prop-card / .btn-prop / .section-* rules). The plugin does
 * not load Bootstrap, so the container, responsive grid and badge cluster
 * are recreated here. Colours are CSS custom properties written by
 * Elementor; values below are the design defaults.
 *
 * @package PropertySearch
 */

.ps-prop-wrapper {
	--ps-prop-section-bg: transparent;
	--ps-prop-container-width: 1320px;
	--ps-prop-cols: 3;
	--ps-prop-cols-tablet: 2;
	--ps-prop-cols-mobile: 1;
	--ps-prop-label-color: #006241;
	--ps-prop-label-bar: #ffcc00;
	--ps-prop-heading-color: #003d2b;
	--ps-prop-desc-color: #6c757d;
	--ps-prop-viewall-bg: #003d2b;
	--ps-prop-viewall-hover-bg: #ffcc00;
	--ps-prop-viewall-color: #ffffff;
	--ps-prop-viewall-hover-color: #003d2b;
	--ps-prop-card-bg: #ffffff;
	--ps-prop-card-border: rgba(0, 0, 0, 0.04);
	--ps-prop-card-shadow: rgba(0, 61, 43, 0.12);
	--ps-prop-verified-bg: rgba(0, 61, 43, 0.9);
	--ps-prop-verified-color: #ffcc00;
	--ps-prop-featured-bg: rgba(255, 204, 0, 0.9);
	--ps-prop-featured-color: #003d2b;
	--ps-prop-fav-bg: rgba(255, 255, 255, 0.9);
	--ps-prop-fav-hover-bg: #ffcc00;
	--ps-prop-fav-color: #212529;
	--ps-prop-fav-hover-color: #003d2b;
	--ps-prop-fav-active: #dc3545;
	--ps-prop-title-color: #222222;
	--ps-prop-title-hover: #006241;
	--ps-prop-loc-color: #6c757d;
	--ps-prop-loc-icon: #006241;
	--ps-prop-feature-bg: #f0f7f4;
	--ps-prop-feature-color: #006241;
	--ps-prop-price-color: #003d2b;
	--ps-prop-price-suffix: #6c757d;
	--ps-prop-footer-divider: #f0f0f0;
	--ps-prop-contact-bg: #003d2b;
	--ps-prop-contact-hover-bg: #ffcc00;
	--ps-prop-contact-color: #ffffff;
	--ps-prop-contact-hover-color: #003d2b;
	--ps-prop-empty-bg: #f0f7f4;
	--ps-prop-empty-color: #003d2b;

	position: relative;
	padding: 48px 0;
	background: var(--ps-prop-section-bg);
	font-family: inherit;
	line-height: 1.5;
}

.ps-prop-wrapper,
.ps-prop-wrapper * {
	box-sizing: border-box;
}

/* Bootstrap .container recreation (responsive fixed widths) */
.ps-prop-container {
	width: 100%;
	max-width: var(--ps-prop-container-width);
	margin: 0 auto;
	padding: 0 12px;
}

@media (max-width: 1199.98px) {
	.ps-prop-container {
		max-width: min(var(--ps-prop-container-width), 1140px);
	}
}

@media (max-width: 991.98px) {
	.ps-prop-container {
		max-width: min(var(--ps-prop-container-width), 960px);
	}
}

@media (max-width: 767.98px) {
	.ps-prop-container {
		max-width: min(var(--ps-prop-container-width), 720px);
	}
}

@media (max-width: 575.98px) {
	.ps-prop-container {
		max-width: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Section header (mirrors .d-flex .justify-content-between .mb-5)     */
/* ------------------------------------------------------------------ */

.ps-prop-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	margin-bottom: 48px;
}

.ps-prop-header-text {
	max-width: 600px;
}

/* Mirrors .section-label with its gold leading bar */
.ps-prop-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ps-prop-label-color);
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 10px;
}

.ps-prop-label::before {
	content: '';
	width: 30px;
	height: 2px;
	background: var(--ps-prop-label-bar);
	display: inline-block;
}

.ps-prop-heading {
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--ps-prop-heading-color);
	margin: 0 0 15px;
}

.ps-prop-desc {
	color: var(--ps-prop-desc-color);
	font-size: 1.05rem;
	max-width: 600px;
	margin: 0;
}

/* Mirrors .btn.btn-prop with .px-4 .py-2 */
.ps-prop-viewall {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	background: var(--ps-prop-viewall-bg);
	color: var(--ps-prop-viewall-color);
	padding: 8px 24px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.ps-prop-viewall i,
.ps-prop-viewall svg {
	width: 1em;
	height: 1em;
}

.ps-prop-viewall:hover {
	background: var(--ps-prop-viewall-hover-bg);
	color: var(--ps-prop-viewall-hover-color);
	transform: translateY(-2px);
}

.ps-prop-viewall:focus-visible {
	outline: 2px solid var(--ps-prop-viewall-bg);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Card grid (mirrors .row.g-4 with col-lg-4 / col-md-6)               */
/* ------------------------------------------------------------------ */

.ps-prop-grid {
	display: grid;
	grid-template-columns: repeat(var(--ps-prop-cols), minmax(0, 1fr));
	gap: 24px;
}

@media (max-width: 991.98px) {
	.ps-prop-grid {
		grid-template-columns: repeat(var(--ps-prop-cols-tablet), minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.ps-prop-grid {
		grid-template-columns: repeat(var(--ps-prop-cols-mobile), minmax(0, 1fr));
	}
}

/* Scroll reveal (mirrors .fade-up / .fade-up.show) */
.ps-prop-col.ps-reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.ps-prop-col.ps-reveal.ps-show {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.ps-prop-col.ps-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* Card (mirrors .prop-card)                                           */
/* ------------------------------------------------------------------ */

.ps-prop-card {
	background: var(--ps-prop-card-bg);
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--ps-prop-card-border);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ps-prop-col:hover .ps-prop-card {
	transform: translateY(-8px);
	box-shadow: 0 20px 50px var(--ps-prop-card-shadow);
}

/* Image (mirrors .prop-card-img) */
.ps-prop-card-img {
	height: 220px;
	overflow: hidden;
	position: relative;
	flex: 0 0 auto;
}

.ps-prop-img-link {
	display: block;
	width: 100%;
	height: 100%;
}

.ps-prop-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s ease;
}

.ps-prop-col:hover .ps-prop-thumb {
	transform: scale(1.08);
}

/* Badge cluster (mirrors .prop-badge) */
.ps-prop-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ps-prop-badge span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 14px;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 700;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.ps-prop-badge i,
.ps-prop-badge svg {
	width: 1em;
	height: 1em;
}

.ps-prop-badge-verified {
	background: var(--ps-prop-verified-bg);
	color: var(--ps-prop-verified-color);
}

.ps-prop-badge-featured {
	background: var(--ps-prop-featured-bg);
	color: var(--ps-prop-featured-color);
}

/* Favourite heart (mirrors .prop-fav) */
.ps-prop-fav {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--ps-prop-fav-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
	z-index: 2;
	border: none;
	color: var(--ps-prop-fav-color);
	padding: 0;
}

.ps-prop-fav i,
.ps-prop-fav svg {
	width: 1em;
	height: 1em;
	pointer-events: none;
}

.ps-prop-fav:hover {
	background: var(--ps-prop-fav-hover-bg);
	color: var(--ps-prop-fav-hover-color);
}

.ps-prop-fav.is-active {
	color: var(--ps-prop-fav-active);
}

.ps-prop-fav:focus-visible {
	outline: 2px solid var(--ps-prop-fav-hover-bg);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Card body (mirrors .prop-body and its children)                     */
/* ------------------------------------------------------------------ */

.ps-prop-body {
	padding: 22px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.ps-prop-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--ps-prop-title-color);
	margin: 0 0 6px;
}

.ps-prop-title a {
	color: var(--ps-prop-title-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

.ps-prop-title a:hover {
	color: var(--ps-prop-title-hover);
}

.ps-prop-loc {
	color: var(--ps-prop-loc-color);
	font-size: 0.88rem;
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.ps-prop-loc i,
.ps-prop-loc svg {
	width: 1em;
	height: 1em;
	color: var(--ps-prop-loc-icon);
	flex: 0 0 auto;
}

/* Feature pills (mirrors .prop-features) */
.ps-prop-features {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 16px;
}

.ps-prop-features span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--ps-prop-feature-bg);
	color: var(--ps-prop-feature-color);
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 0.78rem;
	font-weight: 600;
}

.ps-prop-features i,
.ps-prop-features svg {
	width: 1em;
	height: 1em;
}

/* Footer row (mirrors .prop-footer) */
.ps-prop-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--ps-prop-footer-divider);
	margin-top: auto;
}

.ps-prop-price {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--ps-prop-price-color);
	white-space: nowrap;
}

.ps-prop-price small {
	font-size: 0.78rem;
	color: var(--ps-prop-price-suffix);
	font-weight: 400;
}

/* Contact button (mirrors .btn.btn-prop) */
.ps-prop-contact {
	flex: 0 0 auto;
	background: var(--ps-prop-contact-bg);
	color: var(--ps-prop-contact-color);
	padding: 8px 22px;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.ps-prop-contact:hover {
	background: var(--ps-prop-contact-hover-bg);
	color: var(--ps-prop-contact-hover-color);
	transform: translateY(-2px);
}

.ps-prop-contact:focus-visible {
	outline: 2px solid var(--ps-prop-contact-bg);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Empty state                                                         */
/* ------------------------------------------------------------------ */

.ps-prop-empty {
	background: var(--ps-prop-empty-bg);
	color: var(--ps-prop-empty-color);
	border-radius: 16px;
	padding: 40px 24px;
	text-align: center;
	font-weight: 600;
}
