.fahrzeug-suche {
  --fahrzeug-border: #d7d7d7;
  --fahrzeug-panel: #ffffff;
  --fahrzeug-card-active: #ededed;
  --fahrzeug-text: #111111;
  --fahrzeug-muted: #666666;
  color: var(--fahrzeug-text);
}

.fahrzeug-suche svg.search__category-icon {
  width: 16px !important;
  height: 24px !important;
  display: inline-flex;
  flex-shrink: 0;
}

.fahrzeug-suche__form {
  position: relative;
}

.fahrzeug-suche__field {
  position: relative;
  display: block;
}

.fahrzeug-suche__top-fields {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 0.75rem;
}

.fahrzeug-suche__top-fields .fahrzeug-suche__input {
  min-height: 3rem;
  height: 3rem;
}

.fahrzeug-suche__input,
.fahrzeug-suche__select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--fahrzeug-border);
  background: var(--fahrzeug-panel);
  padding: 0.75rem 0.875rem;
  color: var(--fahrzeug-text);
  font: inherit;
  box-sizing: border-box;
}

.fahrzeug-suche__multiselect {
  position: relative;
}

.fahrzeug-suche__multiselect-toggle {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--fahrzeug-border);
  background: var(--fahrzeug-panel);
  padding: 0.75rem 2.25rem 0.75rem 0.875rem;
  color: var(--fahrzeug-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  background-image:
    linear-gradient(45deg, transparent 50%, #7a7a7a 50%),
    linear-gradient(135deg, #7a7a7a 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) calc(1.2rem),
    calc(100% - 0.7rem) calc(1.2rem);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.fahrzeug-suche__multiselect-panel {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 14rem;
  overflow-y: auto;
  border: 1px solid var(--fahrzeug-border);
  background: #ffffff;
  padding: 0.75rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.fahrzeug-suche__field--full:has(.fahrzeug-suche__multiselect-panel:not([hidden])) {
  z-index: 30;
}

.fahrzeug-suche__field--full:has(.fahrzeug-suche__multiselect-panel:not([hidden])) .fahrzeug-suche__multiselect-panel {
  position: static;
  margin-top: 0.25rem;
}

.fahrzeug-suche__option {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  cursor: pointer;
}

.fahrzeug-suche__option-input {
  margin: 0.125rem 0 0;
}

.fahrzeug-suche__option-label {
  line-height: 1.4;
}

.fahrzeug-suche__multiselect-empty {
  margin: 0;
  color: var(--fahrzeug-muted);
  font-size: 0.8125rem;
}

.fahrzeug-suche__field--distance .fahrzeug-suche__input {
  padding-right: 2.1rem;
}

.fahrzeug-suche__suffix {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  color: var(--fahrzeug-muted);
  font-size: 0.8125rem;
}

.fahrzeug-suche__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
}

.fahrzeug-suche__hint {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  color: var(--fahrzeug-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.fahrzeug-suche__suggestions {
  position: absolute;
  top: 3.25rem;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--fahrzeug-border);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.fahrzeug-suche__suggestion {
  border: 0;
  border-bottom: 1px solid var(--fahrzeug-border);
  background: transparent;
  padding: 0.875rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.fahrzeug-suche__suggestion:last-child {
  border-bottom: 0;
}

.fahrzeug-suche__results {
  max-height: 40rem;
  overflow-y: auto;
  margin-top: 20px;
  margin-bottom: 20px;
}

.fahrzeug-suche__card {
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.fahrzeug-suche__card.is-active {
  background: var(--fahrzeug-card-active);
  transform: translateY(-1px);
}

.fahrzeug-suche__distance,
.fahrzeug-suche__meta,
.fahrzeug-suche__vehicles-label {
  color: var(--fahrzeug-muted);
}

.fahrzeug-suche__vehicles {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fahrzeug-suche__vehicles-label {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.fahrzeug-suche__vehicle-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fahrzeug-suche__vehicle-item {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 400;
}

.fahrzeug-suche__vehicle-name {
  font-weight: 400;
}

.fahrzeug-suche__vehicle-item.is-highlighted,
.fahrzeug-suche__vehicle-name.is-highlighted {
  font-weight: 700;
}

.fahrzeug-suche__vehicle-meta {
  margin-left: 0.25rem;
  font-weight: 400;
}

.fahrzeug-suche__vehicle-count {
  margin-left: 0.25rem;
  color: var(--fahrzeug-muted);
}

.fahrzeug-suche__toggle {
  display: inline-flex;
  width: 1.125rem;
  height: 1.125rem;
  align-self: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--fahrzeug-text);
  cursor: pointer;
  background-image: url("../img/arrow_down.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.2s ease;
}

.fahrzeug-suche__toggle[aria-expanded="true"] {
  transform: rotate(180deg);
}

.fahrzeug-suche__footer {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--fahrzeug-muted);
}

.fahrzeug-suche__map-wrap {
  position: relative;
  min-height: 28rem;
}

.fahrzeug-suche__map-wrap > .sticky {
  top: calc(5rem + var(--wp-admin--admin-bar--height, 0px)) !important;
}

.fahrzeug-suche__map-holder,
.fahrzeug-suche__map {
  min-height: 28rem;
}

.fahrzeug-suche__map-holder {
  aspect-ratio: 7 / 8;
}

.fahrzeug-suche__map {
  height: 100%;
}

.fahrzeug-suche__empty {
  margin: 0;
  padding: 1rem;
  background: #ffffff;
  color: var(--fahrzeug-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.fahrzeug-suche__popup {
  position: relative;
  width: 31rem;
  max-width: min(31rem, calc(100vw - 2.5rem));
  padding: 2.5rem 2rem 2.75rem;
  color: var(--fahrzeug-text);
}

.fahrzeug-suche__popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: #000000;
  cursor: pointer;
}

.fahrzeug-suche__popup-close-icon {
  width: 1rem;
  height: 1rem;
}

.fahrzeug-suche__popup p {
  margin: 0;
}

.fahrzeug-suche__popup-title {
  margin-bottom: 1.5rem !important;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.fahrzeug-suche__popup-line {
  font-size: 1.125rem;
  line-height: 1.5;
}

.fahrzeug-suche__popup-line + .fahrzeug-suche__popup-line {
  margin-top: 0.125rem;
}

.fahrzeug-suche__popup-line a {
  color: inherit;
  text-decoration: none;
}

.fahrzeug-suche__popup-address {
  margin-bottom: 0.125rem !important;
}

.fahrzeug-suche__popup-action {
  margin-top: 2rem !important;
}

.fahrzeug-suche__popup-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18.25rem;
  max-width: 100%;
  min-height: 4.125rem;
  padding: 1rem 1.5rem;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  font-size: 1.125rem;
  text-align: center;
}

.fahrzeug-suche .gm-style .gm-style-iw-c {
  border-radius: 0;
  background: #ececec;
  padding: 0 !important;
  max-height: none !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.fahrzeug-suche .gm-style .gm-style-iw-d {
  overflow: hidden !important;
  max-height: none !important;
  background: #ececec;
}

.fahrzeug-suche .gm-style .gm-style-iw-chr {
  display: none !important;
}

.fahrzeug-suche .gm-style .gm-ui-hover-effect {
  display: none !important;
}

.fahrzeug-suche__popup-features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.fahrzeug-suche__popup-features .search__category {
  font-size: 1rem;
  line-height: 1.5;
}

@media (min-width: 992px) {
  .fahrzeug-suche__map-wrap,
  .fahrzeug-suche__map-holder,
  .fahrzeug-suche__map {
    min-height: 34rem;
  }

  .fahrzeug-suche__map-holder {
    aspect-ratio: 4 / 3;
  }
}

.fahrzeug-suche__footer {
  background-color: #F5F5F6;
  padding: 10px 10px 10px 10px;
  margin-top: 3rem;
}

.fahrzeug-suche__footer {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}