/*
Theme Name: Brian Dawson Auctions
Theme URI: http://almostanything.com.au/
Version: 2014
Author: The Almost Anything Web and Graphic Design Crew
Author URI: http://www.almostanything.com.au
*/

/*
 * RELATIVE EMS: target/context=result
 * So if you want a 24px heading, and the parent element is 15px, you need to specify 1.6ems
 * ie 24/15=1.6
 * Got it yet Stu?
 * Similarly with widths. Elements will be a %age or their parent.
 *
 * THIS IS A MOBILE-FIRST STYLESHEET
 * If you're styling for the desktop you are editing the WRONG FILE
 * Go back, do not pass Go, do not collect $200
 */

/* Resets, Globals */

* {
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
    box-sizing:border-box;
}

div,dl,dt,dd,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,select,button,p,table,blockquote,th,td {
    margin:0;
    padding:0;
    line-height:inherit;
}

    dl,ul,ol,h1,h2,h3,h4,h5,h6,form,fieldset,p,blockquote,table {
        margin:.8em 0;
    }

        h1,h2,h3,h4,h5,h6 {
            color:#151945;
            margin:1em 0 .35em;
            line-height:1.2;
        }

            header+h2,header+h3 {
                margin-top:0;
            }

            h1 {
                margin:0 0 .75em;
            }

table {
    border-collapse:collapse;
    border-spacing:0;
}

address,caption,cite,code,dfn,var {
    font-style:normal;
    font-weight:normal;
}
 
caption,th {
    text-align:left;
}

sup {
    vertical-align:text-top;
}

sub {
    vertical-align:text-bottom;
}

input,textarea,select {
    font-family:inherit;
    font-size:inherit;
    font-weight:inherit;
    padding:0 .4em;
}

/* Clearfix */
    
.clearfix:after, header>nav:after {
    content:"";
    display:block;
    clear:both;
}

/* End Clearfix */

/* Styles to support our JS scrollbar width calculations */
.scrollbar_measure {
    width: 100px;
    height: 100px;
    overflow: scroll;
    position: absolute;
    top: -9999px;
}

/***************************************************************
 *
 * Let's play Tetris!
 * This is basic grid, we're layout out the main semantic blocks
 *
 ***************************************************************/

html, body {
    margin:0;
    padding:0;
    line-height:1.6;
}

    html {
        font-family: Calibri, Tahoma, Arial, sans-serif;
        background: #1e8ece;
        min-height:100%;
    }

    body {
        color: #3c3d61;
        background:linear-gradient(to bottom, transparent 0, transparent 280px, rgba(255,255,255,0.8) 390px, #fff 484px, #fff 95%), url(images/bg_lowres.jpg) 65% 0 no-repeat;
        background-size:100%, 1000px;
        font-size: 100%; /* Baseline: this means that 1em = 16px */
    }

        @media only screen and (min-width:850px) {
            body {
                background-size:100%, 1450px;
            }
        }

.contentbox {
    width: 100%;
    margin: auto;
    font-size: 1.15em; /* 20px for normal paragraph text */
}

    .main_wrap {
        position: relative;
    }

article, .contentbox .sidebar {
    padding:0 3%;
}
    
    article {
        padding:1em 3%;
    }

/***************************************************************
 *
 * Header
 *
 ***************************************************************/

body>header {
    padding-top:3.125em;
    position:relative;
}

.site_info {
    padding:1.5em 3% 0;
}

    .site_title {
        text-indent:-9999px;
        width:0;
        height:0;
        margin:0;
    }

    .site_logo, .site_logo:hover, .site_logo img {
        display:block;
        background:none;
        position:relative;
        border:none;
        box-shadow:none;
    }

        .site_logo {
            float:left;
            width:450px;
            height:149px;
            margin:150px 0 -150px;
        }

        .site_logo img {
            max-width:none;
            margin:-300px -175px -150px;
        }

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

                .site_logo {
                    margin:-65px 0 -50px;
                    width:100%;
                    height:230px;
                    overflow:hidden;
                }

                    .site_logo img {
                        width:540px;
                        margin:-35px -118px 0;
                    }
            }

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

                .site_logo {
                    height:210px;
                }

                    .site_logo img {
                        width:520px;
                        margin:-35px -114px 0;
                    }
            }

