/*
 Theme Name:     Realworks
 Theme URI:
 Description:    Realworks base theme
 Author:         Joost Koehoorn
 Author URI:
 Template:       uncode
 Version:        1.0.2
*/

@import url("../twentytwelve/style.css");

.residence-title {
    color: #242C66;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

.m30b {margin-bottom:30px;}

.contain {position:relative;}

/* Layout styles */
.site-content.archive {
    width: 100%;
    float: none;
}

.search-sidebar {
    width: 160px;
    float: left;
}

.search-content {
    margin-left: 180px;
    padding-bottom: 2em;
    position: relative;
}


/* Search Form styles */
.search-field {
    margin: 0 0 1em 0;
}

.search-field h4 {
    margin: 0 0 0.5em 0;
}

.search-field label {
    display: block;
    cursor: pointer;
}

/* Active search options are displayed slightly bolder */
.search-field label.active {
    font-weight: 600;
}

.search-field label.active.hidden {
    display: block !important;
}

/* Fade results without any results */
.search-field label[data-count="0"]:not(.active) {
    color: #777;
}

.search-field label span {
    color: #999;
    font-size: 90%;
}

.search-field select {
    width: 100%;
}

.search-field input[type=text] {
    width: 90%;
}

.search-field a {
    display: block;
    font-size: 90%;
    text-decoration: none;
}



/* Slider styling */
.search-field.has-slider .search-items {
    display: none;
}

.search-field .slider-values {
    font-size: 85%;
    margin-bottom: 1em;
    overflow: hidden;
}

.search-field .slider-values small {
    font-size: 100%;
    color: #999;
    display: none;
}

.search-field.tracking-min .slider-values .low small,
.search-field.tracking-max .slider-values .high small {
    display: inline;
}

.search-field .slider-values .low {
    float: left;
}

.search-field .slider-values .high {
    float: right;
}



/* Search field hide all non-selected items */
.search-field.hide-non-selected label {
    margin-bottom: 6px;
}

.search-field.hide-non-selected label.active {
    font-weight: normal;
}

.search-field.hide-non-selected input[type=checkbox] {
    display: none;
}

.search-field.hide-non-selected:not([data-selected="1"]) .clear-selected {
    display: none;
}

/* When a single item is selected, hide all other options */
.search-field.hide-non-selected[data-selected="1"] label:not(.active),
.search-field.hide-non-selected[data-selected="1"] .show-more-toggle {
    display: none !important;
}


/* Results Settings styles */
.search-settings {
    padding: 1em 0.5em;
    line-height: 22px;
}


.search-settings .display {
    float: right;
}

.search-settings .display li {
    float: left;
    padding: 0 0.5em;
}

.search-settings .display a {
    font-weight: bold;
    font-size: 90%;
    color: #999;
    text-decoration: none;
}
.search-settings .display a:hover {
    color: #000;
}

.search-content.list .display-list a,
.search-content.grid .display-grid a,
.search-content.map .display-map a {
    color: #000;
}


/* Search Results styles */
.search-content article {
    width: 100%;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

.search-content article .item {
    position: relative;
    margin: 0 0.5em 2em 0.5em;
    box-shadow: 0 0 4px 0 #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.search-content article h1 {
    clear: none;
}

.search-content article a {
    text-decoration: none;
}

.search-content article dl {
    margin: 0;
}

.search-content article dd {
    margin: 0;
}

@media screen and (min-width: 720px) {
    .search-content article dt {
        float: left;
        width: 100px;
        clear: right;
        text-align: right;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .search-content article dd {
        margin: 0 0 0 120px;
    }
}

.search-content article header {
    padding: 1em;
}

.search-content article a.overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.search-content article .thumbnail img {
    border-radius: 0;
}

.search-content article .entry-content {
    padding: 0 1em 1em 1em;
}

.search-content.list article .thumbnail {
    width: 40%;
    max-width: 300px;
    float: left;
}

.search-content.list article .item-content {
    margin-left: 40%;
}

.search-content.grid article .thumbnail img {
    width: 100%;
}

@media screen and (min-width: 960px) {
    .search-content.grid article:nth-child(3n+4) {
        clear: both;
    }

    .search-content.grid article {
        width: 33.333333%;
        float: left;
    }
}

@media screen and (min-width: 720px) and (max-width: 959px) {
    .search-content.grid article:nth-child(2n+3) {
        clear: both;
    }

    .search-content.grid article {
        width: 50%;
        float: left;
    }
}




/* Google Maps styles */

.search-content .search-map {
    margin: 0 0.5em 2em 0.5em;
}

#google-map, #google-streetview {
    width: 100%;
    height: 600px;
    border-radius: 4px;
    box-shadow: 0 0 4px 0 #999;
}

#google-map .gm-style-iw /* Info Windows */ a {
    font-size: 120%;
    font-weight: bold;
    text-decoration: none;
}

#google-map .gm-style-iw img {
    float: left;
}

