/* ==========================================================================
   Championship Course map — [hc_course_map] (inc/course-map.php).
   Colours use Divi global colours; the map artwork keeps the design's
   illustration palette.
   ========================================================================== */

.hc-map {
	--hc-ultra: 'Ultra', 'Rockwell Extra Bold', Rockwell, Georgia, serif;
	display: flex;
	flex-direction: column;
	gap: 20px;
	font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}
.hc-map p,
.hc-map ul,
.hc-map dl,
.hc-map dd,
.hc-map h3 {
	margin: 0;
	padding: 0;
}
.hc-map button {
	font-family: inherit;
	cursor: pointer;
}
.hc-map__row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 24px;
}

/* Map board ---------------------------------------------------------------- */
.hc-map__board {
	position: relative;
	flex: 3 1 760px;
	aspect-ratio: 1388 / 943;
	overflow: hidden;
	border-radius: 4px;
	background: #CDD7BC;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.hc-map__board::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--hc-map-texture) center / cover no-repeat;
	pointer-events: none;
}
.hc-map__svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.hc-map__label {
	position: absolute;
	transform: translate(-50%, -50%);
	color: #2E3829;
	font-size: 11px;
	font-weight: 800;
	font-stretch: 125%;
	letter-spacing: 0.1em;
	line-height: 1.6;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
}
.hc-map__label.is-chip {
	padding: 4px 8px;
	border-radius: 3px;
	background: rgba(251, 249, 243, 0.88);
}
.hc-map__label.is-water {
	color: #2C5566;
}
.hc-map__label.is-pond {
	transform: translate(-100%, -50%);
}
.hc-map__label.is-trail {
	color: #5A4321;
}
.hc-map__label.is-road {
	transform: translate(-50%, -50%) rotate(-14.5deg);
	color: #4A3A1E;
	font-size: 10px;
}
.hc-map__credit {
	position: absolute;
	right: 12px;
	bottom: 10px;
	color: #2E3829;
	font-size: 12px;
	font-style: italic;
	font-weight: 600;
	pointer-events: none;
}

/* Hole markers (44px tap target around a 30px tile). */
.hc-map__marker {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	transform: translate(-50%, -50%);
}
.hc-map__marker span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 30px;
	height: 30px;
	border: 2px solid var(--gcid-hc-card);
	border-radius: 6px;
	background: var(--gcid-primary-color);
	color: var(--gcid-hc-cream);
	box-shadow: 0 3px 8px rgba(8, 26, 12, 0.35);
	font-family: var(--hc-ultra);
	font-size: 13px;
	line-height: 1;
	transition: transform 0.15s ease;
}
.hc-map__marker:hover span {
	transform: scale(1.08);
}
.hc-map__marker.is-selected {
	z-index: 3;
}
.hc-map__marker.is-selected span {
	background: var(--gcid-secondary-color);
	color: var(--gcid-hc-forest);
	box-shadow: 0 0 0 4px rgba(184, 160, 88, 0.5), 0 6px 14px rgba(8, 26, 12, 0.45);
}
.hc-map__marker:focus-visible,
.hc-map__arrows button:focus-visible {
	outline: 3px solid var(--gcid-secondary-color);
	outline-offset: 2px;
}

/* Phones: "swipe the map" hint, and the wrapper the map scrolls in. */
.hc-map__hint {
	display: none;
}
.hc-map__scroll {
	display: contents;
}

/* Selected-hole panel -------------------------------------------------------- */
.hc-map__panel {
	flex: 1 1 320px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	box-sizing: border-box;
	padding: 28px 28px 24px;
	border-radius: 4px;
	background: var(--gcid-hc-cream);
	color: var(--gcid-body-color);
}
.hc-map__panel-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.hc-map__count,
.hc-map__stat dt {
	color: var(--gcid-hc-gold-dark);
	font-size: 12px;
	font-weight: 800;
	font-stretch: 125%;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}
