﻿/**
 * Lanka Best Property â€” main styles
 */

:root {
	--lbp-green: #014235;
	--lbp-green-2: #0a2e24;
	--lbp-green-dark: #002f22;
	--lbp-gold: #c9923d;
	--lbp-gold-bright: #d4a84a;
	--lbp-cta-blue: #1a5f7a;
	--lbp-ink: #0c0c0c;
	--lbp-text: #2a2a2a;
	--lbp-mute: #5c5c5c;
	--lbp-line: #e4e2dc;
	--lbp-surface: #f5f4f0;
	--lbp-surface-2: #efeee9;
	--lbp-radius: 0px;
	--lbp-radius-sm: 0px;
	--lbp-shadow: 0 2px 16px rgba(1, 35, 25, 0.06);
	--lbp-shadow-hover: 0 12px 40px rgba(1, 35, 25, 0.1);
	--lbp-font: "Inter", "Noto Sans Sinhala", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--lbp-container: 1240px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	border-radius: 0 !important;
}

html {
	scroll-behavior: smooth;
}

body.lbp-site {
	margin: 0;
	font-family: var(--lbp-font);
	font-size: 1rem;
	line-height: 1.5;
	color: var(--lbp-text);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--lbp-green);
	text-decoration: none;
}

a:hover,
a:focus-visible {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.lbp-skip-link:focus {
	position: fixed;
	z-index: 10000;
	top: 8px;
	left: 8px;
	background: #fff;
	padding: 0.5rem 1rem;
	clip: auto;
}

.screen-reader-text,
.lbp-skip-link:not(:focus) {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute;
}

.lbp-container {
	width: 100%;
	max-width: var(--lbp-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 0rem;
	padding-right: 0rem;
}

/* --- Header --- */
.lbp-header {
	background: #fff;
}

.lbp-header__row {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 0.65rem 0 1rem;
	flex-wrap: wrap;
}

.lbp-header__search {
	flex: 1 1 280px;
	min-width: 0;
	order: 0;
}

.lbp-header__logo {
	order: -1;
}

.lbp-header__links {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--lbp-line);
}

/* Hidden on desktop; shown on mobile only */
.lbp-header-social-mobile,
.lbp-search-toggle,
.lbp-filter-mobile-btn {
	display: none;
}

.lbp-header__links-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.25rem;
	flex-wrap: wrap;
	width: 100%;
}

.lbp-header-social {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	flex-shrink: 0;
}

.lbp-header-social__hit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	color: var(--lbp-mute);
	transition:
		color 0.15s ease,
		opacity 0.15s ease;
	border-radius: 0;
}

.lbp-header-social__hit:not(.lbp-header-social__hit--inactive):hover,
.lbp-header-social__hit:not(.lbp-header-social__hit--inactive):focus-visible {
	color: var(--lbp-green);
	text-decoration: none;
	opacity: 0.95;
}

.lbp-header-social__hit:focus-visible {
	outline: 2px solid var(--lbp-green);
	outline-offset: 2px;
}

.lbp-header-social__hit--inactive {
	opacity: 0.38;
	cursor: default;
	pointer-events: none;
}

.lbp-header-social__svg {
	display: block;
	width: 1.15rem;
	height: 1.15rem;
}

.lbp-breadcrumb-nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem 0.2rem;
	font-size: 0.8125rem;
}

.lbp-breadcrumb-nav__a {
	color: var(--lbp-mute);
	font-weight: 500;
}

.lbp-breadcrumb-nav__a:hover,
.lbp-breadcrumb-nav__a:focus-visible {
	color: var(--lbp-green);
	text-decoration: none;
}

.lbp-breadcrumb-nav__sep {
	color: #c0bdb6;
	margin: 0 0.15rem;
	font-weight: 300;
}

.lbp-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.lbp-header__action-link {
	color: var(--lbp-mute);
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
}

.lbp-header__action-link:hover,
.lbp-header__action-link:focus-visible {
	color: var(--lbp-green);
	text-decoration: none;
}

.lbp-header__action-sep {
	color: #c0bdb6;
	font-weight: 300;
}

.lbp-post-ad-btn {
	display: inline-block;
	background: #e5b45c;
	color: #004938;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.35rem 1rem;
	border-radius: 50px;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 0.15s ease, color 0.15s ease;
}

.lbp-post-ad-btn:hover,
.lbp-post-ad-btn:focus-visible {
	background: #d4a04a;
	color: #004938;
	text-decoration: none;
}

/* ── Floating Post Ad — hidden on desktop ── */
.lbp-float-post-ad {
	display: none;
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 800;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.4rem 0.6rem 1rem;
	background: #e5a817;
	color: #1a1a1a;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 50px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
	font-family: var(--lbp-font);
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.lbp-float-post-ad:hover,
.lbp-float-post-ad:focus-visible {
	background: #d49a10;
	color: #1a1a1a;
	text-decoration: none;
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.32);
	transform: translateX(-50%) translateY(-2px);
}

/* Float button hidden on all viewports; header button always visible */
@media (max-width: 768px) {
	.lbp-float-post-ad {
		display: none;
	}
}

.lbp-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.lbp-logo:hover,
.lbp-logo:focus-visible {
	text-decoration: none;
	opacity: 0.92;
}

.lbp-logo__img {
	display: block;
	height: auto;
	max-height: 3.5rem;
	width: auto;
	max-width: min(100%, 18rem);
	object-fit: contain;
	border-radius: 0;
}

.lbp-logo__wordmark {
	font-size: 2.2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #e5b45c;
	line-height: 1.15;
	white-space: nowrap;
}


.lbp-logo--sm .lbp-logo__img {
	max-height: 3.15rem;
	max-width: 16.5rem;
}

.lbp-logo__img--footer {
	max-height: 5.5rem;
	max-width: 22rem;
}

/* Search */
.lbp-search {
	width: 100%;
}

.lbp-search__inner {
	display: flex;
	align-items: stretch;
	background: #fff;
	border-radius: 0;
	border: 1px solid var(--lbp-line);
	overflow: hidden;
	max-width: 100%;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.lbp-search__icon {
	display: flex;
	align-items: center;
	padding-left: 1rem;
	color: var(--lbp-mute);
}

.lbp-search__input {
	flex: 1 1 auto;
	border: 0;
	background: transparent;
	padding: 0.8rem 0.5rem 0.8rem 0.25rem;
	font: inherit;
	min-width: 0;
}

.lbp-search__input::placeholder {
	color: #8a8a8a;
}

.lbp-search__input:focus {
	outline: none;
}

.lbp-search__inner:focus-within {
	border-color: var(--lbp-green);
	box-shadow: 0 0 0 1px var(--lbp-green);
}

.lbp-search__btn {
	border: 0;
	background: #16a34a;
	color: #fff;
	font: inherit;
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	padding: 0 1.35rem;
	cursor: pointer;
}

.lbp-search__btn:hover,
.lbp-search__btn:focus-visible {
	background: #15803d;
}

/* Category bar: outer holds layout height when inner nav is position:fixed (see sticky-catbar.js) */
.lbp-app > .lbp-catbar-outer {
	flex-shrink: 0;
	position: relative;
	z-index: 200;
}

.lbp-catbar {
	position: relative;
	width: 100%;
	background: #004938;
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(1, 35, 25, 0.15);
}

.lbp-catbar.is-stuck {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 200;
	background: #004938;
	box-shadow: 0 4px 16px rgba(1, 35, 25, 0.28);
}

.lbp-catbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.2rem 0.4rem;
	padding: 0.65rem 0;
}

.lbp-catbar__link {
	color: #ffffff;
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.4rem 0.5rem;
	border-radius: 0;
}

.lbp-catbar__link:hover,
.lbp-catbar__link:focus-visible {
	color: #ffffff;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.15);
}

.lbp-catbar__link.is-active {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.2);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.lbp-catbar__dot {
	opacity: 0.35;
	font-weight: 300;
	margin: 0 0.1rem;
	user-select: none;
}

/* Layout: category rail | feed | promos */
.lbp-main {
	padding: 1.75rem 0 3.5rem;
}

.lbp-layout {
	display: grid;
	grid-template-areas: "left content right";
	grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) minmax(240px, 300px);
	gap: 2rem 2.5rem;
	align-items: start;
}

.lbp-layout__content {
	grid-area: content;
	min-width: 0;
}

.lbp-filter-reset-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	margin-bottom: 1.25rem;
	padding: 0.65rem 0.95rem;
	background: #fff;
	border: 1px solid var(--lbp-line);
	border-radius: 0;
	box-shadow: var(--lbp-shadow);
}

.lbp-filter-reset-bar__hint {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--lbp-text);
}

.lbp-filter-reset-bar .lbp-filter-reset-bar__btn {
	padding: 0.45rem 0.95rem;
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	flex-shrink: 0;
}

@media (max-width: 540px) {
	.lbp-filter-reset-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.lbp-filter-reset-bar .lbp-filter-reset-bar__btn {
		text-align: center;
	}
}

.lbp-layout__aside--left {
	grid-area: left;
	align-self: stretch;
}

.lbp-layout__aside--right {
	grid-area: right;
}

.lbp-list {
	display: flex;
	flex-direction: column;
	gap: 1.4rem;
}

