/* /lease-deals/ lease search (leasing.php). Plugbase "Home — clean" style: white, ink #10202B, green #0B7A4B, mint tints. */
.pbl { max-width: 1240px; margin: 0 auto; padding: 8px 16px 56px; }

/* Hero: shared dark section hero (.pbg-hero from guides-hub.css) + leasing art */
.pbl .pbg-hero { margin: 12px 0 18px; }
.pbl-hero__btn { min-height: 48px; padding: 0 22px; }
.pbl-hero__art { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 280px; }
.pbl-hero__glow { position: absolute; left: 8%; right: 8%; bottom: 12%; height: 46%; border-radius: 50%; background: radial-gradient(closest-side, rgba(61, 220, 132, .32), transparent); filter: blur(6px); }
.pbl-hero__car { position: relative; display: block; width: 100%; max-width: 520px; height: auto; margin-bottom: 18px; filter: drop-shadow(0 24px 26px rgba(0, 0, 0, .35)); }
.pbl-hero__car img, .pbl-hero__car svg { width: 100%; height: auto; display: block; }
.pbl-hero__tag { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
.pbl-hero__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--pbg-glow); }
.pbl-hero__tag--range { top: 6%; left: 2%; }
.pbl-hero__tag--charge { top: 22%; right: 0; }
.pbl-ticket { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 16px; background: #fff; color: var(--pbx-ink); box-shadow: 0 16px 36px rgba(0, 0, 0, .28); }
.pbl-ticket__t { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pbx-primary); }
.pbl-ticket__row { display: grid; grid-template-columns: repeat(3, auto); gap: 0 18px; }
.pbl-ticket__row b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.pbl-ticket__row--l small { font-size: 11.5px; color: var(--pbx-muted); }
.pbl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.pbl-steps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--pbx-green); font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--pbx-ink); }
.pbl-steps b { flex: 0 0 28px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pbx-primary); color: #fff; font-size: 14px; font-weight: 800; }

/* Brand tiles */
.pbl-brands { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; margin: 0 -2px 8px; scrollbar-width: thin; }
.pbl-brand { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--pbx-line); border-radius: 14px; background: #fff; color: var(--pbx-ink); font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.pbl-brand:hover { border-color: #C9D3D9; box-shadow: 0 6px 16px rgba(16, 32, 43, .08); }
.pbl-brand[aria-pressed="true"] { border-color: var(--pbx-primary); background: var(--pbx-green); box-shadow: inset 0 0 0 1px var(--pbx-primary); }
.pbl-brand__logo { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--pbx-alt); }
.pbl-brand__logo img, .pbl-brand__img { max-width: 30px; max-height: 26px; width: auto; height: auto; }
.pbl-brand__name { display: flex; flex-direction: column; text-align: left; font-size: 14px; font-weight: 700; line-height: 1.2; }
.pbl-brand__name small { font-size: 12px; font-weight: 500; color: var(--pbx-muted); }

