/* ==========================================================================
   Championship Course page + Hole pages (inc/hole-page.php).
   Hook classes are set on Divi modules (Advanced → CSS Class).
   ========================================================================== */

/* Course status row on dark heroes ------------------------------------------ */
.hc-status-row .hc-status-line.is-closed {
	color: #F5C9A8;
}
.hc-status-row > .et_pb_module {
	width: auto;
	max-width: 100%;
}
@media (max-width: 767px) {
	/* Hole pages: the closed reason takes its own line. */
	.hc-status-row.is-hole > .hc-status-row__note {
		flex: 1 1 100%;
	}
}

/* Hole cards (Championship Course → Hole by hole) ----------------------------- */
.hc-tees p {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}
.hc-tee {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.hc-tee::before {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: var(--gcid-hc-tee-red);
}
.hc-tee.is-blue::before {
	background: var(--gcid-hc-tee-blue);
}
.hc-tee.is-both::before {
	margin-right: 17px;
	box-shadow: 17px 0 0 var(--gcid-hc-tee-blue);
}
.hc-more p {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.hc-more p::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.15s ease;
}
.hc-hole-card {
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.hc-hole-card:hover {
	border-color: rgba(10, 67, 4, 0.35) !important;
	box-shadow: 0 14px 30px -20px rgba(8, 26, 12, 0.45);
}
.hc-hole-card:hover .hc-more p::after {
	transform: translateX(3px);
}

/* Featured hole: the badge appears ("Feature this hole" on) and the card turns green. */
.hc-hole-card:has(.hc-hole-badge) {
	border-color: var(--gcid-primary-color) !important;
	background: var(--gcid-primary-color) var(--hc-topo-gold-22, none) center / cover no-repeat !important;
	box-shadow: 0 18px 40px -22px rgba(8, 26, 12, 0.7) !important;
}
.hc-hole-card:has(.hc-hole-badge) .hc-hole-card__num,
.hc-hole-card:has(.hc-hole-badge) .hc-hole-card__num *,
.hc-hole-card:has(.hc-hole-badge) .hc-more,
.hc-hole-card:has(.hc-hole-badge) .hc-more * {
	color: var(--gcid-hc-gold-light) !important;
}
.hc-hole-card:has(.hc-hole-badge) .hc-hole-card__par {
	background: rgba(244, 240, 228, 0.14) !important;
}
.hc-hole-card:has(.hc-hole-badge) .hc-hole-card__par,
.hc-hole-card:has(.hc-hole-badge) .hc-hole-card__par *,
.hc-hole-card:has(.hc-hole-badge) .hc-hole-card__name * {
	color: var(--gcid-hc-cream) !important;
}
.hc-hole-card:has(.hc-hole-badge) .hc-tees,
.hc-hole-card:has(.hc-hole-badge) .hc-tees * {
	color: var(--gcid-hc-on-dark-lead) !important;
}
.hc-hole-card:has(.hc-hole-badge) .hc-tee::before {
	background: #D9574B;
}
.hc-hole-card:has(.hc-hole-badge) .hc-tee.is-blue::before {
	background: #5B8BD0;
}
.hc-hole-card:has(.hc-hole-badge) .hc-tee.is-both::before {
	background: #D9574B;
	box-shadow: 17px 0 0 #5B8BD0;
}
.hc-hole-card:has(.hc-hole-badge) .hc-hole-card__teaser,
.hc-hole-card:has(.hc-hole-badge) .hc-hole-card__teaser * {
	color: var(--gcid-hc-on-dark-sub) !important;
}

/* Phone rows: a card per hole; the featured hole turns green. */
.hc-hole-row__num p {
	padding: 0 !important;
}
.hc-hole:has(.hc-hole-badge) .hc-hole-row {
	border-color: var(--gcid-primary-color) !important;
	background: var(--gcid-primary-color) !important;
}
.hc-hole:has(.hc-hole-badge) .hc-hole-row__num *,
.hc-hole:has(.hc-hole-badge) .hc-hole-row__num {
	color: var(--gcid-hc-gold-light) !important;
}
.hc-hole:has(.hc-hole-badge) .hc-hole-row__name * {
	color: var(--gcid-hc-cream) !important;
}
.hc-hole:has(.hc-hole-badge) .hc-hole-row__meta * {
	color: var(--gcid-hc-on-dark-lead) !important;
}
.hc-hole:has(.hc-hole-badge) .hc-hole-row__chev path {
	stroke: var(--gcid-hc-gold-light);
}

/* Lists ---------------------------------------------------------------------- */
.hc-ruled-list ul,
.hc-amenities ul,
.hc-ruled-list li,
.hc-amenities li {
	line-height: inherit !important;
}
.hc-ruled-list ul,
.hc-amenities ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.hc-ruled-list ul {
	border-top: 1px solid var(--gcid-hc-line);
}
.hc-ruled-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 !important;
	padding: 14px 0 !important;
	border-bottom: 1px solid var(--gcid-hc-line);
}
.hc-ruled-list li::before,
.hc-amenities li::before {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 12px;
	margin-top: 8px;
	background: var(--gcid-secondary-color);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hc-amenities ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
	gap: 12px 24px;
}
.hc-amenities li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 0 !important;
}
.hc-amenities li::before {
	margin-top: 0;
}
@media (max-width: 767px) {
	.hc-ruled-list li {
		gap: 12px;
		padding: 12px 0 !important;
	}
	.hc-ruled-list li::before {
		margin-top: 7px;
	}
	.hc-amenities ul {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
	.hc-amenities li {
		gap: 10px;
	}
}

/* Hole page --------------------------------------------------------------------- */
.hc-swatch-label p {
	display: flex;
	align-items: center;
	gap: 8px;
}
.hc-swatch-label p::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: #D9574B;
}
.hc-swatch-label.is-blue p::before {
	background: #5B8BD0;
}
/* Stat values: "132 m" with the feet beside it (below it on phones). */
.hc-hole-stat p {
	display: flex;
	align-items: baseline;
	gap: 8px;
	white-space: nowrap;
}
.hc-hole-stat span {
	color: var(--gcid-hc-on-dark);
	font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
}
@media (max-width: 767px) {
	.hc-hole-stats {
		display: grid !important;
		grid-template-columns: 0.7fr 1fr 1fr !important;
		gap: 8px !important;
	}
	.hc-swatch-label p {
		gap: 6px;
	}
	.hc-swatch-label p::before {
		width: 9px;
		height: 9px;
	}
	.hc-hole-stat p {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}
	.hc-hole-stat span {
		font-size: 13px;
		line-height: 1.5;
	}
}

