/**
 * SalesDesk — Browse & Mega-Nav Styles
 * T1 owns this file.
 *
 * Load order: global.css → public-fonts.css → public.css → browse.css → browse-additions.css
 *
 * CONFLICT AUDIT (vs public.css / global.css):
 *   – .pub-mega-hdivider      defined here ONLY  (removed from public.css §19 duplicate)
 *   – .pub-mega-panel__inner  defined here ONLY  (removed from browse-additions.css §5 duplicate)
 *   – .pub-page-wide          owned by public.css — NOT redefined here
 *   – .pub-breadcrumb         owned by public.css — NOT redefined here
 *   – .sr-only                owned by browse-additions.css — NOT redefined here
 *
 * Patches applied (all original P1–P8 retained):
 *   P1  .browse-sidebar — sticky top 72px, max-height calc(100vh - 92px)
 *   P2  .price-pill-row — -webkit-overflow-scrolling: touch
 *   P3  .pagination__page--nav — Prev/Next modifier
 *   P4  .browse-results — min-width: 0
 *   P5  .browse-grid--animated — CSS-only fade, respects prefers-reduced-motion
 *   P6  .browse-sidebar__close — color + font-family added
 *   P7  .sidebar-card__footer i — replaces inline style dependency
 *   P8  @media ≤768px .browse-filter-toggle — display:flex confirmed
 *
 * Sections:
 *   1.  Mega-nav panels (shared base)
 *   2.  Mega-nav panel width modifiers
 *   3.  Mega-nav column layout
 *   4.  Mega-nav items & icons
 *   5.  Account panel
 *   6.  Nav trigger buttons & account wrap
 *   7.  Mobile nav drawer
 *   8.  Browse layout shell
 *   9.  Browse sidebar card & inputs
 *  10.  Browse filter chips
 *  11.  Browse vehicle card
 *  12.  Browse results bar & sort
 *  13.  Browse active-filter tags
 *  14.  Browse price quick-filter pills
 *  15.  Browse card badges
 *  16.  Browse pagination
 *  17.  Browse empty state
 *  18.  Responsive — tablet (≤ 1024px)
 *  19.  Responsive — tablet portrait (1024px > w > 768px)
 *  20.  Responsive — mobile landscape (≤ 768px)
 *  21.  Responsive — mobile portrait (≤ 480px)
 *  22.  Responsive — small phone (≤ 360px)
 *  23.  Responsive — large screens (≥ 1400px)
 *  24.  Touch / hover overrides
 *  25.  Grid entry animation
 *  26.  Print styles
 */


/* ══════════════════════════════════════
   1. MEGA-NAV PANELS — shared base
   ══════════════════════════════════════ */
.pub-mega-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  white-space: nowrap;
}

.pub-mega-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


/* ══════════════════════════════════════
   2. MEGA-NAV PANEL WIDTH MODIFIERS
   ══════════════════════════════════════ */
#navBuyPanel   { min-width: 600px; }
#navSellPanel  { min-width: 380px; }
#navNewsPanel  { min-width: 460px; }
#navToolsPanel { min-width: 460px; }


/* ══════════════════════════════════════
   3. MEGA-NAV COLUMN LAYOUT
   ══════════════════════════════════════ */
.pub-mega-cols {
  display: flex;
  gap: 4px;
  padding: 4px;
}

.pub-mega-col { min-width: 170px; }

.pub-mega-col-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 6px 10px 4px;
}

.pub-mega-col-label + .pub-mega-col-label { margin-top: 8px; }

.pub-mega-divider {
  width: 1px;
  background: var(--border);
  margin: 4px 0;
  opacity: .5;
  align-self: stretch;
}

/* Canonical definition — also covers §3 of browse-additions.css */
.pub-mega-hdivider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
  opacity: .5;
}

/* Sell panel body — replaces inline style="padding:4px" */
.pub-mega-panel__inner { padding: 4px; }


/* ══════════════════════════════════════
   4. MEGA-NAV ITEMS & ICONS
   ══════════════════════════════════════ */
