/**
 * My Business — front-end + admin styles. Standalone stylesheet: every
 * class this plugin's own templates use is defined here, so the plugin
 * looks correct whether or not Lead Agency (or anything else) is also
 * active. Ported unchanged from the original combined plugin's
 * stylesheet, split out to just the listings/reviews/comparison rules.
 */

.mb-listings-filters {
	background: #fff;
	border: 1px solid #e2e5ea;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(20, 25, 40, 0.06);
	padding: 1.2em 1.4em;
	margin-bottom: 1.8em;
}

.mb-listings-filters-row {
	display: flex;
	gap: 0.75em;
	flex-wrap: wrap;
	margin-bottom: 0.75em;
}

.mb-listings-filters-row:last-child { margin-bottom: 0; }

.mb-listings-filters input[type="text"],
.mb-listings-filters input[type="tel"],
.mb-listings-filters input[type="email"],
.mb-listings-filters select {
	flex: 1 1 180px;
	min-width: 140px;
	padding: 0.65em 0.85em;
	font-size: 0.95em;
	color: #1f2430;
	background: #fbfbfc;
	border: 1px solid #d3d7de;
	border-radius: 6px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mb-listings-filters input:focus,
.mb-listings-filters select:focus {
	outline: none;
	border-color: #3b6cd4;
	box-shadow: 0 0 0 3px rgba(59, 108, 212, 0.15);
	background: #fff;
}

.mb-listings-filters-advanced {
	padding-top: 0.6em;
	margin-top: 0.2em;
	border-top: 1px solid #eceef2;
}

.mb-listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5em; }

.mb-listings-directory {
	/* Generous, unconditional bottom margin on the OUTER wrapper — not
	   on the grid or pagination individually — so there's always clean
	   separation from whatever comes after the shortcode in the page,
	   regardless of whether pagination or the (usually hidden, display:
	   none until a checkbox is ticked) compare bar happen to be present.
	   Without this, a page that adds its own content/SEO copy after
	   [mb_listings] (a common pattern — see the Search Partners page)
	   had that content sitting flush against the last card row with no
	   gap at all, which read as the two sections visually overlapping. */
	margin-bottom: 3.5em;
}

.mb-listing-card { border-radius: 6px; }

.mb-listing-cta { display: inline-block; margin-top: 0.5em; font-weight: 600; }

.mb-single-listing .mb-listing-terms { margin: 0.5em 0 1em; color: #666; }

.mb-listing-rating-summary { display: flex; align-items: center; gap: 0.5em; margin: 0.5em 0 1em; }

.mb-listing-rating { display: flex; align-items: center; gap: 0.4em; margin: 0.3em 0; font-size: 0.9em; }

.mb-review-item:last-child { border-bottom: none !important; }

.mb-compare-select {
	display: block;
	font-size: 0.85em;
	color: #555;
	margin-bottom: 0.5em;
}

.mb-listing-identity {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin-bottom: 0.4em;
}

.mb-listing-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 4px;
	flex-shrink: 0;
}

.mb-listing-pricing,
.mb-listing-trust {
	font-size: 0.85em;
	margin-top: 0.4em;
}

.mb-profile-card {
	background: #fff;
	border: 1px solid #e2e5ea;
	border-radius: 10px;
	padding: 1.2em;
	box-shadow: 0 1px 4px rgba(20, 25, 40, 0.05);
	transition: box-shadow 0.15s ease, transform 0.1s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

.mb-profile-card:hover {
	box-shadow: 0 4px 14px rgba(20, 25, 40, 0.1);
	transform: translateY(-2px);
}

.mb-listing-logo-link { flex-shrink: 0; }

.mb-listing-logo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: #eef3fc;
	color: #3b6cd4;
	font-weight: 700;
	font-size: 1.3em;
}

.mb-listing-name { margin: 0 0 0.2em; font-size: 1.05em; line-height: 1.3; }

.mb-listing-name a { text-decoration: none; color: inherit; }