/* Hole map ([hc_hole_diagram]): the "Hole map" image with its labels on top. */
.hc-diagram {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}
.hc-diagram__box {
	position: relative;
	overflow: hidden;
	aspect-ratio: 210 / 292;
	border-radius: 4px;
	background: #DCE2D0;
}
.hc-diagram__box.is-map {
	aspect-ratio: 1 / 1;
	background: #CDD7BC;
}
.hc-diagram__box::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--hc-diagram-texture, none) center / cover no-repeat;
}
.hc-diagram__box > img,
.hc-diagram__box > div,
.hc-diagram__map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.hc-diagram__box > img {
	object-fit: contain;
}
.hc-diagram figcaption {
	color: var(--gcid-hc-muted);
	font-size: 14px;
	line-height: 1.5;
}
/* Labels sit right of / centred on / left of their point; --hc-shift is set by
   hole-map.js when a label would otherwise run off the edge of the map. */
.hc-diagram__label {
	position: absolute;
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 3px;
	background: var(--gcid-hc-card);
	box-shadow: 0 6px 14px -8px rgba(8, 26, 12, 0.5);
	color: var(--gcid-body-color);
	font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	font-size: 12px;
	font-weight: 800;
	font-stretch: 125%;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
	transform: translate(var(--hc-shift, 0px), -50%);
}
.hc-diagram__label.is-center {
	transform: translate(calc(-50% + var(--hc-shift, 0px)), -50%);
}
.hc-diagram__label.is-end {
	transform: translate(calc(-100% + var(--hc-shift, 0px)), -50%);
}
.hc-diagram__label.is-dark {
	background: var(--gcid-primary-color);
	color: var(--gcid-hc-cream);
}
.hc-diagram__label.is-offset {
	margin-left: 18px;
}
@media (max-width: 767px) {
	.hc-diagram__box {
		border-radius: 6px;
	}
	.hc-diagram__label {
		padding: 5px 8px;
		font-size: 11px;
		letter-spacing: 0.08em;
	}
}

/* Previous / next cards ([hc_hole_nav], desktop and tablet). */
.hc-hole-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: 16px;
	font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}
