/*
 * Helipad Divi modules.
 * Values come from the approved design system: near black ground, warm off white
 * type, one burnt orange accent used sparingly, square corners, nothing bold.
 * 2026-10-22.
 */

.helipad-vt {
	--helipad-accent: #C4713F;
	--helipad-rule: rgba(244, 242, 238, 0.10);
	--helipad-fg: #F4F2EE;
	color: var(--helipad-fg);
}

.helipad-vt__eyebrow {
	margin: 0 0 22px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 14px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--helipad-accent);
}

.helipad-vt__table {
	width: 100%;
	border-collapse: collapse;
	table-layout: auto;
}

/* Divi's table styles add borders and striping. Undo them. */
.helipad-vt__table,
.helipad-vt__table th,
.helipad-vt__table td {
	background: none;
	border: 0;
}

.helipad-vt__th {
	padding: 0 0 14px;
	text-align: left;
	font-weight: 400;
	border-bottom: 1px solid var(--helipad-rule);
}

.helipad-vt__th--time {
	text-align: right;
}

.helipad-vt__th--type {
	width: 1%;
	white-space: nowrap;
}

.helipad-vt__sort,
.helipad-vt__th > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(244, 242, 238, 0.5);
	transition: color 0.3s ease;
}

.helipad-vt__sort {
	cursor: pointer;
}

.helipad-vt__sort:hover,
.helipad-vt__sort:focus-visible {
	color: var(--helipad-fg);
}

.helipad-vt__sort[aria-current="true"] {
	color: var(--helipad-accent);
}

.helipad-vt__arrow {
	font-size: 9px;
	line-height: 1;
	opacity: 0;
}

.helipad-vt__sort[aria-current="true"] .helipad-vt__arrow {
	opacity: 1;
}

.helipad-vt__row {
	border-bottom: 1px solid var(--helipad-rule);
	transition: background-color 0.3s ease;
}

.helipad-vt__row:hover {
	background-color: rgba(244, 242, 238, 0.03);
}

.helipad-vt__td {
	padding: 18px 0;
	vertical-align: middle;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.4;
}

/* The design shifts a row's left padding on hover rather than moving the text. */
.helipad-vt__td--venue {
	padding-left: 0;
	transition: padding-left 0.3s ease;
}

.helipad-vt__row:hover .helipad-vt__td--venue {
	padding-left: 10px;
}

.helipad-vt__name {
	color: var(--helipad-fg);
}

.helipad-vt__county,
.helipad-vt__type {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(244, 242, 238, 0.5);
}

.helipad-vt__county {
	margin-left: 10px;
}

.helipad-vt__td--type {
	text-align: right;
	white-space: nowrap;
	padding-left: 18px;
}

.helipad-vt__td--time {
	text-align: right;
	white-space: nowrap;
	padding-left: 18px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	letter-spacing: 0.08em;
	color: rgba(244, 242, 238, 0.66);
}

/* Icons keep the design's own per-icon sizes: they have different aspect
   ratios and forcing one box on them distorts the silhouettes. */
.helipad-vt__icon {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 40px;
	color: var(--helipad-accent);
}

.helipad-vt__icon svg {
	display: block;
	max-width: 40px;
	height: auto;
}

.helipad-vt__footnote {
	margin: 26px 0 0;
	max-width: 70ch;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.66;
	color: rgba(244, 242, 238, 0.5);
}

.helipad-vt__empty {
	padding: 24px;
	border: 1px dashed var(--helipad-rule);
	color: rgba(244, 242, 238, 0.66);
}

/* Counties move to their own line on narrow screens, as the design specifies. */
@media (max-width: 640px) {
	.helipad-vt__county {
		display: block;
		margin-left: 0;
		margin-top: 4px;
	}

	.helipad-vt__td {
		padding: 14px 0;
		font-size: 15px;
	}

	.helipad-vt__td--type {
		display: none;
	}

	.helipad-vt__th--type {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.helipad-vt__row,
	.helipad-vt__td--venue,
	.helipad-vt__sort {
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* Services                                                            */
/* ------------------------------------------------------------------ */

.helipad-sv {
	--helipad-accent: #C4713F;
	--helipad-rule: rgba(244, 242, 238, 0.10);
	--helipad-fg: #F4F2EE;
	color: var(--helipad-fg);
}

.helipad-sv__eyebrow {
	margin: 0 0 26px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 14px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--helipad-accent);
}

.helipad-sv__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--helipad-rule);
}

.helipad-sv__item {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--helipad-rule);
}

