/**
 * Lucky Cats Shelter Sync - cat grid (block B7 basic version).
 *
 * Built on the CSS custom properties that block B10 and the Elementor
 * styling controls (B12) will drive. Typography inherits from the theme.
 */

.lcp-grid {
	display: grid;
	grid-template-columns: repeat( var( --lcp-columns ), minmax( 0, 1fr ) );
	gap: var( --lcp-grid-gap );
	margin: 1rem 0;
}

@media ( max-width: 900px ) {
	.lcp-grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 560px ) {
	.lcp-grid {
		grid-template-columns: 1fr;
	}
}

.lcp-card {
	display: flex;
	flex-direction: column;
	background: var( --lcp-card-bg );
	border-radius: var( --lcp-card-radius );
	box-shadow: var( --lcp-card-shadow );
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lcp-card:hover,
.lcp-card:focus {
	transform: translateY( -2px );
	box-shadow: var( --lcp-card-shadow-hover );
}

.lcp-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f3f3;
}

.lcp-card-media img.lcp-card-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.lcp-card-photo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 3rem;
	opacity: 0.4;
}

.lcp-card-body {
	display: block;
	padding: 0.9rem 1rem 1.1rem;
}

.lcp-card-title {
	display: block;
	font-weight: 700;
	font-size: 1.15em;
	margin-bottom: 0.25rem;
}

.lcp-card:hover .lcp-card-title {
	color: var( --lcp-primary );
}

.lcp-card-meta {
	display: block;
	opacity: 0.75;
	font-size: 0.9em;
}

.lcp-empty {
	font-style: italic;
	opacity: 0.8;
}


/* --- Filterbalk (blok P2-B6) --- */

.lcp-filterbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	padding: 14px 16px;
	margin: 0 0 10px;
	background: var( --lcp-soft, #fff7ec );
	border: 1px solid var( --lcp-border, #eee );
	border-radius: var( --lcp-card-radius, 10px );
}

.lcp-filterbar select {
	padding: 6px 10px;
	border: 1px solid var( --lcp-border, #ddd );
	border-radius: 6px;
	background: #fff;
	max-width: 100%;
}

.lcp-filter-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}


.lcp-filter-submit {
	padding: 7px 16px;
}

.lcp-filter-reset {
	font-size: 0.92em;
	text-decoration: none;
	color: var( --lcp-accent, #e67e00 );
}

.lcp-filter-count {
	margin: 0 0 18px;
	font-size: 0.95em;
	color: var( --lcp-muted, #666 );
}

#lcp-grid-wrap.lcp-grid-loading {
	opacity: 0.45;
	transition: opacity 0.15s ease;
}

/* Met JavaScript actief is de verzendknop overbodig; hij blijft staan
   als vangnet maar oogt secundair. */
.lcp-filterbar .lcp-filter-submit {
	background: var( --lcp-accent, #e67e00 );
}

@media (max-width: 600px) {
	.lcp-filterbar {
		gap: 8px 12px;
	}

	.lcp-filterbar select {
		flex: 1 1 44%;
	}
}


/* --- Asielpagina (blok P2-B7) --- */

.lcp-shelter-header {
	margin-bottom: 18px;
}

.lcp-shelter-title {
	margin: 0 0 6px;
}

.lcp-shelter-facts {
	margin: 0;
	color: var( --lcp-muted, #666 );
}

.lcp-shelter-facts a {
	color: var( --lcp-accent, #e67e00 );
	text-decoration: none;
}

.lcp-shelter-cats-title {
	margin: 26px 0 12px;
}

.lcp-back {
	margin-top: 26px;
}

.lcp-back a {
	color: var( --lcp-accent, #e67e00 );
	text-decoration: none;
}
