/* ============================================================
   Routes - Premium vehicle catalog (/search)
   Correction pass v3: top-right diagonal TOP PICK ribbon,
   no AVAILABLE over cars, tight media (no flex-grow gap),
   strong price hierarchy, dark/light one structure.
   Scoped to the SPA catalog (article.rr-cat + results grid).
   ============================================================ */

:root {
  --rcat-radius: 14px;
  --rcat-pad: 20px;
  --rcat-gap: 18px;
  --rcat-light: #e4e7ec;
  --rcat-border: rgba(16, 24, 40, 0.06);
  --rcat-shadow: 0 10px 24px -16px rgba(16, 24, 40, 0.18);
  --rcat-shadow-hover: 0 16px 34px -16px rgba(16, 24, 40, 0.26);
  --rcat-dark-a: #12283a;
  --rcat-dark-b: #0b1926;
  --rcat-ink: #101828;
  --rcat-muted: #6b7280;
  --rcat-chip-bg: #e9ebef;
  --rcat-chip-ink: #3d4452;
  --rcat-brand: #ff7a1a;
  --rcat-brand-hover: #e56a0f;
  --rcat-select: var(--rcat-brand);
  --rcat-select-hover: var(--rcat-brand-hover);
  --rcat-badge: var(--rcat-brand);
  --rcat-price-light: #e56a0f; /* deepened brand orange so big price text reads on grey */
  --rcat-price-dark: #ff7a1a;
}

/* ---------- Results grid: 4 wide / 3 desktop / 2 tablet / 1 mobile ---------- */
#root .grid.sm\:grid-cols-2.lg\:grid-cols-3.\32xl\:grid-cols-4 {
  gap: var(--rcat-gap);
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) and (max-width: 1279px) {
  #root .grid.sm\:grid-cols-2.lg\:grid-cols-3.\32xl\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) and (max-width: 1399px) {
  #root .grid.sm\:grid-cols-2.lg\:grid-cols-3.\32xl\:grid-cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1400px) {
  #root .grid.sm\:grid-cols-2.lg\:grid-cols-3.\32xl\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Card shell: one surface, same structure for all cards ---------- */
article.rr-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: var(--rcat-pad);
  border: 1px solid var(--rcat-border);
  border-radius: var(--rcat-radius);
  background: var(--rcat-light);
  box-shadow: var(--rcat-shadow);
  color: var(--rcat-ink);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
/* Keep cards pinned when the inline booking panel opens or filters reflow the grid. */
.grid:has(.sx-host) article.rr-cat,
article.rr-cat.is-showcased {
  transition: box-shadow 0.25s ease, outline 0.2s ease;
  transform: none !important;
}
article.rr-cat:hover {
  transform: translateY(-2px);
  box-shadow: var(--rcat-shadow-hover);
}

/* Dark recommended card: identical structure, navy theme only */
article.rr-cat.rr-cat-dark {
  border-color: rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, var(--rcat-dark-a) 0%, var(--rcat-dark-b) 100%);
  color: #fff;
  box-shadow: 0 14px 32px -16px rgba(9, 23, 34, 0.5);
}

/* ---------- TOP PICK: top-right diagonal corner ribbon ---------- */
.rr-cat-badge {
  position: absolute;
  top: 14px;
  right: -34px;
  z-index: 6;
  width: 118px;
  margin: 0;
  padding: 7px 0;
  border-radius: 0;
  background: var(--rcat-badge);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 4px 12px rgba(232, 101, 15, 0.35);
  pointer-events: none;
}
article.rr-cat.rr-cat-dark .rr-cat-badge {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* ---------- Header: category + model ---------- */
.rr-cat-head {
  padding: 0;
  margin: 0;
  padding-right: 2.25rem; /* clear diagonal ribbon */
}
.rr-cat-title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--rcat-ink);
}
article.rr-cat.rr-cat-dark .rr-cat-title {
  color: #fff;
}
.rr-cat-sub {
  margin: 6px 0 0;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rcat-ink);
}
.rr-cat-sub em {
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.78;
}
article.rr-cat.rr-cat-dark .rr-cat-sub {
  color: rgba(255, 255, 255, 0.88);
}
article.rr-cat.rr-cat-dark .rr-cat-sub em {
  opacity: 0.72;
}

