/**
 * VM Highlighted Tours Block
 *
 * @package club-garrigue
 * @since 1.0.0
 */

/* ─── Block wrapper ─────────────────────────────────────────────── */

.vm-highlighted-tours-block {
	container-type: inline-size;
	width: 100vw;
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: var(--wp--preset--spacing--large);
	padding: clamp(40px, 6vw, 100px) 30px;
	margin: 0 !important;
	margin-top: 0 !important;
	max-width: unset !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

.vm-ht-inner {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
}
/* ─── Intro ──────────────────────────────────────────────────────── */

.vm-ht-intro {
	display: flex;
	flex-direction: column;
	text-align: center;
	align-items: center;
	
}

.vm-ht-heading {
	font-family: var(--font-serif);
	font-weight: 500;
	line-height: 1.15em;
	color: var(--wp--preset--color--accent);
	margin: 0;
	margin-bottom: 24px;
	/* max-width: 650px; */
}

.vm-ht-intro-text {
	text-align: center;
    max-width: 640px;
    margin: 0 auto 16px;
	margin-bottom: 0;
    color: var(--stone);
    font-weight: 300;
    font-size: 21px;
    line-height: 1.55;
}

.vm-ht-intro-text > *:first-child { margin-top: 0; }
.vm-ht-intro-text > *:last-child  { margin-bottom: 0; }

/* ─── Two-column grid ────────────────────────────────────────────── */

.vm-ht-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--large);
	gap: 32px;
	margin-top: 48px;
}

/* ─── Card ───────────────────────────────────────────────────────── */

.vm-ht-card {
	display: flex;
	flex-direction: column;
	background-color: var(--wp--preset--color--white);
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(28, 26, 23, 0.07);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vm-ht-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 32px rgba(28, 26, 23, 0.12);
}

/* ─── Card image ─────────────────────────────────────────────────── */

.vm-ht-card-media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	height: 300px;
}

.vm-ht-card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.vm-ht-card:hover .vm-ht-card-img {
	transform: scale(1.04);
}

/* Empty state — accent background with centred logo */

.vm-ht-card-media--empty {
	background-color: var(--wp--preset--color--silver);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--large);
}

.vm-ht-card-logo {
	display: block;
	max-width: 160px;
	width: 100%;
	height: auto;
	filter: brightness(0) invert(1);
	opacity: 0.85;
}

/* ─── Card body ──────────────────────────────────────────────────── */

.vm-ht-card-body {
	display: flex;
	flex-direction: column;
	/* gap: 16px; */
	padding: var(--wp--preset--spacing--large);
	padding: 32px;
	flex: 1;
}

/* ─── Card title ─────────────────────────────────────────────────── */

.vm-ht-card-title {
	font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--wp--preset--color--accent);
}

.vm-ht-card-title a {
	/* color: var(--ink); */
	text-decoration: none;
	transition: color 0.2s ease;
}

.vm-ht-card-title a:hover {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

/* ─── Excerpt ────────────────────────────────────────────────────── */

.vm-ht-card-excerpt {
	font-family: var(--font-sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 300;
	line-height: 1.6;
	color: var(--wp--preset--color--stone);
	margin: 0;
	margin-bottom: 20px;
}

/* ─── Meta list (date, price, capacity) ──────────────────────────── */

.vm-ht-card-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 24px;
}

.vm-ht-meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-sans);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
}

.vm-ht-meta-item svg {
	flex-shrink: 0;
	color: var(--wp--preset--color--accent);
}

/* Empty fallback text — dimmed so it reads as a placeholder */
.vm-ht-meta-empty {
	opacity: 0.45;
	font-style: italic;
}

/* ─── Alert ────────────────────────────────────────────────────── */
.vm-ht-alert {
	color: var(--wp--preset--color--stone);
    font-size: 15px;
    line-height: 1.78;
    margin-bottom: 20px;
    font-weight: 300;
	font-style: italic;
}

/* ─── Booking link ───────────────────────────────────────────────── */

.vm-button.vm-ht-booking-link {
	align-self: flex-start;
	border: 1.5px solid var(--wp--preset--color--black);
	transition: background-color 0.2s ease, gap 0.2s ease;
}

.vm-ht-booking-link:hover {
	color: #fff;
	background-color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	gap: 0.65rem;
	text-decoration: none;
}

.vm-ht-booking-link:focus {
	text-decoration: none !important;
}

/* ─── Editor placeholder ─────────────────────────────────────────── */

.vm-ht-placeholder {
	padding: 1rem;
	background: #f9f9f9;
	border: 1px dashed #ccc;
	color: #888;
	font-style: italic;
	border-radius: 4px;
}

/* ─── Responsive — single column below 600px container ──────────── */

@container (max-width: 600px) {
	.vm-ht-grid {
		grid-template-columns: 1fr;
	}
}

/* ─── Reduced motion ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.vm-ht-card,
	.vm-ht-card-img,
	.vm-ht-booking-link {
		transition: none;
	}
}
