.vehicle-search-page {
  background: #f5f5f4;
}

.search-page-hero {
  min-height: 330px;
  padding: 76px 24px 110px;
  background: radial-gradient(circle at 78% 18%, rgba(212, 159, 0, 0.22), transparent 28%), linear-gradient(135deg, #17191d 0%, #26292e 100%);
  color: #fff;
}

.search-page-hero > div,
.detailed-search-shell,
.search-results-section {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.search-page-hero h1 {
  max-width: 850px;
  margin: 12px 0 14px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
}

.search-page-hero h1 span {
  color: var(--mobi-gold);
}

.search-page-hero p:last-child {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.detailed-search-shell {
  position: relative;
  z-index: 2;
  margin-top: -62px;
  scroll-margin-top: 90px;
}

.detailed-search-form {
  overflow: hidden;
  border: 1px solid #dedfe1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(23, 25, 29, 0.12);
}

.detailed-search-heading {
  display: flex;
  padding: 30px 34px;
  border-bottom: 1px solid var(--mobi-line);
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.detailed-search-heading h2 {
  margin: 4px 0 0;
  color: var(--mobi-ink);
  font-size: clamp(28px, 3vw, 39px);
}

.search-offer-count {
  display: flex;
  min-width: 188px;
  padding: 13px 17px;
  border: 0;
  border-radius: 13px;
  background: var(--mobi-gold);
  align-items: center;
  justify-content: center;
}

.search-offer-count strong {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.search-filter-section {
  border-bottom: 1px solid var(--mobi-line);
}

.search-filter-toggle {
  display: flex;
  width: 100%;
  padding: 25px 34px;
  border: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
}

.search-filter-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-filter-number {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--mobi-ink);
  color: var(--mobi-gold);
  font-size: 12px;
  font-weight: 800;
  place-items: center;
}

.search-filter-copy {
  min-width: 0;
}

.search-filter-title {
  display: block;
  color: var(--mobi-ink);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
}

.search-filter-description {
  display: block;
  margin-top: 2px;
  color: var(--mobi-muted);
  font-size: 13px;
  line-height: 1.35;
}

.search-filter-chevron {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.search-filter-chevron::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--mobi-ink);
  border-bottom: 2px solid var(--mobi-ink);
  content: "";
  transform: translate(-50%, -70%) rotate(45deg);
  transition: transform 280ms ease;
}

.search-filter-section.is-open .search-filter-chevron::before {
  transform: translate(-50%, -30%) rotate(-135deg);
}

.search-filter-content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: grid-template-rows 360ms ease, opacity 240ms ease, visibility 0s linear 360ms;
}

.search-filter-section.is-open .search-filter-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  transition: grid-template-rows 360ms ease, opacity 240ms ease;
}

.search-filter-content-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 34px;
  transition: padding 360ms ease;
}

.search-filter-section.is-open .search-filter-content-inner {
  padding: 7px 34px 38px;
}

.search-filter-content[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .search-filter-content,
  .search-filter-content-inner,
  .search-filter-chevron::before {
    transition: none;
  }
}

.search-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.search-field, .search-range-field {
  min-width: 0;
}

.search-field > span, .search-range-field > span, .search-check-group > strong {
  display: block;
  margin-bottom: 7px;
  color: #4b4e52;
  font-size: 12px;
  font-weight: 800;
}

.search-field input, .search-field select, .search-range-field input, .search-floating-actions select {
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid #d8dade;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #303338;
}

.search-field input:focus, .search-field select:focus, .search-range-field input:focus {
  border-color: var(--mobi-gold);
  box-shadow: 0 0 0 3px rgba(212, 159, 0, 0.12);
}

.search-range-field > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.search-check-group {
  margin-top: 25px;
}

.search-check-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-check-group label {
  position: relative;
}

.search-check-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.search-check-group label span {
  display: inline-flex;
  min-height: 39px;
  padding: 9px 13px;
  border: 1px solid #dfe0e2;
  border-radius: 10px;
  background: #fff;
  color: #55595e;
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  cursor: pointer;
}

.search-check-group input:checked + span {
  border-color: #d3a419;
  background: var(--mobi-gold-soft);
  color: #6d5206;
}

.search-check-group input:focus-visible + span {
  outline: 3px solid rgba(212, 159, 0, 0.25);
}

.search-switch {
  display: inline-flex;
  margin-top: 26px;
  align-items: center;
  gap: 9px;
  color: #4d5055;
  font-size: 13px;
  font-weight: 800;
}

.search-switch input {
  width: 19px;
  height: 19px;
  accent-color: var(--mobi-gold);
}

.detailed-search-actions {
  display: flex;
  padding: 24px 34px;
  background: #f8f8f7;
  align-items: center;
  justify-content: flex-end;
  gap: 21px;
}

.detailed-search-actions > a {
  color: #73767b;
  font-size: 13px;
  font-weight: 800;
}