/* ---------- Spec chips: uniform, compact ---------- */
.rr-cat-specs {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.rr-cat-spec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--rcat-chip-bg);
  color: var(--rcat-chip-ink);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.rr-cat-spec svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  opacity: 0.85;
}
article.rr-cat.rr-cat-dark .rr-cat-spec {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

/* ---------- Image area: tight under specs (no flex-grow gap) ---------- */
.rr-cat-media {
  position: relative;
  display: flex;
  flex: 0 0 auto; /* do NOT absorb row slack - that created the big gap */
  align-items: flex-end;
  justify-content: center;
  height: 168px;
  min-height: 168px;
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
  overflow: visible;
  aspect-ratio: auto !important; /* override SPA aspect-[16/10] that inflated height */
}
@media (min-width: 1280px) {
  .rr-cat-media { height: 180px; min-height: 180px; }
}
.rr-cat-img {
  display: block;
  width: 92%;
  max-width: 380px;
  max-height: 158px;
  object-fit: contain;
  object-position: center bottom;
  background: transparent !important;
  filter: drop-shadow(0 14px 10px rgba(0, 0, 0, 0.16));
}
@media (min-width: 1280px) {
  .rr-cat-img { max-height: 170px; }
}
article.rr-cat.rr-cat-dark .rr-cat-img {
  filter: drop-shadow(0 16px 14px rgba(0, 0, 0, 0.42));
}
/* Neutralize the SPA's aggressive hover zoom */
article.rr-cat .group-hover\:scale-\[1\.04\] {
  transition: transform 0.3s ease;
}
article.rr-cat:hover .group-hover\:scale-\[1\.04\] {
  transform: scale(1.02);
}

/* Hide image-corner clutter actions (save/compare) on catalog cards */
.rr-cat-media .absolute.right-4 {
  display: none;
}

/* Low-stock / sold-out status (Available is removed in markup): top-right,
   off the car's roofline, small and quiet - tucked under ribbon */
.rr-cat-media .absolute.bottom-3.left-5 {
  top: 0;
  right: 0;
  bottom: auto;
  left: auto;
}
.rr-cat-media .absolute.bottom-3.left-5 span {
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

/* ---------- Footer: daily+Select row / divider / total ---------- */
.rr-cat-foot {
  margin-top: auto; /* leftover row height sits below the car, not above it */
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
/* Flatten the inner price wrapper so its children join the foot flex flow:
   [strike?] [daily] [select] / [divider] / [total] */
.rr-cat-foot > div {
  display: contents;
}
.rr-cat-foot::before {
  content: "";
  order: 3;
  flex: 1 0 100%;
  height: 1px;
  margin: 12px 0 10px;
  background: rgba(16, 24, 40, 0.08);
}
article.rr-cat.rr-cat-dark .rr-cat-foot::before {
  background: rgba(255, 255, 255, 0.14);
}

/* Deal strike-through sits above the daily price on its own line */
.rr-cat-foot .text-ink-muted.line-through {
  order: 0;
  flex: 1 0 100%;
  margin: 0 0 2px;
  font-size: 0.75rem;
  color: var(--rcat-muted) !important;
}
article.rr-cat.rr-cat-dark .rr-cat-foot .text-ink-muted.line-through {
  color: rgba(255, 255, 255, 0.5) !important;
}

.rr-cat-price {
  order: 1;
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--rcat-price-light) !important;
}
article.rr-cat.rr-cat-dark .rr-cat-price {
  color: var(--rcat-price-dark) !important;
}
.rr-cat-perday {
  margin-left: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rcat-muted);
}
article.rr-cat.rr-cat-dark .rr-cat-perday {
  color: rgba(255, 255, 255, 0.65);
}

.rr-cat-total {
  order: 4;
  flex: 1 0 100%;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  color: var(--rcat-ink) !important;
}
.rr-cat-total b {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rr-cat-total .rr-cat-total-days {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--rcat-muted);
}
.rr-cat-total .rr-cat-total-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--rcat-muted);
}
article.rr-cat.rr-cat-dark .rr-cat-total {
  color: #fff !important;
}
article.rr-cat.rr-cat-dark .rr-cat-total-days {
  color: rgba(255, 255, 255, 0.65);
}
article.rr-cat.rr-cat-dark .rr-cat-total-sub {
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Select button ---------- */
.rr-cat-select {
  order: 2;
  margin-left: auto;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-width: 116px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 8px;
  background: var(--rcat-select);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.rr-cat-select:hover {
  background: var(--rcat-select-hover);
}
.rr-cat-select:active {
  transform: translateY(1px);
}
.rr-cat-select:focus-visible {
  outline: 2px solid var(--rcat-select);
  outline-offset: 2px;
}
article.rr-cat.rr-cat-dark .rr-cat-select {
  box-shadow: 0 10px 22px -10px rgba(255, 122, 26, 0.55);
}

/* ---------- Keep card children above any effects ---------- */
article.rr-cat > *:not(.rr-cat-badge) {
  position: relative;
  z-index: 1;
}

/* ---------- Unavailable vehicles ---------- */
article.rr-cat.opacity-70 {
  opacity: 0.65;
}
article.rr-cat.grayscale .rr-cat-img {
  filter: grayscale(1) drop-shadow(0 12px 10px rgba(15, 23, 34, 0.14));
}

/* ============================================================
   Trip strip - the compact search summary the SPA mounts under
   the header on every non-home route. White, Sixt/Airbnb-style
   search bar: a floating white pill with labelled cells
   (COUNTRY · PICK-UP · TRIP DATES) split by hairlines, an orange
   pick-up marker, a duration chip and an orange CTA.
   The React structure is untouched - labels are ::before text.
   ============================================================ */
html:not(.rv1) #root .sticky.top-0 > .border-t {
  position: relative;
  background: #fff !important;
  border-top: 1px solid rgba(15, 23, 34, 0.07) !important;
  border-bottom: 1px solid rgba(15, 23, 34, 0.06);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #0f1722;
}
html:not(.rv1) #root .sticky.top-0 > .border-t > .mx-auto {
  position: relative;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}