.pub-mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background .13s, color .13s;
  cursor: pointer;
}

.pub-mega-item:hover {
  background: var(--p-light);
  color: var(--p);
  text-decoration: none;
}

.pub-mega-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  transition: background .13s, border-color .13s, color .13s;
}

.pub-mega-item:hover .pub-mega-icon {
  background: var(--p-light);
  border-color: var(--p-b);
  color: var(--p);
}

.pub-mega-item-text { line-height: 1.2; }

.pub-mega-item-sub {
  display: block;
  font-size: 11px;
  color: var(--faint);
  font-weight: 400;
  margin-top: 1px;
}


/* ══════════════════════════════════════
   5. ACCOUNT PANEL
   ══════════════════════════════════════ */
.pub-acct-panel {
  right: 0;
  left: auto;
  transform: translateY(-6px);
  min-width: 220px;
}

.pub-acct-panel.open {
  transform: translateY(0);
}

.pub-acct-divider {
  height: 1px;
  background: var(--border);
  margin: 5px 0;
  opacity: .6;
}

.pub-acct-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 6px 10px 3px;
}

.pub-acct-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background .13s, color .13s;
}

.pub-acct-item i {
  width: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}

.pub-acct-item:hover {
  background: var(--p-light);
  color: var(--p);
  text-decoration: none;
}

.pub-acct-item:hover i { color: var(--p); }

.pub-acct-item.danger       { color: var(--red); }
.pub-acct-item.danger i     { color: var(--red); }
.pub-acct-item.danger:hover { background: var(--red-bg); }


/* ══════════════════════════════════════
   6. NAV TRIGGER BUTTONS & ACCOUNT WRAP
   ══════════════════════════════════════ */
.pub-nav__acct-wrap   { position: relative; }
.pub-nav__signin--guest { margin-right: 10px; }

.pub-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  padding: 0;
  transition: color .18s;
  white-space: nowrap;
}

.pub-nav__trigger:hover,
.pub-nav__trigger.open { color: var(--p); }

.pub-nav__trigger .pub-chevron {
  font-size: 8px;
  transition: transform .2s ease;
  display: inline-block;
  opacity: .6;
}

.pub-nav__trigger.open .pub-chevron { transform: rotate(180deg); }

.pub-nav__acct-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--p);
  color: #fff;
  border-radius: var(--r-md);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  border: none;
  transition: background .18s;
  white-space: nowrap;
}

.pub-nav__acct-btn:hover { background: var(--p-dark); }

.pub-nav__acct-btn .pub-chevron {
  font-size: 8px;
  transition: transform .2s ease;
  display: inline-block;
  opacity: .7;
}

.pub-nav__acct-btn.open .pub-chevron { transform: rotate(180deg); }

.pub-nav__signin {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color .18s;
  white-space: nowrap;
}

.pub-nav__signin:hover { color: var(--p); }


/* ══════════════════════════════════════
   7. MOBILE NAV DRAWER
   Hidden on desktop, shown on ≤ 1024px
   ══════════════════════════════════════ */
.pub-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.pub-nav__hamburger:hover { background: var(--p-light); border-color: var(--p-b); }

.pub-nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .22s ease, opacity .22s ease;
}

.pub-nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pub-nav__hamburger.open span:nth-child(2) { opacity: 0; }
.pub-nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pub-mobile-nav {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--white);
  z-index: calc(var(--z-sticky) + 10);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
  pointer-events: none;
}

.pub-mobile-nav.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pub-mobile-nav__inner {
  padding: 12px 16px 32px;
  max-width: 540px;
  margin: 0 auto;
}

.pub-mobile-nav__section {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 14px 0 6px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.pub-mobile-nav__section:first-child { border-top: none; margin-top: 0; }

.pub-mobile-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background .13s, color .13s;
}

.pub-mobile-nav__item i {
  width: 16px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  flex-shrink: 0;
}

.pub-mobile-nav__item:hover,
.pub-mobile-nav__item:active {
  background: var(--p-light);
  color: var(--p);
  text-decoration: none;
}