/* Left sidebar — sticks while the listings column scrolls */
.lbp-sidebar-stack {
	position: sticky;
	top: 5rem;
	display: flex;
	flex-direction: column;
	align-self: start;
	gap: 1.5rem;
	overflow-x: hidden;
	border-radius: 0;
}

.lbp-sidebar-stack::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

/* Category sidebar */
.lbp-cats {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	background: #fff;
	border: none;
	border-radius: 0;
	padding: 1.15rem 0 1rem;
	box-shadow: none;
	overflow: hidden;
}

.lbp-cats::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 1;
	border-radius: 0;
	background: linear-gradient(90deg, var(--lbp-gold) 0%, var(--lbp-gold-bright) 100%);
}

.lbp-cats__title {
	margin: 0 1rem 0.65rem;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lbp-mute);
}

.lbp-cats__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lbp-cats__a {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	color: var(--lbp-cta-blue);
	font-size: 0.9rem;
	font-weight: 500;
	border-left: none;
	text-decoration: none;
}

.lbp-cats__label {
	flex: 1;
	min-width: 0;
	line-height: 1.35;
}

.lbp-cats__a:hover,
.lbp-cats__a:focus-visible {
	background: var(--lbp-surface);
	text-decoration: none;
	color: var(--lbp-green);
}

.lbp-cats__a.is-active {
	background: linear-gradient(90deg, rgba(1, 66, 53, 0.08) 0%, transparent 100%);
	border-left-color: var(--lbp-green);
	color: var(--lbp-green);
	font-weight: 600;
}

.lbp-cats__count {
	flex-shrink: 0;
	align-self: flex-start;
	margin-top: 0.1rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--lbp-mute);
	background: none;
	padding: 0;
	min-width: 0;
	text-align: center;
	line-height: 1.3;
}

.lbp-cats__a.is-active .lbp-cats__count {
	background: none;
	color: var(--lbp-green);
}

/* District filter (image rows + badge counts; stronger curve at bottom) */
.lbp-districts {
	position: relative;
	z-index: 0;
	flex-shrink: 0;
	background: #0d0d0d;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0;
	box-shadow: var(--lbp-shadow);
	overflow: hidden;
}

.lbp-districts__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lbp-districts__item {
	margin: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.lbp-districts__item:last-child {
	border-bottom: none;
}

.lbp-districts__item:last-child .lbp-districts__a {
	border-radius: 0;
	overflow: hidden;
}

.lbp-districts__a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	min-height: 54px;
	padding: 0.45rem 0.75rem 0.45rem 0.9rem;
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: none;
	background-image:
		linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
		var(--lbp-d-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition:
		filter 0.15s ease,
		box-shadow 0.15s ease;
}

.lbp-districts__a:hover,
.lbp-districts__a:focus-visible {
	filter: brightness(1.08);
	color: #fff;
	text-decoration: none;
	outline: none;
}

.lbp-districts__a:focus-visible {
	box-shadow: inset 0 0 0 2px rgba(201, 146, 61, 0.65);
}

.lbp-districts__a.is-active {
	position: relative;
	z-index: 1;
	filter: brightness(1.22) saturate(1.08);
	box-shadow:
		inset 5px 0 0 0 var(--lbp-gold),
		inset 0 0 0 2px rgba(201, 146, 61, 0.55),
		0 4px 14px rgba(0, 0, 0, 0.35);
	background-image:
		linear-gradient(105deg, rgba(201, 146, 61, 0.22) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.5) 100%),
		var(--lbp-d-bg);
	background-size: cover;
	background-position: center;
}

.lbp-districts__a.is-active .lbp-districts__label {
	color: #fffbeb;
	text-shadow:
		0 0 1px rgba(0, 0, 0, 1),
		0 1px 8px rgba(0, 0, 0, 0.9),
		0 0 18px rgba(201, 146, 61, 0.45);
	font-weight: 800;
}

.lbp-districts__a.is-active .lbp-districts__count {
	background: var(--lbp-gold) !important;
	color: #1a0f0a;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.lbp-districts__a.is-active:hover,
.lbp-districts__a.is-active:focus-visible {
	filter: brightness(1.28) saturate(1.1);
	color: #fff;
}

.lbp-districts__label {
	flex: 1;
	min-width: 0;
	line-height: 1.3;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.lbp-districts__count {
	flex-shrink: 0;
	min-width: 2rem;
	padding: 0.22rem 0.48rem;
	font-size: 0.72rem;
	font-weight: 800;
	color: #fff;
	text-align: center;
	border-radius: 0;
	line-height: 1.2;
}

.lbp-districts__count--a {
	background: #1a7ee6;
}

.lbp-districts__count--b {
	background: #c23a8c;
}

/* Row listing cards & compact grid cards (recommended) */
.lbp-card--row,
.lbp-card--grid {
	background: #fff;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
	transition:
		transform 0.22s ease;
	position: relative;
}

.lbp-card--row {
	height: 190px;
	max-height: 190px;
	overflow: hidden;
}

.lbp-card--row::before,
.lbp-card--grid::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: 0;
	pointer-events: none;
	border-left: 4px solid transparent;
	transition: border-color 0.22s ease;
}

.lbp-card--row:hover,
.lbp-card--grid:hover {
	transform: translateY(-3px);
}

.lbp-card--row:hover::before,
.lbp-card--grid:hover::before {
	border-left-color: var(--lbp-gold);
}

.lbp-card__rowlink {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0;
	color: inherit;
	height: 100%;
}

.lbp-card__rowlink:hover,
.lbp-card__rowlink:focus-visible {
	text-decoration: none;
	color: inherit;
}

.lbp-card--row .lbp-card__media {
	width: 200px;
	height: 190px;
	background: #f0eeea;
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
}

/* Grid variant: stacked image + body (four across on single recommended) */
.lbp-card--grid .lbp-card__rowlink {
	flex-direction: column;
	min-height: 0;
	align-items: stretch;
}

.lbp-card--grid .lbp-card__media {
	position: relative;
	flex: 0 0 auto;
	max-width: none;
	width: 100%;
	aspect-ratio: 4 / 3;
	min-height: 0;
	padding-top: 0;
	background: linear-gradient(160deg, #e8e6e0 0%, #d5d0c6 100%);
}

.lbp-card--grid .lbp-card__main {
	padding: 0.95rem 1rem 1rem;
}

.lbp-card--grid .lbp-card__readmore {
	display: none;
}

.lbp-card--row .lbp-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.lbp-card--row .lbp-card__placeholder,
.lbp-card--grid .lbp-card__img,
.lbp-card--grid .lbp-card__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lbp-card__placeholder {
	background: linear-gradient(140deg, #e5e2db 0%, #c9c4bb 100%);
}

.lbp-badge {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	padding: 0.2rem 0.45rem;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	border-radius: 0;
	color: #fff;
	z-index: 1;
}

.lbp-badge--is-hot {
	background: #b85c2a;
}

.lbp-badge--is-muted {
	background: #3d3d3d;
}

/* Urgent listing (meta flag); sits top-right when optional text badge uses top-left */
.lbp-badge--urgent {
	left: auto;
	right: 0.6rem;
	background: linear-gradient(135deg, #c62828 0%, #9a1e1e 100%);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
	animation: lbp-badge-urgent-pulse 2.2s ease-in-out infinite;
}

.lbp-badge--type {
	background: linear-gradient(135deg, var(--lbp-green) 0%, var(--lbp-green-dark) 100%);
	box-shadow: 0 2px 6px rgba(1, 35, 25, 0.28);
}

@keyframes lbp-badge-urgent-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.72; }
}

@media (prefers-reduced-motion: reduce) {
	.lbp-badge--urgent {
		animation: none;
	}

	.lbp-single__urgent-pill {
		animation: none;
	}
}

.lbp-card__main {
	flex: 1 1 auto;
	padding: 0.65rem 1rem 0.65rem;
	display: flex;
	flex-direction: column;
	gap: 0rem;
	min-width: 0;
}

/* Date line */
.lbp-card__dateline {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.78rem;
	color: #999;
	margin-bottom: 0rem;
}

.lbp-card__dateline time {
	color: #999;
}

/* Title */
.lbp-card__title {
	margin: 0 0 0.1rem;
	font-size: clamp(0.9rem, 2vw, 1.05rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--lbp-ink);
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	line-clamp: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.18s ease;
}

.lbp-card--row:hover .lbp-card__title,
.lbp-card--grid:hover .lbp-card__title {
	color: var(--lbp-green);
}

/* By line */
.lbp-card__byline {
	margin: 0 0 0.15rem;
	font-size: 0.82rem;
	color: #888;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.lbp-card__byline-name {
	font-weight: 600;
	color: #555;
}

/* Location */
.lbp-card__loc {
	margin: 0 0 0.15rem;
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.9rem;
	color: #16a34a !important;
	font-weight: 600;
}

.lbp-card__loc-icon {
	display: flex;
	color: #e02020;
	flex-shrink: 0;
}

/* Specs row under location */
.lbp-card__specs-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 0.8rem;
	margin: 0.25rem 0 0;
}

.lbp-card__spec-item {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.78rem;
	color: var(--lbp-mute);
	font-weight: 500;
}

/* Footer: READ MORE + stats */
.lbp-card__footer {
	display: flex;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-top: auto;
	padding-top: 0.75rem;
	border-top: 1px solid var(--lbp-line);
	flex-wrap: wrap;
}

.lbp-card__readmore {
	display: inline-block;
	padding: 0.42rem 1.1rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	background: #5b9bd5;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 0.18s ease;
}

.lbp-card__rowlink:hover .lbp-card__readmore {
	background: #4a8ac4;
}

.lbp-card__footer-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem 0.8rem;
	flex-wrap: wrap;
	margin-left: auto;
}

