﻿.duan-index-search-container {
    display: flex;
    gap: 10px;
}

    .duan-index-search-container .left {
        flex: 2.5;
    }

    .duan-index-search-container .right {
        display: flex;
        gap: 10px;
        flex: 7.5;
    }

.duan-index-dropdown-container {
    position: relative;
    flex: 1;
}

.duan-index-dropdown-title {
    /* position: absolute;
    top: -10px;
    left: 17.5px;*/
    font-weight: 500;
    font-size: small;
}

.duan-index-project-tag {
    border: 1px solid lightgray;
    padding: 0;
    border-radius: 8px;
}

    .duan-index-project-tag .image {
        position: relative;
        width: 300px !important;
        height: 200px;
    }

/*  .duan-index-project-tag:hover {
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 -1px 2px 0 rgba(0, 0, 0, 0.05), 1px 0 2px 0 rgba(0, 0, 0, 0.05), -1px 0 2px 0 rgba(0, 0, 0, 0.05);
    }*/

.duan-index-status-title {
    font-size: 13px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 5px;
    width: fit-content !important;
    cursor: default;
    margin-bottom: 5px;
    font-weight: 600;
}

.duan-index-filter-container {
    margin-top: 10px !important;
    /*margin-bottom: 20px !important;*/
    /*border: 1px solid lightgray !important;*/
    /*padding-top: 20px !important;*/
    /*border-radius: 3.5px !important;*/
    align-items: center !important;
    position: relative;
}

    .duan-index-filter-container .revert-icon {
        color: #909090;
        position: absolute;
        width: 17px;
        top: 50%;
        right: 2%;
        cursor: pointer;
    }

.duan-index-project-unit-tag {
    display: flex;
    gap: 5px;
    padding-bottom: 2px;
    width: fit-content !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer;
}

    .duan-index-project-unit-tag .unit-icon {
        margin-bottom: 8px;
        color: #888;
    }

    .duan-index-project-unit-tag .unit-text {
        font-size: 14px;
        font-weight: 500;
    }

.duan-index-relative-time {
    font-size: 12px;
    color: #6e6e6e !important;
}

.duan-index-project-title {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.duan-index-project-description {
    cursor: default;
    margin-top: 5px;
    font-size: 13px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.duan-index-project-location {
    margin-top: 5px;
    cursor: default !important;
}

    .duan-index-project-location .location-header {
        font-weight: 600;
        font-size: 13.5px;
    }

    .duan-index-project-location .location {
        font-size: 13.5px;
    }

.duan-index-units-container {
    margin-bottom: 10px !important;
    margin-top: 5px !important;
    gap: 10px;
    width: 100% !important;
}

.duan-index-more-images {
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer !important;
    gap: 3px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 3px;
    padding-bottom: 3px;
    border-radius: 5px;
    background-color: rgba(255,255,255,0.5);
}

    .duan-index-more-images .image-icon {
        color: white;
        font-size: 15px;
    }

    .duan-index-more-images .count {
        color: white;
        font-size: 16px;
        font-weight: 600;
    }

.ui.pagination.menu {
    display: flex !important;
    justify-content: center !important;
}

.search-icon {
    display: none;
}

@media(max-width: 768px) {
    .ui.pagination.menu {
        width: 100% !important;
        justify-content: space-between !important;
        overflow-x: auto !important;
    }

        .ui.pagination.menu .item {
            flex: 1 !important;
            text-align: center !important;
        }
}

.duan-index-suggestion-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1.5px solid #ccc;
    border-top: none;
    max-height: 211px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05), 0 -1px 2px 0 rgba(0, 0, 0, 0.05), 1px 0 2px 0 rgba(0, 0, 0, 0.05), -1px 0 2px 0 rgba(0, 0, 0, 0.05);
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}
    .duan-index-suggestion-box .building {
        color: #2859c5;
    }
    .duan-index-suggestion-item {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 5px;
        padding-bottom: 5px;
        cursor: pointer;
        display: flex;
        text-decoration: none !important;
        color: black !important;
        align-items: center;
        gap:6px;
    }

    .duan-index-suggestion-item:hover {
        background-color: #f0f0f0;
    }

    .duan-index-suggestion-item .suggestion-text {
        font-size: 14px;
    }

.duan-index-page {
    cursor: pointer;
}

    .duan-index-page:hover, .duan-index-page:active {
        background-color: #00436b !important;
        font-weight: 600 !important;
        color: white !important;
    }

.highlight {
    padding-left: 0 !important;
}

#duan-index-search-project-container {
    width: 100% !important;
    margin-top: 19px;
    height: 32px;
}

.duan-grid-search {
    width: 100%;
    padding: 8px !important;
    margin: 0 !important;
    border: 1px solid lightgray;
    border-radius: 4px;
    display: flex;
    gap: 10px;
}

