/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Color Variables */
:root {
    /* Brand Colors */
    --color-primary: #FF2400;    /* Changed from #2D90DB to #FF2400 */
    --color-secondary: #191919;  /* Dark gray/black remains the same */
    
    /* Background Colors */
    --bg-light: #c6c6c6;
    --bg-dark: #191919;
    
    /* Text Colors */
    --text-on-light: #191919;  /* Dark text for light backgrounds */
    --text-on-dark: #c6c6c6;  /* Light text for dark backgrounds */
    
    /* Gradient */
    --gradient-primary: linear-gradient(to right top, #FF2400, #7D1200);  /* Changed to new colors */
    
    /* Utility */
    --shadow-default: 0 2px 5px rgba(0,0,0,0.1);
    
    --primary-rgb: 255, 36, 0;  /* Updated to match #FF2400 */
    --bg-light-transparent: rgba(0, 0, 0, 0.7);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-on-light);
    background: var(--bg-light);
    margin: 0;  /* Explicitly set margin to 0 */
    padding: 0;  /* Explicitly set padding to 0 */
    min-height: 100vh;  /* Ensure body fills viewport height */
    overflow-x: hidden;  /* Prevent horizontal scrolling */
}

/* Header and Navigation */
header {
    background: var(--gradient-primary);  /* Changed from --bg-dark */
    box-shadow: var(--shadow-default);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

@media (max-width: 768px) {
    header {
        display: none;
        position: static; /* Remove sticky positioning on mobile */
    }
    
    /* Make mobile nav sticky instead */
    .mobile-nav {
        display: block;
        margin: 0;
        padding: 0;
        position: sticky;
        top: 0;
        z-index: 100;
    }
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 200px;
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-on-dark);  /* Changed from --text-on-dark */
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Main Content */
main {
    width: 100%;
    margin: 0;  /* Explicitly set margin to 0 */
    padding: 0;  /* Explicitly set padding to 0 */
    overflow-x: hidden;  /* Prevent horizontal scroll */
    overflow-y: visible;  /* Allow vertical content */
}

/* For content sections inside main that aren't the hero */
main > *:not(.hero) {
    max-width: none;  /* Override the main content max-width for this section */
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
    width: 100%;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Enhanced Navigation */
.nav-contact {
    display: flex;
    align-items: center;
}

.phone-number {
    color: var(--text-on-dark);  /* Changed from --text-on-dark */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.phone-number i {
    margin-right: 5px;
    color: var(--text-on-dark);  /* Changed from --color-primary */
}

/* Footer Styles */
.footer-content {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 20px;
}

.footer-section h3 {
    color: var(--text-on-dark);
    margin-bottom: 1rem;
}

.footer-section p, 
.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-on-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    font-size: 1.5rem;
}

.social-links a i {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1.5rem;
        padding: 1.5rem 20px;
        text-align: center;
    }
    
    /* Contact Us and Quick Links sections */
    .footer-section:nth-child(1),
    .footer-section:nth-child(2) {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Quick Links list alignment */
    .footer-section ul {
        text-align: center;
        padding: 0;
    }
    
    /* Contact info icons alignment */
    .footer-section p {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    /* Social Media section - full width */
    .footer-section:nth-child(3) {
        grid-column: 1 / -1;  /* Span both columns */
        text-align: center;
        margin-top: 1rem;
    }
    
    /* Adjust heading sizes */
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Adjust contact info and quick links spacing */
    .footer-section p,
    .footer-section li {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    /* Social links adjustments */
    .social-links {
        justify-content: center;
        gap: 1.5rem;
        margin-top: 0.5rem;
    }
    
    .social-links a {
        font-size: 1.3rem;
    }
    
    /* Footer bottom adjustments */
    .footer-bottom {
        margin-top: 1rem;
        padding: 1rem 20px;
    }
    
    /* Powered by section adjustments */
    .powered-by {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .powered-by img {
        max-width: 120px;
    }
    
    .focus-digital-logo {
        position: static;
        margin-top: 1rem;
        max-width: 50px;
    }
}

/* Add these new styles for icons */
.fas, .fab {
    color: var(--text-on-dark);  /* Changed from --color-primary */
    background: none;  /* Remove gradient background */
    -webkit-background-clip: initial;  /* Remove background clip */
    -webkit-text-fill-color: var(--text-on-dark);  /* Set text color directly */
}

/* Update footer icons */
.footer-section i {
    color: var(--text-on-dark);  /* Changed from --color-primary */
}

/* Powered by section */
.powered-by {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.powered-by p {
    color: var(--text-on-dark);
    margin: 0;
    white-space: nowrap;
}

.separator {
    color: var(--text-on-dark);
    margin: 0;
    padding: 0 8px;
}

.powered-by img {
    max-width: 150px;
    height: auto;
}

.focus-digital-logo {
    max-width: 60px;
    position: absolute;
    right: 20px;
}

/* Ensure responsive design for logos */
@media (max-width: 768px) {
    .focus-digital-logo {
        position: static;
        margin-top: 1rem;
    }
}

/* Hero Section */
.hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('../images/2021-Explorer.webp');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 5%;
}

.hero-content {
    color: var(--text-on-dark);
    max-width: 800px;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 1rem;  /* Reduce gap between buttons (was likely 2rem or more) */
    justify-content: center;
    margin-top: 1.5rem;  /* Adjust overall spacing from content above if needed */
}

/* Individual Hero Buttons */
.hero-buttons .btn {
    margin: 0;  /* Remove any default margins */
    padding: 0.75rem 1.5rem;  /* Ensure consistent padding */
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Primary Button - Gradient by default */
.btn-primary,
.btn:not(.btn-secondary) {
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
}

/* Secondary Button - Dark with gradient hover */
.btn-secondary {
    background: var(--bg-dark);
    color: var(--color-primary);
    border: none;
    position: relative;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
    border-radius: 0;
}

.btn-secondary:hover::before {
    opacity: 1;
}

/* Hover effects for all buttons */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
}

/* Icon colors in buttons */
.btn i {
    color: inherit;
    -webkit-text-fill-color: initial;
    background: none;
}

/* Search button specific styles */
.btn-search {
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Schedule Test Drive button specific */
.btn-schedule {
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
}

/* CTA buttons in vehicle cards */
.confirm-btn {
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
}

/* Hero buttons */
.hero-buttons .btn {
    padding: 1rem 2rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: none;  /* Remove default shadow */
}

.hero-buttons .btn-primary {
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
    border: none;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
}

.hero-buttons .btn-secondary {
    background: var(--bg-dark);
    color: var(--color-primary);
    border: none;
}

.hero-buttons .btn-secondary:hover {
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);  /* Match primary button shadow */
}

/* View All Inventory button */
.view-all-inventory {
    text-align: center;
    margin-top: 2rem;
}

.view-all-inventory .btn-primary {
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
    border: none;
    padding: 1rem 2rem;
}

.view-all-inventory .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
}

/* Override any existing primary button styles */
.view-all-inventory .btn-primary {
    background: var(--gradient-primary);  /* Force gradient */
    -webkit-text-fill-color: var(--text-on-dark);  /* Changed from text-on-light */
}

/* Learn More button */
.learn-more-btn {
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
}

/* Hero Search Form */
.hero-search {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 0;
    max-width: 800px;
    padding-bottom: 2rem;  /* Add padding at bottom */
    margin-bottom: 2rem;   /* Add margin at bottom */
}

.search-form {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.search-form select {
    flex: 1;
    min-width: 0;
    padding: 0.8rem;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-on-light);
}

.btn-search {
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-search i {
    color: var(--text-on-light);
    -webkit-text-fill-color: initial;
    background: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form select,
    .btn-search {
        width: 100%;
    }
}

    .hero-buttons .btn {
        padding: 1rem 2rem;
        border-radius: 0;
        text-decoration: none;
        font-weight: bold;
        transition: all 0.3s ease;
        display: inline-block;
        box-shadow: none;  /* Remove default shadow */
    }

    .hero-buttons .btn-primary {
        background: var(--gradient-primary);
        color: var(--text-on-dark);  /* Changed from text-on-light */
        border: none;
    }

    .hero-buttons .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
    }

    .hero-buttons .btn-secondary {
        background: var(--bg-dark);
        color: var(--color-primary);
        border: none;
    }

    .hero-buttons .btn-secondary:hover {
        background: var(--gradient-primary);
        color: var(--text-on-dark);  /* Changed from text-on-light */
        box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);  /* Match primary button shadow */
    }
}

/* Mobile adjustments for more padding */
@media (max-width: 768px) {
    .hero-search {
        padding-bottom: 3rem;    /* More padding on mobile */
        margin-bottom: 3rem;     /* More margin on mobile */
    }
}

/* Advanced Filters Section */
.advanced-filters {
    background: var(--bg-dark);
    padding: 4rem 0;
    margin: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.filter-wrapper {
    margin: 0 auto;
}

.filter-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.filter-header h2 {
    color: var(--text-on-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.filter-header p {
    color: var(--text-on-dark);
    opacity: 0.8;
    font-size: 1.2rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.filter-item {
    position: relative;
    background: rgba(255,255,255,0.05);
    border-radius: 0;
    padding: 1rem;
    transition: all 0.3s ease;
}

.filter-item:hover {
    background: rgba(255,255,255,0.1);
}

.filter-item i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 1.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.filter-item select {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 0;
    font-size: 1rem;
    color: var(--text-on-light);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    transition: all 0.3s ease;
}

.filter-item select:hover {
    background-color: #fff;
}

.filter-item select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-primary);
    background-color: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-header h2 {
        font-size: 1.5rem;
    }
}

/* Base inventory grid styles - this will be used for both index and search */
.inventory-preview, .inventory-section {
    background: var(--bg-light);
    margin: 4rem auto;
    padding: 0 20px;
}

/* Ensure grid layout is identical */
.inventory-preview .inventory-grid,
.inventory-section .inventory-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
}

/* Section headers should match */
.inventory-preview .section-header,
.inventory-section .section-header {
    margin-bottom: 2rem;
}

/* Vehicle cards should be identical */
.inventory-preview .vehicle-card,
.inventory-section .vehicle-card {
    background: var(--bg-light);  /* Explicitly set to --bg-light */
    border-radius: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

/* Mobile specific overrides with higher specificity */
@media screen and (max-width: 768px) {
    body .inventory-preview .inventory-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Force exactly 2 columns */
        gap: .5rem;
    }
    
    body .inventory-preview {
        width: 95%;
        margin: 2rem auto;
        padding: 0 10px;
    }
    
    .mobile-inventory-grid .vehicle-card {
        background: var(--bg-light);  /* Ensure consistency on mobile */
    }
}

/* Vehicle Card Base Styles */
.vehicle-card {
    background: var(--bg-light);  /* Explicitly set to --bg-light */
    border-radius: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

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

/* Vehicle Info Section */
.vehicle-info {
    text-align: center;
    padding: 1.25rem 1.25rem 0.25rem;
}

/* Vehicle Title and Details */
.vehicle-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-on-light);  /* Changed from --text-on-dark */
}

/* Vehicle Specs Section */
.vehicle-specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}

.vehicle-specs span.spec {
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--text-on-light);  /* Changed from --text-on-dark */
}

