/* General Body and Typography */

/* Universal reset for all elements */
* {
    box-sizing: border-box; /* Makes layout math more intuitive */
    padding: 0;
    margin: 0;
}

:root {
    /* --- COLOR Theme PALETTE --- */
    --primary-color: #c90b24;    /* Brand red */
    --dark-background: #1E1917;   /* Dark color for text and backgrounds */
    --background-color: #f4f4f9; /* Light grey for the main page background */
    --white: #ffffff;
    --border-color: #e0e0e0;
}

html {
     scroll-behavior: smooth; /* Enables smooth scrolling for anchor links */
    font-size: 16px; /* Sets the base font size for the document (1rem = 16px) */
}

/* Prevents the background from scrolling when the image lightbox is open */
body.lightbox-active {
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--dark-background);
    line-height: 1.6;
    display: flex; /* Enables Flexbox for layout */
    flex-direction: column; /* Stacks children (header, main, footer) vertically */
    min-height: 100vh; /* Ensures the body is at least the full height of the viewport */
}

/* A centered container for content sections to limit their width on large screens */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem; 
}

/* Default styles for headings */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark-background);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

/* Default style for links */
a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Styles for lists in static page sections like "About Us" */
.page-section ul {
    list-style-position: inside;
    padding-left: 0;
}

.page-section ul li {
    margin-bottom: 0.75rem;
}

/* Header and Navigation */
.main-header {
    background-color: var(--primary-color);
    border-bottom: 3px solid var(--dark-background);
    position: fixed; /* Fixes the header to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensures the header stays on top of other content */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 80px;
}

.logo-container .logo {
    height: 60px;
    border-radius: 10px;
}

.main-nav .navbar {
    display: flex; /* Aligns nav items horizontally */
    gap: 25px;
    list-style: none;
}

.main-nav .navbar a {
    color: var(--white);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

/* Style for the active page link and on hover */
.main-nav .navbar a:hover,
.main-nav .navbar a.active {
    color: var(--white);
    border-bottom-color: var(--white);
    font-weight: bold;
}

/* Hamburger menu icon - hidden on desktop */
#menu-icon {
    display: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--white);
    transition: transform 0.3s ease;
}


/* Main Content Area */
main {
    padding-top: 80px; /* Prevents content from being hidden behind the fixed header */
    flex-grow: 1; /* Allows the main content to grow and push the footer down */
}

/* Homepage Hero Section */
.hero-section {
     /* Creates a dark overlay on top of the background image for text readability */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('cars/soldcars/mazdamx5.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;  /* Ensures content is above the background gradient */
    padding: 0 1rem;
}

/* Adds a shadow to hero text to make it stand out */
.hero-content h1, .hero-content p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: white;
}

/* Homepage Reviews Section */
.testimonials-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.reviews-widget-container {
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: hidden;
}


/* --- Inventory Page --- */
#inventory-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.vehicle-listing {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: box-shadow 0.3s ease;
}

.vehicle-listing:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.vehicle-listing__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vehicle-listing__header .vehicle-title {
    font-size: 1.75rem;
    margin: 0;
}

.vehicle-listing__header .vehicle-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
    white-space: nowrap; /* Prevents the price from wrapping to a new line */
}

.vehicle-listing__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 2rem;
}

/* This rule reverses the order of the columns for every other car listing */
.vehicle-listing--reverse .vehicle-listing__content .vehicle-listing__image-gallery {
    grid-column: 2 / 3;
    grid-row: 1;
}

.vehicle-listing--reverse .vehicle-listing__content .vehicle-listing__details {
    grid-column: 1 / 2;
    grid-row: 1;
}

.vehicle-listing__details {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vehicle-listing__details .vehicle-description {
    font-size: 0.95rem;
    color: #555;
    margin-top: 0;
}

/* Styles for the vehicle specification icons and text */
.vehicle-specs {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #333;
    font-size: 0.9rem;
}

.vehicle-specs li {
    display: flex;
    align-items: center;
    background-color: var(--background-color);
    padding: 8px 12px;
    border-radius: 20px;
}

.vehicle-specs i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Gallery Styles */
.vehicle-listing__image-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vehicle-listing__image {
    position: relative;
    cursor: pointer;
}

.vehicle-listing__image .main-img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    border: 1px solid var(--border-color);
}

