.smart-search,
.smart-search *{
    box-sizing:border-box;
}

.smart-search [hidden]{
    display:none !important;
}

.smart-search input[type="search"]::-webkit-search-cancel-button{
    display:none;
}

.smart-search{
    font-family:Inter, Arial, sans-serif;
    color:#182230;
}

body header{
    padding:1px 0;
}

body header .center_content{
    box-sizing:border-box;
    width:100%;
    max-width:1220px;
    margin:14px auto;
    padding:14px 18px 16px;
    border:1px solid #e4e7ec;
    border-radius:12px;
    background:#fff;
    box-shadow:0 10px 28px rgba(16,24,40,.07);
}

.smart-search-sr{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

header .smart-search-simple{
    position:relative;
    z-index:1200;
    width:min(100%,760px);
    margin:18px auto 4px;
    padding:12px;
    border:1px solid #e4e7ec;
    border-radius:8px;
    background:#fff;
    box-shadow:0 10px 28px rgba(16,24,40,.08);
}

body header .smart-search-simple{
    padding:0;
    border:0;
    background:transparent;
    box-shadow:none;
}

body.page-home header .smart-search-simple.is-sticky{
    position:fixed;
    top:8px;
    left:50%;
    z-index:4600;
    width:min(calc(100% - 24px),760px);
    margin:0;
    padding:8px;
    border:1px solid #e4e7ec;
    border-radius:10px;
    background:#fff;
    box-shadow:0 12px 30px rgba(16,24,40,.16);
    transform:translateX(-50%);
}

.smart-search-sticky-space{
    width:100%;
    height:0;
    flex:0 0 100%;
}

.smart-search-location{
    position:relative;
    width:100%;
}

.smart-search-location-input,
.smart-search-field input,
.smart-search-field select{
    display:block;
    width:100%;
    height:46px;
    min-height:46px;
    margin:0;
    padding:0 42px;
    border:1px solid #cfd5df;
    border-radius:7px;
    background:#fff;
    color:#182230;
    font:600 14px/1.2 Inter, Arial, sans-serif;
    letter-spacing:0;
    outline:none;
    box-shadow:0 1px 2px rgba(16,24,40,.04);
}

.smart-search-field input,
.smart-search-field select{
    padding:0 13px;
}

.smart-search-field .smart-search-location-input{
    padding:0 42px;
}

.smart-search-simple .smart-search-location-input{
    padding-right:64px;
    border:2px solid var(--site-primary);
}

.smart-search-field select{
    cursor:pointer;
}

.smart-search-location-input:focus,
.smart-search-field input:focus,
.smart-search-field select:focus{
    border-color:var(--site-primary);
    box-shadow:0 0 0 3px color-mix(in srgb,var(--site-primary) 15%,transparent);
}

.smart-search-location-input::placeholder,
.smart-search-field input::placeholder{
    color:#8b95a5;
    opacity:1;
}

.smart-search-pin{
    position:absolute;
    top:50%;
    left:16px;
    z-index:2;
    color:var(--site-primary);
    font-size:18px;
    transform:translateY(-50%);
    pointer-events:none;
}

.smart-search-clear{
    position:absolute;
    top:50%;
    right:7px;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:center;
    width:32px;
    height:32px;
    padding:0;
    border:0;
    border-radius:50%;
    background:transparent;
    color:#667085;
    cursor:pointer;
    transform:translateY(-50%);
}

.smart-search-clear:hover{
    background:#f2f4f7;
    color:#182230;
}

.smart-search-simple .smart-search-clear{
    right:50px;
}

.smart-search-simple-submit{
    position:absolute;
    top:5px;
    right:5px;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    padding:0;
    border:1px solid var(--site-primary-dark);
    border-radius:7px;
    background:var(--site-primary);
    color:#fff;
    font-size:17px;
    cursor:pointer;
    transition:background .16s ease, transform .16s ease, opacity .16s ease;
}

.smart-search-simple-submit:hover:not(:disabled){
    background:var(--site-primary-dark);
    transform:translateY(-1px);
}

.smart-search-simple-submit:disabled{
    cursor:default;
    opacity:1;
}

.smart-search-suggestions{
    position:absolute;
    top:calc(100% + 6px);
    left:0;
    z-index:1300;
    width:100%;
    max-height:310px;
    overflow-y:auto;
    border:1px solid #d7dce4;
    border-radius:7px;
    background:#fff;
    box-shadow:0 16px 36px rgba(16,24,40,.15);
}

.smart-search-suggestion{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:14px;
    width:100%;
    min-height:52px;
    padding:8px 13px;
    border:0;
    border-bottom:1px solid #edf0f4;
    background:#fff;
    color:#182230;
    text-align:left;
    cursor:pointer;
}

.smart-search-suggestion:last-child{
    border-bottom:0;
}

.smart-search-suggestion:hover,
.smart-search-suggestion.is-active{
    background:#f7f9fb;
}

.smart-search-suggestion-name{
    display:block;
    overflow:hidden;
    font-size:14px;
    font-weight:750;
    line-height:1.25;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.smart-search-suggestion-context,
.smart-search-suggestion-total{
    color:#667085;
    font-size:12px;
    font-weight:600;
}

.smart-search-suggestion-context{
    display:block;
    margin-top:3px;
}

.smart-search-empty{
    margin:0;
    padding:14px;
    color:#667085;
    font-size:13px;
    text-align:center;
}

.smart-search-category-wrap{
    margin-top:11px;
}

.smart-search-chips{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}

.smart-search-chip,
.smart-search-more{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:6px 12px;
    border:1px solid #d0d5dd;
    border-radius:18px;
    background:#fff;
    color:#344054;
    font-size:13px;
    font-weight:750;
    line-height:1.2;
    text-decoration:none;
    cursor:pointer;
}

.smart-search-chip:hover{
    border-color:var(--site-primary);
    color:var(--site-primary-dark);
    text-decoration:none;
}

.smart-search-chip:first-child{
    border-color:var(--site-primary);
    background:var(--site-primary);
    color:#fff;
}

.smart-search-chip-count{
    margin-left:5px;
    opacity:.72;
}

.smart-search-chip.is-extra{
    display:none;
}

.smart-search-category-wrap.is-expanded .smart-search-chip.is-extra{
    display:inline-flex;
}

.smart-search-more{
    margin-top:7px;
    border-style:dashed;
    color:#667085;
}

.smart-search-loading{
    display:block;
    padding:7px 2px 0;
    color:#667085;
    font-size:12px;
}

.smart-search-listing{
    position:sticky;
    top:8px;
    z-index:1150;
    width:100%;
    margin:14px 0 20px;
    padding:12px;
    border:1px solid #e1e5eb;
    border-radius:8px;
    background:#fff;
    box-shadow:0 8px 24px rgba(16,24,40,.06);
}

body.has-smart-search-listing #content{
    display:flow-root;
    overflow:visible;
}

.smart-search-summary{
    display:grid;
    grid-template-columns:minmax(0,1fr) 46px;
    gap:8px;
    align-items:stretch;
}

.smart-search-summary-main{
    display:flex;
    align-items:center;
    min-height:44px;
    min-width:0;
    padding:5px 11px;
    border:1px solid #d0d5dd;
    border-radius:7px;
    background:#fff;
    cursor:pointer;
}

.smart-search-magnifier{
    flex:0 0 auto;
    margin-right:8px;
    color:#667085;
    font-size:15px;
}

.smart-search-active-tags{
    display:flex;
    align-items:center;
    gap:5px;
    min-width:0;
    overflow:hidden;
}

.smart-search-active-tag{
    display:inline-flex;
    align-items:center;
    flex:0 1 auto;
    max-width:210px;
    min-height:28px;
    padding:4px 9px;
    border:0;
    border-radius:15px;
    background:var(--site-accent-soft);
    color:var(--site-primary-dark);
    font:700 12px/1.2 Inter, Arial, sans-serif;
    letter-spacing:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    cursor:pointer;
}

.smart-search-active-tag i{
    margin-left:6px;
    font-size:10px;
}

.smart-search-summary-placeholder{
    color:#667085;
    font-size:13px;
    font-weight:650;
}

.smart-search-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:44px;
    padding:0;
    border:1px solid #d0d5dd;
    border-radius:7px;
    background:#fff;
    color:#475467;
    font-size:16px;
    cursor:pointer;
}