.lbp-card__footer-stat {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.78rem;
	color: #888;
	font-weight: 500;
}

.lbp-card__footer-price {
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--lbp-green);
	display: block;
	margin: 0.1rem 0;
}

.lbp-card__footer-views {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.78rem;
	color: #e05a7a;
	font-weight: 600;
}

.lbp-card__share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0.2rem;
	cursor: pointer;
	color: var(--lbp-cta-blue);
	transition: color 0.15s ease, transform 0.15s ease;
	flex-shrink: 0;
}

.lbp-card__share-btn:hover {
	color: var(--lbp-green);
	transform: scale(1.15);
}

.lbp-card__footer-mode {
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.15rem 0.5rem;
	white-space: nowrap;
}

.lbp-card__mode--rent {
	color: var(--lbp-gold);
	background: color-mix(in srgb, var(--lbp-gold) 12%, white);
}

.lbp-card__mode--sell {
	color: var(--lbp-mute);
	background: color-mix(in srgb, var(--lbp-mute) 10%, white);
}

/* Badge on image (category) */
.lbp-badge--cat {
	background: #5b9bd5;
}

.lbp-ico {
	vertical-align: -0.15em;
	opacity: 0.85;
}

/* Right column promos */
.lbp-layout__aside--right {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	position: sticky;
	top: 5rem;
	align-self: start;
}

.lbp-widget {
	border-radius: 0;
	overflow: hidden;
}

.lbp-widget--sell {
	background: #c2ddd5;
	color: var(--lbp-ink);
	border: none;
	padding: 1.75rem 1.4rem 1.9rem;
	text-align: center;
	box-shadow: none;
}

.lbp-widget__icon {
	margin-bottom: 0.55rem;
}

.lbp-widget__title {
	margin: 0 0 0.55rem;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.lbp-widget__desc {
	margin: 0 0 1.35rem;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--lbp-mute);
}

.lbp-btn {
	display: inline-block;
	padding: 0.6rem 1.15rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border-radius: 0;
}

.lbp-btn--gold {
	background: #16a34a;
	color: #fff;
}

.lbp-btn--gold:hover,
.lbp-btn--gold:focus-visible {
	background: #15803d;
	color: #fff;
	text-decoration: none;
}

/* Urgent listings â€” compact â€œtrendingâ€ grid (right column under promo) */
.lbp-widget--urgent {
	background: #fff;
	border: none;
	box-shadow: none;
	padding: 1rem 0.85rem 1.05rem;
	text-align: left;
}

.lbp-widget--urgent__title {
	margin: 0 0 0.75rem;
	padding-bottom: 0.65rem;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--lbp-ink);
	border-bottom: 1px solid var(--lbp-line);
	text-align: center;
}

.lbp-urgent-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem 0.55rem;
}

.lbp-urgent-grid__cell {
	min-width: 0;
	margin: 0;
}

.lbp-urgent-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 0;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lbp-urgent-card:hover {
	text-decoration: none;
	border-color: rgba(1, 66, 53, 0.22);
	box-shadow: var(--lbp-shadow);
}

.lbp-urgent-card:focus-visible {
	outline: 2px solid var(--lbp-green);
	outline-offset: 2px;
	text-decoration: none;
	border-color: rgba(1, 66, 53, 0.22);
	box-shadow: var(--lbp-shadow);
}

.lbp-urgent-card__thumb {
	position: relative;
	background: linear-gradient(140deg, #e5e2db 0%, #c9c4bb 100%);
	overflow: visible;
}

.lbp-urgent-card__img {
	width: 100%;
	height: auto !important;
	object-fit: contain;
	display: block;
}

.lbp-urgent-card__placeholder {
	position: absolute;
	inset: 0;
}

.lbp-urgent-card__badge {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	z-index: 1;
	padding: 0.2rem 0.38rem;
	min-width: 2.1rem;
	text-align: center;
	font-size: 0.55rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.15;
	color: #fff;
	background: #e8590c;
	border-radius: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.lbp-urgent-card__badge--blog {
	background: var(--lbp-green);
}

.lbp-urgent-card__meta {
	display: flex;
	align-items: center;
	gap: 0.28rem;
	padding: 0.35rem  0.15rem;
	font-size: 0.58rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--lbp-mute);
}

.lbp-urgent-card__meta-icon {
	flex-shrink: 0;
	display: flex;
	color: rgba(92, 92, 92, 0.75);
	opacity: 0.9;
}

.lbp-urgent-card__meta-text {
	min-width: 0;
	word-break: break-word;
}

.lbp-urgent-card__title {
	margin: 0;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.04em;
	color: var(--lbp-ink);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lbp-widget--urgent__cta {
	margin: 0.75rem 0 0;
	padding: 0;
	text-align: center;
}

.lbp-btn--urgent-more {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.52rem 0.75rem;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	color: #fff !important;
	background: #16a34a;
	border: 1px solid #15803d;
	border-radius: 0;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		opacity 0.15s ease;
}

.lbp-btn--urgent-more:hover,
.lbp-btn--urgent-more:focus-visible {
	background: #15803d;
	border-color: #166534;
	color: #fff !important;
	text-decoration: none;
	opacity: 0.98;
}

/* ── Blog sidebar widget ─────────────────────────────────────────── */
.lbp-widget--blogs {
	background: #fff;
	border: 1px solid var(--lbp-line);
	box-shadow: var(--lbp-shadow);
	padding: 1rem 0.85rem 1.05rem;
	text-align: left;
}

.lbp-widget--blogs__title {
	margin: 0 0 0.75rem;
	padding-bottom: 0.65rem;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--lbp-ink);
	border-bottom: 1px solid var(--lbp-line);
	text-align: center;
}

.lbp-blog-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem 0.55rem;
}

.lbp-blog-grid__cell {
	min-width: 0;
	margin: 0;
}

.lbp-blog-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 0;
	overflow: hidden;
	background: var(--lbp-surface);
}

.lbp-blog-card:hover {
	text-decoration: none;
}

.lbp-blog-card:focus-visible {
	outline: 2px solid var(--lbp-green);
	outline-offset: 2px;
	text-decoration: none;
}

.lbp-blog-card__thumb {
	position: relative;
	background: linear-gradient(140deg, #e5e2db 0%, #c9c4bb 100%);
	overflow: hidden;
}

.lbp-blog-card__img {
	width: 100%;
	height: auto !important;
	object-fit: cover;
	display: block;
	aspect-ratio: 4 / 3;
}

.lbp-blog-card__placeholder {
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--lbp-mute);
	opacity: 0.5;
}

.lbp-blog-card__badge {
	position: absolute;
	top: 0.35rem;
	right: 0.35rem;
	z-index: 1;
	padding: 0.2rem 0.38rem;
	font-size: 0.52rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.15;
	color: #fff;
	background: var(--lbp-green);
	border-radius: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 80%;
}

.lbp-blog-card__meta {
	display: flex;
	align-items: center;
	gap: 0.28rem;
	padding: 0.35rem 0.4rem 0.15rem;
	font-size: 0.58rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--lbp-mute);
}

.lbp-blog-card__meta-icon {
	flex-shrink: 0;
	display: flex;
	color: rgba(92, 92, 92, 0.75);
	opacity: 0.9;
}

.lbp-blog-card__meta-text {
	min-width: 0;
	word-break: break-word;
}

.lbp-blog-card__title {
	margin: 0;
	padding: 0 0.4rem 0.45rem;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--lbp-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lbp-widget--blogs__cta {
	margin: 0.75rem 0 0;
	padding: 0;
	text-align: center;
}

.lbp-btn--blogs-more {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.52rem 0.75rem;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	color: #fff !important;
	background: var(--lbp-green);
	border: 1px solid var(--lbp-green-dark);
	border-radius: 0;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		opacity 0.15s ease;
}

.lbp-btn--blogs-more:hover,
.lbp-btn--blogs-more:focus-visible {
	background: var(--lbp-green-dark);
	border-color: var(--lbp-green-2);
	color: #fff !important;
	text-decoration: none;
	opacity: 0.98;
}

.lbp-btn--line {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lbp-green);
	border: 1px solid var(--lbp-green);
	border-radius: 0;
	background: #fff;
}

.lbp-btn--line:hover,
.lbp-btn--line:focus-visible {
	background: var(--lbp-green);
	color: #fff;
	text-decoration: none;
}

.lbp-sr,
.lbp-footer .lbp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lbp-widget--highlight {
	background: linear-gradient(145deg, #f0e8ff 0%, #e8e4f4 100%);
	color: var(--lbp-ink);
	padding: 1.2rem 1.15rem 1.25rem;
	border: 1px solid #ddd8e8;
}

.lbp-widget--highlight__kicker {
	margin: 0 0 0.35rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #6a5a7a;
}

.lbp-widget--highlight__text {
	margin: 0 0 0.9rem;
	font-size: 0.85rem;
	line-height: 1.55;
	color: #3d3d3d;
}

.lbp-widget--highlight__a {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--lbp-cta-blue);
}