#duan-index-category-selector .mobile-item-option {
    display: none;
}

.duan-index-search-bar {
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 5px;
}

#mobile-duan-index-dropdown-content {
    display: none;
}

#mobile-duan-index-dropdown-category-content {
    display: none;
}

#mobile-duan-index-dropdown-price-content {
    display: none;
}

#mobile-duan-index-dropdown-status-content {
    display: none;
}

#mobile-duan-index-dropdown-district-content {
    display: none;
}

#main-content-duan-index {
    padding-top: 101px;
}

.dropdown-custom {
    background-color: rgb(148 176 193 / 0%) !important;
    height: 32px !important;
    min-height: 32px !important;
    display: flex !important;
    justify-content: space-between !important;
    padding: 8px 0 8px 8px !important;
    align-items: center !important;
}

    .dropdown-custom .text {
        font-weight: 400 !important;
        height: 15px;
    }

.custom-scroll-project-status .item {
    background: #F2F2F2;
    margin: 0px 8px 8px 0px;
    border-radius: 40px;
    float: left;
    padding-left: 0 !important;
    cursor: pointer !important;
    line-height: 24px !important;
}

    .custom-scroll-project-status .item.selected {
        background-color: #4caf50 !important;
        color: white !important;
    }

    .custom-scroll-project-status .item span {
        margin: 0px !important;
        padding: 6px 13px !important;
        line-height: 32px !important;
    }

.dropdown-content-item-project {
    display: none;
    position: absolute;
    z-index: 10;
    background: white;
    min-width: 287px;
    width: 287px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    padding: 10px;
    max-height: 410px;
    margin-top: 5px;
}


.dropdown-content-item {
    display: none;
    position: absolute;
    z-index: 10;
    background: white;
    min-width: 287px;
    width: 287px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    padding: 10px;
    height: 410px;
    max-height: 410px;
    margin-top: 5px;
    padding: 0 10px;
}

.dropdown-header-item {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid #F2F2F2;
}

.dropdown-header-item-province {
    justify-content: space-between !important;
}

.icon-toggle {
    margin: 0 !important;
    color: #999;
    transition: transform 0.5s ease;
}

    .icon-toggle.rotate {
        transform: rotate(180deg);
    }

.min-price, .max-price {
    float: left !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    /*font-family: "Roboto Regular", Roboto, Arial !important;*/
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: normal !important;
    color: #2C2C2C !important;
    padding: 6px 16px !important;
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 16px !important;
}

.actions-item {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #F2F2F2;
    align-items: center;
    height: 60px;
}

.btn-apply {
    margin-right: 0 !important;
}

.custom-scroll {
    margin-left: -10px !important;
}

    .custom-scroll .item {
        cursor: pointer !important;
        padding-left: 10px !important;
        line-height: 24px !important;
    }

        .custom-scroll .item:hover {
            background-color: #F2F2F2 !important;
        }

        .custom-scroll .item.active {
            background-color: #F2F2F2 !important;
        }

.custom-scroll-project-province .item {
    display: flex;
    justify-content: space-between !important;
    line-height: 30px !important;
}

    .custom-scroll-project-province .item::after {
        content: none !important;
    }

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Nền mờ đen */
    display: none; /* Ẩn overlay mặc định */
    z-index: 9999; /* Đặt z-index cao hơn các phần tử khác */
}
.duan-grid-search .first-column {
    width: 35% !important;
}

.duan-grid-search .group-column {
    display: flex;
    gap: 10px;
    width: 65%;
}

    .duan-grid-search .group-column .column:not(:last-child) {
        width: 22%;
    }


.status-label {
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 4px;
    cursor: default;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-item {
    top: 8px !important;
    color: black;
}

#grid-mobile-project {
    padding-top: 1px;
}

.text-muted {
    color: rgb(51, 51, 51) !important;
}

.input-search-project {
    background: #F2F2F2;
    border-radius: 4px;
    width: calc(100% - 16px);
    padding: 0 0 0 12px;
    color: #2C2C2C;
    line-height: 32px;
    border: none;
    margin: 0 8px 8px 8px;
    outline: none;
    margin-top: 4px;
}

    .input-search-project:focus {
        border: 0px solid #F2F2F2;
        outline: none;
    }
.custom-scroll-content-district .item {
    line-height: 30px !important;
}
    /* Màn hình nhỏ hơn 1200px (Laptop hoặc Desktop nhỏ) */
    @media screen and (max-width: 1200px) {
        #main-content-duan-index {
        padding-top: 152px;
    }
}

