/*
	Red: #cb0839;
	Yellow: #fbb900;
*/

@import url(font-awesome.min.css);

@import 'https://fonts.googleapis.com/css?family=Bitter';
@import 'https://fonts.googleapis.com/css?family=Cabin';

@font-face {
    font-family: "Netto";
    src: url("../fonts/dKL17xyqAbjT.ttf");
}

* {
    box-sizing: border-box;
}

html, body {
    /*    height: 100%;*/
    height: 750px;
    margin: 0;
    padding: 0;
    font-family: "Cabin";
}

body {
    /*padding: 10px;*/
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bitter', serif;
    font-weight: bold;
}

.icon {
    display: inline-block;
    vertical-align: middle;
}

/* Page header */

#header {
    height: 110px;
    position: relative;
}

#search-input {
    font-family: "Cabin";
    width: 540px;
    max-width: calc(100% - 460px);
    border: 2px solid #e0e0e0;
    /*border-radius: 2px;*/
    font-size: 15px;
    border-radius: 4px;
    padding: 0 1em;
    height: 60px;
    vertical-align: middle;
    outline: 0;
}

    #search-input:focus {
        border: 2px solid #cb0839;
    }

#search-button {
    font-family: "Netto";
    height: 60px;
    width: 140px;
    background: #cb0839;
    color: white;
    border: none;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    vertical-align: middle;
    padding: 0 20px;
    margin-left: 10px;
    cursor: pointer;
    outline: 0;
}

    #search-button .icon {
        width: 24px;
        height: 24px;
        background: url('../images/mlcQGdr114SK.svg') no-repeat center / contain;
        margin-left: 10px;
        -moz-transform: scaleX(-1);
        -o-transform: scaleX(-1);
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
        filter: FlipH;
        -ms-filter: "FlipH";
    }

#search-nearme {
    display: none;
}

#search-options {
    width: 550px;
    min-width: 300px;
    max-width: calc(100% - 450px);
    margin-top: 5px;
    padding-right: 10px;
    color: #cb0839;
    font-weight: bold;
    font-size: 14px;
    vertical-align: middle;
    position: relative;
    z-: 150;
    background: #fff;
}

    #search-options input[type=checkbox] {
        display: none;
    }
        /* to hide the checkbox itself */
        #search-options input[type=checkbox] + label {
            line-height: 34px;
            cursor: pointer;
        }

        #search-options input[type=checkbox]:first-of-type + label {
            margin-right: 30px;
        }

        #search-options input[type=checkbox] + label::before {
            font-family: "FontAwesome";
            display: inline-block;
            font-size: 24px;
            font-weight: normal;
            vertical-align: top;
        }

        #search-options input[type=checkbox] + label::before {
            content: "\f10c";
        }
        /* unchecked icon */
        #search-options input[type=checkbox] + label::before {
            letter-spacing: 5px;
        }
        /* space between checkbox and label */

        #search-options input[type=checkbox]:checked + label::before {
            content: "\f058";
        }
        /* checked icon */
        #search-options input[type=checkbox]:checked + label::before {
            letter-spacing: 5px;
        }
/* allow space for check mark */

#favdetails {
    width: 300px;
    font-size: 14px;
    position: absolute;
    top: 0;
    left: 700px;
    padding-top: 5px;
    padding-left: 30px;
    margin-left: 20px;
    display: none;
    cursor: pointer;
}

    #favdetails .star {
        position: absolute;
        left: 0;
        font-size: 18px;
        font-weight: normal;
        color: #fbb900;
    }

    #favdetails .title {
        font-weight: bold;
        color: #cb0839;
    }



#advanced-search-toggle {
    display: inline-block;
    z-: 200;
    line-height: 34px;
    display: none;
    cursor: pointer;
    float: right;
    margin-right: 15px;
}

    #advanced-search-toggle .count {
        display: inline-block;
        width: 20px;
        height: 20px;
        border-radius: 20px;
        line-height: 20px;
        text-align: center;
        margin-right: 5px;
        background: #cb0839;
        color: #ffffff;
    }

#advanced-search-clear {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    color: #909090;
    font-weight: normal;
}

#advanced-search {
    display: none;
    width: 100%;
    background: white;
    padding: 4px 15px 12px 15px;
    max-height: 400px;
    overflow: auto;
}

    #advanced-search ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

.advanced-option {
    margin-bottom: 3px;
}

/* Page content (Map & Sidebar) */

#content {
    height: calc(100% - 155px);
    position: relative;
}

#map {
    height: 100%;
}

#static-map {
    display: none;
}

/* - Sidebar */
#sidebar {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    width: 360px;
    height: calc(100% - 50px);
    background: white;
    overflow: hidden;
    max-height: 100%;
    min-height: 50px;
}

