/* ==========================================================================
   Primus Property — restyle
   Direction: light editorial luxury. Navy brand kept, warm sand accent added
   sparingly, serif display headings paired with Red Hat Display body text.
   Scoped under body.houzez-theme so it outranks theme and Elementor defaults.
   ========================================================================== */

:root {
	--pp-navy: #004274;
	--pp-navy-deep: #0b1f33;
	--pp-navy-soft: #e8eff6;
	--pp-sand: #c8a96a;
	--pp-sand-soft: #f6f1e7;
	--pp-ink: #1c2530;
	--pp-muted: #5f6b78;
	--pp-line: #e3e7ec;
	--pp-surface: #ffffff;
	--pp-canvas: #f7f8fa;

	--pp-font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--pp-font-body: "Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;

	--pp-radius-sm: 6px;
	--pp-radius-md: 12px;
	--pp-radius-lg: 18px;

	--pp-shadow-rest: 0 1px 2px rgba(11, 31, 51, 0.06), 0 4px 14px rgba(11, 31, 51, 0.06);
	--pp-shadow-lift: 0 2px 4px rgba(11, 31, 51, 0.06), 0 18px 40px rgba(11, 31, 51, 0.14);

	--pp-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--pp-fast: 160ms;
	--pp-normal: 320ms;
}

/* ---------- Base typography ---------- */

body.houzez-theme {
	font-family: var(--pp-font-body);
	color: var(--pp-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.houzez-theme h1,
body.houzez-theme h2,
body.houzez-theme .houzez_section_title,
body.houzez-theme .elementor-heading-title {
	font-family: var(--pp-font-display);
	font-weight: 500;
	letter-spacing: -0.015em;
}

/* No colour is forced on headings: several sit on dark photo sections and
   keep the colour Elementor gives them. */

body.houzez-theme ::selection {
	background: var(--pp-sand);
	color: var(--pp-navy-deep);
}

/* ---------- Section titles (Houzez section title widget) ---------- */

body.houzez-theme .section-title-module {
	margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.75rem);
}

body.houzez-theme .houzez_section_title {
	font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
	line-height: 1.15;
}

/* Subtitle colour is left to Elementor: some sit on dark photo sections. */
body.houzez-theme .houzez_section_subtitle {
	font-size: 1.05rem;
	line-height: 1.6;
}

/* ---------- Header navigation ---------- */

body.houzez-theme .main-nav .nav-link {
	position: relative;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.8rem;
}

body.houzez-theme .main-nav .nav-link::after {
	content: "";
	position: absolute;
	left: 50%;
	right: 50%;
	bottom: 0.35rem;
	height: 2px;
	background: var(--pp-sand);
	transition: left var(--pp-normal) var(--pp-ease), right var(--pp-normal) var(--pp-ease);
}

body.houzez-theme .main-nav .nav-link:hover::after,
body.houzez-theme .main-nav .current-menu-item > .nav-link::after {
	left: 1rem;
	right: 1rem;
}

/* ---------- Buttons ---------- */

body.houzez-theme .btn,
body.houzez-theme .elementor-button {
	border-radius: var(--pp-radius-sm);
	font-weight: 600;
	letter-spacing: 0.02em;
	transition:
		background-color var(--pp-fast) ease,
		border-color var(--pp-fast) ease,
		color var(--pp-fast) ease,
		box-shadow var(--pp-fast) ease,
		transform var(--pp-fast) ease;
}

body.houzez-theme .btn-primary,
body.houzez-theme .btn-create-listing,
body.houzez-theme .elementor-field-type-submit .elementor-button {
	background-color: var(--pp-navy);
	border-color: var(--pp-navy);
	color: #fff;
}

body.houzez-theme .btn-primary:hover,
body.houzez-theme .btn-create-listing:hover,
body.houzez-theme .elementor-field-type-submit .elementor-button:hover {
	background-color: var(--pp-navy-deep);
	border-color: var(--pp-navy-deep);
	box-shadow: 0 8px 20px rgba(0, 66, 116, 0.28);
	transform: translateY(-1px);
}

body.houzez-theme .btn-primary:active,
body.houzez-theme .elementor-button:active {
	transform: translateY(0);
	box-shadow: none;
}

body.houzez-theme .btn-primary-outlined {
	border: 1.5px solid var(--pp-navy);
	color: var(--pp-navy);
	background: transparent;
}

body.houzez-theme .btn-primary-outlined:hover {
	background: var(--pp-navy);
	color: #fff;
}

/* ---------- Search block ---------- */

body.houzez-theme .status-tab-js .nav-link {
	border-radius: var(--pp-radius-sm) var(--pp-radius-sm) 0 0;
	font-weight: 600;
	letter-spacing: 0.02em;
}

body.houzez-theme .status-tab-js .nav-link.active {
	box-shadow: inset 0 -3px 0 var(--pp-sand);
}

body.houzez-theme .elementor-widget-houzez_elementor_search_builder .elementor-form-fields-wrapper {
	border-radius: var(--pp-radius-md);
}

body.houzez-theme .elementor-widget-houzez_elementor_search_builder .elementor-widget-container {
	border-radius: var(--pp-radius-md);
	box-shadow: var(--pp-shadow-lift);
}

/* ---------- Form fields (search, inquiry, contact) ---------- */

body.houzez-theme .form-control,
body.houzez-theme .elementor-field-textual,
body.houzez-theme .bootstrap-select > .dropdown-toggle {
	border-radius: var(--pp-radius-sm);
	border-color: var(--pp-line);
	transition: border-color var(--pp-fast) ease, box-shadow var(--pp-fast) ease;
}

body.houzez-theme .form-control:focus,
body.houzez-theme .elementor-field-textual:focus,
body.houzez-theme .bootstrap-select > .dropdown-toggle:focus {
	border-color: var(--pp-navy);
	box-shadow: 0 0 0 3px rgba(0, 66, 116, 0.15);
	outline: none;
}

body.houzez-theme .form-label,
body.houzez-theme .elementor-field-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pp-muted);
}