.lbp-widget--highlight__a:hover,
.lbp-widget--highlight__a:focus-visible {
	color: var(--lbp-green);
	text-decoration: none;
}

.lbp-widget--invest {
	position: relative;
	min-height: 220px;
	background: #1a1a1a
		var(--lbp-invest-bg, url())
		center / cover
		no-repeat;
	color: #fff;
}

.lbp-widget--invest__overlay {
	position: relative;
	z-index: 1;
	padding: 1.5rem 1.1rem 1.35rem;
	min-height: 220px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.78) 0%,
		rgba(0, 0, 0, 0.1) 55%,
		transparent 100%
	);
}

.lbp-widget--invest__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lbp-gold-bright);
}

.lbp-widget--invest__title {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.lbp-widget--invest__link {
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
}

.lbp-widget--invest__link:hover,
.lbp-widget--invest__link:focus-visible {
	color: var(--lbp-gold-bright);
	text-decoration: none;
}

.lbp-empty {
	background: #fff;
	border: 1px solid var(--lbp-line);
	border-radius: 0;
	padding: 2.5rem 1.5rem 2.25rem;
	text-align: center;
	color: var(--lbp-mute);
	box-shadow: var(--lbp-shadow);
}

.lbp-empty__icon {
	display: flex;
	justify-content: center;
	margin: 0 0 1rem;
	color: color-mix(in srgb, var(--lbp-cta-blue) 45%, var(--lbp-mute));
}

.lbp-empty__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	max-width: 28rem;
	margin-left: auto;
	margin-right: auto;
}

.lbp-pagination {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--lbp-line);
}

.lbp-pagination .page-numbers {
	display: inline-flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	align-items: center;
}

.lbp-pagination a,
.lbp-pagination span {
	padding: 0.45rem 0.7rem;
	min-width: 2.5rem;
	text-align: center;
	border-radius: 0;
	background: #fff;
	border: 1px solid var(--lbp-line);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--lbp-ink);
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}

.lbp-pagination a:hover,
.lbp-pagination a:focus-visible {
	background: color-mix(in srgb, var(--lbp-cta-blue) 8%, #fff);
	border-color: color-mix(in srgb, var(--lbp-cta-blue) 35%, var(--lbp-line));
	color: var(--lbp-cta-blue);
	text-decoration: none;
}

.lbp-pagination .current {
	background: var(--lbp-green);
	color: #fff;
	border-color: var(--lbp-green);
}

.lbp-pagination .dots,
.lbp-pagination .page-numbers .dots {
	border-color: transparent;
	background: transparent;
	min-width: auto;
	padding: 0.45rem 0.2rem;
	color: var(--lbp-mute);
}

.lbp-pagination .prev,
.lbp-pagination .next {
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* Footer */
.lbp-footer {
	margin-top: auto;
	background: #ebe9e2;
	border-top: 1px solid #d8d4ca;
	padding: 2.5rem 0 0;
}

.lbp-footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
	gap: 2rem 2.5rem;
	padding-bottom: 2rem;
}

.lbp-footer__h {
	margin: 0 0 0.85rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lbp-ink);
}

.lbp-footer__ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lbp-footer__ul li {
	margin-bottom: 0.4rem;
}

.lbp-footer__a {
	color: #555;
	font-size: 0.9rem;
	font-weight: 500;
}

.lbp-footer__a:hover,
.lbp-footer__a:focus-visible {
	color: var(--lbp-green);
	text-decoration: none;
}

.lbp-footer__tagline {
	margin: 0.6rem 0 0;
	font-size: 0.88rem;
	line-height: 1.5;
	color: #666;
	max-width: 20rem;
}

.lbp-footer__news-desc {
	margin: 0 0 0.9rem;
	font-size: 0.88rem;
	line-height: 1.5;
	color: #555;
}

.lbp-footer__hint {
	margin: 0.75rem 0 0;
	font-size: 0.75rem;
	color: #888;
	line-height: 1.4;
}

.lbp-footer__bar {
	border-top: 1px solid #d8d4ca;
	padding: 1rem 0 1.5rem;
}

.lbp-footer__copy {
	margin: 0;
	font-size: 0.8rem;
	color: #6a6a6a;
}

/* Single â€” property detail */
.lbp-single {
	padding: 0 0 3.5rem;
}

.lbp-breadcrumb {
	font-size: 0.8rem;
	color: var(--lbp-mute);
	margin: 0;
}

.lbp-breadcrumb a {
	color: var(--lbp-mute);
}

.lbp-breadcrumb a:hover,
.lbp-breadcrumb a:focus-visible {
	color: var(--lbp-green);
}

.lbp-breadcrumb__sep {
	margin: 0 0.35rem;
}

.lbp-breadcrumb__current {
	color: var(--lbp-ink);
	font-weight: 500;
}

.lbp-breadcrumb--single {
	align-self: start;
}

.lbp-single__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 1.25rem;
}

.lbp-single__back {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--lbp-cta-blue);
	white-space: nowrap;
}

.lbp-single__back:hover,
.lbp-single__back:focus-visible {
	color: var(--lbp-green);
	text-decoration: none;
}

.lbp-single__headline {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--lbp-line);
}

.lbp-single__headline-main {
	flex: 1;
	min-width: min(100%, 18rem);
}

.lbp-single__headline-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.5rem;
}

.lbp-single__type-pill {
	display: inline-block;
	margin: 0;
	padding: 0.25rem 0.6rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lbp-green);
	background: color-mix(in srgb, var(--lbp-green) 8%, white);
	border-radius: 0;
}

.lbp-single__mode-pill {
	display: inline-block;
	margin: 0;
	padding: 0.25rem 0.6rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lbp-gold);
	background: color-mix(in srgb, var(--lbp-gold) 14%, white);
	border-radius: 0;
}

.lbp-single__mode-pill--sell {
	color: var(--lbp-mute);
	background: color-mix(in srgb, var(--lbp-mute) 12%, white);
}

.lbp-single__by-pill {
	display: inline-block;
	margin: 0;
	padding: 0.25rem 0.6rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 0;
}

.lbp-single__by-pill--owner {
	color: var(--lbp-green-2);
	background: color-mix(in srgb, var(--lbp-green) 10%, white);
}

.lbp-single__by-pill--agent {
	color: var(--lbp-cta-blue);
	background: color-mix(in srgb, var(--lbp-cta-blue) 12%, white);
}

.lbp-single__urgent-pill {
	display: inline-block;
	margin: 0;
	padding: 0.25rem 0.65rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(135deg, #c62828 0%, #9a1e1e 100%);
	border-radius: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
	animation: lbp-badge-urgent-pulse 2.2s ease-in-out infinite;
}

.lbp-single__title {
	margin: 0 0 0.45rem;
	font-size: clamp(1.55rem, 3.4vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.2;
	color: var(--lbp-ink);
}

.lbp-single__loc {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	margin: 0;
	color: var(--lbp-mute);
	font-size: 0.95rem;
	line-height: 1.4;
}

.lbp-single__loc-ico {
	flex-shrink: 0;
	color: var(--lbp-cta-blue);
	margin-top: 0.1rem;
}

.lbp-single__headline-price {
	flex-shrink: 0;
}

.lbp-single__price-k {
	display: inline-block;
	padding: 0.55rem 0.9rem 0.5rem;
	font-size: clamp(1.1rem, 2.1vw, 1.4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	background: linear-gradient(135deg, var(--lbp-cta-blue) 0%, #134a5e 100%);
	border-radius: 0;
	box-shadow: 0 4px 14px rgba(26, 95, 122, 0.28);
}

.lbp-single__top-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem 1.75rem;
	align-items: start;
	margin-bottom: 2rem;
}

@media (min-width: 760px) {
	.lbp-single__top-row {
		grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
	}
}

.lbp-single__gallery-wrap {
	margin-bottom: 0;
}

.lbp-single__media {
	border-radius: 0;
	overflow: visible;
	margin-bottom: 0;
}

.lbp-single__media--hero {
	background: #e8e6e0;
	border: 1px solid var(--lbp-line);
	box-shadow: var(--lbp-shadow);
}

.lbp-single__media-frame {
	position: relative;
	width: 100%;
	background: #f0eeea;
	line-height: 0;
}

/* ── Prev / next photo arrows (plain icons on the image, vertically centered) ── */
.lbp-single__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	background: none;
	color: #fff;
	cursor: pointer;
	z-index: 2;
	line-height: 0;
	/* Drop shadow keeps the white arrow visible over light parts of the photo. */
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
	transition: opacity 0.2s, transform 0.15s;
	opacity: 0.9;
}

.lbp-single__nav:hover {
	opacity: 1;
}

.lbp-single__nav:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.lbp-single__nav--prev {
	left: 0.5rem;
}

.lbp-single__nav--next {
	right: 0.5rem;
}

.lbp-single__nav svg {
	width: 2rem;
	height: 2rem;
}

@media (min-width: 600px) {
	.lbp-single__nav svg {
		width: 2.5rem;
		height: 2.5rem;
	}
}

.lbp-single__img--hero {
	width: 100%;
	height: auto !important;
	object-fit: cover;
	display: block;
}

.lbp-single__thumbs {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.6rem;
	flex-wrap: wrap;
}

.lbp-single__thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 0;
	overflow: hidden;
	cursor: pointer;
	background: #ddd;
	line-height: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	transition:
		border-color 0.2s,
		box-shadow 0.2s,
		opacity 0.2s;
}

.lbp-single__thumb img {
	width: 5.5rem;
	height: 3.5rem;
	object-fit: cover;
}

@media (min-width: 600px) {
	.lbp-single__thumb img {
		width: 6.5rem;
		height: 4.25rem;
	}
}

.lbp-single__thumb:hover {
	border-color: color-mix(in srgb, var(--lbp-cta-blue) 45%, white);
}

.lbp-single__thumb.is-active {
	border-color: var(--lbp-cta-blue);
	box-shadow: 0 0 0 1px var(--lbp-cta-blue);
}

.lbp-single__thumb:focus-visible {
	outline: 2px solid var(--lbp-cta-blue);
	outline-offset: 2px;
}

.lbp-single__body {
	display: block;
	margin-bottom: 2rem;
}

.lbp-single__section-title {
	margin: 0 0 1rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lbp-mute);
}