/* Skip links */
#skiplinks {
    position: absolute;
    left: -9999px;
}

/***************************************************************
 *
 * Navigation
 *
 ***************************************************************/
/* Basic list reformatting */
.nav li {position:relative;}
.nav ul {position:absolute;top:-9999px;left:0;}
.nav ul, .nav ul li {display:block;}
.nav li:hover ul, .nav li.sfHover ul {top:1.95em;z-index:100;display:block;}
.nav li li:hover ul, .nav li li.sfHover ul {top:0; left:-250px;}

header .nav ul, header .nav li li {width: 250px;}

/* Basic list reformatting */
.nav, nav ul, nav li {margin:0;padding:0;list-style:none;}
    .nav, .nav ul, .nav li { float:left; text-align:left; }

/* Customise from here... */
header>nav {
    width:100%;
    position:absolute;
    z-index:20;
    top:0;
    padding:0 3%;
    line-height:2;
}

    @media only screen and (min-width:850px) {
        header>nav {
            height:2.5em;
            background:#1e8ece;
            box-shadow:0 0 70px rgba(15,18,51,0.5);
            border-bottom:.35em solid #1a7db6;
            text-align:right;
        }
    }

.nav a {
    color: #fff;
    background:#1e8ece;
    padding:0 .65em;
    font-size:1em;
    display:block;
    transition:all 70ms linear;
    text-decoration: none;
}

    .contains_submenu>a:after {
        content:" \2193";
    }
    
    .nav>li>a {
        border-left:1px solid rgba(255,255,255,0.25);
    }

    .nav li:first-child a {
        border-left:none;
    }

    .nav .sub-menu a {
        font-size:1em;
        padding:0 .92em;
    }

nav a:hover, nav a:active, .nav a:focus, nav .sfHover>a {
    background:#2d9cdb;
    color:#fff;
}

nav .current_page_item>a, .single-post nav .current_page_parent>a, nav .current_page_ancestor>a, nav .current-menu-item>a, nav .current-menu-parent>a, nav .current-menu-ancestor>a, nav .current-page-ancestor>a, .tax-section nav .menu-item-24>a, .single-cattlepress_item nav .menu-item-24>a, .single-property nav .menu-item-16>a, .single-_aa_event nav .menu-item-26>a {
    background:#151945;
    font-weight:bold;
    border-left-color:#151945;
    padding-bottom:.1em;
    padding-top:.1em;
}

.nav li ul {
    border-top:.28em solid #fff;
}

/* Displays a sub nav immediately after the main (if exists). Here for ease of use on mobile. Hide for desktop and add dropdowns if required */
.mobile_sub_menu {
    padding:1em 3%;
    overflow:hidden;
    background: #eee;
}

    .mobile_sub_menu h2 {
        margin:0;
    }

/* This is for the mobile nav icon */
#menu-icon {
    display: none;
}

.searchform {
    margin:0;
    font-size:.8em;
    line-height:1.75;
    max-width:37%;
    vertical-align: middle;
    display:inline-block;
}

    .searchform .s {
        border:none;
        width:7em;
    }

    .searchform .searchsubmit {
        padding:0 0.5em;
        margin-left:.5em;
        font-weight:bold;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;  
    }

    .searchform label {
        display:none;
    }

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

        .searchform {
            font-size:.9em;
            vertical-align: bottom;
        }

        .searchform .s {
            width:100%;
        }

        .searchform .searchsubmit {
            display:block;
            margin-left:0;
        }

    }

