/* LX Property Listings — design system: forest green, cream, brass */
:root {
	--lxp-forest: #1E3A2E;
	--lxp-forest-deep: #14291F;
	--lxp-cream: #F6F4EE;
	--lxp-brass: #C6A15B;
	--lxp-ink: #22302A;
	--lxp-body: #5A665F;
	--lxp-line: #E8E4DA;
	--lxp-display: "Playfair Display", Georgia, serif;
	--lxp-sans: "Inter", -apple-system, sans-serif;
}

/* ---------- Feed grid ---------- */
.lxp-grid-feed { display: grid; gap: 30px; }
.lxp-cols-1 { grid-template-columns: 1fr; }
.lxp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lxp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lxp-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .lxp-cols-3, .lxp-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .lxp-grid-feed { grid-template-columns: 1fr; } }

/* ---------- Card ---------- */
.lxp-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 12px 34px -8px rgba(20, 41, 31, 0.14);
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
}
.lxp-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -8px rgba(20, 41, 31, 0.22); }
.lxp-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.lxp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.lxp-card:hover .lxp-card__media img { transform: scale(1.05); }

.lxp-badge {
	position: absolute; top: 14px; left: 14px;
	font: 600 11px/1 var(--lxp-sans);
	letter-spacing: 1.5px; text-transform: uppercase;
	padding: 7px 12px; border-radius: 20px;
	background: var(--lxp-brass); color: var(--lxp-forest-deep);
}
.lxp-badge--sold    { background: var(--lxp-forest-deep); color: #fff; }
.lxp-badge--pending { background: #fff; color: var(--lxp-forest-deep); }
.lxp-badge--rented  { background: #7A2E28; color: #fff; }
.lxp-badge--coming-soon { background: #E4B95B; color: #14291F; }
.lxp-badge--for-rent { background: #2E6B3F; color: #fff; }

/* Rented/sold listings stay visible but read as unavailable */
.lxp-card--rented .lxp-card__media img,
.lxp-card--sold .lxp-card__media img { filter: grayscale(35%); }
.lxp-card--rented:hover .lxp-card__media img,
.lxp-card--sold:hover .lxp-card__media img { filter: grayscale(0%); }

.lxp-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.lxp-card__title { font: 600 22px/1.3 var(--lxp-display); margin: 0 0 6px; }
.lxp-card__title a { color: var(--lxp-ink); text-decoration: none; }
.lxp-card__title a:hover { color: var(--lxp-forest); }
.lxp-card__location { font: 400 14px/1.5 var(--lxp-sans); color: var(--lxp-body); margin: 0 0 14px; display: flex; align-items: center; gap: 6px; }
.lxp-card__location svg { color: var(--lxp-brass); flex-shrink: 0; }

.lxp-card__specs {
	list-style: none; margin: 0 0 16px; padding: 0 0 16px;
	display: flex; flex-wrap: wrap; gap: 18px;
	border-bottom: 1px solid var(--lxp-line);
	font: 500 13px/1.4 var(--lxp-sans); color: var(--lxp-body);
}
.lxp-card__specs li { display: flex; align-items: center; gap: 6px; }
.lxp-card__specs li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lxp-brass); }

.lxp-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.lxp-card__price { font: 700 23px/1.2 var(--lxp-display); color: var(--lxp-forest); }
.lxp-card__price small { font: 500 13px/1 var(--lxp-sans); color: var(--lxp-body); }
.lxp-card__more { font: 600 14px/1 var(--lxp-sans); color: var(--lxp-forest); text-decoration: none; }
.lxp-card__more:hover { color: var(--lxp-brass); }

.lxp-empty { font: 400 16px/1.6 var(--lxp-sans); color: var(--lxp-body); text-align: center; padding: 40px 20px; }

/* ---------- Buttons ---------- */
.lxp-btn {
	display: inline-block; text-decoration: none; border-radius: 4px;
	font: 600 15px/1 var(--lxp-sans); letter-spacing: .5px;
	padding: 16px 30px; transition: background .2s ease, color .2s ease;
}
.lxp-btn--brass { background: var(--lxp-brass); color: var(--lxp-forest-deep); }
.lxp-btn--brass:hover { background: #fff; color: var(--lxp-forest-deep); }
.lxp-btn--outline { background: transparent; color: var(--lxp-forest); border: 1px solid var(--lxp-forest); }
.lxp-btn--outline:hover { background: var(--lxp-forest); color: #fff; }
.lxp-btn--block { display: block; text-align: center; margin-top: 12px; }

/* ---------- Single property ---------- */
.lxp-single { background: #fff; }
.lxp-single__hero {
	position: relative; min-height: 62vh;
	background-size: cover; background-position: center;
	display: flex; align-items: flex-end;
}
.lxp-single__hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,41,31,.25) 0%, rgba(20,41,31,.78) 100%); }
.lxp-single__hero-inner { position: relative; width: 100%; max-width: 1140px; margin: 0 auto; padding: 60px 20px; }
.lxp-single__hero-inner .lxp-badge { position: static; display: inline-block; margin-bottom: 18px; }
.lxp-single__hero-inner h1 { font: 600 clamp(34px, 5vw, 58px)/1.15 var(--lxp-display); color: #fff; margin: 0 0 10px; }
.lxp-single__location { font: 400 17px/1.5 var(--lxp-sans); color: rgba(255,255,255,.85); margin: 0; }

.lxp-single__bar { background: var(--lxp-forest-deep); }
.lxp-single__bar-inner {
	max-width: 1140px; margin: 0 auto; padding: 26px 20px;
	display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}
.lxp-single__price { font: 700 32px/1.1 var(--lxp-display); color: var(--lxp-brass); }
.lxp-single__price small { font: 500 14px/1 var(--lxp-sans); color: #BFCFC2; }
.lxp-single__specs { list-style: none; display: flex; flex-wrap: wrap; gap: 26px; margin: 0; padding: 0; flex: 1; }
.lxp-single__specs li { font: 400 14px/1.4 var(--lxp-sans); color: #BFCFC2; }
.lxp-single__specs strong { color: #fff; font-weight: 600; }

.lxp-single__content {
	max-width: 1140px; margin: 0 auto; padding: 80px 20px;
	display: grid; grid-template-columns: 1fr 340px; gap: 50px;
}
@media (max-width: 900px) { .lxp-single__content { grid-template-columns: 1fr; } }

.lxp-single__main h2 { font: 600 30px/1.3 var(--lxp-display); color: var(--lxp-ink); margin: 0 0 18px; }
.lxp-single__main h2:not(:first-child) { margin-top: 44px; }
.lxp-single__description { font: 400 16px/1.85 var(--lxp-sans); color: var(--lxp-body); }
.lxp-single__description p { margin: 0 0 16px; }

.lxp-single__features {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
}
@media (max-width: 640px) { .lxp-single__features { grid-template-columns: 1fr; } }
.lxp-single__features li {
	font: 500 15px/1.5 var(--lxp-sans); color: var(--lxp-body);
	display: flex; align-items: baseline; gap: 10px;
}
.lxp-single__features li::before { content: "✓"; color: var(--lxp-brass); font-weight: 700; }

.lxp-single__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .lxp-single__gallery { grid-template-columns: repeat(2, 1fr); } }
.lxp-single__gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; }
.lxp-single__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.lxp-single__gallery a:hover img { transform: scale(1.05); }

.lxp-single__contact-card {
	background: var(--lxp-cream); border-radius: 12px; padding: 32px 28px;
	position: sticky; top: 110px;
}
.lxp-single__contact-card h3 { font: 600 22px/1.3 var(--lxp-display); color: var(--lxp-ink); margin: 0 0 10px; }
.lxp-single__contact-card p { font: 400 14px/1.7 var(--lxp-sans); color: var(--lxp-body); margin: 0 0 18px; }

.lxp-single__related { background: var(--lxp-cream); padding: 80px 0; }
.lxp-single__related-inner { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.lxp-single__related-inner > h2 { font: 600 34px/1.3 var(--lxp-display); color: var(--lxp-ink); margin: 0 0 36px; }
.lxp-single__back { margin-top: 40px; }
.lxp-single__back a { font: 600 15px/1 var(--lxp-sans); color: var(--lxp-forest); text-decoration: none; }
.lxp-single__back a:hover { color: var(--lxp-brass); }

/* ---------- Archive ---------- */
.lxp-archive__hero { background: var(--lxp-forest-deep); text-align: center; padding: 90px 20px; }
.lxp-eyebrow { font: 600 13px/1.2 var(--lxp-sans); letter-spacing: 2.5px; text-transform: uppercase; color: var(--lxp-brass); margin: 0 0 12px; }
.lxp-archive__hero h1 { font: 600 clamp(32px, 4.5vw, 52px)/1.2 var(--lxp-display); color: #fff; margin: 0; }
.lxp-archive__grid { max-width: 1140px; margin: 0 auto; padding: 80px 20px; }
.lxp-archive__pagination { margin-top: 50px; text-align: center; font-family: var(--lxp-sans); }
.lxp-archive__pagination a, .lxp-archive__pagination span { padding: 8px 14px; text-decoration: none; color: var(--lxp-forest); }
.lxp-archive__pagination .current { color: var(--lxp-brass); font-weight: 700; }

/* ---------- Archive filter bar (v1.1) ---------- */
.lxp-archive__filters { max-width: 1140px; margin: -34px auto 0; padding: 0 20px; position: relative; z-index: 5; }
.lxp-filters {
	background: #fff; border-radius: 12px; padding: 22px 24px;
	box-shadow: 0 16px 40px -10px rgba(20, 41, 31, 0.18);
	display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-end;
}
.lxp-filters__field { flex: 1 1 150px; min-width: 140px; }
.lxp-filters__field label {
	display: block; font: 600 11px/1.2 var(--lxp-sans);
	letter-spacing: 1.5px; text-transform: uppercase;
	color: var(--lxp-body); margin-bottom: 7px;
}
.lxp-filters__field select {
	width: 100%; padding: 11px 12px;
	font: 500 14px/1.3 var(--lxp-sans); color: var(--lxp-ink);
	border: 1px solid var(--lxp-line); border-radius: 6px;
	background: #fff; cursor: pointer;
}
.lxp-filters__field select:focus { outline: 2px solid var(--lxp-brass); outline-offset: 1px; border-color: var(--lxp-brass); }
.lxp-filters__actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.lxp-filters__actions .lxp-btn { padding: 13px 26px; border: 0; cursor: pointer; }
.lxp-filters__reset { font: 600 13px/1 var(--lxp-sans); color: var(--lxp-body); text-decoration: none; }
.lxp-filters__reset:hover { color: var(--lxp-brass); }
@media (max-width: 640px) {
	.lxp-archive__filters { margin-top: -20px; }
	.lxp-filters__field { flex: 1 1 100%; }
	.lxp-filters__actions { width: 100%; }
	.lxp-filters__actions .lxp-btn { flex: 1; text-align: center; }
}

/* ---------- Photo slider (v1.4) ---------- */
.lxp-single__slider-wrap { max-width: 1140px; margin: 0 auto; padding: 60px 20px 0; }
.lxp-slider { position: relative; overflow: hidden; border-radius: 12px; outline: none; }
.lxp-slider__track { display: flex; transition: transform .4s ease; }
.lxp-slider__slide { flex: 0 0 100%; aspect-ratio: 16 / 9; }
.lxp-slider__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lxp-slider__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(20,41,31,.72); color: #fff; font-size: 18px;
	display: flex; align-items: center; justify-content: center;
	transition: background .2s ease;
}
.lxp-slider__nav:hover { background: var(--lxp-brass); color: var(--lxp-forest-deep); }
.lxp-slider__nav--prev { left: 16px; }
.lxp-slider__nav--next { right: 16px; }
.lxp-slider__count {
	position: absolute; bottom: 14px; right: 16px;
	background: rgba(20,41,31,.72); color: #fff;
	font: 600 12px/1 var(--lxp-sans); letter-spacing: 1px;
	padding: 7px 12px; border-radius: 16px;
}
.lxp-slider--single .lxp-slider__nav, .lxp-slider--single .lxp-slider__count { display: none; }

.lxp-single__price-note { font: 400 13px/1.5 var(--lxp-sans); color: #BFCFC2; margin-top: 4px; max-width: 260px; }
.lxp-btn--forest { background: var(--lxp-forest); color: #fff; }
.lxp-btn--forest:hover { background: var(--lxp-forest-deep); color: #fff; }
.lxp-print-btn { width: 100%; cursor: pointer; }
@media print {
	/* Strip interactive chrome so the printout reads as a listing sheet */
	.lxp-single__related, .lxp-single__contact-card .lxp-btn, .lxp-print-btn,
	.lxp-slider__nav, .lxp-slider__count, .lxp-tpl-buttons, .lxp-filters,
	.lxp-video-overlay { display: none !important; }

	/* Sticky site header: hide it and remove the JS body offset */
	.lx-header-wrap { display: none !important; }
	body { padding-top: 0 !important; }

	/* Keep hero readable on paper */
	.lxp-single__hero { min-height: 0; }
	.lxp-single__hero-inner { padding: 30px 20px; }
	.lxp-single__content { grid-template-columns: 1fr; padding: 30px 20px; }
	.lxp-single__contact-card { position: static; }
	.lxp-single__bar, .lxp-single__hero-overlay { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Template shortcode elements (v1.5) ---------- */
.lxp-badge--static { position: static; display: inline-block; }
.lxp-tpl-title { font: 600 clamp(34px, 4.5vw, 52px)/1.15 var(--lxp-display); color: var(--lxp-ink); margin: 0; }
.lxp-tpl-location { font: 400 17px/1.5 var(--lxp-sans); color: var(--lxp-body); margin: 0; }
.lxp-tpl-price { font: 700 44px/1.1 var(--lxp-display); color: var(--lxp-brass); }
.lxp-tpl-price small { font: 500 15px/1 var(--lxp-sans); color: #BFCFC2; }
.lxp-tpl-price-note { font: 400 14px/1.6 var(--lxp-sans); color: #BFCFC2; margin-top: 8px; max-width: 280px; }
.lxp-tpl-details { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.lxp-tpl-details li { font: 400 15px/1.5 var(--lxp-sans); color: #BFCFC2; padding-left: 20px; position: relative; }
.lxp-tpl-details li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--lxp-brass); }
.lxp-tpl-details strong { color: #fff; font-weight: 600; }
.lxp-tpl-description { font: 400 16px/1.85 var(--lxp-sans); color: var(--lxp-body); }
.lxp-tpl-description p { margin: 0 0 16px; }
.lxp-tpl-buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.lxp-tpl-buttons .lxp-btn { border: 0; cursor: pointer; }
.lxp-tpl-buttons .lxp-btn--outline { border: 1px solid var(--lxp-forest); }
.lxp-single--elementor { background: #fff; }

/* ---------- List layout (v1.6) ---------- */
.lxp-list-feed { display: flex; flex-direction: column; gap: 28px; }
.lxp-card--list { flex-direction: row; }
.lxp-card--list .lxp-card__media { flex: 0 0 42%; aspect-ratio: auto; min-height: 260px; }
.lxp-card--list .lxp-card__body { flex: 1; padding: 30px 32px; }
.lxp-card__excerpt { font: 400 14.5px/1.7 var(--lxp-sans); color: var(--lxp-body); margin: 0 0 16px; }
@media (max-width: 700px) {
	.lxp-card--list { flex-direction: column; }
	.lxp-card--list .lxp-card__media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
}

/* ---------- Video popup overlay (v1.6) ---------- */
.lxp-video-overlay {
	position: fixed; inset: 0; z-index: 100000;
	background: rgba(10, 20, 15, 0.88);
	display: flex; align-items: center; justify-content: center;
	padding: 24px; animation: lxpFadeIn .2s ease;
}
@keyframes lxpFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lxp-video-overlay__inner { position: relative; width: min(1000px, 100%); }
.lxp-video-overlay__frame { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lxp-video-overlay__frame iframe { width: 100%; height: 100%; display: block; }
.lxp-video-overlay__close {
	position: absolute; top: -46px; right: 0;
	width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--lxp-brass); color: var(--lxp-forest-deep);
	font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.lxp-video-overlay__close:hover { background: #fff; }

/* ---------- AJAX archive (v1.7) ---------- */
#lxp-archive-results { transition: opacity .2s ease; }
#lxp-archive-results.lxp-loading { opacity: .45; pointer-events: none; }
.lxp-ajax-pages { margin-top: 50px; display: flex; justify-content: center; gap: 8px; }
.lxp-ajax-page {
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--lxp-line); border-radius: 6px; background: #fff;
	font: 600 14px/1 var(--lxp-sans); color: var(--lxp-forest); cursor: pointer;
	transition: all .15s ease;
}
.lxp-ajax-page:hover { border-color: var(--lxp-brass); color: var(--lxp-brass); }
.lxp-ajax-page--current { background: var(--lxp-forest); border-color: var(--lxp-forest); color: #fff; }

/* ---------- Inquiry popup (v1.9) ---------- */
.lxp-inquiry-overlay {
	position: fixed; inset: 0; z-index: 100000;
	background: rgba(10, 20, 15, 0.7); backdrop-filter: blur(2px);
	display: flex; align-items: center; justify-content: center;
	padding: 24px; opacity: 0; transition: opacity .25s ease;
	overflow-y: auto;
}
.lxp-inquiry-overlay.is-open { opacity: 1; }
.lxp-inquiry-overlay[hidden] { display: none; }
.lxp-inquiry-overlay__panel {
	position: relative; width: min(560px, 100%);
	background: #fff; border-radius: 14px; padding: 36px 34px;
	box-shadow: 0 30px 80px rgba(0,0,0,.45);
	max-height: 90vh; overflow-y: auto;
	transform: translateY(14px); transition: transform .25s ease;
}
.lxp-inquiry-overlay.is-open .lxp-inquiry-overlay__panel { transform: translateY(0); }
.lxp-inquiry-overlay__close {
	position: absolute; top: 14px; right: 14px;
	width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--lxp-cream); color: var(--lxp-ink); font-size: 22px; line-height: 1;
}
.lxp-inquiry-overlay__close:hover { background: var(--lxp-brass); }
.lxp-inquiry-overlay__title { font: 600 24px/1.3 var(--lxp-display); color: var(--lxp-ink); margin: 0 0 4px; }
.lxp-inquiry-overlay__property { font: 500 14px/1.5 var(--lxp-sans); color: var(--lxp-brass); margin: 0 0 18px; }
.lxp-inquiry-overlay .gform_wrapper input[type=submit],
.lxp-inquiry-overlay .gform_wrapper .gform_button {
	background: var(--lxp-brass); color: var(--lxp-forest-deep); border: 0; border-radius: 4px;
	font: 600 15px/1 var(--lxp-sans); letter-spacing: .5px; padding: 15px 28px; cursor: pointer;
}
.lxp-inquiry-overlay .gform_wrapper input[type=submit]:hover { background: var(--lxp-forest); color: #fff; }
