.vdp-body {
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  color: var(--text-main);
}

/* 2. LOGO STYLING - Add this right below your navbar styles */
.site-logo {
  height: 40px; /* Adjust this number to make your logo bigger or smaller */
  width: auto;
  display: block;
}

button {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

button:hover {
    background: #218838;
}


.nav-links {
    display: flex;
    list-style: none; /* Removes bullet points */
    gap: 20px; /* Space between links */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Image Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap; /* Allows images to move to the next row */
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.photo img {
    width: 250px;
    height: 200px;
    object-fit: cover; /* Crops image to fit perfectly without stretching */
    border-radius: 8px;
    transition: transform 0.3s; /* Smooth zoom effect */
}

.photo img:hover {
    transform: scale(1.05); /* Zooms in slightly on hover */
}

/* --- RESPONSIVE STYLES --- */

/* For screens smaller than 768px (Mobile & Tablets) */
@media (max-width: 768px) {
    
    /* 1. Stack Navigation links vertically */
    .nav-links {
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    .navbar {
        flex-direction: column;
        text-align: center;
    }

    /* 2. Make the gallery images full width */
    .photo img {
        width: 100%; /* Stretch to fill the screen width */
        height: auto; /* Keep the correct aspect ratio */
    }

    /* 3. Increase button size for "fat-finger" friendliness */
    button {
        padding: 15px 30px;
        width: 100%;
        font-size: 1.2rem;
    }
}

/* Container for all car cards */
.inventory-grid {
    display: grid;
    /* Automatically creates columns: at least 280px wide, fills the rest of the space */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
}

/* Individual Card Styling */
.vehicle-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.vehicle-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Image Section */
.card-image {
    position: relative;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image stretching */
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
}

/* Info Section */
.card-info {
    padding: 20px;
    text-align: left;
}

.card-info h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #2c3e50;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
}

.specs {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: 0.85rem;
    color: #7f8c8d;
    border-top: 1px solid #f1f1f1;
    padding-top: 10px;
}

/* Action Button */
.view-btn {
    display: block;
    text-align: center;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s;
}

.view-btn:hover {
    background: #34495e;
}

/* Vehicle Detail Page Specifics */
.vdp-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}

.vdp-nav {
    padding: 20px;
    background: #f8f9fa;
}

.back-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
}

.vdp-price {
    font-size: 2rem;
    color: #27ae60;
    font-weight: bold;
    margin-top: 5px;
}

/* Gallery Layout */
.main-image img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

.thumbnail-grid {
    display: flex;
    gap: 10px;
}

.thumbnail-grid img {
    width: calc(33.33% - 7px);
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* Details Section */
.vdp-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 30px;
}

.specs-box {
    background: #f4f4f9;
    padding: 20px;
    border-radius: 10px;
}

.specs-box ul {
    list-style: none;
    padding: 0;
}

.specs-box li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

@media (max-width: 768px) {
    .vdp-details {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}

/* Gallery Container */
.vdp-gallery {
    margin-bottom: 30px;
}

.main-image-container {
    width: 100%;
    height: 500px; /* Fixed height for consistency */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    padding: 0 !important;
    margin: 0 !important;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows full image without cropping */
}

/* Horizontal Marquee */
.thumbnail-marquee {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Enables horizontal scroll */
    padding: 10px 0;
    scrollbar-width: thin; /* Clean look for Firefox */
    justify-content: center; /* Centers items if they don't fill the width */
    justify-content: safe center; /* Prevents "cutting off" the first image if they overflow */

}

/* Webkit scrollbar styling (Chrome/Safari) */
.thumbnail-marquee::-webkit-scrollbar {
    height: 6px;
}
.thumbnail-marquee::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.thumb {
    width: 120px;
    height: 80px;
    flex-shrink: 0; /* Prevents thumbnails from squishing */
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    border: 2px solid transparent;
}

.thumb:hover, .thumb:active {
    opacity: 1;
    border-color: #2c3e50;
}

/* Full-screen background */
#lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* Stays on top of everything */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

/* The zoomed image */
#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    /* Smooth entrance animation */
    transform: scale(0.9);
    animation: zoomIn 0.2s forwards;
}

@keyframes zoomIn {
    to { transform: scale(1); }
}

/* Close button (X) */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}


:root {
    --primary: #0f172a; /* Deep Navy */
    --accent: #2563eb;  /* Electric Blue */
    --success: #059669; /* Modern Green */
    --text-main: #1e293b;
    --bg-light: #f8fafc;
}


/* THE CENTERED CONTAINER */
.vdp-wrapper {
    max-width: 1100px;
    margin: 0 auto; /* This centers the whole page */
    padding: 0px 20px;
    background: white;
    box-shadow: 0 10px 50px rgba(0,0,0,0.05);
    border-radius: 20px;
}

/* FANCY NAVIGATION */
.vdp-nav-fancy {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.stock-status {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* TYPOGRAPHY & HERO */
.vdp-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
    margin-top: 0 !important;
    margin-bottom: 0 !important; 
    line-height: 1.1; /* Tighter line height for the text itself */
}

.vdp-price-tag {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0 !important;
    padding: 0 !important; 
    line-height: 1 !important; 
    display: block;
}

/* MODERN CARDS */
.vdp-info-grid {
    display: flex;
    grid-template-columns: 1fr 1.5fr;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    margin-top: 40px;
}

.vdp-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box; /* Prevents padding from breaking width */
}

.spec-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem; /* Slightly smaller text for better fit */
    padding: 8px 0;
}

.inquiry-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.inquiry-btn:hover {
    background: var(--accent);
}

/* Styling for the new contact section */
.contact-info {
  display: flex;
  gap: 20px; /* Space between phone and email */
  font-size: 0.9rem;
}

.contact-link {
  color: white; /* Matches your nav links */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--accent); /* Turns blue when hovered */
}

/* Ensure the navbar spreads all three sections out evenly */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #1B1F28;
  align-items: center;
  color: white;
}

@media (max-width: 768px) {
  /* 1. Force the title and price to stack vertically */
  .vdp-hero {
    flex-direction: column !important;
     align-items: center !important; /* Centers items horizontally */
    text-align: center; /* Centers the text inside the items */
    gap: 0 !important; 
    padding-bottom: 10px;
  }

/* --- Desktop stays exactly as it was --- */

@media screen and (max-width: 768px) {
  /* --- EVERYTHING IN HERE ONLY HAPPENS ON MOBILE --- */

  /* 1. Stack and center the title/price */
  .vdp-hero {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0 !important;
    padding-bottom: 10px !important;
  }

  /* 2. Tighten the price tag thickness */
  .vdp-price-tag {
    padding: 0 !important; 
    line-height: 1 !important; 
    margin: 0 !important;
    display: block !important;
  }

  /* 3. Remove black bars from the photo */
  .main-image-container {
    background: transparent !important;
    height: auto !important;
    padding: 0 !important;
  }

  #main-display {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* 4. Stack the info cards (the "asdf" text fix) */
  .vdp-info-grid {
    display: flex !important;
    flex-direction: column !important;
  }
}

@media screen and (max-width: 768px) {
  /* 1. Force the logo to span the full width of the phone */
  .site-logo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important; /* Maintains the logo's proportions */
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  /* 2. Ensure the parent navbar doesn't restrict the logo's width */
  .navbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 10px 0 !important;
  }

  /* 3. If the logo is inside a link, make the link full-width too */
  .navbar a:has(.site-logo), 
  .navbar > a {
    width: 100% !important;
    display: block !important;
  }
}