/* Squish menu down into a button */
@media only screen and (max-width: 850px) {

    body>header {
        padding-top:calc(10em + 3%);
    }

    #menu-icon {
        padding:0 1.25em;
        margin:0 3% 0 0;
        display: inline-block;
        text-align: center;
        line-height: 3;
        font-weight:bold;
        color:#fff;
        background:#1e8ece;
        box-shadow:0 0 70px rgba(15,18,51,0.5);
        border-bottom:.35em solid #1a7db6;
        border-radius:3px;
        cursor: pointer;
        max-width:60%;
    }

    #menu-icon:after{
        content: " \2193"; /* down arrow */
    }

        #menu-icon.active:after {
            content: " \2191"; /* down arrow */
        }


    header nav {
        margin:3% 0;
    }

    .nav .sub-menu {
        width:auto;
        position:static;
        background:#2d9cdb;
        border:none;
    }

    header .nav li li {
        width:auto;
    }

    .nav .sub-menu a {
        background:#2d9cdb;
        padding-left:1.75em;
    }

        nav .sub-menu .current_page_item>a, .single-post nav .sub-menu .current_page_parent>a, nav .sub-menu .current_page_ancestor>a, nav .sub-menu .current-menu-item>a, nav .sub-menu .current-menu-parent>a, nav .sub-menu .current-menu-ancestor>a, nav .sub-menu .current-page-ancestor>a {
            color:#fff;
            background:#151945;
        }

    .nav { box-shadow:0 0 20px rgba(0,0,0,0.3); }

    .nav, .nav ul, .nav li { float:none; }

}

/***************************************************************
 *
 * Main Content - <article>
 *
 ***************************************************************/

article h1 {
    font-size: 1.5em;
    color:#fff;
    background:#1e8ece;
    padding:.25em .45em;
    display:inline-block;
}

    @media only screen and (min-width:750px) {
        article h1 {
            font-size:2.2em;
        }
    }

    article header {
        margin:0 0 1.5em;
    }

        article header h1 {
            margin-bottom:0;
        }

article h2 {
    font-size: 1.5em;
}

    /* We have ems inside h2s in search.php */
    h2 em {
        font-weight:normal;
    }

article h3 {
    font-size: 1.15em;
}

.search_result h2, h3.post_type {
    display: inline-block;
    vertical-align: middle;
    font-size:1.25em;
    margin:0;
}

    h3.post_type {
        color: #fff;
        background: #1e8ece;
        padding: .25em .4em;
        margin-left:.5em;
        font-size:1em;
    }

        .post_type._aa_event {
            background:#fff;
            color:#1e8ece;
        }

        .post_type.cattlepress_item {
            background:#2d3591;
        }

article h4, article h5, article h6 {
    font-size: .9em;
}

/* Combined article headers */

.propertor_header, .archive .cattlepress_header, .single-event-title {
    background:#fff;
    background:rgba(255,255,255,0.8);
}

a {
    color:#1e8ece;
}

    a:hover {
        color:#151945;
    }

    .search_result a {
        padding:1em;
        margin-left:-1em;
        color:#3c3d61;
        display:block;
        position:relative;
        z-index:9;
        -moz-transition:all 100ms linear;
        -webkit-transition:all 100ms linear;
        transition:all 100ms linear;
        text-decoration:none;
    }

        .search_result:nth-child(even) a {
            background:rgba(0,0,0,0.04);
        }

        .search_result a:hover {
            background:#fff;
        }

body .wp-paginate .title {
    font-weight:bold;
    margin-right:.5em;
    display:inline-block;
}

body .wp-paginate {
    padding-top: 1em;
    margin-top: 2em;
    border-top: 1px solid rgba(0,0,0,0.1);
}

    body .wp-paginate a {
        color:#151945;
        background:#fef336;
        border:1px solid #fef336;
    }

        body .wp-paginate a:hover {
            color:#fff;
            background:#1e8ece;
            border:1px solid #1e8ece;
        }

        body .wp-paginate .current {
            color:#fff;
            background:#151945;
            border:1px solid #151945;
        }

/* Clear any floated images down near the bottom of posts */
.blog_navigation {
    clear:both;
}

