.hp-form--listing-search .hp-form__fields{
    display: flex;
    border-radius: 2rem;
    overflow: hidden;
    margin:0 !important;
    .hp-form__field{
        margin-right: 0 !important;
        padding-left: 3rem;
    }
    input,.selection span{
        border-radius: unset !important;
        border-color: var(--color-dark-blue) !important;
        border-width: 0 1.5px 0 0 !important;
        background: white !important;
        height: 3rem !important;
        line-height: 3rem !important;
        min-height: 3rem !important;
        padding-left: 0;
    }
    .hp-form__field:last-child input {
        border-width: 0 0 0 0 !important;
    }
    .hp-form__field--date-range,
    .hp-form__field--select{
        position: relative;
    }
    .hp-form__field--location{
        padding-left: 0;
    }
    .hp-form__field--date-range:after,
    .hp-form__field--select:after{
        /* content: '\f073'; */
        /* font-family: 'fontawesome'; */
        position: absolute;
        left: 0;
        color: var(--color-blue);
        font-weight: 600;
        top: 0;
        z-index: 2;
        height: var(--inputs-height);
        display: flex;
        align-items: center;
        width: 45px;
        justify-content: center;
    }
}
 .hp-form__field--select:after{
    /* content: '\f61f' !important; */
 }

 .hp-form--listing-search .hp-form__field--location .hp-field--location{
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}

 .hp-form--listing-search .hp-form__field--location .hp-field--location > a{
    position: static;
    order: -1;
    flex: 0 0 45px;
    width: 45px;
    min-width: 45px;
    margin: 0;
    height: auto;
    align-self: stretch;
    color: var(--color-blue);
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    text-decoration: none;
}

 .hp-form--listing-search .hp-form__field--location .hp-field--location input[type="text"],
 .hp-form--listing-search .hp-form__field--location .hp-field--location .mapboxgl-ctrl-geocoder,
 .hp-form--listing-search .hp-form__field--location .hp-field--location .mapboxgl-ctrl-geocoder input[type="text"]{
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    min-height: 3rem;
    position: relative;
    z-index: 1;
    cursor: text;
    pointer-events: auto;
    padding-right: 0;
}

/* Submit/edit forms: keep HivePress layout (typeable input, locate on the right) */
.hp-form--request-submit .hp-form__field--location .hp-field--location,
.hp-form--request-update .hp-form__field--location .hp-field--location,
.hp-form--listing-submit .hp-form__field--location .hp-field--location,
.hp-form--listing-update .hp-form__field--location .hp-field--location,
.hp-form--vendor-submit .hp-form__field--location .hp-field--location,
.hp-form--vendor-update .hp-form__field--location .hp-field--location{
    display: flex;
    align-items: stretch;
}

.hp-form--request-submit .hp-form__field--location .hp-field--location > a,
.hp-form--request-update .hp-form__field--location .hp-field--location > a,
.hp-form--listing-submit .hp-form__field--location .hp-field--location > a,
.hp-form--listing-update .hp-form__field--location .hp-field--location > a,
.hp-form--vendor-submit .hp-form__field--location .hp-field--location > a,
.hp-form--vendor-update .hp-form__field--location .hp-field--location > a{
    position: relative;
    left: auto;
    top: auto;
    flex: 0 0 3rem;
    width: 3rem;
    margin-left: -3rem;
    height: auto;
    z-index: 3;
    cursor: pointer;
    pointer-events: auto;
}

.hp-form--request-submit .hp-form__field--location .hp-field--location input[type="text"],
.hp-form--request-update .hp-form__field--location .hp-field--location input[type="text"],
.hp-form--listing-submit .hp-form__field--location .hp-field--location input[type="text"],
.hp-form--listing-update .hp-form__field--location .hp-field--location input[type="text"],
.hp-form--vendor-submit .hp-form__field--location .hp-field--location input[type="text"],
.hp-form--vendor-update .hp-form__field--location .hp-field--location input[type="text"],
.hp-form--request-submit .hp-form__field--location .hp-field--location .mapboxgl-ctrl-geocoder,
.hp-form--request-update .hp-form__field--location .hp-field--location .mapboxgl-ctrl-geocoder,
.hp-form--listing-submit .hp-form__field--location .hp-field--location .mapboxgl-ctrl-geocoder,
.hp-form--listing-update .hp-form__field--location .hp-field--location .mapboxgl-ctrl-geocoder,
.hp-form--vendor-submit .hp-form__field--location .hp-field--location .mapboxgl-ctrl-geocoder,
.hp-form--vendor-update .hp-form__field--location .hp-field--location .mapboxgl-ctrl-geocoder{
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    position: relative;
    z-index: 1;
    cursor: text;
    pointer-events: auto;
    padding-right: 3rem;
}
.hp-form--listing-search{
    background: white;
    border-radius: 2rem;
    align-items: center;
    button.hp-form__button{
            padding: var(--btn-padding, 0.72em 1.45em) !important;
            border-radius: var(--btn-radius, 9999px) !important;
            background: var(--color-dark-blue) !important;
            color: #fff !important;
            border-color: transparent !important;
            font-family: var(--primary-font);
            font-size: 18px;
            font-weight: 500;
            letter-spacing: 0.036em;
            line-height: 1.2 !important;
        }
    button.hp-form__button:hover,
    button.hp-form__button:focus-visible{
            background: var(--color-blue) !important;
            color: #fff !important;
        }
}

.fa-location-arrow:before{
    content: '\f3c5' !important;
    color: var(--color-blue);
}

/* Explicit dimensions so HivePress/Mapbox can initialise the map container */
.hp-page__sidebar .hp-map,
.hp-listing__map,
.hp-request__map {
    width: 100%;
    min-height: 314px;
    flex-shrink: 0;
}

