/* The results pages of the catalogs (core/_catalog_results.html): no banner; under the top bar the request,
   the removable marks, the sort; a column of filters on the left beside the cards. */
.vehicle-results { padding: 20px 0 48px; color: var(--mk-ink); }
.vr-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 18px; }
.vr-search, .vr-line, .vr-chips, .vr-sort { min-width: 0; }

.vr-search { display: flex; gap: 10px; max-width: 760px; }
.vr-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid #dcded8; border-radius: 10px; background: #fff; font-size: 16px; color: #36423d; }
.vr-search input:focus-visible { outline: 2px solid var(--mk-green); outline-offset: 2px; }
.vr-search button { min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--mk-green); color: #fff; font-weight: 700; font-size: 15px; }
.vr-search button:hover { background: #064636; }

.vr-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.vr-count { margin: 0; font-size: 15px; font-weight: 700; }
.vr-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; }
.vr-sort-label { color: #6b746e; }
.vr-sort a { color: #3f4a44; text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.vr-sort a:hover { color: var(--mk-green); }
.vr-sort a[aria-current] { color: var(--mk-green); font-weight: 700; border-bottom-color: var(--mk-green); }
.vr-filter-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid #c9d8cf; border-radius: 10px; background: #fff; color: var(--mk-green); font-weight: 700; font-size: 14px; margin-left: auto; }
.vr-filter-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--mk-green); color: #fff; font-size: 12px; }

.vr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vr-chip, .vr-clear { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; }
.vr-chip { background: #eef5ef; border: 1px solid #d3e1d3; color: #145447; }
.vr-chip:hover { background: #e2eee4; }
.vr-clear { color: #6b746e; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.vr-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.vr-filters { position: sticky; top: 96px; }
.vr-filter-form { display: grid; gap: 14px; padding: 18px; border: 1px solid #e3e6df; border-radius: 14px; background: #fff; }
.vr-filter-form label, .vr-filter-form fieldset { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.vr-filter-form label > span, .vr-filter-form legend { font-size: 13px; font-weight: 700; color: #4c6158; padding: 0; }
.vr-filter-form select, .vr-filter-form input[type="text"] { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #d6d9d2; border-radius: 9px; background: #fff; font-size: 15px; color: #36423d; }
.vr-pair { grid-template-columns: 1fr 1fr; }
.vr-pair legend { grid-column: 1 / -1; margin-bottom: 6px; }
.vr-more { border-top: 1px solid #e8eae4; padding-top: 12px; }
.vr-more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--mk-green); min-height: 32px; }
.vr-more[open] summary { margin-bottom: 12px; }
.vr-more label { margin-bottom: 12px; }
.vr-apply { min-height: 46px; border-radius: 10px; background: var(--mk-green); color: #fff; font-weight: 700; font-size: 15px; }
.vr-apply:hover { background: #064636; }

.vr-results { min-width: 0; }
.vr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.vr-empty { padding: 36px 28px; border: 1px dashed #c9d3c8; border-radius: 14px; background: #fff; text-align: center; }
.vr-empty h3 { margin: 0 0 8px; font-size: 20px; }
.vr-empty p { margin: 8px 0; color: #4d5954; line-height: 1.5; }
.vr-applied strong { display: inline-block; margin: 2px 4px; padding: 3px 10px; border-radius: 100px; background: #eef5ef; color: #145447; font-size: 14px; }
.vr-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.vr-widen, .vr-neighbor { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.vr-widen { background: var(--mk-green); color: #fff; }
.vr-widen:hover { background: #064636; }
.vr-neighbor { border: 1px solid #c9d8cf; color: var(--mk-green); background: #fff; }

@media (max-width: 1280px) { .vr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .vr-layout { grid-template-columns: 1fr; gap: 16px; }
  .vr-filter-toggle { display: inline-flex; }
  .vr-filters { position: static; display: none; }
  .vr-filters.is-open { display: block; }
  .vr-results .vr-grid.shop-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 700px) {
  .vehicle-results { padding-top: 14px; }
  .vr-search button { padding: 0 16px; }
  .vr-line { gap: 8px 14px; }
  .vr-sort { width: 100%; order: 3; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; padding-bottom: 2px; }
  .vr-filter-toggle { margin-left: auto; }
}
.vr-sort { scrollbar-width: none; }
.vr-sort::-webkit-scrollbar { display: none; }

/* "Limpar tudo" beside the marks of Lojas: a plain link, not a mark */
.shop-search-active-filters a.vr-clear { background: none; border: 0; color: #6b746e; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.shop-search-empty a.vr-widen { color: #fff; }
.shop-search-empty .vr-applied, .shop-search-empty .vr-empty-actions { margin-top: 12px; }
.shop-search-empty .vr-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Blocks of a results page that holds wished districts: the best matches, then the other districts. */
.vr-block-head { margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid #d7e3d3; }
.vr-block-head:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.vr-block-head h3 { margin: 0 0 4px; font-size: 18px; color: #145447; }
.vr-block-head p { margin: 0; font-size: 14px; line-height: 1.4; color: #55645f; }
.vr-filter-form .vr-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.vr-filter-form .vr-checks legend { flex: 0 0 100%; margin-bottom: 4px; }
.vr-filter-form .vr-check { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; }
.vr-filter-form .vr-check > span { font-size: 14px; font-weight: 500; color: #36423d; }
.vr-filter-form .vr-check input { width: 18px; height: 18px; margin: 0; accent-color: #145447; }
