/* ============ LISTINGS PAGES ============ */

.listings-hero {
	background: #11181d;
	padding: 8rem 1.5rem 4rem;
	text-align: center;
}
.listings-hero .eyebrow {
	font-family: 'Instrument Sans', sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #c9a96e;
	margin: 0 0 1rem;
}
.listings-hero h1 {
	font-family: 'Instrument Sans', sans-serif;
	font-size: clamp(2.2rem, 5vw, 4rem);
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.listings-hero p {
	font-size: 1.05rem;
	color: rgba(255,255,255,0.6);
	max-width: 520px;
	margin: 0 auto;
	line-height: 1.7;
}

/* ---- Filter bar ---- */
.listings-filters {
	background: #f7f6f3;
	border-bottom: 1px solid #e8e4db;
	padding: 1.25rem 1.5rem;
	position: sticky;
	top: 0;
	z-index: 100;
}
.listings-filters-inner {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}
.lf-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: #11181d;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-right: 0.25rem;
}
.lf-select {
	font-family: 'Instrument Sans', sans-serif;
	font-size: 0.875rem;
	color: #11181d;
	background: #ffffff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2311181d' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.6rem center;
	cursor: pointer;
}
.lf-select:focus { outline: 2px solid #c9a96e; border-color: transparent; }

.lf-btn {
	font-family: 'Instrument Sans', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.5rem 1.25rem;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
}
.lf-btn-apply {
	background: #c9a96e;
	color: #fff;
}
.lf-btn-apply:hover { background: #b8934f; }
.lf-btn-reset {
	background: transparent;
	color: #666;
	border: 1px solid #ddd;
}
.lf-btn-reset:hover { background: #f0ece4; }

.listings-count {
	font-size: 0.875rem;
	color: #666;
	margin-left: auto;
}

/* ---- Grid ---- */
.listings-section {
	max-width: 1280px;
	margin: 0 auto;
	padding: 3rem 1.5rem 5rem;
}

.listings-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

@media (max-width: 1024px) {
	.listings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.listings-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---- Card ---- */
.lc {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(0,0,0,0.07);
	transition: transform 0.25s, box-shadow 0.25s;
	display: flex;
	flex-direction: column;
}
.lc:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.lc-photo {
	position: relative;
	aspect-ratio: 4/3;
	overflow: hidden;
	background: #e8e4db;
}
.lc-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s;
}
.lc:hover .lc-photo img { transform: scale(1.04); }

.lc-badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	background: #c9a96e;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.3rem 0.65rem;
	border-radius: 3px;
}
.lc-badge--rent { background: #2d6a4f; }

.lc-type {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background: rgba(17,24,29,0.75);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	padding: 0.3rem 0.65rem;
	border-radius: 3px;
	backdrop-filter: blur(4px);
}

.lc-body {
	padding: 1.25rem 1.25rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.lc-location {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #c9a96e;
	margin: 0 0 0.4rem;
}
.lc-title {
	font-size: 1rem;
	font-weight: 700;
	color: #11181d;
	margin: 0 0 0.75rem;
	line-height: 1.35;
}
.lc-price {
	font-size: 1.2rem;
	font-weight: 700;
	color: #11181d;
	margin: 0 0 0.75rem;
	letter-spacing: -0.01em;
}
.lc-meta {
	display: flex;
	gap: 1rem;
	margin-top: auto;
	padding-top: 0.75rem;
	border-top: 1px solid #f0ece4;
}
.lc-meta-item {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8rem;
	color: #666;
}
.lc-meta-item svg { flex-shrink: 0; color: #c9a96e; }

/* ---- Empty state ---- */
.listings-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 4rem 1rem;
	color: #666;
	font-size: 1rem;
}

/* ---- Loading overlay ---- */
.listings-loading {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	padding: 4rem;
}
.listings-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #e8e4db;
	border-top-color: #c9a96e;
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Pagination ---- */
.listings-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: 3rem;
	flex-wrap: wrap;
}
.lpg-btn {
	font-family: 'Instrument Sans', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	border-radius: 4px;
	border: 1px solid #e0dbd0;
	background: #fff;
	color: #11181d;
	cursor: pointer;
	transition: all 0.2s;
}
.lpg-btn:hover { background: #f7f6f3; border-color: #c9a96e; }
.lpg-btn.active { background: #c9a96e; color: #fff; border-color: #c9a96e; }
.lpg-btn:disabled { opacity: 0.4; cursor: not-allowed; }
