/* ============================================================
   Hub surface — destination hubs + taxonomy pages.
   Migration step 6 (2026-07-02): merge of
   tourszoom-destination-override/assets/destination-hub.css +
   tourszoom-design/assets/taxonomy-hub.css, brand hex tokenized.
   Fix block at the end: glow-card kill + imageless-card fallback.
   Loads on is_tax('tour_destination') / taxonomy hub surfaces.
   ============================================================ */

/* ================= destination-hub (tzdo-*) ================= */
/**
 * ToursZoom Destination Override — hub styles (temporary pre-launch).
 * Brand: navy var(--tz-navy), gold var(--tz-coral), cream #F4EDE3.
 */

.tzdo-hub {
	width: 100%;
}

/* Hero ------------------------------------------------------------------ */
.tzdo-hero {
	position: relative;
	min-height: 260px;
	display: flex;
	align-items: flex-end;
	background: var(--tz-navy);
	overflow: hidden;
}

.tzdo-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tzdo-hero__overlay {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 48px 24px 28px;
	background: linear-gradient( to top, rgba( 16, 61, 98, 0.85 ) 0%, rgba( 16, 61, 98, 0 ) 100% );
}

.tzdo-hero--image .tzdo-hero__title,
.tzdo-hero__title {
	margin: 0 auto;
	max-width: 1100px;
	color: #fff;
	font-size: clamp( 28px, 5vw, 44px );
	line-height: 1.15;
	text-shadow: 0 1px 12px rgba( 0, 0, 0, 0.35 );
}

/* Container ------------------------------------------------------------- */
.tzdo-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 24px 56px;
}

/* Framed widget section (heading + context + body) --------------------- */
.tzdo-section {
	margin: 0 0 48px;
}

.tzdo-section__heading {
	margin: 0 0 10px;
	color: var(--tz-navy);
	font-size: clamp( 20px, 3vw, 27px );
	border-bottom: 3px solid var(--tz-coral);
	padding-bottom: 10px;
}

.tzdo-section__intro {
	margin: 0 0 20px;
	max-width: 760px;
	color: #4a5963;
	font-size: 16.5px;
	line-height: 1.65;
}

.tzdo-section__body {
	width: 100%;
}

/* Let embedded TP widgets use the full container width. */
.tzdo-section__body iframe,
.tzdo-section__body > div {
	max-width: 100% !important;
	width: 100% !important;
}

/* Lede (destination description as magazine intro) --------------------- */
.tzdo-lede {
	font-size: 19px;
	line-height: 1.75;
	color: #243b4a;
	margin: 0 0 40px;
	padding-bottom: 8px;
}

.tzdo-lede p {
	margin: 0 0 1em;
}

.tzdo-lede p:last-child {
	margin-bottom: 0;
}

/* Guides --------------------------------------------------------------- */
.tzdo-guides__heading {
	margin: 0 0 22px;
	color: var(--tz-navy);
	font-size: clamp( 22px, 3vw, 28px );
	border-bottom: 3px solid var(--tz-coral);
	padding-bottom: 10px;
}

.tzdo-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 280px, 1fr ) );
	gap: 24px;
}

.tzdo-card {
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	/* Bare <article> — same Travelfic glow leak as .tzaff-card (travelfic-style.css:69,
	   unneutralized on taxonomy hubs). Own the design-system shadow + zero the 20px inset. */
	padding: 0;
	box-shadow: var(--tz-shadow-card);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tzdo-card:hover {
	box-shadow: 0 10px 28px rgba( 16, 61, 98, 0.14 );
	transform: translateY( -3px );
}

.tzdo-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.tzdo-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f1efea;
}

.tzdo-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tzdo-card__body {
	padding: 16px 18px 20px;
}

.tzdo-card__title {
	margin: 0 0 8px;
	color: var(--tz-navy);
	font-size: 18px;
	line-height: 1.3;
}

.tzdo-card__excerpt {
	margin: 0 0 12px;
	color: #51606b;
	font-size: 14.5px;
	line-height: 1.55;
}

.tzdo-card__more {
	color: #c8862a;
	font-weight: 600;
	font-size: 14.5px;
}

/* Related destinations -------------------------------------------------- */
.tzdo-related {
	margin: 0 0 48px;
}

.tzdo-grid--compact {
	grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	gap: 18px;
}

.tzdo-card--dest .tzdo-card__media {
	aspect-ratio: 4 / 3;
}