/* Vehicle Specs */
.vehicle-specs {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-on-light);  /* Changed from --text-on-dark */
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Add some space between specs and price */
.vehicle-price {
    margin-top: 12px;
}

/* Price Styling with more specific selectors */
.vehicle-card .vehicle-price,
.vehicle-card .price-amount,
.vehicle-card .amount,
.vehicle-info .vehicle-price,
.vehicle-info .price-amount,
.vehicle-info .amount {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem !important;  /* Using !important and more specific selectors */
    font-weight: bold;
    margin-bottom: 0.25rem; /* Reduced from 1rem */
}

/* Additional override for any dynamic pricing elements */
[class*="price"],
[class*="amount"] {
    font-size: 1rem !important;
}

/* View Details Button - Base styles */
.view-details {
    width: calc(100% - 2.5rem);
    padding: 0.3rem .7rem;
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
    text-align: center;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.0;
    border: none;
    margin: 0.5rem 1.25rem;
    margin-top: auto;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .view-details,
    .mobile-inventory-grid .view-details {
        padding: 0.3rem .7rem;
        font-size: .9rem;
        line-height: 1.0;
        margin: 0.5rem 1rem;
        width: calc(100% - 2rem);
        color: var(--text-on-dark);  /* Added to ensure consistency on mobile */
    }
    
    .mobile-inventory-grid .vehicle-info {
        padding: 1rem 1rem 0.25rem;
    }
}

.confirm-btn:hover {
    background: var(--gradient-primary);
    opacity: 0.9;
}

/* Remove any conflicting styles */
.vehicle-card .btn {
    position: static;
    z-index: auto;
}

/* Vehicle Image */
.vehicle-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.vehicle-specs {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-on-light);  /* Changed from --text-on-dark */
    opacity: 0.8;
    margin-bottom: 1rem;
}

.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;  /* This ensures it appears above the image */
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-image img {
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Inventory Grid Layout */
.inventory-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media screen and (max-width: 768px) {
    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .inventory-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .inventory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .inventory-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about-preview {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), 
                url('../images/camaro2017.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;  /* Add this to prevent horizontal scroll */
}

/* Container for the content */
.about-content {
    max-width: 1200px;
    width: 95%;  /* Changed from 90% */
    margin: 0 auto;
    padding: 4rem 0;
}

.about-text {
    padding: 0;  /* Remove right padding since we don't have image anymore */
    text-align: center;  /* Center text */
    width: 95%;  /* Changed from 90% */
    margin: 0 auto;
    padding: 1rem 0;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--text-on-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-on-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-text p {
    color: var(--text-on-dark);
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* About Features - Base Styles */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-features .feature {
    text-align: center;
    padding: 1.5rem;
}

.about-features .feature i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .about-features {
        display: none !important;  /* Force hide on mobile */
    }
    
    .about-text {
        width: 90%;
        margin: 0 auto;
        padding: 1rem 0;
    }
}

/* Desktop Styles */
@media screen and (min-width: 769px) {
    .about-features {
        display: grid !important;  /* Force show on desktop */
    }
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--gradient-primary);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-on-light);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    text-align: center;
    max-width: 80%;
}

.learn-more-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    margin-top: 2rem;
    transition: transform 0.3s ease;
}

.learn-more-btn:hover {
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text {
        padding-right: 0;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .about-features {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        width: 120px;
        height: 120px;
        bottom: -20px;
        right: -20px;
    }

    .experience-badge .years {
        font-size: 2rem;
    }
}

/* Mobile Navigation - Completely separate from desktop */
.mobile-nav {
    display: none; /* Hidden by default */
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Hide desktop nav */
    nav {
        display: none;
    }
    
    /* Show mobile nav */
    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
        background: var(--bg-dark);
    }
    
    /* Primary Navigation Bar */
    .mobile-nav-primary {
        background: var(--bg-dark);
        padding: 0.25rem 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 50px;
    }
    
    /* Logo container */
    .mobile-logo {
        max-width: 150px;
        display: flex;
        align-items: center;
    }
    
    .mobile-logo img {
        width: 100%;
        height: auto;
    }
    
    /* Hamburger Menu */
    .mobile-menu-toggle {
        background: none;
        border: none;
        color: var(--text-on-dark);
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
        z-index: 9998;
    }
    
    /* Secondary Navigation Bar */
    .mobile-nav-secondary {
        background: var(--color-primary);
        padding: 0.25rem 20px;
        text-align: center;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-phone-number {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
    }
    
    .mobile-phone-number i {
        color: var(--text-on-light);
        -webkit-text-fill-color: initial;
        background: none;
    }
    
    .mobile-phone-number span {
        color: var(--text-on-light);
        font-weight: bold;
        font-size: 1.1rem;
    }
    
    /* Mobile Menu Panel (hidden by default) */
    .mobile-menu-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-height: max-content; /* Allow height to fit content */
        min-height: auto; /* Remove minimum height constraint */
        background: var(--bg-dark);
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 2rem 1rem;
        border-radius: 0 0 0 12px; /* Round the bottom left corner */
        display: flex;
        flex-direction: column;
        gap: 1rem;
        box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
    }
    
    .mobile-menu-panel.active {
        right: 0;
    }
    
    /* Close button */
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: var(--text-on-dark);
        font-size: 24px;
        cursor: pointer;
    }
    
    /* Mobile Menu Links */
    .mobile-nav-links {
        list-style: none;
        margin: 1rem 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .mobile-nav-links li {
        margin-bottom: 0.75rem;  /* Reduced spacing between items */
    }
    
    .mobile-nav-links a {
        color: var(--text-on-dark);
        text-decoration: none;
        font-size: 1rem;  /* Smaller font size */
        font-weight: 500;
    }
    
    /* Dropdown items */
    .mobile-dropdown-content {
        margin-top: 0.5rem;  /* Reduced margin */
        margin-left: 1rem;   /* Indent dropdown items */
    }
    
    .mobile-dropdown-content li {
        margin-bottom: 0.5rem;  /* Tighter spacing for dropdown items */
    }
    
    .mobile-dropdown-content a {
        font-size: 0.9rem;  /* Even smaller font for dropdown items */
    }
    
    .about-preview .about-content {
        padding: 20px 25px;  /* Add horizontal padding */
        max-width: 100%;     /* Ensure content respects padding */
    }
    
    .about-text {
        padding: 0 15px;     /* Additional text padding if needed */
    }
    
    /* Hide Focus Digital logo on mobile */
    .focus-digital-logo {
        display: none;
    }
}

