﻿#uppListings {
    position: relative;
}

.listing-container {
    position: relative;
    min-width: 255px;
    overflow: hidden;
    border: 1px solid #bbb;
    padding: 0;
    margin: 0;
    margin-bottom: 10px;
}

    .listing-container:last-child {
        margin-bottom: 0;
    }

.listing-throbber {
    position: absolute;
    top: 14px;
    left: 10px;
    z-index: 20;
}

.listing-clickable {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-decoration: none; /* Makes sure the link doesn't get underlined */
    z-index: 10; /* raises anchor tag above everything else in div */
    background-color: white; /*workaround to make clickable in IE */
    opacity: 0; /*workaround to make clickable in IE */
    filter: alpha(opacity=1); /*workaround to make clickable in IE */
}

.listing-header {
    line-height: 1.0em;
    font-weight: normal;
    border-top: none;
    font-size: 18px;
    padding: 12px 18px;
    background-color: #525453;
    color: #FFF;
}

    .listing-header a {
        color: #FFF;
        text-decoration: none;
    }

.listing-price {
    float: right;
}

.listing-address,
.listing-address-suburb {
    float: left;
}

.listing-address-street {
    float: left;
    clear: both;
    font-size: 12px;
}

.listing-body {
    position: relative;
    padding: 10px;
}

.listing-image {
    position: relative;
    float: left;
    width: 20%;
    line-height: 0;
}

    .listing-image a {
        text-decoration: none;
    }

    .listing-image img {
        max-width: 100%;
    }

.listing-overlay {
    position: absolute;
    top: 0;
    left: 0;
}

    .listing-overlay img {
        max-width: 100%;
    }

.listing-information {
    float: left;
    width: 80%;
    padding: 0 10px;
    overflow: hidden;
    font-size: 14px;
    padding-left: 20px;
    padding-top: 15px;
}

.listing-type {
    padding-right: 10px;
    font-size: 16px;
    font-weight: normal;
    overflow: hidden;
}

.listing-text {
    padding-right: 150px;
}

.listing-title {
    line-height: 18px;
    margin: 10px 0;
    font-weight: bold;
}

.listing-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.listing-moredetails a {
    display: block;
    margin-top: 10px;
    margin-left: 0;
}


/* Media Queries */
@media only screen and (min-width: 741px) {
    .listing-address-suburb {
        display: none;
    }

    .listing-address-street {
        display: none;
    }
}

@media only screen and (max-width: 740px) {
    .listing-clickable {
        display: block;
    }

    .listing-image {
        width: initial;
    }

        .listing-image img {
            min-height: 94px;
            min-width: 125px;
            max-width: 125px;
        }

    .listing-information {
        float: none;
        width: initial;
        padding-top: 10px;
    }

    .listing-address {
        display: none;
    }

    .listing-address-suburb {
        display: block;
    }

    .listing-address-street {
        display: block;
    }

    .listing-title {
        display: none;
    }

    .listing-description {
        display: none;
    }

    .listing-type {
        display: block;
        float: none;
        margin-bottom: 5px;
    }

    /* Paging */
    .page-controls input {
        height: 50px;
        margin: 10px 0;
    }

    .page-links input {
        display: none;
    }

    .page-first-link {
        display: none;
    }

    .page-last-link {
        display: none;
    }

    .page-back-links {
        width: 48%;
        float: left;
    }

    .page-forward-links {
        width: 48%;
        float: right;
    }

    .page-links {
        height: 32px;
    }

    .page-previous-link {
        width: 100%;
    }

    .page-next-link {
        width: 100%;
    }

    .page-top-links {
        display: none;
    }

    .page-top-count {
        display: block;
    }

    .page-top-page-data > .page-top-count {
        display: block;
    }
}

@media only screen and (max-width: 740px) {
    .listing-controls {
        position: relative;
        bottom: initial;
        right: initial;
        text-align: right;
    }

    .listing-moredetails a {
        display: inline-block;
    }
}