/* the next 3 rules are for the way WP sets its image floats. On skinny screens we'll just centre them all */
article .alignleft, article .alignright, article .aligncenter {
    text-align:center;
    margin:1.5em auto;
    display:block;
}

img, .cattlepress_thumb, section.property-image {
    border: 10px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    max-width:100%;
    height:auto;
}

    .property-map-wrap img, .property-image-gallery img, .google-map-placeholder img, img.plain, section.property-image img {
        border:none;
        box-shadow:none;
    }

#canvasLoader {
    -moz-transition:all 100ms linear;
    -webkit-transition:all 100ms linear;
    transition:all 100ms linear;
    overflow:hidden;
    width:0;
}

#colorbox, #colorbox * {
    -moz-box-sizing:content-box;
    -webkit-box-sizing:content-box;
    box-sizing:content-box;
}

    #colorbox img {
        max-width:none;
    }
    
/* These 2 will make image captions look a bit like polaroids */
.wp-caption {
    background:#fff;
    overflow:hidden;
    max-width:100%;
}

    body.attachment .wp-caption {
        background:none;
        overflow: visible;
    }

    .wp-caption.alignnone {
        margin:1.5em 0;
    }

    .wp-caption>a, .wp-caption img {
        display:block;
    }

        .wp-caption img {
            width:100%;
        }

    .wp-caption-text {
        padding:0;
        margin:.75em 1em;
        line-height:1.4;
        font-size:.9em;
    }

        body.attachment .wp-caption-text {
            margin:.75em 0;
            font-weight:bold;
        }

        .gallery .wp-caption-text {
            margin:.25em 1em 0 0;
            font-size:.9em;
        }

.gallery .gallery-item {
    float: left;
    margin:0 0 3%;
}

.gallery a, .gallery img {
    display:block;
}

    .gallery img {
        max-width:95%;
        width:auto;
        height:auto;
    }

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

    .gallery dl.gallery-item {
        float: none;
        margin: 0 0 1em;
        width:auto;
        text-align:center;
    }

        .gallery a {
            display:inline-block;
        }

    .gallery .wp-caption-text {
        text-align: center;
        font-size:inherit;
    }

    .gallery br {
        display:none;
    }

}

/*
Image sizes depending on the number of columns
Based on Hybrid theme
*/

.gallery-columns-0 .gallery-item {
    width: 100%;
}
.gallery-columns-1 .gallery-item {
    width: 100%;
}
.gallery-columns-2 .gallery-item {
    width: 50%;
}
.gallery-columns-3 .gallery-item {
    width: 33.33%;
}
.gallery-columns-4 .gallery-item {
    width: 25%;
}
.gallery-columns-5 .gallery-item {
    width: 20%;
}
.gallery-columns-6 .gallery-item {
    width: 16.66%;
}
.gallery-columns-7 .gallery-item {
    width: 14.28%;
}

/* Callouts, pullquotes */
blockquote {
    position:relative;
    padding:0 0 0 2.3em;
    margin:1.5em 0;
}

blockquote:before, blockquote:after {
    content: "“";
    font-size: 5em;
    position: absolute;
    left: 0;
    top: .27em;
    color:#333;
}

blockquote:after {
    line-height:0;
    right:0;
    left:auto;
    top:auto;
    bottom:-.1em;
    color:#ddd;
    content:"”";
}

/* Tables */

table, th, td {
    border:none;
    border:1px solid #ddd;
    text-align:left;
    border-collapse:collapse;
}

    table {
        margin:1em 0;
    }

    td, th {
        line-height:1.3;
        padding:.4em .6em;
    }

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

        article table {
            border:none;
        }

        article tr, article td, article th {
            display:block;
            border:none;
        }

            article tr {
                margin:0 0 1em;
            }
            
    }

/* CTA Buttons */

