:root {
    --primary-color: #0056b3;
    --secondary-color: #004494;
    --accent-color: #e63946;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.3s, opacity 0.3s;
}

.social-share a:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.social-share .facebook { background-color: #1877f2; }
.social-share .x-twitter { background-color: #000000; }
.social-share .whatsapp { background-color: #25d366; }
.social-share .linkedin { background-color: #0077b5; }
.social-share .telegram { background-color: #0088cc; }
.social-share .instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.social-share svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-share .telegram-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0088cc;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    width: auto;
    height: auto;
}

.social-share .telegram-cta svg {
    width: 18px;
    height: 18px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin-bottom: 5px;
    transition: all 0.3s;
}

.mobile-menu-toggle span:last-child {
    margin-bottom: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/images/Main-Header.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Detail Page Hero - No Overlay */
.detail-hero-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.detail-hero-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Page Title Section */
.page-title-section {
    padding: 30px 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.page-title-section h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.page-title-section .subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Inventory Section */
#inventory {
    padding: 60px 20px;
}

.inventory-header {
    text-align: center;
    margin-bottom: 50px;
}

.inventory-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.inventory-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

.caravan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Caravan Card */
.caravan-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.off-road-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #e31837; /* Vibrant Red */
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

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

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

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--success-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.sold {
    background-color: var(--light-text);
}

.status-badge.last-unit {
    background-color: var(--accent-color);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content .btn, 
.card-content button {
    margin-top: auto;
    margin-bottom: 0; /* ensure it stays at bottom */
}

/* Add space above buttons specifically */
.caravan-card .btn, 
.caravan-card button {
    margin-top: 15px !important;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.price-container {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    text-decoration: line-through;
    color: var(--light-text);
    font-size: 1rem;
}

.monthly-price {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-top: 2px;
}

.monthly-price small {
    font-size: 0.6rem;
    vertical-align: super;
}



.monthly-payment small {
    font-size: 0.75rem;
    vertical-align: super;
}

.terms-note {
    font-size: 0.7rem;
    color: #999;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

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

.spec-label {
    color: var(--light-text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-weight: 600;
    color: var(--text-color);
}

.card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-block {
    display: block;
    text-align: center;
    width: 100%;
    padding: 10px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s, background 0.3s;
    background: rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.5);
    color: #ccc;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Gallery with clickable images */
.gallery-grid .gallery-item img {
    cursor: pointer;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p, .footer-section a {
    color: #aaa;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        height: 60px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .caravan-grid {
        grid-template-columns: 1fr;
    }
    
    .card-actions {
        grid-template-columns: 1fr;
    }
    
    .logo img {
        height: 35px;
    }
    
    .page-title-section h1 {
        font-size: 1.8rem;
    }
    
    .social-share .telegram-cta {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

.monthly-payment small {
    font-size: 0.75rem;
    vertical-align: super;
}

 display: flex;
    flex-direction: column;
}

.spec-label {
    color: var(--light-text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-weight: 600;
    color: var(--text-color);
}

.card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-block {
    display: block;
    text-align: center;
    width: 100%;
    padding: 10px;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s, background 0.3s;
    background: rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.5);
    color: #ccc;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Gallery with clickable images */
.gallery-grid .gallery-item img {
    cursor: pointer;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p, .footer-section a {
    color: #aaa;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        height: 60px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .caravan-grid {
        grid-template-columns: 1fr;
    }
    
    .card-actions {
        grid-template-columns: 1fr;
    }
    
    .logo img {
        height: 35px;
    }
    
    .page-title-section h1 {
        font-size: 1.8rem;
    }
    
    .social-share .telegram-cta {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}



/* FAQ Accordion */
.faq-section { margin-top: 40px; }
.faq-accordion { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
.faq-accordion .faq-item { border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.faq-accordion .faq-item summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; position: relative; }
.faq-accordion .faq-item summary::-webkit-details-marker { display: none; }
.faq-accordion .faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; opacity: 0.8; }
.faq-accordion .faq-item[open] summary::after { content: "−"; }
.faq-accordion .faq-answer { padding: 0 18px 16px 18px; color: rgba(0,0,0,0.78); line-height: 1.6; }
.faq-accordion .faq-answer p { margin: 0; }

/* Related units */
.related-section { margin-top: 40px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.related-card { display: block; padding: 16px; border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; text-decoration: none; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.related-card h3 { margin: 0 0 6px 0; font-size: 1rem; }
.related-card p { margin: 0; opacity: 0.75; }
@media (max-width: 860px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* Section spacing and standardized content layout */
.info-section { 
    margin-bottom: 40px; 
    padding: 0;
}

.info-section h2, .main-info > h2, .seo-block h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Ensure first heading after provenance doesn't have double top margin */
.provenance-section + h2, 
.provenance-section + .info-section h2,
.provenance-section + .seo-block h2 {
    margin-top: 0;
}

.steps-list, .seo-block ol, .seo-block ul {
    padding-left: 20px;
    margin-left: 0;
}

.steps-list li, .seo-block ol li, .seo-block ul li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.steps-list {
    list-style: decimal;
}

.main-info {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-disclaimer {
    margin-top: 20px;
    padding: 15px 18px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #888;
    text-align: center;
}

.footer-disclaimer p {
    margin-bottom: 5px;
}

;
}


/* Sidebar conversion improvements */
.savings-line {
    color: #2e7d32; /* Calm Green */
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 8px;
    margin-bottom: 15px;
}
.finance-box {
    background: #f8f9fa; /* Light Neutral Grey */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 25px;
    text-align: center;
}
.finance-box .monthly-amount {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 800;
    display: block;
    margin-top: 5px;
}
.finance-label {
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
}

/* UI/Layout Improvements for Detail Pages */
.main-info h2 {
    margin-top: 48px;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-size: 1.8rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.equipment-list {
    margin-top: 60px;
}

.equipment-list h3 {
    margin-bottom: 24px;
    font-size: 2rem;
    color: var(--text-color);
}

.top-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.highlight-pill {
    background: #f0f4f8;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #d1e2f3;
}

.equip-accordion {
    display: grid;
    gap: 12px;
}

.equip-item {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s;
}

.equip-item summary {
    padding: 16px 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--text-color);
    background: #fafafa;
}

.equip-item summary::-webkit-details-marker {
    display: none;
}

.equip-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 400;
}

.equip-item[open] summary {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.equip-item[open] summary::after {
    content: '−';
}

.equip-content {
    padding: 20px;
}

.equip-content ul {
    list-style: disc;
    padding-left: 20px;
}

.equip-content li {
    margin-bottom: 8px;
}

.trust-strip {
    margin: 20px 0;
    padding: 15px;
    background: #fcfcfc;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
}

.trust-item:last-child {
    margin-bottom: 0;
}

.trust-item::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
}

.cta-helper {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
}

.faq-section {
    margin-top: 60px;
}

@media (max-width: 768px) {
    .main-info h2 {
        margin-top: 40px;
    }
}
