/* Leadrat Listings – front-end styles */
:root {
	--lr-primary: #0f766e;
	--lr-text: #1f2937;
	--lr-muted: #6b7280;
	--lr-border: #e5e7eb;
	--lr-bg: #ffffff;
	--lr-bg-soft: #f8fafc;
	--lr-radius: 14px;
	--lr-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .06);
	--lr-shadow-hover: 0 12px 32px rgba(16, 24, 40, .14);
}

.lr-listings, .lr-single { color: var(--lr-text); font-size: 15px; line-height: 1.5; box-sizing: border-box; }
.lr-listings *, .lr-single * { box-sizing: border-box; }
.lr-listings img, .lr-single img { max-width: 100%; height: auto; display: block; }
.lr-listings a, .lr-single a { text-decoration: none; }

/* Icons */
.lr-icon { width: 16px; height: 16px; flex: 0 0 16px; margin-right: 6px; vertical-align: -3px; color: var(--lr-primary); }

/* Buttons */
.lr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 10px 18px; border-radius: 10px; border: 1px solid var(--lr-primary);
	background: var(--lr-primary); color: #fff !important; font-weight: 600; font-size: 14px;
	line-height: 1.2; cursor: pointer; transition: filter .15s, background .15s, color .15s; white-space: nowrap;
}
.lr-btn:hover { filter: brightness(1.08); }
.lr-btn--outline, .lr-btn--ghost { background: transparent; color: var(--lr-primary) !important; }
.lr-btn--ghost { border-color: var(--lr-border); color: var(--lr-muted) !important; }
.lr-btn--outline:hover { background: var(--lr-primary); color: #fff !important; }
.lr-btn--lg { padding: 14px 28px; font-size: 16px; }
.lr-btn[disabled] { opacity: .6; cursor: default; }

/* Filters */
.lr-filters {
	display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end;
	padding: 16px; margin: 0 0 24px; background: var(--lr-bg-soft); border: 1px solid var(--lr-border); border-radius: var(--lr-radius);
}
.lr-filter { display: flex; flex-direction: column; gap: 5px; flex: 1 1 160px; min-width: 140px; margin: 0; }
.lr-filter--search { flex: 2 1 240px; }
.lr-filter--range { flex: 1.5 1 220px; }
.lr-filter--actions { flex: 0 0 auto; flex-direction: row; gap: 8px; }
.lr-filter__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--lr-muted); }
.lr-filter__pair { display: flex; gap: 6px; }
.lr-filter input, .lr-filter select {
	width: 100%; min-width: 0; height: 42px; padding: 8px 12px; margin: 0; border: 1px solid var(--lr-border); border-radius: 10px;
	background: var(--lr-bg); color: var(--lr-text); font-size: 14px; line-height: 1.2; appearance: auto;
}
.lr-filter input:focus, .lr-filter select:focus { outline: 2px solid var(--lr-primary); outline-offset: 0; border-color: var(--lr-primary); }
.lr-filter input[type=number]::-webkit-inner-spin-button { opacity: .4; }

/* Results */
.lr-results { position: relative; min-height: 120px; }
.lr-results.is-loading { opacity: .5; pointer-events: none; }
.lr-results.is-loading::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%;
	border: 3px solid var(--lr-border); border-top-color: var(--lr-primary); animation: lr-spin .8s linear infinite;
}
@keyframes lr-spin { to { transform: rotate(360deg); } }
.lr-count { margin: 0 0 14px; font-size: 14px; color: var(--lr-muted); }
.lr-empty, .lr-error { padding: 28px; text-align: center; border: 1px dashed var(--lr-border); border-radius: var(--lr-radius); color: var(--lr-muted); }
.lr-error { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }

/* Grid */
.lr-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lr-cols-1 .lr-grid { grid-template-columns: 1fr; }
.lr-cols-2 .lr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lr-cols-3 .lr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lr-cols-4 .lr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lr-cols-5 .lr-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lr-cols-6 .lr-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1024px) { .lr-cols-4 .lr-grid, .lr-cols-5 .lr-grid, .lr-cols-6 .lr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 782px) { .lr-listings .lr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 520px) { .lr-listings .lr-grid { grid-template-columns: 1fr; } }

