

main {
margin-top: 50px;
padding: 2rem 0;
}

.page-header {
background: white;
padding: 2rem 0;
margin-bottom: 2rem;
}

.page-header h1 {
font-size: 2.5rem;
margin-bottom: 0.5rem;
color: #333;
}

.page-header p {
color: #666;
font-size: 1.1rem;
}

/* Filter Section */
.filter-section {
background: white;
padding: 2rem;
border-radius: 8px;
margin-bottom: 2rem;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-section h3 {
margin-bottom: 1.5rem;
color: #333;
font-size: 1.3rem;
}

.filter-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-bottom: 1.5rem;
}

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

.filter-group,
.sort-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
}
.custom-dropdown {
  position: relative;
  width: 100%;
  max-width: 300px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  transition: border 0.3s ease;
}

.custom-dropdown:focus,
.custom-dropdown.open {
  border-color: #9e002e;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.custom-dropdown .selected {
  padding: 0.8rem 1rem;
  color: #333;
}

.custom-dropdown .dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 250px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

.custom-dropdown.open .dropdown-options {
  display: block;
}

.custom-dropdown .dropdown-options li {
  padding: 0.8rem 1rem;
  color: #333;
  transition: background 0.2s;
}

.custom-dropdown .dropdown-options li:hover {
  color: #9e002e;
}

/* Filter section box */
.filter-section {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* Sort section alignment */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-actions {
display: flex;
gap: 1rem;
}

.btn-apply {
background: #9e002e;
color: white;
padding: 0.8rem 1.5rem;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
transition: background 0.3s;
}

/* Results Section */
.results-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}

.results-count {
color: #666;
font-size: 1rem;
}

.sort-section {
display: flex;
align-items: center;
gap: 1rem;
}

.sort-section label {
color: #333;
font-weight: 500;
}

.sort-section select {
padding: 0.5rem;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
}

/* Vehicle Grid */
.vehicle-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}

.vehicle-card {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
transition: transform 0.3s, box-shadow 0.3s;
position: relative;
display: flex;
flex-direction: column;
}

.vehicle-card:hover {
transform: translateY(-5px);
box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.vehicle-image {
width: 100%;
height: 250px;
background-size: cover;
background-position: center;
position: relative;
flex-shrink: 0;
}

.vehicle-badge {
position: absolute;
top: 10px;
right: 10px;
background: rgba(0,0,0,0.7);
color: white;
padding: 0.3rem 0.8rem;
border-radius: 20px;
font-size: 0.8rem;
font-weight: bold;
}

.vehicle-badge.featured {
background: #9e002e;
}

.vehicle-badge.new-arrival {
background: #2e7d32;
}

.vehicle-info {
padding: 1.5rem;
display: flex;
flex-direction: column;
flex: 1;
}

.vehicle-info > a:last-child {
margin-top: auto;
}

.vehicle-title {
font-size: 1.3rem;
font-weight: bold;
margin-bottom: 0.5rem;
color: #333;
line-height: 1.3;
min-height: calc(1.3em * 2);
word-break: break-word;
}

.vehicle-price {
font-size: 1.5rem;
font-weight: bold;
color: #9e002e;
margin-bottom: 1rem;
}

.vehicle-location {
color: #666;
font-size: 0.9rem;
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.3rem;
}

.vehicle-specs {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
margin-bottom: 1.5rem;
}

.spec-item {
display: flex;
align-items: center;
gap: 0.5rem;
color: #666;
font-size: 0.9rem;
}

.spec-icon {
width: 16px;
height: 16px;
color: #999;
}

.btn-details {
width: 100%;
background: #9e002e;
color: white;
padding: 0.8rem;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1rem;
transition: background 0.3s;
}

/* Pagination */
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
margin: 2rem 0;
}

.pagination a,
.pagination span {
padding: 0.5rem 1rem;
text-decoration: none;
color: #666;
border: 1px solid #ddd;
border-radius: 4px;
transition: all 0.3s;
}

.pagination a:hover {
background: #9e002e;
color: white;
border-color: #9e002e;
}

.pagination .current {
background: #9e002e;
color: white;
border-color: #9e002e;
}
