﻿.row {
    text-align: center;
}

.listings {
    margin-left: -15px;
    margin-right: -15px;
}

.listing-container {
    position: relative;
    float: left;
    width: 33.333333%;
    color: #333;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}

.listing {
    position: relative;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background-color: #fff;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.25s;
}

    .listing:hover {
        -webkit-box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.12);
        box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.12);
    }


        .listing:hover .listing-image .text::after {
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
        }

.listing-clickable,
.text-clickable {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 46px;
    z-index: 4;
}

.listing-image {
    position: relative;
    line-height: 0;
    z-index: 2;
}

    .listing-image img {
        width: 100%;
        -webkit-transition: all 1s ease;
        -moz-transition: all 1s ease;
        -o-transition: all 1s ease;
        -ms-transition: all 1s ease;
        transition: all 1s ease;
        transform: scale(1.05);
        -webkit-transform: scale(1.05);
    }

    .listing:hover .listing-image img {
        transform: scale(1);
        -webkit-transform: scale(1);
    }

    .listing-image .background {
        background-size: cover;
        background-position: center center;
        padding-bottom: 75%;
    }

    .listing-image .text {
        position: absolute;
        top: 0;
        height: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 20px;
        font-size: 14px;
        line-height: 1.7;
        color: #888;
        background-color: rgba(255, 255, 255, 0.9);
        transition: all 0.3s;
        opacity: 0;
        z-index: 1;
        overflow: hidden;
    }

        .listing-image .text a.view-link {
            padding-left: 5px;
            color: #f00;
        }

        .listing-image .text::after {
            position: absolute;
            opacity: 0.5;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: #f00;
            content: '';
        }

    .listing-image .title {
        position: relative;
        font-size: 15px;
        margin-bottom: 15px;
        opacity: 1;
        color: #37424b;
        padding-bottom: 10px;
    }

        .listing-image .title::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            margin: 0 auto;
            border-bottom: 1px solid #e4e4e4;
        }

/*Listing Shine*/
.listing-shine {
    overflow: hidden;
}

.listing-shine:after {
  /*content: "";
  position: absolute;
  top: -110%;
  left: -350%;
  width: 200%;
  height: 200%;
  opacity: 0;
  transform: rotate(0deg);
  
  background: rgba(255, 255, 255, 0.3);
  background: linear-gradient(
    to right, 
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.2) 77%,
    rgba(255, 255, 255, 0.5) 92%,
    rgba(255, 255, 255, 0.3) 100%
  );*/
}

/* Hover state - trigger effect */

.listing-shine:hover:after {
  opacity: 1;
  top: -30%;
  left: -30%;
  transition-property: left, top, opacity;
  transition-duration: 1s, 1s, 0.15s;
  transition-timing-function: ease;
}

/* Active state */

.listing-shine:active:after {
  opacity: 0;
}





.listing .status {
    width: auto;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    letter-spacing: 0.4px;
    padding: 0 1em;
    color: #fff;
    font-size: 0.8em;
    line-height: 2.5;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    background-color: #ff0000;
    z-index: 2;
}

.listing-information {
    position: relative;
    color: #888;
    background-color: #fff;
    z-index: 3;
}

.show-info {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    z-index: 1;
    color: #f00;
    padding-left: 20px;
    padding-bottom: 20px;
    display: none;
}

.show-toggle.text {
    opacity: 1;
}

.listing-content {
    position: relative;
    float: left;
    width: 55%;
    width: 100%;
    background-color: #fff;
    min-height: 115px;
}