/* Google Maps Section */
.map-section {
    width: 100%;
    height: 400px;
    margin: 0;
    padding: 0;
    display: block;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    display: block; /* Prevents any unwanted spacing */
}

/* Update button styles */
.btn-primary .fas,
.btn-primary .fab {
    color: var(--text-on-light);
    -webkit-text-fill-color: var(--text-on-light);
    background: none;
}

/* Specific override for search icon in hero section */
.hero-search .btn-primary .fa-search {
    color: var(--text-on-light);
    -webkit-text-fill-color: var(--text-on-light);
    background: none;
}

/* Vehicle Details Page Styles */
.vehicle-details-page {
    background: var(--bg-dark);
    width: 100%;
    margin: 0;
    padding: 0;
}

.vehicle-hero {
    width: 100%;
    background: var(--bg-dark);
    margin: 0;
    padding: 0;
}

.main-image-container {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    background: var(--bg-dark);
}

.main-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Container - for everything below the hero */
.vehicle-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* Vehicle Header Box */
.vehicle-header-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0;
    box-shadow: var(--shadow-default);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

/* Details Stack Container */
.details-stack {
    width: 100%;
    margin: 2rem 0;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vehicle-content {
        width: 100%;
        padding: 0 15px;
    }
}

/* Content boxes styling */
.vehicle-header-box,
.vehicle-details-box,
.detail-card {
    background: rgba(245, 245, 245, 0.95);
    padding: 1.5rem;
    border-radius: 0;
    box-shadow: var(--shadow-default);
}

