/* main content */
.hero-section {
  padding: 100px 0;
  transition: padding 0.4s ease;
  position: relative;
  background: linear-gradient(180deg, #1f1f1f 0%, rgba(31, 31, 31, 0) 100%);
}
.hero-section .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  z-index: -1;
}
.hero-section-title {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--white1);
  margin-bottom: 50px;
  transition: gap 0.4s ease, margin-bottom 0.4s ease;
}
.hero-section-title .h1 {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.hero-section-title .body1 {
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* categories */
.hero-options-select {
  display: flex;
  flex-wrap: wrap;
}
.single-option {
  padding: 9px 16px;
  border-top: none;
  border-right: none;
  border-left: none;
  border-bottom: 1px solid var(--border1);
  background-color: unset;
  cursor: pointer;
}

.single-option:hover,
.single-option:hover .dropdown-toggle,
.single-option:hover .chevron,
.single-option.active,
.single-option.active .dropdown-toggle,
.single-option.active .chevron,
.single-option.dropdown.open .dropdown-toggle,
.single-option.dropdown.open .chevron {
  color: var(--blue1);
}

.dropdown-selected.has-value {
  border: 1px solid var(--blue1);
}

/* Border */
.single-option.active,
.single-option.dropdown.active,
.single-option.dropdown.open {
  border-bottom: 1px solid var(--blue1);
}

.single-option.dropdown {
  position: relative;
  padding: 0;
  border-bottom: 1px solid var(--border1);
  background: unset;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 9px 16px;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.chevron {
  transition: transform 0.2s ease;
  width: 16px;
  height: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(0, 0, 0, 1);
}

.dropdown.open .chevron {
  transform: rotate(180deg);
}

/* meniu */
.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 250px;
  margin: 6px 0 0;
  padding: 6px 0;
  list-style: none;
  border-radius: 4px;
  border: 1px solid var(--Border-1, #e6edf6);
  background: var(--White-1, #fff);
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.05);
  display: none;
  z-index: 20;
}
.dropdown.open .dropdown-menu {
  display: block;
}
/* Dropdown height */
.hero-inputs-container .dropdown-container-menu .dropdown-options-wrapper {
  max-height: 250px;
}
.hero-inputs-container .hero-years-wrapper .dropdown-options-wrapper,
.hero-inputs-container .extra-filters .dropdown-options-wrapper {
  max-height: 200px;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
}
.dropdown-menu li a:hover {
  background: var(--blue2);
  color: var(--blue1);
}

/* switches */
.hero-options-switches {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
  display: none;
}

.toggle-switch-background {
  width: 36px;
  height: 20px;
  background-color: var(--toggleGrey);
  border-radius: 20px;
  transition: background-color 0.3s ease;
  position: relative;
}

.toggle-switch-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: var(--white1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-switch-background {
  background-color: var(--blueCopart);
}

.toggle-switch
  input[type="checkbox"]:checked
  + .toggle-switch-background
  .toggle-switch-handle {
  transform: translateX(16px);
}

.toggle-switch.red input[type="checkbox"]:checked + .toggle-switch-background {
  background-color: var(--redAA);
}

.hero-mobile-switches {
  display: none;
}

/* filter */
.hero-section-filter {
  padding: 20px;
  background: var(--white1);
  border-radius: 16px;
  gap: 19px;
  display: flex;
  flex-direction: column;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: auto;
}
.hero-inputs-container,
.hero-years-wrapper {
  display: flex;
  gap: 10px;
}

.hero-inputs-container {
  gap: 8px;
  flex-direction: column;
}

/* extra filters */

.hero-inputs-container > div:first-child,
.extra-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.extra-filters {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
}

.extra-filters.hidden {
  display: none;
}

.extra-filters.visible {
  display: flex;
  max-height: 500px;
  opacity: 1;
  overflow: visible;
}

.search-btns-wrapper {
  display: none;
}

.btn-component svg {
  flex-shrink: 0;
}

.additional-controller {
  display: flex;
  gap: 24px;
}

.help-submit-filters .btn-component {
  gap: 10px;
  width: 100%;
}

.search-btns-wrapper .btn-component {
  gap: 8px;
}
/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(31, 31, 31, 0.9);
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-content {
  background: var(--white1);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  position: relative;
  overflow-y: auto;
}

.calculator-close-btn {
  width: 30px;
  height: 30px;
  background-color: unset;
  border: unset;
  margin-left: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.calculator-close-btn svg {
  flex-shrink: 0;
  stroke-width: 1.875px;
  color: var(--grey1, #767676);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.calculator-page-in-modal .calculator-cont {
  width: unset;
}

/* Tooltip */
.has-tooltip {
  position: relative;
}

.hero-tooltip {
  position: absolute;
  bottom: 100%;
  left: 226px;
  transform: translateX(-50%);
  background: var(--blue1);
  color: var(--white1);
  padding: 6px 8px;
  border-radius: 4px;
  width: 241px;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 10;
  display: flex;
}

.has-tooltip:hover .hero-tooltip {
  opacity: 1;
  visibility: visible;
}

/* years */
.hero-years-wrapper .dropdown-container-menu {
  width: 125px;
}

/* Dropowns */
.hero-section-filter .dropdown-options-wrapper {
  height: auto;
}

.hero-section-filter .dropdown-all-options {
  max-height: 275px;
}

.dropdown-container-menu {
  min-width: 200px;
}

@media (max-width: 1410px) {
  .search-btns-wrapper {
    display: flex;
    gap: 8px;
  }

  .help-submit-btn-desktop {
    display: none;
  }

  .mobile-expand {
    display: none;
  }
}

@media (max-width: 967px) {
  .dropdown-container-menu {
    min-width: unset;
  }
  .hero-section-filter {
    margin-left: -16px;
    margin-right: -16px;
    padding: 24px 16px;
    gap: 24px;
    width: unset;
  }

  .hero-inputs-container > div:first-child,
  .hero-inputs-container {
    flex-direction: column;
  }

  .hero-inputs-container > div:first-child {
    gap: 12px;
  }

  .filtered-suggestions,
  .hero-options-switches,
  .additional-controller .expand-filter.mobile-additional-filter {
    display: none;
  }

  .help-submit-btn-mobile {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: center;
  }

  .help-submit-btn-mobile .btn-component {
    width: 100%;
  }

  .mobile-expand {
    display: flex;
    width: 45px;
    height: 45px;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    background-color: unset;
    border: unset;
    cursor: pointer;
    gap: 8px;
  }

  .search-btns-wrapper .btn-component {
    height: 45px;
  }

  .mobile-expand.active {
    color: var(--blue1);
    border: 1px solid var(--blue1);
    border-radius: 4px;
    padding: 12px 21px;
  }

  .mobile-expand span,
  .mobile-expand span svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .additional-controller {
    justify-content: space-between;
  }

  body .dropdown-container-menu,
  body .text-input-container,
  body .text-input-container .filter-input {
    width: 100%;
  }

  .hero-years-wrapper {
    gap: 16px;
    width: 100%;
  }

  .hero-mobile-switches {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero-mobile-switches > div:first-child {
    display: flex;
    gap: 16px;
  }

  .extra-filters.visible {
    margin-top: -8px;
    margin-bottom: 0;
    gap: 12px;
  }

  .hero-mobile-prices {
    order: -1;
  }

  .dropdown-selected-value,
  .dropdown-container-menu {
    height: 45px;
  }

  .hero-years-wrapper .dropdown-container-menu {
    width: 100%;
  }

  .modal-content {
    max-width: unset;
    margin-left: 16px;
    margin-right: 16px;
  }

  .dropdown-menu {
    min-width: 200px;
  }

  .hero-inputs-container {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* main content */
  .hero-section {
    padding: 36px 0 0 0;
  }
  .hero-bg {
    height: 50% !important;
  }
  .hero-section-title {
    gap: 16px;
    margin-bottom: 32px;
  }
  .hero-section-title .h1 {
    text-align: start;
  }
  .hero-section-title .body1 {
    display: unset;
    text-align: start;
  }

  .hero-section-filter {
    border-radius: unset;
  }

  .search-btns-wrapper .btn-component svg {
    width: 18px;
    height: 18px;
  }

  .modal-content {
    padding: 0px;
  }

  .calculator-close-btn,
  .calculator-close-btn svg {
    width: 24px;
    height: 24px;
  }

  /* Dropdowns */
  .hero-section-filter .dropdown-container-menu.open .dropdown-options-wrapper {
    height: unset;
    max-height: unset;
  }

  .hero-section-filter .dropdown-all-options {
    max-height: 150px;
  }
}

@media (max-width: 388px) {
  .single-option {
    padding: 9px 7px;
  }
}

@media (max-width: 368px) {
  .hero-options-select {
    flex-wrap: nowrap;
  }
}

.manufacturer-dropdown-wrapper {
  position: relative;
}

.manufacturer-dropdown-wrapper .dropdown-container-menu[data-vehicle-type="auto"] {
  display: block;
}

.manufacturer-dropdown-wrapper .dropdown-container-menu[data-vehicle-type="moto"] {
  display: none;
}

.manufacturer-dropdown-wrapper[data-active-type="moto"] .dropdown-container-menu[data-vehicle-type="auto"] {
  display: none;
}

.manufacturer-dropdown-wrapper[data-active-type="moto"] .dropdown-container-menu[data-vehicle-type="moto"] {
  display: block;
}
