/* General Body & Typography */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
}

.content-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 1. Top Banner & Navigation */
/* .top-banner {
    background-color: #fff;
    border-bottom: 2px solid #ddd;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #007bff;
} */

/* 2. Search & Filters */
.filter-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.filter-inputs-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item-group {
    display: flex;
    gap: 10px;
}

.filter-item label {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.filter-item input {
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    width: 100px;
}

.search-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    display: flex;
    align-items: flex-end;
}

.search-button:hover {
    background-color: #0056b3;
}

/* 3. Auction Listings */
.section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.auctions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auction-link {
    text-decoration: none; /* Removes the underline from the link */
    color: inherit; /* Inherits text color from the parent, preventing blue link text */
}

.auction-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    transition: background-color 0.3s ease; /* Smooth transition for the hover effect */
}

.auction-box:hover {
    background-color: #f0f0f0; /* Changes the background color to a light gray on hover */
    cursor: pointer; /* Changes the cursor to a pointer to indicate it's clickable */
}

.auction-image {
    width: 270px;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
}

.auction-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.auction-details {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    /* align-items: flex-end; */
}

.car-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 300px;
}

.car-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 16px;
    margin-bottom: 5px;
}

.info-row i {
    color: #007bff;
}

.timer {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end; 
}

.auction-observation {
    align-self: center;
    margin-top: auto;
}

.auction-action-add-to-observed, 
.auction-action-remove-from-observed {
    /* background-color: #f0f0f0; */
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    /* border: 1px solid #ccc; */
    display: block;
    transition: all 0.2s ease;
    user-select: none;
}

.auction-action-add-to-observed:hover, 
.auction-action-remove-from-observed:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
    text-decoration: none;
}

.timer-label {
    font-size: 16px;
    color: #777;
    text-transform: uppercase;
    padding: 5px 10px;
}

.countdown {
    background-color: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
    margin-top: 5px;
}

.vehicle-filter-buttons {
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: space-between;
}

.vehicle-filter-buttons-container {
    justify-content: center; 
    border-bottom: none;
    padding: 20px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Individual custom button */
.custom-filter-button {
    /* Resetting desktop flex-grow/basis to allow natural sizing based on content */
    flex-grow: 0;
    flex-basis: auto; 
    text-align: left;
    padding: 0; /* Remove padding from link element as it's added to button-content */
    border-bottom: none; /* Remove red border */
    text-decoration: none;
}

.custom-filter-button .button-content {
    flex-direction: row; 
    gap: 8px; 
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 20px; 
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

/* Style for the icons within the buttons */
.custom-filter-button .button-content i {
    font-size: 16px; /* Icon size */
    margin-bottom: 0; /* Remove vertical margin */
    color: #007bff; /* A color for the icon, using the primary blue */
}

/* Hover state for better UX */
.custom-filter-button:hover .button-content:not(.filter-button--selected) {
    background-color: #e0e0e0; /* Slightly darker gray on hover */
    border-color: #ccc;
    color: #333; /* Ensure text remains dark */
}

/* Styles for the *selected* filter button */
.custom-filter-button.filter-button--selected .button-content {
    background-color: #007bff; /* Primary blue background */
    color: #fff; /* White text for contrast */
    border-color: #007bff; /* Solid border to match background */
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3); /* Subtle blue shadow for lift */
}

/* Make the icon white in the selected state */
.custom-filter-button.filter-button--selected .button-content i {
    color: #fff;
}

/* Hero Banner Styles */
.hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('/static/azs_lite/images/CHTA_banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    align-items: center;
}

/* Left Side Search */
.hero-search-area {
    flex: 1;
    max-width: 500px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    box-sizing: border-box;
    border-radius: 8px;
    border: none;
    font-size: 16px;
}

.range-inputs {
    display: flex;
    gap: 10px;
}

.range-inputs input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    background-color: #ffffff;
}

.btn-submit-red {
    background-color: #e30613;
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    float: right;
    transition: transform 0.2s;
}

/* Right Side Box */
.hero-info-box {
    flex: 1;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-info-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.hero-info-box p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.login-hint {
    margin-top: 20px;
    font-weight: bold;
}

/* Layout for the inputs inside the form */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allows stacking on smaller screens */
}

.form-group {
    flex: 1;
    min-width: 200px; /* Ensures they don't get too narrow */
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.btn-submit-red:hover {
    transform: scale(1.05);
    background-color: #c40510;
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
    }
    .hero-info-box {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 1.9rem;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .hero-banner {
        padding: 10px 20px;
    }

    .custom-filter-button .button-content {
        background-color: #fff;
        color: #333;
        border: 0;
        padding: 2px 6px;
        border-radius: 20px; 
        font-size: 18px;
        font-weight: 600;
        transition: all 0.2s ease-in-out;
    }

    .custom-filter-button .button-content i {
        font-size: 18px;
    }

    .custom-filter-button .button-content span {
        display: none;
    }

    .custom-filter-button:first-of-type .button-content span {
        display: inline;
    }

    .auction-box {
        flex-direction: column;
        gap: 10px;
    }

    .auction-image {
        flex: 2;
        overflow: hidden;
        width: 100%;
        height: auto;
        max-height: 200px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .auction-image img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }

    .auction-details {
        flex-direction: column;
        gap: 10px;
    }

    .car-info {
        text-align: left;
        align-items: flex-start;
        max-width: 360px;
    }

    .timer {
        text-align: left;
        align-items: flex-start;
        display: block;
    }

    .countdown {
        margin-top: 0;
    }
}