/* Detail card specific */
.detail-card {
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

/* List items in detail cards */
.detail-card li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.main-image-container {
    margin: 0;
    padding: 0;
    line-height: 0;
    background: var(--bg-dark);
}

/* Adjust text colors for dark background */
.vehicle-details-page {
    color: var(--text-on-dark);
}

/* But keep text dark in the light boxes */
.vehicle-header-box,
.vehicle-details-box,
.detail-card {
    color: var(--text-on-light);
}

.main-image-container img {
    display: block; /* Remove any image spacing */
    width: 100%;
    height: auto;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.thumbnail-gallery {
    position: relative;
    padding: 0 40px;
}

.thumbnail-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 1rem 0;
}

.thumbnail {
    width: 120px;
    height: 90px;
    border-radius: 0;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: var(--color-secondary);
}

.gallery-nav.prev { left: 0; }
.gallery-nav.next { right: 0; }

.gallery-nav i {
    color: var(--text-on-light);
    font-size: 1rem;
}

/* Vehicle Info Section */
.vehicle-header {
    background: white;
    padding: 2rem;
    border-radius: 0;
    box-shadow: var(--shadow-default);
    margin-bottom: 2rem;
}

.vehicle-main-info h1 {
    font-size: 2.5rem;
    color: var(--text-on-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.vehicle-identifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.identifier {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-on-light);
}

.identifier i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* CTA Section */
.vehicle-cta {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 0;
    text-align: center;
}

.price-block {
    margin-bottom: 1.5rem;
}

.price-block .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-on-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.price-block .label {
    color: var(--text-on-dark);
    opacity: 0.8;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-buttons .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Lightbox Styles */
.lightbox {
    display: none;
}

/* Make sure main image fills container nicely */
.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Enhance thumbnail interaction */
.thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.thumbnail.active {
    opacity: 1;
    border: 2px solid var(--color-primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .vehicle-header {
        flex-direction: column;
    }

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

    .main-image-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .vehicle-details-page {
        padding: 1rem;
    }

    .vehicle-main-info h1 {
        font-size: 2rem;
    }

    .vehicle-identifiers {
        gap: 1rem;
    }

    .identifier {
        font-size: 1rem;
    }
}

/* Vehicle Details Layout */
.vehicle-info-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Left Column */
.vehicle-details-column {
    background: white;
    border-radius: 0;
    padding: 2rem;
    box-shadow: var(--shadow-default);
    }

    .vehicle-main-info h1 {
    font-size: 2.5rem;
    color: var(--text-on-light);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    }

    .vehicle-identifiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .identifier {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.identifier i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* Vehicle Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.detail-card {
    margin-bottom: 1.5rem;
}

.detail-card h3 {
    color: var(--text-on-light);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.detail-card ul {
    list-style: none;
    padding: 0;
}

.detail-card li {
    margin-bottom: 0.75rem;
    color: var(--text-on-light);
    opacity: 0.8;
}

/* Right Column - CTA Section */
.vehicle-cta {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 0;
    position: sticky;
    top: 2rem;
}

.price-block {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.price-block .amount {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-on-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.price-block .label {
    color: var(--text-on-dark);
    opacity: 0.8;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-buttons .btn {
    width: 100%;
        padding: 1rem;
    font-size: 1.1rem;
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Gallery Navigation Fixes */
.gallery-nav {
    background: var(--bg-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-nav i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.gallery-nav:hover {
    background: var(--color-primary);
}

.gallery-nav:hover i {
    color: var(--bg-dark);
}

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

    .vehicle-cta {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .vehicle-details-page {
        padding: 1rem;
    }

    .vehicle-main-info h1 {
        font-size: 2rem;
    }

    .vehicle-identifiers {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Left Column Details */
.details-stack {
    width: 100%;
    margin: 2rem 0;
    position: relative;
}

/* Three column layout with equal heights */
.details-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Detail Card Base Styles */
.detail-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0;
    box-shadow: var(--shadow-default);
    height: 100%; /* Ensure full height */
    display: flex;
    flex-direction: column;
}

/* Card Header */
.detail-card h3 {
    font-size: 1.2rem;
    color: var(--text-on-light);
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

/* Card Content */
.detail-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1; /* Allow list to fill space */
}

.detail-card li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.detail-card li:last-child {
    border-bottom: none;
}

/* Description Content */
.description-content {
    flex: 1;
    line-height: 1.6;
}

/* Full Width Card */
.detail-card.full-width {
    grid-column: 1 / -1;
    margin-top: 0;
}

/* Features Content */
.features-content {
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Responsive Design */
@media (max-width: 992px) {
    .details-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .details-row {
        grid-template-columns: 1fr;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
}

    .about-features {
        display: none;  /* Hide features section on mobile */
    }
    
    /* Adjust spacing for mobile without features */
    .about-text {
        padding: 1rem;
    }
    
    .about-text p {
        margin-bottom: 1rem;  /* Reduce bottom margin since features are hidden */
    }
}

/* Vehicle Header Box */
.vehicle-header-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0;
    box-shadow: var(--shadow-default);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

/* Main Vehicle Info */
.vehicle-main-info {
    flex: 1;
    }

    .vehicle-main-info h1 {
    font-size: 2.5rem;
    color: var(--text-on-light);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    }

    .vehicle-identifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    }

    .identifier {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-on-light);
        font-size: 1rem;
    }

.identifier i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* Price and CTA Section */
.vehicle-price-cta {
    min-width: 300px;
    text-align: right;
    padding: 0;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-on-light);
    margin-bottom: 1rem;
}

/* CTA Buttons */
.vehicle-price-cta .btn {
    width: 100%;
    margin-bottom: 1rem;
        padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.vehicle-price-cta .btn:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .vehicle-header-box {
        flex-direction: column;
    }

    .vehicle-price-cta {
        min-width: 100%;
        text-align: center;
    }

    .vehicle-main-info h1 {
        font-size: 2rem;
        text-align: center;
    }

    .vehicle-identifiers {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .vehicle-header-box {
        padding: 1.5rem;
    }

    .vehicle-main-info h1 {
        font-size: 1.75rem;
    }

    .vehicle-identifiers {
        flex-direction: column;
        align-items: center;
    }
}

/* Vehicle Details Page Price Styling - with high specificity */
.vehicle-header-box .vehicle-price-cta .vehicle-details-price,
.vehicle-details-price {
    color: var(--text-on-light) !important;  /* Force dark text color */
    font-size: 2.5rem !important;  /* Force much larger size */
    font-weight: 700 !important;
    margin-bottom: .2rem;
    display: block;
    -webkit-text-fill-color: initial !important; /* Override any gradient text */
    background: none !important; /* Remove any background gradients */
}

/* Additional override for any price elements in the details page */
[class*="vehicle-details"] [class*="price"],
[class*="vehicle-details"] [class*="amount"] {
    font-size: 2.5rem !important;
    color: var(--text-on-light) !important;
    -webkit-text-fill-color: initial !important;
}

/* Secondary Button - Dark with gradient hover */
.vehicle-details-page .btn-secondary {
    background: var(--bg-dark);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: .2rem;
    z-index: 1;
}

/* Gradient text effect for button and icon */
.vehicle-details-page .btn-secondary,
.vehicle-details-page .btn-secondary i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hover state - gradient background with black text */
.vehicle-details-page .btn-secondary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
}

/* Reset text color on hover to text-on-light */
.vehicle-details-page .btn-secondary:hover,
.vehicle-details-page .btn-secondary:hover i {
    color: var(--text-on-light);
    -webkit-text-fill-color: var(--text-on-light);
    background: none;
}

/* Send Message Button Styling */
.btn-send-message {
    background: var(--bg-dark) !important;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

/* Text and Icon Color */
.btn-send-message span,
.btn-send-message i {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: var(--text-on-dark);
    color: var(--text-on-dark);
}

/* Hover States */
.btn-send-message:hover {
    background: var(--gradient-primary) !important;  /* Changed to gradient on hover */
    transform: translateY(-2px);
}

/* Keep text light on hover */
.btn-send-message:hover span,
.btn-send-message:hover i {
    -webkit-text-fill-color: var(--text-on-dark);
    color: var(--text-on-dark);
}

/* Keep the existing Price and CTA Container styles */
.vehicle-price-cta {
    gap: 0.2rem;
    display: flex;
    flex-direction: column;
}

/* Keep margin removal */
.vehicle-details-price,
.btn-schedule,
.btn-send-message {
    margin-bottom: 0;
}

/* Version 2 Vehicle Details Styles */
/* Add these to your existing CSS file */

.v2-vehicle-details {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.v2-layout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.v2-gallery-section {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.v2-main-image {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.v2-featured-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.v2-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.v2-thumb-wrapper {
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.v2-thumb-wrapper:hover {
    transform: scale(1.05);
}

.v2-thumb-wrapper.active {
    border: 3px solid var(--primary-color);
}

.v2-thumbnail {
    width: 100%;
    height: 70px;
    object-fit: cover;
}

.v2-info-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 20px;  /* Add padding to the right */
}

.v2-vehicle-header {
    margin-bottom: 0;
    padding-bottom: 0;
}

.v2-title {
    font-size: 1.8rem;
    margin: 0;
    line-height: 1.1;
}

.v2-price {
    font-size: 1.5rem;
    line-height: 1;
    margin: 0 0 2px 0;
}

/* Make quick specs horizontal and compact */
.v2-quick-specs {
    display: flex;
    gap: 12px;
    margin: 0 0 4px 0;
    padding: 0;
    align-items: center;
}

.v2-spec-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1;
    background: none;
}

/* Remove any extra spacing from icons */
.v2-spec-item i {
    font-size: 0.85rem;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Ensure text is tight */
.v2-spec-item span {
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Tighter detail cards */
.v2-details-grid {
    gap: 8px;
    margin: 0;
}

.v2-detail-card {
    padding: 8px;
    margin: 0;
}

.v2-detail-card h3 {
        font-size: 1rem;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1;
}

/* Tighter lists */
.v2-specs-list {
    margin: 0;
    padding: 0;
}

.v2-specs-list li {
    padding: 2px 0;
    margin: 0;
    line-height: 1.2;
}

/* Description and Features sections */
.v2-description, .v2-features {
    margin: 0;
    padding: 0;
}

.v2-description h3, .v2-features h3 {
    font-size: 1rem;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1;
}

.v2-description-content, .v2-features-content {
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

/* Performance and Appearance sections */
.v2-performance, .v2-appearance {
    margin: 0;
    padding: 0;
}

.v2-performance h3, .v2-appearance h3 {
        font-size: 1rem;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1;
    }

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .v2-layout-container {
        grid-template-columns: 1fr;
}

    .v2-gallery-section {
        position: relative;
        top: 0;
    }

    .v2-title {
        font-size: 2rem;
    }

    .v2-price {
        font-size: 1.75rem;
    }
    
    .v2-cta-group {
        flex-direction: column;
    }
}

/* Tighter detail sections */
.v2-details-grid {
    gap: 8px;
    margin: 0;
}

.v2-detail-card {
    padding: 8px;
    margin: 0;
}

.v2-detail-card h3 {
    font-size: 1rem;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1;
}

/* Tighter lists */
.v2-specs-list {
    margin: 0;
    padding: 0;
}

.v2-specs-list li {
    padding: 2px 0;
    margin: 0;
    line-height: 1.2;
}

/* Description and Features sections */
.v2-description, .v2-features {
    margin: 0;
    padding: 0;
}

.v2-description h3, .v2-features h3 {
        font-size: 1rem;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1;
}

.v2-description-content, .v2-features-content {
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

/* Restore Button Styling */
.v2-cta-group {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.v2-btn-primary, .v2-btn-secondary {
    flex: 1;
        padding: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    border: none;
    margin: 0;
}

.v2-btn-primary {
    background: var(--gradient-primary);
    color: var(--text-on-dark);
}

.v2-btn-secondary {
    background: var(--bg-dark);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Gradient text effect for button and icon */
.v2-btn-secondary,
.v2-btn-secondary i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hover state - gradient background with white text */
.v2-btn-secondary:hover {
    background: var(--gradient-primary);
}

/* Reset text color on hover to white */
.v2-btn-secondary:hover,
.v2-btn-secondary:hover i {
    color: var(--text-on-light);
    -webkit-text-fill-color: var(--text-on-light);
    background: none;
}

/* Remove default margins from headings and normalize sizes */
.v2-info-section h3 {
    font-size: 1.1rem;
    margin: 4px 0;
    padding: 0;
    line-height: 1.2;
}

/* Tighten up all sections */
.v2-info-section > div {
    margin: 4px 0;
    padding: 0;
}

/* Handle line breaks in description */
.v2-description-content,
.v2-features-content {
    white-space: normal; /* Override any pre-formatting */
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

/* Remove list spacing */
.v2-info-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.v2-info-section li {
    margin: 2px 0;
    padding: 0;
}

/* Add right padding to info section */
.v2-info-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 20px;  /* Add padding to the right */
}

/* Keep responsive behavior */
@media (max-width: 768px) {
    .v2-info-section {
        padding-right: 12px;  /* Slightly less padding on mobile */
    }
}

/* Primary button (Schedule Test Drive) */
.v2-btn-primary {
    flex: 1;
    background: var(--gradient-primary) !important;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Text styling */
.v2-btn-primary span {
    color: var(--bg-dark);
    -webkit-text-fill-color: var(--bg-dark);
}

/* Hover states */
.v2-btn-primary:hover {
    background: var(--bg-dark) !important;
}

.v2-btn-primary:hover span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* View Details Button */
.vehicle-card .view-details {
    width: calc(100% - 2.5rem);
        padding: 1rem;
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
    text-align: center;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.0;
    border: none;
    margin: 0.75rem 1.25rem 1.25rem 1.25rem;
    margin-top: auto;
}

.vehicle-card .view-details:hover {
    opacity: 0.9;
}

/* Vehicle Card Structure */
.vehicle-card {
    background: var(--bg-light);  /* Explicitly set to --bg-light */
    border-radius: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

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

/* Vehicle Image Container */
.vehicle-image {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

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

/* Hero Section - Search Page Specific */
.inventory-hero.hero {
    min-height: 200px !important;
    padding: 1rem 5% !important;
}

.inventory-hero .hero-search {
    margin: 0 auto;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-link {
    padding: 0.5rem 1rem;
    border-radius: 0;
    text-decoration: none;
    color: var(--text-on-light);
    background: var(--bg-dark);
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
}

.page-link.active {
    background: var(--gradient-primary);
    font-weight: bold;
}

.pagination .page-link {
    background: var(--bg-dark);
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    margin: 0 4px;
    border-radius: 0;
}

.pagination .page-link .page-number {
    color: var(--gradient-primary);
    font-weight: bold;
}

.pagination .page-link.active {
    background: var(--gradient-primary);
    color: #000;
}

.pagination a.page-link:hover {
    background: var(--bg-dark-hover);
}

/* Base button styles */
.hero-buttons .btn {
    padding: 1rem 2rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: none;  /* Remove default shadow */
}

/* Primary Button (View Inventory) */
.hero-buttons .btn-primary {
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
    border: none;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
}

/* Secondary Button (Contact Us) */
.hero-buttons .btn-secondary {
    background: var(--bg-dark);
    color: var(--color-primary);
    border: none;
}

.hero-buttons .btn-secondary:hover {
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);  /* Match primary button shadow */
}

/* Contact Page Styles */
.contact-page {
    background: var(--bg-light);
}

/* Hero Section */
.contact-hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('../images/2021-Explorer.webp');
    background-size: cover;
    background-position: center 20%; /* Adjusted to show higher portion of image */
    padding-top: 2rem;
    padding-bottom: 12rem;
}

.contact-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

.contact-hero-content h1 {
    color: var(--color-primary); /* Green color */
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.contact-hero-content .lead {
    color: #fff; /* White text */
    font-size: 1.2rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-hero-content h1 {
        font-size: 2rem;
    }

    .contact-hero-content .lead {
        font-size: 1rem;
    }
}

/* Contact Grid Positioning */
.contact-grid {
    max-width: 1200px;
    margin: -6rem auto 0; /* Adjusted margin to pull cards up more */
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.contact-card {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 0;
    text-align: center;
    color: var(--text-on-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

/* Contact Card Icons */
.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-dark);
    border-radius: 0;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
        font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ensure icons are visible on dark backgrounds */
.contact-card .contact-icon i {
    color: var(--color-primary);  /* Fallback */
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-card p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.contact-link {
    color: var(--text-on-dark);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-list li:last-child {
    border-bottom: none;
}

/* Contact Form Section */
.contact-form-section {
    background: var(--bg-dark);
    padding: 2rem;
}

.contact-form-section h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.contact-form-section .form-lead {
    color: #c6c6c6;
    margin-bottom: 1.5rem;
}

.contact-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem; /* Tighter spacing between fields */
}

.contact-form .form-group {
    margin-bottom: 0.5rem; /* Reduced spacing between form groups */
}

.contact-form .form-group label {
    color: var(--gradient-primary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem; /* Minimal space between label and input */
    display: block;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 0;
    background-color: #fff;
    color: #333; /* Dark text in fields */
        font-size: 1rem;
    }

.contact-form .form-group.full-width {
    grid-column: 1 / -1;
}

/* Submit button styling */
.contact-form .submit-btn {
    background: var(--gradient-primary);
    color: #000;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-form .submit-btn:hover {
    opacity: 0.9;
}

/* Map Section */
.map-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 450px;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-hero .lead {
        font-size: 1.2rem;
    }
}

/* Payment Estimate Section */
.payment-estimate {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 0;
    margin-top: 1.5rem;
    text-align: center;
}

.monthly-payment {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.monthly-payment .amount {
        font-size: 2rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.monthly-payment .per-month {
    color: var(--text-on-dark);
    font-size: 1.2rem;
}

.payment-terms {
    color: var(--text-on-dark);
    opacity: 0.7;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

/* Match exactly the v2-btn-primary style */
.payment-estimate .btn-send-message {
    width: 100%;
    margin: 0;
    background: var(--gradient-primary);
    color: #191919;
    border: none;
    box-shadow: none;
    transition: none;
}

.payment-estimate .btn-send-message:hover {
    transform: none;
    background: var(--gradient-primary);
    box-shadow: none;
}

.payment-estimate .btn-send-message span,
.payment-estimate .btn-send-message i {
    color: #191919;
    -webkit-text-fill-color: #191919;
    background: none;
}

/* Standalone Payment Estimate Styles */
.payment-box {
    background: #191919;
    padding: 1.5rem;
    border-radius: 0;
    margin-top: 1.5rem;
    text-align: center;
}

.payment-amount-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.payment-amount {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.payment-period {
    color: #ffffff;
    font-size: 1.2rem;
}

.payment-details {
    color: #ffffff;
    opacity: 0.7;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

/* Match Schedule Test Drive button exactly */
.payment-calculate-btn {
    width: 90%; /* Wider button */
    margin: 0 auto; /* Center the button */
    background: var(--gradient-primary) !important;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
        padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

/* Ensure text stays centered with icon */
.payment-calculate-btn span {
    color: var(--bg-dark);
    -webkit-text-fill-color: var(--bg-dark);
    display: inline-flex;
    align-items: center;
}

/* Icon alignment */
.payment-calculate-btn i {
    color: var(--bg-dark);
    -webkit-text-fill-color: var(--bg-dark);
}

/* Custom Payment Calculator Styling */
.payment-box {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 0;
    margin-top: 1.5rem;
    text-align: center;
}

.payment-amount-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.payment-amount {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.payment-period {
    color: var(--text-on-dark);
    font-size: 1.2rem;
}

.payment-details {
    color: var(--text-on-dark);
    opacity: 0.7;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

/* Exactly matching v2-btn-primary */
.payment-calculate-btn {
    flex: 1;
    background: var(--gradient-primary) !important;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
        padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-calculate-btn span {
    color: var(--bg-dark);
    -webkit-text-fill-color: var(--bg-dark);
}

.payment-calculate-btn:hover {
    background: var(--bg-dark) !important;
}

.payment-calculate-btn:hover span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.payment-box .payment-amount {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Add this to ensure the gradient applies */
}

/* Payment Box Specific Styles - Higher Specificity */
.payment-box .payment-amount-wrapper .payment-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-primary) !important; /* Fallback */
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Additional override for any dynamic pricing elements */
.payment-box [class*="payment-amount"],
.payment-box [class*="amount"] {
    color: var(--color-primary) !important;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Ensure the period text is white */
.payment-box .payment-period {
    color: var(--text-on-dark);
    -webkit-text-fill-color: var(--text-on-dark);
    background: none;
}

.payment-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-group label {
    color: var(--text-on-dark);
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Input groups spacing and alignment */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Reduced from 8px */
    margin-bottom: 8px; /* Reduced from 12px */
}

/* Input and select styling */
.payment-inputs input,
.payment-inputs select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: var(--text-on-dark);
        font-size: 1rem;
    }

/* Calculate button styling */
.payment-calculate-btn {
    width: 100%; /* Match input width */
    margin: 0 auto;
    background: var(--gradient-primary) !important;
    border: none;
    border-radius: 0; /* Match input radius */
    transition: all 0.3s ease;
    padding: 0.75rem; /* Match input padding */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

/* Payment amount wrapper spacing */
.payment-amount-wrapper {
    margin-top: 8px; /* Reduced top spacing */
}

/* Payment details spacing */
.payment-details {
    margin-bottom: 12px; /* Adjust space between details and first label */
}

/* Input group label spacing */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.input-group:first-of-type {
    margin-top: 8px; /* Reduced space above first label */
}

/* Payment box overall padding */
.payment-box {
    padding: 16px; /* Adjust overall padding if needed */
}

/* Modal Styles with Mobile Adjustments */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light-transparent);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-light);
    margin: 1rem auto;
    padding: .5rem;
    width: 90%;
    max-width: 600px;
    position: relative;
    color: var(--text-on-light);
}

/* Tighter form spacing */
.modal .form-group {
    margin-bottom: 0.75rem;
}

.modal .form-group label {
    margin-bottom: 0.25rem;
    display: block;
    color: var(--text-on-light);
}

.modal .form-group input,
.modal .form-group textarea,
.modal .form-group select {
    padding: 0.5rem;
    background: #fff;  /* Pure white background for inputs */
    color: var(--text-on-light);
    width: 100%;
    border: 1px solid var(--bg-light);
}

/* Send Message button */
.modal .submit-btn,
.modal button[type="submit"] {
    background: var(--gradient-primary);
    color: var(--text-on-dark);
    padding: 0.5rem 1rem;
    width: 100%;
    border: none;
    cursor: pointer;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--text-on-light);
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-on-light);
}

.modal-body {
    padding: 20px;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-on-light);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0;
    background: white;
    color: var(--text-on-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group input[readonly] {
    background: rgba(0,0,0,0.05);
}

.submit-btn {
    background: var(--gradient-primary);
    color: var(--text-on-light);
    border: none;
    padding: 12px 24px;
    border-radius: 0;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        transform: translateY(-10%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        margin: 10px auto;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
}

/* Navigation Dropdown */
.nav-links .dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--bg-dark);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 0;
}

.dropdown-content li {
    padding: 0;
}

.dropdown-content a {
    color: var(--text-on-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero Section */
.hero {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('../images/2021-Explorer.webp');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 5%;
}

.hero-content {
    color: var(--text-on-dark);
    max-width: 800px;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
        gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: none;
}

.hero-buttons .btn-primary {
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
    border: none;
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
}

.hero-buttons .btn-secondary {
    background: var(--bg-dark);
    color: var(--color-primary);
    border: none;
}

.hero-buttons .btn-secondary:hover {
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from text-on-light */
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);  /* Match primary button shadow */
}

/* Hero Search Form */
.hero-search {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 0;
    max-width: 800px;
    padding-bottom: 2rem;  /* Add padding at bottom */
    margin-bottom: 2rem;   /* Add margin at bottom */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
    }

    .dropdown:hover .dropdown-content {
        display: none; /* Handle with JS for mobile */
    }
}

/* Search Form Styles - Long Version */
.search-form-long {
    background: var(--bg-dark);
    padding: 4px 25px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Filter groups layout */
.filter-groups {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Primary search area */
.primary-search {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Filter row */
.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .primary-search,
    .filter-row {
        grid-template-columns: 1fr;
    }
}

/* Form controls - preserve padding for usability */
.search-form-long .form-control,
.search-form-long select,
.search-form-long input {
    padding: 8px 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-row,
    .primary-search {
        flex-direction: column;
    }
}

/* Vehicle Type Selector */
.vehicle-type-selector {
    margin: 0.5rem 0;  /* Reduced from 2rem */
    padding: 0.25rem;
}

/* Vehicle Type Icons Grid */
.vehicle-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.type-icon {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0;
        padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.type-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.type-icon.selected {
    border-color: var(--color-primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.type-icon img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
}

.type-icon.selected img {
    filter: brightness(0) invert(0.8) sepia(1) saturate(1000%) hue-rotate(60deg);
}

.type-icon span {
    color: var(--text-on-dark);
    font-size: 0.9rem;
    display: block;
}

/* Search Controls */
.search-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-group {
    position: relative;
}

.search-group select,
.search-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 0;
        font-size: 1rem;
    color: var(--text-on-light);
    transition: all 0.3s ease;
}

.search-group select:focus,
.search-group input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--color-primary);
}

/* Search Button */
.search-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-primary);
    color: var(--text-on-light);
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-controls {
        grid-template-columns: 1fr;
    }
    
    .search-form-long {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .vehicle-type-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
}

/* Vehicle Type Selector */
.vehicle-type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 2rem 0;
    padding: 0.25rem;
    background: var(--bg-dark);
    border-radius: 0;
}

.type-icon {
    flex: 0 1 calc(12.5% - 0.25rem); /* Exactly 8 icons (100% ÷ 8) minus gap */
    min-width: 85px; /* Reduced minimum to help fit on one line */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    background: var(--bg-dark);
}

/* Image Icon Styling - keeping original size */
.type-icon img.vehicle-svg {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    filter: invert(27%) sepia(85%) saturate(7057%) hue-rotate(353deg) brightness(99%) contrast(137%);
    transition: all 0.3s ease;
}

/* Adjust text size to help fit */
.type-icon span {
    color: var(--text-on-dark);
    font-size: 0.8rem; /* Slightly smaller text */
    text-align: center;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .type-icon {
        flex: 0 1 calc(25% - 0.25rem); /* 4 icons per row on mobile */
    }
}

/* Advanced Search Page Styles */
.advanced-search-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0; /* Remove padding */
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px; /* Move padding here if needed */
}

.search-container {
    background: var(--bg-dark); /* Match dark theme */
    padding: 25px;
    border-radius: 0;
    margin: 30px auto; /* Use margin instead of parent padding */
}

/* Update results section */
.search-results {
    padding: 0 20px; /* Add padding to results container */
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 2px solid var(--bg-dark); /* Match theme */
}

.no-results {
    text-align: center;
    padding: 40px;
    background: var(--bg-dark); /* Match theme */
    border-radius: 0;
    margin: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    // ... existing responsive styles ...
}

/* Advanced Search Form Controls */
.search-form-long .form-control,
.search-form-long select,
.search-form-long input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    color: var(--text-on-dark);
        font-size: 1rem;
    transition: all 0.3s ease;
}

/* Hover state */
.search-form-long .form-control:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Focus state */
.search-form-long .form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

/* Style select dropdowns */
.search-form-long select {
    appearance: none;
    background: rgba(255, 255, 255, 0.1);  /* Dark background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-on-dark);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c6c6c6' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Filter groups layout */
.filter-groups {
    display: flex;
    flex-direction: column;
        gap: 1rem;
    margin: 1.5rem 0;
}

.filter-row {
    display: flex;
    gap: 1rem;
}

/* Primary search area */
.primary-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .primary-search {
        flex-direction: column;
    }
}

/* Advanced Search Form Styles */
.search-form-long {
    background: var(--bg-dark);
    padding: 8px 25px;  /* Reduced top/bottom padding */
}

/* Primary Search Area (Make/Model) */
.primary-search {
    margin-top: 0;  /* Remove top margin */
    margin-bottom: 8px;  /* Minimal bottom margin */
}

/* Vehicle Type Icons Section */
.vehicle-type-selector {
    margin: 8px 0;  /* Minimal vertical margins */
}

/* Filter Groups */
.filter-groups {
    margin-top: 8px;  /* Minimal top margin */
}

.filter-row {
    margin-bottom: 8px;  /* Minimal bottom margin */
}

/* Clear button container */
.search-button-container {
    margin-top: 8px;  /* Minimal top margin */
    margin-bottom: 0;  /* Remove bottom margin */
}

.search-form-long {
    background: var(--bg-dark);
    padding: 5px 25px;
    display: flex;
    flex-direction: column;
    gap: 4px;  /* Tiny gap between all elements */
}

/* Remove all margins and padding from direct children */
.primary-search,
.vehicle-type-selector,
.filter-groups,
.filter-row,
.search-button-container {
    
    margin: 0;
    padding: 0;
}

/* Minimal spacing between rows only */
.filter-row + .filter-row {
    margin-top: 4px;
}

/* Remove any default form element spacing */
.form-control,
select,
input {
    margin: 0;
    padding: 4px 8px;
}

/* Style select dropdowns and their options */
.search-form-long select,
.search-form-long select option {
    appearance: none;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-on-dark);
}

/* Style the dropdown options specifically */
.search-form-long select option {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 8px;
}

/* Focus state */
.search-form-long select:focus {
    outline: none;
    background: var(--bg-dark);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

/* Search button container - updated for single button */
.search-button-container {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

/* Clear button styling - updated with gradient */
.clear-button {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    padding: 12px 24px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

/* Update icon color to match dark text */
.clear-button i {
    color: var(--bg-dark);
    -webkit-text-fill-color: var(--bg-dark);
    background: none;
}

/* Hover effect */
.clear-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(74, 255, 0, 0.3);
}

/* Clear button styling - with higher specificity */
.search-form-long .clear-button,
.clear-button {
    background: var(--gradient-primary);
    color: var(--text-on-dark);  /* Changed from var(--text-on-light) */
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

/* Update icon color to match dark text */
.search-form-long .clear-button i,
.clear-button i {
    color: var(--text-on-dark);  /* Changed from var(--text-on-light) */
    -webkit-text-fill-color: var(--text-on-dark);  /* Changed from var(--text-on-light) */
    background: none;
}

/* Simple scale hover effect */
.search-form-long .clear-button:hover,
.clear-button:hover {
    transform: scale(1.05);
    background: var(--gradient-primary);  /* Force gradient on hover */
    box-shadow: none;  /* Remove any shadow */
}

/* Mobile dropdown styles */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-content {
    display: none;
    padding-left: 20px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 8px;
    border-radius: 0;
}

.mobile-dropdown-content.show {
    display: block;
}

.mobile-dropdown-content li {
    padding: 8px 16px;
}

.mobile-dropdown-content a {
    color: var(--text-on-dark);
    text-decoration: none;
    display: block;
}

/* Right Column Container */
.v2-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

/* Ensure payment box retains its styling */
.v2-right-column .payment-box {
    width: 100%;
    background: #191919;
    border-radius: 0;
    padding: 1.5rem;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .v2-right-column {
        gap: 1rem;
        padding: 0 1rem;
    }
}

.v2-specs-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.v2-specs-column {
    flex: 1;
}

/* Make sure detail cards maintain consistent height */
.v2-detail-card {
    height: 100%;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .v2-specs-container {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Payment Box Styles */
.payment-box {
    background: #191919;
    padding: 0.75rem 1.5rem;  /* Reduced top/bottom padding from 1.5rem to 0.75rem */
    border-radius: 0;
    margin-top: 1.5rem;
    text-align: center;
}

/* Payment amount wrapper */
.payment-amount-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin: 0;  /* Remove any margin */
}

/* Price Styling for inventory grid */
.vehicle-card .vehicle-price,
.vehicle-card .price-amount,
.vehicle-info .vehicle-price,
.vehicle-info .price-amount {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;  /* Remove any margins */
    padding: 0;  /* Remove any padding */
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;  /* Tighter spacing between buttons on mobile */
        width: 100%;  /* Full width on mobile */
        padding: 0 1rem;  /* Add some padding on the sides */
    }

    .hero-buttons .btn {
        width: 100%;  /* Make buttons full width */
        margin: 0;    /* Remove any margins */
        padding: 0.75rem 1.5rem;  /* Consistent padding */
    }
}

/* Desktop vs Mobile Grid Display */
.mobile-inventory-grid {
    display: none;  /* Hide mobile grid by default */
}

@media (max-width: 768px) {
    .desktop-inventory-grid {
        display: none;  /* Hide desktop grid on mobile */
    }
    
    .mobile-inventory-grid {
        display: block;  /* Show mobile grid on mobile */
    }
}

@media (max-width: 768px) {
    .about-text {
        width: 90%;
        margin: 0 auto;
        padding: 1rem 0;
    }
    
    .about-text h2 {
        font-size: 2rem;  /* Slightly smaller heading on mobile */
    }
    
    .about-text .lead {
        font-size: 1.1rem;  /* Adjust lead paragraph size */
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* About Features Titles */
.about-features .feature h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Keep existing about features styles */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-features .feature {
    text-align: center;
    padding: 1.5rem;
}

.about-features .feature i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* About Features Title - More specific selector */
.about-preview .about-features .feature h3 {
    color: var(--color-primary) !important;  /* Using --color-primary instead of --primary */
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Remove any gradient styling that might be interfering */
.about-preview .about-features .feature h3 {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

/* Contact Hero Section */
.contact-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-hero {
        padding-top: 3rem; /* Slightly less padding on mobile */
        padding-bottom: 1.5rem;
    }
    
    .contact-hero-content h1 {
        font-size: 2rem;
    }
    
    .contact-hero-content .lead {
        font-size: 1rem;
    }
}

/* Contact Hero Section - Desktop */
.contact-hero {
    padding-top: 4rem; /* Even more padding above */
    padding-bottom: 10rem;
}

.contact-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-hero-content h1 {
    color: var(--color-primary);
    margin-bottom: 0.1rem; /* Minimal space between header and subheader */
    font-size: 2.5rem;
}

.contact-hero-content .lead {
    color: #fff;
    font-size: 1.2rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-hero {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    .contact-hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.1rem;
    }
    
    .contact-hero-content .lead {
        font-size: 1rem;
    }
}

/* Contact Grid Section */
.contact-grid {
    margin-bottom: 6rem; /* Significant space below grid on desktop */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact-grid {
        margin-bottom: 4rem; /* Slightly less space on mobile but still substantial */
    }
}

/* Mobile adjustments for contact cards */
@media (max-width: 768px) {
    .contact-card {
        padding: 0.75rem; /* Even less padding around card */
    }
    
    .contact-card .contact-icon {
        margin-bottom: 0.3rem; /* Minimal space below icon */
    }
    
    .contact-card h3 {
        margin-bottom: 0.15rem; /* Very tight spacing below heading */
        font-size: 1.1rem; /* Slightly smaller heading */
    }
    
    .contact-card p {
        margin-bottom: 0.15rem; /* Very tight spacing below paragraph */
        font-size: 0.9rem; /* Slightly smaller text */
    }
    
    .contact-card .contact-link {
        margin-top: 0.15rem; /* Minimal space above links */
    }
    
    .hours-list li {
        margin-bottom: 0.15rem; /* Very tight spacing between hours */
        font-size: 0.9rem; /* Slightly smaller text */
    }
}

/* Contact page card spacing - Desktop */
.contact-grid .contact-card {
    padding: 0.75rem;
}

.contact-grid .contact-card .contact-icon {
    margin-bottom: 0.3rem;
}

.contact-grid .contact-card h3 {
    margin-bottom: 0.15rem;
}

.contact-grid .contact-card p {
    margin-bottom: 0.15rem;
}

/* Mobile styles remain the same since desktop now matches */
@media (max-width: 768px) {
    .contact-grid .contact-card {
        padding: 0.75rem;
    }
    
    .contact-grid .contact-card .contact-icon {
        margin-bottom: 0.3rem;
    }
    
    .contact-grid .contact-card h3 {
        margin-bottom: 0.15rem;
    }
    
    .contact-grid .contact-card p {
        margin-bottom: 0.15rem;
    }
}

.sort-controls {
    display: flex;
    justify-content: flex-end;
    margin: 1rem 0;
}

.sort-controls select {
    width: auto;
    min-width: 200px;
}

@media (max-width: 768px) {
    .sort-controls {
        justify-content: stretch;
    }
    
    .sort-controls select {
        width: 100%;
    }
}

.mobile-menu-bottom-close {
    position: relative; /* Change from absolute to relative */
    bottom: auto;
    left: auto;
    transform: none;
    margin: 1rem auto 0; /* Add some margin at the top */
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-bottom-close:hover {
    background-color: #f5f5f5;
}

.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px; /* Reduced from 20px */
    margin: 15px 0; /* Reduced spacing */
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-item img {
    width: 24px; /* Fixed width for icons */
    height: 24px; /* Fixed height for icons */
    min-width: 24px; /* Prevent icon shrinking */
    object-fit: contain; /* Maintain aspect ratio */
}

.spec-content {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 2px;
}

.spec-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-on-light);
}

/* Adjust spacing for other sections to match */
.top-features-section {
    margin: 20px 0; /* Reduced from 30px */
}

.top-features-section h2 {
    margin-bottom: 15px; /* Reduced from 20px */
}

.vehicle-description-section {
    margin: 20px 0; /* Reduced from 30px */
}

.vehicle-description-section h2 {
    margin-bottom: 15px; /* Reduced from 20px */
}

/* Vehicle Details Section */
.vehicle-details-section {
    margin: 20px 0;
}

.vehicle-details-section h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-on-light);
}

.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 15px 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-item img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    object-fit: contain;
}

.spec-content {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 2px;
}

.spec-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-on-light);
}

/* Top Features Section */
.top-features-section {
    margin: 20px 0;
}

.top-features-section h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-on-light);
}

.features-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.feature-pill {
    background: #a6a6a6;
    color: #191919;
    padding: 6px 16px;
    border-radius: 0;
    font-size: 14px;
    display: inline-block;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.feature-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.features-accordion {
    margin-top: 15px;
}

.accordion-trigger {
    width: 100%;
    padding: 1rem 1.5rem;  /* Increased padding */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    min-height: 2.5rem;  /* Added minimum height */
    transition: all 0.3s ease;
}

.accordion-trigger:hover {
    background: var(--bg-light-hover);
    text-decoration: none !important; /* Ensure no underline on hover */
    color: inherit !important; /* Keep original text color on hover */
}

.accordion-trigger i {
    transition: transform 0.3s ease;
    color: var(--text-on-light) !important;
    -webkit-text-fill-color: var(--text-on-light) !important;
    background: none !important;
}

.accordion-trigger.active i {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding-top: 15px;
}

.accordion-content.active {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Vehicle Description Section */
.vehicle-description-section {
    margin: 20px 0;
}

.vehicle-description-section h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-on-light);
}

/* Featured Categories Section */
.featured-categories {
    margin: 4rem auto;
    background: var(--bg-light);
}

.categories-grid {
    display: flex;
    gap: 1rem;
    height: 400px;
}

.categories-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.category-box {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 0;
    overflow: hidden;
}

.categories-left .category-box {
    flex: 1;
}

.category-box:hover {
    opacity: 0.9;
}

.category-box h2 {
    font-size: 2rem;
    line-height: 1;
    margin: 0;
}

.category-box p {
    font-size: 3rem;
    line-height: 1;
    margin: 0.25rem 0;
}

.category-link {
    font-size: 1rem;
    text-decoration: none;
    color: white;
}

/* Specific category styling */
.category-box.jeep {
    background-image: url('../images/blue-jeep.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-box.suvs {
    flex: 1;
    background-image: url('../images/blue-tahoe.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Add overlay to both image boxes */
.category-box.jeep::before,
.category-box.suvs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.category-box.jeep *,
.category-box.suvs * {
    position: relative;
    z-index: 2;
    margin-bottom: 0.1rem;
}

@media (max-width: 768px) {
    .categories-grid {
        flex-direction: column;
        height: auto;
    }
    
    .category-box {
        min-height: 200px;
    }
}

/* Specific category styling */
.category-box.financing {
    background: var(--gradient-primary);
    position: relative;
}

.category-box.financing h2,
.category-box.financing p,
.category-box.financing .category-link {
    color: var(--text-on-dark);  /* Changed from text-on-light */
}

.category-box.financing h2 {
    font-size: 2rem;
    margin: 0;
}

.category-box.financing p {
    font-size: 3rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.category-box.financing .category-link {
    font-size: 1rem;
}

/* Utility classes and additional styling */
.no-radius {
    border-radius: 0 !important;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

a.category-box {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Image box text styling */
.category-box.jeep h2,
.category-box.suvs h2,
.category-box.suvs p {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Style for the arrow links */
.category-box.jeep .category-link,
.category-box.suvs .category-link {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    text-shadow: none;
}

/* Hover effects */
.category-box:hover .category-link {
    opacity: 0.9;
}

/* Featured Section Box Hover Effects */
.feature:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1);
}

.feature {
    transition: all 0.3s ease;
}

/* Promo Boxes Section */
.promo-boxes {
    max-width: 1400px;
    margin: -6rem auto 4rem;
    position: relative;
    z-index: 2;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.promo-box {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: var(--shadow-default);
    background: var(--gradient-primary);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.promo-content {
    padding: 1.5rem;  /* Reduced from 2rem */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: var(--text-on-dark);  /* Added this line */
}

.promo-content h2 {
    margin: 0;
    line-height: 1.1;  /* Tighter line height */
    font-size: 1.5rem;
    color: var(--text-on-dark);  /* Added this line */
}

.promo-content p {
    margin: 0.25rem 0;  /* Reduced margin */
    line-height: 1.1;   /* Tighter line height */
    font-size: 1rem;
    color: var(--text-on-dark);  /* Added this line */
}

.promo-link {
    margin-top: 0.5rem;  /* Reduced top margin */
    color: var(--text-on-dark);  /* Added this line */
}

.promo-link:hover {
    opacity: 0.9;
}

@media (max-width: 992px) {
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .promo-boxes {
        margin-top: -2rem;  /* Reduce negative margin */
        padding: 0 15px;    /* Add some side padding */
    }
    
    .promo-box {
        height: 140px;     /* Make boxes shorter */
        margin-bottom: 0;  /* Remove any bottom margin */
    }
    
    .promo-content {
        padding: 1rem;    /* Reduce padding inside boxes */
    }
    
    .promo-content h2 {
        font-size: 1.25rem;  /* Slightly smaller heading */
        margin-bottom: 0.25rem;
    }
    
    .promo-content p {
        font-size: 0.9rem;   /* Slightly smaller text */
        margin: 0.15rem 0;   /* Tighter margins */
    }
    
    .promo-link {
        margin-top: 0.25rem; /* Less space above link */
    }
}

/* Common Section Widths and Containers */
.inventory-preview,
.inventory-section,
.featured-categories,
.about-preview .about-content,
.hero-search,
.footer-content,
.promo-boxes,
.vehicle-content,
.contact-content,
.advanced-filters,
.filter-wrapper,
.search-container,
.vehicle-header-box {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
    box-sizing: border-box;
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .inventory-preview,
    .inventory-section,
    .featured-categories,
    .about-preview .about-content,
    .hero-search,
    .footer-content,
    .promo-boxes,
    .vehicle-content,
    .contact-content,
    .advanced-filters,
    .filter-wrapper,
    .search-container,
    .vehicle-header-box {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    /* Increase padding under search form */
    .hero-search {
        margin-bottom: 4rem;  /* Increased from 2rem to 4rem */
    }
    
    /* Keep existing promo boxes styles */
    .promo-boxes {
        margin-top: -2rem;
        padding: 0 15px;
    }
    
    .promo-grid {
        gap: 0.75rem;
    }
    
    .promo-box {
        height: 140px;
        margin-bottom: 0;
    }
    
    .promo-content {
        padding: 1rem;
    }
    
    .promo-content h2 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .promo-content p {
        font-size: 0.9rem;
        margin: 0.15rem 0;
    }
    
    .promo-link {
        margin-top: 0.25rem;
    }
}

/* Send Message button styling - color only */
.btn-send-message {
    color: var(--text-on-dark);  /* Changed to light text for better contrast on gradient */
    -webkit-text-fill-color: var(--text-on-dark);  /* Added to override gradient */
}

.btn-send-message i {
    color: var(--text-on-dark);
    -webkit-text-fill-color: var(--text-on-dark);
}

/* V2 Button Primary Styling */
.v2-btn-primary {
    background: var(--gradient-primary);
}

.v2-btn-primary span,
.v2-btn-primary i {
    color: var(--text-on-dark);
    -webkit-text-fill-color: var(--text-on-dark);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

/* Hover state */
.v2-btn-primary:hover span,
.v2-btn-primary:hover i {
    color: var(--text-on-dark);
    -webkit-text-fill-color: var(--text-on-dark);
}

/* Get More Info button styling */
.get-more-info-btn,
.btn-get-info {
    background: var(--bg-dark) !important;  /* Changed to dark background */
    color: var(--text-on-dark);
    -webkit-text-fill-color: var(--text-on-dark);
}

/* Icon color within the button */
.get-more-info-btn i,
.btn-get-info i {
    color: var(--text-on-dark);
    -webkit-text-fill-color: var(--text-on-dark);
    background: none;
}

/* Hover state */
.get-more-info-btn:hover,
.btn-get-info:hover {
    background: var(--bg-dark) !important;  /* Keep dark background on hover */
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
}

/* View Full List button styling */
.accordion-trigger {
    background: var(--bg-dark) !important;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    cursor: pointer;
}

/* Text and Icon Color */
.accordion-trigger span,
.accordion-trigger i {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: var(--text-on-dark);
    color: var(--text-on-dark);
}

/* Hover States */
.accordion-trigger:hover {
    background: var(--gradient-primary) !important;
    transform: translateY(-2px);
}

/* Keep text light on hover */
.accordion-trigger:hover span,
.accordion-trigger:hover i {
    -webkit-text-fill-color: var(--text-on-dark);
    color: var(--text-on-dark);
}

/* Simple View Full List button styling */
.accordion-trigger {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1rem;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.accordion-trigger i {
    color: var(--color-primary);
    font-size: 0.8rem;
}

.accordion-trigger:hover {
    opacity: 0.8;
}

/* Simple text-only View Full List styling */
.accordion-trigger {
    background: none;
    border: none;
    color: var(--text-on-light);
    font-size: 1rem;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.accordion-trigger:hover {
    text-decoration: underline;
}

/* Mobile-specific form spacing adjustments */
@media (max-width: 768px) {
    .modal-content {
        padding: 1rem; /* Reduce overall modal padding */
    }

    .modal .form-group {
        margin-bottom: 0.5rem; /* Tighter spacing between form groups */
    }

    .modal label {
        margin-bottom: 0.15rem; /* Minimal space under labels */
        font-size: 0.9rem; /* Slightly smaller label text */
    }

    .modal input,
    .modal select,
    .modal textarea {
        padding: 0.4rem; /* Smaller input padding */
        margin-bottom: 0; /* Remove bottom margin from inputs */
        font-size: 0.9rem; /* Slightly smaller input text */
    }

    .modal textarea {
        min-height: 80px; /* Shorter default height for message box */
    }

    .modal .submit-btn {
        margin-top: 0.5rem; /* Less space above submit button */
        padding: 0.6rem; /* Smaller button padding */
    }
}

/* Compact form styles */
.compact-form .form-group {
    margin-bottom: 0.5rem;
}

.compact-form label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.compact-form input,
.compact-form select,
.compact-form textarea {
    width: 100%;
    padding: 0.4rem;
    margin-bottom: 0;
}

.compact-form textarea {
    min-height: 60px;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 0.5rem;
        padding: 1rem;
    }

    .modal-header {
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    /* Form group spacing */
    .modal .form-group {
        margin-bottom: 0.4rem;
    }

    /* Label adjustments */
    .modal label {
        margin-bottom: 0.15rem;
        font-size: 0.85rem;
    }

    /* Input field adjustments */
    .modal input,
    .modal select,
    .modal textarea {
        padding: 0.4rem;
        margin-bottom: 0;
        font-size: 0.9rem;
    }

    /* Textarea height */
    .modal textarea {
        min-height: 60px;
    }

    /* Submit button */
    .modal .submit-btn {
        margin-top: 0.5rem;
        padding: 0.6rem;
    }

    /* Trade-in fields spacing */
    #tradeFields .form-group {
        margin-bottom: 0.4rem;
    }

    /* Date/Time fields specific spacing */
    .modal input[type="date"],
    .modal input[type="time"] {
        padding: 0.4rem;
    }
}
