/* ==========================================================
   GOLF COMMUNITY LIVING
   COMPONENTS
   ========================================================== */



/* ==========================================================
   BUTTONS
   ========================================================== */

.gl-button,
.gl-button:link,
.gl-button:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;

	min-height: 44px;
	padding: 11px 20px;

	border: 1px solid transparent;
	border-radius: 999px;

	background: var(--gl-primary);
	color: #fff;

	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;

	cursor: pointer;

	transition:
		transform .18s ease,
		background .18s ease,
		border-color .18s ease,
		color .18s ease;
}

.gl-button:hover,
.gl-button:focus {
	background: var(--gl-primary-dark);
	border-color: var(--gl-primary-dark);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.gl-button:focus-visible {
	outline: 3px solid rgba(22, 63, 107, .22);
	outline-offset: 3px;
}


/* Accent button */

.gl-button--accent,
.gl-button--accent:link,
.gl-button--accent:visited {
	background: var(--gl-accent);
	border-color: var(--gl-accent);
	color: #111;
}

.gl-button--accent:hover,
.gl-button--accent:focus {
	background: #fff0a3;
	border-color: #fff0a3;
	color: #111;
}


/* Ghost / outline button */

.gl-button--ghost,
.gl-button--ghost:link,
.gl-button--ghost:visited {
	background: transparent;
	border-color: var(--gl-primary);
	color: var(--gl-primary);
}

.gl-button--ghost:hover,
.gl-button--ghost:focus {
	background: var(--gl-primary-dark);
	border-color: var(--gl-primary-dark);
	color: #fff;
}

.gl-button--full {
	width: 100%;
}


/* ==========================================================
   EYEBROWS
   ========================================================== */

.gl-eyebrow {
	display: block;

	margin: 0 0 10px;

	color: var(--gl-primary);

	font-size: .78rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .12em;
	text-transform: uppercase;
}


/* ==========================================================
   SECTION HEADINGS
   ========================================================== */

.gl-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;

	margin-bottom: clamp(24px, 4vw, 42px);
}

.gl-section-head h2 {
	margin-top: 0;
	margin-bottom: 8px;
}

.gl-section-head p {
	max-width: 720px;
	margin: 0;

	color: var(--gl-muted);
	line-height: 1.65;
}


/* ==========================================================
   CARDS
   ========================================================== */

.gl-card {
	position: relative;

	display: flex;
	flex-direction: column;

	min-width: 0;
	overflow: hidden;

	background: #fff;

	border: 1px solid var(--gl-border);
	border-radius: var(--gl-radius);

	box-shadow: 0 4px 18px rgba(18, 30, 22, .06);

	transition:
		transform .2s ease,
		box-shadow .2s ease;
}

.gl-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--gl-shadow-hover);
}


/* Card Media */

.gl-card__media {
	position: relative;

	overflow: hidden;

	aspect-ratio: 16 / 10;

	background: #e9ece9;
}

.gl-card__media img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition: transform .35s ease;
}

.gl-card:hover .gl-card__media img {
	transform: scale(1.025);
}


/* Card Body */

.gl-card__body {
	flex: 1;
	padding: 20px;
}


/* Card Title */

.gl-card__title {
	margin: 0 0 8px;

	font-size: 1.3rem;
	line-height: 1.25;
}

.gl-card__title a {
	color: inherit;
	text-decoration: none;
}

.gl-card__title a:hover {
	color: var(--gl-primary);
}


/* Card Meta */

.gl-card__meta {
	margin: 0;

	color: var(--gl-muted);

	font-size: .94rem;
	line-height: 1.5;
}


/* Card Footer */

.gl-card__footer {
	padding: 0 20px 20px;
}


/* ==========================================================
   FEATURED COMMUNITY FLAG
   ========================================================== */

.gl-card__featured {
	position: absolute;
	top: 16px;
	right: 0;
	z-index: 3;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 8px 16px;

	background: rgba(0, 0, 0, .72);
	color: #fff;

	border: 0;
	border-radius: 0;

	box-shadow: 0 3px 8px rgba(0, 0, 0, .15);

	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .10em;
	text-transform: uppercase;
}


/* ==========================================================
   PILLS
   ========================================================== */

.gl-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.gl-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	padding: 8px 14px;

	background: #fff;
	color: #34413a;

	border: 1px solid var(--gl-border);
	border-radius: 999px;

	font-size: .9rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;

	transition:
		background .18s ease,
		border-color .18s ease,
		color .18s ease,
		transform .18s ease;
}

.gl-pill:hover {
	background: var(--gl-accent);
	border-color: var(--gl-accent);
	color: #111;
	text-decoration: none;
	transform: translateY(-1px);
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 700px) {

	.gl-section-head {
		display: block;
	}

	.gl-section-head .gl-button {
		margin-top: 18px;
	}

}


@media (max-width: 480px) {

	.gl-button {
		min-height: 44px;
		padding: 10px 18px;
	}

}