/* ==========================================================================
   GDUE Business Directory — styling
   Brand tokens pulled from the live site: deep green header, gold accent nav
   ========================================================================== */

.gdue-directory {
	--gdue-dark-green: #0b2f1e;
	--gdue-green: #1c7a3e;
	--gdue-green-dark: #14562c;
	--gdue-gold: #f0a91e;
	--gdue-gold-dark: #d9930f;
	--gdue-text: #1c2a22;
	--gdue-muted: #6b7770;
	--gdue-border: #e6ebe6;
	--gdue-bg-soft: #f6f9f6;

	max-width: 1280px;
	margin: 0 auto;
	padding: 60px 24px 90px;
	font-family: inherit;
	color: var(--gdue-text);
}

/* ---------- Filters ---------- */
.gdue-directory__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: stretch;
	background: #fff;
	border: 1px solid var(--gdue-border);
	border-radius: 14px;
	padding: 16px 18px;
	margin-bottom: 40px;
	box-shadow: 0 6px 24px rgba(11, 47, 30, 0.06);
}

.gdue-filter {
	position: relative;
	flex: 1 1 200px;
}

.gdue-filter--search {
	flex: 2 1 280px;
}

.gdue-filter__icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--gdue-muted);
	pointer-events: none;
	display: flex;
}

.gdue-directory__search {
	width: 100%;
	height: 48px !important;
	min-height: 48px !important;
	box-sizing: border-box !important;
	padding: 0 14px 0 40px !important;
	margin: 0 !important;
	border: 1.5px solid var(--gdue-border) !important;
	border-radius: 10px;
	font-size: 15px;
	line-height: 46px !important;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background: var(--gdue-bg-soft);
}

.gdue-directory__search:focus {
	border-color: var(--gdue-gold);
	box-shadow: 0 0 0 3px rgba(240, 169, 30, 0.18);
	background: #fff;
}

.gdue-filter select {
	width: 100%;
	height: 48px !important;
	min-height: 48px !important;
	box-sizing: border-box !important;
	padding: 0 36px 0 14px !important;
	margin: 0 !important;
	border: 1.5px solid var(--gdue-border) !important;
	border-radius: 10px;
	font-size: 15px;
	line-height: 46px !important;
	background: var(--gdue-bg-soft);
	color: var(--gdue-text);
	cursor: pointer;
	outline: none;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'><path d='M6 9l6 6 6-6' stroke='%236b7770' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	transition: border-color 0.2s ease;
}

.gdue-filter select:focus {
	border-color: var(--gdue-gold);
}

.gdue-directory__apply-btn {
	flex: 0 0 auto;
	height: 48px;
	padding: 0 24px;
	border: none;
	border-radius: 10px;
	background: var(--gdue-gold);
	color: var(--gdue-dark-green);
	font-weight: 800;
	font-size: 14.5px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
	white-space: nowrap;
}

.gdue-directory__apply-btn:hover {
	background: var(--gdue-gold-dark);
	transform: translateY(-1px);
}

@media (max-width: 640px) {
	.gdue-directory__apply-btn {
		width: 100%;
	}
}

/* ---------- Grid ---------- */
.gdue-directory__grid {
	display: grid;
	grid-template-columns: repeat(var(--gdue-cols, 3), minmax(0, 1fr));
	gap: 28px;
}

@media (max-width: 991px) {
	.gdue-directory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.gdue-directory__grid { grid-template-columns: 1fr; }
	.gdue-directory { padding: 40px 16px 60px; }
}

/* ---------- Card ---------- */
.gdue-card {
	background: #fff;
	border: 1px solid var(--gdue-border);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gdue-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(11, 47, 30, 0.14);
	border-color: transparent;
}

.gdue-card__logo {
	height: 150px;
	background: linear-gradient(135deg, var(--gdue-dark-green), var(--gdue-green));
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.gdue-card__logo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 30% 20%, rgba(240, 169, 30, 0.25), transparent 60%);
}

.gdue-card__logo img {
	max-height: 84px;
	max-width: 72%;
	object-fit: contain;
	background: #fff;
	border-radius: 10px;
	padding: 8px;
	position: relative;
	z-index: 1;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.gdue-card__logo-fallback {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--gdue-gold);
	color: var(--gdue-dark-green);
	font-weight: 800;
	font-size: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.gdue-card__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.gdue-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.gdue-badge {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--gdue-gold-dark);
	background: rgba(240, 169, 30, 0.14);
	border: 1px solid rgba(240, 169, 30, 0.35);
	padding: 4px 10px;
	border-radius: 999px;
}

.gdue-card__title {
	font-size: 19px;
	font-weight: 800;
	color: var(--gdue-dark-green);
	margin: 0 0 6px;
	line-height: 1.3;
}

.gdue-card__address {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--gdue-muted);
	margin: 0 0 10px;
}

.gdue-card__address svg { flex-shrink: 0; color: var(--gdue-gold-dark); }

.gdue-card__desc {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--gdue-muted);
	margin: 0 0 18px;
	flex: 1;
}

.gdue-card__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gdue-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-weight: 700;
	font-size: 13.5px;
	border-radius: 9px;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
	cursor: pointer;
	border: none;
}

.gdue-btn--primary {
	flex: 1;
	background: var(--gdue-gold);
	color: var(--gdue-dark-green);
	padding: 11px 16px;
}

.gdue-btn--primary:hover {
	background: var(--gdue-gold-dark);
	transform: translateY(-1px);
}

.gdue-btn--icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	background: var(--gdue-bg-soft);
	color: var(--gdue-dark-green);
	border: 1.5px solid var(--gdue-border);
}

.gdue-btn--icon:hover {
	background: var(--gdue-dark-green);
	color: #fff;
	border-color: var(--gdue-dark-green);
}

/* ---------- Empty states ---------- */
.gdue-directory__empty,
.gdue-directory__empty-initial {
	text-align: center;
	padding: 60px 20px;
	color: var(--gdue-muted);
	font-size: 15px;
	grid-column: 1 / -1;
}

/* ---------- Filtered-out cards ---------- */
.gdue-card.is-hidden {
	display: none;
}

/* ---------- Pagination ---------- */
.gdue-directory__pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 40px;
}

.gdue-directory__page-btn {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1.5px solid var(--gdue-border);
	border-radius: 8px;
	background: #fff;
	color: var(--gdue-dark-green);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gdue-directory__page-btn:hover:not(:disabled) {
	background: var(--gdue-bg-soft);
	border-color: var(--gdue-gold);
}

.gdue-directory__page-btn.is-active {
	background: var(--gdue-gold);
	border-color: var(--gdue-gold);
	color: var(--gdue-dark-green);
}

.gdue-directory__page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