/* Floating pill */
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 34, 0.1) !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 34, 0.05),
    0 12px 34px -20px rgba(15, 23, 34, 0.35) !important;
  padding: 0.3rem !important;
  gap: 0.45rem !important;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full:has(> button[aria-expanded="true"]) {
  border-color: rgba(15, 23, 34, 0.16) !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 34, 0.05),
    0 18px 44px -20px rgba(15, 23, 34, 0.45) !important;
}

/* Summary button (opens the full search) */
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child {
  min-height: 2.75rem;
  padding: 0.2rem 0.55rem 0.2rem 0.3rem !important;
  gap: 0 !important;
  color: #0f1722;
  border-radius: 999px !important;
  transition: background-color 0.18s ease;
}
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child:hover,
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button[aria-expanded="true"]:first-child {
  background: #f4f6f9 !important;
}

/* Pick-up marker */
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > svg:first-child {
  flex: none;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0.55rem;
  margin-right: 0.7rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff9440 0%, #ff6a00 100%);
  box-shadow: 0 8px 18px -8px rgba(255, 122, 26, 0.85);
}

/* Cells: tiny uppercase label over the value */
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.font-bold,
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.text-ink-soft {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
  line-height: 1.05;
  overflow: visible !important;
  text-overflow: clip !important;
}
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.font-bold::before,
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.text-ink-soft::before {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a93a3;
  white-space: nowrap;
}
/* Country */
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.font-bold {
  color: #0f1722 !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.012em;
}
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.font-bold::before {
  content: "Country";
}
/* Branch */
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.text-ink-soft {
  color: #0f1722 !important;
  font-size: 0.9rem !important;
  font-weight: 800;
  letter-spacing: -0.012em;
}
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.text-ink-soft:not(.truncate)::before,
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.shrink-0.text-ink-soft::before {
  content: "Pick-up";
}
/* Dates */
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.truncate.text-ink-soft:not(.shrink-0) {
  flex: 0 1 auto;
}
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.truncate.text-ink-soft:not(.shrink-0)::before {
  content: "Trip dates";
}
/* "· 2 days" → duration chip. The leading "· " is React text we cannot
   edit, so an opaque ::before in the chip colour masks it. */
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.text-xs {
  position: relative;
  overflow: hidden;
  align-self: flex-end;
  margin: 0 0 0.05rem 0.55rem;
  padding: 0.22rem 0.55rem 0.22rem 0.2rem;
  border-radius: 999px;
  font-size: 0.66rem !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d95d05 !important;
  background: #ffefe2;
}
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.text-xs::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(0.2rem + 0.62em);
  background: #ffefe2;
}
/* The "·" separators become hairline dividers */
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span[class~="text-ink-muted/50"] {
  flex: none;
  width: 1px;
  height: 1.7rem;
  margin: 0 0.95rem;
  font-size: 0 !important;
  line-height: 0;
  background: rgba(15, 23, 34, 0.1);
}
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span[class~="text-ink-muted/50"]:not(.hidden) {
  display: block !important;
}
@media (min-width: 640px) {
  html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span[class~="text-ink-muted/50"].hidden {
    display: block !important;
  }
}
/* Calendar glyph + chevron */
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > svg:not(:first-child):not(:last-child) {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-right: 0.55rem;
  color: #ff7a1a;
}
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > svg:last-child {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  margin-left: auto;
  padding: 0.3rem;
  border-radius: 999px;
  color: #556070;
  background: #f0f2f5;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.18s ease,
    color 0.18s ease;
}
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child:hover > svg:last-child {
  background: #e6e9ee;
  color: #0f1722;
}
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button[aria-expanded="true"]:first-child > svg:last-child {
  transform: rotate(180deg);
  background: #0f1722;
  color: #fff;
}

/* Search CTA */
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button.bg-accent-500 {
  min-height: 2.75rem;
  padding: 0.5rem 1.35rem !important;
  gap: 0.5rem !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  color: #fff !important;
  background: linear-gradient(135deg, #ff9440 0%, #ff6a00 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 26px -12px rgba(255, 122, 26, 0.9) !important;
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s ease,
    filter 0.18s ease;
}
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button.bg-accent-500:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 16px 30px -12px rgba(255, 122, 26, 1) !important;
}
html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button.bg-accent-500:active {
  transform: translateY(0) scale(0.98);
}