/* Styles for the small clickable image thumbnails */
.vehicle-listing__thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.vehicle-listing__thumbnails .thumbnail-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.vehicle-listing__thumbnails .thumbnail-img:hover {
    opacity: 1;
}

/* Style for the currently selected thumbnail */
.vehicle-listing__thumbnails .thumbnail-img.active {
    border-color: var(--primary-color);
    opacity: 1;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem 0;
    margin-top: auto; /* Pushes the footer to the bottom in flexbox layout */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-column {
    text-align: left;
    margin-bottom: 1.5rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    color: var(--white);
    font-weight: bold;
    border-bottom: 2px solid var(--white);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column ul a:hover {
    border-bottom: var(--white) 2px solid;
    font-weight: bold;
}



.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    color: var(--white);
    font-size: 0.9rem;
}

/* ==================================
   NEW ROBUST FOOTER ICON STYLES
================================== */
/* START: CONSOLIDATED FOOTER ICON STYLES */

.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background-color: #1877F2; /* Dark grey default background */
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.social-icon.facebook:hover {
 transform: translateY(-3px); /* Lifts the icon up slightly */
}

/* END: CONSOLIDATED FOOTER ICON STYLES */


/* Lightbox Styles */

/* The main overlay for the full-screen image gallery */
#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000; /* High z-index to ensure it's on top of everything */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Class to hide the lightbox */
#lightbox-overlay.lightbox-hidden {
    display: none;
}

/* The 'X' close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
     z-index: 10;  /* Ensures the close button is on top of the lightbox image container */
}
.lightbox-close:hover {
    color: #bbb;
}

.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 100vw;
    max-height: 75vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures the whole image is visible without distortion */
}

/* The previous/next arrow buttons in the lightbox */
.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    user-select: none; /* Prevents text selection on double click */
    background-color: rgba(0,0,0,0.3);
}
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Image counter (e.g., "Image 1 of 12") */
.lightbox-info {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* The scrollable thumbnail container at the bottom of the lightbox */
.lightbox-thumbnails-container {
    margin-top: 15px;
    width: 100%;
    max-width: 90vw;
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.lightbox-thumbnails-container img {
    height: 80px;
    width: auto;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}
.lightbox-thumbnails-container img:hover {
    opacity: 1;
    transform: scale(1.05);
}
.lightbox-thumbnails-container img.active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* --- On-page Image Carousel Arrows --- */
.listing-prev,
.listing-next {
     /* (Styles for the arrows on the main inventory page listings) */
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: all 0.3s ease;
    user-select: none;
    background-color: rgba(0,0,0,0.2);
    opacity: 0; /* Hidden by default, appear on hover */
    z-index: 5;
}

.vehicle-listing__image:hover .listing-prev,
.vehicle-listing__image:hover .listing-next {
    opacity: 1;
}

.listing-prev { left: 5px; border-radius: 0 3px 3px 0;}
.listing-next { right: 5px; border-radius: 3px 0 0 3px;}

.listing-prev:hover,
.listing-next:hover {
    background-color: rgba(0,0,0,0.6);
}

/* Contact Page */
.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr auto 1fr; /* 3 columns: form, divider, details */
    gap: 3rem;
    align-items: flex-start;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--white); /* Ensure select has white background */
    color: var(--dark-background); /* Ensure text is readable */
}

/* --- NEW RULE: Style the select dropdown arrow --- */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    /* Simple inline SVG for a dark dropdown arrow */
   background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%20fill%3D'%231E1917'%3E%3Cpath%20d%3D'M8%2011.25a.75.75%200%200%201-.53-.22l-4-4a.75.75%200%201%201%201.06-1.06L8%209.94l3.47-3.47a.75.75%200%201%201%201.06%201.06l-4%204a.75.75%200%200%201-.53.22Z'%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

.contact-divider-vertical {
    width: 1px;
    background-color: var(--border-color);
    height: 100%;
    min-height: 250px;
}

.contact-divider-horizontal {
    display: none; /* Hidden on desktop, shown on mobile */
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    margin: 2rem 0;
}


