.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;
}

.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);
}

.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-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-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;
    }

    .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-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%;
    }
}
