﻿/* --- PHẦN BỔ SUNG ĐỂ TRANG WEB ĐẸP HƠN --- */
:root {
    --primary-blue: #3563e9;
    --bg-body: #f6f7f9;
    --text-muted: #90a3bf;
    --border-color: #e0e4ec;
}


body {
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    color: #1a202c;
}

.container-main {
    max-width: 1350px;
    margin: 5px auto;
    padding: 0 15px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.search-wrapper {
    display: flex;
    position: relative;
    flex: 1;
    max-width: 450px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

    .search-wrapper i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-muted);
    }

    .search-wrapper input {
        width: 100%;
        border: none;
        padding: 12px 12px 12px 45px;
        border-radius: 12px;
        outline: none;
    }

.sort-group {
    display: flex;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--border-color);
}
.btn-backhome {
    display: inline-block;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
/*    background: linear-gradient(135deg, #6e8efb, #a777e3);*/
background:#3563e9;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    user-select: none;
/*    margin-top:10000px;*/
}

    /* Hiệu ứng khi di chuột vào */
    .btn-backhome:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        filter: brightness(1.1);
    }

    /* Hiệu ứng khi nhấn giữ */
    .btn-backhome:active {
        transform: translateY(0);
    }
.sort-item {
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    color: var(--text-muted);
    transition: 0.3s;
}

    .sort-item.active {
        background: var(--primary-blue);
        color: #fff;
    }

.content-layout {
    display: flex;
    gap: 30px;
}

.sidebar-filter {
    width: 280px;
    flex-shrink: 0;
}

.filter-box {
    margin-bottom: 30px;
}

.filter-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    color: #596780;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 5px;
    transition: 0.2s;
}

    .filter-item:hover {
        background: #fff;
        color: var(--primary-blue);
    }

    .filter-item.active {
        background: var(--primary-blue);
        color: #fff;
    }

    .filter-item i {
        font-size: 14px;
        opacity: 0.7;
    }

.range-wrapper {
    padding: 10px 5px;
}

.range-slider {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 5px;
    -webkit-appearance: none;
    outline: none;
}

    .range-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        background: var(--primary-blue);
        border: 3px solid #fff;
        border-radius: 50%;
        cursor: pointer;
    }

.range-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
    align-items: center;
}

    .range-info strong {
        font-size: 16px;
        color: var(--primary-blue);
    }

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
    width: 100%;
}

.car-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    transition: 0.3s;
    border: 1px solid #f0f0f0;
}

    .car-card:hover {
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    }

.card-top {
    display: flex;
    justify-content: space-between;
}

.car-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}

.wish-btn {
    color: #ed3f3f;
    cursor: pointer;
    font-size: 20px;
}

.img-container {
    height: 160px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .img-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.spec-item {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-wrap {
    font-size: 20px;
    font-weight: 700;
}

    .price-wrap span {
        font-size: 13px;
        color: var(--text-muted);
        font-weight: 400;
    }

.btn-rent {
    background: var(--primary-blue);
    color: #fff;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

    .btn-rent:hover {
        background: #274cc9;
        color: #fff;
    }
.content-layout{
    display:flex;
    gap:25px;
}

.sidebar-filter{
    width:260px;
}

.right-content{
    flex:1;
}

.car-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}
/*thanh kq tìm kiếm*/
.result-count{
    margin-bottom:20px;
    font-size:25px;
    font-weight:500;
}

.pagination-container {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}
:root {
    --primary-blue: #3563e9;
    --primary-hover: #1a49d6;
    --bg-body: #f6f7f9;
    --text-main: #1a202c;
    --text-muted: #90a3bf;
    --white: #ffffff;
    --shadow-soft: 0 10px 20px rgba(0, 0, 0, 0.04);
    --shadow-strong: 0 15px 35px rgba(53, 99, 233, 0.15);
}

/* Nâng cấp Container */
.container-main {
    padding: 40px 20px;
    background-color: var(--bg-body);
}

/* Thanh tìm kiếm tinh tế hơn */
.search-wrapper {
    transition: all 0.3s ease;
    border: 1px solid #c3d4ee !important;
}

    .search-wrapper:focus-within {
        border-color: var(--primary-blue) !important;
        box-shadow: 0 0 0 4px rgba(53, 99, 233, 0.1);
        transform: translateY(-2px);
    }

/* Nút Sắp xếp (Sort) */
.sort-group {
    padding: 6px !important;
    background: #ffffff;
}

.sort-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

    .sort-item:hover:not(.active) {
        background: #f0f5ff;
        color: var(--primary-blue);
    }

/* Sidebar & Filters */
.filter-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px !important;
}

.filter-item {
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px;
}

/* Card Xe (Quan trọng nhất) */
.car-card {
    border: none !important;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .car-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-strong);
    }

.car-title {
    font-size: 20px !important;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* Hình ảnh xe có hiệu ứng zoom nhẹ */
.img-container {
    transition: transform 0.5s ease;
}

.car-card:hover .img-container {
    transform: scale(1.05);
}

/* Nút đặt xe */
.btn-rent {
    box-shadow: 0 5px 15px rgba(53, 99, 233, 0.3);
}

    .btn-rent:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(53, 99, 233, 0.4);
    }

/* Trái tim yêu thích */
.wish-btn {
    transition: all 0.3s;
}

    .wish-btn:hover {
        transform: scale(1.2);
        color: #ff4d4d;
    }

    .wish-btn i {
        font-weight: 400;
    }

/* Cải thiện Slider giá */
.range-slider {
    cursor: pointer;
}

.range-info strong {
    background: #f0f5ff;
    padding: 4px 10px;
    border-radius: 6px;
}

/* CSS CHO PHÂN TRANG (PagedList) - Giúp nút đẹp hơn */
.pagination-container .pagination {
    display: flex;
    list-style: none;
    gap: 8px;
    margin-top:-70px;
}

.pagination-container li {
    display: inline-block;
}

    .pagination-container li a, .pagination-container li span {
        padding: 10px 18px;
        border-radius: 8px;
        background: white;
        color: var(--text-main);
        text-decoration: none;
        font-weight: 600;
        border: 1px solid var(--border-color);
        transition: 0.3s;
    }

    .pagination-container li.active span {
        background: var(--primary-blue);
        color: white;
        border-color: var(--primary-blue);
    }

    .pagination-container li a:hover {
        background: #f0f5ff;
        color: var(--primary-blue);
        border-color: var(--primary-blue);
    }

/* Responsive tinh chỉnh */
@media (max-width: 768px) {
    .content-layout {
        flex-direction: column;
    }

    .sidebar-filter {
        width: 100%;
    }

}