.detailed-search-actions button {
  min-width: 225px;
  padding: 14px 20px;
  border: 0;
  border-radius: 11px;
  background: var(--mobi-gold);
  color: #17191d;
  font-weight: 900;
}

.floating-search-submit {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  opacity: 0;
  padding: 15px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--mobi-gold);
  box-shadow: 0 14px 35px rgba(23, 25, 29, 0.25);
  color: #17191d;
  font-weight: 900;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-search-submit.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-search-submit i {
  font-size: 20px;
}

.search-results-section {
  padding: 70px 0 105px;
}

.search-floating-bar {
  position: sticky;
  z-index: 35;
  top: 84px;
  display: flex;
  margin-bottom: 44px;
  padding: 13px 15px 13px 20px;
  border: 1px solid rgba(212, 159, 0, 0.38);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 15px 38px rgba(23, 25, 29, 0.14);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.search-floating-bar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.search-floating-bar strong {
  color: var(--mobi-ink);
}

.search-floating-bar span {
  color: #7b7e83;
  font-size: 12px;
}

.search-floating-actions, .search-floating-actions form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-floating-actions select {
  min-height: 40px;
  padding: 7px 36px 7px 11px;
  font-size: 12px;
  font-weight: 700;
}

.search-floating-actions > a {
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--mobi-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.search-floating-actions > a span {
  margin-left: 7px;
  color: var(--mobi-gold);
}

.results-heading {
  display: flex;
  margin-bottom: 28px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.results-heading h2 {
  margin: 5px 0 0;
  color: var(--mobi-ink);
  font-size: clamp(30px, 3vw, 42px);
}

.results-heading > p {
  margin: 0;
  color: var(--mobi-muted);
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.search-results-grid .vehicle-image {
  height: 190px;
}

.search-results-grid .vehicle-content {
  padding: 18px;
}

.search-results-grid .vehicle-title-row {
  display: block;
}

.search-results-grid .vehicle-title-row strong {
  display: block;
  margin-top: 13px;
}

.search-results-grid .vehicle-footer {
  align-items: flex-start;
}

.lazy-load-area {
  display: flex;
  min-height: 130px;
  padding: 36px 0 0;
  align-items: center;
  flex-direction: column;
}

.lazy-load-area[hidden] {
  display: none;
}

.lazy-load-area button {
  padding: 11px 18px;
  border: 1px solid #c8cace;
  border-radius: 10px;
  background: #fff;
  color: var(--mobi-ink);
  font-weight: 800;
}

.lazy-load-area p {
  margin: 8px 0 0;
  color: var(--mobi-muted);
  font-size: 12px;
}

.lazy-loader {
  display: none;
  width: 27px;
  height: 27px;
  margin-bottom: 10px;
  border: 3px solid #dedfe1;
  border-top-color: var(--mobi-gold);
  border-radius: 50%;
  animation: search-loader 700ms linear infinite;
}

.lazy-load-area.is-loading .lazy-loader {
  display: block;
}

.lazy-load-area.is-loading button {
  display: none;
}

@keyframes search-loader {
  to {
    transform: rotate(360deg);
  }
}

.search-empty-state {
  padding: 70px 25px;
  border: 1px dashed #c7c9cc;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.search-empty-state > span {
  color: var(--mobi-gold);
  font-size: 50px;
  font-weight: 900;
}

.search-empty-state h3 {
  margin: 4px 0 8px;
  color: var(--mobi-ink);
  font-size: 25px;
}

.search-empty-state p {
  margin: 0 0 18px;
  color: var(--mobi-muted);
}

.search-empty-state a {
  color: var(--mobi-gold-dark);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .search-field-grid, .search-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .search-field-grid, .search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .search-page-hero > div, .detailed-search-shell, .search-results-section {
    width: min(100% - 30px, var(--container));
  }

  .search-page-hero {
    padding: 58px 15px 100px;
  }

  .detailed-search-heading, .results-heading, .search-floating-bar, .detailed-search-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search-offer-count {
    justify-content: flex-start;
  }

  .detailed-search-heading, .search-filter-toggle {
    padding-right: 20px;
    padding-left: 20px;
  }

  .search-filter-content-inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  .search-filter-section.is-open .search-filter-content-inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  .search-filter-description {
    display: none;
  }

  .floating-search-submit {
    right: 15px;
    bottom: 15px;
    left: 15px;
    justify-content: center;
  }

  .search-field-grid, .search-results-grid {
    grid-template-columns: 1fr;
  }

  .search-floating-bar {
    top: 78px;
  }

  .search-floating-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search-floating-actions form, .search-floating-actions select {
    width: 100%;
  }

  .search-floating-actions > a {
    text-align: center;
  }

  .detailed-search-actions button {
    width: 100%;
  }
}

.detailed-search-shell:last-of-type {
  margin-bottom: 0px;
  padding-bottom: 50px;
}