#google-map .gm-style-iw .address {
    float: left;
    margin-left: 1em;
    min-width: 200px;
    line-height: 1.5;
}



/* View helpers */
.search-content .visible-grid,
.search-content .visible-list,
.search-content .visible-map,
.search-content.grid .hidden-grid,
.search-content.list .hidden-list,
.search-content.map .hidden-map {
    display: none;
}

.search-content.grid .visible-grid,
.search-content.list .visible-list,
.search-content.map .visible-map {
    display: block;
}



/* Loading View styles */
.search-load-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
}

.search-loading .search-load-overlay {
    display: block;
}

.search-loading .results-container {
    -webkit-filter: blur(2px);
    filter: blur(2px);
}

/* jQuery UI slider styles */
.ui-slider {
    position: relative;
    text-align: left;
    background: #ddd;
    height: 4px;
    margin: 0 4px;
}

.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    padding: 10px;
    width: 8px;
    height: 8px;
    top: -12px;
    margin-left: -14px;
    outline: none;
    cursor: default;
    -ms-touch-action: none;
    touch-action: none;
}

.ui-slider .ui-slider-handle span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background-color: #1b5e7e;
    box-shadow: 0 0 2px 2px #fff;
}

.ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    font-size: .7em;
    display: block;
    border: 0;
    background-position: 0 0;
    background-color: #21759b;
}

/* support: IE8 - See #6727 */
.ui-slider.ui-state-disabled .ui-slider-handle,
.ui-slider.ui-state-disabled .ui-slider-range {
    filter: inherit;
}

.ui-slider-horizontal .ui-slider-range {
    top: 0;
    height: 100%;
}

.ui-slider-horizontal .ui-slider-range-min {
    left: 0;
}

.ui-slider-horizontal .ui-slider-range-max {
    right: 0;
}



/* Responsive styles */
@media screen and (max-width: 719px) {
    /* Grid becomes list */
    .search-content.grid .hidden-list,
    .search-content.grid .visible-grid {
        display: none;
    }
    .search-content.grid .hidden-grid,
    .search-content.grid .visible-list {
        display: block;
    }
    .search-content.grid article .thumbnail {
        width: 40%;
        max-width: 300px;
        float: left;
    }

    .search-content.grid article .item-content {
        margin-left: 42%;
    }

    .search-settings .display-grid {
        display: none;
    }
    .search-content.grid .search-settings .display-list a {
        color: #000;
    }
}

@media screen and (max-width: 599px) {

    /* Change sliders back into dropdowns */
    .search-field.has-slider .slider-container {
        display: none;
    }
    .search-field.has-slider .search-items {
        display: block;
    }

    .search-sidebar {
        width: 100%;
        float: none;
    }

    .search-content {
        margin-left: 0;
    }

}

@media screen and (max-width: 400px) {
    .hidden-sm {
        display: none;
    }
}

@media screen and (max-width: 400px) {
    .search-content .results-container,
    .search-content .search-load-overlay {
        margin: 0 -1.714285714rem;
    }

    .search-content article {
        border-top: 1px solid #ddd;
    }

    .search-content article:last-child {
        border-bottom: 1px solid #ddd;
        margin-bottom: 1em;
    }

    .search-content article .item {
        position: relative;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        overflow: hidden;
    }

    .search-content article a.overlay {
        display: block;
    }

    .search-content.list article .thumbnail {
        width: 25%;
    }

    .search-content.list article .item-content {
        margin-left: 25%;
    }
}
