﻿.dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

/* Search */
.section-search .keyword > i {
    position: absolute;
    top: 0;
    left: 15px;
    line-height: 38px;
}

.section-search .keyword > input {
    padding-left: 40px;
}

.section-search .dropdown.select .panel .tool {
    color: #333333;
    border-bottom: 1px solid #dee2e6;
    margin: 0 -10px 10px;
    padding: 0 10px 5px;
}

.section-search .dropdown-menu .panel .btn-group > .btn {
    padding: 5px 8px;
}

.section-search select.form-control {
    background-color: #efefef;
}

    .section-search select.form-control:hover {
        background-color: #dcdddd;
        cursor: pointer;
    }

.section-search nav.sort a {
    margin-right: 1.25em;
}

    .section-search nav.sort a.active {
        color: var(--btn-default-bg);
    }

.section-search .count {
    color: #666666;
}

    .section-search .count span {
        color: var(--btn-default-bg);
    }

.section-search .search.desktop {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.15);
    padding: 30px 30px 25px;
}

/* mega-dropdown */
.mega-dropdown .dropdown-toggle {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    background-color: #efefef;
}

    .mega-dropdown .dropdown-toggle:hover {
        background-color: #dcdddd;
    }

.mega-dropdown .dropdown a::after {
    transition: all ease .3s;
}

.mega-dropdown.dropdown.show a::after {
    transform: rotate(-180deg);
}

.mega-dropdown .dropdown-item {
    padding: 0.5rem 1.5rem;
}

    .mega-dropdown .dropdown-item + .dropdown-item {
        border-top: 1px solid #e9ecef;
    }

.mega-dropdown .dropdown-menu {
    margin-top: 5px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    max-height: calc(100vh - 350px);
    overflow-y: auto;
    overflow-x: hidden;
}

    .mega-dropdown .dropdown-menu .panel {
        background-color: #ffffff;
        border-top: 1px solid #dee2e6;
        padding: 10px;
        width: 600px;
    }

        .mega-dropdown .dropdown-menu .panel:first-child {
            border-top-left-radius: 0.25rem;
            border-top-right-radius: 0.25rem;
            border-top: none;
        }

        .mega-dropdown.dropdown-menu .panel:last-child {
            border-bottom-left-radius: 0.25rem;
            border-bottom-right-radius: 0.25rem;
        }

        .mega-dropdown .dropdown-menu .panel .title {
            color: var( --btn-default-bg);
            padding: 5px 0;
        }

.dropdown-menu .bootstrap-datetimepicker-widget.dropdown-menu {
    left: auto !important;
}

/* option */
.option ul.items > li {
    display: inline-block;
    margin-left: 2px;
    margin-bottom: 5px;
}

    .option ul.items > li > a {
        display: inline-block;
        background-color: #efefef;
        border-radius: 0.25rem;
        padding: 5px 8px;
        color: #777777;
    }

        .option ul.items > li > a:hover {
            color: #000000;
            background-color: #dcdddd;
        }

        .option ul.items > li.active > a,
        .option ul.items > li > a.active {
            color: #ffffff;
            background-color: var( --btn-default-bg);
        }