.tzdo-card--dest .tzdo-card__body {
	padding: 12px 14px 16px;
}

/* Best time to visit ---------------------------------------------------- */
.tzdo-besttime {
	margin: 0 0 48px;
}

.tzdo-bt-grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 200px, 1fr ) );
	gap: 16px;
	margin: 0 0 18px;
}

.tzdo-bt-card {
	background: #f7f5f0;
	border: 1px solid #e7e1d4;
	border-left-width: 5px;
	border-radius: 10px;
	padding: 14px 18px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.tzdo-bt-card--best {
	border-left-color: #1f9d55;
}

.tzdo-bt-card--shoulder {
	border-left-color: var(--tz-coral);
}

.tzdo-bt-card--avoid {
	border-left-color: #c0563f;
}

.tzdo-bt-label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6a7680;
	font-weight: 700;
}

.tzdo-bt-val {
	font-size: 18px;
	font-weight: 700;
	color: var(--tz-navy);
}

.tzdo-bt-summary {
	font-size: 16.5px;
	line-height: 1.65;
	color: #3a4954;
}

.tzdo-bt-summary p {
	margin: 0 0 1em;
}

.tzdo-bt-summary p:last-child {
	margin-bottom: 0;
}

/* Top attractions ------------------------------------------------------- */
.tzdo-attractions {
	margin: 0 0 48px;
}

.tzdo-attr-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tzdo-attr {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: #f7f5f0;
	border: 1px solid #e7e1d4;
	border-radius: 999px;
	padding: 9px 16px;
	color: var(--tz-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.tzdo-attr::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tz-coral);
	flex: 0 0 auto;
}

/* FAQ ------------------------------------------------------------------- */
.tzdo-faq__item {
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	margin: 0 0 12px;
	background: #fff;
	overflow: hidden;
}

.tzdo-faq__q {
	cursor: pointer;
	padding: 16px 46px 16px 18px;
	position: relative;
	font-weight: 600;
	color: var(--tz-navy);
	font-size: 17px;
	line-height: 1.4;
	list-style: none;
}

.tzdo-faq__q::-webkit-details-marker {
	display: none;
}

.tzdo-faq__q::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY( -50% );
	color: var(--tz-coral);
	font-size: 22px;
	line-height: 1;
}

.tzdo-faq__item[open] .tzdo-faq__q::after {
	content: "\2212"; /* minus */
}

.tzdo-faq__item[open] .tzdo-faq__q {
	border-bottom: 1px solid #eee;
}

.tzdo-faq__a {
	padding: 14px 18px 18px;
	color: #3a4954;
	font-size: 16px;
	line-height: 1.65;
}

.tzdo-faq__a p {
	margin: 0 0 1em;
}

.tzdo-faq__a p:last-child {
	margin-bottom: 0;
}

@media ( max-width: 600px ) {
	.tzdo-hero {
		min-height: 200px;
	}
	.tzdo-container {
		padding: 28px 16px 40px;
	}
}


/* ================= taxonomy-hub (tz-*) ================= */
/**
 * Taxonomy content hub (attractions + activities).
 * Design tokens mirror /work/STATE/design-system.md — navy var(--tz-navy), amber var(--tz-coral),
 * Playfair headings / Inter body (inherited from Customizer), #f4f6f9 sections.
 *
 * @package tourszoom-design
 */

.tzh-hub {
	--tzh-navy: var(--tz-navy);
	--tzh-deep: var(--tz-navy-deep);
	--tzh-amber: var(--tz-coral);
	--tzh-amber-hover: var(--tz-coral);
	--tzh-text: var(--tz-ink);
	--tzh-muted: var(--tz-ink-soft);
	--tzh-alt: #f4f6f9;
	--tzh-border: #e5e7eb;
	color: var(--tzh-text);
}

/* ── Hero ─────────────────────────────────────────────── */
.tzh-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 340px;
	overflow: hidden;
	background: linear-gradient(135deg, var(--tzh-deep) 0%, var(--tz-navy) 55%, var(--tzh-navy) 100%);
}

.tzh-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.tzh-hero__overlay {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 56px 20px 40px;
	background: linear-gradient(to top, rgba(13, 40, 64, 0.86) 0%, rgba(13, 40, 64, 0.45) 55%, rgba(13, 40, 64, 0) 100%);
}

.tzh-hero--plain .tzh-hero__overlay {
	background: none;
}

.tzh-hero__inner {
	max-width: 920px;
	margin: 0 auto;
}