.hp-template--requests-view-page .hp-page__sidebar .hp-map,
.hp-template--listings-view-page .hp-page__sidebar .hp-map,
.hp-template--vendors-view-page .hp-page__sidebar .hp-map,
.hp-template.search .hp-page__sidebar .hp-map,
.post-type-archive-hp_request .widget.hp-map {
    height: 314px !important;
}

.hp-page__sidebar[data-component="sticky"]:has([data-component="map"]) {
    /* display: block !important; */
    min-height: 314px;
}

/* Find jobs (HivePress requests grid): stack map under search, no sidebar “card”, even gaps */
.hp-template--requests-view-page {
    --hp-jobs-stack-gap: 2rem;
}

.hp-template--requests-view-page .hp-page .hp-row {
    flex-direction: column;
}

.hp-template--requests-view-page .hp-page .hp-row > * {
    flex-basis: 100%;
    max-width: 100%;
}

.hp-template--requests-view-page .hp-page .hp-page__header,
.hp-template--requests-view-page .hp-page__header,
.post-type-archive-hp_request .hp-page .hp-page__header {
    margin-bottom: 0;
    padding-block: var(--hp-page-padding-block) 0;
    padding-inline: var(--hp-page-padding-inline);
}

.hp-template.hp-template--requests-view-page .hp-page__sidebar,
.post-type-archive-hp_request.hp-template .hp-page__sidebar {
    background-color: transparent;
    min-height: auto;
    margin-top: var(--hp-jobs-stack-gap);
    margin-bottom: 0;
}

@media only screen and (min-width: 1025px) {
    .hp-template.hp-template--requests-view-page .hp-page .hp-row .hp-page__sidebar,
    .post-type-archive-hp_request.hp-template .hp-page .hp-row .hp-page__sidebar {
        padding-left: var(--hp-page-padding-inline);
        padding-right: var(--hp-page-padding-inline);
        padding-top: 0;
        padding-bottom: 0;
    }
}

.hp-template--requests-view-page .hp-page__sidebar:first-child {
    margin-bottom: 0;
}

.hp-template--requests-view-page .hp-form--listing-search {
    margin-bottom: 0 !important;
}

.hp-template--requests-view-page .hp-map,
.hp-template--requests-view-page .widget.hp-map {
    background: transparent;
    margin-bottom: 0 !important;
    padding: 0;
}

.hp-template--requests-view-page .widget.hp-map,
.hp-template--requests-view-page .hp-page__sidebar .hp-map {
    border-radius: 20px;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.hp-template--requests-view-page .hp-page__content {
    padding-top: var(--hp-jobs-stack-gap);
}

@media only screen and (max-width: 1024px) {
    .hp-template.hp-template--requests-view-page .hp-page .hp-row .hp-page__sidebar,
    .post-type-archive-hp_request.hp-template .hp-page .hp-row .hp-page__sidebar {
        padding: 0 var(--hp-page-padding-inline) !important;
    }

    .hp-template.hp-template--requests-view-page .hp-page__sidebar .hp-map,
    .hp-template.hp-template--requests-view-page .widget.hp-map,
    .post-type-archive-hp_request.hp-template .hp-page__sidebar .hp-map {
        width: 100%;
        max-width: 100%;
    }
}

@media only screen and (max-width: 47.99em) {
    .hp-template--requests-view-page .hp-page__sidebar {
        margin-top: var(--hp-jobs-stack-gap);
    }
}

.post-type-archive-hp_request{
    .hp-row{
        flex-direction: column;
    }
    .hp-row *{
        flex-basis: unset;
        max-width: unset;
    }
}

.hp-widget--listing-filter,
.hp-form--pivot .hp-form__field{
	display: none;
}
.hp-form__field--search{
    display: none;
}
.select2-dropdown.select2-dropdown--below{
    margin-top: 5px;
}
.select2-results__options{
    padding: 10px;
}
.select2-search.select2-search--dropdown{
    display: none;
}
.select2-results__option.select2-results__option--highlighted{
    color: var(--color-blue);
}

@media screen and (max-width: 47.99em) {
    .hp-template--requests-view-page .hp-page__header .hp-form--listing-search,
    .post-type-archive-hp_request .hp-page__header .hp-form--listing-search {
        margin-bottom: 0 !important;
    }

    .hp-template--requests-view-page .hp-page__header .hp-button--listing-filter,
    .post-type-archive-hp_request .hp-page__header .hp-button--listing-filter {
        display: inline-flex;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        margin: 1.5rem 0 0;
        border: 1px solid var(--color-dark-blue) !important;
        border-radius: 2rem;
        background: #fff !important;
        color: var(--color-dark-blue) !important;
    }

    .hp-form--listing-search {
        background: transparent;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .hp-form--listing-search.hp-form--wide .hp-form__fields:not(:last-child),
    .hp-form--listing-search.hp-form--wide .hp-form__footer:not(:last-child),
    .hp-form--listing-search.hp-form--wide .hp-form__field:not(:last-child) {
        margin: 0 !important;
    }

    .hp-form--listing-search .hp-form__fields {
        border-radius: unset;
        width: 100%;
        margin-bottom: 0 !important;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .hp-form--listing-search .hp-form__fields .hp-form__field {
        background: white;
        width: 100%;
        border-radius: 2rem;
        overflow: hidden;
    }

    .hp-form--listing-search .hp-form__fields input,
    .hp-form--listing-search .hp-form__fields .selection span {
        border-width: 0 !important;
    }

    .hp-form--listing-search .hp-form__footer {
        width: 100%;
        align-self: stretch;
        margin: 0 !important;
    }

    .hp-form--listing-search button.hp-form__button {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
}