.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}
* html .clearfix             { zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */

/**
 * Listings Archive View
 */

#rel-archive-view * {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#rel-archive-view.grid_size_3 .listing
{
    display: block;
    float: left;
    width: 33.333%;
    margin-bottom: 2em;
}

#rel-archive-view.grid_size_4 .listing
{
    display: block;
    float: left;
    width: 25%;
}

#rel-archive-view.grid_size_3 .listing:nth-child(3n+3):before,
#rel-archive-view.grid_size_4 .listing:nth-child(4n+4):after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

#rel-archive-view.rel_grid h1 {
    font-size: 1em;
    font-weight: normal;
    line-height: normal;
    padding: 0;
    margin: 0 0 0.5em 0;
}

#rel-archive-view.rel_grid .rel-photo-wrap {
    display: block;
    text-align: center;
    width: 100%;
    height: auto;
    margin: 0 0 10px;
    overflow: hidden;
    float: none;
}

#rel-archive-view.rel_grid .listing {
    padding: 10px;
    margin-bottom: 0;
}

#rel-archive-view .listing {
    margin-bottom: 2em;
}

#rel-archive-view.rel_grid .rel-photo-wrap img {
    width: 100%;
    margin: 0;
}

#rel-archive-view.rel_grid .rel-main-details {
    width: 100%;
}

#rel-archive-view.rel_grid h1 span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/**
 * Single Listing View
 */

.rel-single-listing * {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

    .rel-single-listing .idx-details-table {
        width: 100%;
        margin-bottom: 2em;
    }

    .rel-single-listing .idx-details-table .odd {
        background-color: #FFFFFF;
    }

    .rel-single-listing .idx-details-table .even,
    .rel-single-listing .idx-details-table th {
        background-color: #F7F7F7;
    }

    .rel-single-listing .idx-filed-label {
        width: 40%;
    }

.rel-main-info {
    margin-bottom: 1.6em;
    width: 100%;
}

    .rel-photo-wrap,
    .rel-main-details {
        float: left;
        padding: 0;
        margin: 0;
    }

    .rel-photo-wrap {
        width: 55%;
    }

    .rel-photo-wrap img {
        margin-right: 10%;
        width: 90%;
        height: auto;
    }

    .rel-main-details {
        width: 45%;
    }

        .rel-main-details h3 {
            display: none;
        }


.listing-meta-field {
    line-height: 2em;
}

    .listing-meta-field:nth-child(even) {
        background: #f7f7f7;
    }

    .listing-meta-field .field-label {
        display: inline-block;
        width: 46%;
        padding: 0 2%;
    }

.rel-button-wrapper {
    padding: 1.6em auto;
}

.rel-leadgen-form {
    background: #f7f7f7;
    padding: 0.5em 1em;
}

    .rel-leadgen-form label {
        width: 25%;
        display: inline-block;
        vertical-align: baseline;
    }

    .rel-leadgen-form .submit-wrapper {
        text-align: center;
    }

/* Widgets */
.rel-property-search-widget select {
    width: 100%;
    margin: 0 0 1em 0;
}

.rel-search-button-wrapper {
    text-align: center;
}
    .rel-search-button {
        margin: 0;
    }

.rel-featured-listings-widget,
.rel-featured-listings-widget * {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* .rel-featured-listings-widget should not have margins nor paddings
/* otherwise bxslider will be uneven. */

.rel-featured-listings-widget .rel-listing-wrap {
    margin-bottom: 1em;
    padding: 10px 10px 0;
}

    .rel-featured-listings-widget .rel-photo-wrap {
        width: 100%;
        height: auto;
        text-align: center;
    }
        .rel-featured-listings-widget .rel-photo-wrap img {
            margin: 0;
            padding: 0;
            width: 100%;
            height: auto;
            overflow: hidden;
        }

    .rel-featured-listings-widget.one {
        width: 100%;
    }
    .rel-featured-listings-widget.one-half {
        width: 50%;
        display: inline-block;
        vertical-align: top;
    }
    .rel-featured-listings-widget.one-third {
        width: 33%;
        display: inline-block;
        vertical-align: top;
    }
    .rel-featured-listings-widget.one-fourth {
        width: 25%;
        display: inline-block;
        vertical-align: top;
    }

    .rel-featured-listings-widget.one-fifth {
        width: 20%;
        display: inline-block;
        vertical-align: top;
    }

    .rel-featured-listings-widget .row {
        line-height: 1.6em;
    }

    .rel-featured-listings-widget .label,
    .rel-featured-listings-widget .cell {
        display: inline-block;
        vertical-align: baseline;
        width: 50%;
    }

    .rel-featured-listings-widget .cell {
        text-align: right;
    }

    .rel-featured-listings-widget h4 {
        margin: 0 0 10px;
    }

    .rel-featured-listings-widget .line1,
    .rel-featured-listings-widget .line2 {
        display: block;
        text-align: center;
        overflow: hidden;
        white-space: nowrap;
        -o-text-overflow: ellipsis;
        -ms-text-overflow: ellipsis;
        text-overflow: ellipsis;
    }

    .rel-featured-listings-widget .rel-button-wrapper {
        margin: 10px 0;
    }

.featured-listings .bx-prev,
.featured-listings .bx-next {
    display: none;
}

.featured-listings:hover .bx-prev,
.featured-listings:hover .bx-next {
    display: block;
}

.featured-listings .bx-prev {
    left: 0;
}

.featured-listings .bx-next {
    right: 0;
}

.rel-single-listing>div{
    margin-bottom: 2em;
}

#video_code {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0;
}

#video_code iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#rel-photo-gallery {
    height: 122px;
    width: 100%;
    margin-top: 0;
}

    #rel-photo-gallery .jTscrollerNextButton,
    #rel-photo-gallery .jTscrollerPrevButton {
        top: 33%;
    }

    #rel-photo-gallery .jTscrollerNextButton {
        right: 0;
    }

/* Helper Classes */

.aligncenter {
    text-align: center;
}

#map_canvas img {
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    padding:0;
    margin: 0;
    border: none;
    max-width: none;
    max-height: none;
}

