/**
 * Destinations page — refined layout & cards
 */

/* ── Hero ── */
.true-dest-hero {
	position: relative;
	height: 50vh;
	min-height: 560px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-top: 0;
}

.true-dest-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.true-dest-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.true-dest-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%),
		radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.15) 100%);
	z-index: 1;
}

.true-dest-hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 1.5rem var(--container-padding);
	max-width: 42rem;
	margin-inline: auto;
}

.true-dest-hero__title {
	font-size: clamp(1.625rem, 4vw, 2.5rem);
	font-weight: 800;
	color: var(--color-white);
	margin: 0 0 0.65rem;
	line-height: 1.2;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.true-dest-hero__subtitle {
	font-size: clamp(0.9375rem, 2vw, 1.125rem);
	color: rgba(255, 255, 255, 0.92);
	max-width: 36ch;
	margin: 0 auto;
	line-height: 1.65;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
	.true-dest-hero {
		min-height: 420px;
	}

	.true-dest-hero__content {
		padding-block: 1.25rem;
	}
}

/* ── Grid section ── */
.true-destinations {
	padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem);
	background: var(--color-gray-50);
}

.true-destinations__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	align-items: stretch;
}

@media (min-width: 640px) {
	.true-destinations__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.true-destinations__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.75rem;
	}
}

/* ── Card ── */
.true-dest-card {
	background: var(--color-white);
	border: 1px solid rgba(30, 77, 58, 0.08);
	border-radius: 1.25rem;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(30, 77, 58, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.true-dest-card:hover {
	transform: translateY(-4px);
	border-color: rgba(30, 77, 58, 0.14);
	box-shadow: 0 12px 32px rgba(30, 77, 58, 0.1);
}

.true-dest-card__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	height: 100%;
}

.true-dest-card__image {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	flex-shrink: 0;
}

.true-dest-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

body.true-travel .true-page--destinations .true-dest-card__image img,
body.true-travel .true-page--destinations .true-dest-hero__image {
	height: 100%;
	max-width: none;
}

.true-dest-card:hover .true-dest-card__image img {
	transform: scale(1.05);
}

.true-dest-card__image-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
	pointer-events: none;
}

.true-dest-card__rating {
	position: absolute;
	top: 0.75rem;
	inset-inline-end: 0.75rem;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem 0.6rem;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--color-gray-800);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.true-dest-card__body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0;
}

.true-dest-card__location {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--color-gray-500);
	margin-bottom: 0.5rem;
}

.true-dest-card__location svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: var(--color-gray-500);
}

.true-dest-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-gray-900);
	margin: 0 0 0.75rem;
	line-height: 1.35;
}

.true-dest-card__duration {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	font-size: 0.875rem;
	color: var(--color-gray-500);
}

.true-dest-card__duration svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--color-gray-500);
}

.true-dest-card__desc {
	font-size: 0.875rem;
	color: var(--color-gray-600);
	line-height: 1.6;
	margin: 0 0 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.true-dest-card__highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	flex: 1;
	align-content: flex-start;
}

.true-dest-card__tag {
	padding: 0.2rem 0.55rem;
	background: var(--color-gray-100);
	border: 1px solid var(--color-gray-200);
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--color-gray-600);
	line-height: 1.4;
}

.true-dest-card__book {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: auto;
	padding: 0.7rem 1rem;
	background: var(--gradient-primary);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.875rem;
	border: none;
	border-radius: 0.65rem;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	flex-shrink: 0;
}

.true-dest-card__book:hover,
.true-dest-card__book:focus,
.true-dest-card__book:focus-visible {
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(30, 77, 58, 0.28);
}

/* ── Color overrides (global headings) ── */
body.true-travel .true-page--destinations .true-dest-hero__title {
	color: #ffffff;
}

body.true-travel .true-page--destinations .true-dest-hero__subtitle {
	color: rgba(255, 255, 255, 0.92);
}

body.true-travel .true-page--destinations .true-dest-card__title {
	color: #141716;
	font-weight: 800;
}

body.true-travel .true-page--destinations .true-dest-card__desc {
	color: #4a5250;
}

body.true-travel .true-page--destinations .true-dest-card__location,
body.true-travel .true-page--destinations .true-dest-card__duration {
	color: #6b7370;
}

body.true-travel .true-page--destinations .true-dest-card__tag {
	color: #4a5250;
	background: #f5f7f6;
}

body.true-travel .true-page--destinations .true-dest-card__rating {
	color: #1f2423;
}

body.true-travel .true-page--destinations .true-dest-card__book,
body.true-travel .true-page--destinations .true-dest-card__book:hover,
body.true-travel .true-page--destinations .true-dest-card__book:focus,
body.true-travel .true-page--destinations .true-dest-card__book:focus-visible {
	color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
	.true-dest-card,
	.true-dest-card__image img,
	.true-dest-card__book {
		transition: none;
	}

	.true-dest-card:hover {
		transform: none;
	}

	.true-dest-card:hover .true-dest-card__image img {
		transform: none;
	}
}