/* ---------- Property cards ---------- */

body.houzez-theme .item-wrap {
	border-radius: var(--pp-radius-md);
	overflow: hidden;
	background: var(--pp-surface);
	box-shadow: var(--pp-shadow-rest);
	transition: box-shadow var(--pp-normal) var(--pp-ease), transform var(--pp-normal) var(--pp-ease);
}

body.houzez-theme .item-wrap:hover {
	box-shadow: var(--pp-shadow-lift);
	transform: translateY(-4px);
}

body.houzez-theme .item-wrap .listing-image-wrap,
body.houzez-theme .item-wrap .listing-thumb {
	overflow: hidden;
}

body.houzez-theme .item-wrap .listing-thumb img {
	transition: transform 900ms var(--pp-ease);
}

body.houzez-theme .item-wrap:hover .listing-thumb img {
	transform: scale(1.05);
}

body.houzez-theme .item-wrap .item-body {
	padding: 1.1rem 1.25rem 1.25rem;
}

/* Listing titles are often typed in capitals, so they stay in the sans face. */
body.houzez-theme .item-title,
body.houzez-theme .item-title a {
	font-family: var(--pp-font-body);
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1.35;
	letter-spacing: 0.005em;
	color: var(--pp-navy-deep);
}

body.houzez-theme .item-title a:hover {
	color: var(--pp-navy);
}

body.houzez-theme .item-price-wrap .item-price,
body.houzez-theme .item-price-wrap .price {
	font-family: var(--pp-font-body);
	font-weight: 800;
	letter-spacing: -0.01em;
}

body.houzez-theme .item-address {
	color: var(--pp-muted);
	font-size: 0.9rem;
}

body.houzez-theme .item-amenities {
	border-top: 1px solid var(--pp-line);
	padding-top: 0.75rem;
	margin-top: 0.75rem;
	color: var(--pp-muted);
}

