/* RESET AND BASE STYLES */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Roboto Slab', serif;
  background-color: #227db1;
  color: #333;

}

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex-grow: 1;
  padding: 20px 40px;
  background: transparent;
  margin: 0;
}

/* HEADER */
.site-header {
  background-color: #222;
  padding: 10px 20px;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

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

.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 8px;
  transition: background 0.3s ease;
}

.nav-links li a:hover {
  background-color: #444;
  border-radius: 5px;
  color: #fa003f;
}

/* FOOTER */
.site-footer {
  background-color: #1a1a1a;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: auto;
}

.site-footer .social-links {
  margin-top: 10px;
}

.site-footer .social-links a img {
  width: 24px;
  height: 24px;
  margin: 0 10px;
  vertical-align: middle;
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  background: white;
  height: 3px;
  width: 25px;
  display: block;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    margin-left: auto;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background-color: #222;
    padding: 10px 0;
    z-index: 999;
    flex-direction: column;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    text-align: center;
    width: 100%;
  }
}

/* SEARCH SECTION */
/* ===== SEARCH SECTION WITH BANNER ===== */
.search-section {
  position: relative; /* Required for overlay positioning */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  align-items: center;
  padding: 40px 20px;

  /* Background banner */
  background-image: url('./pictures/j3.jpeg'); /* Replace with your image path */
  background-size: cover; /* Cover the entire section */
  background-position: center;
  background-repeat: no-repeat;

  color: white; /* Text color for visibility */
}

/* Overlay for better text readability */
.search-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent black overlay */
  z-index: 0;
}

.search-section * {
  position: relative; /* Keep content above overlay */
  z-index: 1;
}

/* Heading style */
.search-section h2 {
  grid-column: 1 / -1;
  margin-bottom: 10px;
  color: white;
}

/* Form controls */
select, input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Button style */
button {
  padding: 12px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-section {
    padding: 30px 15px;
  }

  select, input, button {
    font-size: 14px;
    padding: 10px;
  }
}


/* NEWS SECTION */
.news-section {
  background: transparent;
  padding: 20px 10px;
}

.news-section h2 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.news-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.news-article {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.news-article h3 {
  margin-bottom: 10px;
  color: #3498db;
}

.news-article p {
  color: #666;
  margin-bottom: 10px;
}

.news-article a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.news-article a:hover {
  text-decoration: underline;
}

/* FEATURED CAR GRID */
.featured-section {
  background: transparent;
  padding: 20px 10px;
}

.featured-section h2 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}


.car-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.car-image {
  width: 100%;
  height: 200px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-color: #f0f0f0;
  flex-shrink: 0;
}

.car-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.car-info h3 {
  margin-bottom: 8px;
  color: #2c3e50;
}

.car-info p {
  color: #666;
  margin-bottom: 10px;
  font-size: 14px;
}

.car-price {
  font-weight: bold;
  color: #27ae60;
  font-size: 18px;
  margin-top: auto;
}

/* CAR PAGE GALLERY */
.car-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 40px 20px 80px;
  background-color: #ffffc5;
  overflow: hidden;
}

.scrollable-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Main image container */
.main-image-section {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: #fff;
  padding: 10px;
  height: 85vh;  /* very large main image container */
  width: 100%;
  margin-bottom: 20px;
  cursor: zoom-in;
}

/* Main image */
.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.3s ease;
  display: block;
}

/* Thumbnails container */
.gallery-section {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  overflow-x: visible; /* no horizontal scroll */
  width: 100%;
  flex-wrap: wrap; /* wrap thumbnails if needed */
  gap: 15px;
}

.thumbnail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 100%;
}

/* Thumbnails - bigger, full images */
.thumbnail {
  width: calc(20% - 12px);  /* 5 thumbnails per row with gap */
  height: auto;
  aspect-ratio: 16 / 9;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  cursor: zoom-in;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.thumbnail.active {
  border-color: #3498db;
}

/* Car info section */
.car-info-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.car-title {
  color: #2c3e50;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.car-details {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.car-details p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.car-price {
  font-weight: bold;
  color: #e74c3c;
  font-size: 1.3rem;
}

/* Back button */
.back-button {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 30px;
  background-color: #2c3e50;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  width: calc(100% - 40px);
  max-width: 400px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-button:hover {
  background-color: #34495e;
  transform: translateX(-50%) translateY(-2px);
}

/* LIGHTBOX OVERLAY */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox image */
.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.7);
  cursor: zoom-out;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .thumbnail {
    width: calc(33.33% - 12px); /* 3 per row */
  }
}

