﻿
.container {
    margin-bottom: 30px;
}

.head-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}
    .head-filter p {
        margin-right: 35px;
    }

.main-content {
    display: flex;
    gap: 30px;
}

.filter-sidebar {
    flex: 0 0 280px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
}

.filter-group {
    margin-bottom: 25px;
}

    .filter-group h3 {
        font-size: 25px;
        margin-bottom: 12px;
        color: var(--dark);
        font-weight: bold;
    }
.des-sort-options select {
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: white;
    font-size: 14px;
    width: 100%
}

.filter-options {
    display: flex;
    flex-direction: column;
/*    gap: 8px;*/
}

.filter-option {
    padding: 10px 15px;
/*    background: var(--light);*/
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
    .filter-option:hover {
        background: #e9ecef;
    } 

    .filter-option input[type="checkbox"] {
        transform: scale(1.6); /* phóng to 1.4 lần */
        margin-right: 8px;
        cursor: pointer;
    }

.price-range {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.price-inputs {
    display: flex;
    gap: 10px;
   
}

    .price-inputs input {
        flex: 1;
        padding: 8px 10px;
        border: 1px solid var(--border);
        border-radius: 5px;
        font-size: 14px;
       
    }

.price-slider {
    width: 100%;
    accent-color: orange; /* làm nút trượt màu cam */
}
.price-labels {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
}
    .price-labels span:nth-child(2) {
        color: orange;
        font-weight: bold;
    }
.content-area {
 
    flex: 1;
}

/*Search head*/
.results-header {
    display: flex;
    /*    justify-content: space-between;*/
    align-items: center;
    margin-bottom: 20px;
    border: solid 0px;
    border-radius: 10px;
    background: white;
    box-shadow: var(--shadow);
    padding: 15px 10px 15px 10px;
    gap: 10px;
}

.btn-search {
    background: orange;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;    
}
    .btn-search:hover {
        background: #084298;
        transform: translateY(-1px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.search-container {
    width: 100%;
}

    .search-container input {
        width: 100%;
        padding: 15px 20px;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        font-size: 16px;
        transition: all 0.3s;
    }

.sort-options select {
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: white;
    font-size: 14px;
}
/*TourCard*/
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.tour-card {
    flex: 0 0 auto;
    width: 332px;
    margin-right: 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s;
}

    .tour-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.tour-header {
    width: 100%;
    height: 160px; /* chiều cao ảnh */
    background-size: cover; /* phóng vừa khung */
    background-position: center center;
    border-radius: 10px 10px 0 0;
}



.tour-body {
    padding: 14px;
}

    .tour-body h3 {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 6px;
    }

.tour-location {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.tour-guide {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}



.guide-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f1f1f1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    /*  margin: 0 auto 10px auto;*/
}

    .guide-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.guide-info {
    margin-top: 10px;
    display: flex;
    flex-direction: column; /* 🔹 xếp trên–dưới */
    /*align-items: center;*/ /* 🔹 căn giữa theo chiều ngang */
    gap: 4px; /* 🔹 khoảng cách giữa name & badge */
    text-align: left;
}

.tour-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

    .tour-tags .tag {
        background: #e7f1ff;
        padding: 2px 8px;
        border-radius: 8px;
        font-size: 12px;
        color: #007bff;
    }

.tour-desc {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 4.8em;
}

    .tour-desc.expanded {
        max-height: none;
    }

.toggle-desc {
    display: inline-block;
    color: #0d6efd;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

    .toggle-desc:hover {
        text-decoration: underline;
    }

.tour-meta {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    color: #777;
    margin-bottom: 10px;
}
.flex-row {
    display: flex;
    align-items: center; /* căn giữa theo chiều dọc */
    justify-content: space-between; /* đẩy 2 bên ra xa nhau */
    gap: 10px;
}

    .flex-row .title {
        flex:9;
        font-size: 18px;
        font-weight: 700;
        margin: 0;
        color: #333;
        /*white-space: nowrap;*/ /* nếu muốn không xuống dòng */
        overflow: hidden;
        text-overflow: ellipsis; /* hiện “…” khi quá dài */
    }
.tour-price {
    flex: 1;
  
}
.tour-price .current {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.4rem;
    display: flex;
    align-items: baseline; /* giữ symbol và số trên cùng hàng */
}

.tour-price .old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    display: flex;
    align-items: baseline;
}

.symbol {
    margin-right: 2px;
    font-size: 0.9em; /* hơi nhỏ hơn một chút cho đẹp */
}

.btnTourCTA {
    width: 100%;
    margin-top: 10px;
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.2s;
}

    .btnTourCTA:hover {
        background: #084298;
    }
.verified-badge {
    display: grid;
    grid-template-columns: 20px auto; /* SVG 1 cột, text 1 cột */
    font-size: 13px;
/*    max-width: 120px;*/
    margin-top: -20px;
    /*    gap: 4px;*/
    word-break: break-word;
    margin-bottom: 10px
}

.badge-text {
    font-size: 12px;
    line-height: 1.2;
}
.tour-more {
    text-align: center;
    margin-top: 25px;
}

.current {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-right: 10px;
}

.old {
    font-size: 1rem;
    color: #95a5a6;
    text-decoration: line-through;
}


/* Responsive Design */

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .tour-card {
        width: 100% !important;
    }

}

@media (max-width: 1200px) {
    .tour-card {
        width: 320px;
    }
}

@media (max-width: 992px) {
    .tour-card {
        width: 300px;
    }

    .nav.prev {
        left: 10px;
    }

    .nav.next {
        right: 10px;
    }
}

/* ---- WRAPPER ---- */
.pagination-wrapper {
    width: 100%;
    display: flex;
    justify-content: center; /* 🔹 đảm bảo căn giữa ngang */
    align-items: center;
    margin-top: 20px;
}

/* ---- CONTAINER ---- */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    user-select: none;
}

/* ---- BUTTONS ---- */
.pagination-page,
.pagination-btn {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
    min-width: 36px;
}

    /* ---- ACTIVE ---- */
    .pagination-page.active {
        background: #ff7b00;
        color: #fff;
        border-color: #ff7b00;
    }

    /* ---- HOVER ---- */
    .pagination-page:hover:not(.active),
    .pagination-btn:hover:not(:disabled) {
        background: #f2f2f2;
    }

    /* ---- DISABLED ---- */
    .pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ---- ELLIPSIS ---- */
.pagination-ellipsis {
    padding: 6px 12px;
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
    .pagination-btn {
        display: none; /* Ẩn Previous / Next trên màn nhỏ */
    }

    .pagination-page {
        padding: 5px 10px;
        font-size: 13px;
    }
}




/* Responsive styles */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .filter-sidebar {
        flex: 1;
        width: 100%;
    }
}
/* 🔸 Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
}

.btn-close-filter {
    display: none;
}
@media (max-width: 768px) {
    .tours-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .user-actions {
        width: 100%;
        justify-content: space-between;
    }
    .mobile-filter-toggle {
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
        background: orange;
        color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 22px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
        cursor: pointer;
        z-index: 9999;
    }

        .mobile-filter-toggle:hover {
            background: darkorange;
        }

    /* Sidebar ẩn trên mobile */
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 10000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.25);
        overflow-y: auto;
        padding: 20px;
    }

        /* Khi bật class show-filter */
        .filter-sidebar.show-filter {
            transform: translateX(0);
        }

    /* Overlay nền mờ */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 9998;
    }

    /* Nút đóng (X) trong filter */
    .btn-close-filter {
        display: block;
        position: absolute;
        top: 10px;
        right: 15px;
        border: none;
        background: transparent;
        font-size: 26px;
        cursor: pointer;
        color: #666;
        z-index: 10001;
    }

        .btn-close-filter:hover {
            color: #000;
        }

}
.pagination-wrapper .pagination-container{
  display:flex !important;
  justify-content:center !important;
}
.pagination-container {
    display: flex;
    justify-content: center; /* căn giữa ngang */
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    user-select: none;
    margin-top: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.pagination-btn {
    background: linear-gradient(to bottom, #4a90e2, #357abd);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 16px;
    margin: 0 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 100px;
}

    .pagination-btn:hover:not(:disabled) {
        background: linear-gradient(to bottom, #5a9cec, #4688d3);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .pagination-btn:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    }

    .pagination-btn:disabled {
        background: linear-gradient(to bottom, #cccccc, #aaaaaa);
        color: #888888;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.page-info {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    min-width: 120px;
    text-align: center;
}
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .tour-meta {
        flex-direction: column;
        gap: 5px;
    }

    .tour-actions {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .view-details {
        width: 100%;
        text-align: center;
    }

}