body.houzez-theme .labels-wrap .label {
	border-radius: 999px;
	padding: 0.3em 0.8em;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	backdrop-filter: blur(4px);
}

body.houzez-theme .item-tool > span,
body.houzez-theme .item-tool > a {
	border-radius: 50%;
	transition: background-color var(--pp-fast) ease, color var(--pp-fast) ease;
}

/* ---------- Property type / location tiles ---------- */

body.houzez-theme .grid-item {
	border-radius: var(--pp-radius-lg);
	overflow: hidden;
}

body.houzez-theme .grid-item .houzez-lazy-bg,
body.houzez-theme .grid-item .hover-effect {
	transition: transform 900ms var(--pp-ease);
}

body.houzez-theme .grid-item:hover .houzez-lazy-bg,
body.houzez-theme .grid-item:hover .hover-effect {
	transform: scale(1.04);
}

body.houzez-theme .grid-item-title {
	font-family: var(--pp-font-display);
	font-weight: 500;
	letter-spacing: -0.01em;
}

body.houzez-theme .grid-item-subtitle {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.72rem;
	font-weight: 700;
}

body.houzez-theme .grid-item-icon {
	transition: transform var(--pp-normal) var(--pp-ease);
}

body.houzez-theme .grid-item:hover .grid-item-icon {
	transform: translateX(4px);
}

/* ---------- Blog cards ---------- */

body.houzez-theme .blog-post-item {
	border-radius: var(--pp-radius-md);
	overflow: hidden;
	background: var(--pp-surface);
	box-shadow: var(--pp-shadow-rest);
	transition: box-shadow var(--pp-normal) var(--pp-ease), transform var(--pp-normal) var(--pp-ease);
}

body.houzez-theme .blog-post-item:hover {
	box-shadow: var(--pp-shadow-lift);
	transform: translateY(-3px);
}

body.houzez-theme .blog-post-thumb {
	overflow: hidden;
}

body.houzez-theme .blog-post-thumb img {
	transition: transform 900ms var(--pp-ease);
}

body.houzez-theme .blog-post-item:hover .blog-post-thumb img {
	transform: scale(1.05);
}

body.houzez-theme .blog-post-title,
body.houzez-theme .blog-post-title a {
	font-family: var(--pp-font-display);
	font-weight: 500;
	line-height: 1.3;
	color: var(--pp-navy-deep);
}

body.houzez-theme .blog-post-meta {
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pp-muted);
}

/* ---------- Krijo listim: visitor gate (template-parts/.../login-required.php) ---------- */

body.houzez-theme .pp-submit-gate {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 1rem + 3vw, 4rem);
	align-items: center;
	margin: clamp(1.5rem, 1rem + 3vw, 4.5rem) 0 clamp(2.5rem, 2rem + 4vw, 6rem);
	padding: clamp(1.75rem, 1rem + 3vw, 4rem);
	border-radius: var(--pp-radius-lg);
	background:
		radial-gradient(120% 90% at 0% 0%, var(--pp-sand-soft) 0%, rgba(246, 241, 231, 0) 60%),
		var(--pp-canvas);
	border: 1px solid var(--pp-line);
}

body.houzez-theme .pp-submit-gate__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8a6d35;
}

body.houzez-theme .pp-submit-gate__title,
body.houzez-theme .pp-submit-gate__card-title {
	text-transform: none;
}

body.houzez-theme .pp-submit-gate__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
	line-height: 1.08;
	color: var(--pp-navy-deep);
	max-width: 16ch;
}

body.houzez-theme .pp-submit-gate__lead {
	margin: 0 0 2rem;
	font-size: 1.08rem;
	line-height: 1.65;
	color: var(--pp-muted);
	max-width: 52ch;
}

body.houzez-theme .pp-submit-gate__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.25rem;
}