/* Card */
.lr-card {
	display: flex; flex-direction: column; overflow: hidden; background: var(--lr-bg); border: 1px solid var(--lr-border);
	border-radius: var(--lr-radius); box-shadow: var(--lr-shadow); transition: transform .2s, box-shadow .2s;
}
.lr-card:hover { transform: translateY(-3px); box-shadow: var(--lr-shadow-hover); }
.lr-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e5e7eb; }
.lr-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lr-card:hover .lr-card__img { transform: scale(1.04); }
.lr-card__noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e5e7eb, #f3f4f6); }
.lr-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.lr-badge {
	display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .03em;
	text-transform: uppercase; background: rgba(255, 255, 255, .92); color: var(--lr-text); backdrop-filter: blur(4px);
}
.lr-badge--sale { background: var(--lr-primary); color: #fff; }
.lr-card__logo-wrap {
	position: absolute; right: 12px; bottom: 12px; width: 56px; height: 56px; padding: 6px; border-radius: 10px;
	background: rgba(255, 255, 255, .95); box-shadow: var(--lr-shadow); display: flex; align-items: center; justify-content: center;
}
.lr-card__logo { width: 100%; height: 100%; object-fit: contain; }
.lr-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.lr-card__title { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; }
.lr-card__title a { color: var(--lr-text); }
.lr-card__title a:hover { color: var(--lr-primary); }
.lr-card__meta { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--lr-muted); }
.lr-card__meta span { display: inline-flex; align-items: center; }
.lr-card__price { font-size: 19px; font-weight: 700; color: var(--lr-primary); white-space: nowrap; }
.lr-card__price-label { font-size: 12px; font-weight: 500; color: var(--lr-muted); text-transform: uppercase; letter-spacing: .04em; }
.lr-card__facts { list-style: none; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid var(--lr-border); font-size: 13px; color: var(--lr-text); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 10px; }
.lr-card__facts li { display: flex; align-items: center; margin: 0; white-space: nowrap; }
.lr-card__btn { margin-top: auto; align-self: flex-start; }

/* List layout */
.lr-layout-list .lr-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.lr-layout-list .lr-card { flex-direction: row; }
	.lr-layout-list .lr-card__media { flex: 0 0 40%; aspect-ratio: auto; min-height: 220px; }
	.lr-layout-list .lr-card__body { padding: 20px 24px; }
	.lr-layout-list .lr-card__facts { grid-template-columns: 1fr 1fr 1fr; }
}

/* Pagination */
.lr-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 28px 0 0; }
.lr-page {
	min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--lr-border); border-radius: 10px; background: var(--lr-bg);
	color: var(--lr-text); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.lr-page:hover { border-color: var(--lr-primary); color: var(--lr-primary); }
.lr-page.is-active { background: var(--lr-primary); border-color: var(--lr-primary); color: #fff; cursor: default; }
.lr-page--gap { border: 0; background: none; cursor: default; color: var(--lr-muted); }

/* ---------- Single project ---------- */
.lr-single { display: flex; flex-direction: column; gap: 36px; }
.lr-back { color: var(--lr-muted); font-size: 14px; font-weight: 600; margin-bottom: -20px; }
.lr-back:hover { color: var(--lr-primary); }
.lr-section__title { margin: 0 0 16px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.lr-section { margin: 0; }

.lr-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .lr-hero { grid-template-columns: 1fr; } }
.lr-hero__media { position: relative; border-radius: var(--lr-radius); overflow: hidden; aspect-ratio: 16 / 10; background: #e5e7eb; }
.lr-hero__img { width: 100%; height: 100%; object-fit: cover; }
.lr-hero__body { display: flex; flex-direction: column; gap: 12px; }
.lr-hero__title { margin: 0; font-size: 34px; line-height: 1.15; font-weight: 800; }
.lr-hero__meta { display: flex; flex-direction: column; gap: 4px; color: var(--lr-muted); font-size: 15px; }
.lr-hero__meta span { display: inline-flex; align-items: center; }
.lr-hero__price { font-size: 24px; font-weight: 800; color: var(--lr-primary); }
.lr-hero__logo-wrap { width: 96px; height: 60px; display: flex; align-items: center; }
.lr-hero__logo { max-height: 60px; width: auto; object-fit: contain; }
.lr-hero .lr-enquire-btn { align-self: flex-start; margin-top: 4px; }

.lr-facts__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.lr-fact { padding: 14px 16px; border: 1px solid var(--lr-border); border-radius: 12px; background: var(--lr-bg-soft); }
.lr-fact dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--lr-muted); font-weight: 600; margin: 0 0 4px; }
.lr-fact dd { margin: 0; font-weight: 700; font-size: 16px; }

.lr-gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lr-gallery__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #e5e7eb; }
.lr-gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
.lr-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.lr-gallery__item:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .lr-gallery__grid { grid-template-columns: repeat(2, 1fr); } .lr-gallery__item:first-child { grid-column: span 2; grid-row: auto; } }

