/**
 * Manx Rent – global marketplace design system
 */

:root {
	--manx-navy: #1a2b4a;
	--manx-navy-light: #2d4a7c;
	--manx-red: #ff5a5f;
	--manx-red-hover: #e84e52;
	--manx-gray-50: #f8fafc;
	--manx-gray-100: #f1f5f9;
	--manx-gray-500: #64748b;
	--manx-gray-700: #334155;
	--manx-radius: 12px;
	--manx-radius-lg: 16px;
	--manx-shadow: 0 8px 30px rgba(26, 43, 74, 0.08);
	--manx-shadow-hover: 0 16px 40px rgba(26, 43, 74, 0.14);
	--manx-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography & base */
.manx-marketplace {
	font-family: inherit;
	color: var(--manx-gray-700);
}

.manx-marketplace h1,
.manx-marketplace h2,
.manx-marketplace h3,
.manx-marketplace h4 {
	color: var(--manx-navy);
}

/* Buttons */
.manx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none !important;
	border: 2px solid transparent;
	transition: transform var(--manx-transition), box-shadow var(--manx-transition), background var(--manx-transition), color var(--manx-transition);
}

.manx-btn:hover {
	transform: translateY(-1px);
}

.manx-btn--primary {
	background: var(--manx-red);
	color: #fff !important;
}

.manx-btn--primary:hover {
	background: var(--manx-red-hover);
	box-shadow: 0 8px 24px rgba(255, 90, 95, 0.35);
	color: #fff !important;
}

.manx-btn--outline {
	border-color: var(--manx-navy);
	color: var(--manx-navy) !important;
	background: transparent;
}

.manx-btn--outline:hover {
	background: var(--manx-navy);
	color: #fff !important;
}

.manx-btn--light {
	border-color: rgba(255, 255, 255, 0.8);
	color: #fff !important;
}

.manx-btn--light:hover {
	background: #fff;
	color: var(--manx-navy) !important;
}

/* Property cards */
.manx-property-card {
	background: #fff;
	border-radius: var(--manx-radius-lg);
	overflow: hidden;
	box-shadow: var(--manx-shadow);
	transition: transform var(--manx-transition), box-shadow var(--manx-transition);
	margin-bottom: 30px;
	height: calc(100% - 30px);
	display: flex;
	flex-direction: column;
}

.manx-property-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--manx-shadow-hover);
}

.manx-property-card__media {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.manx-property-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.manx-property-card:hover .manx-property-card__media img {
	transform: scale(1.04);
}

.manx-property-card__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	z-index: 2;
}

.manx-property-card__body {
	padding: 18px 20px 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.manx-property-card__body .property-price {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--manx-red);
	margin-bottom: 6px;
}

.manx-property-card__title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
}

.manx-property-card__title a {
	color: var(--manx-navy) !important;
	text-decoration: none !important;
}

.manx-property-card__title a:hover {
	color: var(--manx-red) !important;
}

.manx-property-card .property-location {
	font-size: 13px;
	color: var(--manx-gray-500);
	margin-bottom: 12px;
}

.manx-property-card .property-location i {
	color: var(--manx-red);
	margin-right: 4px;
}

.manx-property-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 13px;
	color: var(--manx-gray-500);
	margin-bottom: 12px;
}

.manx-property-card__type {
	display: inline-block;
	margin-top: auto;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: var(--manx-gray-100);
	color: var(--manx-navy);
	border-radius: 6px;
}

/* Property archive */
.manx-property-archive #main-container.inner {
	padding-top: 32px;
	padding-bottom: 64px;
}

.manx-property-archive .apus-breadscrumb {
	margin-bottom: 24px;
}

.manx-property-archive .properties-filter-sidebar-wrapper,
.manx-property-archive .filter-property-form {
	border-radius: var(--manx-radius-lg);
}

.manx-property-archive .filter-property-form .btn,
.manx-property-archive .btn-theme {
	background: var(--manx-red) !important;
	border-color: var(--manx-red) !important;
	border-radius: 999px;
}

.manx-property-archive .properties-listing-wrapper {
	margin-top: 8px;
}

/* Single property */
.manx-property-single .content-property-detail {
	padding-top: 24px;
}