/* Expanded panel sits a touch closer and reads as one card */
html:not(.rv1) #root .sticky.top-0 > .border-t .relative > .absolute.inset-x-0.z-20 > form.card {
  border: 1px solid rgba(15, 23, 34, 0.08) !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 34, 0.05),
    0 30px 70px -30px rgba(15, 23, 34, 0.5) !important;
}

@media (max-width: 1023px) {
  html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span[class~="text-ink-muted/50"] {
    margin: 0 0.65rem;
  }
}
@media (max-width: 639px) {
  html:not(.rv1) #root .sticky.top-0 > .border-t > .mx-auto {
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
  }
  html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full {
    padding: 0.25rem !important;
  }
  html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button.bg-accent-500 {
    min-height: 2.6rem;
    min-width: 2.6rem;
    padding: 0.5rem 0.8rem !important;
  }
  html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child {
    min-height: 2.6rem;
    padding-right: 0.4rem !important;
  }
  html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > svg:first-child {
    width: 1.95rem;
    height: 1.95rem;
    padding: 0.5rem;
    margin-right: 0.55rem;
  }
  html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.font-bold,
  html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.text-ink-soft {
    font-size: 0.84rem !important;
  }
  /* Keep the SPA's phone layout: country + dates only, dates may clip */
  html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.text-ink-soft.hidden {
    display: none !important;
  }
  html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span.truncate.text-ink-soft:not(.shrink-0) {
    overflow: hidden !important;
  }
  html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > span[class~="text-ink-muted/50"] {
    margin: 0 0.6rem;
    height: 1.5rem;
  }
  html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button:first-child > svg:not(:first-child):not(:last-child) {
    margin-right: 0.4rem;
  }
}

/* ============================================================
   Filter toolbar - one floating glass panel under the header.
   Chips are outlined until selected (ink fill + check, spring
   pop); Gearbox / Fuel / Sort are custom listboxes driven by
   routes-filterbar.js (native <select> stays for React); the
   price slider is a gradient track with a following value
   bubble; the car count is a live badge that tweens + pulses.
   Micro-labels: 10–11px, tracked, muted. Values: 0.86rem bold.
   ============================================================ */
:root {
  --rvf-ink: #0e1116;
  --rvf-ink-2: #1a1f27;
  --rvf-soft: #4b5364;
  --rvf-muted: #8a91a0;
  --rvf-line: rgba(14, 17, 22, 0.14);
  --rvf-line-strong: rgba(14, 17, 22, 0.26);
  --rvf-tint: rgba(14, 17, 22, 0.05);
  --rvf-orange: #ff7a1a;
  --rvf-orange-deep: #e56a0f;
  --rvf-orange-ink: #c95a0a;
  --rvf-glass: rgba(255, 255, 255, 0.9);
  --rvf-glass-border: rgba(14, 17, 22, 0.08);
  --rvf-shadow:
    0 1px 2px rgba(14, 17, 22, 0.04),
    0 18px 44px -26px rgba(14, 17, 22, 0.42);
  --rvf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rvf-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Results page: the header is NOT sticky - it (and the search strip) scroll
   away and the filter bar takes over as the top chrome. No scroll-shrink here
   either, so the header comes back at full size. routes-filterbar.js sets
   html.rv-search while the toolbar is mounted. */
html.rv-search #root > div > .sticky.top-0 {
  position: relative !important;
  --rv-shrink: 0;
}
html.rv-search #root .sticky.z-30.bg-surface\/85 {
  top: 0 !important;
}

/* Shell: a frosted veil so passing cards never fight the controls; the
   panel inside is the brighter glass surface. */
#root .sticky.z-30.bg-surface\/85 {
  background: rgba(246, 247, 249, 0.86) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.2) !important;
  backdrop-filter: blur(14px) saturate(1.2) !important;
  border-bottom: 1px solid rgba(14, 17, 22, 0.06) !important;
  box-shadow: none;
}
#root .sticky.z-30.bg-surface\/85 > .mx-auto.md\:block {
  padding-top: 0.6rem !important;
  padding-bottom: 0.6rem !important;
}

/* The glass panel */
#root .sticky.z-30.bg-surface\/85 .card.rounded-full {
  background: var(--rvf-glass) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.35) !important;
  backdrop-filter: blur(12px) saturate(1.35) !important;
  border: 1px solid var(--rvf-glass-border) !important;
  border-radius: 999px !important;
  box-shadow: var(--rvf-shadow) !important;
  padding: 0.42rem 0.45rem 0.42rem 0.45rem !important;
  gap: 0.5rem !important;
}
/* Scroller: room so hover-lift/shadows are not clipped; when the row is
   wider than the panel it scrolls, and a soft fade hints at the overflow. */