.contact-details-section h3 {
    font-weight: bold;
    color: var(--dark-background);
    margin-bottom: 1rem;
}

.contact-details-section p {
    margin: 0.5rem 0;
}

.contact-details-section .phone-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Confirmation Modal  */
.modal-overlay {
     /* (Styles for the "Message Sent!" pop-up) */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.modal-hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem 3rem;
    border-radius: 8px;
    text-align: center;
    position: relative;
    max-width: 400px;
    width: 90%;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal-hidden .modal-content {
    transform: scale(0.9);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--dark-background);
}

.modal-icon {
    font-size: 5rem;
    color: #28a745; /* Green checkmark color */
    margin-bottom: 1rem;
}

.modal-content h2 {
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: #555;
    margin-bottom: 0;
}

/* Featured & Sold Vehicles*/
.featured-vehicles-section,
.sold-vehicles-section {
    padding: 4rem 0;
    background-color: var(--background-color);
}

.featured-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));  /* Responsive grid */
    gap: 1.5rem;
}

.vehicle-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.vehicle-card-img {
    display: block;
    text-decoration: none;
    background-color: #f8f8f8;
    aspect-ratio: 16 / 10;
}

.vehicle-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vehicle-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vehicle-card .vehicle-title {
    font-size: 1.25rem;
    color: var(--dark-background);
    margin-bottom: 0.5rem;
}

.vehicle-card .vehicle-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.vehicle-card-actions {
    margin-top: auto;
}

/* Fading effect on the edges of the scrolling "Sold Cars" carousel */
.sold-carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } /* Moves the track to the left */
}

.sold-carousel-track {
    display: flex;
    gap: 1.5rem;
    animation: slide 30s linear infinite; /* The looping scroll animation */
}

.sold-carousel-viewport:hover .sold-carousel-track {
    animation-play-state: paused; /* Pauses the animation on hover */
}

.sold-carousel-track .vehicle-card {
    flex-basis: 350px; /* Set a smaller base width */
    flex-shrink: 0;
}

.sold-carousel-track .vehicle-card .vehicle-title {
    font-size: 1rem; /* Make the title font smaller */
}

.vehicle-card.is-sold .vehicle-card-img {
    position: relative;
    overflow: hidden;
}

