/*
Theme Name: TAS
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.archive-buyer-container{
    margin-top: 50px;
}
.dnw-sort-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.dnw-sort-form label {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    margin: 0 !important;
    white-space: nowrap;
}

.dnw-sort-form select {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 35px 6px 15px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    background-color: #fff !important;
    width: auto !important;
    height: 38px !important;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px auto;
    margin: 0;
}

.dnw-sort-form select:hover {
    border-color: #bbb !important;
}

.dnw-sort-form select:focus {
    border-color: #000 !important;
    outline: none;
}


.revenue-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.revenue-inputs input {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    color: #333;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin: 0;
}

.revenue-inputs input::placeholder {
    color: #9ca3af;
}

.revenue-inputs .divider {
    font-size: 14px;
    color: #9ca3af;
}


@media (max-width: 549px) {
    .dnw-sort-form {
        justify-content: flex-start;
        margin-top: 15px;
        width: 100%;
    }
}

.dnw-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #eee;
    gap: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.dnw-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

.card-main-content {
    flex: 1;
}

.card-meta-top { margin-bottom: 8px; color: #999; font-size: 0.85em; }
.dnw-card .entry-title { font-size: 1.3rem; margin-bottom: 12px; color: #000; }
.dnw-card .entry-title a{
    color: inherit;
	text-transform: math-auto;
}
.dnw-card .entry-excerpt { color: #666; margin-bottom: 15px; }


.card-aside-info {
    width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    border-left: 1px solid #f0f0f0;
    padding-left: 20px;
}


.revenue-label {
    color: #888;
    display: block;
    margin-bottom: 10px;
}

.revenue-line {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 5px;
}

.r-txt {
    font-size: 0.8em;
    color: #999;
}

.r-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #000;
}

.favorite-icon {
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
}
.card-meta-bottom{
    display: flex;
    align-items: center;
    gap: 15px;
}
.location-item{
    display: flex;
    gap: 5px;
    align-items: center;
}
.dnw-icon-map{
    display: inline-flex;
}
.buyer-tags .tag-badge{
    background: #fdf2d1;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 14px;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

.filter-scroll-list .checkbox-container input{
    margin-bottom: 0;
}

/*Single*/

.dnw-single{
    margin-top: 50px;
    margin-bottom: 40px;
}
.dnw-single .section-subtitle {
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 24px;
    margin-bottom: 40px;
}

.dnw-single  .header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.dnw-single .buyer-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    flex: 1;
	text-transform: math-auto;
}

.dnw-single .buyer-price {
    text-align: right;
    min-width: 200px;
}

.dnw-single .star-icon {
    font-size: 30px;
    color: #333;
}

.dnw-single .price-details p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.dnw-single .price-details strong {
    font-size: 18px;
    color: #000;
}

.dnw-single .buyer-meta {
    color: #888;
    font-size: 13px;
    margin-top: 10px;
    display: flex;
    align-items: center;
}
.dnw-single .buyer-meta .buyer-date{
    color: #333;
    margin-left: 5px;
}
.buyer-info-grid{
    margin-top: 30px;
}

/* Grid thông tin chi tiết */
.dnw-single .info-row {
    display: flex;
    margin-bottom: 15px;
    line-height: 1.6;
}
.dnw-single .info-row-first{
    display: block;
}

.dnw-single .info-label {
    width: 20%;
    font-size: 14px;
    color: #777;
    font-weight: 500;
}
.dnw-single .info-row-first .info-label{
    margin-bottom: 10px;
}

.dnw-single .info-content {
    width: 80%;
    font-size: 15px;
}


.dnw-single .tag {
    display: inline-block;
    background-color: #fdf2d0;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-weight: 500;
}

.dnw-single .buyer-list {
    margin: 15px 0;
    padding-left: 20px;
}

.dnw-single .buyer-list li {
    margin-bottom: 8px;
    list-style-type: disc;
}

/* Nút bấm */
.dnw-single .connect-btn {
    display: inline-block;
    background-color: #bc9f63; /* Màu be đậm */
    color: #fff !important;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.3s;
}

.dnw-single .connect-btn:hover {
    background-color: #a68b54;
}
.info-content ul{
    margin-left: 20px;
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    .dnw-single .header-main, .dnw-single .info-row {
        flex-direction: column;
    }
    .dnw-single .info-label, .dnw-single .info-content {
        width: 100%;
    }
    .dnw-single .buyer-price {
        text-align: left;
        margin-top: 15px;
    }
}

@media (max-width: 600px) {
    .dnw-card {
        flex-direction: column;
        gap: 15px;
    }
    .card-aside-info {
        width: 100%;
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding-left: 0;
        padding-top: 15px;
        text-align: left;
    }
    .revenue-line { justify-content: flex-start; }
}

.dnw-paging {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 32px 0 0;
    flex-wrap: wrap;
}

