/* Align the right result column with the left filter panel. */
@media (min-width: 761px) {
  .hacvf-layout > .hacvf-results { margin: 0; padding: 0; }
  .hacvf-layout > .hacvf-filter { margin: 0; align-self: start; position: sticky; top: var(--hacvf-sticky-top, 180px); max-height: calc(100dvh - var(--hacvf-sticky-top, 180px) - 16px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ccc transparent; }
  .hacvf-filter::-webkit-scrollbar { width: 6px; }
  .hacvf-filter::-webkit-scrollbar-track { background: transparent; }
  .hacvf-filter::-webkit-scrollbar-thumb { background: #ccc; border-radius: 6px; }
}
.hacvf-results-full { grid-column: 1 / -1; }
@media (min-width: 761px) { .hacvf-results-full { margin-top: 0; } }
.hacvf-layout > .hacvf-filter:not(.hacvf-filter-enhanced) { display: none; }
body:has(.hacvf) .wishlist-block { display: none !important; }
@media (min-width: 761px) { .hacvf-layout { grid-template-columns: 310px minmax(0,1fr); } }
/* Compact the catalogue on laptop-height screens without shrinking the entire page. */
@media (min-width: 761px) and (max-height: 950px) {
  .hacvf { padding-bottom: 42px; font-size: 14px; }
  .hacvf-layout { grid-template-columns: 280px minmax(0,1fr); gap: 13px; }
  .hacvf-filter { padding: 15px 17px; }
  .hacvf-filter h2 { font-size: 18px; margin-bottom: 10px; }
  .hacvf-filter label { font-size: 12px; margin: 8px 0 3px; }
  .hacvf-filter select, .hacvf-filter input { height: 35px; padding: 5px 8px; font-size: 13px; }
  .hacvf-price-fields { gap: 6px; }
  .hacvf-filter .hacvd-button { min-height: 36px; padding: 6px 10px; margin-top: 12px; }
  .hacvf-reset { margin-top: 7px; }
  .hacvf-results { gap: 13px; }
  .hacvf-head { padding: 15px 17px; }
  .hacvf-head h1 { font-size: 22px; }
  .hacvf-car { grid-template-columns: minmax(200px, 255px) minmax(0,1fr); gap: 14px; padding: 13px; }
  .hacvf-photo { height: 188px; }
  .hacvf-car h2 { font-size: 18px; }
  .hacvf-sub { margin-bottom: 9px; }
  .hacvf-price { font-size: 21px; margin: 6px 0 9px; }
  .hacvf-facts { padding-top: 9px; font-size: 12px; }
  .hacvf-actions { margin-top: 10px; }
  .hacvf-actions .hacvd-button { min-height: 36px; padding: 6px 10px; }
}