.hc-map__arrows {
	display: flex;
	gap: 8px;
}
.hc-map__arrows button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
}
.hc-map__prev {
	border: 2px solid rgba(10, 67, 4, 0.35);
	background: transparent;
	color: var(--gcid-primary-color);
}
.hc-map__next {
	border: 2px solid var(--gcid-primary-color);
	background: var(--gcid-primary-color);
	color: var(--gcid-hc-cream);
}
.hc-map__prev:hover {
	background: var(--gcid-hc-tan-light);
}
.hc-map__next:hover {
	background: var(--gcid-hc-forest);
	border-color: var(--gcid-hc-forest);
}
.hc-map__title {
	display: flex;
	align-items: flex-end;
	gap: 14px;
}
.hc-map__num {
	flex: 0 0 auto;
	color: var(--gcid-primary-color);
	font-family: var(--hc-ultra);
	font-size: 64px;
	line-height: 0.85;
}
.hc-map .hc-map__name {
	padding-bottom: 2px;
	color: var(--gcid-primary-color);
	font-family: var(--hc-ultra);
	font-size: 26px;
	font-weight: 400;
	line-height: 1.1;
	text-wrap: balance;
}
.hc-map__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 14px 0 !important;
	border-top: 1px solid var(--gcid-hc-line);
	border-bottom: 1px solid var(--gcid-hc-line);
}
.hc-map__stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.hc-map__stat dt {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	letter-spacing: 0.1em;
	line-height: 1.6;
}
.hc-map__stat.par dt {
	letter-spacing: 0.12em;
}
.hc-map__dot {
	width: 9px;
	height: 9px;
	border-radius: 2px;
}
.hc-map__dot.is-red {
	background: var(--gcid-hc-tee-red);
}
.hc-map__dot.is-blue {
	background: var(--gcid-hc-tee-blue);
}
.hc-map__par-m {
	color: var(--gcid-primary-color);
	font-family: var(--hc-ultra);
	font-size: 26px;
	line-height: 1.1;
}
.hc-map__red-m,
.hc-map__blue-m {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}
.hc-map__red-ft,
.hc-map__blue-ft {
	color: var(--gcid-hc-muted);
	font-size: 13px;
	line-height: 1.6;
}
.hc-map__teaser {
	color: var(--gcid-hc-muted);
	font-size: 16px;
	line-height: 1.6;
}
.hc-map .hc-map__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	min-height: 44px;
	margin-top: auto;
	color: var(--gcid-primary-color);
	font-size: 14px;
	font-weight: 800;
	font-stretch: 125%;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}
.hc-map .hc-map__link:hover {
	color: var(--gcid-hc-forest);
}
.hc-map__link svg {
	transition: transform 0.15s ease;
}
.hc-map__link:hover svg {
	transform: translateX(3px);
}

/* Key ------------------------------------------------------------------------ */
.hc-map__key {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 26px;
	list-style: none;
	color: var(--gcid-hc-on-dark);
	font-size: 14px;
	line-height: 1.4;
}
.hc-map__key li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	line-height: 1.4;
}
.hc-map__key-short {
	display: none;
}
.hc-map__swatch {
	flex: 0 0 auto;
	width: 20px;
	height: 10px;
	outline: 1px solid rgba(244, 240, 228, 0.6);
}
.hc-map__swatch.is-red {
	background: var(--gcid-hc-tee-red);
}
.hc-map__swatch.is-blue {
	background: var(--gcid-hc-tee-blue);
}
.hc-map__swatch.is-shared {
	background: linear-gradient(to right, var(--gcid-hc-tee-red) 50%, var(--gcid-hc-tee-blue) 50%);
}
.hc-map__swatch.is-basket {
	box-sizing: border-box;
	width: 12px;
	height: 12px;
	border: 2px solid var(--gcid-secondary-color);
	border-radius: 50%;
	background: var(--gcid-hc-card);
	outline: 0;
}
.hc-map__swatch.is-brook {
	width: 22px;
	height: 4px;
	border-radius: 2px;
	background: #6E9FB4;
	outline: 0;
}
.hc-map__swatch.is-trail {
	width: 22px;
	height: 0;
	border-top: 3px dashed #B08E5C;
	outline: 0;
}
.hc-map__swatch.is-washroom {
	width: 18px;
	height: 17px;
	outline: 0;
}

/* Mobile (Divi phone breakpoint) --------------------------------------------
   The map keeps a readable size (640px wide) and scrolls sideways, edge to
   edge; the selected-hole panel and the key stack below it. */
@media (max-width: 767px) {
	.hc-map {
		gap: 22px;
	}
	.hc-map .hc-map__hint {
		display: flex;
		align-items: center;
		gap: 8px;
		color: var(--gcid-hc-gold-light);
		font-size: 13px;
		font-weight: 700;
		line-height: 1.6;
	}
	.hc-map__hint svg {
		flex: 0 0 auto;
	}
	.hc-map__row {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 22px;
	}
	/* Full-bleed scroller: cancel the row's 20px side padding. */
	.hc-map__scroll {
		display: block;
		margin: 0 -20px;
		padding: 0 20px 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.hc-map__board {
		flex: none;
		width: 640px;
	}
	.hc-map__label.is-chip {
		padding: 3px 7px;
		font-size: 10px;
	}
	.hc-map__label.is-road {
		font-size: 9px;
	}
	.hc-map__credit {
		right: 10px;
		bottom: 8px;
		font-size: 11px;
	}
	.hc-map__marker span {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
	.hc-map__panel {
		flex: none;
		gap: 14px;
		padding: 20px;
	}
	.hc-map__title {
		gap: 12px;
	}
	.hc-map__num {
		font-size: 52px;
	}
	.hc-map .hc-map__name {
		font-size: 22px;
	}
	.hc-map__stats {
		padding: 12px 0 !important;
	}
	.hc-map__par-m {
		font-size: 24px;
	}
	.hc-map__red-m,
	.hc-map__blue-m {
		font-size: 16px;
	}
	.hc-map .hc-map__link {
		margin-top: 0;
	}
	.hc-map__key {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px 16px;
		font-size: 13px;
	}
	.hc-map__key-long {
		display: none;
	}
	.hc-map__key-short {
		display: inline;
	}
}
