/* Base Styles */
body {
  background: linear-gradient(135deg, #dbe4f0 0%, #c5d5e8 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Typography */
h1 {
  font-size: 3.5rem;
  color: #1e3a5f;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.2rem;
  color: #2c5282;
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

h3 {
  font-size: 1.7rem;
  color: #1e3a5f;
  margin: 1rem 0 0.5rem 0;
  font-weight: 600;
}

/* Links */
a {
  color: #f97316;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ea580c;
  text-decoration: none;
}

.lead {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: #555;
}

tr {
  vertical-align: top;
}

/* Header Styles */
header {
  margin-bottom: 2rem;
}

/* Page Sections */

.page-top
{
  margin-top: 1em; 
  padding-top: 1em;
}

.instructions {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  margin-top: 1em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.manufacturer-list {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.manufacturer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.manufacturer-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #2c5282;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.manufacturer-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.25);
}

/* Lists and Content */
.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  padding: 0.5rem 0;
  border-left: 3px solid #2c5282;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  background: rgba(44, 82, 130, 0.1);
}

/* Car Listings */
.car-listings {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.car-list, .vehicle-list {
  list-style: none;
  padding: 0;
}

.car-item, .listing-item {
  background: #f8f9fa;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #1e3a5f;
  position: relative;
}

.car-item::before, .listing-item::before {
  position: absolute;
  top: -10px;
  left: -10px;
  background: #f97316;
  color: #1e3a5f;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.car-title, .vehicle-title {
  font-size: 1.5rem;
  color: #1e3a5f;
  margin-bottom: 1rem;
  font-weight: 600;
}

table.vehicle-details {
  width: 100%;
  margin-top: 1rem;
}

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

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

.label {
  font-weight: 600;
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.value {
  font-size: 1rem;
  color: #1e3a5f;
  font-weight: 500;
}

.field1 {
  font-weight: 600;
  color: #1e3a5f;
  width: 20%;
}

.field2 {
  font-weight: 600;
  color: #1e3a5f;
  width: 20%;
}

.car-description {
  border-top: 1px solid #cbd5e1;
  padding-top: 1rem;
}

.car-description p {
  margin: 0.5rem 0 0 0;
  color: #555;
  line-height: 1.5;
}

/* Page Info and Results */
.page-info {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #64748b;
  margin: 0;
}

.page-info p {
  margin: 0;
  font-weight: 500;
  color: #1e3a5f;
}

.results-summary {
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.results-summary p {
  margin: 0;
  font-weight: 500;
  color: #1e3a5f;
}

/* Navigation */
nav {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

nav a, nav span {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav a {
  background: #e0e7f0;
  color: #1e3a5f;
  border: 1px solid #2c5282;
}

nav a:hover {
  background: #2c5282;
  color: #f8f9fa;
}

nav span {
  background: #1e3a5f;
  color: #f8f9fa;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.9);
  color: #7f8c8d;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.footer p {
  margin: 0;
}


/* Enhanced responsive design and mobile optimization */
@media (max-width: 992px) {
  .details-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .manufacturer-links {
    grid-template-columns: 1fr;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .logo img {
    width: 100%;
    max-width: 400px;
  }
  
  h1 {
    font-size: 2rem;
    text-align: center;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .car-title {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .car-item {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .car-listings {
    padding: 1rem;
  }
  
  .detail-item {
    background: rgba(44, 82, 130, 0.05);
    padding: 0.75rem;
    border-radius: 4px;
    border-left: 3px solid #2c5282;
  }
  
  nav {
    padding: 1rem;
  }
  
  nav a, nav span {
    padding: 0.75rem;
    margin: 0.125rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .car-item::before {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
    top: -8px;
    left: -8px;
  }
  
  .details-grid {
    gap: 0.5rem;
  }
  
  .detail-item {
    padding: 0.5rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .car-title {
    font-size: 1.2rem;
  }
}