.dnw-paging .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 500;
    text-decoration: none;

    color: #333;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;

    transition: all .25s ease;
}

/* Hover */
.dnw-paging .page-numbers:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Current page */
.dnw-paging .page-numbers.current {
    background: #111827;
    color: #fff;
    border-color: #111827;
    cursor: default;
}

/* Next / Prev */
.dnw-paging .page-numbers.next,
.dnw-paging .page-numbers.prev {
    padding: 0 18px;
    font-weight: 600;
}

/* Disable click on current */
.dnw-paging .page-numbers.current:hover {
    background: #111827;
}

/* Mobile */
@media (max-width: 576px) {
    .dnw-paging .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}


/*-----------------------------Modal---------------------------------*/
.fade {
    transition: opacity .15s linear;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}
.fade:not(.show) {
    opacity: 0;
}
.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}
.modal-dialog-centered {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - 1rem);
}
.modal.fade .modal-dialog {
    transition: -webkit-transform .3s ease-out;
    transition: transform .3s ease-out;
    transition: transform .3s ease-out,-webkit-transform .3s ease-out;
    -webkit-transform: translate(0,-50px);
    transform: translate(0,-50px);
}
.modal-content {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 0;
    border-radius: 4px;
    outline: 0;
    overflow: hidden;
}
.modal-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}
.auth-modal .modal-header {
    padding: 0;
    position: relative;
    border: 0;
}
.auth-modal .modal-header .modal-header-register {
    font-weight: 800;
    font-size: 22px;
    line-height: 30px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}
.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}
button.close {
    padding: 0;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.modal-header .close {
    padding: 1rem 1rem;
    margin: -1rem -1rem -1rem auto;
}
.modal-header .close {
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0;
    color: #fff;
    text-align: center;
    font-size: 20px;
    line-height: 38px;
    display: block;
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50%;
    z-index: 999999;
    transition: all .3s;
    padding: 0;
    margin: 0;
    min-height: auto;
    font-weight: 300;
    opacity: 1;
}
.modal-header .close:hover{
    background-color: #e8e8e8;
}
.popup-content-header{
    font-size: 22px;
    font-weight: 800;
    line-height: 30px;
    letter-spacing: 0px;
    text-align: center;
    text-transform: uppercase;
    padding-top: 15px;
    color: var(--primary-color);
}
.modal-body {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 40px;
}
.auth-modal .modal-body {
    padding-bottom: 0;
}
.modal-open .modal {
    background: #0000009e;
    z-index: 99999;
}
.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}
.modal.show .modal-dialog {
    -webkit-transform: none;
    transform: none;
}

.bgdl-modal .modal-header {
    display: block;
}

.bgdl-modal .modal-content-header {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
}

.bgdl-modal form {
    margin-bottom: 0;
}

.bgdl-modal .modal-body {
    padding: 20px;
}
/*.bgdl-modal form input,*/
/*.bgdl-modal form select,*/
/*.bgdl-modal form textarea{*/
/*    margin-bottom: 0;*/
/*}*/
.bgdl-modal .form-lien-he p {
    margin-bottom: 0;
    text-align: center;
}
.bgdl-modal .form-lien-he input[type=submit] {
    margin: 0 auto;
}
@media (min-width: 550px){
    .col-lostpassword{
        text-align: right;
    }
}
@media (min-width: 576px){
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }
}
@media (min-width: 768px){
    .modal-dialog {
        max-width: 660px;
    }
    .bgdl-modal .modal-dialog {
        max-width: 620px;
    }
    .auth-modal .modal-dialog {
        max-width: 500px;
    }
    .col-sale .show-mobile{
        display: none;
    }
}


.portfolio-archive{
    padding-top: 50px;
    padding-bottom: 50px;
}

.portfolio-filters {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.portfolio-filters .filter-item {
    width: 50%;
}

.portfolio-filters .filter-item select {
    width: 100%;
    margin-bottom: 0;
}
.portfolio-filters select {
    min-width: 220px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    font-weight: 500;
}

/*.portfolio-grid {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(5, 1fr);*/
/*    gap: 16px;*/
/*}*/

/*.portfolio-item {*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*    border-radius: 12px;*/
/*}*/

/*.portfolio-item img {*/
/*    width: 100%;*/
/*    height: 180px;*/
/*    object-fit: cover;*/
/*    transition: transform .4s ease;*/
/*}*/

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 10px; /* đơn vị tính */
    gap: 16px;
}

.portfolio-item {
    grid-row: span var(--row-span);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.portfolio-item a{
    display: block;
}
.portfolio-item img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform .4s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}
.portfolio-archive .page-numbers{
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 549px) {
    .portfolio-filters {
        flex-direction: column;
        gap: 12px;
    }

    .portfolio-filters .filter-item {
        width: 100%;
    }
}