.home-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 35rem;
  overflow: hidden;
  isolation: isolate;
  padding: 4.75rem 0 2.75rem;
  background-color: var(--fn-body-bg);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 56rem;
}

.home-hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.01em;
}

.home-hero-title-location {
  display: inline-block;
  padding-bottom: 0.08em;
  border-bottom: 0.07em solid var(--fn-primary);
  white-space: nowrap;
}

.home-hero-description {
  max-width: 40rem;
  margin: 1.2rem auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.5;
}

.home-hero-search {
  width: min(100%, 43.75rem);
  max-width: none;
  margin: 1.75rem auto 0;
}

.home-hero-search .search-bar-field {
  min-height: 3.75rem;
  border-color: rgba(var(--fn-body-color-rgb), 0.18);
  box-shadow: 0 0.8rem 1.7rem rgba(4, 10, 20, 0.22);
}

.home-hero-search .search-bar-field:focus-within {
  border-color: rgba(var(--fn-primary-rgb), 0.8);
  box-shadow: 0 0 0 0.2rem rgba(var(--fn-primary-rgb), 0.18), 0 0.8rem 1.7rem rgba(4, 10, 20, 0.22);
}

.home-hero-search [data-vehicle-search-modal-trigger] {
  cursor: pointer;
}

@media (min-width: 992px) {
  .content-wrapper {
    padding-top: 0;
  }

  .home-header-search-hidden {
    display: none !important;
  }

  .home-header-search-hidden.is-visible {
    display: block !important;
  }
}

.home-hero-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.home-hero-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.home-hero-filter-chip:hover,
.home-hero-filter-chip:focus-visible {
  color: #fff;
  background-color: rgba(var(--fn-primary-rgb), 0.3);
  border-color: rgba(var(--fn-primary-rgb), 0.9);
}

.home-hero-filter-chip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.home-hero-vehicle {
  position: absolute;
  z-index: -1;
  bottom: 0.75rem;
  width: min(44vw, 46rem);
  pointer-events: none;
}

.home-hero-vehicle img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1.25rem 1.25rem rgba(0, 0, 0, 0.3));
}

.home-hero-vehicle--left {
  left: clamp(-13rem, calc(50% - 68rem), -4rem);
}

.home-hero-vehicle--right {
  right: clamp(-13rem, calc(50% - 68rem), -4rem);
}

@media (max-width: 1199.98px) {
  .home-hero-vehicle {
    bottom: 1.5rem;
    width: 40vw;
    opacity: 0.78;
  }

  .home-hero-vehicle--left {
    left: -8rem;
  }

  .home-hero-vehicle--right {
    right: -8rem;
  }
}

@media (min-width: 992px) {
  .home-hero {
    min-height: 28rem;
    padding: 4rem 0 2.25rem;
  }
}

@media (max-width: 991.98px) {
  .home-hero {
    min-height: 0;
    padding: 3.75rem 0 2.5rem;
  }

  .home-hero-vehicle {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .home-hero {
    padding: 3rem 0 2.25rem;
  }

  .home-hero-title {
    font-size: 2.3rem;
  }

  .home-hero-description {
    margin-top: 1rem;
  }

  .home-hero-search {
    margin-top: 1.6rem;
  }

  .home-hero-filters {
    gap: 0.5rem;
  }

  .home-hero-filter-chip {
    font-size: 0.84rem;
  }
}

.home-dealers-section .home-dealers-swiper {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.home-dealer-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 5.5rem;
  padding: 0.75rem;
  color: var(--fn-body-color);
  text-decoration: none;
  background-color: var(--fn-secondary-bg);
  border: 1px solid var(--fn-border-color);
  border-radius: 1rem;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.home-dealer-card:hover,
.home-dealer-card:focus-visible {
  color: var(--fn-body-color);
  background-color: var(--fn-tertiary-bg);
  border-color: rgba(var(--fn-primary-rgb), 0.65);
}

.home-dealer-card:focus-visible {
  outline: 2px solid var(--fn-primary);
  outline-offset: 2px;
}

.home-dealer-avatar-wrap {
  display: block;
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  background-color: var(--fn-body-bg);
  border: 1px solid var(--fn-border-color);
  border-radius: 50%;
}

.home-dealer-avatar-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-dealer-info {
  min-width: 0;
}

.home-dealer-name {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-dealer-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  overflow: hidden;
  color: var(--fn-secondary-color);
  font-size: 0.7rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-dealer-location i {
  flex: 0 0 auto;
  font-size: 0.72rem;
}

.home-dealers-nav {
  top: 50%;
  width: 2rem;
  height: 2rem;
  transform: translateY(-50%);
}

.home-dealers-prev {
  left: -0.25rem;
}

.home-dealers-next {
  right: -0.25rem;
}

@media (min-width: 576px) {
  .home-dealers-section .home-dealers-swiper {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .home-dealers-prev {
    left: -2.25rem;
  }

  .home-dealers-next {
    right: -2.25rem;
  }
}

@media (max-width: 575.98px) {
  .home-dealers-section .home-dealers-swiper {
    padding-right: 2.25rem !important;
    padding-left: 2.25rem !important;
  }

  .home-dealer-card {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    min-height: 5rem;
    gap: 0.625rem;
    padding: 0.625rem;
  }

  .home-dealer-avatar-wrap {
    width: 3.5rem;
    height: 3.5rem;
  }
}