.tzh-eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--tzh-amber);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tzh-hero__title {
	margin: 0;
	color: #fff;
	font-size: 48px;
	line-height: 1.12;
	letter-spacing: -0.01em;
}

.tzh-hero__dest {
	display: inline-block;
	margin-top: 12px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	opacity: 0.92;
}
a.tzh-hero__dest:hover {
	color: var(--tzh-amber);
}

/* ── Container + long content ─────────────────────────── */
.tzh-container {
	max-width: 920px;
	margin: 0 auto;
	padding: 44px 20px 64px;
}

.tzh-content {
	font-size: 17px;
	line-height: 1.7;
	color: var(--tzh-text);
}
.tzh-content p {
	margin: 0 0 1.1em;
}
.tzh-content h2 {
	margin: 1.6em 0 0.5em;
	color: var(--tzh-navy);
	font-size: 30px;
	line-height: 1.2;
}
.tzh-content h3 {
	margin: 1.4em 0 0.4em;
	color: var(--tzh-navy);
	font-size: 23px;
}

/* ── Sections ─────────────────────────────────────────── */
.tzh-section {
	margin-top: 52px;
}
.tzh-section__heading {
	margin: 0 0 22px;
	color: var(--tzh-navy);
	font-size: 30px;
	line-height: 1.2;
}

/* ── Card grids ───────────────────────────────────────── */
.tzh-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.tzh-grid--compact {
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.tzh-card {
	background: #fff;
	border: 1px solid var(--tzh-border);
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.tzh-card:hover {
	box-shadow: 0 10px 28px rgba(16, 61, 98, 0.13);
	transform: translateY(-3px);
}
.tzh-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}
.tzh-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--tzh-alt);
}
.tzh-card__media--term {
	aspect-ratio: 4 / 3;
}
.tzh-card__media--placeholder {
	background: linear-gradient(135deg, var(--tz-navy) 0%, var(--tzh-navy) 100%);
}
.tzh-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tzh-card__body {
	padding: 16px 16px 18px;
}
.tzh-card__title {
	margin: 0 0 8px;
	color: var(--tzh-navy);
	font-size: 19px;
	line-height: 1.3;
}
.tzh-card__title--sm {
	margin: 0;
	font-size: 16px;
}
.tzh-card__excerpt {
	margin: 0 0 12px;
	color: var(--tzh-muted);
	font-size: 14.5px;
	line-height: 1.55;
}
.tzh-card__more {
	color: var(--tzh-navy);
	font-size: 14px;
	font-weight: 600;
}
.tzh-card:hover .tzh-card__more {
	color: var(--tzh-amber-hover);
}

/* ── CTA band ─────────────────────────────────────────── */
.tzh-cta {
	margin-top: 56px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--tzh-deep) 0%, var(--tzh-navy) 100%);
}
.tzh-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 28px 32px;
}
.tzh-cta__text {
	margin: 0;
	color: #fff;
	font-size: 21px;
	font-weight: 600;
}
.tzh-cta__btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 9px;
	background: var(--tzh-amber);
	color: var(--tzh-deep);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.tzh-cta__btn:hover {
	background: var(--tzh-amber-hover);
	color: var(--tzh-deep);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
	.tzh-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.tzh-grid--compact { grid-template-columns: repeat(3, 1fr) !important; }
	.tzh-hero__title { font-size: 36px; }
	.tzh-section__heading, .tzh-content h2 { font-size: 26px; }
}
@media (max-width: 560px) {
	.tzh-grid, .tzh-grid--compact { grid-template-columns: 1fr 1fr !important; }
	.tzh-hero { min-height: 260px; }
	.tzh-hero__title { font-size: 30px; }
	.tzh-cta__inner { flex-direction: column; align-items: flex-start; }
}


/* ================= step-6 fixes ================= */
/* No glow cards on hubs (design rule: one subtle elevation token). */
.tzdo-card,
.tzdo-card:hover {
	box-shadow: var(--tz-shadow-card);
	transform: none;
}
/* Imageless destination cards (audit P0 #5: France/Germany/Portugal
   rendered as blank white boxes): media area always shows a navy
   gradient behind the (possibly missing) image, so the card reads
   as designed with or without a photo. */
.tzdo-card__media {
	background: linear-gradient(150deg, var(--tz-navy) 0%, var(--tz-navy-deep, #0d2840) 100%);
	min-height: 150px;
}
.tzdo-card--dest .tzdo-card__title {
	position: relative;
	z-index: 1;
}
