/* Single Vehicle Template - Uses EXACT overlay CSS from styles.css */

/* Just change the container to be a page instead of modal overlay */
.revs-vehicle-collection-container.single-vehicle-page {
    position: relative; /* Not fixed like modal */
    width: 100%;
    min-height: 100vh;
    background: var(--revs-bg-primary);
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 1000px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* ALL OTHER STYLES EXACTLY FROM styles.css - just with single-vehicle-page prefix */

/* Vehicle Details Header */
.single-vehicle-page .car-details-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--revs-border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1001;
}

.single-vehicle-page .car-details-logo {
    height: 50px;
}

.single-vehicle-page .car-details-close {
    background: transparent;
    border: 2px solid var(--revs-accent-red);
    color: var(--revs-accent-red);
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.single-vehicle-page .car-details-close:hover {
    background: var(--revs-accent-red);
    color: white;
    transform: scale(1.1);
}

/* Main Content */
.single-vehicle-page .car-details-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: calc(100vh - 80px);
    height: auto;
    padding: 24px 2rem 0 2rem;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
}

.single-vehicle-page .car-details-header-meta {
    max-width: 1100px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--revs-border-subtle);
    margin: 0 auto 2rem auto;
    padding-bottom: 2rem;
}

.single-vehicle-page .car-details-header-meta .car-year {
    display: inline-block;
    background: rgba(0, 0, 0, 0.8);
    color: var(--revs-accent-gold);
    padding: 10px 20px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    font-size: 1.2em;
    margin-bottom: 1rem;
}