#root .sticky.z-30.bg-surface\/85 .no-scrollbar {
  position: relative;
  gap: 0.45rem !important;
  padding: 0.25rem 0.2rem;
  margin: -0.25rem -0.2rem;
  scroll-behavior: smooth;
}
#root .sticky.z-30.bg-surface\/85 .no-scrollbar.rv-overflow-end {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
}
#root .sticky.z-30.bg-surface\/85 .no-scrollbar.rv-overflow-start {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 2.5rem);
  mask-image: linear-gradient(to right, transparent, #000 2.5rem);
}
#root .sticky.z-30.bg-surface\/85 .no-scrollbar.rv-overflow-start.rv-overflow-end {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(to right, transparent, #000 2.5rem, #000 calc(100% - 2.5rem), transparent);
}

/* Focus rings (keyboard only) */
#root .sticky.z-30.bg-surface\/85 :is(button, input, select):focus-visible,
.rv-menu__opt:focus-visible {
  outline: 2px solid rgba(255, 122, 26, 0.75) !important;
  outline-offset: 2px;
}

/* ---- Micro-label: FILTER kicker (only where the row has slack) ---- */
#root .sticky.z-30.bg-surface\/85 .card span.uppercase.tracking-wide.text-ink-muted.lg\:flex {
  color: var(--rvf-muted) !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.14em !important;
  font-weight: 800 !important;
  gap: 0.4rem !important;
  padding: 0 0.6rem 0 0.75rem !important;
}
@media (max-width: 1535px) {
  #root .sticky.z-30.bg-surface\/85 .card span.uppercase.tracking-wide.text-ink-muted.lg\:flex {
    display: none !important;
  }
}
#root .sticky.z-30.bg-surface\/85 .card span.uppercase.tracking-wide.text-ink-muted.lg\:flex > svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--rvf-orange);
}

/* ---- Class chips (desktop + phone row) ---- */
#root .sticky.z-30.bg-surface\/85 button[aria-pressed] {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52rem 0.95rem !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em;
  line-height: 1.2;
  border-radius: 999px !important;
  border: 1px solid var(--rvf-line) !important;
  background: transparent !important;
  color: var(--rvf-soft) !important;
  box-shadow: none !important;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s var(--rvf-ease);
}
@media (hover: hover) {
  #root .sticky.z-30.bg-surface\/85 button[aria-pressed]:hover {
    background: var(--rvf-tint) !important;
    border-color: var(--rvf-line-strong) !important;
    color: var(--rvf-ink) !important;
  }
}
#root .sticky.z-30.bg-surface\/85 button[aria-pressed]:active {
  transform: scale(0.97);
}
#root .sticky.z-30.bg-surface\/85 button[aria-pressed="true"] {
  background: var(--rvf-ink) !important;
  border-color: var(--rvf-ink) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding-left: 0.8rem !important;
  box-shadow: 0 10px 22px -12px rgba(14, 17, 22, 0.7) !important;
  animation: rvf-pop 0.2s var(--rvf-spring);
}
#root .sticky.z-30.bg-surface\/85 button[aria-pressed="true"]:hover {
  background: var(--rvf-ink-2) !important;
  border-color: var(--rvf-ink-2) !important;
  color: #fff !important;
}
#root .sticky.z-30.bg-surface\/85 button[aria-pressed="true"]::before {
  content: "";
  flex: none;
  width: 0.72rem;
  height: 0.72rem;
  background: var(--rvf-orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5L20 7' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 5 5L20 7' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: rvf-check 0.24s var(--rvf-spring) both;
}
@keyframes rvf-pop {
  0% {
    transform: scale(0.94);
  }
  60% {
    transform: scale(1.035);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes rvf-check {
  from {
    transform: scale(0) rotate(-25deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* ---- Divider ---- */
#root .sticky.z-30.bg-surface\/85 .card span.h-6.w-px {
  height: 1.5rem !important;
  margin: 0 0.3rem !important;
  background: var(--rvf-line) !important;
}

/* ---- Gearbox / Fuel: label + custom trigger in one outlined pill ---- */
#root .sticky.z-30.bg-surface\/85 .card span.inline-flex.rounded-full.border {
  position: relative;
  background: transparent !important;
  border: 1px solid var(--rvf-line) !important;
  box-shadow: none !important;
  padding: 0 0 0 0.85rem !important;
  gap: 0.45rem !important;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
#root .sticky.z-30.bg-surface\/85 .card span.inline-flex.rounded-full.border:has(.rv-dd.is-open) {
  border-color: var(--rvf-line-strong) !important;
  background: var(--rvf-tint) !important;
}
@media (hover: hover) {
  #root .sticky.z-30.bg-surface\/85 .card span.inline-flex.rounded-full.border:hover {
    border-color: var(--rvf-line-strong) !important;
    background: var(--rvf-tint) !important;
  }
}
#root .sticky.z-30.bg-surface\/85 .card span.inline-flex.rounded-full.border > span.uppercase {
  font-size: 0.66rem !important;
  letter-spacing: 0.12em !important;
  font-weight: 800 !important;
  color: var(--rvf-muted) !important;
  pointer-events: none;
}
/* Native selects stay for React but never paint once enhanced */
#root .sticky.z-30.bg-surface\/85 .card select[data-rv-dd] {
  display: none !important;
}
/* Fallback (script not loaded yet): quiet native select, held invisible for a
   beat so the custom trigger can take over without a flash; if the script
   never lands, the select simply appears. */
