
/* resets */
* {
    box-sizing: border-box;
}
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
ol, ul {
    list-style: none;
}


/**** misc. ****/
html, body {
    background: #fff;
}
body {
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3em;
    text-align: left;
    color: #2b2b2b;
}
a, a:hover {
    font-family: inherit;
    color: inherit;
    text-decoration: none;
}
img, a img {
    border: none;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}
strong {
    font-weight: 600;
}


/* buttons */
.button {
    display: inline-block;
    padding: 10px 18px;
    border: none;
    border-radius: 50px;
    background: #d92228;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
    transition: all 0.5s;
    outline: none;
}
.button:active, .button:focus, .button:hover {
    color: #fff;
}
.button:hover {
    background: #b90208;
    text-decoration: none;
}
.button:focus {
    outline: solid 2px #d92228;
}
.secondary.button {
    padding: 8px 12px;
    background: #fff;
    font-weight: 500;
    color: #111;
}
.secondary.button:hover,
.secondary.button:focus,
.inner:hover .secondary.button {
    background: #d92228;
    color: #fff;
}


/**** global container ****/
#outer {
    position: relative;
    margin: 0 auto;
    padding: 8px 12px;
    border: solid 1px #ccc;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    text-align: left;
    line-height: 1.2;
    max-width: 830px;
    height: 230px;
    max-height: 230px;
    overflow: hidden;
    --listing-an-length: 0.6s;
}


/**** intro tile ****/
.tile {
    position: relative;
    border-radius: 10px;
}
p {
    margin: 10px 0;
}
.intro {
    position: static;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    text-align: center;
    width: 100%;
    max-width: 420px;
    z-index: 9;
    transition: all 0.6s;
}
.heading {
    font-size: 24px;
    font-weight: 700;
}
.desc {
    margin: 14px auto 16px;
    font-size: 14px;
}
.logo {
    position: absolute;
    right: 12px;
    bottom: 12px;
    margin: 0;
}
.logo img {
    width: 140px;
}
.intro .disclaimer {
    position: absolute;
    left: 12px;
    bottom: 12px;
    margin: 0;
    font-size: 9px;
    color: #aaa;
}

.form-bar {
    position: relative;
    margin: 16px auto 18px;
}
.form-bar .text-box {
    display: block;
    padding: 12px 54px 12px 15px;
    border: solid 1px #888;
    border-radius: 80px;
    font: inherit;
    font-size: 15px;
    width: 100%;
    transition: all 0.4s;
}
.form-bar .text-box:focus {
    border-color: #000;
    outline: none;
}
.form-bar .button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    padding: 8px;
    background: #2b2b2b;
    text-align: center;
    width: auto;
    height: calc(100% - 8px);
    aspect-ratio: 1 / 1;
}
.form-bar .button:hover {
    background: #d92228;
}
.form-bar .button:disabled {
    background: #bbb;
}
.form-bar .button svg {
    width: 16px;
    height: 16px;
}

.form-bar .error {
    position: absolute;
    top: calc(100% + 4px);
    left: 12px;
    font-size: 0.85em;
    color: #d92228;
    opacity: 0;
    transition: all 0.4s;
}
.form-bar .error.active {
    opacity: 1;
}

.ui-widget {
    font: inherit !important;
    font-size: 15px !important;
}
.ui-menu-item > * {
    border-radius: 0 !important;
}
.ui-state-focus, .ui-menu .ui-state-active {
    margin: 0 !important;
    border: none !important;
    background: #eee !important;
}
.ui-menu .ui-menu-item-wrapper {
    padding: 5px 10px !important;
}
.ui-menu .ui-menu-item a {
    padding: 4px 8px !important;
}