.button, .event-content a {
    color: #151945;
    background: #fef336;
    border:none;
    cursor:pointer;
    font-weight:bold;
    padding: .5em .75em;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;  
    -moz-transition:all 150ms ease-in-out;
    -webkit-transition:all 150ms ease-in-out;
    transition:all 150ms ease-in-out;
}

    .button:hover, .event-content a:hover {
        padding-left:1em;
        background:#151945;
        color:#fff;
    }

/* Gravity Forms Style fixes */ 

.gform_wrapper form {
    margin-top:0;
}

article .gform_wrapper textarea, article .gform_wrapper input[type=text], article .gform_wrapper input[type=url], article .gform_wrapper input[type=email], article .gform_wrapper input[type=tel], article .gform_wrapper input[type=number], article .gform_wrapper input[type=password], article .gform_wrapper .ginput_complex label, article .gform_wrapper .gfield_time_hour label, article .gform_wrapper .gfield_time_minute label, article .gform_wrapper .gfield_date_month label, article .gform_wrapper .gfield_date_day label, article .gform_wrapper .gfield_date_year label, article .gform_wrapper .instruction {
    font-size:1em;
}

    article .gform_wrapper textarea, article .gform_wrapper input[type=text], article .gform_wrapper input[type=url], article .gform_wrapper input[type=email], article .gform_wrapper input[type=tel], article .gform_wrapper input[type=number], article .gform_wrapper input[type=password] {
        padding:.3em;
        font-size:.9em;
        max-width:100%;
    }

article .gform_wrapper .gform_footer {
    padding:0;
}

/***************************************************************
 *
 * Sidebar
 *
 ***************************************************************/

.sidebar {
    background:#eee;
}

.sidebar, .sidebar ul, .sidebar li {
    padding: 0;
    margin: 0;
    list-style: none;
    clear: both;
}

.sidebar li ul { /* a nested list, so this should actually be displayed as a list */
    padding-left: 7.142857142857%; /* 20/280=0.07142857142857 */
}

.sidebar li ul li {
    list-style: disc;
}

/***************************************************************
 *
 * News and/or blog
 *
 ***************************************************************/
.postdate, .postmetadata {
    font-size:0.8em;
    font-style:italic;
    margin:0;
}

.news_post_excerpt {
    line-height:1.7em;
    margin:0 0 2em;
}

.news_post_excerpt h2 {
    margin:0 0 .25em;
}


/***************************************************************
 *
 * Contact Page
 *
 ***************************************************************/