.lr-description__body { font-size: 16px; line-height: 1.7; max-width: 80ch; }
.lr-description__body h2, .lr-description__body h3, .lr-description__body h4, .lr-description__body h5, .lr-description__body h6 { margin: 1.4em 0 .5em; font-size: 18px; font-weight: 700; }
.lr-description__body p { margin: 0 0 1em; }
.lr-description__body ul, .lr-description__body ol { margin: 0 0 1em 1.4em; }

.lr-highlights__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.lr-highlights__list li { padding: 10px 14px; border-left: 3px solid var(--lr-primary); background: var(--lr-bg-soft); border-radius: 0 8px 8px 0; }

.lr-amenities__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.lr-amenity { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--lr-border); border-radius: 10px; font-size: 14px; }
.lr-amenity__icon { width: 28px; height: 28px; object-fit: contain; flex: 0 0 28px; }

.lr-plan { border: 1px solid var(--lr-border); border-radius: 12px; padding: 16px 18px; margin: 0 0 12px; }
.lr-plan__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.lr-plan__split { color: var(--lr-muted); font-size: 14px; }
.lr-plan__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.lr-plan__steps li { display: flex; flex-direction: column; padding: 12px 14px; background: var(--lr-bg-soft); border-radius: 10px; }
.lr-plan__pct { font-size: 22px; font-weight: 800; color: var(--lr-primary); }
.lr-plan__name { font-size: 13px; color: var(--lr-muted); }

.lr-units__total { margin: -8px 0 12px; color: var(--lr-muted); }
.lr-table-wrap { overflow-x: auto; border: 1px solid var(--lr-border); border-radius: 12px; }
.lr-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.lr-table th, .lr-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--lr-border); white-space: nowrap; }
.lr-table th { background: var(--lr-bg-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--lr-muted); }
.lr-table tr:last-child td { border-bottom: 0; }
.lr-table a { color: var(--lr-primary); font-weight: 600; }
.lr-hidden { display: none; }

.lr-documents__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lr-doc { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--lr-border); border-radius: 10px; }
.lr-doc__name { flex: 1; font-weight: 600; }
.lr-doc__name small { color: var(--lr-muted); font-weight: 500; margin-left: 4px; }
.lr-doc__actions { display: flex; gap: 12px; }
.lr-doc__actions a { color: var(--lr-primary); font-weight: 600; font-size: 14px; }

.lr-developer__card { display: flex; gap: 20px; align-items: flex-start; padding: 20px; border: 1px solid var(--lr-border); border-radius: var(--lr-radius); }
.lr-developer__logo-wrap { flex: 0 0 110px; height: 80px; display: flex; align-items: center; justify-content: center; }
.lr-developer__logo { max-height: 80px; object-fit: contain; }
.lr-developer__body h3 { margin: 0 0 8px; font-size: 18px; }
.lr-developer__desc { font-size: 15px; line-height: 1.6; }
.lr-developer__meta { margin: 8px 0 0; color: var(--lr-muted); font-size: 14px; }
.lr-developer__meta a { color: var(--lr-primary); }
@media (max-width: 520px) { .lr-developer__card { flex-direction: column; } }

.lr-map__frame { border-radius: var(--lr-radius); overflow: hidden; border: 1px solid var(--lr-border); aspect-ratio: 16 / 8; }
.lr-map__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lr-map__address { margin: -8px 0 12px; color: var(--lr-muted); }
.lr-map__link { color: var(--lr-primary); font-weight: 600; }

.lr-enquire { text-align: center; padding: 36px 20px; background: var(--lr-bg-soft); border-radius: var(--lr-radius); }
.lr-enquire .lr-section__title { margin-bottom: 18px; }

/* Lightbox */
.lr-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(10, 12, 16, .92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lr-lightbox img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lr-lightbox__caption { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: #fff; font-size: 14px; opacity: .85; padding: 0 60px; }
.lr-lightbox__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lr-lightbox__btn:hover { background: rgba(255, 255, 255, .3); }
.lr-lightbox__prev { left: 16px; }
.lr-lightbox__next { right: 16px; }
.lr-lightbox__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 24px; cursor: pointer; }
.lr-lightbox__close:hover { background: rgba(255, 255, 255, .3); }
body.lr-lightbox-open { overflow: hidden; }

/* Price suffix (rentals) */
.lr-card__price-suffix { font-size: 13px; font-weight: 500; color: var(--lr-muted); }
.lr-agent__photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