/*#debug-marker {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: red;
    position: absolute;
    left: calc(50% + ((20px + 360px) / 2) - 2px);
    top: calc(50% - 2px);
}*/

#location-list {
    height: 100%;
    position: relative;
    left: 0;
}

    #location-list .header {
        height: 50px;
        line-height: 50px;
        margin: 0 20px;
        font-size: 14px;
        color: #b9b9b9;
        background: white;
        cursor: pointer;
        border-bottom: 1px solid #b9b9b9;
    }

        #location-list .header .caret {
            color: #cb0839;
            float: right;
            line-height: 50px;
            font-size: 26px;
            background: #fff;
        }

.header .maplist {
    height: 50px;
    float: right;
    vertical-align: middle;
    padding-left: 30px;
    background: transparent no-repeat left center / 24px;
    color: #cb0839;
    display: none;
    font-weight: bold;
}

    .header .maplist.list {
        background-image: url(../images/OJTNca6j5wJj.png);
    }

    .header .maplist.map {
        background-image: url(../images/1jtPN6iiYPji.png);
    }

    .header .maplist.list .listtext {
        display: inline;
    }

    .header .maplist.list .maptext {
        display: none;
    }

    .header .maplist.map .maptext {
        display: inline;
    }

    .header .maplist.map .listtext {
        display: none;
    }

#location-list .content {
    height: calc(100% - 80px);
    overflow-y: scroll;
    padding: 0;
    width: 100%;
}

#location-list .footer {
    height: 40px;
    width: 100%;
    line-height: 40px;
    padding: 0 20px;
    text-align: center;
    color: #cb0839;
    background: white;
    cursor: pointer;
    border-top: 1px solid #e6e6e6;
}

#location-detail {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
}

    #location-detail .header {
        height: 50px;
        line-height: 50px;
        margin: 0 20px;
        font-size: 14px;
        color: #cb0839;
        background: white;
        cursor: pointer;
        border-bottom: 1px solid #b9b9b9;
    }

        #location-detail .header .close {
            color: #b9b9b9;
            display: none;
            font-size: 20px;
            line-height: 50px;
        }

        #location-detail .header .back {
            display: inline-block;
        }

        #location-detail .header .caret {
            color: #cb0839;
            line-height: 50px;
            font-size: 26px;
            vertical-align: middle;
        }

    #location-detail .content {
        height: calc(100% - 50px);
        overflow-y: auto;
        padding: 0;
        width: 100%;
    }

    #location-detail .footer {
        height: 40px;
        width: 100%;
        line-height: 40px;
        padding: 0;
        text-align: right;
        color: #cb0839;
        background: white;
    }

#location-list .location-row {
    cursor: pointer;
}



/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-: 1; /* Add a z- if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
}

    /* Show the snackbar when clicking on a button (class added with JavaScript) */
    #snackbar.show {
        visibility: visible; /* Show the snackbar */
        /* Add animation: Take 0.5 seconds to fade in and out the snackbar. 
However, delay the fade out process for 2.5 seconds */
        -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

.location-row {
    padding: 0 20px;
    font-size: 15px;
    position: relative;
}

    .location-row .location-border {
        border-bottom: 1px solid #b9b9b9;
        padding: 12px 0;
    }

#location-detail .location-row .location-border {
    border-bottom: 0;
}
/*
#location-list .location-row .location-select {
    position: absolute;
    right: 20px;
    width: 40px;
    height: 40px;
    top: calc(50% - 20px);
}

    #location-list .location-row .location-select::after {
        position: absolute;
        font-family: FontAwesome;
        content: "\f054";
        right: 0;
        line-height: 40px;
        font-size: 20px;
        text-align: right;
        color: #cb0938;
        cursor: pointer;
    }
*/

.location-row.selected {
    background: #f0f0f0;
}

.location-row .location-title {
    width: calc(100% - 30px);
}

.location-title .location-name {
    color: #cb0839;
    font-family: "Bitter";
    font-size: 22px;
    font-weight: bold;
    display: inline;
    vertical-align: middle;
    margin-right: 5px;
}

.location-title .location-fav {
    display: none;
    color: #fbb900;
    vertical-align: middle;
    font-size: 18px;
}

.location-row.fav .location-title .location-fav {
    display: inline-block;
}

#location-detail .location-fav {
    cursor: pointer;
}

.location-title .location-favtoggle {
    display: inline-block;
    color: #b9b9b9;
    vertical-align: middle;
    font-size: 18px;
    cursor: pointer;
    margin-top: 1px;
}

.location-row.fav .location-title .location-favtoggle {
    display: none;
}

