.front-listings {
    background: #fff;
}

.listing-hero {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 82px max(20px, calc((100% - var(--sg-container)) / 2)) 70px;
    color: #fff;
    background:
        linear-gradient(90deg,rgba(27,31,34,.94),rgba(27,31,34,.72)),
        url("../../images/hero-bg.jpg") center/cover;
}

.listing-hero-copy {
    width: min(720px,100%);
    height: auto;
}

.x-kicker {
    display: inline-block;
    color: var(--sg-orange);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.4px;
}

.listing-hero h1 {
    margin: 14px 0 16px;
    font-family: Georgia,"Times New Roman",serif;
    font-size: clamp(42px,5vw,64px);
    font-weight: 400;
    line-height: 1.08;
}

.listing-hero-copy p {
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,.72);
}

.listing-search {
    width: min(var(--sg-container),100%);
    min-height: 0;
    margin: 42px auto 0;
    padding: 20px;
    display: grid;
    grid-template-columns: .8fr 1fr 1fr 210px;
    align-items: end;
    gap: 14px;
    color: var(--sg-ink);
    background: #fff;
    box-shadow: var(--sg-shadow);
}

.listing-search label {
    display: grid;
    gap: 7px;
}

.listing-search label > span {
    color: #777;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.listing-search input,
.listing-search select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    color: #555;
    border: 1px solid #ddd;
    background: #fff;
    outline: none;
}

.listing-search input:focus,
.listing-search select:focus {
    border-color: var(--sg-orange);
}

.listing-search button {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff;
    border: 0;
    background: var(--sg-orange);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.listing-results-shell {
    width: min(var(--sg-container),calc(100% - 40px));
    height: auto;
    margin: 0 auto;
    padding: 85px 0 105px;
}

.listing-results-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.listing-results-toolbar span {
    color: var(--sg-orange);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.listing-results-toolbar h2 {
    margin: 6px 0 0;
    font-family: Georgia,serif;
    font-size: 42px;
    font-weight: 400;
}

.listing-results-toolbar > a {
    color: var(--sg-orange);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.listing-results-grid {
    height: auto;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 28px;
}

.listing-results-card {
    height: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--sg-line);
    background: #fff;
    transition: transform .25s ease,box-shadow .25s ease;
}

.listing-results-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sg-shadow);
}

.listing-results-media {
    position: relative;
    height: 255px;
    display: block;
    overflow: hidden;
    background: #eee;
}

.listing-results-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.listing-results-card:hover img { transform: scale(1.045); }

.listing-results-badge {
    position: absolute;
    left: 17px;
    top: 17px;
    padding: 5px 11px;
    color: #fff;
    background: var(--sg-orange);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.listing-results-badge-right {
    left: auto;
    right: 17px;
    background: #2e6b58;
}

.listing-results-body {
    flex: 1;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.listing-results-meta,
.listing-results-specs,
.listing-results-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.listing-results-meta {
    color: var(--sg-orange);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.listing-results-card h2 {
    margin: 10px 0;
    font-family: Georgia,serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
}

.listing-results-card h2 a:hover { color: var(--sg-orange); }

.listing-results-specs {
    justify-content: flex-start;
    color: #85898f;
    font-size: 12px;
}

.listing-results-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.listing-results-footer strong {
    color: var(--sg-orange);
    font-size: 17px;
}

.listing-results-footer a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff !important;
    background: var(--sg-orange);
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    transition: background .2s ease,transform .2s ease;
}

.listing-results-footer a:hover {
    color: #fff !important;
    background: var(--sg-orange-dark);
    transform: translateY(-2px);
}

.listing-results-empty {
    padding: 75px 25px;
    text-align: center;
    background: var(--sg-soft);
}

.listing-results-empty-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    color: #fff;
    background: var(--sg-orange);
}

.listing-results-empty h2 {
    margin: 0;
    font-family: Georgia,serif;
    font-weight: 400;
}

.listing-results-empty a {
    display: inline-flex;
    margin-top: 18px;
    padding: 12px 18px;
    color: #fff;
    background: var(--sg-orange);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 960px) {
    .listing-search { grid-template-columns: repeat(2,1fr); }
    .listing-results-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
    .listing-hero { padding: 60px 14px; }
    .listing-hero h1 { font-size: 42px; }
    .listing-search { grid-template-columns: 1fr; }
    .listing-results-shell { width: calc(100% - 28px); padding: 65px 0; }
    .listing-results-toolbar { align-items: flex-start; flex-direction: column; }
    .listing-results-toolbar h2 { font-size: 34px; }
    .listing-results-grid { grid-template-columns: 1fr; }
}