/* "SOLD" banner on sold vehicle cards */
.vehicle-card.is-sold .vehicle-card-img::before {
    content: 'SOLD';
    position: absolute;
    top: 20px;
    left: -45px;
    width: 200px;
    transform: rotate(-45deg);
    background-color: rgba(195, 12, 48, 0.85);
    color: var(--white);
    padding: 6px 0;
    font-weight: bold;
    z-index: 2;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.vehicle-card.is-sold .vehicle-card-actions {
    display: none;
}


/* --- OPTIMIZED: Refactored Button Styles --- */
/* Base styles applied to all button types */
.btn,
.btn-enquire,
.btn-submit,
.btn-details {
     /* (Shared button styles) */
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover,
.btn-enquire:hover,
.btn-submit:hover,
.btn-details:hover {
    background-color: #A00000;
}

/* Specific overrides for unique button types */
.btn-enquire {
    margin-top: auto; /* Pushes this button to the bottom of its flex container */
}

.btn-details {
    width: 100%;
}

.btn-submit {
    width: auto;
    padding: 12px 30px;
    font-size: 1rem;
}




/* ====== Responsive Styles ====== */

/* These @media queries apply styles only when the screen size meets certain conditions */
@media (min-width: 2000px) {
     /* (Styles to make content larger on huge monitors) */
    body {
        font-size: 20px;
    }

    .container, .footer-container {
        max-width: 1600px;
    }
    
    .main-nav .navbar a {
        font-size: 1.15rem;
    }

    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.75rem; }
    .section-header h2 { font-size: 3.25rem; }
    
    .vehicle-listing__details .vehicle-description {
        font-size: 1.1rem;
    }
}

@media (min-width: 901px) and (max-width: 1024px) {
    .vehicle-specs {
        font-size: 0.8rem; /* Slightly smaller font size for specs */
        flex-wrap: nowrap; /* Prevents the items from wrapping to a new line */
    }

    .vehicle-description{
        padding-bottom: 1rem;
    }
}

@media (max-width: 900px) {
    /* For tablets and smaller desktops */
    .vehicle-listing__content {
        grid-template-columns: 1fr; /* Stacks the vehicle image and details vertically */
    }


    .vehicle-listing--reverse .vehicle-listing__content .vehicle-listing__image-gallery,
    .vehicle-listing--reverse .vehicle-listing__content .vehicle-listing__details {
        grid-column: auto;
        grid-row: auto;
    }

}

/* For smaller tablets and large phones */
@media (max-width: 768px) {
    html {
        font-size: 15px; /* Slightly reduce the base font size */
    }

    .container, .footer-container {
        width: 100%;
        padding: 1.5rem 1rem;
    }
    
    .vehicle-listing {
        padding: 1rem;
    }
    
    .vehicle-listing__content {
        gap: 1.5rem;
    }

    .vehicle-description{
        padding-bottom: 2rem;
    }

    .hero-section {
        height: 60vh;
        padding: 2rem 1rem;
    }

    h1, .hero-content h1 { font-size: 1.8rem; }
    h2, .section-header h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    p, li, a { font-size: 0.95rem; }

    .vehicle-listing__header .vehicle-title { font-size: 1.3rem; }
    .vehicle-listing__header .vehicle-price { font-size: 1.4rem; }
    .vehicle-card .vehicle-title { font-size: 1.1rem; }
    .vehicle-card .vehicle-price { font-size: 1.2rem; }
    .vehicle-listing__details .vehicle-description { font-size: 0.9rem; }
    .vehicle-specs { font-size: 0.85rem; }
    
    .btn-enquire, .btn-details {
        margin-top: 1.5rem;
        font-size: 0.9rem;
    }
    
    .vehicle-specs {
        justify-content: center;
    }

    .footer-column h4 { font-size: 1.1rem; }
    .footer-column a, .footer-copyright p { font-size: 0.9rem; }

    #menu-icon { display: block; } /* Show the hamburger menu icon */

      /* Hides the desktop nav and prepares the mobile nav to slide in */
    .main-nav { position: absolute; top: 80px; left: -100%; width: 100%; background-color: var(--primary-color); transition: left 0.3s ease-in-out; border-bottom: 1px solid var(--border-color); }
    .main-nav.active { left: 0; }/* Slides the menu into view */
    .main-nav .navbar { flex-direction: column; align-items: center; padding: 0; gap: 0; } /* Stacks nav links vertically */
    .main-nav .navbar li { width: 100%; text-align: center; }
    .main-nav .navbar a { display: block; padding: 1rem; border-bottom: 1px solid #c30c30; }
    .main-nav .navbar a:hover, .main-nav .navbar a.active { background-color: var(--white); color: var(--primary-color); border-bottom-color: var(--primary-color); }

     /* Stacks the contact form and details vertically */
     .contact-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-divider-vertical {
        display: none;
    }

    .contact-divider-horizontal {
        display: block;
    }

    .contact-details-section {
        text-align: center;
    }

    .sold-carousel-track .vehicle-card {
        flex-basis: 180px;
    }
    .sold-carousel-track .vehicle-card .vehicle-title {
        font-size: 0.9rem;
    }

        .vehicle-card.is-sold .vehicle-card-img::before {
        width: 150px;
        font-size: 0.9rem;
        padding: 4px 0;
        top: 15px;
        left: -35px;
    }
}

@media (max-width: 500px) {
    .vehicle-specs {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Creates two equal columns */
    }

    .vehicle-description{
        padding-bottom: 0.5rem;
    }
}

/* For mobile phones */
@media (max-width: 425px) {
    html {
        font-size: 14px;
    }

    .vehicle-listing__header .vehicle-title {
        font-size: 1.2rem;
    }
    
    .vehicle-listing__header .vehicle-price {
        font-size: 1.3rem;
    }
    
    .vehicle-listing__details .vehicle-description {
        font-size: 0.85rem;
    }

    .hero-section {
        height: 40vh;
        padding: 1.5rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content a{
        margin-top: 5px;
        padding: 8px 16px;
    }
}