.pub-mobile-nav__item:hover i,
.pub-mobile-nav__item:active i { color: var(--p); }

.pub-mobile-nav__item--danger      { color: var(--red); }
.pub-mobile-nav__item--danger i    { color: var(--red); }
.pub-mobile-nav__item--danger:hover,
.pub-mobile-nav__item--danger:active { background: var(--red-bg); }

/* Mobile filter toggle */
.browse-filter-toggle {
  display: none; /* shown only on ≤ 768px */
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--sans);
  cursor: pointer;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, background .15s;
}

.browse-filter-toggle:hover {
  border-color: var(--p);
  background: var(--p-light);
  color: var(--p);
}

.browse-filter-toggle__badge {
  background: var(--p);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-full);
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}

/* Sidebar drawer overlay */
.browse-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: calc(var(--z-dropdown) + 10);
  backdrop-filter: blur(2px);
}

.browse-sidebar-overlay.open { display: block; }

/* P6 — color + font-family were missing */
.browse-sidebar__close {
  display: none; /* shown in drawer mode via §20 responsive rule */
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);       /* P6 */
  cursor: pointer;
  border-radius: 0;
  font-family: var(--sans); /* P6 */
  border-top: none;
  border-left: none;
  border-right: none;
}


/* ══════════════════════════════════════
   8. BROWSE LAYOUT SHELL
   ══════════════════════════════════════ */
.browse-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
  margin-inline: clamp(16px, 4vw, 48px);
  padding-inline: clamp(12px, 2vw, 24px);
}

/* P4 — prevents grid track blowout from wide content */
.browse-results {
  min-width: 0;
}

/* P1 — sticky top corrected 76px → 72px */
.browse-sidebar {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #dde3ef transparent;
}

.browse-sidebar::-webkit-scrollbar       { width: 4px; }
.browse-sidebar::-webkit-scrollbar-track { background: transparent; }
.browse-sidebar::-webkit-scrollbar-thumb {
  background: #dde3ef;
  border-radius: 4px;
}


/* ══════════════════════════════════════
   9. BROWSE SIDEBAR CARD & INPUTS
   ══════════════════════════════════════ */
.sidebar-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 20px;
}

.sidebar-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.sidebar-card__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card__title i { color: var(--p); font-size: 13px; }

.sidebar-card__reset {
  font-size: 12px;
  font-weight: 600;
  color: var(--p);
  background: var(--p-light);
  padding: 4px 12px;
  border-radius: var(--r-full);
  text-decoration: none;
  transition: background .15s;
}

.sidebar-card__reset:hover { background: var(--p-b); text-decoration: none; }

.sidebar-card__footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* P7 — replaces inline style on bolt icon */
.sidebar-card__footer i {
  color: var(--amber);
  flex-shrink: 0;
  margin-right: 4px;
}

.filter-section       { margin-bottom: 18px; }

.filter-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.search-input-wrap   { position: relative; }

.search-input-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 12px;
  pointer-events: none;
}

.search-input-sidebar {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  font-family: var(--sans);
}

.search-input-sidebar:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(15,76,158,.08);
  background: var(--white);
}

.search-input-sidebar::placeholder { color: var(--faint); }

.min-max-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.min-max-sep {
  color: var(--border2);
  font-weight: 300;
  flex-shrink: 0;
}

.min-max-input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .15s, background .15s;
  font-family: var(--sans);
  -moz-appearance: textfield;
}

.min-max-input::-webkit-outer-spin-button,
.min-max-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.min-max-input:focus  { border-color: var(--p); background: var(--white); }
.min-max-input::placeholder { color: var(--faint); }

.filter-select {
  width: 100%;
  padding: 9px 32px 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--text);
  outline: none;
  appearance: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color .15s, background-color .15s;
}

.filter-select:focus {
  border-color: var(--p);
  background-color: var(--white);
}

.year-row               { display: flex; gap: 8px; }
.year-row .filter-select { flex: 1; width: auto; }

.filter-apply-btn {
  width: 100%;
  padding: 10px;
  background: var(--p);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: var(--sans);
  transition: background .18s;
}

