* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  color: #111111;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.logoImg {
  height: 60px;
  width: auto;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  background: #000000;
  color: #ffffff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #222;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text small {
  font-size: 0.75rem;
  font-weight: 400;
  color: #cccccc;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: #cccccc;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
}

.filters {
  padding: 40px 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  border-bottom: 1px solid #e5e5e5;
}

.filter-btn {
  background: white;
  border: 1px solid #222;
  color: #222;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #111;
  color: white;
  border-color: #111;
}

.inventory {
  padding: 48px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.car-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  opacity: 1;
}

.car-card.hidden {
  display: none;
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.car-image {
  height: 220px;
  background: #f9f9f9;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.car-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.car-meta {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.price-section {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.listing-price {
  font-size: 1.25rem;
  color: #777;
  text-decoration: line-through;
}

.sales-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #006400;
}

footer {
  padding: 4rem 0 3rem;
  background: #f8f9fa;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.95rem;
  text-align: center;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}

.footer-info,
.footer-legal {
  flex: 1;
  min-width: 220px;
}

.footer-address strong,
.footer-phone strong {
  color: #111827;
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.footer-address,
.footer-phone {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-phone a {
  color: #006400;
  font-weight: 500;
  text-decoration: none;
}

.footer-phone a:hover {
  text-decoration: underline;
}

.footer-legal p {
  margin: 0.5rem 0;
}

.footer-legal a {
  color: #374151;
  text-decoration: underline;
}

.footer-legal a:hover {
  color: #111827;
}

.footer-social {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-social a {
  color: #4b5563;
  font-size: 2rem;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.footer-social a:hover {
  color: #111827;
  transform: translateY(-4px);
}

.footer-copyright {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* about section */
.about-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
}

.about-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
}

.about-hero p.subtitle {
  font-size: 1.25rem;
  color: #4b5563;
  max-width: 700px;
  margin: 0 auto;
}

.about-content {
  padding: 60px 0;
}

.about-section {
  margin-bottom: 60px;
}

.about-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

.about-section p {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.about-section ul {
  list-style: none;
  padding-left: 0;
  font-size: 1.1rem;
  color: #4b5563;
}

.about-section ul li {
  margin-bottom: 1rem;
  padding-left: 1.8rem;
  position: relative;
}

.about-section ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #006400;
  font-weight: bold;
}

.contact-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
}

.contact-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #111827;
}

.contact-hero p {
  font-size: 1.25rem;
  color: #4b5563;
  max-width: 700px;
  margin: 0 auto;
}

.contact-content {
  padding: 60px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 320px;
  max-width: 500px;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #111827;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #4b5563;
}

.contact-info a {
  color: #006400;
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

form {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  background: white;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button[type="submit"] {
  background: #006400;
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background: #004d00;
}

/* 
vehicle */

/* ── Gallery (inside left column) ──────────────────────────────── */
.gallery {
  margin-bottom: 2rem;
  position: relative;
}

.main-photo-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  margin-bottom: 12px;
}

.main-photo {
  width: 100%;
  height: 100%;
}

.main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.main-photo img:hover {
  transform: scale(1.03);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

.thumbnails-wrapper {
  max-width: 100%;
  overflow: hidden; /* important: prevent overflow pushing page */
}

.thumbnails {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  justify-content: flex-start;
  padding: 8px 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.thumbnails::-webkit-scrollbar {
  height: 6px;
}

.thumbnails::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.thumbnails::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.thumbnail {
  width: 100px;
  height: 67px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s ease;
  background: #f9f9f9;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail.active,
.thumbnail:hover {
  border-color: #006400;
  transform: scale(1.08);
}

/* ── Vehicle Info ──────────────────────────────────────────────── */
.vehicle-info {
  padding: 40px 0 60px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.vehicle-main-details h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

.vehicle-price {
  font-size: 3.2rem;
  font-weight: 800;
  color: #006400;
  margin: 0.5rem 0 1.5rem;
}

.vehicle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #555;
}

.vehicle-meta span {
  background: #f0f0f0;
  padding: 8px 16px;
  border-radius: 999px;
}

.vehicle-description h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

.features-list {
  columns: 2;
  column-gap: 3rem;
  list-style: none;
}

.features-list li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.8rem;
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #006400;
  font-weight: bold;
}

/* Sidebar */
.vehicle-sidebar {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.vehicle-sidebar h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  color: #111827;
}

.vehicle-sidebar ul {
  list-style: none;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.vehicle-sidebar ul li {
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    padding: 20px 0;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 24px;
    top: 28px;
  }

  .filters {
    padding: 32px 0 24px;
  }
  .inventory {
    padding: 32px 0;
    gap: 24px;
  }
  .car-image {
    height: 200px;
  }
  .price-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .sales-price {
    font-size: 1.6rem;
  }
  .listing-price {
    font-size: 1.1rem;
  }

  .footer-main {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-social {
    gap: 1.75rem;
    margin-top: 1.5rem;
  }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .vehicle-info {
    grid-template-columns: 1fr;
  }

  .vehicle-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    padding: 20px 0;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 24px;
    top: 28px;
  }

  .main-photo-container {
    height: 280px;
  }

  .thumbnail {
    width: 80px;
    height: 54px;
  }

  .arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }

  .vehicle-info {
    padding: 30px 0 50px;
  }

  .vehicle-main-details h1 {
    font-size: 2.2rem;
  }

  .vehicle-price {
    font-size: 2.5rem;
  }

  .vehicle-sidebar {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .main-photo-container {
    height: 220px;
  }

  .thumbnails {
    gap: 8px;
    padding: 6px 0;
  }

  .thumbnail {
    width: 70px;
    height: 47px;
  }
}
