/*
 * Heritage trails and Arts & culture. Boards: HeritageTownWalk, HeritageWharvesWalk,
 * ArtsCulture (+Phone).
 */

/* Historic photos: greyscale, dated caption */
.historic { filter: grayscale(1); }
figcaption { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--c-muted); }

/* Trail head: text, then cover (3:2 beside the H1 on desktop, 4:3 full width on phones) */
.heritage__head { display: grid; gap: 24px; margin-top: 20px; }
.heritage__cover { margin: 0; }
.heritage__cover img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; border-radius: var(--radius-block); }
.heritage__actions { margin-top: 20px; justify-content: flex-start !important; }
@media (min-width: 1025px) {
	.heritage__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 28px; }
	.heritage__cover img { aspect-ratio: 3 / 2; }
}
.heritage .facts-panel { margin-top: 32px; }

/* Stops beside a sticky route map */
.heritage__body { display: grid; gap: 32px; padding-block: 48px var(--space-section); }
.heritage__map svg { display: block; width: 100%; height: auto; }
.heritage__map p { margin: 8px 0 0; }
@media (min-width: 1025px) {
	.heritage__body { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 72px; }
	.heritage__map { order: 2; position: sticky; top: 24px; }
}
.heritage__stops > p { margin: 8px 0 0; }
.stops { list-style: none; margin-top: 16px; border-bottom: 1px solid var(--c-rule); }
.stop { padding: 24px 0; border-top: 1px solid var(--c-rule); scroll-margin-top: calc(var(--header-height) + 12px); }
.stop__head { display: flex; gap: 14px; align-items: flex-start; }
.stop__where { margin: 0; font-size: 14px; font-weight: 600; color: var(--c-blue); }
.stop__title { margin-top: 2px; font-size: 21px; font-weight: 600; line-height: 1.15; }
.stop__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.stop__body { display: grid; gap: 16px; margin-top: 14px; }
.stop__text p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.stop__photos figure { margin: 0 0 16px; }
.stop__photos img { display: block; width: 100%; height: auto; border-radius: var(--radius-tile); }
@media (min-width: 721px) {
	.stop { padding: 28px 0; }
	.stop__title { font-size: 24px; }
	.stop__text p { font-size: 17px; }
	.stop__body--photo { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
}

.num-badge--lg { min-width: 32px; height: 32px; font-size: 15px; font-weight: 700; }
@media (min-width: 721px) { .num-badge--lg { min-width: 36px; height: 36px; } }
.num-badge--sign { box-shadow: 0 0 0 3px var(--c-flax); }

/* Tag pills on stops: blue outline (Heritage NZ, notes), flax outline (history sign) */
.pill-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border: 1.5px solid var(--c-blue);
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}
.pill-tag--flax { border-color: var(--c-flax); }

/* Arts & culture */
.link-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 14px;
	align-items: center;
	margin-top: 28px;
	padding: 16px 18px;
	border: 1.5px solid var(--c-ironsand);
	border-radius: var(--radius-block);
	color: var(--c-ironsand);
	text-decoration: none;
}
.link-card__text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--c-muted); }
.link-card__text strong { font-size: 18px; font-weight: 600; color: var(--c-ironsand); }
.link-card__link { grid-column: 1 / -1; font-weight: 600; color: var(--c-blue); }
.link-card:hover .link-card__link { text-decoration: underline; }
@media (min-width: 721px) {
	.link-card { grid-template-columns: auto 1fr auto; padding: 18px 24px; }
	.link-card__link { grid-column: auto; }
}

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 24px; }
.section-head p { margin: 0; }

.heritage-cards { list-style: none; display: grid; gap: 32px; }
@media (min-width: 721px) { .heritage-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.heritage-card { display: flex; flex-direction: column; gap: 8px; }
.heritage-card p { margin: 0; font-size: 16px; line-height: 1.45; }
.heritage-card__photo, .heritage-card > .ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }
.heritage-card__name { margin-top: 4px; font-size: 20px; font-weight: 600; line-height: 1.15; }
@media (min-width: 721px) { .heritage-card__name { font-size: 22px; } }
.heritage-card__facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px !important; }
.icon-link { display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch); margin-top: auto; font-weight: 600; text-decoration: none; }
.icon-link:hover { text-decoration: underline; }

.signs { display: grid; gap: 24px; margin-top: 48px; scroll-margin-top: 80px; }
.signs__map { margin: 0; }
.signs__map img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); }
.signs__list { list-style: none; margin-top: 16px; }
.signs__list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--c-rule); }
.signs__list li > span:last-child { display: flex; flex-direction: column; font-size: 16px; }
.signs__list strong { font-weight: 600; }
.signs__list .text-muted { font-size: 14px; }
.signs__list .num-badge { min-width: 26px; height: 26px; }
@media (min-width: 1025px) {
	.signs { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
	.signs__list { column-count: 2; column-gap: 32px; }
	.signs__list li { break-inside: avoid; }
}

/* Timeline: 2px Ironsand rule, flax dot with an Ironsand ring */
.old-school h2 { margin-bottom: 28px; }
.timeline { list-style: none; position: relative; max-width: 760px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--c-ironsand); }
.timeline li { position: relative; padding-bottom: 24px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-flax); box-shadow: 0 0 0 2px var(--c-ironsand); }
.timeline__lead { display: block; font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.timeline p { margin: 4px 0 0; }
@media (min-width: 721px) { .timeline__lead { font-size: 24px; } }

/* Film tiles on navy */
.then-now h2 { margin-bottom: 24px; }
.film-tiles { list-style: none; display: grid; gap: 24px; }
@media (min-width: 721px) { .film-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.film-tile { display: flex; flex-direction: column; gap: 6px; }
.film-tile__frame {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--c-rule-dark);
	border-radius: var(--radius-card);
	background: rgba(255, 249, 238, .06);
}
.film-tile__when { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--c-flax); }
.film-tile__title { color: var(--c-white); font-size: 20px; font-weight: 600; }
.film-tile p { margin: 0; }