#root .sticky.z-30.bg-surface\/85 .card select:not([data-rv-dd]) {
  -webkit-appearance: none;
  appearance: none;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: var(--rvf-ink) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0.5rem 0.75rem !important;
  opacity: 0;
  animation: rvf-reveal 0.01s 0.6s both;
}
@keyframes rvf-reveal {
  to {
    opacity: 1;
  }
}

/* Custom trigger (shared by Gearbox / Fuel / Sort) */
.rv-dd {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.5rem 0.65rem 0.5rem 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--rvf-ink);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease;
}
.rv-dd__value {
  min-width: 2.2rem;
}
.rv-dd.has-choice .rv-dd__value {
  color: var(--rvf-orange-ink);
}
.rv-dd__chev {
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  color: #6b7280;
  transition:
    transform 0.22s var(--rvf-ease),
    color 0.18s ease;
}
.rv-dd:hover .rv-dd__chev {
  color: var(--rvf-ink);
}
.rv-dd.is-open .rv-dd__chev {
  transform: rotate(180deg);
  color: var(--rvf-ink);
}

/* Sort trigger: its own outlined pill with icon + micro-label */
.rv-dd--sort {
  flex: none;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem 0.5rem 0.8rem;
  border: 1px solid var(--rvf-line);
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}
.rv-dd--sort.is-open {
  border-color: var(--rvf-line-strong);
  background: var(--rvf-tint);
}
@media (hover: hover) {
  .rv-dd--sort:hover {
    border-color: var(--rvf-line-strong);
    background: var(--rvf-tint);
  }
}
.rv-dd__ico {
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  color: var(--rvf-orange);
}
.rv-dd__label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rvf-muted);
}

/* Floating glass listbox */
.rv-menu {
  position: fixed;
  z-index: 140;
  min-width: 11rem;
  max-height: min(60vh, 22rem);
  overflow: auto;
  padding: 0.35rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--rvf-glass-border);
  box-shadow:
    0 1px 2px rgba(14, 17, 22, 0.05),
    0 28px 60px -26px rgba(14, 17, 22, 0.5);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 0.18s ease,
    transform 0.2s var(--rvf-ease);
}
.rv-menu.is-open {
  opacity: 1;
  transform: none;
}
.rv-menu.is-closing {
  pointer-events: none;
}
.rv-menu__opt {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.58rem 0.8rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--rvf-ink);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.rv-menu__opt + .rv-menu__opt {
  margin-top: 0.1rem;
}
.rv-menu__opt:hover,
.rv-menu__opt:focus-visible {
  background: var(--rvf-tint);
  outline-offset: -2px;
}
.rv-menu__opt > svg {
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  color: var(--rvf-orange-deep);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.15s ease,
    transform 0.2s var(--rvf-spring);
}
.rv-menu__opt.is-selected {
  background: rgba(255, 122, 26, 0.1);
  color: var(--rvf-orange-ink);
  font-weight: 700;
}
.rv-menu__opt.is-selected:hover,
.rv-menu__opt.is-selected:focus-visible {
  background: rgba(255, 122, 26, 0.16);
}
.rv-menu__opt.is-selected > svg {
  opacity: 1;
  transform: none;
}

/* ---- Price ceiling ---- */
#root .sticky.z-30.bg-surface\/85 .card div.w-52.rounded-full {
  position: relative;
  width: 13rem !important;
  background: transparent !important;
  border: 1px solid var(--rvf-line) !important;
  box-shadow: none !important;
  padding: 0.46rem 0.95rem 0.46rem 0.85rem !important;
  gap: 0.7rem !important;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
