/**
 * Property Search - Hero Slider widget styles
 *
 * Faithful port of the static site hero section. Colours are CSS
 * custom properties written by Elementor; the values below are the
 * design defaults / fallbacks. Layout values (sizes, radii, timing)
 * match the original CSS one-to-one.
 *
 * @package PropertySearch
 */

.ps-hero-slider {
	--ps-hero-overlay-1: rgba(0, 41, 29, 0.93);
	--ps-hero-overlay-2: rgba(0, 61, 43, 0.7);
	--ps-hero-overlay-3: rgba(0, 98, 65, 0.4);
	--ps-hero-badge-bg: rgba(255, 204, 0, 0.12);
	--ps-hero-badge-border: rgba(255, 204, 0, 0.4);
	--ps-hero-badge-color: #ffcc00;
	--ps-hero-title: #ffffff;
	--ps-hero-highlight: #ffcc00;
	--ps-hero-desc: rgba(255, 255, 255, 0.85);
	--ps-hero-btn-grad-start: #ffcc00;
	--ps-hero-btn-grad-end: #ffaa00;
	--ps-hero-btn-primary-text: #003d2b;
	--ps-hero-btn-outline-bg: rgba(255, 255, 255, 0.08);
	--ps-hero-btn-outline-border: rgba(255, 255, 255, 0.3);
	--ps-hero-btn-outline-text: #ffffff;
	--ps-hero-stat-number: #ffcc00;
	--ps-hero-stat-label: rgba(255, 255, 255, 0.6);
	--ps-hero-pill-bg: rgba(255, 255, 255, 0.1);
	--ps-hero-pill-border: rgba(255, 255, 255, 0.2);
	--ps-hero-pill-text: rgba(255, 255, 255, 0.8);
	--ps-hero-pill-icon: #ffcc00;
	--ps-hero-divider: rgba(255, 255, 255, 0.15);
	--ps-hero-bullet: rgba(255, 255, 255, 0.3);
	--ps-hero-bullet-active: #ffcc00;

	position: relative;
	width: 100%;
	font-family: inherit;
	line-height: 1.5;
}

.ps-hero-slider,
.ps-hero-slider * {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ */
/* Slider shell + slides (fixed heights keep images correctly framed)  */
/* ------------------------------------------------------------------ */
.ps-hero-slider {
	height: 720px;
	overflow: hidden;
}

.ps-hero-swiper {
	width: 100%;
	height: 100%;
}

.ps-hero-slide {
	position: relative;
	height: 720px;
	overflow: hidden;
}

.ps-hero-slide img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.05);
	transition: transform 8s ease;
	filter: brightness(0.9);
}

.swiper-slide-active .ps-hero-slide img {
	transform: scale(1);
}

/* Gradient overlay ---------------------------------------------------- */
.ps-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		var(--ps-hero-overlay-1) 0%,
		var(--ps-hero-overlay-2) 40%,
		var(--ps-hero-overlay-3) 100%
	);
}

/* ------------------------------------------------------------------ */
/* Content layer                                                        */
/* ------------------------------------------------------------------ */
.ps-hero-content {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	z-index: 2;
}

