/**
 * VOW embed grid — [vow_listings] shortcode inside post content.
 * Reuses .listing-card styles from neuhaus-vow.css; this file only
 * lays the cards out 2-up in the narrow post column.
 */

.vow-embed {
	margin: var(--spacing-xl, 2rem) 0;
}

.vow-embed__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--spacing-lg, 1.5rem);
}

.vow-embed__skeleton {
	border-radius: var(--radius-md, 0.5rem);
	background: linear-gradient(90deg, #edf2f7 25%, #f7fafc 50%, #edf2f7 75%);
	background-size: 200% 100%;
	animation: vow-embed-shimmer 1.2s ease-in-out infinite;
	min-height: 280px;
}

@keyframes vow-embed-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.vow-embed__empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--color-gray-500, #718096);
	padding: var(--spacing-xl, 2rem) 0;
}

.vow-embed__footer {
	text-align: center;
	margin-top: var(--spacing-lg, 1.5rem);
}

@media (max-width: 576px) {
	.vow-embed__grid {
		grid-template-columns: 1fr;
	}
}

/* List-style embed ([vow_listings style="list"]) */
.vow-embed--list .vow-embed__grid {
	display: block;
	counter-reset: vow-row;
}
.vow-row {
	display: flex;
	align-items: center;
	gap: var(--spacing-md, 1rem);
	padding: var(--spacing-sm, 0.5rem) 0;
	border-bottom: 1px solid var(--color-gray-200, #e2e8f0);
	color: inherit;
	text-decoration: none;
}
.vow-row:hover .vow-row__address { color: var(--color-primary, #1b365d); text-decoration: underline; }
.vow-embed--numbered .vow-row::before {
	counter-increment: vow-row;
	content: counter(vow-row);
	font-weight: 700;
	color: var(--color-accent, #c9a227);
	min-width: 1.5em;
	text-align: center;
}
.vow-row__photo { flex: 0 0 72px; }
.vow-row__photo img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--radius-sm, 0.25rem); }
.vow-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vow-row__address { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vow-row__meta { font-size: 0.875rem; color: var(--color-gray-500, #718096); }
.vow-row__price { font-weight: 700; color: var(--color-primary, #1b365d); white-space: nowrap; }