body.houzez-theme .pp-submit-gate__step {
	display: flex;
	gap: 1.1rem;
	align-items: baseline;
	padding: 0.95rem 0;
	border-top: 1px solid var(--pp-line);
}

body.houzez-theme .pp-submit-gate__step-num {
	flex: 0 0 auto;
	font-family: var(--pp-font-display);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--pp-sand);
	min-width: 2.2ch;
}

body.houzez-theme .pp-submit-gate__step-body {
	display: grid;
	gap: 0.2rem;
}

body.houzez-theme .pp-submit-gate__step-body strong {
	font-weight: 700;
	color: var(--pp-navy-deep);
}

body.houzez-theme .pp-submit-gate__step-body span {
	color: var(--pp-muted);
	font-size: 0.95rem;
}

body.houzez-theme .pp-submit-gate__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
	border-radius: var(--pp-radius-lg);
	background: var(--pp-surface);
	box-shadow: var(--pp-shadow-lift);
}

body.houzez-theme .pp-submit-gate__card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	border-radius: var(--pp-radius-lg) var(--pp-radius-lg) 0 0;
	background: linear-gradient(90deg, var(--pp-navy) 0%, var(--pp-navy) 70%, var(--pp-sand) 70%);
}

body.houzez-theme .pp-submit-gate__card-icon {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--pp-navy-soft);
	color: var(--pp-navy);
	font-size: 1.15rem;
}

body.houzez-theme .pp-submit-gate__card-title {
	margin: 0.25rem 0 0;
	font-size: 1.6rem;
	line-height: 1.2;
	color: var(--pp-navy-deep);
}

body.houzez-theme .pp-submit-gate__card-text {
	margin: 0 0 0.5rem;
	color: var(--pp-muted);
}

body.houzez-theme .pp-submit-gate__btn {
	display: block;
	width: 100%;
	padding: 0.85rem 1.25rem;
	font-size: 1rem;
	text-align: center;
}

body.houzez-theme .pp-submit-gate__help {
	margin-top: 0.75rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--pp-line);
}

body.houzez-theme .pp-submit-gate__help p {
	margin: 0 0 0.4rem;
	font-size: 0.92rem;
	color: var(--pp-muted);
}

body.houzez-theme .pp-submit-gate__link {
	font-weight: 700;
	color: var(--pp-navy);
	text-decoration: none;
}

body.houzez-theme .pp-submit-gate__link span {
	display: inline-block;
	transition: transform var(--pp-fast) ease;
}

body.houzez-theme .pp-submit-gate__link:hover span {
	transform: translateX(3px);
}

@media (max-width: 991.98px) {
	body.houzez-theme .pp-submit-gate {
		grid-template-columns: minmax(0, 1fr);
	}

	body.houzez-theme .pp-submit-gate__title {
		max-width: none;
	}
}

/* ---------- Accessibility ---------- */

body.houzez-theme a:focus-visible,
body.houzez-theme button:focus-visible,
body.houzez-theme .btn:focus-visible,
body.houzez-theme .nav-link:focus-visible {
	outline: 2px solid var(--pp-sand);
	outline-offset: 3px;
	box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
	body.houzez-theme *,
	body.houzez-theme *::before,
	body.houzez-theme *::after {
		transition-duration: 1ms !important;
		animation-duration: 1ms !important;
	}

	body.houzez-theme .item-wrap:hover,
	body.houzez-theme .blog-post-item:hover,
	body.houzez-theme .item-wrap:hover .listing-thumb img,
	body.houzez-theme .blog-post-item:hover .blog-post-thumb img,
	body.houzez-theme .grid-item:hover .houzez-lazy-bg {
		transform: none;
	}
}

/* ---------- Small screens ---------- */

@media (max-width: 767.98px) {
	body.houzez-theme .item-wrap:hover,
	body.houzez-theme .blog-post-item:hover {
		transform: none;
	}

	body.houzez-theme .houzez_section_subtitle {
		font-size: 1rem;
	}
}