.lbp-typ--single {
	font-size: 1.2rem;
	line-height: 1.25;
}

/* Higher specificity than the generic ".lbp-typ p" rule defined later in this
   file, so the tighter property-description spacing actually wins. */
.lbp-typ.lbp-typ--single p {
	margin: 0 0 0.2rem;
}

.lbp-typ--single ul,
.lbp-typ--single ol {
	margin: 0 0 0.2rem;
	padding-left: 1.4rem;
}

.lbp-typ--single li {
	margin-bottom: 0.1rem;
}

.lbp-typ--single p:last-child {
	margin-bottom: 0;
}

.lbp-typ--single h2,
.lbp-typ--single h3 {
	color: var(--lbp-ink);
	margin: 1.5rem 0 0.5rem;
}

.lbp-typ--single h2:first-child,
.lbp-typ--single h3:first-child {
	margin-top: 0;
}

.lbp-single__no-desc {
	color: var(--lbp-mute);
	font-style: italic;
}

.lbp-single__card {
	background: #fff;
	border: 1px solid var(--lbp-line);
	border-radius: 0;
	padding: 1.35rem 1.4rem 1.25rem;
	box-shadow: var(--lbp-shadow);
	position: relative;
}

.lbp-single__card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 0;
	background: linear-gradient(90deg, var(--lbp-gold) 0%, var(--lbp-gold-bright) 100%);
}

.lbp-single__card-h {
	margin: 0.25rem 0 1rem;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--lbp-ink);
}

.lbp-single__facts {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.lbp-single__fact {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.1rem 0.75rem;
	padding: 0.7rem 0;
	border-top: 1px solid var(--lbp-line);
}

.lbp-single__fact:first-of-type {
	border-top: none;
	padding-top: 0;
}

.lbp-single__fact dt {
	margin: 0;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--lbp-mute);
}

.lbp-single__fact dd {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--lbp-ink);
	line-height: 1.4;
}

.lbp-single__fact--price dd {
	color: var(--lbp-cta-blue);
	font-size: 1.05rem;
}

.lbp-single__fact--agent dd {
	font-weight: 500;
}

.lbp-single__fact-loc {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--lbp-mute);
}

.lbp-single__fact-loc svg {
	flex-shrink: 0;
	color: var(--lbp-cta-blue);
}

.lbp-the-end {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 2.5rem 0 1rem;
}

.lbp-the-end__line {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--lbp-gold), transparent);
}

.lbp-the-end__text {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--lbp-gold);
	white-space: nowrap;
	opacity: 0.75;
}

.lbp-single__share {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--lbp-line);
}

.lbp-single__share-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lbp-mute);
	margin-bottom: 0.6rem;
}

.lbp-single__share-btns {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.lbp-single__share-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.85rem;
	font-size: 0.8rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s ease;
	font-family: inherit;
}

.lbp-single__share-btn:hover {
	opacity: 0.85;
	text-decoration: none;
}

.lbp-single__share-btn--wa {
	background: #25d366;
	color: #fff;
}

.lbp-single__share-btn--fb {
	background: #1877f2;
	color: #fff;
}

.lbp-single__share-btn--ig {
	background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
	color: #fff;
}

.lbp-single__more {
	display: block;
	margin-top: 1.1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--lbp-line);
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--lbp-cta-blue);
}

.lbp-single__more:hover,
.lbp-single__more:focus-visible {
	color: var(--lbp-green);
	text-decoration: none;
}

.lbp-single__more-arrow {
	margin-left: 0.1rem;
}

/* Related listings below single detail */
.lbp-single__recommended {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--lbp-line);
}

.lbp-single__recommended-h {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--lbp-ink);
}

.lbp-single__recommended-intro {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: 1.25rem;
}

.lbp-single__recommended-intro .lbp-single__recommended-sub {
	margin-bottom: 0;
	flex: 1 1 14rem;
}

.lbp-single__recommended-browse {
	flex-shrink: 0;
	align-self: center;
}

.lbp-single__recommended-sub {
	margin: 0 0 1.25rem;
	font-size: 0.88rem;
	color: var(--lbp-mute);
	line-height: 1.45;
	max-width: 42rem;
}

.lbp-single__recommended-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem 1.25rem;
	margin-top: 0;
}

@media (max-width: 1024px) {
	.lbp-single__recommended-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.lbp-single__recommended-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.65rem;
	}
}

/* =====================================================================
   Recommended card — dedicated template (property-card-rec.php)
   ===================================================================== */

/* ── Recommended card — matches main listing card style ───────────── */
.lbp-rec-card {
	background: #fff;
	border: none;
	box-shadow: none;
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lbp-rec-card:hover {
	transform: translateY(-2px);
}

.lbp-rec-card__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
	text-decoration: none;
}

.lbp-rec-card__link:hover,
.lbp-rec-card__link:focus-visible {
	text-decoration: none;
	color: inherit;
}

/* Image — same proportions as main card */
.lbp-rec-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: linear-gradient(160deg, #e8e6e0 0%, #d5d0c6 100%);
	overflow: visible;
	flex-shrink: 0;
}

.lbp-rec-card__img {
	width: 100%;
	height: auto !important;
	object-fit: contain;
	display: block;
}

.lbp-rec-card__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(140deg, #e5e2db 0%, #c9c4bb 100%);
}

/* Body */
.lbp-rec-card__body {
	display: flex;
	flex-direction: column;
	padding: 0.55rem 0.7rem 0.65rem;
	gap: 0.2rem;
}

/* Byline row: heart icon + agent name */
.lbp-rec-card__byline {
	display: flex;
	align-items: center;
	gap: 0.28rem;
	margin: 0;
	font-size: 0.72rem;
	color: var(--lbp-mute);
	line-height: 1.3;
}

.lbp-rec-card__heart {
	flex-shrink: 0;
	color: var(--lbp-mute);
	opacity: 0.7;
}

.lbp-rec-card__byline-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Title */
.lbp-rec-card__title {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--lbp-ink);
	line-height: 1.4;
	transition: color 0.18s ease;
}

.lbp-rec-card:hover .lbp-rec-card__title {
	color: var(--lbp-green);
}

/* Location */
.lbp-rec-card__loc {
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 0.25rem;
	font-size: 0.72rem;
	color: var(--lbp-green);
	font-weight: 500;
	min-width: 0;
}

/* Price */
.lbp-rec-card__price {
	margin: 0.1rem 0 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--lbp-ink);
	letter-spacing: -0.01em;
}

.lbp-typ p {
	margin: 0 0 1rem;
}

.lbp-typ h2,
.lbp-typ h3 {
	color: var(--lbp-ink);
	margin: 1.5rem 0 0.5rem;
}

.lbp-typ p {
	margin: 0 0 1rem;
}

.lbp-typ h2,
.lbp-typ h3 {
	color: var(--lbp-ink);
	margin: 1.5rem 0 0.5rem;
}

.lbp-page {
	padding: 1rem 0 3rem;
}

.lbp-page__title {
	margin: 0 0 1.25rem;
}

.lbp-page--blog {
	padding: 1.5rem 0 3rem;
}

.lbp-post-excerpt {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--lbp-line);
}

.lbp-post-excerpt__title {
	margin: 0 0 0.4rem;
	font-size: 1.2rem;
}