/* Màn hình máy tính bảng */
@media (min-width:480px) and (max-width: 979px) {
    #main-content-duan-index {
        padding-top: 14% !important;
    }

    .duan-index-dropdown-title {
        display: none !important;
    }

    .duan-grid-search {
        justify-content: normal;
        padding: 0px !important;
    }

    .duan-index-project-description {
        -webkit-line-clamp: 7;
    }

    .duan-grid-search .column {
        margin-right: -3%;
    }

    #grid-mobile-project {
        margin-bottom: 1%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Màn hình điện thoại */
@media screen and (max-width: 480px) {
    .dropdown-content-item {
        position: fixed !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        height: auto !important;
        max-height: max-content !important;
    }

    #dropdown-content-province {
        position: fixed !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        height: 50% !important;
        max-height: 50% !important;
        height: 65vh !important;
        max-height: 65vh !important;
    }

    .custom-scroll {
        text-align: left;
        padding-bottom: 10px !important;
    }

    .mobile-pd-0 {
        padding: 0 !important;
    }

    .pd-left-10 {
        padding-left: 10px !important;
    }

    .duan-grid-search .column.header {
        float: left;
    }

    .search-icon {
        top: 16% !important;
    }

    .mobile-custom-dropdown {
        overflow: auto !important;
        max-height: 800px !important;
        width: 95% !important;
    }

    .mobile-item-bds {
        display: flex !important;
        flex-direction: row !important;
        align-items: start !important;
    }

    #duan-index-search-project-container {
        width: 100% !important;
    }

    .filter-project-bar .column .header {
        display: none !important;
    }

    .duan-index-dropdown-title {
        height: 500px;
        top: 10px;
        padding: 10px;
        display: none !important;
    }


    #duan-index-category-selector .mobile-item-option {
    }

    #main-content-duan-index {
        padding-top: 15% !important;
    }

    #clear-filter {
        display: none !important;
    }


    .duan-index-search-bar {
        padding-bottom: 0 !important;
        padding-left: 0;
        padding-top: 0;
    }

    .duan-grid-search {
        border: unset !important;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 12px !important;
    }

    .slick-list {
        padding-left: 0 !important;
    }

    .slick-slide {
        margin-right: 15px !important;
    }

    .mobile-display-none {
        display: none !important;
    }

    .duan-index-project-tag .image {
        position: relative;
        width: auto;
        height: 200px;
    }

    .project-search-bar {
        padding-bottom: 12px !important;
        padding-top: 14px !important;
    }

    .search-icon {
        display: block;
    }

    #grid-mobile-project {
        margin-bottom: 1%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .btn-apply {
        width: 75%;
        margin-right: 0 !important;
        padding-right: 0 !important;
    }

    .btn-reset {
        width: 25%;
        background: #fff !important;
        border: 1px solid #ccc !important;
    }

    .btn-reset, .btn-apply {
        font-size: 14px;
        letter-spacing: -.2px;
        cursor: pointer;
        height: 48px;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 500 !important;
        text-align: center !important;
        display: flex !important;
    }

    .actions-item {
        width: 100%;
        bottom: 0 !important;
        gap: 10px;
        height: 72px !important;
        background-color: white;
        padding-right: 0 !important;
    }

    .column-mobile {
        text-align: left;
    }

    .dropdown-header-item {
        padding: 16px 0 !important;
    }

    .btn-close-item {
        top: 11px !important;
    }

    .duan-index-filter-container {
        margin-top: 0px !important;
    }

    #grid-mobile-project {
        padding-top: 34px;
    }

    #duan-index-search-project-container {
        height: 40px;
    }

    .duan-grid-search .first-column {
        width: 100% !important;
    }

    .duan-grid-search .group-column {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 5px;
        scrollbar-width: none;
        width: 100%;
    }
        .duan-grid-search .group-column .column:not(:last-child) {
            width: auto;
        }
    #duan-index-search-project .search.icon {
        display: none!important;
    }
    .search-icon {
        display: block!important;
    }
    .duan-index-suggestion-box {
        top: 57%;
        max-height: 350px;
        /*position: relative;*/
    }
    .item-project {
        display: flex;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
    }
    .suggestion-text{
        width:100%;
    }
    .address-peoject {
        color: #999;
        font-size: 12px;
    }
    .duan-index-suggestion-item .building {
        background-color: #80cbc433 !important;
        border-radius: 100px;
        height: 30px !important;
        width: 34px !important;
        align-items: center !important;
        justify-content: center !important;
        display: flex !important;
    }
    .ui.container.project-container {
        margin-left: 6px !important;
        margin-right: 6px !important;
    }
    .custom-scroll-content-district {
        height: 80dvh!important;
    }
}

@media screen and (max-width: 360px) {
    .btn-reset {
        width: 30%;
    }
    #grid-mobile-project {
        padding-top: 46px;
    }
}


