#shortcode-immomakler-search-form {
    background: linear-gradient(180deg, #006B86 0%, #006B86 34%, #5b9fb3 68%, #EFEFEF 100%);
    padding-bottom: 18px;
}

main {
    background: #EFEFEF !important;
}

#immomakler-search-id {
    display: none;
}

/* =========================
   DESKTOP SEARCH LAYOUT
========================= */

@media (min-width: 992px) {
    #shortcode-immomakler-search-form,
    #immomakler-search-form {
        position: relative;
        padding: 42px 42px 28px 42px;
    }

    /* hide default archive headings */
    .archive-title,
    .archive-subtitle {
        display: none !important;
    }

    /* small helper line like in design */
    #shortcode-immomakler-search-form::before,
    #immomakler-search-form::before {
        content: "Nach Objekt-ID suche";
        display: block;
        margin: 0 0 56px 100px;
        color: #ffffff;
        font-size: 14px;
        line-height: 1.2;
        font-weight: 700;
    }

    /* remove default panel visuals */
    #shortcode-immomakler-search-form .panel,
    #shortcode-immomakler-search-form .panel-default,
    #immomakler-search-form .panel,
    #immomakler-search-form .panel-default {
        background: transparent;
        border: 0;
        box-shadow: none;
        margin: 0;
    }

    #shortcode-immomakler-search-form .panel-heading,
    #immomakler-search-form .panel-heading {
        background: transparent;
        border: 0;
        padding: 0;
    }

    /* ---------------------------------
       FILTER GRID
    --------------------------------- */
    #shortcode-immomakler-search-form .search-taxonomies,
    #immomakler-search-form .search-taxonomies {
        display: grid;
        grid-template-columns: 286px 286px 286px;
        grid-template-areas:
            "f1 f2 f3"
            "f4 . .";
        column-gap: 22px;
        row-gap: 14px;
        align-items: start;
        margin: 0 0 14px 0;
    }

    #shortcode-immomakler-search-form .search-taxonomies > .bootstrap-select,
    #immomakler-search-form .search-taxonomies > .bootstrap-select {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }

    #shortcode-immomakler-search-form .search-taxonomies > .bootstrap-select:nth-child(1),
    #immomakler-search-form .search-taxonomies > .bootstrap-select:nth-child(1) {
        grid-area: f1;
    }

    #shortcode-immomakler-search-form .search-taxonomies > .bootstrap-select:nth-child(2),
    #immomakler-search-form .search-taxonomies > .bootstrap-select:nth-child(2) {
        grid-area: f2;
    }

    #shortcode-immomakler-search-form .search-taxonomies > .bootstrap-select:nth-child(3),
    #immomakler-search-form .search-taxonomies > .bootstrap-select:nth-child(3) {
        grid-area: f3;
    }

    #shortcode-immomakler-search-form .search-taxonomies > .bootstrap-select:nth-child(4),
    #immomakler-search-form .search-taxonomies > .bootstrap-select:nth-child(4) {
        grid-area: f4;
    }

    /* select visual style */
    #shortcode-immomakler-search-form .bootstrap-select > .dropdown-toggle,
    #immomakler-search-form .bootstrap-select > .dropdown-toggle {
        min-height: 52px;
        padding: 12px 46px 12px 18px;
        border: 1px solid rgba(255, 255, 255, 0.65) !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        color: #006B86 !important;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    #shortcode-immomakler-search-form .bootstrap-select .filter-option,
    #immomakler-search-form .bootstrap-select .filter-option {
        display: flex;
        align-items: center;
        color: #006B86;
        font-weight: 700;
    }

    #shortcode-immomakler-search-form .bootstrap-select.btn-group .dropdown-toggle .caret,
    #immomakler-search-form .bootstrap-select.btn-group .dropdown-toggle .caret {
        border-top-color: #006B86;
        border-width: 7px 7px 0 7px;
        right: 18px;
        margin-top: -2px;
    }

    /* ---------------------------------
       ACTION ROW
    --------------------------------- */
    #shortcode-immomakler-search-form .search-actions,
    #immomakler-search-form .search-actions {
        display: grid;
        grid-template-columns: 220px 1fr 360px;
        grid-template-areas: "submit middle objectid";
        column-gap: 18px;
        align-items: center;
        margin: 0;
    }

    /* submit button */
    #shortcode-immomakler-search-form .gmig-search-submit,
    #immomakler-search-form .gmig-search-submit {
        grid-area: submit;
        justify-self: start;
        min-height: 44px;
        padding: 7px 18px;
        border: 1px solid rgba(255, 255, 255, 0.65) !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        color: #006B86 !important;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

    #shortcode-immomakler-search-form .gmig-search-submit__icon,
    #immomakler-search-form .gmig-search-submit__icon {
        font-size: 16px;
        line-height: 1;
    }

    /* middle small controls */
    #shortcode-immomakler-search-form .immomakler-cart-button,
    #immomakler-search-form .immomakler-cart-button,
    #shortcode-immomakler-search-form #immomakler-search-reset,
    #immomakler-search-form #immomakler-search-reset {
        min-height: 40px;
        padding: 6px 14px;
        border-radius: 999px !important;
        border: 1px solid rgba(0, 107, 134, 0.18) !important;
        background: transparent !important;
        color: rgba(45, 45, 45, 0.8) !important;
        box-shadow: none !important;
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #shortcode-immomakler-search-form .immomakler-cart-button,
    #immomakler-search-form .immomakler-cart-button {
        grid-area: middle;
        justify-self: start;
        margin-right: 8px;
    }

    #shortcode-immomakler-search-form #immomakler-search-reset,
    #immomakler-search-form #immomakler-search-reset {
        grid-area: middle;
        justify-self: start;
        margin-left: 128px;
    }

    /* badge */
    #shortcode-immomakler-search-form .badge.cart-count-badge,
    #immomakler-search-form .badge.cart-count-badge {
        background: #333;
        color: #fff;
        font-size: 11px;
        margin-left: 6px;
    }

    /* object id search */
    #shortcode-immomakler-search-form .gmig-search-for-id,
    #immomakler-search-form .gmig-search-for-id {
        grid-area: objectid;
        justify-self: end;
        position: relative;
        display: flex;
        align-items: stretch;
        width: 100%;
        max-width: 360px;
        border-radius: 999px !important;
        overflow: hidden;
        background: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.65);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    }

    #shortcode-immomakler-search-form .gmig-search-for-id__icon,
    #immomakler-search-form .gmig-search-for-id__icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #d2d6db;
        z-index: 2;
        pointer-events: none;
    }

    #shortcode-immomakler-search-form .gmig-search-for-id__input,
    #immomakler-search-form .gmig-search-for-id__input {
        height: 54px;
        min-height: 54px;
        width: 100%;
        border: 0;
        background: transparent;
        border-radius: 999px 0 0 999px !important;
        padding: 0 14px 0 46px;
        color: #006B86;
        font-size: 14px;
        line-height: 54px;
        font-weight: 700;
    }

    #shortcode-immomakler-search-form .gmig-search-for-id__input::placeholder,
    #immomakler-search-form .gmig-search-for-id__input::placeholder {
        color: #c7ccd2;
        line-height: 54px;
        font-weight: 700;
        opacity: 1;
    }

    #shortcode-immomakler-search-form .gmig-search-for-id__button,
    #immomakler-search-form .gmig-search-for-id__button {
        min-width: 54px;
        min-height: 54px;
        border: 0;
        background: transparent;
        border-radius: 0 999px 999px 0 !important;
        color: #d2d6db;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 14px;
    }

    /* cleaner lower bar */
    #shortcode-immomakler-search-form + *,
    #immomakler-search-form + * {
        position: relative;
        z-index: 1;
    }
}

#immomakler-search-advanced .panel-heading,
#shortcode-immomakler-search-advanced .panel-heading {
    padding: 0 5px !important;
}

#immomakler-search-advanced .panel-heading,
#shortcode-immomakler-search-advanced .panel-heading a {
    display: none;
}

#immomakler-search-advanced .panel-heading,
#shortcode-immomakler-search-advanced .panel-heading #immomakler-search-reset {
    display: none;
}

#shortcode-immomakler-search-form::before,
#immomakler-search-form::before,
#shortcode-immomakler-search::before,
#immomakler-search::before {
    content: none !important;
    display: none !important;
}