@media (max-width: 768px) {
  .search-section,
  .news-articles,
  .car-grid {
    grid-template-columns: 1fr;
  }
  .car-page {
    padding: 30px 15px 70px;
  }
  .car-details {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .thumbnail {
    width: calc(50% - 12px); /* 2 per row */
  }
}

@media (max-width: 480px) {
  .car-page {
    padding: 20px 10px 60px;
  }
  .car-details {
    grid-template-columns: 1fr;
  }
  .back-button {
    width: calc(100% - 20px);
  }
  .thumbnail {
    width: 100%; /* 1 per row on small screens */
  }
}
/* ===== STOCK PAGE SPECIFIC STYLES ===== */
/* ===== STOCK PAGE SPECIFIC STYLES ===== */
.stock-page {
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.stock-page h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #333;
}

/* Compact grid — more cars visible */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0.5rem;
}

/* Smaller vehicle card design */
.vehicle-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Smaller image container */
.vehicle-image-container {
  width: 100%;
  height: 130px;
  overflow: hidden;
}

.vehicle-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-image {
  transform: scale(1.05);
}

.vehicle-details {
  padding: 0.8rem;
}

.vehicle-details h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #222;
}

/* Specs grid */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
}

.specs-grid p {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
}

.specs-grid strong {
  color: #333;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .vehicle-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .vehicle-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.8rem;
  }

  .vehicle-image-container {
    height: 120px;
  }

  .vehicle-details h2 {
    font-size: 0.95rem;
  }
}

/* Small screens: show only model + cc + price */
@media (max-width: 480px) {
  .stock-page {
    padding: 1rem;
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .vehicle-image-container {
    height: 110px;
  }

  .vehicle-details {
    padding: 0.6rem;
  }

  .vehicle-details h2 {
    font-size: 0.9rem;
  }

  /* Hide all specs except CC and price */
  .vehicle-details .specs-grid p,
  .vehicle-details .specs-grid strong {
    display: none;
  }

  /* Show only CC (first <p>) and price (last <p>) */
  .vehicle-details .specs-grid p:first-child,
  .vehicle-details .specs-grid p:last-child {
    display: block;
    font-weight: bold;
    color: #000;
    font-size: 0.95rem;
  }
}


/* tax-page.css */
/* tax-page.css */
.tax-page {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.table-container {
  overflow-x: auto;
  margin-top: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.tax-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}

.tax-table th {
  background-color: #2c3e50;
  color: white;
  padding: 12px 15px;
  text-align: left;
}

.tax-table td {
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
}

.tax-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.tax-table tr:hover {
  background-color: #e9ecef;
}

.tax-table td:nth-child(2) {
  color: #d32f2f;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .tax-page {
    padding: 1rem;
  }
  
  .tax-table th,
  .tax-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .tax-table {
    min-width: 300px;
  }
  
  .tax-table th,
  .tax-table td {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
}
/* Updated contact.css with darker inquiry form */
.contact-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  font-family: Arial, sans-serif;
}

.contact-info, .inquiry-form {
  margin-bottom: 3rem;
}

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

.contact-item {
  background: #f5f5f5; /* Slightly lighter than form */
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Darker Inquiry Form Section */
.inquiry-form {
  background: #2c3e50; /* Dark blue-gray background */
  padding: 2rem;
  border-radius: 8px;
  color: white; /* White text for contrast */
}

.inquiry-form h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #ecf0f1; /* Light gray for labels */
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #34495e;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #34495e; /* Darker input backgrounds */
  color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bdc3c7; /* Light gray placeholder text */
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  background: #3498db; /* Bright blue for contrast */
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #2980b9; /* Darker blue on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-page {
    padding: 1rem;
  }
  
  .contact-list {
    grid-template-columns: 1fr;
  }
  
  .inquiry-form {
    padding: 1.5rem;
  }
}

/* ===== PAGINATION STYLES ===== */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5rem;
}

.pagination button {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.pagination button:hover {
  background: #2980b9;
}

.pagination button.active {
  background: #2c3e50;
}