.filter-apply-btn:hover { background: var(--p-dark); }

.filter-noscript-hint {
  display: none;
  font-size: 11px;
  color: var(--amber);
  margin-top: 8px;
  text-align: center;
}


/* ══════════════════════════════════════
   10. BROWSE FILTER CHIPS
   ══════════════════════════════════════ */
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  background: var(--white);
  border: 1.5px solid var(--border);
  padding: 7px 10px;
  border-radius: var(--r-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s;
  min-height: 38px;
}

.filter-chip:hover  { border-color: var(--p); color: var(--p); }

.filter-chip.active {
  background: var(--p);
  color: var(--white);
  border-color: var(--p);
  box-shadow: 0 2px 8px rgba(15,76,158,.25);
}

.condition-chip-row              { display: flex; gap: 6px; }
.condition-chip-row .filter-chip { flex: 1; }
.chip-row                        { display: flex; flex-wrap: wrap; gap: 6px; }

.price-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all .18s;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  min-height: 34px;
  white-space: nowrap;
}

.price-pill:hover  { border-color: var(--p); color: var(--p); text-decoration: none; }

.price-pill.active {
  background: var(--p);
  color: var(--white);
  border-color: var(--p);
  box-shadow: 0 2px 8px rgba(15,76,158,.22);
}


/* ══════════════════════════════════════
   11. BROWSE VEHICLE CARD
   ══════════════════════════════════════ */
.vehicle-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .28s cubic-bezier(.2,0,0,1),
              box-shadow .28s cubic-bezier(.2,0,0,1),
              border-color .18s;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15,76,158,.13);
  border-color: #c7d6f5;
  text-decoration: none;
}

.vehicle-card__img {
  position: relative;
  height: 195px;
  overflow: hidden;
  background: var(--bg);
}

.vehicle-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,0,0,1);
}

.vehicle-card:hover .vehicle-card__img img { transform: scale(1.06); }

.vehicle-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: var(--border);
}

.vehicle-card__pill {
  position: absolute;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  line-height: 1.5;
  pointer-events: none;
}

.vehicle-card__pill--year {
  top: 12px; left: 12px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
}

.vehicle-card__pill--province {
  top: 12px; right: 12px;
  background: rgba(255,255,255,.95);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
  display: flex;
  align-items: center;
  gap: 3px;
}

.vehicle-card__pill--province .pill-icon { color: var(--p); font-size: 9px; }

.vehicle-card__pill--mileage {
  bottom: 12px; right: 12px;
  background: rgba(255,255,255,.95);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
  display: flex;
  align-items: center;
  gap: 3px;
}

.vehicle-card__pill--mileage .pill-icon { color: var(--faint); font-size: 9px; }

.vehicle-card__pill--new {
  bottom: 12px; left: 12px;
  background: var(--p);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
}

.vehicle-card__pill--ev {
  bottom: 12px; left: 12px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.vehicle-card__body { padding: 16px; }

.vehicle-card__name-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.vehicle-card__name-group { min-width: 0; flex: 1; }

.vehicle-card__name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-card__dealer {
  font-size: 11px;
  color: var(--faint);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3px;
}

.vehicle-card__dealer i { flex-shrink: 0; }

.vehicle-card__price {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 16px;
  color: var(--p);
  white-space: nowrap;
  flex-shrink: 0;
}

.vehicle-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 6px;
  flex-wrap: wrap;
}

.vehicle-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.vehicle-card__spec-pill {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 11px;
  padding: 2px 9px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vehicle-card__spec-pill i { font-size: 10px; }


/* ══════════════════════════════════════
   12. BROWSE RESULTS BAR & SORT
   ══════════════════════════════════════ */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.results-bar__count     { font-size: 14px; color: var(--muted); font-weight: 500; margin: 0; }

.results-bar__count-num {
  font-family: var(--font-d);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-right: 6px;
}

.results-bar__heading   { color: var(--faint); font-weight: 400; }

.sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  width: auto;
  padding: 8px 32px 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--text);
  outline: none;
  appearance: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color .15s, background-color .15s;
}

