﻿
.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.8); /* 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;
    align-items: center;
    justify-content: space-between;
    background: #f9fbfc;
    padding: 12px 16px;
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

/* --- Left side (search box + button) --- */
.search-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 300px;
}

.search-container {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 10px 36px 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

    .search-input:focus {
        border-color: #ff7b00;
        box-shadow: 0 0 0 3px rgba(255, 123, 0, 0.15);
    }

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

/* --- Button --- */
.btn-search {
    background: #ff7b00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

    .btn-search:hover {
        background: #e36d00;
    }

/* --- Sort section --- */
.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

    .sort-options label {
        font-size: 14px;
        color: #333;
    }

.sort-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #f4f4f4;
    cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-options {
        justify-content: flex-end;
    }
}


.guide-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: start;
    padding: 20px;
}

.guide-card {
    width: 380px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .guide-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    }

.guide-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.guide-card-avarta {
    flex:1;
    display: flex;
    flex-direction: column; /* nằm trên - dưới */
    align-items: flex-start; /* căn giữa theo chiều ngang */
    /*gap: 6px;*/ /* khoảng cách giữa avatar và badge */
    font-size:13px
}

.guide-avatar {
    width:90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
}
.guide-info {
    flex: 2;
    display: flex;
    flex-direction: column;
    text-align:match-parent
}
.guide-info h3 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.guide-location,
.guide-lang {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.guide-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
/*    color: #444;*/
    margin-top: 8px;
    gap:1px;
}


    .guide-stats span {
        display: flex; /* Căn icon + chữ cùng hàng */
        align-items: center; /* Căn giữa theo chiều dọc */
        gap: 5px; /* Khoảng cách icon - chữ */
    }

    .guide-stats i {
        font-size: 12px;
        /*color: #ff7a18;*/ /* Màu cam đồng nhất với theme bạn */
    }


.guide-stats small {
    font-size: 12px;
    color: #777;
}

.text-yellow {
    color: #f7c948;
}

.guide-tags {
    margin-top: 10px;
}

.tag {
    background: #e3ecff;
    color: #0044cc;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 6px;
}

.guide-desc {
    font-size: 14px;
    color: #333;
    margin: 10px 0;
    line-height: 1.5;
    min-height: 60px;
}

.toggle-desc {
    color: #007bff;
    font-size: 13px;
    cursor: pointer;
}

.btn-view {
    margin-top: auto;
    padding: 10px 18px;
    background: #0069ff;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

    .btn-view:hover {
        background: #004fcc;
    }



/* 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 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-container {
    align-items: center;
    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;
    }

}

