/* ========================================================
   Listings – shared styles for publications & enlistments
   ======================================================== */

/* ── Filter bar ─────────────────────────────────────────── */
.ls-filters {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.ls-filters .form-select {
	max-width: 340px;
	font-size: 0.82rem;
	border-radius: 6px;
	border-color: #e0e0e0;
	padding: 0.45rem 2rem 0.45rem 0.75rem;
}

.ls-filters .input-group {
	max-width: 280px;
}

.ls-filters .form-control {
	font-size: 0.82rem;
	border-radius: 6px;
	border-color: #e0e0e0;
	padding: 0.45rem 0.75rem;
}

/* ── Property card ──────────────────────────────────────── */
.ls-card {
	background: #fff;
	border-radius: 10px;
	box-shadow:
		0 0.46875rem 2.1875rem rgba(4, 9, 20, 0.03),
		0 0.9375rem 1.40625rem rgba(4, 9, 20, 0.03),
		0 0.25rem 0.53125rem rgba(4, 9, 20, 0.05),
		0 0.125rem 0.1875rem rgba(4, 9, 20, 0.03);
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.ls-card:hover {
	box-shadow:
		0 0.5rem 2.5rem rgba(4, 9, 20, 0.06),
		0 1rem 1.5rem rgba(4, 9, 20, 0.05),
		0 0.3rem 0.6rem rgba(4, 9, 20, 0.07),
		0 0.15rem 0.25rem rgba(4, 9, 20, 0.04);
	transform: translateY(-2px);
}

/* ── Image area ─────────────────────────────────────────── */
.ls-card-img {
	position: relative;
	overflow: hidden;
	background: #e9ecef;
}

.ls-card-img img {
	width: 100%;
	height: 170px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.ls-card:hover .ls-card-img img {
	transform: scale(1.03);
}

/* Status badge overlay */
.ls-badge {
	position: absolute;
	bottom: 10px;
	left: 10px;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	backdrop-filter: blur(4px);
}

.ls-badge--regulier {
	background: rgba(247, 147, 25, 0.92);
}

.ls-badge--loting {
	background: rgba(255, 82, 0, 0.92);
}

.ls-badge--status {
	left: auto;
	right: 10px;
}

/* Status color variants */
.ls-badge--open,
.ls-badge--actueel,
.ls-badge--gereageerd {
	background: rgba(247, 147, 25, 0.92);
}

.ls-badge--lopend,
.ls-badge--gesloten {
	background: rgba(85, 85, 85, 0.88);
}

.ls-badge--in-afwachting {
	background: rgba(185, 127, 26, 0.92);
}

.ls-badge--uitgeschreven {
	background: rgba(182, 182, 182, 0.88);
}

/* Match indicator */
.ls-match-dot {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ls-match-dot i {
	font-size: 0.75rem;
	color: var(--a);
}

/* ── Card body ──────────────────────────────────────────── */
.ls-card-body {
	padding: 0.85rem 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Address title */
.ls-address {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--a);
	margin-bottom: 0.15rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: none;
	transition: color 0.15s ease;
}

.ls-address:hover {
	color: var(--a-hover);
}

.ls-location {
	font-size: 0.72rem;
	color: #6c757d;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 0.65rem;
}

/* ── Detail rows ────────────────────────────────────────── */
.ls-details {
	flex: 1;
}

.ls-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.3rem 0;
	font-size: 0.75rem;
}

.ls-row:not(:last-child) {
	border-bottom: 1px solid #f5f5f5;
}

.ls-row-label {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	color: #6c757d;
	flex-shrink: 0;
}

.ls-row-label i {
	width: 14px;
	text-align: center;
	font-size: 0.68rem;
	color: #adb5bd;
}

.ls-row-value {
	font-weight: 600;
	color: #212529;
	text-align: right;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ls-row-value--price {
	color: var(--a);
	font-weight: 700;
}

.ls-row-value--position {
	font-family: 'Source Sans Pro', monospace;
}

.ls-row-value--date {
	color: #495057;
}

/* ── Card footer / actions ──────────────────────────────── */
.ls-card-footer {
	padding: 0.5rem 1rem 0.85rem;
	display: flex;
	gap: 0.5rem;
}

.ls-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	flex: 1;
	padding: 0.4rem 0.5rem;
	border-radius: 6px;
	font-size: 0.72rem;
	font-weight: 500;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.15s ease;
	text-decoration: none;
}

.ls-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.ls-btn i {
	font-size: 0.68rem;
}

.ls-btn--primary {
	background: var(--a);
	color: #fff;
	border-color: var(--a);
}

.ls-btn--primary:hover:not(:disabled) {
	background: var(--btn-hover);
	border-color: var(--btn-hover);
}

.ls-btn--secondary {
	background: #f8f9fa;
	color: #495057;
	border-color: #e9ecef;
}

.ls-btn--secondary:hover:not(:disabled) {
	background: #e9ecef;
	color: #212529;
}

.ls-btn--danger {
	background: #fff;
	color: #dc3545;
	border-color: #f8d7da;
}

.ls-btn--danger:hover:not(:disabled) {
	background: #fef2f2;
	border-color: #dc3545;
}

/* ── Pagination ─────────────────────────────────────────── */
.ls-pagination .pagination {
	gap: 0.25rem;
	margin-bottom: 0;
}

.ls-pagination .page-item .page-link {
	border-radius: 6px;
	font-size: 0.78rem;
	font-weight: 500;
	padding: 0.35rem 0.7rem;
	border: 1px solid #e9ecef;
	color: #495057;
	transition: all 0.15s ease;
}

.ls-pagination .page-item.active .page-link {
	background: var(--a);
	border-color: var(--a);
	color: #fff;
}

.ls-pagination .page-item .page-link:hover {
	background: #f8f9fa;
	border-color: #ced4da;
}

.ls-pagination .page-item.active .page-link:hover {
	background: var(--btn-hover);
	border-color: var(--btn-hover);
}

/* ── Empty state ────────────────────────────────────────── */
.ls-empty {
	text-align: center;
	padding: 3rem 1rem;
}

.ls-empty-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.ls-empty-icon i {
	font-size: 1.3rem;
	color: #adb5bd;
}

.ls-empty h6 {
	color: #495057;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.ls-empty p {
	color: #6c757d;
	font-size: 0.82rem;
	max-width: 320px;
	margin: 0 auto;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 575.98px) {
	.ls-filters {
		flex-direction: column;
	}

	.ls-filters .form-select,
	.ls-filters .input-group {
		max-width: 100%;
		width: 100%;
	}

	.ls-card-img img {
		height: 200px;
	}

	.ls-card-footer {
		flex-direction: column;
	}
}