.lbp-app {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

.lbp-app .lbp-main {
	flex: 1;
}

/* Responsive */
@media (max-width: 1100px) {
	.lbp-layout {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"left right"
			"content content";
	}
	.lbp-layout__content {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	/* Add breathing room on all sides for mobile */
	.lbp-container {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

@media (max-width: 720px) {
	.lbp-layout {
		grid-template-columns: 1fr;
		grid-template-areas: "content" "right";
	}
	/* Left aside becomes a slide-in drawer from the right on mobile */
	.lbp-layout__aside--left {
		position: fixed;
		top: 0;
		right: -300px;
		left: auto;
		width: 280px;
		max-width: 85vw;
		height: 100vh;
		background: #fff;
		z-index: 600;
		overflow-y: auto;
		transition: right 0.28s ease;
		box-shadow: -4px 0 24px rgba(1, 35, 25, 0.18);
		align-self: auto;
		padding-bottom: 2rem;
	}
	.lbp-layout__aside--left.is-open {
		right: 0;
	}
	/* Prevent body scroll when drawer is open */
	body.lbp-filter-open {
		overflow: hidden;
	}
	/* Push filter button behind the open panel */
	body.lbp-filter-open .lbp-filter-mobile-btn {
		z-index: 500;
	}
	.lbp-card__rowlink {
		flex-direction: column;
		min-height: 0;
	}
	.lbp-card--row .lbp-card__media {
		flex: 0 0 auto;
		max-width: none;
		width: 100%;
		min-height: 12.5rem;
	}
	.lbp-catbar__inner {
		justify-content: center;
	}
	.lbp-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
	.lbp-footer__col--brand {
		grid-column: 1 / -1;
	}
}

/* ── Property cards: compact thumb row on phones + tablets (≤768px) ──────────
   IMPORTANT: this block is placed AFTER the 720px block so that
   flex-direction: row wins the cascade over flex-direction: column at ≤720px.
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	/* Remove the fixed desktop height so content can size the card */
	.lbp-card--row {
		height: auto;
		max-height: none;
		overflow: visible;
	}

	/* Stay horizontal — overrides the 720px flex-direction: column rule */
	.lbp-card--row .lbp-card__rowlink {
		flex-direction: row;
		align-items: stretch;
		min-height: 90px;
	}

	/* Thumbnail: square 92×92px */
	.lbp-card--row .lbp-card__media {
		flex: 0 0 92px;
		width: 92px;
		height: 92px;
		min-height: 92px;
		align-self: flex-start;
	}
	/* Show full image without cropping on mobile */
	.lbp-card--row .lbp-card__img {
		object-fit: contain;
		object-position: center;
	}

	/* Type badge → full-width bottom strip on thumbnail */
	.lbp-card--row .lbp-badge--cat {
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		text-align: center;
		font-size: 0.45rem;
		padding: 3px 0;
		background: rgba(1, 66, 53, 0.88);
	}

	/* Urgent badge → top-left (type badge vacated that corner) */
	.lbp-card--row .lbp-badge--urgent {
		left: 0.35rem;
		right: auto;
		top: 0.35rem;
		font-size: 0.42rem;
		padding: 2px 5px;
	}

	/* Content column — title full width; date + badge on the right */
	.lbp-card--row .lbp-card__main {
		position: relative;
		padding: 8px 10px;
		gap: 2px;
		justify-content: flex-start;
	}

	/* Let the dateline's children (date + mode badge) place independently */
	.lbp-card--row .lbp-card__dateline {
		display: contents;
	}
	.lbp-card--row .lbp-card__dateline > svg {
		display: none;
	}
	/* Date → right side, directly ABOVE the badge */
	.lbp-card--row .lbp-card__dateline time {
		position: absolute;
		right: 10px;
		bottom: 28px;
		font-size: 0.58rem;
		color: #8a8a8a;
		white-space: nowrap;
	}
	/* FOR SALE / FOR RENT badge → bottom-right, below the date */
	.lbp-card--row .lbp-card__dateline .lbp-card__footer-meta {
		position: absolute;
		bottom: 8px;
		right: 10px;
		margin: 0;
	}

	/* Title — first, single line */
	.lbp-card--row .lbp-card__title {
		order: 1;
		font-size: 0.82rem;
		line-height: 1.2;
		margin: 0;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* Agent byline — second */
	.lbp-card--row .lbp-card__byline {
		order: 2;
		font-size: 0.62rem;
		margin: 1px 0 0;
	}

	/* Price — third, leave room for the date on its right */
	.lbp-card--row .lbp-card__footer-price {
		order: 3;
		font-size: 0.9rem;
		margin: 3px 0 0;
		padding-right: 72px;
	}

	/* Location — last, leave room for the badge on its right */
	.lbp-card--row .lbp-card__loc {
		order: 4;
		margin: 2px 0 0;
		font-size: 0.68rem;
		padding-right: 64px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* Hide READ MORE + views + share footer */
	.lbp-card--row .lbp-card__footer {
		display: none;
	}
}

@media (max-width: 600px) {
	/* ── Header row: logo left + search toggle right ── */
	.lbp-header__row {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		padding: 0.65rem 1rem 0.75rem;
		gap: 0.6rem;
	}
	.lbp-header__logo {
		display: flex;
		justify-content: flex-start;
		flex: 1;
		width: auto;
	}
	.lbp-logo__wordmark {
		font-size: 1.5rem;
		text-align: left;
	}
	.lbp-search-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		background: none;
		border: none;
		cursor: pointer;
		color: #004938;
		padding: 0.3rem;
		border-radius: 0.35rem;
	}
	.lbp-search-toggle:hover {
		color: #e5b45c;
	}
	.lbp-filter-mobile-btn {
		position: fixed;
		bottom: 1.5rem;
		right: 1.25rem;
		left: auto;
		transform: none;
		z-index: 800;
		display: inline-flex;
		align-items: center;
		gap: 0.45rem;
		padding: 0.6rem 1.4rem 0.6rem 1.1rem;
		background: #166534;
		color: #fff;
		font-size: 0.9rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		border: none;
		border-radius: 50px;
		box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
		cursor: pointer;
		white-space: nowrap;
		font-family: var(--lbp-font);
		transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	}
	.lbp-filter-mobile-btn:hover,
	.lbp-filter-mobile-btn:focus-visible {
		background: #15803d;
		box-shadow: 0 5px 18px rgba(0, 0, 0, 0.32);
		transform: translateY(-2px);
	}
	.lbp-filter-mobile-btn svg {
		width: 18px;
		height: 18px;
		flex-shrink: 0;
	}
	.lbp-header__search {
		display: none;
		width: 100%;
		flex: 0 0 100%;
		order: 10;
	}
	.lbp-header__search.is-open {
		display: block;
	}
	.lbp-header-social {
		justify-content: center;
		width: 100%;
		flex: 0 0 auto;
	}

	/* ── Search button ── */
	.lbp-search__btn {
		padding: 0 0.8rem;
	}

	/* ── Cards ── */
	.lbp-card__footer {
		flex-direction: column;
		align-items: flex-start;
	}
	.lbp-card__footer-meta {
		margin-left: 0;
	}

	/* ── Category bar: smaller text on mobile ── */
	.lbp-catbar__link {
		font-size: 0.85rem;
		padding: 0.35rem 0.4rem;
		letter-spacing: 0.06em;
	}
	.lbp-catbar__inner {
		gap: 0.15rem 0.25rem;
		padding: 0.55rem 0.5rem;
	}

	/* ── Single property sidebar collapses below content ── */
	.lbp-single__headline {
		flex-direction: column;
		align-items: stretch;
	}
	.lbp-single__headline-price {
		align-self: flex-start;
	}
}

@media (max-width: 480px) {
	/* ── Footer ── */
	.lbp-footer__grid {
		grid-template-columns: 1fr;
	}

	/* ── Header top links bar: hide nav links, keep Chat/Login/Post Ad ── */
	.lbp-breadcrumb-nav {
		display: none;
	}
	.lbp-header__links-inner {
		justify-content: flex-end;
	}
	/* Hide desktop social icons on mobile */
	.lbp-header__row .lbp-header-social {
		display: none;
	}
	/* Show mobile social icons left of actions */
	.lbp-header-social-mobile {
		display: flex;
		align-items: center;
	}
	.lbp-header-social-mobile .lbp-header-social {
		gap: 0.25rem;
	}
	.lbp-header-social-mobile .lbp-header-social__hit {
		width: 1.6rem;
		height: 1.6rem;
	}
	.lbp-header-social-mobile .lbp-header-social__svg {
		width: 0.95rem;
		height: 0.95rem;
	}
	.lbp-header__links-inner {
		justify-content: space-between;
	}

	/* ── Main layout padding ── */
	.lbp-main {
		padding: 1.25rem 0 2.5rem;
	}

	/* ── Pagination: wrap nicely ── */
	.lbp-pagination .page-numbers {
		justify-content: center;
	}
}

/* =====================================================================
   Blog archive — card grid (archive-lbp_blog.php)
   ===================================================================== */

.lbp-blog-archive {
	padding-bottom: 3rem;
}

.lbp-blog-archive-header {
	padding-top: 2rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--lbp-line);
	margin-bottom: 2rem;
}

.lbp-blog-archive-title {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--lbp-ink);
}

/* Grid */
.lbp-blog-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

/* Card */
.lbp-blog-card {
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease;
}

.lbp-blog-card:hover {
	transform: translateY(-2px);
}

.lbp-blog-card-link {
	display: flex;
	flex-direction: column;
	flex: 1;
	text-decoration: none;
	color: inherit;
}

.lbp-blog-card-link:hover {
	text-decoration: none;
}

/* Thumbnail */
.lbp-blog-card-img-wrap {
	position: relative;
	overflow: hidden;
	background: linear-gradient(140deg, #e5e2db 0%, #c9c4bb 100%);
	/* Fixed shape so every blog card is the same height (not image-dependent). */
	aspect-ratio: 4 / 3;
}

.lbp-blog-card-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.lbp-blog-card:hover .lbp-blog-card-img {
	transform: scale(1.04);
}

.lbp-blog-card-img-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--lbp-mute);
}

/* Read time badge */
.lbp-blog-card-read-badge {
	position: absolute;
	bottom: 0.5rem;
	left: 0.5rem;
	padding: 0.2rem 0.5rem;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(1, 66, 53, 0.82);
	backdrop-filter: blur(4px);
	line-height: 1.4;
}

/* Body */
.lbp-blog-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1rem 1.1rem 1.1rem;
	border-top: 3px solid var(--lbp-green);
}