.mb-listing-name a:hover { color: #3b6cd4; }

.mb-listing-meta-desc {
	color: #555;
	font-size: 0.92em;
	margin: 0.7em 0;
	line-height: 1.5;
}

.mb-profile-card .mb-listing-terms { margin: 0 0 0.9em; }

.mb-profile-card-actions {
	margin-top: auto;
	padding-top: 0.8em;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8em;
	border-top: 1px solid #f0f1f3;
}

.mb-compare-bar {
	position: sticky;
	bottom: 0;
	background: #2c3e50;
	color: #fff;
	padding: 0.8em 1.2em;
	display: flex;
	align-items: center;
	gap: 1em;
	border-radius: 6px 6px 0 0;
	margin-top: 1em;
}

.mb-compare-bar a { color: #fff; }

.mb-compare-bar .button { background: #3b6cd4; padding: 0.4em 1em; border-radius: 4px; text-decoration: none; }

.mb-compare-table-wrap { overflow-x: auto; }

.mb-compare-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 1em 0;
}

.mb-compare-table td {
	vertical-align: top;
	min-width: 220px;
	max-width: 260px;
	padding: 1em;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
}

.mb-listing-cta-btn {
	display: inline-block;
	padding: 0.75em 2em;
	font-size: 1.05em;
	font-weight: 600;
	color: #fff !important;
	background: #3b6cd4;
	border-radius: 6px;
	text-decoration: none !important;
	box-shadow: 0 2px 8px rgba(59, 108, 212, 0.25);
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.mb-listing-cta-btn:hover {
	background: #2f57ab;
	box-shadow: 0 4px 12px rgba(59, 108, 212, 0.35);
}

.mb-listing-cta-btn:active { transform: translateY(1px); }

.mb-listing-reviews-btn {
	display: inline-block;
	padding: 0.25em 0.9em;
	font-size: 0.85em;
	font-weight: 600;
	color: #3b6cd4;
	background: #eef3fc;
	border-radius: 12px;
	text-decoration: none;
}

.mb-listing-reviews-btn:hover { background: #dfe9fb; }

.mb-star-picker {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 0.1em;
}

.mb-star-picker input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.mb-star-picker label {
	cursor: pointer;
	font-size: 2em;
	line-height: 1;
	color: #d3d7de;
	transition: color 0.15s ease;
}

.mb-star-picker input:checked ~ label,
.mb-star-picker label:hover,
.mb-star-picker label:hover ~ label {
	color: #f5a623;
}

.mb-card-website-link {
	font-size: 0.85em;
	color: #666;
	text-decoration: none;
}
.mb-card-website-link:hover { color: #3b6cd4; }
.mb-card-details-btn {
	display: inline-block;
	padding: 0.45em 1.1em;
	font-size: 0.88em;
	font-weight: 600;
	color: #fff;
	background: #3b6cd4;
	border-radius: 5px;
	text-decoration: none;
	margin-left: auto;
}
.mb-card-details-btn:hover { background: #2f57ab; color: #fff; }

/* Generic utility classes duplicated here (not shared with Lead Agency,
   by design — this plugin is fully standalone) so the plugin looks
   correct on its own pages even if Lead Agency isn't installed at all. */
.description { color: #666; font-size: 0.9em; }
.mb-notice { padding: 0.8em 1em; border-radius: 4px; margin: 1em 0; }
.mb-notice-success { background: #e7f7ec; border: 1px solid #34a853; }
.mb-notice-error { background: #fdecea; border: 1px solid #d93025; }
.mb-notice-info { background: #eef3fc; border: 1px solid #3b6cd4; }
.mb-table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.mb-table th, .mb-table td { text-align: left; padding: 0.5em 0.75em; border-bottom: 1px solid #eee; }
.mb-status { padding: 0.15em 0.6em; border-radius: 3px; font-size: 0.85em; }
.mb-status-pending { background: #fff4d6; }
.mb-status-approved, .mb-status-paid { background: #e0f2e9; }
.mb-status-rejected { background: #fdecea; }
