/* ==========================================================================
   Location page. Desktop (lg+) is proportional to the print design (2000 x 1218),
   positions are % of the hero. Below lg everything stacks on navy.
   ========================================================================== */
.loc-hero {
	background: var(--g14-navy, #0e182f);
	color: #fff;
}
.loc-hero__photo {
	display: block;
	width: 100%;
	height: auto;
}
.loc-headline { font-size: 1.75rem; line-height: 1.2; font-weight: 300; }
.loc-headline strong { font-weight: 700; }
.loc-intro { font-weight: 300; line-height: 1.6; max-width: 34rem; }
.loc-intro strong { font-weight: 700; }
.loc-satnav { width: 220px; max-width: 70%; }

@media (min-width: 992px) {
	.loc-hero { position: relative; }
	.loc-hero__content { position: static; padding: 0 !important; }

	.loc-headline,
	.loc-intro,
	.loc-satnav { position: absolute; margin: 0 !important; }

	.loc-headline {
		left: 3.75%;
		top: 11.3%;
		font-size: 2.35vw;
		line-height: 1.2;
		white-space: nowrap;
	}
	.loc-intro {
		left: 57.75%;
		top: 37.4%;
		width: 24%;
		max-width: none;
		font-size: 1.1vw;
		line-height: 1.6;
	}
	.loc-satnav {
		left: 21.5%;
		top: 66.3%;
		width: 15.65%;
		max-width: none;
	}
}

/* ==========================================================================
   Section 2: port panels (port-1-bg / port-2-bg, 2101 x 2560).
   Desktop: a centred frame matching the image ratio, content sized in cqw so it
   scales with the frame. Below lg: stacked on navy with the photo as a banner.
   ========================================================================== */
.loc-panel {
	background: var(--g14-navy, #0e182f);
	color: #fff;
}
.loc-panel__frame { position: relative; }
.loc-panel__bg {
	display: block;
	width: 100%;
	height: 14rem;
	object-fit: cover;
	object-position: 50% 85%;
}

/* Mobile (stacked) */
.loc-port__title { font-size: 1.75rem; line-height: 1.2; font-weight: 300; }
.loc-port__title strong { font-weight: 700; }
.loc-table { width: 100%; font-weight: 300; border-collapse: collapse; table-layout: fixed; }
.loc-table th:nth-child(1) { width: 44%; }
.loc-table th:nth-child(2) { width: 36%; }
.loc-table th:nth-child(3) { width: 20%; }
.loc-table th,
.loc-table td { padding: .3rem .25rem; font-weight: 300; text-align: left; }
.loc-table thead th { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid rgba(255, 255, 255, .5); }
.loc-table tbody th { font-weight: 300; }
.loc-table tbody td:last-child,
.loc-table thead th:last-child { text-align: right; }
.loc-source { font-size: .8rem; opacity: .75; margin: 0; }
.loc-table tfoot td { font-weight: 300; padding-top: .5rem; text-align: left !important; }
.loc-trains__title { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.loc-trains p { font-weight: 300; }
.loc-trains strong { font-weight: 700; }
.loc-quote blockquote { margin: 0; font-size: 1.6rem; line-height: 1.35; font-weight: 300; }
.loc-quote strong { font-weight: 300; }
.loc-shipping { display: block; height: auto; width: 220px; max-width: 70%; margin: 0 auto; }
.loc-map,
.loc-worldmap { display: block; width: 100%; height: auto; }
.loc-worldmap { margin-top: 1.5rem; }
/* Mobile: the port photos are hidden, content stacks on navy */
@media (max-width: 991.98px) {
	.loc-panel__bg { display: none; }
}

/* Desktop: one spread, design 2000 x 1218. 1cqw = 20 design px. */
.loc-spread__bg { display: none; }
@media (min-width: 992px) {
	.loc-spread {
		position: relative;
		overflow: hidden;
		container-type: inline-size;
		aspect-ratio: 2000 / 1218;
		background: var(--g14-navy, #0e182f);
		color: #fff;
	}
	.loc-spread__bg {
		display: block;
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	/* wrappers vanish so every element positions against the spread */
	.loc-panel,
	.loc-panel__frame,
	.loc-panel__content { display: contents; }
	.loc-panel__bg { display: none; }

	.loc-port__title,
	.loc-table,
	.loc-trains,
	.loc-quote,
	.loc-shipping,
	.loc-map,
	.loc-worldmap { position: absolute; margin: 0 !important; text-shadow: 0 0 .5cqw rgba(14, 24, 47, .45); }
	.loc-shipping, .loc-map, .loc-worldmap { text-shadow: none; }

	.loc-port__title { left: 3.6cqw; top: 6.1cqw; font-size: 2.25cqw; line-height: 1.15; white-space: nowrap; }

	.loc-table { font-size: .7cqw; line-height: 1.2cqw; width: 14cqw; table-layout: auto; }
	.loc-table th,
	.loc-table td { padding: 0; height: 1.2cqw; line-height: 1.2cqw; white-space: nowrap; }
	.loc-table th:nth-child(1),
	.loc-table th:nth-child(2) { width: auto; }
	.loc-table th:nth-child(3) { width: 2.95cqw; }
	.loc-table thead th:nth-child(2),
	.loc-table tbody td:nth-child(2) { text-align: right; }
	.loc-table thead th { letter-spacing: .02em; border-bottom-width: 1px; }
	.loc-table--locations { left: 8.7cqw; top: 11.85cqw; }
	.loc-table--ports     { left: 26.3cqw; top: 11.85cqw; }
	.loc-table--airports  { left: 26.3cqw; top: 17.9cqw; }
	.loc-source { font-size: .65cqw; }
	.loc-table tfoot td { height: auto; padding-top: 1.3cqw; }

	.loc-trains { left: 8.7cqw; top: 25.1cqw; width: 32cqw; font-size: .7cqw; line-height: .95cqw; }
	.loc-trains__title { font-size: .75cqw; line-height: .85cqw; margin: 0; }
	.loc-trains p { margin: 0 0 .25cqw; line-height: .95cqw; }
	.loc-trains .loc-source { line-height: .95cqw; }

	.loc-quote { left: 11.05cqw; top: 31.2cqw; width: 31cqw; }
	.loc-quote blockquote { font-size: 1.35cqw; line-height: 1.8cqw; text-align: left; }

	.loc-shipping { left: 4.1cqw; top: 44.75cqw; width: 12cqw; max-width: none; }

	.loc-map {
		left: 51.1cqw; top: 3.6cqw; width: 47.65cqw;
		-webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 97%);
		mask-image: linear-gradient(to bottom, #000 80%, transparent 97%);
	}
	.loc-worldmap { left: 51.15cqw; top: 43.3cqw; width: 37.1cqw; }
}