/* Date row */
.lbp-blog-card-meta-row {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	margin-bottom: 0.55rem;
	color: var(--lbp-mute);
}

.lbp-blog-card-meta-icon {
	flex-shrink: 0;
	display: flex;
	opacity: 0.7;
}

.lbp-blog-card-date {
	font-size: 0.7rem;
	font-weight: 500;
	color: var(--lbp-mute);
}

/* Title */
.lbp-blog-card-title {
	margin: 0 0 0.55rem;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: var(--lbp-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.15s ease;
}

.lbp-blog-card:hover .lbp-blog-card-title {
	color: var(--lbp-green);
}

/* Excerpt */
.lbp-blog-card-excerpt {
	margin: 0 0 0.85rem;
	font-size: 0.8rem;
	line-height: 1.6;
	color: var(--lbp-mute);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

/* Read more */
.lbp-blog-card-readmore {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin-top: auto;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--lbp-green);
	transition: gap 0.18s ease, color 0.15s ease;
}

.lbp-blog-card:hover .lbp-blog-card-readmore {
	gap: 0.5rem;
	color: var(--lbp-green-dark);
}

/* Pagination */
.lbp-blog-pagination {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--lbp-line);
}

/* Responsive */
@media (max-width: 960px) {
	.lbp-blog-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.lbp-blog-cards {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}
	.lbp-blog-archive-title {
		font-size: 1.4rem;
	}
	.lbp-blog-card-body {
		padding: 0.6rem 0.85rem 0.75rem;
	}
}

/* =====================================================================
   Home page — blog section (magazine / editorial card style)
   ===================================================================== */

.lbp-home-blog {
	background: #fff;
	padding: 3.5rem 0 3rem;
}

.lbp-home-blog__header {
	text-align: center;
	margin-bottom: 2.25rem;
}

.lbp-home-blog__heading-link {
	display: inline-block;
	text-decoration: none;
	color: inherit;
}

.lbp-home-blog__heading-link:hover,
.lbp-home-blog__heading-link:focus-visible {
	text-decoration: none;
	color: inherit;
	opacity: 0.82;
}

.lbp-home-blog__heading {
	margin: 0;
	font-size: clamp(1.5rem, 3.2vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--lbp-ink);
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.lbp-home-blog__arrow {
	font-weight: 400;
	font-size: 0.9em;
	transition: transform 0.18s ease;
}

.lbp-home-blog__heading-link:hover .lbp-home-blog__arrow {
	transform: translateX(4px);
}

/* Four-column grid */
.lbp-home-blog__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem 2.25rem;
}

/* Individual card — no borders, editorial style */
.lbp-hb-card {
	display: flex;
	flex-direction: column;
}

.lbp-hb-card__img-link {
	display: block;
	overflow: hidden;
	text-decoration: none;
}

.lbp-hb-card__media {
	background: linear-gradient(140deg, #e5e2db 0%, #c9c4bb 100%);
	overflow: hidden;
	/* Fixed shape so every blog card is the same height (not image-dependent). */
	aspect-ratio: 4 / 3;
}

.lbp-hb-card__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.38s ease;
}

.lbp-hb-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lbp-hb-card:hover .lbp-hb-card__img {
	transform: scale(1.04);
}

.lbp-hb-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--lbp-mute);
}

/* Body */
.lbp-hb-card__body {
	padding: 0.85rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

/* Category kicker */
.lbp-hb-card__cat {
	margin: 0;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lbp-mute);
}

/* Title */
.lbp-hb-card__title {
	margin: 0 0 0.4rem;
	font-size: 1.25rem;
	font-weight: 700;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.38;
	letter-spacing: -0.015em;
	color: var(--lbp-ink);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lbp-hb-card__title-link {
	color: inherit;
	text-decoration: none;
}

.lbp-hb-card__title-link:hover,
.lbp-hb-card__title-link:focus-visible {
	text-decoration: underline;
	color: var(--lbp-green);
}

/* Author */
.lbp-hb-card__author {
	margin: 0.1rem 0 0;
	font-size: 0.8rem;
	color: var(--lbp-mute);
}

.lbp-hb-card__author-name {
	color: var(--lbp-green);
	font-weight: 500;
}

/* Date + author meta row */
.lbp-hb-card__meta-row {
	margin: 0;
	font-size: 0.78rem;
	color: var(--lbp-mute);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.lbp-hb-card__meta-sep {
	opacity: 0.5;
}

.lbp-hb-card__meta-row strong {
	color: var(--lbp-green);
	font-weight: 600;
}

/* Footer "View all" link */
.lbp-home-blog__footer {
	margin-top: 2rem;
	text-align: center;
}

.lbp-home-blog__view-all {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lbp-green);
	text-decoration: none;
	border-bottom: 1px solid var(--lbp-green);
	padding-bottom: 0.1rem;
	transition: gap 0.18s ease, opacity 0.15s ease;
}

.lbp-home-blog__view-all:hover,
.lbp-home-blog__view-all:focus-visible {
	gap: 0.6rem;
	opacity: 0.82;
	text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
	.lbp-home-blog__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
}

@media (max-width: 560px) {
	.lbp-home-blog {
		padding: 2.5rem 0 2.25rem;
	}
	.lbp-home-blog__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem;
	}
	.lbp-home-blog__header {
		margin-bottom: 1.5rem;
	}
	.lbp-hb-card__body {
		padding: 0.5rem 0 0;
	}
	.lbp-hb-card__title {
		font-size: 0.82rem;
		line-height: 1.3;
		letter-spacing: -0.01em;
	}
	.lbp-hb-card__meta-row {
		font-size: 0.65rem;
	}
	.lbp-hb-card__cat {
		font-size: 0.58rem;
	}
}

/* =====================================================================
   Blog detail page  (single-lbp_blog.php)
   ===================================================================== */

.lbp-bd-page {
	padding: 2rem 0 3.5rem;
}

/* Two-column wrapper: main + sidebar */
.lbp-bd-wrap {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2.5rem;
	align-items: start;
}

/* ── Main column ── */
.lbp-bd-main {
	min-width: 0;
}

.lbp-bd-title {
	margin: 0 0 1.25rem;
	font-size: clamp(1.5rem, 3.5vw, 2.1rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.025em;
	color: var(--lbp-ink);
	width: 100%;
}

/* Hero image */
.lbp-bd-hero {
	margin-bottom: 1.25rem;
	overflow: hidden;
	border-radius: 8px;
	background: #f0eeea;
}

.lbp-bd-hero-img {
	display: block;
	width: 100% !important;
	height: auto !important;
	border-radius: 8px;
}

/* Meta row: By Admin • Date • Category */
.lbp-bd-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.5rem;
	margin-bottom: 1.75rem;
	font-size: 0.88rem;
	color: var(--lbp-mute);
}

.lbp-bd-meta__by strong {
	font-weight: 600;
	color: var(--lbp-ink);
}

.lbp-bd-meta__sep {
	color: #bbb;
	font-size: 0.75rem;
}

.lbp-bd-meta__date {
	color: var(--lbp-mute);
}

.lbp-bd-meta__cat {
	display: inline-block;
	padding: 0.2rem 0.75rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--lbp-ink);
	background: #f0f0f0;
	border-radius: 20px;
}

/* Share button — sits at the far right of the meta row */
.lbp-bd-share {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-left: auto;
	padding: 0.35rem 0.85rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--lbp-ink);
	background: #f0f0f0;
	border: 1px solid var(--lbp-line);
	/* !important beats the global `border-radius:0!important` reset in critical.css */
	border-radius: 20px !important;
	cursor: pointer;
	line-height: 1;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lbp-bd-share svg {
	flex-shrink: 0;
}

.lbp-bd-share:hover,
.lbp-bd-share.is-copied {
	background: #014235;
	border-color: #014235;
	color: #fff;
}

.lbp-bd-share:focus-visible {
	outline: 2px solid #014235;
	outline-offset: 2px;
}

/* Content body */
.lbp-bd-content {
	font-size: 1rem;
	line-height: 1.55;
	color: var(--lbp-text);
}

.lbp-bd-content p {
	margin: 0 0 0.55rem;
}

.lbp-bd-content h2,
.lbp-bd-content h3 {
	margin: 1.75rem 0 0.6rem;
	color: var(--lbp-ink);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.lbp-bd-content ul,
.lbp-bd-content ol {
	margin: 0 0 0.55rem;
	padding-left: 1.5rem;
}

.lbp-bd-content li {
	margin-bottom: 0.25rem;
}

/* ── Sidebar ── */
.lbp-bd-sidebar {
	position: sticky;
	top: 5rem;
}

.lbp-bd-related {
	background: #fff;
	border: 1px solid var(--lbp-line);
	padding: 1.25rem 1.2rem 1rem;
	border-radius: 6px;
	box-shadow: var(--lbp-shadow);
}

.lbp-bd-related__title {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--lbp-ink);
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--lbp-line);
}

.lbp-bd-related__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.lbp-bd-related__item {
	border-bottom: 1px solid var(--lbp-line);
}