.smart-search-toggle:hover,
.smart-search-toggle[aria-expanded="true"]{
    border-color:var(--site-primary);
    background:var(--site-accent-soft);
    color:var(--site-primary-dark);
}

.smart-search-count{
    margin:8px 1px 0;
    color:#667085;
    font-size:13px;
    line-height:1.3;
}

.smart-search-count strong{
    color:#344054;
}

.smart-search-panel{
    display:grid;
    grid-template-columns:1fr 1.35fr 1fr;
    gap:12px;
    margin-top:14px;
    padding-top:14px;
    border-top:1px solid #edf0f4;
}

.smart-search-panel[hidden]{
    display:none;
}

.smart-search-field{
    position:relative;
    min-width:0;
}

.smart-search-field[hidden]{
    display:none;
}

.smart-search-field label{
    display:block;
    margin:0 0 5px;
    color:#475467;
    font-size:12px;
    font-weight:750;
}

.smart-search-age-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    grid-column:1 / 3;
}

.smart-search-submit{
    display:flex;
    align-items:center;
    justify-content:center;
    align-self:end;
    min-height:46px;
    padding:9px 16px;
    border:1px solid var(--site-primary-dark);
    border-radius:7px;
    background:var(--site-primary);
    color:#fff;
    font-size:14px;
    font-weight:800;
    line-height:1.2;
    text-align:center;
    text-decoration:none;
}

