﻿.sort-direction {
    color: var(--color-theme) !important;
    font-size: .9em;
}

    .sort-direction:hover {
        color: var(--color-black) !important;
        font-weight: bold !important;
    }

.instruction-row {
    color: var(--color-white);
    background-color: var(--color-grey-8);
}

.page-change {
    cursor: pointer;
}

.additional{
    cursor: pointer;
}

    .additional:hover {
        text-decoration: underline !important;
    }

#search-form .form-control {
    font-size: 0.85rem;
    padding: 0px 0px 0px 0px;
    height: 1.75em;
    min-width: 50px;
}

.search {
    padding-right: 0;
    font-size: .9em;
}

.search-title {
    height: 30px;
    background-color: var(--color-darkgrey);
    color: var(--color-white);
    padding: 5px;
}

.recent {
    font-size: 1em;
}

    .recent div:nth-child(n+4) {
        display: none;
    }

.tile {
    width: 100%;
    display: inline-block;
    box-sizing: border-box;
    background: var(--color-theme);
    padding: .9em;
    margin-bottom: .75em;
    color: var(--color-white);
    font-size: 1em;
    font-weight: bold;
}

    .tile:hover {
        text-decoration: none;
    }

.title {
    margin-top: 0px;
    color: var(--color-white) !important;
    text-decoration: none;
}

.showMore {
    cursor: pointer;
    color: var(--color-theme);
}

.image-title {
    background-color: var(--color-darkgrey);
    color: var(--color-white);
    font-size: .85em;
    padding-top: .25em;
    padding-bottom: .25em;
    padding-left: .35em;
    padding-right: .35em;
}

.btn-danger {
    min-width: 50px !important;
}

.search-form {
    padding: 10px 10px 10px 10px;
    border: 1px solid;
}

.list-group-item {
    padding: 0.25rem 0.25rem;
    margin-bottom: 0px;
    border: none;
}

    .list-group-item .form-check-input {
        margin-top: 3px;
    }

.bordered-top {
    border-top: 1px solid var(--color-grey-d) !important;
}

.bordered-bottom {
    padding-bottom: 2px;
    border-bottom: 1px solid var(--color-black) !important;
}

.panel-title {
    font-weight: 600;
}
    .panel-title:after {
        font-family: "Font Awesome 5 Free";
        content: "\f0d8";
        float: right;
        font-weight: 900;
    }

    .panel-title.collapsed:after {
        content: "\f0d7";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
    }

.img-search {
    padding: .6em 1em .6em .7em !important;
}

    .img-search .img-thumbnail {
        padding: 0 !important;
        height: 160px !important;
        border: none;
    }

.crop {
    width: 100%;
    height: 127px;
    object-fit: cover;
}

.centered-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-black);
    font-weight: bold;
    background-color: #ffffff7f;
    padding: 2px;
}

.price-text {
    position: absolute;
    bottom: 0px;
    right: 0px;
    color: var(--color-white);
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 3px;
    padding-right: 3px;
    background-color: var(--color-theme);
}


.center-col-padding {
    padding: .5em 1em 0em 0em !important;
}

.right-col-padding {
    padding: .3em .3em 0 0 !important;
}

.img-ad {
    width: 100%;
    height: auto;
    padding-right: 0px;
    max-height: 100%;
}

.search-row:nth-child(even) {
    background: var(--color-lightgrey);
}

.search-row:nth-child(odd) {
    background: var(--color-white);
}

.search-row:nth-last-child(2) {
    /*border-bottom: 1px solid var(--color-black);*/
}

.heading {
    font-weight: bolder;
    color: var(--color-black);
    font-size: 1em;
    padding-bottom: .5em;
}

.heading-position {
    text-align: left;
}

table td {
    padding: 0px 0px 2px 0px !important;
    border: none !important;
    font-size: 0.75rem;
}

table tr {
    padding: 0 !important;
}

h3 {
    font-size: 0.75rem;
}

.font-small {
    font-size: 0.65rem;
}

/*.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1;
    border: var(--color-theme) solid 1px !important;
}*/

.filter-wrapper {
    cursor: pointer;
}

    .filter-wrapper:hover {
        opacity: .7;
        border: var(--color-theme) solid 1px !important;
    }

.filter-text {
    /* position: absolute; */
    text-align: center;
    bottom: 1%;
    align-content: center;
    width: 100%;
}

.cat-make-icon {
    color: var(--color-theme);
    font-size: 3vw;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
}

.cat-make-text {
    font-size: .75em;
    line-height: 1.2;
}

.advertisement {
    padding-left: 0px;
    font-size: .9em;
}

.w-40{
    width: 40%;
}

.w-20 {
    width: 20%;
}

.advert {
    height: 150px;
    transform: scale(0.57);
    transform-origin: top left;
}

.overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 2;
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.5);
    transition: opacity 200ms ease-in-out;
    /* margin: -15px 0 0 -15px;*/
    opacity: 1;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}
.loading-text {
    color: var(--color-black);
    background-color: rgba(255, 255, 255, 0.5);
    font-size: 2em;
    top: 20%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

.additional-container {
    display: inline-block;
    position: relative;
    margin-right:20px;
    margin-bottom:5px;
}

    .additional-container img {
        width: 40px;
    }
.additional-badge {
    top: -3px;
    position: absolute;
    left: 30px;
    background: royalblue;
    font-size: .75rem;
    color: white;
}



@media (min-width: 992px) {
    .featured-listing {
        padding-left: 0px;
        padding-right: 0px;
    }
}

@media (max-width: 1199px)
{
    .advert {
        height: 135px;
        transform: scale(0.47);
    }
}

@media (max-width: 991px)
{
    .advert {
        margin-top: 1em;
        height: 260px;
        transform: scale(1);
    }
}

@media (max-width: 767px) {
    .instruction-row {
        margin-top: 1.5em;
        font-size: .75rem;
    }
    
    .thumb-post {
        height: auto;
        max-height: 100%;
    }

    /*.thumb-post {
        width: 100%;
        height: 100%;
        object-fit: cover;
        max-height: 120px;
    }*/

    /*.search-row:nth-child(n) {
        background-color: var(--color-white);
    }*/

    /*.img-search {
        padding-left: 0 !important;
    }*/

    .heading-position {
        text-align: left;
    }

    .cat-make-icon {
        font-size: 7vw;
    }

    .search-result {
        padding: 0px;
    }

    .search {
        padding: 1rem;
    }

    .advertisement {
        padding: 1rem;
    }

    .btn-danger {
        min-width: 50px !important;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .div-price-overlay {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 0.9rem;
    }

    table td {
        padding: 0px 2px 2px 2px !important;
        border: none !important;
        font-size: 1rem;
    }

    .img-search {
        padding-right: .7em !important;
    }

    .center-col-padding {
        padding: 1em 0 1em 0 !important;
    }

    /*.thumb-post {
        max-height: 100%;
    }*/
}
