/*
 * Dog Friendly SLO brand layer for GeoDirectory (AyeCode UI / Bootstrap, scoped to .bsui).
 * Loaded after the plugin's styles. Colors match theme.json.
 */

.bsui {
	--bs-primary: #2a4430;
	--bs-primary-rgb: 42, 68, 48;
	--bs-secondary: #2c74a8;
	--bs-secondary-rgb: 44, 116, 168;
	--bs-link-color: #2c74a8;
	--bs-link-color-rgb: 44, 116, 168;
	--bs-link-hover-color: #2a4430;
	--bs-link-hover-color-rgb: 42, 68, 48;
	--bs-body-font-family: var(--wp--preset--font-family--figtree);
	--bs-font-sans-serif: var(--wp--preset--font-family--figtree);
	--bs-border-radius: 12px;
	--bs-border-radius-lg: 18px;
	--bs-border-color: #d3dee3;
}

.bsui,
.bsui .btn,
.bsui .form-control,
.bsui .form-select {
	font-family: var(--wp--preset--font-family--figtree);
}

.bsui h1,
.bsui h2,
.bsui h3,
.bsui h4,
.bsui .h1,
.bsui .h2,
.bsui .h3,
.bsui .h4,
.bsui .card-title,
.bsui .geodir-entry-title {
	font-family: var(--wp--preset--font-family--bricolage);
	font-weight: 700;
	color: #2a4430;
}

.bsui .card-title a,
.bsui .geodir-entry-title a {
	color: #2a4430;
	text-decoration: none;
}

.bsui .card-title a:hover,
.bsui .geodir-entry-title a:hover {
	color: #2c74a8;
}

/* Buttons */
.bsui .btn {
	border-radius: 999px;
	font-weight: 700;
}

.bsui .btn-primary {
	--bs-btn-bg: #2a4430;
	--bs-btn-border-color: #2a4430;
	--bs-btn-hover-bg: #17251c;
	--bs-btn-hover-border-color: #17251c;
	--bs-btn-active-bg: #17251c;
	--bs-btn-active-border-color: #17251c;
	--bs-btn-disabled-bg: #2a4430;
	--bs-btn-disabled-border-color: #2a4430;
	--bs-btn-focus-shadow-rgb: 44, 116, 168;
	background-color: #2a4430;
	border-color: #2a4430;
	color: #fff;
}

.bsui .btn-primary:hover,
.bsui .btn-primary:focus {
	background-color: #17251c;
	border-color: #17251c;
	color: #fff;
}

.bsui .btn-outline-primary {
	--bs-btn-color: #2a4430;
	--bs-btn-border-color: #2a4430;
	--bs-btn-hover-bg: #2a4430;
	--bs-btn-hover-border-color: #2a4430;
	--bs-btn-active-bg: #2a4430;
	color: #2a4430;
	border-color: #2a4430;
}

.bsui .btn-outline-primary:hover {
	background-color: #2a4430;
	color: #fff;
}

.bsui .btn-secondary {
	background-color: #2c74a8;
	border-color: #2c74a8;
	color: #fff;
}

/* Utility colors used by GeoDirectory templates */
.bsui .text-primary {
	color: #2a4430 !important;
}

.bsui .bg-primary,
.bsui .badge.bg-primary,
.bsui .badge-primary {
	background-color: #2a4430 !important;
	color: #fff !important;
}

.bsui .bg-secondary,
.bsui .badge.bg-secondary {
	background-color: #2c74a8 !important;
}

.bsui .border-primary {
	border-color: #2a4430 !important;
}

.bsui a:not(.btn):not(.badge) {
	color: #2c74a8;
}

.bsui a:not(.btn):not(.badge):hover {
	color: #2a4430;
}

/* Cards and listing grid */
.bsui .card {
	border-color: #d3dee3;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
}

.bsui .card-img-top,
.bsui .geodir-image-container img {
	object-fit: cover;
}

/* Forms (search bar, add listing / suggest a spot) */
.bsui .form-control,
.bsui .form-select {
	border-color: #8fa9b8;
	border-radius: 10px;
	min-height: 44px;
}

.bsui .form-control:focus,
.bsui .form-select:focus {
	border-color: #2c74a8;
	box-shadow: 0 0 0 0.2rem rgba(44, 116, 168, 0.25);
}

.bsui .form-check-input:checked {
	background-color: #2a4430;
	border-color: #2a4430;
}

/* Ratings stars in brand gold-green rather than default yellow */
.bsui .geodir-rating .gd-rating-wrap .gd-rating-foreground,
.bsui .gd-rating-foreground {
	color: #6e9a30;
}

/* Pagination */
.bsui .page-link {
	color: #2a4430;
}

.bsui .page-item.active .page-link,
.bsui .active > .page-link {
	background-color: #2a4430;
	border-color: #2a4430;
	color: #fff;
}