.smart-search-submit:hover{
    background:var(--site-primary-dark);
    color:#fff;
    text-decoration:none;
}

.smart-search-error{
    grid-column:1 / -1;
    margin:0;
    color:#b42318;
    font-size:12px;
    font-weight:650;
}

@media screen and (max-width:860px){
    body.has-smart-search-listing,
    body.has-smart-search-listing .page{
        overflow-x:clip !important;
        overflow-y:visible !important;
    }

    header .smart-search-simple{
        order:4;
        flex:0 0 100%;
        width:100%;
        margin:4px 0 0;
    }

    body header .center_content{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(142px,1.05fr) 42px !important;
        grid-template-rows:auto auto !important;
        align-items:center !important;
        gap:8px 6px !important;
        width:100% !important;
        margin:10px auto !important;
        padding:12px !important;
    }

    body header hgroup{
        display:contents !important;
    }

    body header hgroup > a{
        grid-column:1 !important;
        grid-row:1 !important;
        display:flex !important;
        align-items:center !important;
        min-width:0 !important;
    }

    body header hgroup > a img{
        width:min(100%,142px) !important;
        height:auto !important;
    }

    body header hgroup .menu_open{
        grid-column:3 !important;
        grid-row:1 !important;
        align-self:center !important;
        width:42px !important;
        height:42px !important;
        margin:0 !important;
        border:0 !important;
        background:transparent !important;
        box-shadow:none !important;
    }

    body header .btn-action-mobile{
        grid-column:2 !important;
        grid-row:1 !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        gap:5px !important;
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        margin:0 !important;
        padding:0 !important;
    }

    body header .btn-action-mobile a{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        width:100% !important;
        min-width:0 !important;
        min-height:34px !important;
        height:34px !important;
        margin:0 !important;
        padding:4px 7px !important;
        border-radius:7px !important;
        font-size:11px !important;
        line-height:1.05 !important;
        text-align:center !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        box-shadow:none !important;
    }

    body header .btn-action-mobile a:before{
        display:none !important;
        content:none !important;
    }

    body header .btn-action-mobile .mobile-account-link{
        border-color:var(--site-accent-soft) !important;
        background:var(--site-accent-soft) !important;
        color:var(--site-primary-dark) !important;
    }

    body header .btn-action-mobile .mobile-publish-link{
        border-color:var(--site-primary-dark) !important;
        background:var(--site-primary) !important;
        color:#fff !important;
    }

    body header nav.menu{
        grid-column:1 / -1 !important;
        grid-row:3 !important;
    }

    body header .smart-search-simple{
        grid-column:1 / -1 !important;
        grid-row:2 !important;
        width:100% !important;
        margin:0 !important;
    }

    body.page-home header .smart-search-simple.is-sticky{
        width:calc(100% - 20px) !important;
        margin:0 !important;
        padding:8px !important;
    }

    .smart-search-panel{
        grid-template-columns:1fr 1fr;
    }

    .smart-search-age-row{
        grid-column:1 / 2;
    }

    .smart-search-submit{
        align-self:end;
    }
}

@media screen and (max-width:560px){
    header .smart-search-simple{
        padding:10px;
        box-shadow:0 6px 18px rgba(16,24,40,.06);
    }

    .smart-search-location-input,
    .smart-search-field input,
    .smart-search-field select{
        height:44px;
        min-height:44px;
        font-size:13px;
    }

    .smart-search-simple-submit{
        top:4px;
    }

    .smart-search-listing{
        top:4px;
        margin:10px 0 16px;
        padding:10px;
    }

    .smart-search-listing .smart-search-panel{
        max-height:calc(100vh - 96px);
        overflow-y:auto;
        overscroll-behavior:contain;
    }

    .smart-search-active-tag{
        max-width:145px;
    }

    .smart-search-active-tag:nth-of-type(n+3){
        display:none;
    }

    .smart-search-panel{
        grid-template-columns:1fr;
        gap:10px;
    }

    .smart-search-age-row{
        grid-column:1;
    }

    .smart-search-submit{
        width:100%;
    }
}
