/* Hero slider — search cars near you */

.hero-slider {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 48px 0 56px;
  color: #fff;
  overflow: hidden;
}

.hero-slider-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1555215695-3004980ad54e?w=2200&q=85&auto=format&fit=crop') center/cover no-repeat;
  transform: scale(1.02);
}

.hero-slider-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.88) 100%);
}

.hero-slider-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 94%);
  margin: auto;
}

.hero-slider-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-align: center;
  margin: 0 0 28px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-search-shell {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 0;
  background: #fff;
  flex-wrap: wrap;
}

.hero-search-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  padding-bottom: 12px;
}

.hero-slider-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  flex-wrap: wrap;
}

.hero-tab {
  background: #f3f4f6;
  border: 0;
  color: #6b7280;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.hero-tab:hover {
  color: #111827;
  background: #e5e7eb;
}

.hero-tab.active {
  color: #fff;
  background: #111827;
}

.hero-search-bar-wrap {
  background: #fff;
  padding: 14px 16px 16px;
}

.hero-search-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.hero-search-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.hero-search-field {
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #e8eaee;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-search-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.hero-search-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.hero-select {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  padding: 0;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%239ca3af' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 18px;
  line-height: 1.3;
}

.hero-search-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
}

.hero-filter-btn {
  width: 52px;
  min-height: 52px;
  border-radius: 12px;
  background: #f4f5f7;
  color: #111;
  display: grid;
  place-items: center;
  font-size: 17px;
  border: 1px solid #e8eaee;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.hero-filter-btn.is-open,
.hero-filter-btn:hover {
  background: #eef0f3;
  border-color: #d1d5db;
}

.hero-filter-btn i {
  color: var(--primary);
  font-size: 18px;
}

.hero-find-btn {
  min-height: 52px;
  min-width: 148px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 35%, transparent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-find-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 42%, transparent);
}

.hero-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 900;
}

.hero-count-badge[hidden] {
  display: none;
}

.hero-advanced-panel {
  padding: 0 16px 14px;
  background: #fff;
  animation: heroPanelIn 0.25s ease;
}

@keyframes heroPanelIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-advanced-panel[hidden] {
  display: none;
}

.hero-advanced-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding-top: 4px;
}

.hero-search-field--advanced {
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 12px;
}

.hero-input {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  padding: 0;
  line-height: 1.3;
}

.hero-input::placeholder {
  color: #9ca3af;
  font-weight: 600;
}

.hero-advanced-hint {
  margin: 12px 2px 0;
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.hero-advanced-hint i {
  color: var(--primary);
  margin-right: 4px;
}

.hero-categories-wrap {
  margin-top: 22px;
}

.hero-categories-wrap:not(.hero-categories-wrap--carousel) {
  overflow: hidden;
}

.hero-categories-wrap--carousel {
  overflow: visible;
}

.hero-categories-wrap--carousel .hero-categories-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.hero-categories-wrap--carousel .hero-categories-carousel-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.hero-categories-wrap--carousel .category-list.style1,
.aurexo-hero .hero-categories-wrap--carousel .category-list.style1 {
  width: 100%;
}

.hero-categories-wrap--carousel .category-list.style1 .category-list-inner,
.aurexo-hero .hero-categories-wrap--carousel .category-list.style1 .category-list-inner {
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  transition: transform 0.35s ease;
  will-change: transform;
}

.hero-cat-carousel-btn {
  flex: 0 0 auto;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s;
}

.hero-cat-carousel-btn:hover:not(:disabled) {
  background: #fff;
  color: #111827;
  border-color: #fff;
}

.hero-cat-carousel-btn.is-disabled,
.hero-cat-carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 640px) {
  .hero-cat-carousel-btn {
    width: 34px;
    height: 34px;
  }

  .hero-categories-wrap--carousel .hero-categories-carousel {
    gap: 6px;
  }
}

.hero-categories-head {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  margin-bottom: 10px;
}

.hero-categories-view {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  opacity: 0.95;
}

.hero-categories-view:hover {
  opacity: 1;
  color: #fff;
}

.hero-categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hero-categories::-webkit-scrollbar {
  display: none;
}

.hero-category {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 148px;
  backdrop-filter: blur(4px);
}

.hero-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 32px;
}

.hero-category-icon svg,
.hero-category-icon .body-type-svg {
  display: block;
  width: 41px;
  height: 18px;
}

.hero-category-icon [class^="icon-aurexo-"] {
  font-size: 26px;
  color: #fff;
  line-height: 1;
}

.hero-category-icon svg path {
  stroke: #ffffff !important;
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.hero-category:hover,
.hero-category:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-category:hover .hero-category-icon svg path,
.hero-category:focus-visible .hero-category-icon svg path {
  stroke: #111827 !important;
}

.hero-stats.stats-band {
  padding: 0 0 40px;
  margin-top: 0;
  background: transparent;
}

@media (max-width: 1100px) {
  .hero-advanced-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-search-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .hero-slider {
    min-height: auto;
    padding: 28px 0 32px;
  }

  .hero-slider-title {
    margin-bottom: 20px;
    font-size: 28px;
  }

  .hero-search-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 12px 0;
  }

  .hero-search-bar {
    flex-direction: column;
  }

  .hero-search-fields {
    grid-template-columns: 1fr;
  }

  .hero-search-actions {
    width: 100%;
  }

  .hero-filter-btn {
    flex: 1;
    width: auto;
  }

  .hero-find-btn {
    flex: 2;
    width: auto;
    min-width: 0;
  }

  .hero-advanced-grid {
    grid-template-columns: 1fr;
  }

  .hero-search-bar-wrap {
    padding: 12px;
  }
}

@media (max-width: 520px) {
  .hero-tab {
    font-size: 13px;
    padding: 7px 12px;
  }

  .hero-category {
    min-width: 110px;
    padding: 10px 12px;
    font-size: 12px;
    flex-direction: column;
    gap: 6px;
  }
}

@media (min-width: 992px) {
  .hero-categories {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
  }

  .hero-category {
    flex: 1 1 calc(20% - 10px);
    max-width: none;
  }
}
