/**
 * locations_module.css
 *
 * Styles for template-parts/modules/locations_module.php
 * Two-column layout: left = content + distance groups, right = map image.
 * Distance groups display as 2-column grids of location/time/dot entries.
 */

/* ---------------------------------------------------------------
   Section
--------------------------------------------------------------- */
.locations-module {
	background-color: var(--bg-grey);
	padding: var(--section-pad);
}

.locations-module--white {
	background-color: var(--white);
	padding-top: 30px;
}

.locations-module__inner {
	/*max-width: 1400px;*/
	margin: 0 auto;
}

/* ---------------------------------------------------------------
   Header: subheader + heading-row (heading left, link right)
--------------------------------------------------------------- */
.locations-module__header {
	margin-bottom: 48px;
}

.locations-module__heading-row {
	align-items: flex-end;
	justify-content: space-between;
	display: grid;
	gap: 32px;
	grid-template-columns: 60% 1fr;
}

.locations-module__link {
	display: inline-block;
	flex-shrink: 0;
	justify-self: end;
	align-self: end;
	font-size: 16px;
	font-weight: 700;
	color: var(--blue);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.locations-module__link:hover {
	color: var(--main-color);
}

/* ---------------------------------------------------------------
   Two-column grid: content left, map right
--------------------------------------------------------------- */
.locations-module__grid {
	display: grid;
	grid-template-columns: 30% 1fr;
	gap: 60px;
	align-items: start;
}

/* ---------------------------------------------------------------
   Left column
--------------------------------------------------------------- */
.locations-module__left {
	display: flex;
	flex-direction: column;
}

/* ---------------------------------------------------------------
   Sub header: text + extending rule
--------------------------------------------------------------- */
.locations-module__sub-header {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--black);
	margin: 0 0 12px;
}

.locations-module__sub-header::after {
	content: '';
	display: block;
	flex: 1;
	height: 1px;
	background-color: var(--black);
}

/* ---------------------------------------------------------------
   Heading (WYSIWYG output)
--------------------------------------------------------------- */
.locations-module__heading {
	margin: 0 0 28px;
}

.locations-module__heading h1,
.locations-module__heading h2,
.locations-module__heading h3,
.locations-module__heading p {
	font-size: clamp(30px, 4vw, 60px);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: var(--black);
	margin: 0;
}

/* ---------------------------------------------------------------
   Content (WYSIWYG output)
--------------------------------------------------------------- */
.locations-module__content {
	font-size: 16px;
	line-height: 22px;
	color: var(--black);
	margin-bottom: 48px;
}

.locations-module__content p {
	margin: 0 0 23px;
}

.locations-module__content p:last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------
   Distance groups container
--------------------------------------------------------------- */
.locations-module__distances {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* ---------------------------------------------------------------
   Group heading (e.g. "Walking distance")
--------------------------------------------------------------- */
.locations-module__group-heading {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--black);
	margin: 0 0 10px;
}

/* ---------------------------------------------------------------
   Destinations: 2-column grid within each group
--------------------------------------------------------------- */
.locations-module__destinations {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

/* Individual destination cell */
.locations-module__dest {
	border-top: 1px solid var(--black);
	border-bottom: 1px solid var(--black);
	padding: 10px 0px 8px 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top:-1px
}

/* Location name — small all-caps */
.locations-module__dest-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0em;
	color: var(--black);
	display: block;
	line-height: 1.3;
}

/* Time + dots row */
.locations-module__dest-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
}

/* Large bold time value */
.locations-module__dest-time {
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 900;
	color: var(--black);
	line-height: 1;
	letter-spacing: 0em;
}

/* ---------------------------------------------------------------
   Transport line colour dots
--------------------------------------------------------------- */
.locations-module__dest-dots {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	flex-shrink: 0;
	padding-bottom: 2px;
}

.locations-module__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: block;
	flex-shrink: 0;
}

/* ---------------------------------------------------------------
   Right column: map image
--------------------------------------------------------------- */
.locations-module__right {
	position: sticky;
	top: 80px;
}

.locations-module__map-wrap {
	overflow: hidden;
}

.locations-module__map-img {
	width: 100%;
	height: auto;
	display: block;
}




.locations-module--white .introduction-module__heading {
  font-size: clamp(40px, 4.5vw, 74px);
}


/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */

@media (min-width: 993px) {
	.locations-module__dest:nth-child(odd) {
		margin-right: 30px;
	}
}

@media (max-width: 1100px) {
	.locations-module {
		padding: 60px 20px;
	}

	.locations-module__grid {
		gap: 40px;
	}
}

/* Tablet: stack columns */
@media (max-width: 992px) {
	.locations-module__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}

  .locations-module__right {
    position: static;
    margin-bottom: 22px;
  }

	.locations-module__heading-row {
		grid-template-columns: 100%;
	}

	.introduction-module__heading {
		width: 100%;
	}

	.locations-module__header {
		margin-bottom: 18px;
	}
	.locations-module__content {
		font-size: 15px;
		line-height: 21px;
		margin-bottom: 25px;
	}
  .locations-module__dest:nth-child(2n+1) {
    margin-right: 10px;
  }

}

/* Mobile */
@media (max-width: 600px) {
	.locations-module {
		padding: 0px 20px 40px;
	}


}