.location-row .location-icon {
    position: absolute;
    width: 27px;
    height: 27px;
    top: 12px;
    right: 20px;
    background: #f0f0f0 no-repeat center / contain;
    border-radius: 2px; /* temporary */
}

    .location-row .location-icon.heritage {
        background-color: transparent;
        background-image: url(../images/uZQO4iRx3Djh.png);
    }

    .location-row .location-icon.stgeorge {
        background-color: transparent;
        background-image: url(../images/ozXbz6iwM3QF.png);
    }

    .location-row .location-icon.westpac {
        background-color: transparent;
        background-image: url(../images/TLJLzkvltjr5.png);
    }

    .location-row .location-icon.bankofmelbourne {
        background-color: transparent;
        background-image: url(../images/vjsV35XsFh4S.png);
    }

    .location-row .location-icon.sabank {
        background-color: transparent;
        background-image: url(../images/CjSgNTXZEdAh.png);
    }

.location-row .location-address {
    margin: 10px 20px 10px 0;
    color: #606060;
}

.location-info .location-distance {
    display: inline;
    color: black;
    font-weight: bold;
}

.location-info .location-type {
    display: inline;
    color: white;
    background: black;
    border-radius: 2px;
    padding: 0 5px;
    font-size: 12px;
}

.location-row .subheading {
    color: #cb0839;
    font-family: "Bitter";
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 10px;
}

.location-row .location-image {
    width: 100%;
    height: auto;
    margin: 10px 0;
}

.location-row .location-hours {
    padding-bottom: 20px;
    vertical-align: bottom;
}

.location-row .location-services {
    border-top: 1px solid #b9b9b9;
    margin-bottom: 20px;
}

.location-row .location-services-list {
    overflow: hidden;
    max-height: 66px;
}

    .location-row .location-services-list .item {
        height: 22px;
    }

    .location-row .location-services-list .icon {
        color: #b9b9b9;
        vertical-align: middle;
        margin-right: 10px;
    }

    .location-row .location-services-list .text {
        vertical-align: middle;
    }

.location-row .location-services .more {
    text-align: right;
    color: #cb0839;
    font-size: 14px;
    cursor: pointer;
}

    .location-row .location-services .more .caret {
        font-size: 20px;
        vertical-align: middle;
    }

.location-row .button {
    background-color: #cb0839;
    background-repeat: no-repeat;
    background-position: 18px center;
    background-size: 24px 24px;
    color: white;
    font-weight: bold;
    height: 46px;
    line-height: 46px;
    width: 100%;
    margin-bottom: 2px;
    border-radius: 23px;
    padding-left: 54px;
    cursor: pointer;
}

    .location-row .button.call {
        background-image: url(../images/kbUq5cuAGoZe.png);
    }

    .location-row .button.directions {
        background-image: url(../images/CXJYAY1YrWDx.png);
    }

    .location-row .button.email {
        background-image: url(../images/av1vD1rhkao9.png);
    }

    .location-row .button.share {
        background-image: url(../images/5PXRginl1iLP.png);
    }

/* Some of James fixes here... */

/* Search bar dropdown items */
.pac-container {
    border: 1px solid #e6e6e6 !important;
    box-sizing: content-box;
}

    .pac-container .pac-item {
        line-height: 40px !important;
        padding-top: 5px;
        box-sizing: border-box;
    }

        .pac-container .pac-item .pac-item-marker {
            margin-top: 9px !important;
        }

/* Search button */
#search-button:hover {
    background-color: #AF0029;
}

#basic-search {
    padding-left: 15px;
}

#basic-search, #advanced-search-toggle {
    font-size: 15px;
}

/* Can't remember */
.hideOverflow {
    overflow: hidden !important;
}

/* Locaiton row hover */
#location-list .location-row:hover {
    background-color: #e6e6e6;
    cursor: pointer;
    border-top: 1px solid #e6e6e6;
    top: -1px;
    margin-bottom: -1px;
}

.location-row:hover .location-border {
    border-bottom: 1px solid #e6e6e6;
}

/* Hide selected row border */
.location-row.selected .location-border {
    border: none;
}

.location-border .button:hover {
    background-color: #AF0029;
}

/* Back to list label */
#label-back-to-list {
    height: 40px;
    line-height: 40px;
    vertical-align: middle;
    padding-left: 10px;
    margin-top: -1px;
    pointer-events: none;
}


/* Location list item arrow */
#location-list .location-row .location-select {
    position: absolute;
    right: 20px;
    width: 40px;
    height: 40px;
    top: calc(50% - 20px);
}



    #location-list .location-row .location-select img {
        float: right;
        margin-top: 8px;
    }

.roster-table-top-row {
    padding-bottom: 10px;
}

