/* ── BB Premium: Credit by City ────────────────────────────────────────────
 * Shared "Credit Links" base (identical in credit-by-term.css / credit-by-amount.css)
 * + a unique "spotlight" marketing variant for this widget.
 * ────────────────────────────────────────────────────────────────────────── */

.bbpe-cl {
	--bbpe-cl-accent: #2563eb;
	--bbpe-cl-accent-soft: #eff6ff;
	--bbpe-cl-cols: 3;
	--bbpe-cl-gap: 16px;
	--bbpe-cl-justify: flex-start;
	width: 100%;
}

.bbpe-cl__heading {
	margin: 0 0 1.25rem;
	font-size: 1.375rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}

.bbpe-cl__grid {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bbpe-cl-gap);
	justify-content: var(--bbpe-cl-justify);
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ── Item base (shared by pills & cards) ─────────────────────────────────── */
.bbpe-cl__item {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #0f172a;
	background: #fff;
	border: 1px solid #e2e8f0;
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.bbpe-cl__item--featured {
	border-color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
}

.bbpe-cl__icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent-soft));
}

.bbpe-cl__icon {
	font-size: 22px;
	line-height: 1;
	color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
}
.bbpe-cl__icon svg { width: 1em; height: 1em; fill: currentColor; }

.bbpe-cl__label {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

.bbpe-cl__badge {
	position: absolute;
	top: -10px;
	right: 14px;
	background: var(--bbpe-cl-accent);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
	z-index: 1;
}

/* Used by list-row variants (stack / ledger) where the badge sits inline
 * instead of floating above the item. */
.bbpe-cl__badge--inline {
	position: static;
	transform: none;
	margin: 0 8px;
}

/* ── Pills variant ────────────────────────────────────────────────────────── */
.bbpe-cl--pills .bbpe-cl__item {
	padding: 10px 20px;
	border-radius: 999px;
}
.bbpe-cl--pills .bbpe-cl__icon-wrap { width: 28px; height: 28px; background: transparent; }
.bbpe-cl--pills .bbpe-cl__icon { font-size: 16px; }
.bbpe-cl--pills .bbpe-cl__item:hover {
	background: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	border-color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	color: #fff;
	transform: translateY(-2px);
}
.bbpe-cl--pills .bbpe-cl__item:hover .bbpe-cl__icon { color: #fff; }

/* ── Cards variant ────────────────────────────────────────────────────────── */
.bbpe-cl--cards .bbpe-cl__grid {
	display: grid;
	grid-template-columns: repeat(var(--bbpe-cl-cols), 1fr);
}
.bbpe-cl--cards .bbpe-cl__item {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	padding: 28px 16px;
	border-radius: 14px;
}
.bbpe-cl--cards .bbpe-cl__icon-wrap { width: 60px; height: 60px; }
.bbpe-cl--cards .bbpe-cl__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
	border-color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
}

/* ── View all link ────────────────────────────────────────────────────────── */
.bbpe-cl__view-all-wrap {
	display: flex;
	margin-top: 1.5rem;
}
.bbpe-cl__view-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--bbpe-cl-accent);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.9375rem;
}
.bbpe-cl__view-all:hover { text-decoration: underline; }
.bbpe-cl__view-all-icon { font-size: 13px; line-height: 1; display: inline-flex; }
.bbpe-cl__view-all-icon svg { width: 1em; height: 1em; fill: currentColor; }

/* ── Spotlight variant (marketing) ───────────────────────────────────────── */
.bbpe-cl--spotlight .bbpe-cl__grid {
	display: grid;
	grid-template-columns: repeat(var(--bbpe-cl-cols), 1fr);
}