.sort-select:focus { border-color: var(--p); background-color: var(--white); }


/* ══════════════════════════════════════
   13. ACTIVE-FILTER TAGS
   ══════════════════════════════════════ */
.active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--p-light);
  color: var(--p);
  border: 1px solid var(--p-b);
  border-radius: var(--r-full);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
}

.active-filter-tag__dismiss {
  color: #6b8ad4;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  transition: color .15s;
}

.active-filter-tag__dismiss:hover { color: var(--p); text-decoration: none; }


/* ══════════════════════════════════════
   14. PRICE QUICK-FILTER PILLS ROW
   P2 — added -webkit-overflow-scrolling
   ══════════════════════════════════════ */
.price-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}


/* ══════════════════════════════════════
   15. BROWSE CARD BADGES
   ══════════════════════════════════════ */
.salesdesk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--p-light);
  color: var(--p);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-full);
  border: 1px solid var(--p-b);
  font-family: var(--font-d);
  letter-spacing: .01em;
}

.salesdesk-badge i { font-size: 9px; }

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--gr-bg);
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-full);
  border: 1px solid var(--gr-b);
}

.verified-badge i { font-size: 8px; }


/* ══════════════════════════════════════
   16. BROWSE PAGINATION
   ══════════════════════════════════════ */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.pagination__page {
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-family: var(--mono);
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  transition: border-color .15s, background .15s, color .15s;
  min-width: 40px;
  text-align: center;
}

.pagination__page:hover { border-color: var(--p); color: var(--p); text-decoration: none; }

.pagination__page.active {
  border-color: var(--p);
  background: var(--p);
  color: #fff;
}

/* P3 — Prev/Next arrow modifier */
.pagination__page--nav {
  min-width: 36px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 12px;
}

.pagination__page--nav:hover {
  border-color: var(--p);
  color: var(--p);
  text-decoration: none;
}

.pagination__ellipsis {
  padding: 8px 6px;
  color: var(--faint);
  font-size: 13px;
}


/* ══════════════════════════════════════
   17. BROWSE EMPTY STATE
   ══════════════════════════════════════ */
.browse-empty {
  text-align: center;
  padding: 5rem 1rem;
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
}

.browse-empty__icon {
  font-size: 40px;
  margin-bottom: 14px;
  display: block;
  color: var(--border);
}

.browse-empty__title {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.browse-empty__sub {
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 20px;
}

.browse-empty__reset {
  font-size: 13px;
  font-weight: 600;
  color: var(--p);
  text-decoration: none;
}

.browse-empty__reset:hover { text-decoration: underline; }


/* ══════════════════════════════════════
   18. RESPONSIVE — TABLET (≤ 1024px)
   Nav links collapse; hamburger appears.
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .pub-nav__links    { display: none; }
  .pub-nav__hamburger { display: flex; }

  #navBuyPanel,
  #navSellPanel,
  #navNewsPanel,
  #navToolsPanel { min-width: unset; }
}


/* ══════════════════════════════════════
   19. RESPONSIVE — TABLET PORTRAIT
       (1024px > width > 768px)
   ══════════════════════════════════════ */
@media (max-width: 1024px) and (min-width: 769px) {
  .browse-layout {
    grid-template-columns: 260px 1fr;
    gap: 18px;
  }

  .pub-browse-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }

  .results-bar__count-num { font-size: 20px; }
}