/* 售屋樣式 */
.section-sale {
    padding-bottom: 30px;
}

    .section-sale h1, .section-sale h2 {
        text-align: center;
    }

    .section-sale .sort-wrapper {
        margin-bottom: 10px;
    }

    .section-sale.detail {
        padding-top: 0px;
    }

        .section-sale.detail .location {
            display: flex;
            padding: 10px 0;
        }

            .section-sale.detail .location i {
                margin-top: 5px;
                margin-right: 5px;
            }

    /*.section-sale .card-img-top a:hover > * {
        color: #212529;
    }

    .section-sale .card-img-top a:hover .title {
        color: #299bb1;
    }*/

    .section-sale .card {
        margin-bottom: 20px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.15);
    }

        .section-sale .card .address {
            margin-bottom: 5px;
        }

        .section-sale .card .card-body {
            padding: 0.5rem;
        }

            .section-sale .card .card-body h3 {
                font-size: 18px;
                font-weight: bold;
                border-bottom: 1px solid #e1e1e1;
                margin-bottom: 5px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: normal;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                height: 58px;
                line-height: 1.5;
            }

        .section-sale .card .content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 5px;
        }

        .section-sale .card .slick-slider .content .item {
            flex-basis: 50%;
        }

    .section-sale .slick-slider .listing {
        padding: 5px;
    }

    .section-sale .card .price {
        color: #dc3545;
        font-weight: bold;
        font-size: 24px;
    }

        .section-sale .card .price .unit {
            font-size: 15px;
            color: rgb(119, 119, 119);
        }

    .section-sale .card .oprice {
        color: rgb(119, 119, 119);
        text-decoration: line-through;
        margin-right: 10px;
    }

    .section-sale .card .price.discount .unit {
        font-weight: normal;
    }

    /* 物件內頁 */
    .section-sale.detail .line img, .section-sale.detail .facebook img, .section-sale.detail .print {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }

        .section-sale.detail .print i {
            font-size: 30px;
        }

    .section-sale.detail .mobile, .section-property.detail .booking {
        font-weight: bold;
        display: block;
        border-radius: 0.25rem;
        text-align: center;
    }

    .section-sale.detail h1 {
        margin-top: 0px;
        margin-bottom: 0px;
        text-align: left;
    }

    .section-sale.detail .slider-for,
    .section-sale.detail .slider-nav {
        margin-bottom: 10px;
    }

        .section-sale.detail .slider-nav .item {
            width: auto !important;
            margin-right: 9px;
        }

            .section-sale.detail .slider-nav .item img {
                width: 60px;
                height: 60px;
            }

    .section-sale.detail .slick-dots li.slick-active button {
        background-color: #299BB1;
        opacity: 1;
    }

    .section-sale.detail .slick-arrow {
        position: absolute;
        top: calc(50% - 24px);
        color: rgba(255, 255, 255, 0.7);
        text-align: center;
        line-height: 1.0;
        padding: 0px 10px;
        cursor: pointer;
    }

    .section-sale.detail .slick-slider .slick-next:before {
        left: unset;
    }

    .section-sale.detail .price-wrapper {
        text-align: right;
        margin-bottom: 1rem;
        line-height: 1.0;
    }

    .section-sale.detail .price {
        color: #dc3545;
        font-size: 30px;
        font-weight: bold;
    }

    .section-sale.detail .unit {
        font-size: 16px;
        font-weight: normal;
    }

    .section-sale.detail .off {
        padding: 0 5px;
        font-size: 12px;
        background: #eb2222;
        color: #fff;
        line-height: 20px;
        border-radius: 10px;
        margin-right: 5px;
    }

        .section-sale.detail .off:before {
            content: '降';
            border: 5px solid rgba(255,255,255,0);
            border-top-color: #fff;
            display: inline-block;
            top: 4px;
        }

        .section-sale.detail .off .unit {
            font-size: 12px;
            color: #fff;
        }

    .section-sale.detail .oprice {
        font-size: 16px;
        text-decoration: line-through;
        color: rgb(119, 119, 119);
        font-weight: bold;
    }

    /*.section-sale.detail .house-info {
        padding: 0 1rem;
    }*/

    .section-sale.detail .house-info .item > div {
        border-bottom: 1px solid #d1d1d1;
        align-items: center;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .section-sale.detail .house-info .item .title {
        font-weight: bold;
        width: 90px;
        /*padding: 0;*/
        /*margin-bottom: 0;*/
    }

    /*.section-sale.detail .house-info .item .content {
            text-align: right;
        }*/

    .section-sale.detail .agent {
        margin: 20px 0;
    }

        .section-sale.detail .agent .is-agent {
            font-weight: bold;
            color: var(--btn-default-bg);
            font-size: 0.8em;
        }

        .section-sale.detail .agent .name {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .section-sale.detail .agent .title {
            width: 90px;
            margin-bottom: 0;
        }

    .section-sale.detail .agent-infos {
        padding-right: 15px;
        padding-left: 15px;
    }

    .section-sale.detail .agent-info {
        margin-bottom: 5px;
    }

    .section-sale.detail .contact {
        margin-bottom: 5px;
    }

        .section-sale.detail .contact .mobile {
            margin-bottom: 5px;
        }

        .section-sale.detail .contact a.line {
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #06C755;
            border-radius: 0.25rem;
            font-weight: bold;
            text-align: center;
            color: #ffffff;
        }

            .section-sale.detail .contact a.line:hover {
                background-color: #06C755;
                color: rgba(255, 255, 255, 0.9);
            }

        .section-sale.detail .contact .line img {
            width: 25px;
            height: 25px;
            margin-right: 5px;
        }

        .section-sale.detail .contact .link {
            background: linear-gradient(to bottom, #ff7326 0%, #ffad26 100%);
            color: #fff;
            font-weight: bold;
        }

        .section-sale.detail .contact .booking {
            background: linear-gradient(to bottom, #b8353d 0%, #f85050 100%);
            color: #fff;
            font-weight: bold;
        }

            .section-sale.detail .contact .booking:hover {
                background: linear-gradient(to bottom, #b8353d 0%, #f85050 100%);
                color: #fff;
            }

    .section-sale.detail h3 {
        padding-bottom: 5px;
        margin-bottom: 5px;
        border-bottom: 1px solid #d1d1d1;
        font-weight: bold;
        color: #299bb1;
    }

    .section-sale.detail .content-wrapper {
        padding-top: 5px;
    }

    .section-sale.detail .infos {
        margin-top: 10px;
    }

        .section-sale.detail .infos .title {
            width: 90px;
            color: #9fa0a0;
        }

    .section-sale.detail .price.discount {
        margin-right: 0;
    }

/* search-mobile */
.search-mobile {
    border-left: 1px solid #ced4da;
    z-index: 1031;
}

    .search-mobile .keyword > i {
        position: absolute;
        top: 0;
        left: 15px;
        line-height: 38px;
    }

    .search-mobile .keyword > input {
        padding-left: 40px;
    }

    .search-mobile .option ul.items > li > a {
        font-size: 14px;
    }

    .search-mobile .accordion > .card {
        border-bottom: 1px solid rgba(0, 0, 0, 0.125);
        border-radius: 0.25rem;
        overflow: unset;
    }

        .search-mobile .accordion > .card > .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 6px 10px;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }

            .search-mobile .accordion > .card > .card-header:after {
                font-family: 'FontAwesome';
                content: '\f106';
                transition: all ease .3s;
            }

            .search-mobile .accordion > .card > .card-header.collapsed::after {
                transform: rotate(-180deg);
            }

        .search-mobile .accordion > .card .card-body {
            font-size: 14px;
            padding: 10px;
        }

            .search-mobile .accordion > .card .card-body + .card-body {
                border-top: 1px solid #dee2e6;
            }

        .search-mobile .accordion > .card .card-title {
            color: #008800;
        }

    .search-mobile .header {
        padding: 0 20px;
    }

        .search-mobile .header > * {
            width: auto;
            height: auto;
            line-height: 1.0;
        }

        .search-mobile .header > div {
            width: auto;
        }

    .search-mobile .tab-content {
        overflow-y: visible;
    }

@media (min-width: 576px) {
    /*.section-sale.detail .title {
        margin-bottom: 15px;
    }*/

    .section-sale.detail .price-wrapper {
        margin-top: 12px;
    }

    /*.section-sale.detail .house-info .item .title {
        padding-right: 15px;
        padding-left: 15px;
    }*/
}

@media (min-width: 768px) {
}

@media (min-width: 992px) {

    .section-search {
        padding: 15px 0 30px;
        background-color: #e6f4f1;
    }

    .section-sale .sort-wrapper {
        border-bottom: 1px solid #dee2e6;
    }

    .section-sale.detail .house-info {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 1200px) {
}