.lbp-bd-related__item:last-child {
	border-bottom: none;
}

.lbp-bd-related__link {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 0.8rem 0;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.15s ease;
}

.lbp-bd-related__link:hover,
.lbp-bd-related__link:focus-visible {
	opacity: 0.8;
	text-decoration: none;
}

.lbp-bd-related__thumb {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 4px;
	background: linear-gradient(140deg, #e5e2db, #c9c4bb);
}

.lbp-bd-related__img {
	width: 64px !important;
	height: 64px !important;
	object-fit: cover;
	display: block;
	border-radius: 4px;
}

.lbp-bd-related__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(140deg, #e5e2db, #c9c4bb);
}

.lbp-bd-related__info {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.lbp-bd-related__post-title {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--lbp-ink);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.15s ease;
}

.lbp-bd-related__link:hover .lbp-bd-related__post-title {
	color: var(--lbp-green);
}

.lbp-bd-related__date {
	font-size: 0.75rem;
	color: var(--lbp-mute);
}

/* ── Responsive ── */
@media (max-width: 900px) {
	.lbp-bd-wrap {
		grid-template-columns: 1fr;
	}
	.lbp-bd-sidebar {
		position: static;
	}
}

@media (max-width: 560px) {
	.lbp-bd-page {
		padding: 1.5rem 0 2.5rem;
	}
	.lbp-bd-title {
		font-size: 1.5rem;
	}
	.lbp-bd-hero {
		border-radius: 6px;
	}
}

/* =====================================================================
   Mobile filter drawer components
   ===================================================================== */

/* Overlay backdrop */
.lbp-filter-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 599;
	cursor: pointer;
}
.lbp-filter-overlay.is-open {
	display: block;
}

/* Drawer header: title + close button */
.lbp-filter-drawer-header {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.1rem 0.85rem;
	border-bottom: 1px solid var(--lbp-line);
	background: var(--lbp-green);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 100;
}
.lbp-filter-drawer-header__title {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.lbp-filter-drawer-close {
	background: none;
	border: none;
	cursor: pointer;
	color: #fff;
	padding: 0.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.85;
}
.lbp-filter-drawer-close:hover {
	opacity: 1;
}

/* Mobile topbar: filter button + social icons side by side */
.lbp-mobile-topbar {
	display: none;
}

/* Filter toggle button */
.lbp-filter-mobile-btn {
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1.1rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: #16a34a;
	border: none;
	cursor: pointer;
	font-family: var(--lbp-font);
	transition: background 0.15s ease;
}
.lbp-filter-mobile-btn:hover {
	background: #15803d;
}

/* Show drawer header + topbar only on mobile */
@media (max-width: 720px) {
	.lbp-filter-drawer-header {
		display: flex;
	}
	.lbp-mobile-topbar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 1rem;
		gap: 1rem;
	}
	.lbp-layout__aside--left .lbp-sidebar-stack {
		padding: 1rem 0.9rem;
		position: static;
		top: 0;
	}
}

/* =====================================================================
   Smooth loading — shimmer, image fade-in, scroll reveal
   ===================================================================== */

/* ── Shimmer skeleton — GPU-composited (transform only, no background-position repaint) ── */
@keyframes lbp-shimmer {
	0%   { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

.lbp-card__media,
.lbp-rec-card__media,
.lbp-blog-card-img-wrap,
.lbp-hb-card__media,
.lbp-single__hero-img-wrap,
.lbp-bd-hero,
.lbp-bd-related__thumb,
.lbp-single__media-frame,
.lbp-single__thumb {
	background: #ebebeb;
	position: relative;
	overflow: hidden;
}

.lbp-card__media::after,
.lbp-rec-card__media::after,
.lbp-blog-card-img-wrap::after,
.lbp-hb-card__media::after,
.lbp-single__hero-img-wrap::after,
.lbp-bd-hero::after,
.lbp-bd-related__thumb::after,
.lbp-single__media-frame::after,
.lbp-single__thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
	transform: translateX(-100%);
	/* 4 iterations ≈ 5.6 s — hard cap so animation never runs at true idle */
	animation: lbp-shimmer 1.4s 4 linear;
	will-change: transform;
	pointer-events: none;
}

/* Stop shimmer once JS adds .is-loaded to the wrapper */
.lbp-card__media.is-loaded,
.lbp-rec-card__media.is-loaded,
.lbp-blog-card-img-wrap.is-loaded,
.lbp-hb-card__media.is-loaded,
.lbp-single__media-frame.is-loaded,
.lbp-single__thumb.is-loaded,
.lbp-bd-hero.is-loaded,
.lbp-bd-related__thumb.is-loaded {
	background: transparent;
}

.lbp-card__media.is-loaded::after,
.lbp-rec-card__media.is-loaded::after,
.lbp-blog-card-img-wrap.is-loaded::after,
.lbp-hb-card__media.is-loaded::after,
.lbp-single__media-frame.is-loaded::after,
.lbp-single__thumb.is-loaded::after,
.lbp-bd-hero.is-loaded::after,
.lbp-bd-related__thumb.is-loaded::after,
/* Kill-switch: JS adds lbp-page-loaded to <html> on window.load */
.lbp-page-loaded .lbp-card__media::after,
.lbp-page-loaded .lbp-rec-card__media::after,
.lbp-page-loaded .lbp-blog-card-img-wrap::after,
.lbp-page-loaded .lbp-hb-card__media::after,
.lbp-page-loaded .lbp-single__media-frame::after,
.lbp-page-loaded .lbp-single__thumb::after,
.lbp-page-loaded .lbp-bd-hero::after,
.lbp-page-loaded .lbp-bd-related__thumb::after {
	display: none;
	animation: none;
	will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
	.lbp-card__media::after,
	.lbp-rec-card__media::after,
	.lbp-blog-card-img-wrap::after,
	.lbp-hb-card__media::after,
	.lbp-single__media-frame::after,
	.lbp-single__thumb::after,
	.lbp-bd-hero::after,
	.lbp-bd-related__thumb::after {
		animation: none;
	}
}

/* ── Images start invisible, fade in on load ── */
.lbp-card__img,
.lbp-card--grid .lbp-card__img,
.lbp-rec-card__img,
.lbp-blog-card-img,
.lbp-hb-card__img,
.lbp-single__img--hero,
.lbp-single__thumb img,
.lbp-bd-hero-img,
.lbp-bd-related__img {
	opacity: 0;
	transition: opacity 0.5s ease;
}

.lbp-card__img.is-loaded,
.lbp-card--grid .lbp-card__img.is-loaded,
.lbp-rec-card__img.is-loaded,
.lbp-blog-card-img.is-loaded,
.lbp-hb-card__img.is-loaded,
.lbp-single__img--hero.is-loaded,
.lbp-single__thumb img.is-loaded,
.lbp-bd-hero-img.is-loaded,
.lbp-bd-related__img.is-loaded {
	opacity: 1;
}

/* ── Scroll reveal for cards ── */
.lbp-card--row,
.lbp-card--grid,
.lbp-rec-card,
.lbp-blog-card,
.lbp-home-blog__item {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.lbp-card--row.is-visible,
.lbp-card--grid.is-visible,
.lbp-rec-card.is-visible,
.lbp-blog-card.is-visible,
.lbp-home-blog__item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* =====================================================================
   Blog detail gallery — full cover + tile row for extra photos
   ===================================================================== */
.lbp-bd-gallery {
	margin-bottom: 1.5rem;
}

.lbp-bd-gallery__item {
	margin: 0;
}

.lbp-bd-gallery__link {
	display: block;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #f0eeea;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

/* Shimmer skeleton while the image is still loading. */
.lbp-bd-gallery__link::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
	transform: translateX(-100%);
	animation: lbp-shimmer 1.4s 4 linear;
	pointer-events: none;
}

/* Stop the shimmer once the image (or the whole page) has loaded. */
.lbp-bd-gallery__link.is-loaded::after,
.lbp-page-loaded .lbp-bd-gallery__link::after {
	display: none;
	animation: none;
}

.lbp-bd-gallery__img {
	display: block;
	width: 100%;
	opacity: 0;
	transition: opacity 0.45s ease;
}

/* Smoothly fade the image in when ready; page-loaded is a safety backstop. */
.lbp-bd-gallery__img.is-loaded,
.lbp-page-loaded .lbp-bd-gallery__img {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.lbp-bd-gallery__link::after {
		animation: none;
	}
	.lbp-bd-gallery__img {
		transition: none;
	}
}

/* Main cover image — full, uncropped (height follows the image). */
.lbp-bd-gallery__main {
	margin-bottom: 0;
}

.lbp-bd-gallery__main .lbp-bd-gallery__img {
	height: auto;
}

/* Extra photos — injected into the middle of the article body. */
.lbp-bd-inline-gallery {
	display: grid;
	gap: 14px;
	margin: 1.6rem 0;
	grid-template-columns: 1fr 1fr;
}

.lbp-bd-inline-gallery--1 {
	grid-template-columns: 1fr;
}

@media (max-width: 600px) {
	.lbp-bd-inline-gallery--2 {
		grid-template-columns: 1fr 1fr;
	}
}

.lbp-bd-gallery__tile .lbp-bd-gallery__link {
	aspect-ratio: 4 / 3;
}

.lbp-bd-gallery__tile .lbp-bd-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