/* ══════════════════════════════════════
   20. RESPONSIVE — MOBILE LANDSCAPE (≤ 768px)
   Sidebar collapses to drawer; single-col.
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .browse-layout {
    grid-template-columns: 1fr;
    gap: 0;
    margin-inline: 0;
    padding-inline: 16px;
  }

  /* P8 — show filter toggle on mobile */
  .browse-filter-toggle { display: flex; }

  /* Sidebar becomes fixed left-drawer */
  .browse-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    z-index: calc(var(--z-dropdown) + 20);
    background: var(--white);
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.2,0,0,1);
    max-height: none;
    border-radius: 0 var(--r-xl) var(--r-xl) 0;
  }

  .browse-sidebar.drawer-open { transform: translateX(0); }

  .browse-sidebar-overlay {
    display: block;
    opacity: 0;
    transition: opacity .28s ease;
    pointer-events: none;
  }

  .browse-sidebar-overlay.open { opacity: 1; pointer-events: auto; }

  .browse-sidebar__close { display: flex; }

  .browse-sidebar .sidebar-card {
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 16px;
  }

  /* Results bar */
  .results-bar__count-num { font-size: 18px; }
  .results-bar    { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sort-form      { width: 100%; }
  .sort-select    { width: 100%; }

  .vehicle-card__img { height: 175px; }

  .pub-browse-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* P2 — price pills: horizontal scroll on mobile */
  .price-pill-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-right: -16px;
    padding-right: 16px;
  }

  .price-pill-row::-webkit-scrollbar { display: none; }

  .pagination            { gap: 4px; }
  .pagination__page      { padding: 7px 11px; font-size: 12px; min-width: 36px; }
  .pagination__page--nav { min-width: 32px; padding-left: 8px; padding-right: 8px; }
}


/* ══════════════════════════════════════
   21. RESPONSIVE — MOBILE PORTRAIT (≤ 480px)
   ══════════════════════════════════════ */
@media (max-width: 480px) {
  .pub-browse-grid { grid-template-columns: 1fr; gap: 12px; }

  .vehicle-card__img  { height: 200px; }
  .vehicle-card__body { padding: 12px; }
  .vehicle-card__name  { font-size: 13px; }
  .vehicle-card__price { font-size: 15px; }

  .condition-chip-row              { flex-wrap: wrap; }
  .condition-chip-row .filter-chip { flex: none; }
  .price-pill-row                  { gap: 6px; }
  .price-pill                      { font-size: 11px; padding: 5px 10px; }

  .active-filter-tags  { gap: 4px; }

  .pub-nav-label        { display: none; }
  .pub-nav__acct-btn    { padding: 8px 12px; }
}


/* ══════════════════════════════════════
   22. RESPONSIVE — SMALL PHONE (≤ 360px)
   ══════════════════════════════════════ */
@media (max-width: 360px) {
  .sidebar-card          { padding: 12px; }
  .vehicle-card__img     { height: 180px; }
  .results-bar__count-num { font-size: 16px; }
  .vehicle-card__spec-pill { font-size: 10px; padding: 2px 7px; }
}


/* ══════════════════════════════════════
   23. RESPONSIVE — LARGE SCREENS (≥ 1400px)
   ══════════════════════════════════════ */
@media (min-width: 1400px) {
  .browse-layout {
    grid-template-columns: 320px 1fr;
    gap: 32px;
  }

  .pub-browse-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .vehicle-card__img { height: 215px; }
}


/* ══════════════════════════════════════
   24. TOUCH / HOVER CAPABILITY OVERRIDES
   ══════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  .vehicle-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    border-color: var(--border);
  }

  .vehicle-card:active {
    transform: scale(.98);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
  }

  .vehicle-card:hover .vehicle-card__img img { transform: none; }
}


/* ══════════════════════════════════════
   25. GRID ENTRY ANIMATION
   P5 — CSS-only fade; no FOIC risk.
   animation-fill-mode intentionally omitted
   so the grid is always visible if animation
   is disabled (background tab, reduced-motion).
   ══════════════════════════════════════ */
.browse-grid--animated {
  animation: browseGridIn .25s ease;
}

@keyframes browseGridIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .browse-grid--animated { animation: none; }
}


/* ══════════════════════════════════════
   26. PRINT STYLES
   ══════════════════════════════════════ */
@media print {
  .pub-nav,
  .browse-sidebar,
  .browse-filter-toggle,
  .browse-sidebar-overlay,
  .price-pill-row,
  .active-filter-tags,
  .pagination,
  .sort-form { display: none !important; }

  .browse-layout { display: block; }

  .pub-browse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .vehicle-card { break-inside: avoid; }
}