/**
 * Manx Rent – homepage polish layer (Elementor Home 1 layout unchanged).
 */

.manx-homepage-polish {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Prevent oversized preload logo from covering the viewport */
.apus-page-loading .apus-loader-inner {
	width: 80px !important;
	height: 80px !important;
	max-width: min(80px, 25vw);
	max-height: min(80px, 25vw);
	background-size: contain !important;
	background-repeat: no-repeat;
	background-position: center;
}

/* Typography */
.manx-homepage-polish .elementor-heading-title {
	letter-spacing: -0.02em;
}

.manx-homepage-polish .elementor-widget-heading .elementor-heading-title.elementor-size-default {
	line-height: 1.2;
}

/* Hero search area */
.manx-homepage-polish .homeo-realestate-search-form-tabs,
.manx-homepage-polish .widget-search-form {
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(15, 25, 45, 0.18);
}

.manx-homepage-polish .nav-tabs li a {
	transition: color 0.2s ease, background 0.2s ease;
}

/* Featured Properties carousel – uniform cards & full-width images */
.manx-homepage-polish .widget-properties.carousel .slick-track {
	display: flex !important;
	align-items: stretch;
}

.manx-homepage-polish .widget-properties.carousel .slick-slide {
	height: auto;
}

.manx-homepage-polish .widget-properties.carousel .slick-slide > .item {
	height: 100%;
}

.manx-homepage-polish .widget-properties.carousel .property-item {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	margin-bottom: 0;
	overflow: hidden;
}

.manx-homepage-polish .widget-properties.carousel .property-item .top-info {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding: 0;
}

.manx-homepage-polish .widget-properties.carousel .property-item .property-information {
	flex: 1 1 auto;
}

.manx-homepage-polish .widget-properties.carousel .property-item .property-metas-bottom {
	margin-top: auto;
}

.manx-homepage-polish .widget-properties.carousel .property-thumbnail-wrapper {
	display: block;
	width: 100%;
	position: relative;
	overflow: hidden;
	aspect-ratio: 17 / 11;
	border-radius: 6px 6px 0 0;
}

.manx-homepage-polish .widget-properties.carousel .image-thumbnail {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.manx-homepage-polish .widget-properties.carousel .property-image,
.manx-homepage-polish .widget-properties.carousel .image-wrapper {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
}

.manx-homepage-polish .widget-properties.carousel .property-image img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.manx-homepage-polish .widget-properties.carousel .property-thumbnail-wrapper .top-label,
.manx-homepage-polish .widget-properties.carousel .property-thumbnail-wrapper .bottom-label {
	width: 100%;
	left: 0;
	right: 0;
	box-sizing: border-box;
}

/* Property cards */
.manx-homepage-polish .property-item {
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
	will-change: transform;
}

.manx-homepage-polish .property-item:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 48px rgba(32, 32, 64, 0.12);
	border-color: rgba(255, 90, 95, 0.25);
}

.manx-homepage-polish .property-item .property-image img {
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.manx-homepage-polish .property-item:hover .property-image img {
	transform: scale(1.06);
}

.manx-homepage-polish .property-item .property-title a {
	transition: color 0.2s ease;
}

.manx-homepage-polish .property-item .property-title a:hover {
	color: #ff5a5f;
}

/* Location banners */
.manx-homepage-polish .location-banner-item,
.manx-homepage-polish .banner-item {
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.manx-homepage-polish .location-banner-item:hover,
.manx-homepage-polish .banner-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Feature boxes & testimonials */
.manx-homepage-polish .features-box-item,
.manx-homepage-polish .testimonial-item,
.manx-homepage-polish .post-grid-item {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manx-homepage-polish .features-box-item:hover,
.manx-homepage-polish .testimonial-item:hover,
.manx-homepage-polish .post-grid-item:hover {
	transform: translateY(-3px);
}

/* Section scroll reveal (JS adds .manx-in-view) */
.manx-homepage-polish .manx-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.manx-homepage-polish .manx-reveal.manx-in-view {
	opacity: 1;
	transform: translateY(0);
}

.manx-homepage-polish .manx-reveal.manx-delay-1 {
	transition-delay: 0.08s;
}

.manx-homepage-polish .manx-reveal.manx-delay-2 {
	transition-delay: 0.16s;
}

.manx-homepage-polish .manx-reveal.manx-delay-3 {
	transition-delay: 0.24s;
}

/* CTA / buttons */
.manx-homepage-polish .btn-theme,
.manx-homepage-polish .btn-theme-second {
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.manx-homepage-polish .btn-theme:hover,
.manx-homepage-polish .btn-theme-second:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(255, 90, 95, 0.35);
}

/* Spacing rhythm on wide screens */
@media (min-width: 1200px) {
	.manx-homepage-polish .elementor-section.elementor-section-boxed > .elementor-container {
		max-width: 1200px;
	}
}

/* Responsive */
@media (max-width: 767px) {
	.manx-homepage-polish .property-item:hover {
		transform: none;
		box-shadow: none;
	}

	.manx-homepage-polish .manx-reveal {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.manx-homepage-polish .manx-reveal,
	.manx-homepage-polish .property-item,
	.manx-homepage-polish .property-item .property-image img,
	.manx-homepage-polish .location-banner-item,
	.manx-homepage-polish .features-box-item {
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}
