.xgi-directory {
	--xgi-dark: #0F1618;
	--xgi-teal-deep: #1A3C3E;
	--xgi-teal: #2A8389;
	--xgi-teal-light: #51AEB4;
	--xgi-lime: #B6CF36;
	--xgi-white: #FFFFFF;
	font-family: inherit;
	color: var(--xgi-dark);
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 20px;
}

/* This theme's global kit forces h1-h6 to white/huge/capitalized for its
   dark hero sections — override explicitly so installer names stay
   readable on the light card background. */
.xgi-directory h3.xgi-card-title {
	color: var(--xgi-teal-deep) !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-transform: none !important;
}

.xgi-widget {
	max-width: none;
	margin: 0;
	padding: 0;
}

.xgi-widget .xgi-card {
	box-shadow: none;
}

/* Replaces the theme's default page title — this page uses the "Elementor
   Full Width" template specifically so that broken sitewide h1 styling
   (forced white/8em/capitalize) never renders; we own this h1 instead. */
.xgi-hero {
	--xgi-dark: #0F1618;
	--xgi-teal-deep: #1A3C3E;
	--xgi-lime: #B6CF36;
	background: linear-gradient(135deg, var(--xgi-teal-deep), var(--xgi-dark));
	padding: 64px 20px;
	text-align: center;
}

.xgi-hero-inner {
	max-width: 700px;
	margin: 0 auto;
}

.xgi-hero-eyebrow {
	display: inline-block;
	color: var(--xgi-lime);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.xgi-hero-title {
	color: #FFFFFF !important;
	font-size: 38px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	margin: 0 0 12px !important;
}

.xgi-hero-subtitle {
	color: rgba(255, 255, 255, .8) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	margin: 0 !important;
}

@media (max-width: 600px) {
	.xgi-hero {
		padding: 44px 20px;
	}
	.xgi-hero-title {
		font-size: 28px !important;
	}
}

.xgi-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	background: var(--xgi-teal-deep);
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 24px;
}

.xgi-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--xgi-white);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.xgi-field select {
	min-width: 220px;
	padding: 10px 14px;
	border-radius: 6px;
	border: 1px solid var(--xgi-teal);
	background: var(--xgi-white);
	color: var(--xgi-dark);
	font-size: 14px;
}

.xgi-field select:disabled {
	opacity: .6;
}

.xgi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.xgi-card {
	display: flex;
	flex-direction: column;
	background: var(--xgi-white);
	border: 1px solid #e3e8e8;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(15, 22, 24, .06);
	transition: transform .15s ease, box-shadow .15s ease;
}

.xgi-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(15, 22, 24, .12);
}

.xgi-card-map {
	display: block;
	line-height: 0;
	border-bottom: 1px solid #e3e8e8;
}

.xgi-card-map img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

.xgi-card-body {
	padding: 18px;
}

.xgi-card-head {
	display: flex;
	gap: 12px;
	margin-bottom: 10px;
}

.xgi-card-logo {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--xgi-white);
	border: 1px solid #e3e8e8;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
}

.xgi-card-logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.xgi-card-logo-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	background: var(--xgi-teal-deep);
	color: var(--xgi-lime);
	font-size: 26px;
	font-weight: 700;
}

.xgi-card-heading {
	flex: 1;
	min-width: 0;
}

.xgi-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
	color: var(--xgi-dark);
	background: var(--xgi-lime);
}

.xgi-badge-gold {
	background: #F0C94D;
}

.xgi-badge-platinum {
	background: linear-gradient(90deg, #cfd9da, #eef2f2);
	color: var(--xgi-teal-deep);
}

.xgi-card-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	color: var(--xgi-teal-deep);
}

.xgi-card-address,
.xgi-card-phone {
	margin: 0 0 4px;
	font-size: 13px;
	color: #4b5a5b !important;
}

.xgi-card-phone a {
	color: var(--xgi-teal) !important;
	text-decoration: none;
}

.xgi-card-actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.xgi-btn {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	text-decoration: none;
	padding: 8px 14px;
	border-radius: 6px;
	transition: opacity .15s ease;
}

.xgi-btn:hover {
	opacity: .85;
}

.xgi-btn-solid {
	background: var(--xgi-lime);
	color: var(--xgi-dark);
}

.xgi-btn-outline {
	background: transparent;
	color: var(--xgi-teal-deep);
	border: 1px solid var(--xgi-teal);
}

.xgi-empty {
	text-align: center;
	padding: 40px 0;
	color: #6b7a7b;
	font-size: 15px;
}

@media (max-width: 480px) {
	.xgi-field select {
		min-width: 100%;
	}
}
