/* ===== Line List Page Styles ===== */

/* Overall Background - Light Brown/Beige */
main {
    background-color: #f5f3ef;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Layout */
.line-list-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding-top: 92px;
    padding-bottom: 20px;
}

/* Sidebar Filters */
.filters-sidebar {
    position: sticky;
    top: calc(var(--header-height, 72px) + 20px);
    align-self: start;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - var(--header-height, 72px) - 40px);
    overflow-y: auto;
    cursor: grab;
}

.filters-sidebar:active {
    cursor: grabbing;
}

.filters-sidebar::-webkit-scrollbar {
    width: 0;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.filter-group-title::after {
    content: '−';
    font-size: 1.2rem;
    font-weight: 400;
    color: #999;
    transition: transform 0.3s ease;
}

.filter-group.collapsed .filter-group-title::after {
    content: '+';
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.filter-group.collapsed .filter-list {
    max-height: 0;
    opacity: 0;
    margin-top: -12px;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list a {
    display: block;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filter-list a:hover,
.filter-list a.active {
    background: #f5f3ef;
    color: #27ae60;
    font-weight: 600;
}

/* Main Content Area */
.list-main-content {
    min-width: 0;
}

/* Selected Filters Bar */
.selected-filters-bar {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.selected-filters-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-right: 16px;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #8b7d6b;
    color: #fff;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.filter-tag .remove-tag {
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.filter-tag .remove-tag:hover {
    opacity: 1;
}

.clear-filters-btn {
    font-size: 0.85rem;
    color: #999;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.clear-filters-btn:hover {
    color: #27ae60;
}

/* Tour List Items */
.tour-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tour-list-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tour-list-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.tour-list-img {
    width: 300px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.tour-list-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tour-list-header {
    margin-bottom: 12px;
}

.tour-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tour-list-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.tour-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.tour-list-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: #999;
}

.meta-icon {
    font-size: 1rem;
}

.tour-list-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
}

.price-unit {
    font-size: 0.8rem;
    color: #999;
}

.btn-book-now {
    padding: 10px 24px;
    background: #8b7d6b;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-book-now:hover {
    background: #27ae60;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .line-list-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .filter-group {
        margin-bottom: 0;
    }

    .tour-list-img {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .line-list-layout {
        padding-top: 20px;
    }

    .filters-sidebar {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px;
    }

    .selected-filters-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }

    .selected-tags {
        width: 100%;
    }

    .tour-list-item {
        flex-direction: column;
    }

    .tour-list-img {
        width: 100%;
        height: 200px;
    }

    .tour-list-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn-book-now {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .filters-sidebar {
        grid-template-columns: 1fr;
        padding-top: 55px;
    }

    .tour-list-title {
        font-size: 1rem;
    }

    .tour-list-desc {
        font-size: 0.8rem;
    }
}

/* ===== Pagination ===== */
.pagination-container {
    margin-top: 56px;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

#hotelPagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

#hotelPagination .laypage {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#hotelPagination .laypage a,
#hotelPagination .laypage span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

#hotelPagination .laypage a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.25);
}

#hotelPagination .laypage .laypage_this {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: var(--primary);
    position: relative;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transform: scale(1.05);
}

#hotelPagination .laypage .laypage_disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    border-style: dashed;
}

#hotelPagination .laypage .laypage_disabled:hover {
    background: var(--bg-white);
    color: var(--text-secondary);
    border-color: var(--border-color);
    transform: none;
    box-shadow: none;
}

#hotelPagination .laypage .laypage_count {
    padding: 0 20px;
    font-size: 0.95rem;
    color: var(--text-primary);
    border: 2px solid transparent;
    background: var(--bg-light);
    cursor: default;
    font-weight: 500;
}

#hotelPagination .laypage .laypage_count:hover {
    background: var(--bg-light);
    color: var(--text-primary);
    transform: none;
    box-shadow: none;
}

/* Line List Responsive - Pagination */
@media (max-width: 768px) {
    .pagination-container {
        margin-top: 40px;
        padding: 24px 0;
    }

    #hotelPagination .laypage {
        gap: 8px;
    }

    #hotelPagination .laypage a,
    #hotelPagination .laypage span {
        min-width: 38px !important;
        height: 38px !important;
        padding: 0 12px !important;
        font-size: 0.9rem !important;
        border-width: 1.5px !important;
    }

    #hotelPagination .laypage .laypage_count {
        padding: 0 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    #hotelPagination .laypage {
        gap: 6px;
    }

    #hotelPagination .laypage a,
    #hotelPagination .laypage span {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 0.85rem;
        border-width: 1.5px;
    }

    #hotelPagination .laypage .laypage_count {
        display: none;
    }
}

.laypage_main span{
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
}
.laypage_main a {
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    text-decoration: none;
    color: #666;
}
