/* Destination cards — mockup (.dest-m-card) sitewide */

.dest-m-card {
	height: 100%;
	background: #fff;
	border: 1px solid rgba(28, 36, 24, 0.08);
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(28, 36, 24, 0.07);
	overflow: hidden;
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.dest-m-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(28, 36, 24, 0.12);
}

.dest-m-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.dest-m-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: #243528;
}

.dest-m-card__media img,
.dest-m-card__ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s ease;
}

.dest-m-card__ph {
	background: linear-gradient(145deg, #1a3329, #2d6a4f);
}

.dest-m-card:hover .dest-m-card__media img {
	transform: scale(1.04);
}

.dest-m-card__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(12, 20, 16, 0.28) 100%);
	pointer-events: none;
}

.dest-m-card__type {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 8px;
	background: var(--dest-accent, #2f5d3a);
	background-color: var(--dest-accent, #2f5d3a);
	color: #fff;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.dest-m-card__type .home-icon,
.dest-m-card__type .ss-icon,
.dest-m-card__type svg {
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

.dest-m-card__country {
	position: absolute;
	left: 0.75rem;
	bottom: 0.75rem;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: rgba(14, 22, 16, 0.78);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	backdrop-filter: blur(4px);
}

.dest-m-card__country .home-icon,
.dest-m-card__country svg {
	stroke: #fff;
	stroke-width: 1.7;
	fill: none;
}

.dest-m-card__body {
	display: grid;
	gap: 0.4rem;
	padding: 1.05rem 1.1rem 1.2rem;
	flex: 1;
}

.dest-m-card__title {
	font-family: var(--font-body);
	font-size: clamp(1.05rem, 1.25vw, 1.2rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: #14221b;
	text-transform: none;
}

.dest-m-card__sub {
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.3;
	color: #2f5d3a;
	text-transform: none;
}

.dest-m-card__text {
	font-size: 0.88rem;
	line-height: 1.5;
	color: #5a6b62;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-transform: none;
	font-weight: 400;
}

.dest-m-card__cta {
	margin-top: auto;
	padding-top: 0.45rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #2f5d3a;
}

.dest-m-card:hover .dest-m-card__cta {
	color: #3d8b37;
}

/* Grids using shared cards */
.dest-m-grid,
.home-destinations__grid--rich,
.dest-card-grid--m,
.dest-catalog-grid--m {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.15rem;
}

.dest-card-grid--m.dest-card-grid--3,
.gt-card-grid--m.gt-card-grid--3,
.sf-dest-grid.dest-card-grid--m {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-dest__grid .dest-m-card__text {
	display: none;
}

.home-destinations__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.home-destinations__head .section-head {
	margin-bottom: 0;
	max-width: 40rem;
}

.home-destinations__eyebrow-row {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.65rem;
}

.home-destinations__eyebrow-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 999px;
	background: rgba(45, 106, 79, 0.1);
	color: #2f5d3a;
}

.home-destinations__eyebrow-row .section-eyebrow {
	margin: 0;
}

.home-destinations__view-all {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 1.05rem;
	border-radius: 8px;
	border: 1px solid rgba(28, 36, 24, 0.18);
	background: #fff;
	color: #14221b;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.home-destinations__view-all:hover {
	border-color: #2f5d3a;
	color: #2f5d3a;
	background: #f7f8f4;
}

.home-destinations {
	background: #fff;
}

/* Beat older home grid rules when shared cards are used */
.home-destinations__grid.home-destinations__grid--rich,
.home-destinations__grid.dest-m-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.15rem;
}

@media (max-width: 1100px) {
	.home-destinations__grid.home-destinations__grid--rich,
	.home-destinations__grid.dest-m-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.home-destinations__grid.home-destinations__grid--rich,
	.home-destinations__grid.dest-m-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1100px) {
	.dest-m-grid,
	.home-destinations__grid--rich,
	.dest-card-grid--m,
	.dest-catalog-grid--m,
	.dest-card-grid--m.dest-card-grid--3,
	.gt-card-grid--m.gt-card-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.dest-m-grid,
	.home-destinations__grid--rich,
	.dest-card-grid--m,
	.dest-catalog-grid--m {
		grid-template-columns: 1fr;
	}

	.home-destinations__head {
		align-items: stretch;
	}

	.home-destinations__view-all {
		justify-content: center;
	}
}