#root .sticky.z-30.bg-surface\/85 .card div.w-52.rounded-full:hover,
#root .sticky.z-30.bg-surface\/85 .card div.w-52.rounded-full:focus-within {
  border-color: var(--rvf-line-strong) !important;
}
#root .sticky.z-30.bg-surface\/85 .card div.w-52.rounded-full > span.uppercase {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 0.66rem !important;
  letter-spacing: 0.12em !important;
  font-weight: 800 !important;
  color: var(--rvf-muted) !important;
}
#root .sticky.z-30.bg-surface\/85 .card div.w-52.rounded-full > span.uppercase > span.text-ink {
  color: var(--rvf-orange-deep) !important;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  min-width: 2.6ch;
  transition: color 0.18s ease;
}
#root .sticky.z-30.bg-surface\/85 .card div.w-52.rounded-full.is-dragging > span.uppercase > span.text-ink {
  color: var(--rvf-ink) !important;
}
#root .sticky.z-30.bg-surface\/85 .card input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  margin: 0;
  height: 7px;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  background:
    linear-gradient(90deg, #ffb26b 0%, var(--rvf-orange) 60%, var(--rvf-orange-deep) 100%) 0 0 / var(--rv-range, 100%) 100% no-repeat,
    rgba(14, 17, 22, 0.1);
}
#root .sticky.z-30.bg-surface\/85 .card input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--rvf-orange);
  box-shadow:
    0 1px 2px rgba(14, 17, 22, 0.2),
    0 4px 10px rgba(14, 17, 22, 0.22);
  transition:
    transform 0.18s var(--rvf-ease),
    box-shadow 0.18s ease;
}
#root .sticky.z-30.bg-surface\/85 .card input[type="range"]:hover::-webkit-slider-thumb,
#root .sticky.z-30.bg-surface\/85 .card input[type="range"]:focus-visible::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow:
    0 0 0 6px rgba(255, 122, 26, 0.18),
    0 4px 12px rgba(14, 17, 22, 0.28);
}
#root .sticky.z-30.bg-surface\/85 .card input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow:
    0 0 0 8px rgba(255, 122, 26, 0.22),
    0 4px 12px rgba(14, 17, 22, 0.28);
}
#root .sticky.z-30.bg-surface\/85 .card input[type="range"]::-moz-range-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(14, 17, 22, 0.1);
}
#root .sticky.z-30.bg-surface\/85 .card input[type="range"]::-moz-range-progress {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb26b, var(--rvf-orange-deep));
}
#root .sticky.z-30.bg-surface\/85 .card input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--rvf-orange);
  box-shadow: 0 4px 10px rgba(14, 17, 22, 0.22);
  transition: transform 0.18s var(--rvf-ease), box-shadow 0.18s ease;
}
#root .sticky.z-30.bg-surface\/85 .card input[type="range"]:hover::-moz-range-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(255, 122, 26, 0.18), 0 4px 12px rgba(14, 17, 22, 0.28);
}
/* Value bubble riding the thumb (fixed, on <body> - the row clips overflow) */
.rv-price__bubble {
  position: fixed;
  z-index: 130;
  left: 0;
  top: 0;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  background: var(--rvf-ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% + 4px)) scale(0.96);
  box-shadow: 0 10px 22px -10px rgba(14, 17, 22, 0.7);
  transition:
    opacity 0.18s ease,
    transform 0.2s var(--rvf-ease);
}
.rv-price__bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: var(--rvf-ink);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 1px;
}
.rv-price__bubble.is-on {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

/* ---- Result count badge (+ "Clear N" ghost button when filters are on) ---- */
#root .sticky.z-30.bg-surface\/85 .card > .flex.shrink-0.pl-1 {
  padding-left: 0.15rem !important;
  gap: 0.4rem !important;
}
#root .sticky.z-30.bg-surface\/85 .card > .flex.shrink-0.pl-1 > button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.75rem 0.45rem 0.6rem !important;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent !important;
  color: var(--rvf-soft) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
  animation: rvf-pop 0.2s var(--rvf-spring);
}
#root .sticky.z-30.bg-surface\/85 .card > .flex.shrink-0.pl-1 > button:hover {
  background: var(--rvf-tint) !important;
  border-color: var(--rvf-line);
  color: var(--rvf-ink) !important;
}
#root .sticky.z-30.bg-surface\/85 .card > .flex.shrink-0.pl-1 > button > svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--rvf-orange-deep);
}
#root .sticky.z-30.bg-surface\/85 .card > .flex.shrink-0.pl-1 > span.font-bold {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 1rem 0.52rem 0.85rem;
  border-radius: 999px;
  background: var(--rvf-ink);
  color: #fff;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  box-shadow:
    0 1px 2px rgba(14, 17, 22, 0.25),
    0 12px 26px -14px rgba(14, 17, 22, 0.85);
  transition: transform 0.2s var(--rvf-ease), box-shadow 0.2s ease;
}
#root .sticky.z-30.bg-surface\/85 .card > .flex.shrink-0.pl-1 > span.font-bold::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  background: var(--rvf-orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Cpath d='M9 17h6'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Cpath d='M9 17h6'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
#root .sticky.z-30.bg-surface\/85 .card > .flex.shrink-0.pl-1 > span.font-bold.is-live {
  animation: rvf-live 0.75s var(--rvf-ease);
}
@keyframes rvf-live {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(255, 122, 26, 0.55),
      0 12px 26px -14px rgba(14, 17, 22, 0.85);
  }
  35% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 12px rgba(255, 122, 26, 0),
      0 12px 26px -14px rgba(14, 17, 22, 0.85);
  }
}