.helipad-sv__head {
	display: flex;
	align-items: flex-start;
	gap: clamp(18px, 2.4vw, 40px);
	width: 100%;
	padding: clamp(26px, 3vw, 40px) 0;
	background: none;
	border: 0;
	text-align: left;
	cursor: pointer;
	color: inherit;
	transition: padding-left 0.3s ease;
}

.helipad-sv__head:hover,
.helipad-sv__head:focus-visible {
	padding-left: 10px;
}

/* Square focus ring in the accent, rather than the browser's rounded blue one. */
.helipad-sv__head:focus-visible,
.helipad-vt__sort:focus-visible {
	outline: 1px solid var(--helipad-accent);
	outline-offset: 4px;
}

.helipad-sv__num {
	flex: 0 0 auto;
	width: 28px;
	padding-top: 6px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	letter-spacing: 0.16em;
	color: var(--helipad-accent);
}

.helipad-sv__headings {
	flex: 1 1 auto;
	min-width: 0;
}

.helipad-sv__title {
	display: block;
	font-family: Calibri, Carlito, Candara, sans-serif;
	font-weight: 400;
	font-size: clamp(22px, 2.1vw, 30px);
	line-height: 1.12;
}

.helipad-sv__lead {
	display: block;
	margin-top: 10px;
	max-width: 70ch;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.66;
	color: rgba(244, 242, 238, 0.58);
}

.helipad-sv__plus {
	position: relative;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 10px;
}

.helipad-sv__plus::before,
.helipad-sv__plus::after {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 16px;
	height: 1px;
	background: rgba(244, 242, 238, 0.5);
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.helipad-sv__plus::after {
	transform: rotate(90deg);
}

.helipad-sv__item.is-open .helipad-sv__plus::after {
	transform: rotate(0deg);
}

.helipad-sv__item.is-open .helipad-sv__plus::before,
.helipad-sv__item.is-open .helipad-sv__plus::after {
	background: var(--helipad-accent);
}

.helipad-sv__panel[hidden] {
	display: none;
}

/* Panel copy lines up under the service title, not under the number. */
.helipad-sv__panelinner {
	padding: 0 0 clamp(30px, 3.4vw, 54px) calc(28px + clamp(18px, 2.4vw, 40px));
	max-width: 100%;
}

.helipad-sv__body {
	max-width: 72ch;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.72;
	color: rgba(244, 242, 238, 0.66);
}

.helipad-sv__body p {
	margin: 0 0 1em;
}

.helipad-sv__points {
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px 32px;
	max-width: 1000px;
}

.helipad-sv__points li {
	position: relative;
	padding-left: 18px;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.66;
	color: rgba(244, 242, 238, 0.58);
}

.helipad-sv__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 11px;
	width: 7px;
	height: 7px;
	background: var(--helipad-accent);
}

.helipad-sv__images {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	margin-top: 32px;
}

.helipad-sv__figure {
	margin: 0;
}

.helipad-sv__img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.helipad-sv__figure figcaption {
	margin-top: 10px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(244, 242, 238, 0.5);
}

.helipad-sv__closing {
	margin: clamp(44px, 6vh, 80px) 0 0;
	text-align: center;
	font-family: Calibri, Carlito, Candara, sans-serif;
	font-weight: 400;
	font-size: clamp(20px, 1.8vw, 26px);
	line-height: 1.3;
}

