/*
 * Localbird affiliate cards.
 *
 * Separate from booking.css on purpose: booking.css is enqueued by the
 * [svr_booking] shortcode, and the Tours page has no booking widget. These
 * rules load with [svr_localbird] instead.
 */

.lb-grid {
	display: grid;
	/* Fixed three, not auto-fill: a seventh card starts a new row rather than
	   the column count changing with the viewport. */
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 1.25rem;
	margin: 1.5rem 0 0;
}

@media ( max-width: 900px ) {
	.lb-grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 600px ) {
	.lb-grid {
		grid-template-columns: minmax( 0, 1fr );
	}
}

.lb-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var( --svr-line );
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lb-card:hover {
	transform: translateY( -3px );
	box-shadow: 0 14px 32px -14px rgba( 43, 41, 36, 0.34 );
}

.lb-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var( --svr-sand );
	overflow: hidden;
}

.lb-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lb-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.95rem 1rem 1.05rem;
	flex: 1;
}

.lb-card__cat {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var( --svr-sea );
}

.lb-card__title {
	font-weight: 600;
	line-height: 1.35;
	color: var( --svr-ink );
}

.lb-card__desc {
	font-size: 0.88rem;
	line-height: 1.5;
	color: var( --svr-muted );
}

.lb-card__foot {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.7rem;
}

.lb-card__price { font-weight: 700; color: var( --svr-ink ); }

.lb-card__price span { font-size: 0.72rem; font-weight: 600; opacity: 0.7; }

.lb-card__cta {
	font-size: 0.85rem;
	font-weight: 700;
	color: var( --svr-sea );
	white-space: nowrap;
}