/* ---- Phone row: Filters trigger + scrolling chips on the frosted shell ---- */
#root .sticky.z-30.bg-surface\/85 > .md\:hidden {
  padding: 0.55rem 1rem !important;
  gap: 0.5rem !important;
}
#root .sticky.z-30.bg-surface\/85 > .md\:hidden > button.bg-ink {
  gap: 0.45rem !important;
  padding: 0.52rem 0.95rem !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  background: var(--rvf-ink) !important;
  box-shadow: 0 10px 22px -12px rgba(14, 17, 22, 0.7) !important;
  transition: transform 0.18s var(--rvf-ease), background-color 0.18s ease;
}
#root .sticky.z-30.bg-surface\/85 > .md\:hidden > button.bg-ink:hover {
  background: var(--rvf-ink-2) !important;
}
#root .sticky.z-30.bg-surface\/85 > .md\:hidden > button.bg-ink > svg {
  color: var(--rvf-orange);
}
#root .sticky.z-30.bg-surface\/85 > .md\:hidden .no-scrollbar {
  padding: 0.25rem 0.2rem;
  margin: -0.25rem -0.2rem;
  scroll-padding-inline: 0.2rem;
}

/* Tablet: the row scrolls; keep the count pinned and tidy */
@media (min-width: 768px) and (max-width: 1279px) {
  #root .sticky.z-30.bg-surface\/85 .card div.w-52.rounded-full {
    width: 12rem !important;
  }
  #root .sticky.z-30.bg-surface\/85 .card > .flex.shrink-0.pl-1 > span.font-bold {
    padding: 0.5rem 0.85rem 0.5rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #root .sticky.z-30.bg-surface\/85 button[aria-pressed],
  #root .sticky.z-30.bg-surface\/85 button[aria-pressed="true"],
  #root .sticky.z-30.bg-surface\/85 button[aria-pressed="true"]::before,
  #root .sticky.z-30.bg-surface\/85 .card > .flex.shrink-0.pl-1 > span.font-bold.is-live,
  #root .sticky.z-30.bg-surface\/85 .card input[type="range"]::-webkit-slider-thumb,
  .rv-dd,
  .rv-dd__chev,
  .rv-menu,
  .rv-menu__opt,
  .rv-price__bubble,
  html:not(.rv1) #root .sticky.top-0 > .border-t .relative.z-20.rounded-full > button.bg-accent-500 {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Compact search title band ("Which ride moves you?") ----------
   Keep the original dark ink look (stripe + counter); only reduce height.
   IMPORTANT: exclude the home hero (data-rv="hero", and .h-[100svh] before the
   revamp script tags it) - it also uses bg-ink + h1.type-hero, and these
   ID-specificity !important rules would otherwise override its padding/colours. */
#root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]),
#root main section.bg-ink.rha:has(h1.type-hero):not([data-rv="hero"]) {
  min-height: 0 !important;
  background-color: #0e1116 !important;
  background-image: none !important;
  color: #fff !important;
}
#root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]):not(.h-\[100svh\]) > .relative.mx-auto {
  gap: 0.75rem !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
@media (min-width: 1024px) {
  #root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]):not(.h-\[100svh\]) > .relative.mx-auto {
    padding-top: 1.15rem !important;
    padding-bottom: 1.15rem !important;
  }
}
#root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]):not(.h-\[100svh\]) h1.type-hero,
#root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]):not(.h-\[100svh\]) .type-hero {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem) !important;
  line-height: 1.08 !important;
  max-width: 22ch;
  color: #fff !important;
}
#root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]):not(.h-\[100svh\]) .text-accent-500 {
  color: #ff7a1a !important;
}
#root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]):not(.h-\[100svh\]) .text-white:not([class*="bg-"]) {
  color: #fff !important;
}
#root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]):not(.h-\[100svh\]) [class*="text-white/"] {
  color: rgba(255, 255, 255, 0.65) !important;
}
#root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]):not(.h-\[100svh\]) p.mt-5 {
  margin-top: 0.4rem !important;
  font-size: 0.8125rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
}
#root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]):not(.h-\[100svh\]) .flex.items-end.justify-between {
  gap: 1.25rem !important;
}
#root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]):not(.h-\[100svh\]) .rounded-3xl {
  padding: 0.65rem 1.1rem !important;
  border-radius: 1rem !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  box-shadow: none !important;
}
#root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]):not(.h-\[100svh\]) .text-5xl,
#root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]):not(.h-\[100svh\]) .sm\:text-6xl {
  font-size: 2rem !important;
  color: #fff !important;
}
#root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]):not(.h-\[100svh\]) .absolute.rounded-full {
  height: 10rem !important;
  width: 10rem !important;
}
#root main section.bg-ink:has(h1.type-hero):not([data-rv="hero"]):not(.h-\[100svh\]) .diag-stripes-soft {
  display: block !important;
  opacity: 0.7 !important;
}
/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
  article.rr-cat { min-height: 0; }
  .rr-cat-media { height: 156px; min-height: 156px; }
  .rr-cat-img { max-height: 146px; }
}
@media (max-width: 640px) {
  :root { --rcat-pad: 18px; }
  article.rr-cat { min-height: 0; }
  .rr-cat-media { height: 152px; min-height: 152px; }
  .rr-cat-img { max-height: 142px; }
  .rr-cat-select { min-width: 104px; }
  .rr-cat-badge {
    top: 12px;
    right: -36px;
    width: 108px;
    font-size: 0.54rem;
  }
}
