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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.separate-prices {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.separate-price-item {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    margin: 0;
}

.hero-image {
    max-width: 1000px;
    margin: 2rem auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.gallery-nav .nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.gallery-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Vehicle Sections */
.vehicle-section {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 100px;
}

.rv-section {
    border-top: 5px solid #667eea;
}

.truck-section {
    border-top: 5px solid #f093fb;
}

.vehicle-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.vehicle-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.vehicle-description,
.vehicle-specs,
.vehicle-enhancements {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.vehicle-description h3,
.vehicle-specs h3,
.vehicle-enhancements h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #555;
}

.vehicle-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.vehicle-specs ul,
.vehicle-enhancements ul {
    list-style: none;
    padding: 0;
}

.vehicle-enhancements ul ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.vehicle-enhancements ul ul li {
    font-size: 0.95rem;
    color: #777;
    padding: 0.25rem 0;
    border-bottom: none;
}

.vehicle-specs li,
.vehicle-enhancements li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
    color: #666;
}

.vehicle-specs li:last-child,
.vehicle-enhancements li:last-child {
    border-bottom: none;
}

.vehicle-specs li strong {
    color: #333;
    display: inline-block;
    /* min-width: 180px; */
}

.vehicle-specs a,
.vehicle-enhancements a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.vehicle-specs a:hover,
.vehicle-enhancements a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Gallery Section */
.gallery-section {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #4facfe;
}

.gallery-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    text-align: center;
}

.gallery-subsection {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.gallery-subsection:last-child {
    margin-bottom: 0;
}

.gallery-subsection h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #555;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4 / 3;
    background: #e0e0e0;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    padding: 2rem;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    margin-top: 5vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #f1f1f1;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #bbb;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 1rem;
    margin-top: -2rem;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    transition: 0.3s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.next {
    right: 2rem;
}

.prev {
    left: 2rem;
}

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

/* Contact Section */
.contact-section {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    margin: 3rem auto;
    max-width: 1200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 100px;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    text-align: center;
    font-size: 1.2rem;
    line-height: 2;
}

.contact-info p {
    margin: 0.5rem 0;
    color: #555;
}

.contact-info strong {
    color: #333;
    font-size: 1.4rem;
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer p {
    font-size: 1rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #764ba2;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

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

    .subtitle {
        font-size: 1rem;
    }

    .separate-prices {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .separate-price-item {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .vehicle-section {
        padding: 2rem 1.5rem;
    }

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

    .vehicle-specs li strong {
        min-width: 140px;
        display: block;
        margin-bottom: 0.25rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .gallery-nav {
        gap: 1rem;
    }

    .gallery-nav .nav-link {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }

    .gallery-subsection {
        scroll-margin-top: 80px;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .lightbox-content {
        max-width: 95%;
    }

    .close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2rem;
    }

    .prev,
    .next {
        font-size: 1.5rem;
        padding: 0.75rem;
    }

    .next {
        right: 1rem;
    }

    .prev {
        left: 1rem;
    }
}