.single-vehicle-page .car-details-header-meta .car-manufacturer {
    color: var(--revs-accent-red);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.single-vehicle-page .car-details-header-meta .car-title {
    font-size: 3.4em;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin: 0;
}

.single-vehicle-page .not-on-display-badge {
    display: inline-block;
    background: var(--revs-accent-red);
    color: white;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 16px 0 8px 0;
    border-radius: 0;
}

.single-vehicle-page .car-details-header-meta .car-subtitle {
    margin-top: 18px;
    color: var(--revs-text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.single-vehicle-page .header-specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 22px;
    align-items: stretch;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 959px) {
    .single-vehicle-page .header-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    /* Hide labels on stacked mobile view; keep icons and values */
    .single-vehicle-page .header-spec .spec-label { display: none; }
    .single-vehicle-page .header-spec {
        padding: 12px 12px;
        min-height: 90px;
    }
    .single-vehicle-page .header-spec .spec-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    .single-vehicle-page .header-spec .spec-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    .single-vehicle-page .header-spec .spec-value {
        font-size: 1.05rem;
        font-weight: 800;
    }
    .single-vehicle-page .header-spec.spec-serial .spec-value {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .single-vehicle-page .back-btn {
        margin-top: 1.25rem;
        padding: 10px 16px;
    }
}

.single-vehicle-page .header-spec {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    background: transparent;
    border: 1px solid var(--revs-border-subtle);
    padding: 14px 16px;
}
.single-vehicle-page .header-spec .spec-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.single-vehicle-page .header-spec .spec-icon svg {
    stroke: var(--revs-accent-red);
    display: block;
}

.single-vehicle-page .header-spec .spec-icon i {
    font-family: 'uncodeicon' !important;
    color: var(--revs-accent-red);
    font-size: 24px;
    display: block;
    font-style: normal;
}

.single-vehicle-page .header-spec .spec-label {
    color: var(--revs-text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.single-vehicle-page .header-spec .spec-value {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}

.single-vehicle-page .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 1.5rem 0 0 0;
    padding: 12px 20px;
    border: 2px solid var(--revs-accent-red);
    color: var(--revs-accent-red) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-vehicle-page .back-to-gallery {
    display: inline-block;
    margin-top: 1rem;
    color: white !important;
    text-decoration: none !important;
    font-family: 'Gotham', 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.single-vehicle-page .back-to-gallery:hover {
    color: var(--revs-accent-red) !important;
    text-decoration: none !important;
}

.single-vehicle-page .back-to-gallery:visited {
    color: white !important;
    text-decoration: none !important;
}

.single-vehicle-page .back-to-gallery:link {
    color: white !important;
    text-decoration: none !important;
}

/* Content Layout */
.single-vehicle-page .car-details-content {
    max-width: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 50% 1fr;
    gap: 2rem;
    align-items: start;
    flex: 1;
    min-height: 0;
    margin-bottom: 2rem;
    box-sizing: border-box;
}

.single-vehicle-page .expanded-left {
    display: flex;
    flex-direction: column;
}

.single-vehicle-page .expanded-image {
    cursor: grab;
    touch-action: manipulation;
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    min-height: 300px;
    max-width: 100%;
    box-sizing: border-box;
}



.single-vehicle-page .expanded-image:active {
    cursor: grabbing;
}

.single-vehicle-page .expanded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gallery sliding animation classes */
.single-vehicle-page .expanded-image img.slide-out-left {
    transform: translateX(-100%);
}

.single-vehicle-page .expanded-image img.slide-out-right {
    transform: translateX(100%);
}

.single-vehicle-page .expanded-image img.slide-in-left {
    transform: translateX(-100%);
}

.single-vehicle-page .expanded-image img.slide-in-right {
    transform: translateX(100%);
}

.single-vehicle-page .expanded-image img.active {
    transform: translateX(0);
}

.single-vehicle-page .expanded-image .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-vehicle-page .expanded-image .gallery-nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.single-vehicle-page .expanded-image .gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.single-vehicle-page .expanded-image .gallery-prev {
    left: 1rem;
}

.single-vehicle-page .expanded-image .gallery-next {
    right: 1rem;
}

.single-vehicle-page .expanded-image .gallery-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.single-vehicle-page .expanded-image .photo-credit {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 400;
    z-index: 10;
    border-radius: 0;
    backdrop-filter: blur(5px);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.single-vehicle-page .expanded-image:hover .photo-credit {
    opacity: 1;
}

/* Right Column */
.single-vehicle-page .expanded-right {
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow-y: visible;
    border: 1px solid var(--revs-border-subtle);
}

.single-vehicle-page .content-slider {
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.single-vehicle-page .slider-container {
    flex: 1;
    position: relative;
    overflow: visible;
    min-height: auto;
    height: auto;
}

.single-vehicle-page .slide {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: auto;
    display: none; /* hidden by default */
    overflow: visible;
    padding-bottom: 20px;
}

.single-vehicle-page .slide.active {
    display: block; /* render immediately without animation */
}

/* Factoids Grid - EXACT from styles.css */
.single-vehicle-page .factoids-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
    align-content: start;
    padding: 0 10px;
    overflow-y: visible;
    min-height: auto;
    width: 100%;
}

/* Only use 4 columns on very wide screens */
@media (min-width: 1600px) {
    .single-vehicle-page .factoids-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

.single-vehicle-page .factoid {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--revs-border-subtle);
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.single-vehicle-page .factoid:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--revs-accent-red);
    transform: translateY(-2px);
}

.single-vehicle-page .factoid-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 0.5rem;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(1) brightness(0.7);
    transition: filter 0.3s ease;
}

.single-vehicle-page .factoid:hover .factoid-icon {
    filter: grayscale(0) brightness(1);
}

/* Icon backgrounds - clean SVG style icons */
.single-vehicle-page .horsepower-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 24 24'%3E%3Cpath d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11C5.84 5 5.28 5.42 5.08 6.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z'/%3E%3C/svg%3E");
}

.single-vehicle-page .wheelbase-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 24 24'%3E%3Cpath d='M3 6v2h18V6H3zm0 5v2h18v-2H3zm0 5v2h18v-2H3z'/%3E%3Cpath d='M2 4h1v16H2V4zm19 0h1v16h-1V4z'/%3E%3C/svg%3E");
}

.single-vehicle-page .weight-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l-1.5 4H8l3.5 3L10 14l2-1.5L14 14l-1.5-4L16 7h-2.5L12 3z'/%3E%3Cpath d='M7 17h10l-1 2H8l-1-2z'/%3E%3Cpath d='M6 19h12l-1 2H7l-1-2z'/%3E%3C/svg%3E");
}

.single-vehicle-page .serial-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 24 24'%3E%3Cpath d='M18.5 2h-13C4.67 2 4 2.67 4 3.5v17c0 .83.67 1.5 1.5 1.5h13c.83 0 1.5-.67 1.5-1.5v-17c0-.83-.67-1.5-1.5-1.5zM18 20H6V4h12v16z'/%3E%3Cpath d='M8 6h8v2H8zm0 3h8v2H8zm0 3h8v2H8zm0 3h5v2H8z'/%3E%3C/svg%3E");
}

.single-vehicle-page .factoid-label {
    color: var(--revs-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.single-vehicle-page .factoid-value {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Slide Headers */
.single-vehicle-page .slide-header {
    margin-bottom: 2rem;
    text-align: left;
    border-bottom: 2px solid var(--revs-accent-red);
    padding-bottom: 1rem;
}

.single-vehicle-page .slide-header h3 {
    color: var(--revs-accent-red);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Social Gallery */
.single-vehicle-page .social-gallery {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--revs-border-subtle);
}

/* Compact mode for medium screens */
@media (min-width: 960px) and (max-width: 1360px) {
    .single-vehicle-page .social-gallery.compact {
        max-height: calc(var(--social-row-height, 230px) * 2 + 80px);
        overflow: hidden;
        position: relative;
    }
    .single-vehicle-page .social-gallery.compact::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 48px;
        height: 80px;
        background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.8) 60%, rgba(10,10,10,1) 100%);
        pointer-events: none;
    }
    .single-vehicle-page .social-compact-toggle {
        display: inline-block;
        margin-top: 16px;
        background: transparent;
        color: var(--revs-text-secondary);
        border: 1px solid var(--revs-border-subtle);
        padding: 8px 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
        cursor: pointer;
    }
    .single-vehicle-page .social-compact-toggle:hover {
        color: #fff;
        border-color: var(--revs-accent-red);
    }
}

.single-vehicle-page .social-gallery-header {
    margin-bottom: 1.5rem;
    text-align: left;
}

.single-vehicle-page .social-gallery-header h4 {
    color: var(--revs-accent-red);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    opacity: 0.9;
}

.single-vehicle-page .social-gallery .social-gallery-grid {
    /* Adaptive layout - default to flex for horizontal mode */
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
}

/* Layout-specific styling */
.single-vehicle-page .social-gallery-grid.layout-vertical {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    align-items: start;
}

.single-vehicle-page .social-gallery-grid.layout-masonry {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    grid-auto-rows: auto;
}

.single-vehicle-page .social-gallery-grid.layout-grid {
    display: grid !important;
    gap: 16px;
    grid-auto-rows: 200px;
}

.single-vehicle-page .social-gallery-grid.layout-horizontal {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Adjust social items for grid layouts */
.single-vehicle-page .layout-vertical .social-gallery-item,
.single-vehicle-page .layout-masonry .social-gallery-item,
.single-vehicle-page .layout-grid .social-gallery-item {
    height: auto;
    width: auto;
}

.single-vehicle-page .layout-grid .social-gallery-item {
    height: 100%;
}

/* Responsive adjustments for adaptive layouts */
@media (max-width: 900px) {
    .single-vehicle-page .social-gallery-grid.layout-vertical {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .single-vehicle-page .social-gallery-grid.layout-masonry {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 600px) {
    .single-vehicle-page .social-gallery-grid.layout-vertical {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .single-vehicle-page .social-gallery-grid.layout-masonry {
        grid-template-columns: 1fr;
    }
    
    .single-vehicle-page .social-gallery-grid.layout-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    
    .single-vehicle-page .social-gallery-grid.layout-horizontal .social-row {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .single-vehicle-page .social-gallery-grid.layout-horizontal .social-gallery-item {
        width: calc(50% - 8px);
        max-width: calc(50% - 8px);
        height: 140px;
        flex-shrink: 0;
    }
}

.single-vehicle-page .social-gallery .social-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
}

.single-vehicle-page .social-gallery .social-gallery-item {
    display: inline-block;
    width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    border: none; /* Remove borders for cleaner look */
    transition: all 0.3s ease;
    background: transparent; /* Remove background for cleaner look */
    height: var(--social-row-height, 230px);
}

.single-vehicle-page .social-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.single-vehicle-page .social-thumbnail {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* keep full image, no cropping (may letterbox) */
    transition: all 0.3s ease;
    filter: brightness(0.98) contrast(1.06);
}

.single-vehicle-page .social-gallery-item:hover .social-thumbnail {
    transform: scale(1.05);
    filter: brightness(0.7) contrast(1.2);
}

/* Persistent Social Icon Badge */
.single-vehicle-page .social-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1; /* Always visible */
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none; /* allow click-through to link */
	z-index: 10;
}

/* Single item layout: let the item auto-size to its intrinsic aspect */
.single-vehicle-page .social-gallery-grid.layout-single .social-gallery-item {
    height: auto;
}
.single-vehicle-page .social-gallery-grid.layout-single .social-thumbnail {
    height: auto;
    object-fit: contain;
}

.single-vehicle-page .social-gallery-item:hover .social-overlay {
    background: rgba(255, 51, 51, 0.9); /* Red on hover */
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 51, 51, 0.4);
}

.single-vehicle-page .social-overlay i {
	font-size: 1.2rem;
	color: white;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
	transition: all 0.3s ease;
	display: inline-block;
	font-style: normal; /* Remove italic styling from FontAwesome icons */
}

/* Force proper Font Awesome families for social glyphs */
.single-vehicle-page .social-overlay i:before {
	font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome", "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
	font-style: normal !important;
	font-weight: 400 !important;
}
.single-vehicle-page .social-overlay .fa-instagram:before { content: "\f16d" !important; }
.single-vehicle-page .social-overlay .fa-facebook-f:before { content: "\f09a" !important; }
.single-vehicle-page .social-overlay .fa-youtube:before { content: "\f167" !important; }
.single-vehicle-page .social-overlay .fa-external-link-alt:before { content: "\f35d" !important; font-weight: 900 !important; }

/* Facebook fallback if theme mapping is missing */
.single-vehicle-page .social-overlay .fa-facebook-f:before {
    content: "\f09a";
}

/* Responsive adjustments for social gallery */
@media (max-width: 1200px) {
    :root { --social-row-height: 200px; }
}

@media (max-width: 900px) {
    :root { --social-row-height: 170px; }
}

@media (max-width: 600px) {
    :root { --social-row-height: 140px; }
    .single-vehicle-page .social-overlay {
        width: 32px;
        height: 32px;
        bottom: 6px;
        right: 6px;
    }
    .single-vehicle-page .social-overlay i {
        font-size: 1rem;
    }
}

.single-vehicle-page .engine-description {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--revs-border-subtle);
    border-radius: 0;
}

.single-vehicle-page .engine-description p {
    color: var(--revs-text-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.single-vehicle-page .history-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 0;
    border: 1px solid var(--revs-border-subtle);
}

.single-vehicle-page .history-content .car-description-full {
    color: var(--revs-text-primary);
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.single-vehicle-page .history-content .car-description-full p {
    margin-bottom: 1.5rem;
    text-indent: 0;
}

.single-vehicle-page .history-content .car-description-full p:last-child {
    margin-bottom: 0;
}

/* Beautiful drop cap for first paragraph */
.single-vehicle-page .history-content .car-description-full p:first-child::first-letter {
    font-family: 'Orbitron', serif;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 0.8;
    float: left;
    margin: 0.1em 0.2em 0 0;
    padding: 0.1em 0 0 0;
    color: var(--revs-accent-red);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.single-vehicle-page .car-description-full {
    line-height: 1.6;
    color: var(--revs-text-secondary);
}

.single-vehicle-page .slider-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.single-vehicle-page .nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.single-vehicle-page .nav-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.single-vehicle-page .nav-dot.active {
    background: var(--revs-accent-red);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

.single-vehicle-page .nav-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.single-vehicle-page .nav-dot.active::after {
    border-color: var(--revs-accent-red);
}

.single-vehicle-page .no-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--revs-text-secondary);
    font-size: 1.2rem;
    border: 2px dashed var(--revs-border-subtle);
}

/* Car Navigation - EXACT from styles.css */
.single-vehicle-page .car-navigation {
    position: sticky;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 600px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--revs-border-subtle);
    border-bottom: none;
    padding: 1rem 1.5rem;
    z-index: 1001;
    margin-top: auto;
}

.single-vehicle-page .nav-car-btn {
    background: transparent;
    border: 2px solid var(--revs-accent-red);
    color: var(--revs-accent-red);
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-vehicle-page .nav-car-btn:hover {
    background: var(--revs-accent-red);
    color: white;
    transform: scale(1.1);
}

.single-vehicle-page .nav-car-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.single-vehicle-page .nav-car-info {
    display: flex;
    align-items: center;
    gap: 6rem;
    flex: 1;
    justify-content: center;
    max-width: 450px;
}

.single-vehicle-page .nav-car-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.single-vehicle-page .nav-car-preview:hover {
    opacity: 1;
}

.single-vehicle-page .nav-car-thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border: 1px solid var(--revs-border-subtle);
    filter: brightness(1.2) contrast(1.1);
}

.single-vehicle-page .nav-car-label {
    color: var(--revs-text-primary);
    font-size: 0.7rem;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.single-vehicle-page .nav-car-current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.single-vehicle-page .nav-car-current p {
    color: var(--revs-text-primary);
    font-size: 0.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Videos Content */
.single-vehicle-page .videos-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
    height: auto;
    min-height: auto;
    overflow-y: visible;
}

.single-vehicle-page .video-item {
    width: 100%;
}

.single-vehicle-page .video-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 0;
    background: #000;
}

.single-vehicle-page .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

/* Matterport Tour Styling */
.single-vehicle-page .tour-content {
    width: 100%;
}

.single-vehicle-page .matterport-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 0;
    background: #000;
}

.single-vehicle-page .matterport-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

/* RESPONSIVE - EXACT from styles.css */
@media (max-width: 1100px) {
    .single-vehicle-page .car-details-main {
        padding: 24px 1rem 0 1rem;
    }
    
    .single-vehicle-page .car-details-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0;
    }
    
    .single-vehicle-page .expanded-image {
        width: 100%;
        height: auto;
        min-height: 250px;
        max-height: 60vh;
        aspect-ratio: 4/3;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        overflow: hidden;
        margin-bottom: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .single-vehicle-page .expanded-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        display: block;
    }
    
    .single-vehicle-page .expanded-right {
        min-height: auto;
        height: auto;
        padding: 20px;
    }
    
    .single-vehicle-page .factoids-grid {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .single-vehicle-page .factoid {
        padding: 15px 10px;
        min-height: 100px;
    }
}

/* Car navigation at bottom */
.single-vehicle-page .car-navigation {
    position: sticky;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 600px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 1rem 2rem;
    margin: 2rem auto;
    z-index: 10001;
}

.single-vehicle-page .nav-car-btn {
    background: transparent;
    border: 2px solid var(--revs-accent-red);
    color: var(--revs-accent-red);
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-vehicle-page .nav-car-btn:hover {
    background: var(--revs-accent-red);
    color: white;
    transform: scale(1.1);
}

.single-vehicle-page .nav-car-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.single-vehicle-page .nav-car-info {
    display: flex;
    align-items: center;
    gap: 6rem;
    flex: 1;
    justify-content: center;
    max-width: 450px;
}

.single-vehicle-page .nav-car-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.single-vehicle-page .nav-car-preview:hover {
    opacity: 1;
}

.single-vehicle-page .nav-car-thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    filter: brightness(1.2) contrast(1.1);
}

.single-vehicle-page .nav-car-label {
    color: var(--revs-text-primary);
    font-size: 0.7rem;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.single-vehicle-page .nav-car-current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.single-vehicle-page .nav-car-current p {
    color: var(--revs-text-primary);
    font-size: 0.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .single-vehicle-page .car-details-main {
        padding: 80px 0.5rem 0 0.5rem;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .single-vehicle-page .car-details-content {
        gap: 1rem;
        margin-bottom: 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .single-vehicle-page .expanded-image {
        min-height: 220px;
        max-height: 50vh;
        aspect-ratio: 4/3;
        width: 100%;
        max-width: 100%;
    }
    
    .single-vehicle-page .factoid-icon {
        font-size: 1.5rem;
    }
    
    .single-vehicle-page .car-navigation {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
        padding: 1rem;
        z-index: 1001;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: auto;
        flex-shrink: 0;
    }
    
    .single-vehicle-page .car-navigation .nav-car-info {
        gap: 2rem;
        max-width: none;
        width: auto;
    }
    
    .single-vehicle-page .car-navigation .nav-car-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .single-vehicle-page .car-navigation .nav-car-thumbnail {
        width: 50px;
        height: 35px;
    }
    
    .single-vehicle-page .car-navigation .nav-car-label {
        font-size: 0.7rem;
        max-width: 60px;
    }
    
    .single-vehicle-page .car-details-header {
        padding: 0 1rem;
    }
    
    .single-vehicle-page .car-details-logo {
        height: 40px;
    }
    
    .single-vehicle-page .car-details-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .single-vehicle-page .videos-content {
        padding: 0;
        height: auto;
        min-height: auto;
        overflow-y: visible;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .single-vehicle-page .car-details-main {
        padding: 80px 0.25rem 0 0.25rem;
        max-width: 100vw;
    }
    
    .single-vehicle-page .expanded-image {
        min-height: 180px;
        max-height: 45vh;
        aspect-ratio: 4/3;
        width: 100%;
        max-width: 100%;
    }
    
    .single-vehicle-page .car-details-content {
        gap: 0.75rem;
        max-width: 100%;
        padding: 0;
    }
    
    .single-vehicle-page .expanded-right {
        padding: 15px;
    }
    
    .single-vehicle-page .social-gallery-grid.layout-horizontal .social-gallery-item {
        width: 100%;
        max-width: 100%;
        height: 120px;
        margin-bottom: 8px;
    }
    
    .single-vehicle-page .social-gallery-grid.layout-horizontal .social-row {
        flex-direction: column;
        gap: 8px;
    }
}

/* Tabs (desktop) and Accordion (mobile) styles */
.single-vehicle-page .content-tabs-nav {
    display: none;
    gap: 1rem;
    border-bottom: 1px solid var(--revs-border-subtle);
    margin-bottom: 1.5rem;
}

.single-vehicle-page .content-tab {
    background: transparent;
    color: var(--revs-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    position: relative;
    border: none;
    border-bottom: 2px solid transparent;
}

.single-vehicle-page .content-tab.active {
    color: #fff;
    border-bottom-color: var(--revs-accent-red);
}

.single-vehicle-page .content-tab:focus {
    outline: none;
}

@media (min-width: 960px) {
    .single-vehicle-page .content-tabs-nav { display: flex; }
    /* On desktop, accordion headers are just section headers */
    .single-vehicle-page .accordion-toggle { cursor: default; }
    .single-vehicle-page .accordion-toggle::after { content: none; }
    /* Hide in-panel headlines on desktop; tabs already provide titles */
    .single-vehicle-page .slide-header { display: none !important; }
    .single-vehicle-page .accordion-toggle { display: none !important; }
}

/* Accordion header base */
.single-vehicle-page .accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mobile-only accordion behavior */
@media (max-width: 959px) {
    .single-vehicle-page .content-tabs-nav { display: none; }
    /* Reset slide transition states for accordion */
    .single-vehicle-page .slide { display: block; opacity: 1; transform: none !important; visibility: visible; transition: none !important; }
    .single-vehicle-page .slide.active { transform: none !important; transition: none !important; display: block; }
    .single-vehicle-page .slide > .slide-header { display: flex; }
    .single-vehicle-page .slide:not(.active) > :not(.slide-header) { display: none; }
    .single-vehicle-page .accordion-toggle { cursor: pointer; }
    .single-vehicle-page .accordion-toggle::after {
        content: '\25BC';
        color: var(--revs-text-secondary);
        font-size: 0.9rem;
        margin-left: 0.75rem;
        transition: transform 0.2s ease;
    }
    .single-vehicle-page .accordion-toggle[aria-expanded="true"]::after {
        transform: rotate(-180deg);
        color: var(--revs-accent-red);
    }
}

.single-vehicle-page .content-slider.is-accordion-mode .slide { opacity: 1 !important; transform: none !important; transition: none !important; visibility: visible !important; display: block; }
.single-vehicle-page .content-slider.is-accordion-mode .slide:not(.active) > :not(.slide-header) { display: none; }