/*
 * CRRE quick-search form — inner-page look for [crre_search_form] (inc/content/search-form.php).
 *
 * The form markup is template-parts/slideshow-button.php, shared with the homepage hero. On the
 * homepage it is styled by the PARENT's assets/css/homepage.css (is_home() only, dark hero overlay).
 * That sheet is not touched and does not load here. These rules are the .container.custom-qs /
 * .qc-* layout rules the form needs, copied from it and scoped under .crre-search-hub, with a light
 * panel and dark text instead of the hero's 40%-black overlay. Loaded only on pages whose content
 * carries [crre_search_form].
 *
 * Added 2026-10-24 (property-search hub, step 1).
 */

.crre-search-hub {
    --crre-sf-accent: var(--aios-listing-primary-color, #0F4A57);
    margin: 30px 0;
}

.crre-search-hub .container.custom-qs {
    width: 100%;
    max-width: 915px;
    margin: 0 auto 20px;
    padding: 35px 45px;
    background: #f4f6f7;
    border: 1px solid #dfe4e6;
    border-radius: 6px;
}

.crre-search-hub .container.custom-qs > .row {
    margin: 0 -25px;
}

.crre-search-hub .container.custom-qs form {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.crre-search-hub .container.custom-qs .qc-title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: .1em;
    color: #202124;
}

.crre-search-hub .container.custom-qs .qc-left {
    margin: 0 -10px;
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.crre-search-hub .container.custom-qs .qc-left .qc-form-fields {
    width: 82.439%;
    padding: 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.crre-search-hub .container.custom-qs .qc-left .qc-form-fields .qc-form {
    width: calc(20% - 7.2px);
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.crre-search-hub .container.custom-qs .qc-left .qc-form-fields .qc-form input,
.crre-search-hub .container.custom-qs .qc-left .qc-form-fields .qc-form select {
    width: 100%;
    padding: 0 10px;
    font-size: 12px;
    line-height: 1.3;
    background-color: #fff;
    border: 1px solid #c9d1d4;
    border-radius: 3px;
    height: 38px;
    color: #3c4043;
    letter-spacing: .02em;
    text-transform: uppercase;
    outline: none;
}

.crre-search-hub .container.custom-qs .qc-left .qc-form-fields .qc-form input:focus,
.crre-search-hub .container.custom-qs .qc-left .qc-form-fields .qc-form select:focus {
    border-color: var(--crre-sf-accent);
}

.crre-search-hub .container.custom-qs .qc-left .qc-form-fields .qc-form input::placeholder {
    color: #6b7275;
    font-size: 11px;
    letter-spacing: 0;
}

.crre-search-hub .container.custom-qs .qc-left .qc-form-fields .qc-form select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url(../../../agentpro-endeavor/assets/images/dd-bg-black-v2.png);
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 30px;
}

.crre-search-hub .container.custom-qs .qc-left .qc-form-fields .qc-form.qc-form-long {
    width: 100%;
    letter-spacing: 0;
}

.crre-search-hub .container.custom-qs .qc-left .qc-buttons {
    display: flex;
    width: 17.561%;
    padding: 0 10px;
    flex-direction: column;
    gap: 9px;
}

.crre-search-hub .container.custom-qs .qc-left .qc-buttons input {
    display: block;
    width: 100%;
    height: 85px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--crre-sf-accent);
    border-radius: 3px;
    background: var(--crre-sf-accent);
    color: #fff;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.crre-search-hub .container.custom-qs .qc-left .qc-buttons input:hover,
.crre-search-hub .container.custom-qs .qc-left .qc-buttons input:focus {
    background: #fff;
    color: var(--crre-sf-accent);
}

@media only screen and (max-width: 991px) {
    .crre-search-hub .container.custom-qs {
        margin: 0;
        padding: 25px 20px;
    }

    .crre-search-hub .container.custom-qs > .row {
        margin: 0;
    }

    .crre-search-hub .container.custom-qs .qc-left {
        margin: 0;
        flex-direction: column;
        gap: 15px;
    }

    .crre-search-hub .container.custom-qs .qc-left .qc-form-fields,
    .crre-search-hub .container.custom-qs .qc-left .qc-form-fields .qc-form,
    .crre-search-hub .container.custom-qs .qc-left .qc-buttons {
        width: 100%;
        padding: 0;
    }

    .crre-search-hub .container.custom-qs .qc-left .qc-buttons input {
        height: 44px;
    }
}
