/* ============================================================
   VacationPlaces — Homepage Content Sections
   Loaded only when vp/homepage-content block is rendered.
   ============================================================ */

/* ── Container ─────────────────────────────────────────────── */
.vp-home__container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(1.25rem, 4vw, 3rem);
	padding-right: clamp(1.25rem, 4vw, 3rem);
}

/* ── Section base ───────────────────────────────────────────── */
.vp-home-section {
	padding-top: clamp(60px, 8vw, 100px);
	padding-bottom: clamp(60px, 8vw, 100px);
}

.vp-home-section--white { background: #ffffff; }
.vp-home-section--beige { background: #F5EFEB; }
.vp-home-section--navy  { background: #2F4156; }

/* ── Eyebrow label ──────────────────────────────────────────── */
.vp-home-eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #E8734A;
	margin-bottom: 0.5rem;
}

/* ── Section heading & subheading ───────────────────────────── */
.vp-home-section__heading {
	font-family: 'Fraunces', 'Nunito', serif;
	font-size: clamp(1.375rem, 3vw, 1.875rem);
	font-weight: 700;
	color: #2F4156;
	margin: 0 0 0.4rem;
	line-height: 1.2;
}

.vp-home-section__sub {
	font-size: 15px;
	color: #666;
	line-height: 1.6;
	margin: 0 0 2.5rem;
	max-width: 680px;
}

/* ── Card grid ──────────────────────────────────────────────── */
.vp-home-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

/* Grid count variants for What's Coming */
.vp-home-card-grid--two {
	grid-template-columns: repeat(2, 1fr);
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.vp-home-card-grid--one {
	grid-template-columns: 1fr;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

/* ── Individual card ────────────────────────────────────────── */
.vp-home-card {
	position: relative;
	background: #fff;
	border: 1px solid rgba(47, 65, 86, 0.08);
	border-radius: 12px;
	padding: 28px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vp-home-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 28px rgba(47, 65, 86, 0.12);
}

/* Icon circle */
.vp-home-card__icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #2F4156;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	flex-shrink: 0;
	color: #fff;
}

.vp-home-card__icon i {
	font-size: 22px;
	line-height: 1;
}

.vp-home-card__title {
	font-size: 17px;
	font-weight: 600;
	color: #2F4156;
	margin: 0 0 0.4rem;
	line-height: 1.3;
}

.vp-home-card__desc {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	margin: 0 0 0.8rem;
}

.vp-home-card__link {
	font-size: 14px;
	font-weight: 500;
	color: #E8734A;
	text-decoration: none;
	transition: color 0.15s ease;
}

.vp-home-card__link:hover {
	color: #c95e38;
	text-decoration: underline;
}

/* ── What's Coming card button ──────────────────────────────── */
.vp-home-card__btn {
	display: inline-block;
	margin-top: 1.25rem;
	padding: 10px 20px;
	background: #E8734A; /* overridden by inline style */
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition: filter 0.15s ease;
}

.vp-home-card__btn:hover {
	filter: brightness(0.88);
	color: #fff;
}

/* ── Hub category grid ──────────────────────────────────────── */
.vp-home-hub-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

/* 5 cards: 3-col grid (row 1: 3 cards, row 2: 2 cards left-aligned) */
/* base 3-col grid handles this correctly — no modifier CSS needed */

/* 4 cards: 2×2 grid centred */
.vp-home-hub-grid--four {
	grid-template-columns: repeat(2, 1fr);
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* 3 cards: single row of 3 — inherits base 3-col grid */

/* 2 cards centred */
.vp-home-hub-grid--two {
	grid-template-columns: repeat(2, 1fr);
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* 1 card centred */
.vp-home-hub-grid--one {
	grid-template-columns: 1fr;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

/* ── What's Coming badge ────────────────────────────────────── */
.vp-home-card__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	background: #E8734A;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 100px;
}

/* ── Section footer links ───────────────────────────────────── */
.vp-home-section__footer {
	margin-top: 2rem;
	text-align: center;
}

.vp-home-coral-link {
	color: #E8734A;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: color 0.15s ease;
}

.vp-home-coral-link:hover {
	color: #c95e38;
	text-decoration: underline;
}

/* ── Latest News ────────────────────────────────────────────── */
.vp-home-news-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 0;
}

.vp-home-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 2.5rem;
}

.vp-home-news-card {
	background: #fff;
	border: 1px solid rgba(47, 65, 86, 0.08);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.vp-home-news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 28px rgba(47, 65, 86, 0.10);
}

.vp-home-news-card__img {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #F5EFEB;
	flex-shrink: 0;
}

.vp-home-news-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vp-home-news-card__body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.vp-home-news-card__cat {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #E8734A;
	margin-bottom: 0.5rem;
}

.vp-home-news-card__title {
	font-size: 16px;
	font-weight: 700;
	color: #2F4156;
	line-height: 1.3;
	margin: 0 0 0.5rem;
}

.vp-home-news-card__title a {
	color: inherit;
	text-decoration: none;
}

.vp-home-news-card__title a:hover { color: #E8734A; }

.vp-home-news-card__excerpt {
	font-size: 13px;
	color: #666;
	line-height: 1.55;
	margin: 0 0 0.75rem;
	flex: 1;
}

.vp-home-news-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
}

.vp-home-news-card__date {
	font-size: 11px;
	color: #8DB4C4;
}

.vp-home-news-card__read {
	font-size: 13px;
	font-weight: 600;
	color: #E8734A;
	text-decoration: none;
}

.vp-home-news-card__read:hover { text-decoration: underline; }

.vp-home-news-empty {
	text-align: center;
	color: #666;
	font-size: 15px;
	padding: 2rem 0;
	grid-column: 1 / -1;
}

.vp-home-news-footer {
	margin-top: 2rem;
	text-align: right;
}

/* ── Newsletter ─────────────────────────────────────────────── */
.vp-home-nl {
	text-align: center;
	padding-bottom: clamp(40px, 5vw, 60px);
}

.vp-home-nl__heading {
	font-family: 'Fraunces', 'Nunito', serif;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 700;
	color: #F5EFEB;
	margin: 0 auto 0.75rem;
	max-width: 600px;
	line-height: 1.2;
}

.vp-home-nl__desc {
	font-size: 15px;
	color: #8DB4C4;
	line-height: 1.6;
	max-width: 480px;
	margin: 0 auto 2rem;
}

.vp-home-nl__hubspot {
	max-width: 480px;
	margin: 0 auto;
}

/* ── Instagram placeholder ──────────────────────────────────── */
.vp-home-ig__heading {
	font-family: 'Fraunces', 'Nunito', serif;
	font-size: clamp(1.375rem, 3vw, 1.875rem);
	font-weight: 700;
	color: #2F4156;
	margin: 0 0 0.35rem;
}

.vp-home-ig__sub {
	font-size: 15px;
	color: #666;
	margin: 0 0 2rem;
}

.vp-home-ig__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 1.5rem;
}

.vp-home-ig__cell {
	aspect-ratio: 1;
	background: rgba(47, 65, 86, 0.06);
	border-radius: 6px;
}

/* ── Custom Section — Text + Image ─────────────────────────── */
.vp-home-cs-text-image {
	display: flex;
	align-items: center;
	gap: 3rem;
}

.vp-home-cs-text-image__content {
	flex: 1;
	min-width: 0;
}

.vp-home-cs-text-image__img {
	flex: 1;
	min-width: 0;
}

.vp-home-cs-text-image__img img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
}

/* ── Custom Section — Full-Width CTA ────────────────────────── */
.vp-home-cs-cta {
	text-align: center;
	max-width: 680px;
	margin: 0 auto;
}

.vp-home-cs-cta__heading {
	margin-left: auto;
	margin-right: auto;
}

.vp-home-cs-cta__sub {
	margin-left: auto;
	margin-right: auto;
}

.vp-home-cs-cta__btn {
	margin-top: 1.5rem;
	display: inline-block;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.vp-home-card-grid,
	.vp-home-hub-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.vp-home-news-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.vp-home-cs-text-image {
		gap: 2rem;
	}
}

@media (max-width: 768px) {
	.vp-home-cs-text-image {
		flex-direction: column;
	}

	.vp-home-card-grid,
	.vp-home-hub-grid,
	.vp-home-hub-grid--four,
	.vp-home-hub-grid--two,
	.vp-home-hub-grid--one,
	.vp-home-news-grid {
		grid-template-columns: 1fr;
		max-width: 100%;
	}

	.vp-home-section__sub {
		max-width: 100%;
	}

	.vp-home-news-footer {
		text-align: center;
	}

	.vp-home-ig__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