.bbpe-cl__item--spotlight {
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 16px;
	padding: 28px 24px;
	border-radius: 16px;
	overflow: hidden;
	border: none;
	color: #fff;
	min-height: 160px;
	background: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	background: linear-gradient(135deg, var(--bbpe-cl-item-accent, var(--bbpe-cl-accent)) 0%, #0f172a 130%);
}

.bbpe-cl__spotlight-glow {
	position: absolute;
	top: -40px;
	right: -40px;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	pointer-events: none;
}

.bbpe-cl__item--spotlight .bbpe-cl__icon-wrap {
	background: rgba(255, 255, 255, 0.18);
	width: 48px;
	height: 48px;
}
.bbpe-cl__item--spotlight .bbpe-cl__icon { color: #fff; }
.bbpe-cl__item--spotlight .bbpe-cl__label { color: #fff; font-size: 1.125rem; }

.bbpe-cl__spotlight-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.bbpe-cl__item--spotlight:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}
.bbpe-cl__item--spotlight:hover .bbpe-cl__spotlight-cta {
	opacity: 1;
	transform: translateY(0);
}

.bbpe-cl__item--spotlight.bbpe-cl__item--featured { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55); }
.bbpe-cl__item--spotlight .bbpe-cl__badge { background: #fff; color: var(--bbpe-cl-accent); top: 14px; right: 14px; }

/* ── Photo Cards variant (marketing) ─────────────────────────────────────── */
.bbpe-cl--photo .bbpe-cl__grid {
	display: grid;
	grid-template-columns: repeat(var(--bbpe-cl-cols), 1fr);
}

.bbpe-cl__item--photo {
	position: relative;
	overflow: hidden;
	border: none;
	border-radius: 16px;
	min-height: 220px;
	padding: 0;
	background-color: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	background-size: cover;
	background-position: center;
}

.bbpe-cl__photo-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.05) 100%);
	transition: background 0.25s ease;
}

.bbpe-cl__photo-content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	height: 100%;
	padding: 24px;
	justify-content: flex-end;
}

.bbpe-cl__item--photo .bbpe-cl__icon-wrap { background: rgba(255, 255, 255, 0.2); width: 44px; height: 44px; }
.bbpe-cl__item--photo .bbpe-cl__icon { color: #fff; }
.bbpe-cl__item--photo .bbpe-cl__label { color: #fff; font-size: 1.1875rem; }

.bbpe-cl__item--photo:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28); }
.bbpe-cl__item--photo:hover .bbpe-cl__photo-overlay { background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.1) 100%); }
.bbpe-cl__item--photo:hover .bbpe-cl__spotlight-cta { opacity: 1; transform: translateY(0); }

.bbpe-cl__item--photo.bbpe-cl__item--featured { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6); }
.bbpe-cl__item--photo .bbpe-cl__badge { background: #fff; color: var(--bbpe-cl-accent); top: 14px; right: 14px; }

/* ── Pin Drop variant (marketing) ────────────────────────────────────────── */
.bbpe-cl__item--pin {
	flex-direction: column;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: none;
	padding: 6px 10px;
}

.bbpe-cl__pin-marker {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50% 50% 50% 0;
	background: var(--bbpe-cl-item-accent, var(--bbpe-cl-accent));
	transform: rotate(-45deg);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
	margin-bottom: 6px;
	transition: transform 0.25s ease, box-shadow 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.bbpe-cl__item--pin .bbpe-cl__icon-wrap { background: transparent; width: auto; height: auto; transform: rotate(45deg); }
.bbpe-cl__item--pin .bbpe-cl__icon { color: #fff; font-size: 17px; }

.bbpe-cl__item--pin:hover .bbpe-cl__pin-marker { transform: rotate(-45deg) translateY(-6px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28); }

.bbpe-cl__item--pin.bbpe-cl__item--featured .bbpe-cl__pin-marker { width: 54px; height: 54px; }
.bbpe-cl__item--pin .bbpe-cl__badge { position: static; margin-bottom: 4px; }

/* ── Responsive (mobile item padding only – columns are handled by Elementor's
 *   own responsive control output for --bbpe-cl-cols) ─────────────────────── */
@media (max-width: 600px) {
	.bbpe-cl__item--spotlight { min-height: 130px; padding: 22px 20px; }
	.bbpe-cl__item--photo { min-height: 180px; }
}
