/* Global Body Styles */
body {
    font-family: 'Poppins', sans-serif; /* Default font for the site */
}

/* Page Container */
.page-container {
    max-width: 1260px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border-radius: 12px;
}

/* Section Titles */
.section-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 auto 0px; /* Add margin at the bottom */
    padding: 20px 0px; /* Match padding with card container */
    max-width: 1200px; /* Match the cards container width */
    box-sizing: border-box;
}

/* Vehicle Header */
.vehicle-header {
    text-align: center; /* Center align the heading */
    margin: 20px 0; /* Add some space around the heading */
    padding: 10px 0; /* Optional padding */
    background-color: #f5f5f5; /* Optional background color for better visibility */
    border-radius: 8px; /* Optional border radius */
}

h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 0; /* Remove margin for cleaner design */
    color: #333; /* Adjust the color to your theme */
}

.vehicle-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* Image Section with Shadow and Rounded Corners */
.vehicle-image-section {
    position: relative;
    flex: 1;
    max-width: 700px;
    margin: 0 auto; /* Center the image section */
    padding: 10px; /* Optional spacing around the container */
    box-sizing: border-box; /* Include padding in the width calculations */
}

/* Main Image Container */
.main-image-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto; /* Center the container */
}

/* Main Image */
.main-image {
    width: 100%; /* Ensure the image scales with the container */
    border-radius: 10px; /* Rounded corners */
    object-fit: cover; /* Maintain the aspect ratio and cover the container */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Add a shadow for a modern look */
}

/* Media Query for Mobile Devices (Tablets and Smaller) */
@media (max-width: 768px) {
    .vehicle-image-section {
        max-width: 90%; /* Reduce container width for smaller screens */
        padding: 5px; /* Adjust padding */
    }

    .main-image-container {
        max-width: 100%; /* Allow full width for smaller screens */
    }
}

/* Media Query for Very Small Devices (Phones) */
@media (max-width: 480px) {
    .vehicle-image-section {
        max-width: 100%; /* Use full width on small screens */
        padding: 5px; /* Slightly reduce padding */
    }

    .main-image-container {
        max-width: 100%; /* Ensure full width on small devices */
    }

    .main-image {
        border-radius: 5px; /* Slightly reduce corner rounding on smaller screens */
    }
}

/* Arrows for Navigation with Hover Effect */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 24px;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.left-arrow {
    left: 15px;
}

.right-arrow {
    right: 15px;
}

/* Thumbnail Container */
.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-top: 10px;
    justify-content: flex-start;  /* Align to the start to prevent cropping */
    max-width: 100%;  /* Allow the container to take the full width */
    margin: 0 auto;
    scrollbar-width: none; /* For Firefox */
}

.thumbnail-container::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Edge */
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s, border 0.3s;
    border: 2px solid transparent;
    flex-shrink: 0; /* Prevent the thumbnail from shrinking */
}

.thumbnail:hover,
.thumbnail.active {
    transform: scale(1.1);
    border-color: #007bff;
}

/* Vehicle Details Section */
.vehicle-details-section {
    flex: 1;
    background-color: #fefefe;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 450px;
}

.vehicle-details-section h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.final-bid {
    color: #28a745;
    font-size: 1.6em;
    font-weight: bold;
}

.status {
    color: #fff;
    background-color: #28a745;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 8px;
}

.seller {
    background-color: #ffeb3b;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.vehicle-details-section p {
    margin: 5px 0;
    color: #555;
    line-height: 1.5;
}

.vehicle-details-section strong {
    color: #333;
}

/* Card Layout */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

/* Individual Card Styling */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none; /* Remove default underline on link */
    color: inherit;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Card Image */
.card img {
    width: 100%;
    height: 200px; /* Fixed height for images */
    object-fit: cover; /* Ensure consistent image scaling */
}

/* Card Content */
.card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.card-content p {
    margin: 5px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.card-content .view-details {
    margin-top: 10px;
    display: inline-block;
    text-align: center;
    padding: 8px 12px;
    background-color: #007bff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.card-content .view-details:hover {
    background-color: #0056b3;
}

.price-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #28a745;
    color: #fff;
    padding: 5px 12px;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.view-details {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #007bff;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.view-details:hover {
    background-color: #007bff;
    color: #fff;
}

/* Header */
header {
    background-color: #2c3e50;
    padding: 20px 0;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 
   ADDED horizontal padding here so everything
   (logo, nav, search) lines up within container 
   on all screen sizes.
*/
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px; /* <--- Add left/right padding */
}

header h1 {
    font-size: 24px;
    font-weight: bold;
}

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

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #1abc9c;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form input {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    flex: 1; /* Grow input to fill available space */
}