.hc-hole-nav .hc-hole-nav__card {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 28px 32px;
	border: 1px solid var(--gcid-hc-line);
	border-radius: 4px;
	background: var(--gcid-hc-card);
	color: var(--gcid-body-color);
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hc-hole-nav .hc-hole-nav__card:hover {
	border-color: rgba(10, 67, 4, 0.35);
	box-shadow: 0 14px 30px -20px rgba(8, 26, 12, 0.45);
}
.hc-hole-nav__card.is-next {
	justify-content: flex-end;
	text-align: right;
}
.hc-hole-nav__arrow {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--gcid-hc-tan);
	color: var(--gcid-primary-color);
}
.is-next .hc-hole-nav__arrow {
	background: var(--gcid-primary-color);
	color: var(--gcid-hc-cream);
}
.hc-hole-nav__num {
	flex: 0 0 auto;
	color: var(--gcid-primary-color);
	font-family: 'Ultra', 'Rockwell Extra Bold', Rockwell, Georgia, serif;
	font-size: 56px;
	line-height: 1;
}
.hc-hole-nav__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.is-next .hc-hole-nav__text {
	align-items: flex-end;
}
.hc-hole-nav__kicker {
	color: var(--gcid-hc-gold-dark);
	font-size: 12px;
	font-weight: 800;
	font-stretch: 125%;
	letter-spacing: 0.14em;
	line-height: 1.6;
	text-transform: uppercase;
}
.hc-hole-nav__name {
	color: var(--gcid-primary-color);
	font-family: 'Ultra', 'Rockwell Extra Bold', Rockwell, Georgia, serif;
	font-size: 24px;
	line-height: 1.1;
}
.hc-hole-nav__meta {
	color: var(--gcid-hc-muted);
	font-size: 15px;
	line-height: 1.6;
}

/* Previous / next bar ([hc_hole_bar], phones). Its section carries the class
   "hc-hole-bar-wrap" and stays 12px above the bottom of the screen until the
   page scrolls past it. */
.hc-hole-bar-wrap {
	position: sticky;
	bottom: 12px;
	z-index: 5;
	margin: 0 12px;
}
/* Divi's page container hides its overflow, which makes it the bar's scroll
   box and stops the bar sticking to the screen. "clip" hides the same overflow
   without that side effect (hole pages on phones only; browsers without
   "clip" simply leave the bar in its place above "All 18 holes"). */
@media (max-width: 767px) {
	body.single-hole #page-container {
		overflow: clip !important;
	}
}
.hc-hole-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px;
	border: 1px solid rgba(184, 160, 88, 0.45);
	border-radius: 999px;
	background: var(--gcid-hc-forest);
	box-shadow: 0 18px 36px -16px rgba(8, 26, 12, 0.7);
	font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}
.hc-hole-bar .hc-hole-bar__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 14px;
	border-radius: 999px;
	background: rgba(244, 240, 228, 0.08);
	color: var(--gcid-hc-cream);
	font-size: 13px;
	font-weight: 800;
	font-stretch: 125%;
	letter-spacing: 0.06em;
	line-height: 1.6;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}
.hc-hole-bar .hc-hole-bar__link.is-next {
	background: var(--gcid-secondary-color);
	color: var(--gcid-hc-forest);
}
.hc-hole-bar .hc-hole-bar__where {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 0;
	line-height: 1.15;
	text-align: center;
}
.hc-hole-bar__count {
	color: var(--gcid-hc-gold-light);
	font-family: 'Ultra', 'Rockwell Extra Bold', Rockwell, Georgia, serif;
	font-size: 16px;
}
.hc-hole-bar__par {
	color: var(--gcid-hc-on-dark);
	font-size: 11px;
	font-weight: 700;
}

/* All 18 holes ([hc_hole_pager]). */
.hc-hole-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.hc-hole-pager li {
	margin: 0;
	padding: 0 !important;
}
.hc-hole-pager a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 60px;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
	background: var(--gcid-hc-tan);
	color: var(--gcid-primary-color);
	font-family: 'Ultra', 'Rockwell Extra Bold', Rockwell, Georgia, serif;
	font-size: 19px;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.15s ease;
}
.hc-hole-pager a:hover {
	background: var(--gcid-secondary-color);
	color: var(--gcid-hc-forest);
}
.hc-hole-pager a.is-current {
	background: var(--gcid-primary-color);
	color: var(--gcid-hc-cream);
}
@media (max-width: 767px) {
	.hc-hole-pager {
		display: grid;
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
	.hc-hole-pager a {
		display: flex;
		width: auto;
		height: 58px;
		font-size: 18px;
	}
}

/* Copy that the mobile design drops (wrap it in <span class="hc-hide-phone">). */
@media (max-width: 767px) {
	.hc-hide-phone {
		display: none;
	}
}

/* Status note with nothing to say (hole pages show it only when closed). */
.hc-status-row__note:has(.hc-status-line:empty) {
	display: none;
}