article .google-map-placeholder, article .slideshow_container {
    margin: 1em 0;
    border:10px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

/***************************************************************
 *
 * Homepage
 *
 ***************************************************************/

article .slideshow_container {
    overflow: hidden;
}

    article .slideshow_container img {
        max-width:100%;
    }

.home .wp-caption-text {
    font-size:.75em;
}

.cta {
    margin: 0 0 1em;
}

article.home {
    display: -webkit-box; /* Initiate flexbox */
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -moz-box-orient:vertical; /* Establishes the direction of reordering - we want the y-axis */
    -webkit-box-orient:vertical;
    -ms-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.cta4.featured_property {
    -moz-box-ordinal-group: 1;
    -webkit-box-ordinal-group:1;
    -ms-flex-order:1;
    -webkit-order: 1;
    order: 1;
}

.homepage_content {
    -moz-box-ordinal-group: 0;
    -webkit-box-ordinal-group:0;
    -ms-flex-order:0;
    -webkit-order: 0;
    order: 0;
    font-size:1.2em;
    line-height:1.5;
}

.cta a {
    display:block;
    color:#1e8ece;
    background: #fff;
    font-weight:bold;
    font-size:1.3em;
    text-decoration:none;
    padding:.75em 1em;
    transition:all 100ms linear;
}

    .cta1 a, .cta2 a, .cta3 a {
        box-shadow:0 0 15px rgba(0,0,0,0.1);
    }

    .cta1 a:hover, .cta2 a:hover, .cta3 a:hover {
        outline:5px solid #1e8ece;
    }

    .cta4.featured_property a {
        font-size:1em;
        padding:0;
        background:none;
    }

        .cta4.featured_property a {
            color:#151945;
        }

    @media only screen and (min-width:400px) {
        .cta a {
            background: #fff url(images/icons.png) no-repeat;
            padding:1em .5em 1em 95px;
        }

            .cta1 a {
                background-position:17px 44%;
            }

            .cta2 a {
                background-position:18px -24%;
            }

            .cta3 a {
                background-position:17px 115%;
            }

    }

.cta p {
    display:inline;
}

/***************************************************************
 *
 * Footer
 *
 ***************************************************************/

footer {
    box-shadow:0 -20px 40px rgba(20,25,69,0.12);
    border-top: .35em solid #1a7db6;
    color:#fff;
    clear: both;
    font-size:.85em;

    /* Floating, so body doesn't stretch to contain and engulf footer with a #fff bg */
    float:left;
    width:100%;
}

    footer .contentbox {
        padding:1em 3%;
    }

footer a, footer a:hover {
    color:#fef336;
    text-decoration:none;
}

    footer a:hover {
        color:#fff;
    }

section.credits {
    text-align:center;
}

footer p {
    margin:.5em 0;
}

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

    footer>nav, footer .vcard, section.credits {
        width: auto;
        float: none;
    }

}

/***************************************************************
 *
 * Propertor
 *
 ***************************************************************/

/* Property Search */

.propertor_header {
    margin-bottom:1em;
}

    .propertor_header h1 {
        display:block;
        float:left;
    }

.property-search {
    padding:1em;
    margin-left:10.6em;
}

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

        .property-search {
            margin:0;
            clear:both;
        }

    }

    .property-search h2 {
        margin:0;
    }

    .property-search .clear-search.clear-search {
        margin:1.5em 0 0;
        display:block;
        float:left;
    }

    .property-search #canvasLoader {
        float:right;
        margin:1.2em 1em 0 0;
    }

        .property-search.now_loading #canvasLoader {
            width:24px;
        }

        .property-search .button {
            display:block;
            float:right;
            margin-top:1em;
            -moz-transition:all 150ms ease-in-out;
            -webkit-transition:all 150ms ease-in-out;
            transition:all 150ms ease-in-out;
        }

            .property-search .button:hover {
                padding-right:1.5em;
                text-align:right;
            }

/* Property Results */

.propertor-pagination.propertor-pagination {
    padding:0;
    background:none;
}

.propertor-pagination.propertor-pagination a {
    color:#1e8ece;
}
    
    .propertor-pagination.propertor-pagination a:hover {
        color:#1e8ece;
        background:#fff;
    }

    a.propertor-pagination-current.propertor-pagination-current, a.propertor-pagination-current.propertor-pagination-current:hover {
        color:#fff;
        background:#1e8ece;
        border-color:#1e8ece;
    }

.property-results.property-results li {
    border:none;
    padding:1em 0;
}

@media only screen and (min-width:750px) {

    .property-meta.property-meta {
        width:200px;
    }

    .property-details.property-details {
        padding-left:450px;
    }

}

/* Featured Property Widget/Function */

.featured-property-title {
    margin:0 0 .5em;
}

.featured_property .property-image, .featured_property .property-meta, .featured_property .property-details {
    margin:0;
    padding:0;
    clear:both;
    width:auto;
    float:none;
}

    .featured_property .property-meta {
        padding:1em 0 0;
    }

.featured_property .property-details * {
    display:none;
}

    .featured_property .property-details .button {
        display: block;
        float:none;
        margin: 1em 0 0;
    }

/* Property Single Template */

.image-list.image-list.slick-slider {
    margin:0;
}

.property-content.property-content {
    width:50%;
}

    @media only screen and (max-width:1000px) {
        .property-content.property-content {
            width:100%;
        }
    }

dt.property-feature-title {
    background-image:url(images/property-features-sprite.png);
}

.single-property .property-features.property-features {
    top:10px;
    left:10px;
}

.property-map-wrap {
    border: 10px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    background: #fff;
}

.property-image-gallery {
    border: 10px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    background:#fff;
}