/* Layout: filters left, results right */
.pbl-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.pbl-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border: 1px solid var(--pbx-line); border-radius: 18px; box-shadow: 0 6px 20px rgba(16, 32, 43, .05); scrollbar-width: thin; }
.pbl-side__head { display: none; }
.pbl-side__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 16px; border-top: 1px solid var(--pbx-line); }
.pbl-side__foot .pb-btn { display: none; }
.pbl-form { display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.pbl-sub { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; border-top: 1px solid var(--pbx-line); }
.pbl-sub__t { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pbx-primary); }
.pbl-g { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pbl-g legend, .pbl-g__l { padding: 0; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--pbx-ink); }
.pbl-g--select .pbl-g__l { margin: 0; }
.pbl-g input[type="search"], .pbl-g select { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #CFD8DD; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; font-weight: 500; color: var(--pbx-ink); }
.pbl-g input:focus-visible, .pbl-g select:focus-visible { outline: 2px solid var(--pbx-primary); outline-offset: 1px; border-color: var(--pbx-primary); }
.pbl-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pbl-pill { position: relative; margin: 0; cursor: pointer; }
.pbl-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pbl-pill span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #CFD8DD; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--pbx-ink); transition: background .12s, border-color .12s, color .12s; }
.pbl-pill:hover span { border-color: var(--pbx-primary); }
.pbl-pill input:checked + span { background: var(--pbx-ink); border-color: var(--pbx-ink); color: #fff; }
.pbl-pill input:focus-visible + span { outline: 2px solid var(--pbx-primary); outline-offset: 2px; }

/* Results */
.pbl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.pbl-toolbar__r { display: flex; align-items: center; gap: 10px; }
.pbl-count { margin: 0; font-size: 15px; font-weight: 800; color: var(--pbx-ink); }
.pbl-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 700; color: var(--pbx-muted); }
.pbl-sort select { height: 38px; padding: 0 10px; border: 1px solid #CFD8DD; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--pbx-ink); }
.pbl-open { display: none; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--pbx-ink); border-radius: 999px; background: #fff; color: var(--pbx-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.pbl-open__n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--pbx-primary); color: #fff; font-size: 12px; }
.pbl-open__n[hidden] { display: none; }
.pbl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.pbl-chips:empty { display: none; }
.pbl-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--pbx-green); color: #08603B; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pbl-chip::after { content: "×"; font-size: 16px; line-height: 1; }

.pbl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.pbl-card { display: flex; flex-direction: column; min-width: 0; margin: 0; background: #fff; border: 1px solid var(--pbx-line); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 3px rgba(16, 32, 43, .05); transition: box-shadow .15s, border-color .15s, transform .15s; }
.pbl-card:hover { border-color: #C9D3D9; box-shadow: 0 12px 28px rgba(16, 32, 43, .10); transform: translateY(-1px); }
.pbl-card[hidden] { display: none; }
.pbl-card__media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; padding: 12% 8% 4%; background: linear-gradient(180deg, #F8F9FA 0%, #EDF0F2 100%); overflow: hidden; }
.pbl-card__media img, .pbl-card__media svg { width: 100%; height: 100%; max-width: 100%; object-fit: contain; display: block; }
.pbl-card__badge { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; background: #fff; color: #08603B; box-shadow: 0 0 0 1px rgba(16, 32, 43, .08); }
.pbl-card__badge--phev { color: #1D4F91; }
.pbl-card__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.pbl-card__brand { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pbx-muted); }
.pbl-card__title { margin: 0 0 6px; font-size: 19px; line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
.pbl-card__title a { color: var(--pbx-ink); text-decoration: none; }
.pbl-card__title a:hover { color: var(--pbx-primary); }
.pbl-card__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.pbl-card__facts li { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 10px; background: var(--pbx-alt); }
.pbl-card__facts span { font-size: 11px; line-height: 1.2; color: var(--pbx-muted); }
.pbl-card__facts b { font-size: 15px; font-weight: 800; color: var(--pbx-ink); }
.pbl-card__terms { margin: 8px 0 0; font-size: 12.5px; color: var(--pbx-muted); }
.pbl-card__terms:empty { display: none; }
.pbl-card__actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 12px; }
.pbl-card__cta { width: 100%; justify-content: center; gap: 6px; text-align: center; }
.pbl-card__specs { align-self: center; font-size: 13.5px; font-weight: 600; color: var(--pbx-primary); }
.pbl-empty { padding: 32px; text-align: center; border: 1px dashed var(--pbx-line); border-radius: 18px; color: var(--pbx-muted); }

/* Below results */
.pbl-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 48px 0 8px; }
.pbl-tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 18px; background: var(--pbx-alt); color: var(--pbx-ink); text-decoration: none !important; border: 1px solid transparent; transition: border-color .15s; }
.pbl-tile--green { background: var(--pbx-green); }
.pbl-tile:hover { border-color: var(--pbx-line); }
.pbl-tile b { font-size: 17px; }
.pbl-tile span { font-size: 14px; color: var(--pbx-muted); }
.pbl-faq { margin: 48px 0 0; max-width: 860px; }
.pbl-faq h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 14px; }
.pbl-note { margin: 28px 0 0; max-width: 860px; font-size: 12.5px; line-height: 1.5; color: var(--pbx-muted); }
.pbl-scrim { position: fixed; inset: 0; z-index: 99990; background: rgba(16, 32, 43, .45); }
.pbl-scrim[hidden] { display: none; }

@media (max-width: 1000px) {
	.pbl-hero__art { min-height: 220px; max-width: 440px; margin: 0 auto; width: 100%; }
	.pbl-layout { grid-template-columns: 1fr; }
	.pbl-open { display: inline-flex; }
	/* Filters become a bottom sheet */
	.pbl-side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 99991; max-height: 88vh; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; overflow: hidden; }
	.pbl-side.is-open { transform: none; }
	.pbl-side__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--pbx-line); font-size: 17px; }
	.pbl-side__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--pbx-alt); font-size: 22px; line-height: 1; color: var(--pbx-ink); cursor: pointer; }
	.pbl-form { overflow-y: auto; flex: 1; }
	.pbl-side__foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
	.pbl-side__foot .pb-btn { display: inline-flex; flex: 1; justify-content: center; }
	html.pbl-lock { overflow: hidden; }
}
@media (max-width: 720px) {
	.pbl { padding: 0 16px 40px; }
	.pbl .pbg-hero { margin-top: 8px; }
	.pbl-hero__art { min-height: 0; max-width: 300px; padding-bottom: 54px; }
	.pbl-hero__tag { font-size: 11.5px; padding: 5px 9px; }
	.pbl-hero__tag--charge { top: 30%; }
	.pbl-ticket { left: 50%; transform: translateX(-50%); padding: 9px 13px; }
	.pbl-ticket__row b { font-size: 15px; }
	.pbl-hero__btn { width: 100%; justify-content: center; }
	.pbl-steps { grid-template-columns: 1fr; }
	.pbl-steps li { padding: 10px 12px; }
	.pbl-sort span { display: none; }
	.pbl-grid { grid-template-columns: 1fr; }
	.pbl-more { grid-template-columns: 1fr; }
}
