/*
 * Final Akteur search contract.
 * Hover and active share one geometry; only color and elevation change.
 */

/* Keep navigation and archive header free of hairlines. */
body.wp-child-theme-marnamic .site-header,
body.wp-child-theme-marnamic .header-navbar {
  border: 0 !important;
  box-shadow: none !important;
}

/* Mobile location interaction contract (iOS-safe).
 * The Places list lives outside the form, so it must sit above the fixed
 * dialog and use the visual viewport rather than the complete WO card. */
@media (max-width: 980px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card.is-active {
    overflow: visible !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card.is-active > .marnamic-air-mobile-card__trigger {
    position: relative !important;
    z-index: 1 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card.is-active > .marnamic-air-mobile-card__content {
    position: relative !important;
    z-index: 2 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field--location > .hp-field--location {
    position: relative !important;
    z-index: 5 !important;
    isolation: isolate !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field--location > .hp-field--location > input[name="location"] {
    position: relative !important;
    z-index: 1 !important;
    min-height: 56px !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field--location > .hp-field--location > :is(.marnamic-air-search__location-action, .marnamic-air-search__segment-clear) {
    z-index: 3 !important;
    display: inline-flex !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-user-select: none !important;
    user-select: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__option,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-purpose-option,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__filter-title {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    min-height: 56px !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open.marnamic-air-search--location-typing .hp-form__field--location > .marnamic-air-search__popover--location-start {
    display: none !important;
    pointer-events: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-air-search-mobile-open .pac-container {
    position: fixed !important;
    z-index: 12150 !important;
    margin: 0 !important;
    padding: 6px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    color: var(--marnamic-search-ink) !important;
    background: var(--marnamic-search-active) !important;
    border: 1px solid rgba(19, 33, 36, 0.14) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24) !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    pointer-events: auto !important;
    touch-action: pan-y !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-air-search-mobile-open .pac-container .pac-item {
    display: flex !important;
    min-height: 58px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    overflow: hidden !important;
    color: var(--marnamic-search-ink) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-air-search-mobile-open .pac-container .pac-item + .pac-item {
    border-top: 1px solid rgba(19, 33, 36, 0.1) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-air-search-mobile-open .pac-container .pac-item:is(:active, .pac-item-selected) {
    background: rgba(108, 185, 195, 0.18) !important;
  }
}

/* Mobile search v2: isolated three-step cards (WO contains the radius). */
@media (max-width: 980px) {
  body.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search--mobile-open > .hp-form__fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 12px 16px 20px !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card {
    flex: 0 0 auto !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    color: #202020 !important;
    background: #fff !important;
    border: 1px solid rgba(32, 32, 32, 0.08) !important;
    border-radius: 22px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07) !important;
    overflow: hidden !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card.is-active {
    border-color: rgba(32, 32, 32, 0.12) !important;
    border-radius: 28px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1) !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__trigger {
    display: grid !important;
    width: 100% !important;
    min-height: 78px !important;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    color: #202020 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: inherit !important;
    box-shadow: none !important;
    font: inherit !important;
    text-align: left !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card.is-active > .marnamic-air-mobile-card__trigger {
    min-height: 0 !important;
    padding: 22px 22px 10px !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__label {
    color: rgba(32, 32, 32, 0.62) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__summary {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #202020 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: right !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card.is-active .marnamic-air-mobile-card__label {
    color: #202020 !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card.is-active .marnamic-air-mobile-card__summary {
    display: none !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content {
    display: none !important;
    padding: 0 22px 22px !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card.is-active > .marnamic-air-mobile-card__content {
    display: block !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content > .hp-form__field,
  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content > .hp-form__field.is-mobile-active {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: #202020 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content > .hp-form__field::before,
  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content > .hp-form__field::after,
  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content > .hp-form__field > :is(.marnamic-air-search__label, .marnamic-air-search__hint) {
    display: none !important;
    content: none !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content .hp-field--location {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content .hp-field--location > input {
    width: 100% !important;
    min-height: 54px !important;
    padding: 12px 58px 12px 16px !important;
    color: #202020 !important;
    background: #fff !important;
    border: 1px solid rgba(32, 32, 32, 0.26) !important;
    border-radius: 15px !important;
    box-shadow: none !important;
    font-size: 1rem !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content .hp-field--location > .marnamic-air-search__location-action {
    top: 50% !important;
    right: 7px !important;
    transform: translateY(-50%) !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content > .marnamic-air-search__radius-field {
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(32, 32, 32, 0.1) !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content .marnamic-air-search__radius-trigger {
    display: grid !important;
    width: 100% !important;
    min-height: 52px !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 2px !important;
    color: #202020 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content .marnamic-air-search__radius-trigger-value {
    font-weight: 700 !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content .hp-field--search,
  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content :is(.marnamic-air-search__native-select, .marnamic-air-search__native-control) {
    display: none !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content > .hp-form__field > .marnamic-air-search__popover {
    position: static !important;
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 14px 0 0 !important;
    padding: 14px 0 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid rgba(32, 32, 32, 0.1) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content > .hp-form__field.is-open > .marnamic-air-search__popover {
    display: block !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content .marnamic-air-search__popover--purpose {
    flex-direction: column !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content .hp-form__field.is-open > .marnamic-air-search__popover--purpose {
    display: flex !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content .marnamic-air-search__filter-actions {
    display: none !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content .marnamic-air-search__group + .marnamic-air-search__group {
    margin-top: 14px !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content .marnamic-air-search__radius-body {
    min-height: 230px !important;
  }
}

/* Shared mobile card flow for the Listing search on Home and Projects. */
body.wp-child-theme-marnamic :is(
  .marnamic-listing-search__mobile-close,
  .marnamic-listing-search__mobile-actions,
  .marnamic-listing-search__label,
  .marnamic-listing-search__hint
) {
  display: none !important;
}

@media (max-width: 980px) {
  body.wp-child-theme-marnamic.marnamic-listing-search-mobile-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-mobile-search.marnamic-listing-search--mobile-open {
    position: fixed !important;
    top: var(--marnamic-mobile-viewport-top, 0px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    z-index: 12000 !important;
    display: block !important;
    width: 100vw !important;
    max-width: none !important;
    height: var(--marnamic-mobile-viewport-height, 100dvh) !important;
    min-height: 0 !important;
    max-height: var(--marnamic-mobile-viewport-height, 100dvh) !important;
    margin: 0 !important;
    padding: calc(58px + env(safe-area-inset-top)) 0 calc(82px + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    color: #202020 !important;
    background: #f5f5f4 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open > .hp-form__fields {
    position: absolute !important;
    top: calc(58px + env(safe-area-inset-top)) !important;
    right: 0 !important;
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    left: 0 !important;
    display: grid !important;
    width: auto !important;
    height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    align-content: start !important;
    margin: 0 !important;
    padding: 12px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open > .hp-form__fields > .hp-form__field {
    position: relative !important;
    display: grid !important;
    width: 100% !important;
    height: auto !important;
    min-height: 78px !important;
    max-height: none !important;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important;
    gap: 8px 18px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    overflow: visible !important;
    color: #202020 !important;
    background: #fff !important;
    border: 1px solid rgba(32, 32, 32, 0.08) !important;
    border-radius: 22px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open > .hp-form__fields > .hp-form__field.is-mobile-active {
    min-height: 136px !important;
    align-items: start !important;
    padding: 22px !important;
    border-radius: 28px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open .marnamic-listing-search__label {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    color: rgba(32, 32, 32, 0.62) !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open .marnamic-listing-search__hint {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    color: #202020 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: right !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open .hp-form__field.is-mobile-active > .marnamic-listing-search__label {
    grid-column: 1 / -1 !important;
    color: #202020 !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open .hp-form__field.is-mobile-active > .marnamic-listing-search__hint {
    display: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open .hp-form__field:not(.is-mobile-active) > :is(.hp-field, .select2-container) {
    display: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open .hp-form__field.is-mobile-active > :is(.hp-field, .select2-container) {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    margin: 12px 0 0 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open .hp-form__field.is-mobile-active > .select2-hidden-accessible {
    position: absolute !important;
    display: block !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open > .hp-form__footer {
    display: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open > .marnamic-listing-search__mobile-close {
    position: fixed !important;
    top: calc(12px + env(safe-area-inset-top)) !important;
    right: 14px !important;
    z-index: 12080 !important;
    display: grid !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #202020 !important;
    background: rgba(32, 32, 32, 0.08) !important;
    border: 0 !important;
    border-radius: 50% !important;
    font: inherit !important;
    font-size: 28px !important;
    line-height: 1 !important;
    text-indent: 0 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open > .marnamic-listing-search__mobile-actions {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 12060 !important;
    display: grid !important;
    min-height: calc(82px + env(safe-area-inset-bottom)) !important;
    grid-template-columns: minmax(0, 1fr) minmax(144px, 0.9fr) !important;
    gap: 16px !important;
    align-items: center !important;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom)) !important;
    background: rgba(245, 245, 244, 0.98) !important;
    border-top: 1px solid rgba(32, 32, 32, 0.1) !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open :is(.marnamic-listing-search__mobile-reset, .marnamic-listing-search__mobile-primary) {
    min-height: 52px !important;
    margin: 0 !important;
    padding: 12px 18px !important;
    border-radius: 16px !important;
    font: inherit !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open .marnamic-listing-search__mobile-reset {
    justify-self: start !important;
    color: #202020 !important;
    background: transparent !important;
    border: 0 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open .marnamic-listing-search__mobile-primary {
    width: 100% !important;
    color: #f7f3eb !important;
    background: #202020 !important;
    border: 1px solid #202020 !important;
  }

  body.wp-child-theme-marnamic.marnamic-listing-search-mobile-open .site-header {
    z-index: 1 !important;
    background: #f5f5f4 !important;
  }

  body.wp-child-theme-marnamic.marnamic-listing-search-mobile-open .site-header .header-navbar > * {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-listing-search-mobile-open .pac-container,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-listing-search-mobile-open .select2-container--open .select2-dropdown,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-listing-search-mobile-open > .select2-container--open .select2-dropdown {
    position: fixed !important;
    top: calc(var(--marnamic-mobile-viewport-top, 0px) + 174px + env(safe-area-inset-top)) !important;
    right: 22px !important;
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    left: 22px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 1px solid rgba(32, 32, 32, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12) !important;
  }
}

/* Remove legacy segment dividers. The active surface is supplied by ::after. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field::before,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field::before {
  display: none !important;
  content: none !important;
}

/* Radius is content inside the segment, never a second interactive pill. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__radius-trigger,
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__radius-field.is-open .marnamic-air-search__radius-trigger,
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__radius-trigger:is(:hover, :focus-visible),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__radius-trigger {
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Stable segment geometry: text and neighbouring fields never jump. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field {
  position: relative !important;
  min-width: 0 !important;
  isolation: isolate !important;
  color: #132124 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field::after,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field::after {
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  display: block !important;
  width: auto !important;
  pointer-events: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  content: "" !important;
  transition: background-color 160ms ease, box-shadow 160ms ease !important;
}

@media (hover: hover) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field:hover,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field:hover {
    z-index: 15 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field:hover::after,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field:hover::after {
    background: rgba(246, 242, 234, 0.7) !important;
  }
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field:is(.is-open, :focus-within),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field:is(.is-open, :focus-within) {
  z-index: 20 !important;
  flex-grow: 1 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field:is(.is-open, :focus-within)::after,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field:is(.is-open, :focus-within)::after {
  background: #f6f2ea !important;
  box-shadow: 0 4px 14px rgba(19, 33, 36, 0.18) !important;
}

/* Keep the active Was? surface inside its equal-width search segment. */
@media (min-width: 981px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field.marnamic-air-search__field--category:is(:hover, .is-open, :focus-within)::after,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field.marnamic-air-search__field--category:is(:hover, .is-open, :focus-within)::after {
    right: 0 !important;
  }
}

/* Search and segment actions use one consistent 48-px hit area. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__footer,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__footer {
  position: relative !important;
  z-index: 30 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search :is(.hp-form__button, button[type="submit"], input[type="submit"]),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search :is(.hp-form__button, button[type="submit"], input[type="submit"]),
body.wp-child-theme-marnamic.marnamic-styleguide .styleguide-demo .hp-form--vendor-search.marnamic-air-search :is(.hp-form__button, button[type="submit"], input[type="submit"]) {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  flex: 0 0 48px !important;
  align-self: center !important;
  padding: 0 !important;
  background-size: 24px 24px !important;
  border-radius: 50% !important;
}

/* The styleguide ships a later demo rule; keep its action identical to production. */
body.wp-child-theme-marnamic.marnamic-styleguide .styleguide-demo .hp-form--vendor-search.marnamic-air-search .hp-form__footer > .hp-form__button.hp-field--submit {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  flex: 0 0 48px !important;
  align-self: center !important;
  padding: 0 !important;
  background-size: 24px 24px !important;
  border-radius: 50% !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search :is(.marnamic-air-search__segment-clear, .marnamic-air-search__location-action),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search :is(.marnamic-air-search__segment-clear, .marnamic-air-search__location-action) {
  right: 20px !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  border-radius: 50% !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field.has-segment-value,
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field--location,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field.has-segment-value,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field--location {
  padding-right: 88px !important;
}

/* Simple radius control; the value remains linear from 5–500 km. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__radius-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 32px !important;
  height: 220px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__radius-input::-webkit-slider-runnable-track {
  width: 6px !important;
  height: 100% !important;
  box-sizing: border-box !important;
  background: linear-gradient(
    to top,
    #61a5ac 0 var(--marnamic-radius-progress, 15.15%),
    rgba(19, 33, 36, 0.22) var(--marnamic-radius-progress, 15.15%) 100%
  ) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px rgba(19, 33, 36, 0.08) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__radius-input::-webkit-slider-thumb {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 24px !important;
  height: 24px !important;
  margin-left: -9px !important;
  box-sizing: border-box !important;
  background: #6cb9c3 !important;
  border: 1px solid rgba(19, 33, 36, 0.18) !important;
  border-radius: 50% !important;
  outline: 0 !important;
  box-shadow: 0 2px 7px rgba(19, 33, 36, 0.18) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__radius-input::-moz-range-track {
  width: 6px !important;
  height: 100% !important;
  box-sizing: border-box !important;
  background: linear-gradient(
    to top,
    #61a5ac 0 var(--marnamic-radius-progress, 15.15%),
    rgba(19, 33, 36, 0.22) var(--marnamic-radius-progress, 15.15%) 100%
  ) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px rgba(19, 33, 36, 0.08) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__radius-input::-moz-range-thumb {
  width: 24px !important;
  height: 24px !important;
  box-sizing: border-box !important;
  background: #6cb9c3 !important;
  border: 1px solid rgba(19, 33, 36, 0.18) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 7px rgba(19, 33, 36, 0.18) !important;
}

/* Dropdowns use the same offset, corner radius and elevation in every context. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__popover,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__popover {
  top: calc(100% + 12px) !important;
  color: #132124 !important;
  background: #f6f2ea !important;
  border: 1px solid rgba(19, 33, 36, 0.12) !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
}

@media (min-width: 981px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search {
    --marnamic-air-search-height: 78px;
    --marnamic-air-search-inline: 32px;
    display: grid !important;
    width: min(100%, 1080px) !important;
    max-width: 1080px !important;
    min-height: var(--marnamic-air-search-height) !important;
    grid-template-columns: minmax(0, 1fr) 78px !important;
    gap: 0 !important;
    align-items: center !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 0 !important;
    color: #132124 !important;
    background: #c9c4b9 !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results
    .hp-page__header
    .hp-form--vendor-search.marnamic-air-search {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__fields,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__fields {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: var(--marnamic-air-search-height) !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field:is(.is-open, :focus-within),
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field:is(.is-open, :focus-within) {
    display: grid !important;
    min-height: var(--marnamic-air-search-height) !important;
    flex: 1 1 0 !important;
    align-content: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 13px var(--marnamic-air-search-inline) !important;
  }

  /* The first segment keeps the same text inset as every other segment. */
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field:first-child,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field:first-child:is(.is-open, :focus-within),
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field:first-child,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field:first-child:is(.is-open, :focus-within) {
    padding-left: var(--marnamic-air-search-inline) !important;
  }

  /* Umkreis only reserves the width its two short text rows need. */
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field.marnamic-air-search__radius-field,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field.marnamic-air-search__radius-field:is(.is-open, :focus-within),
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field.marnamic-air-search__radius-field,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field.marnamic-air-search__radius-field:is(.is-open, :focus-within) {
    width: 124px !important;
    min-width: 124px !important;
    max-width: 124px !important;
    inline-size: 124px !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: 124px !important;
    box-sizing: border-box !important;
    padding: 13px 20px !important;
  }

  /* The slider panel keeps enough room even though its trigger is compact. */
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__radius-field .marnamic-air-search__popover--radius,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__radius-field .marnamic-air-search__popover--radius {
    right: auto !important;
    left: 0 !important;
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search :is(.marnamic-air-search__label, input[type="text"], input[type="search"], .marnamic-air-search__hint),
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search :is(.marnamic-air-search__label, input[type="text"], input[type="search"], .marnamic-air-search__hint) {
    color: #132124 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__label,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__label {
    font-size: 1.02rem !important;
    line-height: 1.05 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search :is(input[type="text"], input[type="search"], .marnamic-air-search__hint),
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search :is(input[type="text"], input[type="search"], .marnamic-air-search__hint) {
    font-size: 0.96rem !important;
    line-height: 1.1 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__footer,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__footer,
  body.wp-child-theme-marnamic.marnamic-styleguide .styleguide-demo .hp-form--vendor-search.marnamic-air-search .hp-form__footer {
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    height: var(--marnamic-air-search-height) !important;
    min-height: var(--marnamic-air-search-height) !important;
    flex: 0 0 78px !important;
  }
}

@media (max-width: 980px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field {
    padding-right: 32px !important;
    padding-left: 32px !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__popover,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__popover {
    width: min(430px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
  }
}

/*
 * Mobile vendor search is a single modal workflow. The active segment stays
 * visible above its choices and the dialog follows visualViewport, so iOS and
 * Android keyboards cannot cover WO suggestions or the WOFÜR/WER controls.
 */
body.wp-child-theme-marnamic .marnamic-air-search__mobile-close {
  display: none !important;
}

@media (max-width: 980px) {
  body.wp-child-theme-marnamic.marnamic-air-search-mobile-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open {
    position: fixed !important;
    top: var(--marnamic-mobile-viewport-top, 0px) !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    z-index: 12000 !important;
    display: block !important;
    width: 100vw !important;
    max-width: none !important;
    height: var(--marnamic-mobile-viewport-height, 100dvh) !important;
    min-height: 0 !important;
    max-height: var(--marnamic-mobile-viewport-height, 100dvh) !important;
    margin: 0 !important;
    padding: calc(58px + env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    color: #132124 !important;
    background: #0f191b !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    isolation: isolate !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .marnamic-air-search__mobile-close {
    position: absolute !important;
    top: calc(8px + env(safe-area-inset-top)) !important;
    right: 12px !important;
    z-index: 12040 !important;
    display: grid !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #f7f3eb !important;
    background: rgba(24, 39, 43, 0.96) !important;
    border: 1px solid rgba(247, 243, 235, 0.28) !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .hp-form__fields {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .hp-form__fields > .hp-form__field {
    display: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .hp-form__fields > .hp-form__field.is-mobile-active {
    position: static !important;
    z-index: 12030 !important;
    display: flex !important;
    width: 100% !important;
    min-height: 64px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 10px 64px 10px 20px !important;
    color: #132124 !important;
    background: #f7f3eb !important;
    border: 0 !important;
    border-radius: 22px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .hp-form__footer,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .marnamic-air-search__chips {
    display: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field.is-mobile-active.is-open > .marnamic-air-search__popover,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field--location.is-mobile-active.is-open > .marnamic-air-search__popover--location-start {
    position: absolute !important;
    top: calc(134px + env(safe-area-inset-top)) !important;
    right: 12px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    z-index: 12020 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 22px !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__popover--purpose {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__popover--purpose .marnamic-air-search__filter-scroll {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__popover--purpose .marnamic-air-search__filter-actions {
    position: sticky !important;
    bottom: 0 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-air-search-mobile-open .pac-container {
    position: fixed !important;
    top: calc(var(--marnamic-mobile-viewport-top, 0px) + 134px + env(safe-area-inset-top)) !important;
    right: 12px !important;
    bottom: auto !important;
    left: 12px !important;
    z-index: 12050 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: calc(var(--marnamic-mobile-viewport-height, 100dvh) - 146px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 22px !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Keep the global navigation identical in discovery and filter states. */
@media (min-width: 1100px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results {
    --marnamic-archive-sticky-offset: calc(var(--marnamic-header-height) + 140px) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header {
    top: var(--marnamic-header-height) !important;
    padding-top: 51px !important;
    border: 0 !important;
  }
}

/*
 * Final mobile search contract.
 * Older archive and dropdown layers alternated between an anchored dropdown
 * and a fixed panel. Keeping both `top` and `bottom` collapsed the panel just
 * below the viewport. On touch screens every filter now uses one predictable
 * bottom sheet that stays reachable above the browser safe area.
 */
@media (max-width: 980px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field {
    cursor: pointer !important;
    touch-action: manipulation !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__popover,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__popover,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .hp-form__field--location .marnamic-air-search__popover--location-start,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .hp-form__field--location .marnamic-air-search__popover--location-start {
    position: fixed !important;
    top: auto !important;
    right: 12px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    z-index: 12020 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(620px, calc(100dvh - 92px)) !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__popover--purpose,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__popover--purpose {
    padding: 0 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__popover--radius,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__popover--radius {
    width: min(240px, calc(100vw - 24px)) !important;
    max-width: min(240px, calc(100vw - 24px)) !important;
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search :is(input, button, [role="button"], label),
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search :is(input, button, [role="button"], label) {
    touch-action: manipulation !important;
  }
}

/* Final mobile dialog surface: one panel, not a pill nested inside a card. */
@media (max-width: 980px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open {
    color: #132124 !important;
    background: #f7f3eb !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .marnamic-air-search__mobile-close {
    color: #132124 !important;
    background: rgba(19, 33, 36, 0.08) !important;
    border: 0 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .hp-form__fields > .hp-form__field.is-mobile-active {
    min-height: 64px !important;
    padding: 10px 64px 12px 8px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(19, 33, 36, 0.14) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .hp-form__fields > .hp-form__field.is-mobile-active::after {
    display: none !important;
    content: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field.is-mobile-active.is-open > .marnamic-air-search__popover,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field--location.is-mobile-active.is-open > .marnamic-air-search__popover--location-start {
    top: calc(124px + env(safe-area-inset-top)) !important;
    right: 0 !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: 0 !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
    background: #f7f3eb !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__popover--purpose {
    padding: 0 0 max(8px, env(safe-area-inset-bottom)) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__popover--purpose .marnamic-air-search__filter-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) !important;
    padding: 12px !important;
    background: #f7f3eb !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-air-search-mobile-open .pac-container {
    top: calc(var(--marnamic-mobile-viewport-top, 0px) + 124px + env(safe-area-inset-top)) !important;
    right: 0 !important;
    left: 0 !important;
    height: calc(var(--marnamic-mobile-viewport-height, 100dvh) - 132px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
    background: #f7f3eb !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

/* Airbnb-style mobile flow: every filter remains a separate collapsible card. */
body.wp-child-theme-marnamic .marnamic-air-search__mobile-actions {
  display: none !important;
}

@media (max-width: 980px) {
  body.wp-child-theme-marnamic.marnamic-air-search-mobile-open {
    touch-action: auto !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open {
    padding: calc(58px + env(safe-area-inset-top)) 0 calc(82px + env(safe-area-inset-bottom)) !important;
    background: #f5f5f4 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .hp-form__fields {
    position: absolute !important;
    top: calc(58px + env(safe-area-inset-top)) !important;
    right: 0 !important;
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
    left: 0 !important;
    display: grid !important;
    width: auto !important;
    height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    align-content: start !important;
    margin: 0 !important;
    padding: 12px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .hp-form__fields > .hp-form__field,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .hp-form__fields > .hp-form__field.is-mobile-active {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    width: 100% !important;
    min-height: 78px !important;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important;
    gap: 8px 18px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 18px 20px !important;
    color: #202020 !important;
    background: #fff !important;
    border: 1px solid rgba(32, 32, 32, 0.08) !important;
    border-radius: 22px !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .hp-form__fields > .hp-form__field.is-mobile-active {
    z-index: 2 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-items: start !important;
    padding: 22px !important;
    overflow: visible !important;
    border-color: rgba(32, 32, 32, 0.12) !important;
    border-radius: 28px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .hp-form__fields > .hp-form__field::after,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .hp-form__fields > .hp-form__field.is-mobile-active::after {
    display: none !important;
    content: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field > .marnamic-air-search__label {
    grid-column: 1 !important;
    grid-row: 1 !important;
    color: rgba(32, 32, 32, 0.62) !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field > .marnamic-air-search__hint {
    grid-column: 2 !important;
    grid-row: 1 !important;
    color: #202020 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: right !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field.is-mobile-active > .marnamic-air-search__label {
    grid-column: 1 / -1 !important;
    color: #202020 !important;
    font-size: 1.55rem !important;
    font-weight: 700 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field.is-mobile-active > .marnamic-air-search__hint {
    display: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field:not(.is-mobile-active) > :is(.hp-field--location, .hp-field--search, .marnamic-air-search__native-select, .marnamic-air-search__native-control, .marnamic-air-search__popover) {
    display: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field.is-mobile-active > :is(.hp-field--location, .hp-field--search) {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    margin: 8px 0 0 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__radius-field > .marnamic-air-search__radius-trigger {
    width: 100% !important;
    grid-column: 1 / -1 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field.is-mobile-active.is-open > .marnamic-air-search__popover,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .hp-form__field--location.is-mobile-active.is-open > .marnamic-air-search__popover--location-start {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    margin: 14px 0 0 !important;
    padding: 14px 0 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid rgba(32, 32, 32, 0.1) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__popover--purpose {
    display: flex !important;
    flex-direction: column !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__popover--purpose .marnamic-air-search__filter-actions {
    display: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .marnamic-air-search__mobile-actions {
    position: absolute !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 12060 !important;
    display: grid !important;
    min-height: calc(82px + env(safe-area-inset-bottom)) !important;
    grid-template-columns: minmax(0, 1fr) minmax(144px, 0.9fr) !important;
    gap: 16px !important;
    align-items: center !important;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom)) !important;
    background: rgba(245, 245, 244, 0.98) !important;
    border-top: 1px solid rgba(32, 32, 32, 0.1) !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06) !important;
  }

  body.wp-child-theme-marnamic.marnamic-air-search-mobile-open .site-header {
    z-index: 1 !important;
    background: #f5f5f4 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.wp-child-theme-marnamic.marnamic-air-search-mobile-open .site-header .header-navbar > :not(.header-navbar__end) {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.wp-child-theme-marnamic.marnamic-air-search-mobile-open .site-header .header-navbar__end {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.wp-child-theme-marnamic.marnamic-air-search-mobile-open .hp-page__header {
    z-index: 12000 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .marnamic-air-search__mobile-close {
    position: fixed !important;
    top: calc(12px + env(safe-area-inset-top)) !important;
    right: 14px !important;
    left: auto !important;
    z-index: 12080 !important;
    visibility: visible !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open :is(.marnamic-air-search__mobile-reset, .marnamic-air-search__mobile-primary) {
    min-height: 52px !important;
    margin: 0 !important;
    padding: 12px 18px !important;
    border-radius: 16px !important;
    font: inherit !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    touch-action: manipulation !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__mobile-reset {
    justify-self: start !important;
    color: #202020 !important;
    background: transparent !important;
    border: 0 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__mobile-primary {
    width: 100% !important;
    color: #f7f3eb !important;
    background: #202020 !important;
    border: 1px solid #202020 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-air-search-mobile-open .pac-container {
    top: calc(var(--marnamic-mobile-viewport-top, 0px) + 174px + env(safe-area-inset-top)) !important;
    right: 22px !important;
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    left: 22px !important;
    width: auto !important;
    height: auto !important;
    padding: 8px !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 1px solid rgba(32, 32, 32, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12) !important;
  }
}

/* Mobile v2 cascade guard: isolated cards must win over the retired direct-field rules above. */
@media (max-width: 980px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .hp-form__fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .hp-form__field,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .hp-form__field.is-mobile-active {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .hp-form__field > :is(.marnamic-air-search__label, .marnamic-air-search__hint) {
    display: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content .hp-field--location {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content .hp-field--location > input {
    display: block !important;
    width: 100% !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 12px 58px 12px 16px !important;
    color: #202020 !important;
    background: #fff !important;
    border: 1px solid rgba(32, 32, 32, 0.26) !important;
    border-radius: 15px !important;
    box-shadow: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .marnamic-air-search__radius-field {
    display: block !important;
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(32, 32, 32, 0.1) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content .marnamic-air-search__radius-trigger {
    display: grid !important;
    width: 100% !important;
    min-height: 52px !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 2px !important;
    color: #202020 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content :is(.hp-field--search, .marnamic-air-search__native-select, .marnamic-air-search__native-control) {
    display: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .hp-form__field > .marnamic-air-search__popover {
    position: static !important;
    display: none !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 14px 0 0 !important;
    padding: 14px 0 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid rgba(32, 32, 32, 0.1) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }
}

/* Mobile location v3: the real Places input is mounted in a clean native
 * control. Legacy HivePress surfaces remain in the DOM only as event sources
 * and cannot intercept touches. */
@media (max-width: 980px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location {
    position: relative !important;
    z-index: 8 !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
    touch-action: pan-y !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location__control {
    position: relative !important;
    z-index: 2 !important;
    display: grid !important;
    width: 100% !important;
    min-height: 58px !important;
    grid-template-columns: minmax(0, 1fr) 48px !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 4px !important;
    background: #fffaf3 !important;
    border: 1px solid rgba(19, 33, 36, 0.24) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    isolation: isolate !important;
    pointer-events: auto !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location__source {
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location__source > input[name="location"] {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    color: var(--marnamic-search-ink) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    outline: 0 !important;
    font: inherit !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location__source > input[name="location"]:focus {
    background: rgba(108, 185, 195, 0.08) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location__source > a {
    display: none !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location__locate {
    position: relative !important;
    inset: auto !important;
    z-index: 3 !important;
    display: inline-flex !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--marnamic-search-ink) !important;
    background: var(--marnamic-search-location) !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-tap-highlight-color: transparent !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location__locate[hidden] {
    display: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location__control > .marnamic-mobile-location__clear {
    position: relative !important;
    inset: auto !important;
    z-index: 3 !important;
    display: inline-flex !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--marnamic-search-ink) !important;
    background: var(--marnamic-search-location) !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location__legacy-control,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location__legacy-popover {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    z-index: -1 !important;
    display: block !important;
    width: 1px !important;
    min-width: 1px !important;
    max-width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    max-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
    touch-action: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location__options {
    position: relative !important;
    z-index: 1 !important;
    display: none !important;
    width: 100% !important;
    margin: 14px 0 0 !important;
    padding: 14px 0 0 !important;
    overflow: visible !important;
    border-top: 1px solid rgba(19, 33, 36, 0.12) !important;
    pointer-events: auto !important;
    touch-action: pan-y !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open:not(.marnamic-air-search--location-typing) .hp-form__field--location.is-open .marnamic-mobile-location__options {
    display: block !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location__options :is(.marnamic-air-search__group, .marnamic-air-search__options) {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location__options .marnamic-air-search__group + .marnamic-air-search__group {
    margin-top: 10px !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-location__options .marnamic-air-search__option {
    position: relative !important;
    z-index: 2 !important;
    display: grid !important;
    width: 100% !important;
    min-height: 60px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 10px 4px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-mobile-touch-panel {
    isolation: isolate !important;
    pointer-events: auto !important;
    touch-action: pan-y !important;
  }
}

/* iPhone interaction contract: explicit hit areas and no inert legacy layers. */
@media (max-width: 980px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search:not(.marnamic-air-search--mobile-open) > .marnamic-air-search__mobile-launch {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: stretch !important;
    padding: 8px 10px !important;
    color: var(--marnamic-search-ink) !important;
    background: var(--marnamic-search-surface) !important;
    border-color: rgba(246, 242, 234, 0.18) !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-search__mobile-launch > .hp-icon {
    display: inline-flex !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--marnamic-search-ink) !important;
    background: var(--marnamic-search-accent) !important;
    border-radius: 50% !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-search__mobile-launch > span {
    grid-column: 2 !important;
    text-align: center !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-search__mobile-launch::after {
    display: block !important;
    grid-column: 3 !important;
    width: 44px !important;
    height: 1px !important;
    content: "" !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open :is(
    .marnamic-air-mobile-card,
    .marnamic-air-mobile-card__content,
    .marnamic-air-mobile-card__content > .hp-form__field,
    .marnamic-air-search__popover,
    .marnamic-air-search__group,
    .marnamic-air-search__options
  ) {
    pointer-events: auto !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content {
    position: relative !important;
    z-index: 3 !important;
    isolation: isolate !important;
    touch-action: pan-y !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open :is(
    .marnamic-air-mobile-card__trigger,
    .marnamic-air-search__option,
    .marnamic-air-search__filter-title,
    .marnamic-purpose-option,
    .marnamic-air-search__radius-trigger,
    .marnamic-air-search__segment-clear,
    .marnamic-air-search__location-action,
    .marnamic-air-search__mobile-close,
    .marnamic-air-search__mobile-reset,
    .marnamic-air-search__mobile-primary
  ) {
    min-height: 44px !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__option {
    min-height: 56px !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-purpose-option {
    display: grid !important;
    min-height: 52px !important;
    align-items: center !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open :is(
    input[type="text"],
    input[type="search"],
    input[type="checkbox"]
  ) {
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__radius-input {
    min-height: 44px !important;
    pointer-events: auto !important;
    touch-action: pan-x !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-air-search-mobile-open .pac-container,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-air-search-mobile-open .pac-container .pac-item {
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
}

/* Mobile radius: compact horizontal control; desktop keeps the vertical slider. */
@media (max-width: 980px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content .marnamic-air-search__radius-body {
    display: grid !important;
    width: 100% !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 4px 2px 0 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content .marnamic-air-search__radius-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: block !important;
    width: 100% !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    writing-mode: horizontal-tb !important;
    direction: ltr !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content .marnamic-air-search__radius-input::-webkit-slider-runnable-track {
    width: 100% !important;
    height: 6px !important;
    background: linear-gradient(
      to right,
      #61a5ac 0 var(--marnamic-radius-progress, 15.15%),
      rgba(19, 33, 36, 0.2) var(--marnamic-radius-progress, 15.15%) 100%
    ) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: inset 0 0 0 1px rgba(19, 33, 36, 0.08) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content .marnamic-air-search__radius-input::-webkit-slider-thumb {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 24px !important;
    height: 24px !important;
    margin-top: -9px !important;
    margin-left: 0 !important;
    background: #6cb9c3 !important;
    border: 1px solid rgba(19, 33, 36, 0.18) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 7px rgba(19, 33, 36, 0.16) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content .marnamic-air-search__radius-input::-moz-range-track {
    width: 100% !important;
    height: 6px !important;
    background: linear-gradient(
      to right,
      #61a5ac 0 var(--marnamic-radius-progress, 15.15%),
      rgba(19, 33, 36, 0.2) var(--marnamic-radius-progress, 15.15%) 100%
    ) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: inset 0 0 0 1px rgba(19, 33, 36, 0.08) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content .marnamic-air-search__radius-input::-moz-range-thumb {
    width: 24px !important;
    height: 24px !important;
    background: #6cb9c3 !important;
    border: 1px solid rgba(19, 33, 36, 0.18) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 7px rgba(19, 33, 36, 0.16) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content .marnamic-air-search__radius-scale {
    display: flex !important;
    min-width: 0 !important;
    flex-direction: row-reverse !important;
    justify-content: space-between !important;
    padding: 0 !important;
    color: rgba(19, 33, 36, 0.66) !important;
    font-size: 0.78rem !important;
    font-weight: 720 !important;
    line-height: 1 !important;
  }
}

/* Airbnb-style mobile entry: one launcher instead of a compressed desktop form. */
body.wp-child-theme-marnamic .marnamic-air-search__mobile-launch {
  display: none !important;
}

@media (max-width: 980px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search:not(.marnamic-air-search--mobile-open),
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search:not(.marnamic-air-search--mobile-open) {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search:not(.marnamic-air-search--mobile-open) > :is(.hp-form__fields, .hp-form__footer, .marnamic-air-search__mobile-close, .marnamic-air-search__mobile-actions),
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search:not(.marnamic-air-search--mobile-open) > :is(.hp-form__fields, .hp-form__footer, .marnamic-air-search__mobile-close, .marnamic-air-search__mobile-actions) {
    display: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search:not(.marnamic-air-search--mobile-open) > .marnamic-air-search__mobile-launch,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search:not(.marnamic-air-search--mobile-open) > .marnamic-air-search__mobile-launch {
    position: relative !important;
    display: inline-flex !important;
    width: 100% !important;
    min-height: 64px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 14px 24px !important;
    color: #202020 !important;
    background: #fff !important;
    border: 1px solid rgba(32, 32, 32, 0.12) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09) !important;
    font: inherit !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    touch-action: manipulation !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-search__mobile-launch > .hp-icon {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    color: currentColor !important;
    font-size: 18px !important;
    line-height: 20px !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-search__mobile-launch:is(:hover, :focus-visible) {
    border-color: rgba(32, 32, 32, 0.2) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12) !important;
    outline: 0 !important;
  }

  body.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search--mobile-open > .marnamic-air-search__mobile-launch {
    display: none !important;
  }
}

/* Shared search palette: mobile uses the desktop colors without copying its layout. */
body.wp-child-theme-marnamic {
  --marnamic-search-ink: #132124;
  --marnamic-search-page: #132124;
  --marnamic-search-surface: #c9c4b9;
  --marnamic-search-active: #f6f2ea;
  --marnamic-search-location: #6cb9c3;
  --marnamic-search-accent: #6cb9c3;
}

@media (max-width: 980px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search:not(.marnamic-air-search--mobile-open) > .marnamic-air-search__mobile-launch,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search:not(.marnamic-air-search--mobile-open) > .marnamic-air-search__mobile-launch {
    color: var(--marnamic-search-ink) !important;
    background: var(--marnamic-search-active) !important;
    border-color: rgba(19, 33, 36, 0.14) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results .hp-page__header .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open {
    color: var(--marnamic-search-ink) !important;
    background: var(--marnamic-search-page) !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open > .hp-form__fields > .hp-form__field {
    color: var(--marnamic-search-ink) !important;
    background: var(--marnamic-search-surface) !important;
    border-color: rgba(246, 242, 234, 0.18) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card.is-active,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open > .hp-form__fields > .hp-form__field.is-mobile-active {
    color: var(--marnamic-search-ink) !important;
    background: var(--marnamic-search-active) !important;
    border-color: rgba(19, 33, 36, 0.12) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24) !important;
  }

  body.wp-child-theme-marnamic .marnamic-air-mobile-card__content .hp-field--location > input,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open .hp-form__field.is-mobile-active > :is(.hp-field, .select2-container) {
    color: var(--marnamic-search-ink) !important;
    background: #fffaf3 !important;
    border-color: rgba(19, 33, 36, 0.22) !important;
  }

  body.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__location-action,
  body.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open .hp-field--location > a {
    color: var(--marnamic-search-ink) !important;
    background: var(--marnamic-search-location) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .marnamic-air-search__mobile-close,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open > .marnamic-listing-search__mobile-close {
    color: var(--marnamic-search-ink) !important;
    background: var(--marnamic-search-active) !important;
    border: 1px solid rgba(19, 33, 36, 0.12) !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .marnamic-air-search__mobile-actions,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open > .marnamic-listing-search__mobile-actions {
    background: rgba(19, 33, 36, 0.98) !important;
    border-top-color: rgba(246, 242, 234, 0.16) !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__mobile-reset,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open .marnamic-listing-search__mobile-reset {
    color: var(--marnamic-search-active) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-search__mobile-primary,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--listing-search.marnamic-listing-search--mobile-open .marnamic-listing-search__mobile-primary {
    color: var(--marnamic-search-ink) !important;
    background: var(--marnamic-search-accent) !important;
    border-color: var(--marnamic-search-accent) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-air-search-mobile-open .pac-container,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-listing-search-mobile-open .pac-container,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-listing-search-mobile-open .select2-container--open .select2-dropdown {
    color: var(--marnamic-search-ink) !important;
    background: var(--marnamic-search-active) !important;
    border-color: rgba(19, 33, 36, 0.12) !important;
  }
}

/* Mobile defect guard: remove every retired desktop layer inside the isolated cards. */
@media (max-width: 980px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open > .hp-form__footer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .hp-form__field::before,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .hp-form__field::after {
    display: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    content: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .hp-form__field--location > .hp-field--location {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .hp-form__field--location > .hp-field--location > input {
    display: block !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 12px 62px 12px 16px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .hp-form__field--location :is(.marnamic-air-search__segment-clear, .marnamic-air-search__location-action) {
    position: absolute !important;
    top: 27px !important;
    right: 7px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 4 !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .hp-form__field > .marnamic-air-search__popover,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .hp-form__field--location > .marnamic-air-search__popover--location-start,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .marnamic-air-search__radius-field > .marnamic-air-search__popover--radius {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 14px 0 0 !important;
    padding: 14px 0 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid rgba(19, 33, 36, 0.12) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .hp-form__field:not(.is-open) > .marnamic-air-search__popover {
    display: none !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .hp-form__field.is-open > .marnamic-air-search__popover {
    display: block !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search.marnamic-air-search--mobile-open .marnamic-air-mobile-card__content > .hp-form__field.is-open > .marnamic-air-search__popover--purpose {
    display: flex !important;
  }
}

/* Final semantic filter state overrides. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__radius-field[hidden],
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search--region-mode .marnamic-air-search__radius-field {
  display: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search :is(.marnamic-air-search__label, .marnamic-air-search__radius-trigger-label) {
  color: #132124 !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search :is(.marnamic-air-search__hint, .marnamic-air-search__radius-trigger-value) {
  font-size: 0.96rem !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-air-search__hint {
  color: rgba(19, 33, 36, 0.58) !important;
  font-weight: 650 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search :is(.hp-form__field.has-segment-value .marnamic-air-search__hint, .marnamic-air-search__radius-trigger-value) {
  color: #132124 !important;
  font-weight: 780 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-form--vendor-search.marnamic-air-search .marnamic-role-option {
  cursor: pointer !important;
  touch-action: manipulation !important;
}