/**** listings ****/
.listings {
    display: block;
    position: relative;
    margin: 0;
    width: 0;
    transition: all 0.6s;
    opacity: 0;
}
.listing {
    width: calc(50% - 5px);
    overflow: hidden;
}
.listing > .inner {
    position: relative;
    display: block;
    border-radius: 10px;
    background: #444;
    font-family: 'Galano Grotesque Alt', Helvetica, sans-serif;
    color: #fff;
    height: 188px;
    overflow: hidden;
}
.listing > .inner > * {
    position: absolute;
    z-index: 2;
}
.listing > .inner::before {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    width: 100%;
    height: 65%;
    content: "";
    z-index: 2;
}
.listing .bg {
    left: 0;
    top: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.listing .bg.expanded {
    margin-top: -10%;
    height: 120%;
}
.listing .info {
    left: 14px;
    bottom: 12px;
    font-size: 10px;
}
.listing p {
    margin: 6px 0 0;
}
.listing .for-sale::before,
.listing .info span {
    display: inline-block;
}
.listing .for-sale::before {
    margin: -2px 6px 0 0;
    border-radius: 50px;
    background: #0A801F;
    width: 8px;
    height: 8px;
    vertical-align: middle;
    content: "";
}
.listing .price {
    font-size: 17px;
    font-weight: 700;
}
.listing .button {
    right: 12px;
    bottom: 12px;
    font-size: 12px;
}
.meta span {
    margin: 0 6px 0 0;
}
.meta span:last-child {
    margin: 0;
}
.meta strong {
    font-weight: 600;
}

.prev, .next {
    position: absolute;
    left: 6px;
    top: 50%;
    margin-top: -22px;
    border: none;
    background: transparent;
    z-index: 3;
    transition: all 0.4s;
    opacity: 0;
}
.next {
    left: auto;
    right: 6px;
}
.prev::before, .next::before {
    display: inline-block;
    border-left: solid 3px;
    border-bottom: solid 3px;
    color: #ddd;
    width: 15px;
    height: 15px;
    transform: rotate(45deg);
    content: "";
}
.next::before {
    transform: rotate(-135deg);
}
.prev:hover, .next:hover {
    transform: scale(1.2);
}

.tns-ovh {
    overflow: hidden;
}
.listing.tns-item .inner {
    transform: scale(0.85);
    transition: all 0.5s;
}
.listing.tns-item.tns-slide-active .inner {
    transform: scale(1);
}


#outer {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}
.show-listings .intro {
    padding: 2px 10px 0 0;
    width: 40%;
}
.show-listings .intro .heading {
    margin: 0 0 10px;
    font-size: 21px;
}
.show-listings .intro .logo,
.show-listings .intro .disclaimer {
    position: static;
}
.show-listings .intro .desc {
    max-width: 200px;
}
.show-listings .intro .disclaimer {
    margin: 20px 0 0;
    font-size: 8px;
}
.show-listings .listings {
    display: block;
    width: 60%;
    opacity: 1;
}
.show-listings .prev,
.show-listings .next {
    opacity: 1;
}

#see_more {
    display: none;
    position: absolute;
    right: 12px;
    bottom: 8px;
    text-decoration: none;
    color: #000;
    transition: all 0.4s;
}
.show-listings #see_more {
    display: block;
}
#see_more:hover {
    color: #d92228;
}
#see_more::after {
    display: inline-block;
    margin: -2px 0 0 8px;
    border-right: solid 2px;
    border-bottom: solid 2px;
    vertical-align: middle;
    width: 6px;
    height: 6px;
    transform: rotate(-45deg);
    content: " ";
}


/**** loading ****/
.loading {
    position: relative;
}
.loading::before,
.loading::after {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.85);
    width: 100%;
    height: 100%;
    z-index: 9;
    content: "";
}
.loading::after {
    left: 50%;
    top: 50%;
    box-sizing: border-box;
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 4px solid #999;
    border-radius: 50%;
    border-color: #999 #999 transparent transparent;
    background: transparent;
    animation: loading-icon 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    z-index: 9;
    content: "";
}
@keyframes loading-icon {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}



/* intro animations */
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fade-in-2 {
    0%, 33% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fade-in-3 {
    0%, 50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fade-in-4 {
    0%, 60% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.intro > *:not(.link) {
    opacity: 0;
}
.visible .intro > * {
    opacity: 1;
}
.visible .intro .heading {
    animation: 0.75s fade-in 1;
}
.visible .intro .desc {
    animation: 0.75s fade-in-2 1;
}
.visible .intro .cta-row {
    animation: 1s fade-in-3 1;
}
.visible .intro .logo {
    animation: 1.25s fade-in-4 1;
}




/* responsive */

@media (max-width: 689.9px) {
    .show-listings .intro,
    .show-listings .listings {
        width: calc(50% - 5px);
    }
}

@media (max-width: 550px) {
    .intro .heading {
        margin: 0 0 10px;
        font-size: 21px;
    }
    .intro .logo,
    .intro .disclaimer {
        position: static;
    }
    .intro .desc {
        max-width: 200px;
    }
    .intro .disclaimer {
        margin: 20px 0 0;
        font-size: 8px;
    }
}

@media (max-width: 500px) {
    #outer {
        max-width: 400px;
        flex-wrap: wrap;
    }
    .show-listings .intro {
        display: inline;
        margin: 0;
        padding: 0;
        font-size: 0;
        line-height: 0;
        width: 0;
        height: 0;
        overflow: hidden;
    }
    .show-listings .intro * {
        display: none;
    }
    .show-listings .listings {
        width: 100%;
    }
}


