﻿/* Change grid-col */

.box-change {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.change-col {
    opacity: 0.5;
}

    .change-col.change {
        opacity: 1;
        color: #57A49A;
    }

.box {
    display: none !important;
}

    .box.change {
        display: grid !important;
    }

.change-col {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0px 15px;
    width: 50px;
    padding: 5px;
    border: 1px solid #000;
    cursor: pointer;
}

    .change-col i {
        font-size: 35px;
    }
.list-view-layout .content-seller {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
}

.list-view-layout .card-seller {
    display: flex !important;
    flex-direction: row !important; 
    height: 333px !important;
    width: 100% !important;
}

.list-view-layout .photo-seller {
    width: 350px !important;
    min-width: 350px !important;
    height: 100% !important;
}

.list-view-layout .infor-seller {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
}

.list-view-layout .price-seller {
    margin-top: auto !important;
}
/* Style section search tour */

.box-list {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 30px 0px;
    height: auto;
    background-color: #fafafa;
    transition: all 0.3s linear;
}

    .box-list .btn-list {
        display: none;
        position: absolute;
        top: 5px;
        left: 10px;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
    }

        .box-list .btn-list.active ~ .box-search-tour {
            display: grid;
            opacity: 1;
            overflow: auto;
            visibility: visible;
            transform: rotateX(0deg);
        }

        .box-list .btn-list i {
            font-size: 35px;
            color: #474b4d;
        }

.box-search-tour {
    display: flex; 
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
}

    .box-search-tour .select-item {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .box-search-tour .select-item select {
            display: none;
            overflow: auto;
            height: 200px;
        }

.select-item select,
.select-selected {
    width: 100%;
    padding: 10px 15px;
    background-color: #57A49A;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    appearance: none; 
}

            .box-search-tour .select-item .select-selected::after {
                position: absolute;
                content: "";
                top: 15px;
                right: 10px;
                width: 0%;
                height: 0%;
                border: 6px solid transparent;
                border-color: #ffffff transparent transparent transparent;
            }

.select-selected.select-arrow-active:after {
    border-color: transparent transparent #0cc938 transparent;
    top: 0px;
}

/*style the items (options), including the selected item:*/
.select-items div,
.select-selected {
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 16px;
    cursor: pointer;
    user-select: none;
    width: 155px;
}

/*style items (options):*/
.select-items {
    position: absolute;
    background-color: #57A49A;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    height: 150px;
    overflow: auto;
}

.select-item::-webkit-scrollbar {
    display: block;
}

/*hide the items when the select box is closed:*/
.select-hide {
    display: none;
}

.select-items div:hover,
.same-as-selected {
    background-color: #72c3b9;
}
.content-seller {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px;
    margin-top: 30px;
    align-items: start;
}

.card-seller {
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 550px; 
    transition: 0.3s;
}
    .card-seller:hover {
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
.photo-seller {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}
    .photo-seller img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
.time-seller {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e63946;
    color: #fff;
    padding: 4px 12px;
    font-weight: bold;
    border-radius: 20px;
    font-size: 12px;
}
.infor-seller {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.infor-title {
    height: 60px;
    margin-bottom: 5px;
    overflow: hidden;
}

    .infor-title h1 {
        font-size: 18px;
        margin: 0;
        font-weight: 700;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .infor-title a {
        color: #1f2933 !important;
    }
        .infor-title a:hover {
            color: #b0a377 !important;
        }
.infor-add {
    margin-bottom: 10px;
    font-size: 12px;
    color: #B0A377;
}
.infor-place {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}
.summary-text {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
    height: 65px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.price-seller {
    margin-top: auto; /* Đẩy xuống đáy */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.price-box {
    text-align: right;
}

    .price-box .old-p {
        text-decoration: line-through;
        color: #aaa;
        font-size: 12px;
        margin: 0;
    }

    .price-box .new-p {
        font-size: 18px;
        font-weight: bold;
        color: #333;
        margin: 0;
    }

/* Reponsive */

@media (max-width: 992px) {
    .content-seller {
        grid-template-columns: repeat(2, 1fr);
    }

    .box-search-tour {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .content-seller {
        grid-template-columns: 1fr;
    }

    .box-search-tour {
        grid-template-columns: 1fr;
    }

    .card-seller {
        height: auto;
    }
    /* Mobile cho phép giãn theo nội dung */
}
