/* Vehicle Single Page Styles */

.vehicle-single-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 60vh;
    background: #b91400;
    color: white;
    display: flex;
    align-items: flex-end;
    margin-bottom: 0;
    overflow: hidden;
    padding-bottom: 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.2;
    color: white !important;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    display: inline-block;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    display: inline-block;
}

.breadcrumbs {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumbs a:hover {
    opacity: 1;
    text-decoration: none;
    color: white;
}

.breadcrumbs .separator {
    margin: 0 0.8rem;
    opacity: 0.6;
}

.availability-status {
    display: inline-flex;
    align-items: center;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    backdrop-filter: blur(10px);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.availability-status i {
    margin-right: 0.7rem;
    font-size: 1.1rem;
}

.price-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    position: relative;
    z-index: 3;
}

.price-badge .price {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    color: white;
}

.price-badge .price-note {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    color: white;
}

/* Container and Grid */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; padding: 0 15px; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 15px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 15px; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }

/* Main Content */
.main-content {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Flexslider Styles */
.vehicle-slider {
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    background: white;
    padding: 10px;
}

.flexslider {
    margin: 0;
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: none;
    position: relative;
}

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

.flexslider .slides > li {
    display: none;
    position: relative;
    margin: 0;
}

.flexslider .slides > li:first-child {
    display: block;
}

.flexslider .slides img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.flexslider .slides img:hover {
    transform: scale(1.02);
}

.flex-control-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.flex-control-nav li {
    margin: 0;
}

.flex-control-nav li a {
    background: rgba(255,255,255,0.6);
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: block;
    cursor: pointer;
    text-indent: -9999px;
    transition: all 0.3s ease;
}

.flex-control-nav li a.flex-active,
.flex-control-nav li a:hover {
    background: #b91400;
    border-color: #b91400;
    transform: scale(1.2);
}

/* Flexslider Direction Nav */
.flexslider .flex-direction-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 100%;
    pointer-events: none;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

.flexslider .flex-direction-nav li {
    position: relative;
    pointer-events: all;
    margin: 0;
}

.flexslider .flex-direction-nav li:first-child {
    margin-left: 20px;
}

.flexslider .flex-direction-nav li:last-child {
    margin-right: 20px;
}

.flexslider .flex-direction-nav a {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #b91400 !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(225, 23, 0, 0.3) !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    font-family: 'Font Awesome 6 Free' !important;
    text-indent: 0 !important;
    line-height: 1 !important;
}

.flexslider .flex-direction-nav a:hover {
    background: #b91400 !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(225, 23, 0, 0.4) !important;
}

.flexslider .flex-direction-nav a.flex-prev::before {
    content: '\f053' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

.flexslider .flex-direction-nav a.flex-next::before {
    content: '\f054' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

/* Thumbnail Carousel */
.thumbnail-carousel {
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.thumbnail-carousel .flexslider {
    border-radius: 10px;
    box-shadow: none;
}

.thumbnail-carousel .slides {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.thumbnail-carousel .slides li {
    flex: 0 0 auto;
    margin: 0;
}

.thumbnail-carousel .slides img {
    height: 80px;
    width: 100px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    opacity: 0.7;
    border: 2px solid transparent;
}

.thumbnail-carousel .slides img:hover,
.thumbnail-carousel .slides li.flex-active-slide img {
    opacity: 1;
    transform: scale(1.05);
    border-color: #b91400;
    box-shadow: 0 4px 15px rgba(225, 23, 0, 0.3);
}

/* Vehicle Specs */
.vehicle-specs {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border-left: 4px solid #b91400;
}

.vehicle-specs h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
    display: flex;
    align-items: center;
}

.vehicle-specs h3 i {
    margin-right: 0.7rem;
    color: #b91400;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.spec-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 3px solid #b91400;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.spec-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(225, 23, 0, 0.15);
}

.spec-item i {
    font-size: 1.8rem;
    color: #b91400;
    margin-right: 1.2rem;
    min-width: 30px;
}

.spec-content .label {
    font-size: 1rem;
    color: #1a1a1a;
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.spec-content .value {
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #e11700 0%, #b91400 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(225, 23, 0, 0.3);
}

.contact-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-section h3 i {
    margin-right: 0.7rem;
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.3rem 2rem;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-contact:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-contact i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

/* Details Section */
.details-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.details-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    border-bottom: 3px solid #b91400;
    padding-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.details-section h3 i {
    margin-right: 0.7rem;
    color: #b91400;
}

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

.detail-panel {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #b91400;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.detail-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.detail-panel h5 {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1rem;
    font-weight: 700;
}

.detail-panel h5 i {
    margin-right: 0.7rem;
    color: #b91400;
    font-size: 1.4rem;
}

.detail-table {
    width: 100%;
}

.detail-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.detail-table tr:last-child {
    border-bottom: none;
}

.detail-table td {
    padding: 0.8rem 0;
    vertical-align: top;
}

.detail-table td:first-child {
    color: #1a1a1a;
    width: 45%;
    font-weight: 500;
    font-size: 1rem;
}

.detail-table td:last-child {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

/* CO2 Image Styling */
.co2-class-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Features Section */
.features-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.features-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    border-bottom: 3px solid #b91400;
    padding-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.features-section h3 i {
    margin-right: 0.7rem;
    color: #b91400;
}

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

.feature-category h4 {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #b91400;
    padding-bottom: 0.8rem;
    font-weight: 700;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.feature-category h4 i {
    margin-right: 0.7rem;
    color: #b91400;
    font-size: 1.3rem;
    flex-shrink: 0;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.feature-list li:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding-left: 0.5rem;
}

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

.feature-list li i {
    color: #4CAF50;
    margin-right: 0.8rem;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Description Section */
.description-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.description-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1rem 0;
    border-bottom: 3px solid #b91400;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.description-toggle:hover {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin: 0 -1rem 1.5rem -1rem;
}

.description-toggle h3 {
    display: flex;
    align-items: center;
    margin: 0;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.description-toggle h3 i {
    margin-right: 0.7rem;
    color: #b91400;
    flex-shrink: 0;
}

.description-toggle .toggle-icon {
    color: #b91400;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.description-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.description-content {
    display: none;
    line-height: 1.8;
    font-size: 1.1rem;
    padding-top: 1.5rem;
    color: #555;
}

.description-content.active {
    display: block;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal Info */
.legal-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    font-size: 1rem;
    color: #1a1a1a;
    border-left: 4px solid #b91400;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.legal-info h5 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.legal-info h5 i {
    margin-right: 0.7rem;
    color: #b91400;
    flex-shrink: 0;
}

.legal-info a {
    color: #b91400;
    font-weight: 600;
    text-decoration: none;
}

.legal-info a:hover {
    text-decoration: underline;
}

/* Animation Classes */
.spec-item, .detail-panel, .feature-category {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.spec-item.animate-in, .detail-panel.animate-in, .feature-category.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 991px) {
    .col-lg-8, .col-lg-4 { 
        flex: 0 0 100%; 
        max-width: 100%; 
    }
}

@media (max-width: 767px) {
    .col-md-6, .col-md-4, .col-md-3 { 
        flex: 0 0 100%; 
        max-width: 100%; 
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .main-content {
        padding: 50px 15px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-content .subtitle {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .price-badge .price {
        font-size: 2rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        grid-template-columns: 1fr;
    }
    
    .flexslider .slides img {
        height: 300px;
    }
    
    .vehicle-specs,
    .details-section,
    .features-section,
    .description-section,
    .contact-section {
        padding: 2rem;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .hero-section {
        padding-bottom: 40px;
        min-height: 50vh;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .thumbnail-carousel .slides img {
        height: 60px;
        width: 80px;
    }
    
    .flexslider .flex-direction-nav a {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
    
    .flexslider .flex-direction-nav li:first-child {
        margin-left: 10px;
    }
    
    .flexslider .flex-direction-nav li:last-child {
        margin-right: 10px;
    }
    
    .feature-category h4,
    .description-toggle h3,
    .details-section h3,
    .features-section h3,
    .legal-info h5 {
        font-size: 1.4rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .main-content {
        padding: 40px 10px;
    }
    
    .detail-panel,
    .spec-item {
        padding: 1.5rem;
    }
    
    .vehicle-specs,
    .details-section,
    .features-section,
    .description-section,
    .contact-section {
        margin-left: 10px;
        margin-right: 10px;
        padding: 1.5rem;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-section {
        min-height: 45vh;
    }
    
    .price-badge {
        padding: 1.5rem;
    }
    
    .price-badge .price {
        font-size: 1.8rem;
    }
    
    .feature-category h4,
    .description-toggle h3,
    .details-section h3,
    .features-section h3 {
        font-size: 1.2rem;
    }
}

/* Additional Mobile Improvements */
@media (max-width: 576px) {
    .hero-section {
        min-height: 40vh;
    }
    
    .price-badge {
        margin-top: 1.5rem;
    }
    
    .flexslider .slides img {
        height: 250px;
    }
    
    .flexslider .flex-direction-nav a {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
    
    .thumbnail-carousel .slides img {
        height: 50px;
        width: 70px;
    }
    
    .breadcrumbs {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .availability-status {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
}