.manx-property-single .property-gallery,
.manx-property-single .slick-slider {
	border-radius: var(--manx-radius-lg);
	overflow: hidden;
}

.manx-property-single .widget.contact-form,
.manx-property-single .contact-form-wrapper {
	background: var(--manx-gray-50);
	border-radius: var(--manx-radius-lg);
	padding: 24px;
	box-shadow: var(--manx-shadow);
}

.manx-property-single .property-section {
	margin-bottom: 32px;
}

.manx-property-single .property-detail-detail h1,
.manx-property-single .property-title {
	color: var(--manx-navy);
}

/* Dashboard */
.manx-dashboard-page .page-dashboard,
.manx-dashboard .inner-dashboard {
	background: var(--manx-gray-50);
	padding-top: 32px;
	padding-bottom: 64px;
}

.manx-dashboard .box-white-dashboard,
.manx-dashboard-page .box-white-dashboard {
	background: #fff;
	border-radius: var(--manx-radius-lg);
	box-shadow: var(--manx-shadow);
	border: 1px solid #e8edf3;
	padding: 24px;
	margin-bottom: 24px;
}

.manx-dashboard .dashboard-box {
	border-radius: var(--manx-radius);
	transition: transform var(--manx-transition), box-shadow var(--manx-transition);
}

.manx-dashboard .dashboard-box:hover {
	transform: translateY(-2px);
	box-shadow: var(--manx-shadow-hover);
}

.manx-dashboard .statistics .properties-count {
	font-size: 2rem;
	font-weight: 700;
	color: var(--manx-navy);
}

.manx-dashboard .user-profile-sidebar,
.manx-dashboard-page .user-profile-sidebar {
	background: #fff;
	border-radius: var(--manx-radius-lg);
	box-shadow: var(--manx-shadow);
	padding: 20px;
}

.manx-dashboard .user-profile-sidebar .user-info,
.manx-dashboard-page .user-profile-sidebar a {
	border-radius: 8px;
	transition: background var(--manx-transition);
}

.manx-dashboard .user-profile-sidebar a:hover,
.manx-dashboard-page .user-profile-sidebar .active a {
	background: rgba(255, 90, 95, 0.08);
	color: var(--manx-red) !important;
}

.manx-dashboard .title-profile {
	font-size: 1.75rem;
	margin-bottom: 24px;
}

/* Homepage CTA */
.manx-cta {
	background: linear-gradient(135deg, var(--manx-navy) 0%, var(--manx-navy-light) 100%);
	padding: 64px 0;
}

.manx-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.manx-cta__title {
	margin: 0 0 8px;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	color: #fff;
}

.manx-cta__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
	max-width: 520px;
}

.manx-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Footer */
.manx-footer {
	background: var(--manx-navy);
	color: rgba(255, 255, 255, 0.85);
	margin-top: 0;
}

.manx-footer__main {
	padding: 56px 0 32px;
}

.manx-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
}

.manx-footer__logo {
	font-size: 1.5rem;
	font-weight: 700;
	text-decoration: none !important;
	display: inline-block;
	margin-bottom: 12px;
}

.manx-footer__brand p {
	margin: 0;
	opacity: 0.8;
	line-height: 1.6;
	max-width: 320px;
}

.manx-footer__links h4 {
	color: #fff;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 16px;
}

.manx-footer__links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.manx-footer__links li {
	margin-bottom: 10px;
}

.manx-footer__links a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.2s;
}

.manx-footer__links a:hover {
	color: var(--manx-red);
}

.manx-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 20px 0;
}

.manx-footer__copy {
	margin: 0;
	text-align: center;
	font-size: 14px;
	opacity: 0.7;
}

/* Registration */
.manx-register .manx-role-tabs__item {
	text-align: left;
}

/* Hide demo chrome */
.manx-marketplace .apus-footer:not(.manx-footer),
.manx-marketplace #apus-footer.footer-default {
	display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
	.manx-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.manx-cta__inner {
		flex-direction: column;
		text-align: center;
	}

	.manx-cta__text {
		margin: 0 auto;
	}
}

@media (max-width: 575px) {
	.manx-footer__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}
