/**
 * Page-level layout helpers. Component styles live in components.css.
 * All visual values use --ztsm-* tokens from WordPress Global Styles.
 */

/* Theme wrappers must not inset plugin pages — gutters live on .ztsm-container */
body.ztsm-full-width #page,
body.ztsm-full-width #content,
body.ztsm-full-width .site-content,
body.ztsm-full-width #primary,
body.ztsm-full-width .site-main {
	max-width: none;
	width: 100%;
	margin-inline: 0;
}

body.ztsm-full-width .ast-container,
body.ztsm-full-width .site-content > .ast-container,
body.ztsm-full-width #content > .ast-container,
body.ztsm-full-width .ast-container-fluid {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
	margin-inline: 0;
}

body.ztsm-full-width .ast-separate-container .ast-article-single,
body.ztsm-full-width.ast-page-builder-template .site-content > .ast-container {
	padding: 0;
	margin: 0;
	max-width: none;
}

.ztsm-single,
.ztsm-archive {
	display: block;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.ztsm-countries__grid,
.ztsm-destinations__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: var(--ztsm-grid-gap);
}

.ztsm-archive .ztsm-countries__header,
.ztsm-archive .ztsm-destinations__header {
	margin-bottom: var(--ztsm-space-6);
}

.ztsm-entity-header {
	margin-bottom: var(--ztsm-space-6);
}

/* ------------------------------------------------------------------ */
/* Destination detail — compact hero, clear hierarchy, wide sections  */
/* Scoped to .ztsm-destination so Safari singles remain independent */
/* ------------------------------------------------------------------ */

.ztsm-destination {
	overflow-x: clip;
}

.ztsm-destination .ztsm-destination-hero.ztsm-hero--bg {
	min-height: 15rem; /* 240px */
	max-height: 20rem; /* 320px */
	margin-bottom: 0;
	align-items: flex-end;
}

@media (min-width: 700px) {
	.ztsm-destination .ztsm-destination-hero.ztsm-hero--bg {
		min-height: 18.75rem; /* 300px */
		max-height: 23.75rem; /* 380px */
	}
}

@media (min-width: 1100px) {
	.ztsm-destination .ztsm-destination-hero.ztsm-hero--bg {
		min-height: 22.5rem; /* 360px */
		max-height: 28.125rem; /* 450px */
	}
}

.ztsm-destination .ztsm-destination-hero.ztsm-hero--bg .ztsm-hero__content {
	padding-block: clamp(1.25rem, 3vw, 2rem);
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(0, 0, 0, calc(var(--ztsm-hero-overlay, 0.45) + 0.15)) 45%,
		rgba(0, 0, 0, calc(var(--ztsm-hero-overlay, 0.45) + 0.4)) 100%
	);
}

.ztsm-destination .ztsm-breadcrumb--on-media,
.ztsm-destination .ztsm-breadcrumb--on-media a {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.875rem;
}

.ztsm-destination .ztsm-breadcrumb--on-media a:hover,
.ztsm-destination .ztsm-breadcrumb--on-media a:focus-visible {
	color: #fff;
}

.ztsm-destination .ztsm-destination-hero__title {
	margin: 0.65rem 0 0.5rem;
	color: #fff;
	font-family: var(--ztsm-font-heading);
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	line-height: 1.15;
}

.ztsm-destination .ztsm-destination-hero__intro {
	margin: 0;
	max-width: 42rem;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.98rem, 1.6vw, 1.1rem);
	line-height: 1.55;
}

.ztsm-destination .ztsm-section {
	padding-top: clamp(2rem, 4vw, 3.25rem);
	padding-bottom: clamp(2rem, 4vw, 3.25rem);
}

.ztsm-destination .ztsm-section--tight {
	padding-top: clamp(1.25rem, 2.5vw, 2rem);
	padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.ztsm-destination .ztsm-section-heading {
	margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
}

.ztsm-destination .ztsm-section-heading__title,
.ztsm-destination .ztsm-section__title,
.ztsm-destination .ztsm-faqs__title {
	margin: 0 0 0.5rem;
	font-family: var(--ztsm-font-heading);
	font-size: clamp(1.45rem, 2.6vw, 1.95rem);
	color: var(--ztsm-color-text);
}

.ztsm-destination .ztsm-section-heading__subtitle {
	margin: 0;
	color: var(--ztsm-color-muted);
	font-size: 0.98rem;
}

.ztsm-destination .ztsm-section-heading--center {
	text-align: center;
}

.ztsm-destination .ztsm-section-heading--center .ztsm-section-heading__subtitle {
	margin-inline: auto;
	max-width: 40rem;
}

.ztsm-destination .ztsm-destination-wildlife .ztsm-wildlife {
	width: 100%;
}

.ztsm-destination .ztsm-facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(0.85rem, 2vw, 1.25rem);
	width: 100%;
}