@media (max-width: 640px) {
	.helipad-sv__head {
		gap: 14px;
		padding: 22px 0;
	}

	.helipad-sv__panelinner {
		padding-left: 0;
	}

	.helipad-sv__points {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.helipad-sv__head,
	.helipad-sv__plus::before,
	.helipad-sv__plus::after {
		transition: none;
	}
}

/* ------------------------------------------------------------------ */
/* Map                                                                 */
/* ------------------------------------------------------------------ */

.helipad-map {
	--helipad-accent: #C4713F;
	--helipad-rule: rgba(244, 242, 238, 0.12);
	--helipad-hq: rgba(178, 74, 60, 0.78);
	--helipad-fg: #F4F2EE;
	--helipad-map-h: clamp(640px, 86vh, 1000px);
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(24px, 3vw, 44px);
	color: var(--helipad-fg);
}

.helipad-map.has-panel {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

/* The map sits inside its own frame. The design uses a fixed layer, which only
   lines up inside the design tool; this is the same look without the trap. */
.helipad-map__frame {
	position: relative;
	overflow: hidden;
	height: var(--helipad-map-h);
	border: 1px solid var(--helipad-rule);
	background: #0C0F12;
}

.helipad-map__svg {
	display: block;
	width: 100%;
	height: 100%;
}

.helipad-map__caption {
	position: absolute;
	top: 22px;
	left: 24px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 10px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(244, 242, 238, 0.5);
	pointer-events: none;
}

.helipad-map__legend {
	position: absolute;
	bottom: 22px;
	left: 24px;
	z-index: 2;
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

.helipad-map__legend li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(244, 242, 238, 0.5);
}

.helipad-map__legend i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(244, 242, 238, 0.5);
}

.helipad-map__legend i.is-major { background: var(--helipad-accent); }
.helipad-map__legend i.is-hq { background: var(--helipad-hq); }

/* Coastlines and graticule */
.helipad-map__grid .hp-hair {
	stroke: rgba(244, 242, 238, 0.05);
}

.helipad-map__neighbours .hp-hair {
	fill: rgba(244, 242, 238, 0.025);
	stroke: rgba(244, 242, 238, 0.10);
}

.helipad-map__uk .hp-coast {
	fill: rgba(244, 242, 238, 0.055);
	stroke: rgba(244, 242, 238, 0.30);
}

/* Origin */
.helipad-map__origin-dot { fill: var(--helipad-fg); }
.helipad-map__origin-ring { stroke: rgba(244, 242, 238, 0.35); }
.helipad-map__origin-label {
	fill: rgba(244, 242, 238, 0.72);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: 0.14em;
}

/* Markers */
.helipad-map__pin {
	cursor: pointer;
	outline: none;
}

.helipad-map__dot {
	fill: rgba(244, 242, 238, 0.5);
	transition: fill 0.25s ease;
}

.helipad-map__pin.is-major .helipad-map__dot { fill: var(--helipad-accent); }
.helipad-map__pin.is-hq .helipad-map__dot { fill: var(--helipad-hq); }

.helipad-map__halo {
	stroke: transparent;
	transition: stroke 0.25s ease;
}

.helipad-map__pin.is-active .helipad-map__dot,
.helipad-map__pin:hover .helipad-map__dot { fill: #DE8C55; }

.helipad-map__pin.is-active .helipad-map__halo,
.helipad-map__pin:hover .helipad-map__halo { stroke: rgba(196, 113, 63, 0.55); }

.helipad-map__pin.is-hq.is-active .helipad-map__halo,
.helipad-map__pin.is-hq:hover .helipad-map__halo { stroke: rgba(178, 74, 60, 0.4); }

.helipad-map__pin:focus-visible .helipad-map__halo { stroke: var(--helipad-accent); }

.helipad-map__label {
	fill: rgba(244, 242, 238, 0.9);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: 0.1em;
	pointer-events: none;
}

.helipad-map__pin.is-hq .helipad-map__label { fill: rgba(244, 242, 238, 0.5); }

.helipad-map__arc {
	stroke: rgba(196, 113, 63, 0.5);
}

/* Detail panel */
.helipad-map__panel {
	padding: clamp(28px, 3.4vw, 54px);
	border: 1px solid var(--helipad-rule);
	background: #0D1013;
}

.helipad-map__panel-event {
	margin: 0 0 14px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--helipad-accent);
}

.helipad-map__panel-name {
	margin: 0 0 26px;
	font-family: Calibri, Carlito, Candara, sans-serif;
	font-weight: 400;
	font-size: clamp(24px, 2.4vw, 34px);
	line-height: 1.1;
}

.helipad-map__panel-from,
.helipad-map__panel-type {
	margin: 0;
	padding-top: 18px;
	border-top: 1px solid var(--helipad-rule);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(244, 242, 238, 0.5);
}

.helipad-map__panel-mins {
	margin: 6px 0 22px;
	font-family: Calibri, Carlito, Candara, sans-serif;
	font-weight: 400;
	font-size: 26px;
	line-height: 1;
}

.helipad-map__panel-blurb {
	margin: 18px 0 28px;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.66;
	color: rgba(244, 242, 238, 0.66);
}

.helipad-map__panel-book {
	display: inline-block;
	padding: 19px 34px;
	background: var(--helipad-fg);
	color: #0A0C0E;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-decoration: none;
}

.helipad-map__panel-book:hover,
.helipad-map__panel-book:focus-visible {
	background: var(--helipad-accent);
	color: var(--helipad-fg);
}

@media (max-width: 980px) {
	.helipad-map.has-panel {
		grid-template-columns: 1fr;
	}

	.helipad-map__frame {
		height: clamp(460px, 70vh, 700px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.helipad-map__dot,
	.helipad-map__halo {
		transition: none;
	}
}

.helipad-map__panel-type {
	display: flex;
	align-items: center;
	gap: 12px;
}

.helipad-map__panel-icon {
	display: inline-flex;
	align-items: center;
	color: var(--helipad-accent);
}

.helipad-map__panel-icon svg {
	display: block;
	max-width: 32px;
	height: auto;
}
