
#page-header {
    position: sticky;
    top: 0px;
    z-index: 999;
}

#location-company-logo {
    margin-top: -20px;
}

#location-header {
    height: 100px;
}

#customer-header {
    height: 200px;
}

.home-tile-m {
    margin-top: 0px;
}

.home-tile-first {
    margin-top: -70px;
}

.home-tile-m-strong {
    margin-top: 0px;
}


.dealer_box {
    max-width: initial;
}

#search-map {
    height: 300px;
}

.border-xs-bottom {
    border-bottom: 1px solid gray;
}

.external_ratings {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fit, calc(50% - 10px));
    margin-bottom: 20px;
}

@media (max-width: 360px) {

    .rating-preview img {
        max-width: 100% !important;
        display: block;
    }

    .flex-xs-column {
        flex-direction: column;
    }

}


@media (max-width: 390px) {

    .rating-preview img {
        max-width: 130px;
        display: block;
    }
}


@media (min-width: 576px) {
    #location-header {
        height: 280px;
    }

    #customer-header {
        height: 280px;
    }
}

.content_dealer_search {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (min-width: 768px) {
    .external_ratings {
        grid-template-columns: repeat(auto-fit, 130px);
    }

    .border-xs-bottom {
        border-bottom: none;
    }

    .content_dealer_search {
        display: grid;
        grid-gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(200px, .3fr));
    }


    #search-result-with-map #search-card {
        margin-top: -35px;
    }

    #location-company-logo {
        margin: -30px -30px 0 -30px !important;
    }

    #home-text {
        padding-left: 3rem;
    }

    .home-tile-first {
        margin-top: 0px;
    }

    .home-tile-m {
        margin-top:-70px;
    }


    .home-tile-m-strong {
        margin-top: -110px;
    }

    #page-header {
        position: relative;
        top: initial;
    }

    .border-right-md {
        border-right: 1px solid #dddbdb;
    }
}

@media (min-width: 992px) {
    .content_dealer_search {
        display: grid;
        grid-gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(200px, .3fr));
    }
    #search-map {
        height: 440px;
    }
}

@media (min-width: 1200px) {
    #location-header {
        height: 400px;
    }

    #customer-header {
        height: 400px;
    }
}

@media (min-width: 1400px) {  }


.dealer_box_rating_count {
    font-size: 0.65em;
    line-height: 1em;
    border-radius: 3px;
    text-align: center;
    padding: 5px 3px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    top: -8px;
    max-width: 100px;
    color: white;
    box-shadow: 0 0 6px 0px #00000052;
}



.top_dealer_light.top_dealer_small > section.block .top_dealers_list .top_dealers_item,
.top_dealer_dark.top_dealer_small > section.block .top_dealers_list .top_dealers_item  {
    margin-bottom: 0px;
    margin-top: 10px;
    padding-top: 0px;
    font-size: 0.8em;
}


.top_dealer_dark.top_dealer_small > section.block .top_dealers_list .rating_average {
    top: 0px;
}

.top_dealer_dark.top_dealer_small > section.block .top_dealers_list .top_dealers_item h3 {
    color: #949cb0;
    font-size: 2.3em;
}

@media (min-width: 992px) {

    .top_dealer_dark.top_dealer_small > section.block .top_dealers_list {
        padding-left: 25px;
        padding-right: 25px;
    }
}



.top_dealer_dark.top_dealer_small > section.block .top_dealers_list .top_dealers_item .rating_average {
    font-size: 1em;
}


.rating.shine:after {
    content:'';
    top:-50%;
    transform:translateX(100%) rotate(-20deg);
    width: 100%;
    height: 200%;
    position: absolute;
    z-index:1;
    animation: slide 1s;
    animation-delay: 1.5s;

    /*
    CSS Gradient - complete browser support from http://www.colorzilla.com/gradient-editor/
    */
    background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(128,186,232,0) 99%, rgba(125,185,232,0) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(50%,rgba(255,255,255,0.8)), color-stop(99%,rgba(128,186,232,0)), color-stop(100%,rgba(125,185,232,0))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%); /* IE10+ */
    background: linear-gradient(to right, rgba(255,255,255,0) 0%,rgba(255,255,255,0.8) 50%,rgba(128,186,232,0) 99%,rgba(125,185,232,0) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#007db9e8',GradientType=1 ); /* IE6-9 */
}

/* animation */

@keyframes slide {
    0% {transform:translateX(-100%);}
    100% {transform:translateX(100%);}
}

.search-result-box a {
    height: 100%;
}