.ps-hero-container {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Mirrors Bootstrap col-lg-7 */
.ps-hero-inner {
	max-width: 58.3333%;
}

/* Badge --------------------------------------------------------------- */
.ps-hero-badge {
	background: var(--ps-hero-badge-bg);
	border: 1px solid var(--ps-hero-badge-border);
	color: var(--ps-hero-badge-color);
	padding: 8px 24px;
	border-radius: 50px;
	font-size: 0.88rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	margin-bottom: 24px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	letter-spacing: 0.3px;
}

.ps-hero-badge i,
.ps-hero-badge svg {
	margin-right: 8px;
	width: 1em;
	height: 1em;
}

/* Title --------------------------------------------------------------- */
.ps-hero-title {
	font-size: 3.4rem;
	font-weight: 800;
	color: var(--ps-hero-title);
	line-height: 1.15;
	margin: 0 0 22px;
	text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
	letter-spacing: -0.5px;
}

.ps-hero-highlight {
	color: var(--ps-hero-highlight);
	display: inline;
}

/* Description --------------------------------------------------------- */
.ps-hero-desc {
	color: var(--ps-hero-desc);
	font-size: 1.15rem;
	max-width: 580px;
	margin: 0 0 32px;
	line-height: 1.85;
}

/* Buttons ------------------------------------------------------------- */
.ps-hero-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.ps-btn-hero {
	display: inline-flex;
	align-items: center;
	padding: 15px 38px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 1rem;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	letter-spacing: 0.3px;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.4;
}

.ps-btn-hero i,
.ps-btn-hero svg {
	margin-right: 8px;
	width: 1em;
	height: 1em;
}

.ps-btn-primary {
	background: linear-gradient(135deg, var(--ps-hero-btn-grad-start), var(--ps-hero-btn-grad-end));
	color: var(--ps-hero-btn-primary-text);
	border-color: transparent;
	box-shadow: 0 8px 20px rgba(255, 204, 0, 0.35);
}

.ps-btn-primary:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 35px rgba(255, 204, 0, 0.5);
	color: var(--ps-hero-btn-primary-text);
}

.ps-btn-outline {
	background: var(--ps-hero-btn-outline-bg);
	color: var(--ps-hero-btn-outline-text);
	border-color: var(--ps-hero-btn-outline-border);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.ps-btn-outline:hover {
	background: #ffffff;
	color: #003d2b;
	transform: translateY(-3px);
	border-color: #ffffff;
	box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Stats --------------------------------------------------------------- */
.ps-hero-stats {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--ps-hero-divider);
}

.ps-hero-stat-number {
	color: var(--ps-hero-stat-number);
	font-weight: 800;
	font-size: 1.5rem;
	display: block;
}

.ps-hero-stat-label {
	color: var(--ps-hero-stat-label);
	font-size: 0.8rem;
	display: block;
}

/* Feature pills ------------------------------------------------------- */
.ps-hero-pills {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--ps-hero-divider);
}

.ps-hero-pill {
	display: inline-flex;
	align-items: center;
	background: var(--ps-hero-pill-bg);
	border: 1px solid var(--ps-hero-pill-border);
	padding: 6px 16px;
	border-radius: 50px;
	color: var(--ps-hero-pill-text);
	font-size: 0.82rem;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.ps-hero-pill i,
.ps-hero-pill svg {
	color: var(--ps-hero-pill-icon);
	margin-right: 6px;
	width: 1em;
	height: 1em;
}

/* Pagination ---------------------------------------------------------- */
.ps-hero-swiper .ps-hero-pagination {
	z-index: 3;
}

.ps-hero-swiper .swiper-pagination-bullet {
	background: var(--ps-hero-bullet);
	width: 14px;
	height: 14px;
	opacity: 1;
	transition: all 0.3s ease;
}

.ps-hero-swiper .swiper-pagination-bullet-active {
	opacity: 1;
	background: var(--ps-hero-bullet-active);
	width: 40px;
	border-radius: 7px;
	box-shadow: 0 2px 10px rgba(255, 204, 0, 0.4);
}

/* ------------------------------------------------------------------ */
/* Responsive (matches the static breakpoints exactly)                 */
/* ------------------------------------------------------------------ */
@media (max-width: 991px) {
	.ps-hero-slider,
	.ps-hero-slide {
		height: 600px;
	}

	.ps-hero-title {
		font-size: 2.4rem;
	}

	/* Bootstrap col-lg-7 becomes full width under lg */
	.ps-hero-inner {
		max-width: 100%;
	}
}

@media (max-width: 575px) {
	.ps-hero-slider,
	.ps-hero-slide {
		height: 520px;
	}

	.ps-hero-title {
		font-size: 1.7rem;
	}
}