.listing-title,
.listing-address-suburb,
.listing-address-street,
.listing-price {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-title {
    color: #37424b;
    padding: 15px;
    padding-bottom: 12px;
}

    .listing-title.featured {
        background-color: #5bbad5;
        color: #FFF;
    }


.listing-container h3 {
    font-size: 16px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    color: #37424b;
}

.listing-container h4 {
    color: #37424b;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    font-weight: normal;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 0;
    opacity: 0.7;
}

.listing-title.featured h4 {
    color: #c6ebf0;
}

.listing-address-suburb {
    padding: 0 20px;
    margin-bottom: 10px;
}

.listing-address-street {
    padding: 0 20px;
}

.listing-price {
    padding: 0 15px;
    border-top: 1px solid #f6f6f6;
    line-height: 50px;
    text-align: right;
}

/* Meta */
.listing-meta {
    font-size: 0.9em;
    color: #ff0000;
}

    .listing-meta > div {
        display: inline-block;
    }

.meta-data {
    display: inline-block;
    font-size: 13px;
}

    .meta-data:after {
        content: "|";
    }

.listing-meta div:last-of-type .meta-data:after {
    content: "";
}

/* Inspections */
.inspection-time {
    padding: 10px;
    font-size: 16px;
    color: #fff;
    background-color: #000000;
    margin-top: 20px;
    margin-left: -10px;
    margin-right: -10px;
    margin-bottom: -10px;
}

.inspection-day {
    display: none;
    position: absolute;
    background-color: #f00;
    padding: 10px;
    top: 0;
    left: 0;
    color: #fff;
    font-size: 16px;
}

@media only screen and (min-width:981px) {
    .listing-image {
        min-height: 279px;
    }
}

@media only screen and (min-width: 1200px) {
    .listing-image:hover .text {
        opacity: 1;
    }
}

@media only screen and (max-width: 1199px) {
    .listing-container {
        width: 50%;
    }


    .show-info {
        display: block;
    }
}

@media only screen and (min-width: 768px) {
    .listing-image img {
        min-height: 277px;
    }
}

@media only screen and (max-width: 767px) {
    .listings-loading {
        left: 0;
        right: 0;
        bottom: 50px;
        text-align: center;
    }

    .listing-container {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media only screen and (max-width: 400px) {
    .listing-title {
        padding: 15px;
        min-height: initial;
    }

    .listing-container h4 {
        font-size: 14px;
    }

    .listing-meta {
        min-height: initial;
        width: 100%;
    }

    .inspection-time {
        text-align: right;
    }

    .franchise-image {
        width: 100%;
        padding-left: 50%;
    }
}


.listing-image:before {
    position: absolute;
    content: " ";
    width: 100%;
    top: 0;
    display: block;
    background-image: url(/assets/images/flames.gif);
    background-position: center bottom;
    background-size: 100% auto;
    background-repeat: no-repeat;
    bottom: 0;
    transform: translateY(100%);
    transition: all 1.25s;
    z-index: 1;
    opacity: 0;
}

.listing:hover .listing-image:before {
    transform: translateY(15%);
    opacity: 1;
}

.listings {
    display: flex;
    flex-wrap: wrap;
}

.listing {
    min-height: 100%;
}

h3.listing-suburb {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 3px;
}

.listing-content {
    text-align: left;
    padding: 10px;
}

h4.listing-address {
    margin-bottom: 5px;
}

ul.listing-features-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    min-height: 26px;
}

li.listing-feature {
    padding: 5px;
    margin: 0 2.5px;
}

li.listing-feature:first-of-type {
    margin-left: 0;
}

li.listing-feature:before {
    display: inline;
    content: " ";
    width: 1em;
    font-family: 'fontawesome';
    margin-right: 5px;
}

li.listing-feature.listing-feature-land-area:after {
    content: " m²";
    display: inline;
}

h4.listing-method-of-sale {
    margin: 5px 0;
    font-weight: bold;
    font-size: 1.1em;
    color: #000;
}

h5.listing-sale-price {
    font-weight: normal;
    min-height: 1em;
}

li.listing-feature.listing-feature-beds:before {
    content: "\f236";
}

li.listing-feature.listing-feature-baths:before {
    content: "\f2cd";
}

li.listing-feature.listing-feature-cars:before {
    content: "\f1b9";
}

li.listing-feature.listing-feature-land-area:before {
    content: "\f0b2";
}

.listing-meta-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fafafa;
    padding: 10px;
    text-align: left;
    display: flex;
    z-index: 101;
}

.listing {
    margin-bottom: 46px;
}

.listing-meta-footer > a {
    display: inline-block;
    padding: 5px;
    color: #000;
}

.listing-meta-footer > a.listing-add-favourite.favourite {
    color: #f00;
}

.listing-information {
    min-height: 144px;
}