@media (min-width: 640px) {
	.ztsm-destination .ztsm-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.ztsm-destination .ztsm-facts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ztsm-destination .ztsm-fact {
	padding: 0.85rem 1rem;
	border: 1px solid var(--ztsm-color-border);
	border-radius: var(--ztsm-radius-card);
	background: var(--ztsm-color-surface);
}

.ztsm-destination .ztsm-fact__label {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--ztsm-color-muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ztsm-destination .ztsm-fact__value {
	margin: 0;
	color: var(--ztsm-color-text);
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.4;
}

.ztsm-destination .ztsm-fact__value a {
	color: inherit;
	text-decoration: none;
}

.ztsm-destination .ztsm-fact__value a:hover,
.ztsm-destination .ztsm-fact__value a:focus-visible {
	color: var(--ztsm-color-accent);
	text-decoration: underline;
}

.ztsm-destination .ztsm-prose--wide {
	max-width: none;
	width: 100%;
	color: var(--ztsm-color-text);
	font-size: 1.05rem;
	line-height: 1.7;
}

.ztsm-destination .ztsm-prose--wide > *:first-child {
	margin-top: 0;
}

.ztsm-destination .ztsm-prose--wide > *:last-child {
	margin-bottom: 0;
}

/* Activity / safari / related grids — use available width */
.ztsm-destination .ztsm-grid,
.ztsm-destination .ztsm-activities__grid,
.ztsm-destination .ztsm-safaris__grid {
	display: grid;
	width: 100%;
	gap: clamp(1rem, 2.5vw, 1.5rem);
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.ztsm-destination .ztsm-grid,
	.ztsm-destination .ztsm-activities__grid,
	.ztsm-destination .ztsm-safaris__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.ztsm-destination .ztsm-grid,
	.ztsm-destination .ztsm-activities__grid,
	.ztsm-destination .ztsm-safaris__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ztsm-destination .ztsm-destination-gallery .ztsm-gallery {
	width: 100%;
}

.ztsm-destination .ztsm-faqs {
	max-width: none;
	width: 100%;
}

.ztsm-destination .ztsm-global-cta {
	margin-top: 0;
}

/* ------------------------------------------------------------------ */
/* Country detail — same presentation language as Destination         */
/* ------------------------------------------------------------------ */

.ztsm-country {
	overflow-x: clip;
}

.ztsm-country .ztsm-country-hero.ztsm-hero--bg {
	min-height: 15rem;
	max-height: 20rem;
	margin-bottom: 0;
	align-items: flex-end;
}

@media (min-width: 700px) {
	.ztsm-country .ztsm-country-hero.ztsm-hero--bg {
		min-height: 18.75rem;
		max-height: 23.75rem;
	}
}

@media (min-width: 1100px) {
	.ztsm-country .ztsm-country-hero.ztsm-hero--bg {
		min-height: 22.5rem;
		max-height: 28.125rem;
	}
}

.ztsm-country .ztsm-country-hero.ztsm-hero--bg .ztsm-hero__content {
	padding-block: clamp(1.25rem, 3vw, 2rem);
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(0, 0, 0, calc(var(--ztsm-hero-overlay, 0.45) + 0.15)) 45%,
		rgba(0, 0, 0, calc(var(--ztsm-hero-overlay, 0.45) + 0.4)) 100%
	);
}

.ztsm-country .ztsm-breadcrumb--on-media,
.ztsm-country .ztsm-breadcrumb--on-media a {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.875rem;
}

.ztsm-country .ztsm-breadcrumb--on-media a:hover,
.ztsm-country .ztsm-breadcrumb--on-media a:focus-visible {
	color: #fff;
}

.ztsm-country .ztsm-country-hero__title {
	margin: 0.5rem 0 0.5rem;
	color: #fff;
	font-family: var(--ztsm-font-heading);
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	line-height: 1.15;
}

.ztsm-country .ztsm-country-hero__intro {
	margin: 0;
	max-width: 42rem;
	color: rgba(255, 255, 255, 0.94);
	font-size: clamp(0.98rem, 1.6vw, 1.1rem);
	line-height: 1.55;
}

.ztsm-country .ztsm-section {
	padding-top: clamp(2rem, 4vw, 3.25rem);
	padding-bottom: clamp(2rem, 4vw, 3.25rem);
}

.ztsm-country .ztsm-section--tight {
	padding-top: clamp(1.25rem, 2.5vw, 2rem);
	padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.ztsm-country .ztsm-section-heading {
	margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
}

.ztsm-country .ztsm-section-heading__title,
.ztsm-country .ztsm-section__title,
.ztsm-country .ztsm-faqs__title {
	margin: 0 0 0.5rem;
	font-family: var(--ztsm-font-heading);
	font-size: clamp(1.45rem, 2.6vw, 1.95rem);
	color: var(--ztsm-color-text);
}

.ztsm-country .ztsm-section-heading--center {
	text-align: center;
}

.ztsm-country .ztsm-facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(0.85rem, 2vw, 1.25rem);
	width: 100%;
}

@media (min-width: 640px) {
	.ztsm-country .ztsm-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.ztsm-country .ztsm-facts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ztsm-country .ztsm-fact {
	padding: 0.85rem 1rem;
	border: 1px solid var(--ztsm-color-border);
	border-radius: var(--ztsm-radius-card);
	background: var(--ztsm-color-surface);
}

.ztsm-country .ztsm-fact__label {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--ztsm-color-muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ztsm-country .ztsm-fact__value {
	margin: 0;
	color: var(--ztsm-color-text);
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.4;
}

.ztsm-country .ztsm-prose--wide {
	max-width: none;
	width: 100%;
	color: var(--ztsm-color-text);
	font-size: 1.08rem;
	line-height: 1.7;
}

.ztsm-country .ztsm-prose--wide > *:first-child {
	margin-top: 0;
}

.ztsm-country .ztsm-prose--wide > *:last-child {
	margin-bottom: 0;
}

.ztsm-country .ztsm-country-travel__block {
	margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.ztsm-country .ztsm-country-travel__block:first-of-type {
	margin-top: 0;
}

.ztsm-country .ztsm-country-travel__heading {
	margin: 0 0 0.65rem;
	font-family: var(--ztsm-font-heading);
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	color: var(--ztsm-color-text);
}

.ztsm-country .ztsm-grid,
.ztsm-country .ztsm-activities__grid,
.ztsm-country .ztsm-safaris__grid,
.ztsm-country .ztsm-destinations__grid {
	display: grid;
	width: 100%;
	gap: clamp(1rem, 2.5vw, 1.5rem);
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.ztsm-country .ztsm-grid,
	.ztsm-country .ztsm-activities__grid,
	.ztsm-country .ztsm-safaris__grid,
	.ztsm-country .ztsm-destinations__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.ztsm-country .ztsm-grid,
	.ztsm-country .ztsm-activities__grid,
	.ztsm-country .ztsm-safaris__grid,
	.ztsm-country .ztsm-destinations__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ztsm-country .ztsm-country-gallery .ztsm-gallery {
	width: 100%;
}

.ztsm-country .ztsm-faqs {
	max-width: none;
	width: 100%;
}

.ztsm-country .ztsm-global-cta {
	margin-top: 0;
}

/* ------------------------------------------------------------------ */
/* Activity detail — same presentation language as Destination        */
/* ------------------------------------------------------------------ */

.ztsm-activity {
	overflow-x: clip;
}

.ztsm-activity .ztsm-activity-hero.ztsm-hero--bg {
	min-height: 15rem; /* 240px */
	max-height: 20rem; /* 320px */
	margin-bottom: 0;
	align-items: flex-end;
}

@media (min-width: 700px) {
	.ztsm-activity .ztsm-activity-hero.ztsm-hero--bg {
		min-height: 18.75rem; /* 300px */
		max-height: 23.75rem; /* 380px */
	}
}

@media (min-width: 1100px) {
	.ztsm-activity .ztsm-activity-hero.ztsm-hero--bg {
		min-height: 22.5rem; /* 360px */
		max-height: 28.125rem; /* 450px */
	}
}

.ztsm-activity .ztsm-activity-hero.ztsm-hero--bg .ztsm-hero__content {
	padding-block: clamp(1.25rem, 3vw, 2rem);
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(0, 0, 0, calc(var(--ztsm-hero-overlay, 0.45) + 0.15)) 45%,
		rgba(0, 0, 0, calc(var(--ztsm-hero-overlay, 0.45) + 0.4)) 100%
	);
}

.ztsm-activity .ztsm-breadcrumb--on-media,
.ztsm-activity .ztsm-breadcrumb--on-media a {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.875rem;
}

.ztsm-activity .ztsm-breadcrumb--on-media a:hover,
.ztsm-activity .ztsm-breadcrumb--on-media a:focus-visible {
	color: #fff;
}

.ztsm-activity .ztsm-activity-hero__kicker {
	margin: 0.65rem 0 0.35rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.ztsm-activity .ztsm-activity-hero__title {
	margin: 0 0 0.5rem;
	color: #fff;
	font-family: var(--ztsm-font-heading);
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	line-height: 1.15;
}

.ztsm-activity .ztsm-activity-hero__intro {
	margin: 0;
	max-width: 42rem;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.98rem, 1.6vw, 1.1rem);
	line-height: 1.55;
}

.ztsm-activity .ztsm-section {
	padding-top: clamp(2rem, 4vw, 3.25rem);
	padding-bottom: clamp(2rem, 4vw, 3.25rem);
}

.ztsm-activity .ztsm-section--tight {
	padding-top: clamp(1.25rem, 2.5vw, 2rem);
	padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.ztsm-activity .ztsm-section-heading {
	margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
}

.ztsm-activity .ztsm-section-heading__title,
.ztsm-activity .ztsm-section__title,
.ztsm-activity .ztsm-faqs__title {
	margin: 0 0 0.5rem;
	font-family: var(--ztsm-font-heading);
	font-size: clamp(1.45rem, 2.6vw, 1.95rem);
	color: var(--ztsm-color-text);
}

.ztsm-activity .ztsm-section-heading__subtitle {
	margin: 0;
	color: var(--ztsm-color-muted);
	font-size: 0.98rem;
}

.ztsm-activity .ztsm-facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(0.85rem, 2vw, 1.25rem);
	width: 100%;
}

@media (min-width: 640px) {
	.ztsm-activity .ztsm-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.ztsm-activity .ztsm-facts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ztsm-activity .ztsm-fact {
	padding: 0.85rem 1rem;
	border: 1px solid var(--ztsm-color-border);
	border-radius: var(--ztsm-radius-card);
	background: var(--ztsm-color-surface);
}

.ztsm-activity .ztsm-fact__label {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--ztsm-color-muted);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ztsm-activity .ztsm-fact__value {
	margin: 0;
	color: var(--ztsm-color-text);
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.4;
}

.ztsm-activity .ztsm-fact__value a {
	color: inherit;
	text-decoration: none;
}

.ztsm-activity .ztsm-fact__value a:hover,
.ztsm-activity .ztsm-fact__value a:focus-visible {
	color: var(--ztsm-color-accent);
	text-decoration: underline;
}

.ztsm-activity .ztsm-prose--wide {
	max-width: none;
	width: 100%;
	color: var(--ztsm-color-text);
	font-size: 1.05rem;
	line-height: 1.7;
}

.ztsm-activity .ztsm-prose--wide > *:first-child {
	margin-top: 0;
}

.ztsm-activity .ztsm-prose--wide > *:last-child {
	margin-bottom: 0;
}

.ztsm-activity .ztsm-grid,
.ztsm-activity .ztsm-activities__grid,
.ztsm-activity .ztsm-safaris__grid,
.ztsm-activity .ztsm-destinations__grid {
	display: grid;
	width: 100%;
	gap: clamp(1rem, 2.5vw, 1.5rem);
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.ztsm-activity .ztsm-grid,
	.ztsm-activity .ztsm-activities__grid,
	.ztsm-activity .ztsm-safaris__grid,
	.ztsm-activity .ztsm-destinations__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.ztsm-activity .ztsm-grid,
	.ztsm-activity .ztsm-activities__grid,
	.ztsm-activity .ztsm-safaris__grid,
	.ztsm-activity .ztsm-destinations__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ztsm-activity .ztsm-activity-gallery .ztsm-gallery {
	width: 100%;
}

.ztsm-activity .ztsm-faqs {
	max-width: none;
	width: 100%;
}

.ztsm-activity .ztsm-global-cta {
	margin-top: 0;
}