.roster {
    width: 100%;
}

/* Search input placeholder color */
#search-input::-webkit-input-placeholder {
    color: #bcbcbc;
}

#search-input::-moz-placeholder {
    color: #bcbcbc;
}

#search-input:-ms-input-placeholder {
    color: #bcbcbc;
}

#search-input:-moz-placeholder {
    color: #bcbcbc;
}


/* Prevent selecting text */
.noselect {
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

@media all and (-webkit-min-device-pixel-ratio : 1.5), all and (-o-min-device-pixel-ratio: 3/2), all and (min--moz-device-pixel-ratio: 1.5), all and (min-device-pixel-ratio: 1.5) {
    .location-row .button.call {
        background-image: url(../images/9m7bZA7LlA13.png);
    }

    .location-row .button.directions {
        background-image: url(../images/fkdRfpSVUsog.png);
    }

    .location-row .button.email {
        background-image: url(../images/54DwUQBWqC1X.png);
    }

    .location-row .button.share {
        background-image: url(../images/vCQsSeSYWPka.png);
    }
}

#location-print {
    cursor: pointer;
}

@media screen and (max-width: 990px) {
    #favdetails {
        left: auto;
        right: 0;
    }
}
/* Mobile styles */

@media screen and (max-width: 640px) {
    #header {
        height: 90px;
    }

        #header.fav {
            height: 155px;
        }

    #search-input {
        max-width: none;
        width: calc(100% - 130px);
        height: 45px;
        border-right: none;
        border-radius: 2px 0 0 2px;
    }

        #search-input:focus {
            border-right: none;
        }

    #search-button {
        height: 45px;
        border-radius: 0 2px 2px 0;
        margin-left: -4px;
        width: 50px;
        padding: 0;
    }

        #search-button span {
            display: none;
        }

        #search-button .icon {
            margin-left: 0;
        }

    #search-nearme {
        display: inline;
        float: right;
        vertical-align: middle;
        height: 45px;
        background: white;
        border: 2px solid #cb0839;
        border-radius: 2px;
        color: #cb0839;
        font-family: "Cabin";
        font-weight: bold;
        font-size: 16px;
        width: 76px;
        padding: 0;
        margin-left: 4px;
        cursor: pointer;
        outline: 0;
    }

    #favdetails {
        width: 100%;
        position: static;
        /*padding-top: 15px;*/
        padding-left: 30px;
        margin-top: 10px;
        padding-bottom: 10px;
    }


        #favdetails .text {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 15px;
        }

            #favdetails .text br {
                display: none;
            }

    #search-options {
        width: 100%;
        max-width: none;
        padding-right: 0;
    }

        #search-options input[type=checkbox]:first-of-type + label {
            margin-right: 10px;
        }

    #advanced-search {
        padding-left: 0;
        padding-right: 0;
    }

        #advanced-search input[type=checkbox] + label {
            line-height: 52px;
        }

    #sidebar {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

        #sidebar .header {
            margin: 0;
            border-top: 1px solid #b9b9b9;
        }

    #location-list .header .caret {
        display: none !important;
    }

    .header .maplist {
        display: inline-block;
    }

    .location-row {
        padding: 0;
    }

    .location-icon, .location-select {
        right: 0 !important;
    }

    #location-print {
        display: none;
    }

    #basic-search {
        margin-top: 10px;
    }

    #location-list {
        height: 50px;
        min-height: 50px;
    }

        #location-list .header {
            height: 50px;
        }

        #location-list .content {
            height: 505px;
        }


    #basic-search {
        padding-left: 0px;
    }
}

.pac-container::after {
    /* Disclaimer: not needed to show 'powered by Google' if also a Google Map is shown */
    background-image: none !important;
    height: 0px;
}

@media print {
    #header {
        display: none;
    }

    #content {
        height: auto;
    }

    #map {
        height: 500px;
        float: right;
        /*display: none;*/
    }

    #static-map {
        display: block;
        width: 350px;
        height: 350px;
        float: right;
    }

    #sidebar {
        /*position: relative;
        width: auto;*/
        max-height: none !important;
        height: auto;
        left: 0;
        top: 0;
    }

    #location-list {
        display: none;
    }

    #location-detail {
        position: relative;
    }

        #location-detail .header {
            display: none;
        }

        #location-detail .content {
            height: auto;
        }

        #location-detail .location-image {
            max-width: 100%;
            width: auto;
        }

    .location-row .button {
        background: none;
        color: #cb0839;
        padding: 0;
        display: none;
    }

        .location-row .button.call {
            display: block;
        }

    #location-print {
        display: none;
    }

    .gmnoprint {
        display: none;
    }
}
