* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f8f9fa;
}

/* Header Styles */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-name {
    font-size: 24px;
    font-weight: bold;
    color: #FF0000;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #4A90E2;
}

.header-actions {
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
    text-decoration: none;
    color: inherit;
}

.user-profile:hover {
    background: #f0f0f0;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.dropdown-arrow {
    font-size: 12px;
    color: #666;
}

/* Search Section */
.search-section {
    background: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #666;
    z-index: 1;
}

.input-group .form-control {
    padding-left: 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 45px;
}

.btn-search-cars {
    align-self: flex-end;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Catalog Section */
.catalog-section {
    padding: 40px 0;
}

/* Filters Sidebar */
.filters-sidebar {
    margin-bottom: 30px;
}

.filters-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.filters-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: block;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: color 0.3s;
}

.filter-checkbox:hover {
    color: #333;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4A90E2;
}

.btn-clear-filters {
    width: 100%;
    padding: 10px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-clear-filters:hover {
    background: #e0e0e0;
    color: #333;
}

/* Catalog Content */
.catalog-content {
    padding-left: 30px;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.catalog-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.catalog-count {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.catalog-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-select {
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: #f0f0f0;
    padding: 5px;
    border-radius: 5px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

.view-btn.active {
    background: white;
    color: #4A90E2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.view-btn:hover {
    color: #4A90E2;
}

/* Cars Grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.car-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cars-grid.list-view {
    grid-template-columns: 1fr;
}

.car-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.cars-grid.list-view .car-card {
    flex-direction: row;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.car-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cars-grid.list-view .car-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.car-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.car-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.car-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 10px;
}

.car-rating span {
    color: #333;
    font-weight: 600;
}

.car-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.car-features {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feature-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.feature-icon i {
    color: #4A90E2;
}

.feature-text {
    color: #333;
    font-weight: 500;
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.car-price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.car-price small {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.btn-book {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    background: #f0f0f0;
    color: #4A90E2;
}

.page-item.active .page-link {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

/* Footer */
.main-footer {
    background: #1F2937;
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-link {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .catalog-content {
        padding-left: 0;
        margin-top: 30px;
    }

    .filters-card {
        position: static;
    }

    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-controls {
        width: 100%;
        justify-content: space-between;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .cars-grid.list-view .car-card {
        flex-direction: column;
    }

    .cars-grid.list-view .car-image {
        width: 100%;
    }

    .search-form .row {
        flex-direction: column;
    }

    .btn-search-cars {
        align-self: stretch;
    }
}