.search-form button {
    padding: 10px 15px;
    font-size: 1rem;
    background-color: #1abc9c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #17a190;
}

/* Breadcrumbs */
.breadcrumbs {
    margin: 20px auto;
    max-width: 1200px;
    font-size: 14px;
    color: #555;
}

.breadcrumbs a {
    color: #1abc9c;
    text-decoration: none;
}

.breadcrumbs span {
    margin: 0 5px;
    color: #777;
}

/* Previous Lots Section */
.previous-lots-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.previous-lots-section .section-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
    margin: 0;
    padding: 10px;
    background-color: #e9ecef;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.previous-lots-section .section-title:hover {
    background-color: #d6d8db;
}

#previous-lots-container {
    margin-top: 15px;
}

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

.lot-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.lot-thumbnail {
    flex: 0 0 150px;
    height: 100px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lot-thumbnail img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.no-image {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #888;
    border-radius: 8px;
    font-size: 14px;
    font-style: italic;
}

.lot-info {
    flex: 1;
    font-size: 14px;
}

.lot-info p {
    margin: 5px 0;
}

.details-link {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.details-link:hover {
    text-decoration: underline;
}

/* Manufacturer Filter Styling */
.manufacturer-filter {
    display: flex;
    justify-content: flex-start; /* Align filters to the left */
    align-items: center;
    gap: 4%;
    margin: 20px auto;
    padding: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    max-width: 1180px;
}

.manufacturer-filter select {
    appearance: none;
    width: 22%; /* Each select takes ~22% of .manufacturer-filter */
    padding: 10px 15px;
    font-size: 0.9rem;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.manufacturer-filter select:focus,
.manufacturer-filter select:hover {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

.manufacturer-filter label {
    display: none; /* Hide labels if unnecessary */
}

/* --------------------- */
/* RESPONSIVE ADJUSTMENTS */
/* --------------------- */
@media (max-width: 768px) {

    /* Header: stack elements, but keep padding for container */
    .header-container {
        flex-direction: column; 
        align-items: center;
        text-align: center;
        padding: 0 15px; /* still keep horizontal padding on smaller screens */
    }

    /* Shrink header spacing on mobile */
    header {
        padding: 10px 0;
    }

    /* Navigation in a single row */
    nav ul {
        flex-direction: row;
        gap: 10px;
        margin: 10px 0 0;
        padding: 0;
    }

    nav li {
        display: inline-block;
    }

    nav li a {
        padding: 5px 10px;
        font-size: 0.9rem;
    }

    /* Make logo smaller if needed */
    .logo img {
        max-width: 100px; /* Adjust as needed */
        height: auto;
        padding-left: 10px;
    }

    /* Search Form: Stack input & button */
    .search-form {
        width: 100%;
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        box-sizing: border-box;
    }

    .search-form input,
    .search-form button {
        width: 100%;
        font-size: 1rem;
    }

    /* Manufacturer Filters Stacked */
    .manufacturer-filter {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .manufacturer-filter select {
        width: 90%;
        padding: 8px 10px;
        font-size: 1rem;
    }

    /* Title Centering */
    .section-title {
        text-align: center;
        margin: 15px 0;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    /* Adjust contact container padding */
    .contact-container {
        padding: 20px;
    }

    .contact-container h2 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .contact-form {
        gap: 15px;
    }
}

/* CONTACT PAGE STYLES */
.contact-page {
  background: linear-gradient(135deg, #f1f6f9, #ffffff);
  padding: 40px 20px; /* Extra spacing around the form */
  min-height: 70vh;   /* Ensure some vertical space */
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.contact-container h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #2c3e50;
  font-weight: 600;
}

.contact-thank {
  font-size: 1rem;
  color: #333;
  margin: 20px 0;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-group label span {
  color: #e74c3c; /* Red asterisk for required fields */
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-size: 1rem;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #1abc9c;
  box-shadow: 0 0 6px rgba(26,188,156,0.2);
}

/* Submit Button */
.contact-form button {
  align-self: center;
  background-color: #1abc9c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #17a190;
}

.btn {
  display: inline-block;         /* So it behaves like a button */
  padding: 10px 16px;            /* Spacing around the text */
  border-radius: 5px;            /* Rounded corners */
  text-decoration: none;         /* Remove underline */
  font-weight: 600;              /* Semi-bold text */
  color: #fff;                   /* Text color on button */
  background-color: #007bff;     /* Default color (blue) */
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: #0056b3;     /* Darker shade on hover */
}

.btn-danger {
  background-color: #dc3545;     /* Red variant for "danger" actions */
}

.btn-danger:hover {
  background-color: #c82333;     /* Darker red on hover */
}