/* Breadcrumb Styles */
.breadcrumb-light {
    background: #242830;
    padding: 0.9rem 1.5rem;
    margin-top: 0; /* Changed from -5rem to fix cropping issue */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative; /* Added to ensure proper positioning */
    z-index: 10; /* Added to ensure it stays above other elements */
}

.breadcrumb {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* Changed from wrap to nowrap to prevent wrapping */
    white-space: nowrap; /* Prevent text wrapping */
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.breadcrumb::-webkit-scrollbar {
    display: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #adb5bd;
    font-size: 0.95rem;
    white-space: nowrap; /* Prevent text wrapping */
    flex-shrink: 0; /* Prevent items from shrinking */
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-top: 2px solid #495057;
    border-right: 2px solid #495057;
    transform: rotate(45deg);
    margin-right: 1rem;
    margin-top: 1px;
}

.breadcrumb-item a {
    color: #adb5bd;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.breadcrumb-item a:hover {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

.breadcrumb-item.active {
    color: #0d6efd;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
}

.breadcrumb-item i {
    font-size: 0.9rem;
    margin-right: 0.4rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover i {
    transform: translateX(2px);
    opacity: 1;
}

.breadcrumb-item.active i {
    color: #0d6efd;
    opacity: 1;
}

/* Responsive Breadcrumb Styles for Mobile Devices */
@media (max-width: 767.98px) {
    .breadcrumb-light {
        padding: 0.75rem 1rem;
        margin-top: 0; /* Changed from -4rem to fix cropping issue */
        overflow-x: auto; /* Allow horizontal scrolling if needed */
    }

    .breadcrumb {
        flex-wrap: nowrap; /* Ensure no wrapping */
        width: max-content; /* Allow container to expand as needed */
        min-width: 100%; /* Ensure it takes at least full width */
    }

    .breadcrumb-item {
        font-size: 0.8rem; /* Reduced font size for mobile */
        flex-shrink: 0; /* Prevent items from shrinking */
    }

    .breadcrumb-item + .breadcrumb-item {
        padding-left: 0.6rem; /* Further reduced padding between items */
    }

    .breadcrumb-item + .breadcrumb-item::before {
        width: 0.4rem; /* Smaller arrow */
        height: 0.4rem;
        margin-right: 0.6rem;
    }

    .breadcrumb-item a {
        padding: 0.2rem 0.3rem; /* Smaller padding for links */
    }

    .breadcrumb-item.active {
        padding: 0.2rem 0.3rem; /* Smaller padding for active item */
    }

    .breadcrumb-item i {
        font-size: 0.8rem; /* Smaller icons */
        margin-right: 0.3rem;
    }
}

/* Extra Small Devices (phones under 576px) */
@media (max-width: 575.98px) {
    .breadcrumb-light {
        padding: 0.6rem 0.8rem;
        margin-top: 0; /* Changed from -3.5rem to fix cropping issue */
        border-radius: 8px;
        overflow-x: auto; /* Allow horizontal scrolling if needed */
    }

    .breadcrumb {
        flex-wrap: nowrap; /* Ensure no wrapping */
        width: max-content; /* Allow container to expand as needed */
        min-width: 100%; /* Ensure it takes at least full width */
    }

    .breadcrumb-item {
        font-size: 0.7rem; /* Even smaller font size for very small screens */
        flex-shrink: 0; /* Prevent items from shrinking */
    }

    .breadcrumb-item + .breadcrumb-item {
        padding-left: 0.4rem; /* Further reduced padding between items */
    }

    .breadcrumb-item + .breadcrumb-item::before {
        width: 0.35rem; /* Even smaller arrow */
        height: 0.35rem;
        margin-right: 0.4rem;
        border-top: 1.5px solid #495057; /* Thinner border */
        border-right: 1.5px solid #495057;
    }

    .breadcrumb-item a {
        padding: 0.15rem 0.25rem; /* Smaller padding for links */
    }

    .breadcrumb-item.active {
        padding: 0.15rem 0.25rem; /* Smaller padding for active item */
    }

    .breadcrumb-item i {
        font-size: 0.7rem; /* Even smaller icons */
        margin-right: 0.2rem;
    }
}

/* Carousel/Swiper Styles */
.swiper.main-swiper {
    width: 100%;
    height: 50vh; /* Responsive height based on viewport */
    min-height: 300px; /* Minimum height for very small screens */
    max-height: 600px; /* Maximum height for large screens */
    margin-bottom: 1rem;
    border-radius: 0; /* Remove border radius */
    overflow: hidden;
    position: relative;
    background: transparent !important; /* Force transparent background */
    box-shadow: none; /* Remove shadow */
    /* Prevent rendering artifacts */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    /* Remove padding that might cause artifacts */
    padding: 0;
    /* Ensure no borders */
    border: none;
}

/* Force transparent background on all swiper elements */
.swiper.main-swiper,
.swiper.main-swiper .swiper-wrapper,
.swiper.main-swiper .swiper-slide {
    background: transparent !important;
    background-color: transparent !important;
}

/* Responsive adjustments for main swiper */
@media (max-width: 768px) {
    .swiper.main-swiper {
        height: 40vh;
        min-height: 250px;
    }

    /* Adjust ambient background blur for medium screens */
    .main-swiper .swiper-slide .ambient-background {
        filter: blur(20px) brightness(1.0) saturate(1.7);
    }
}

@media (max-width: 576px) {
    .swiper.main-swiper {
        height: 35vh;
        min-height: 200px;
    }

    /* Adjust ambient background blur for small screens */
    .main-swiper .swiper-slide .ambient-background {
        filter: blur(15px) brightness(1.1) saturate(1.8);
    }
}

/* Gradient overlay removed for completely transparent background */
.swiper.main-swiper::after {
    display: none; /* Remove the gradient overlay */
}

.main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    background: transparent !important; /* Force transparent background */
    background-color: transparent !important; /* Force transparent background color */
    border-radius: 0; /* Remove border radius from slide */
    position: relative;
}

/* Ambient background container - hidden to show page background */
.main-swiper .swiper-slide .ambient-background {
    display: none; /* Hide the ambient background completely */
}

/* Vignette effect removed for completely transparent background */
.main-swiper .swiper-slide::before {
    display: none; /* Remove the vignette effect */
}

.main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from 'cover' to 'contain' to prevent cropping */
    border-radius: 0; /* Remove border radius from image */
    position: relative;
    z-index: 3; /* Increased z-index to ensure image is above both vignette and ambient background */
    /* Ensure no borders */
    border: none;
    outline: none;
    box-shadow: none;
    /* Remove transition effects */
    transition: none;
    transform: none;
    background: transparent; /* Remove background color from image itself */
}

/* Image orientation specific styles without hover effects */
.main-swiper .swiper-slide.wide-image img {
    object-position: center;
    max-width: 100%;
    max-height: 100%;
}

.main-swiper .swiper-slide.tall-image img {
    object-position: center;
    max-height: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.main-swiper .swiper-slide.square-image img {
    object-position: center;
    max-width: 100%;
    max-height: 100%;
}

/* Simplified loading state without artifacts - completely transparent */
.main-swiper .swiper-slide:not(.image-loaded) {
    background: transparent !important;
    background-color: transparent !important;
}

/* Ensure all swiper slide states remain transparent */
.main-swiper .swiper-slide,
.main-swiper .swiper-slide.image-loaded,
.main-swiper .swiper-slide:not(.image-loaded),
.main-swiper .swiper-slide:hover,
.main-swiper .swiper-slide:active {
    background: transparent !important;
    background-color: transparent !important;
}

/* Ensure images have proper transitions */
.main-swiper .swiper-slide.image-loaded img {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Remove any potential artifacts during transitions */
.main-swiper .swiper-slide,
.main-swiper .swiper-slide img {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
    /* Additional properties to prevent artifacts */
    -webkit-perspective: 1000;
    perspective: 1000;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* Navigation Buttons - Elegant Style without hover effects */
.main-swiper {
    position: relative;
}

/* Always visible navigation buttons */
.main-swiper .swiper-button-next,
.main-swiper .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 0.7;
    transform: translateY(-50%);
    z-index: 4; /* Increased z-index to ensure navigation buttons are above ambient background */
    /* Remove transitions */
    transition: none;
}

.main-swiper .swiper-button-next:after,
.main-swiper .swiper-button-prev:after {
    font-size: 24px !important;
    font-weight: normal;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Position the navigation buttons */
.main-swiper .swiper-button-next {
    right: 15px;
}

.main-swiper .swiper-button-prev {
    left: 15px;
}

/* Responsive navigation buttons */
@media (max-width: 768px) {
    .main-swiper .swiper-button-next,
    .main-swiper .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
        /* Always visible on mobile for better usability */
        opacity: 0.7;
    }

    .main-swiper .swiper-button-next:after,
    .main-swiper .swiper-button-prev:after {
        font-size: 20px !important;
    }

    .main-swiper:before,
    .main-swiper:after {
        width: 50px;
        opacity: 0.5;
    }
}

@media (max-width: 576px) {
    .main-swiper .swiper-button-next,
    .main-swiper .swiper-button-prev {
        width: 30px !important;
        height: 30px !important;
    }

    .main-swiper .swiper-button-next:after,
    .main-swiper .swiper-button-prev:after {
        font-size: 18px !important;
    }

    .main-swiper .swiper-button-next {
        right: 10px;
    }

    .main-swiper .swiper-button-prev {
        left: 10px;
    }

    .main-swiper:before,
    .main-swiper:after {
        width: 40px;
    }
}

/* Thumbnails Container - Elegant Style */
.thumbs-container {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

/* Add subtle gradient background */
.thumbs-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.03), transparent);
    pointer-events: none;
    z-index: 0;
}

/* Thumbnails */
.swiper.thumbs-swiper {
    width: 100%;
    height: auto;
    max-height: 180px;
    padding: 5px;
    position: relative;
    z-index: 1;
}

.thumbs-swiper .swiper-wrapper {
    display: flex !important; /* Force flex display for single row */
    flex-wrap: nowrap !important; /* Prevent wrapping */
    gap: 10px !important;
    height: auto !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Thumbnail with overlay styling */
.thumbnail-with-overlay {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    transform-style: preserve-3d !important; /* Ensure 3D transformations are preserved */
}

/* Override swiper slide hover effects for thumbnail with overlay */
.thumbs-swiper .thumbnail-with-overlay.swiper-slide:hover {
    transform: none !important; /* Prevent any transformation */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.thumbs-swiper .thumbnail-with-overlay.swiper-slide:hover .thumbnail-img {
    transform: none !important; /* Prevent image scaling */
}

.thumbnail-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important; /* Ensure full width coverage */
    bottom: 0 !important; /* Ensure full height coverage */
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.55) !important; /* Reduced opacity */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 6px !important;
    z-index: 10 !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important; /* Only transition the background */
    backdrop-filter: blur(1px) !important; /* Reduced blur */
    margin: 0 !important; /* Remove any margins */
    padding: 0 !important; /* Remove any padding */
    transform: translateZ(0) !important; /* Force hardware acceleration */
    will-change: background !important; /* Optimize for background changes only */
    pointer-events: auto !important; /* Ensure clicks are captured */
    inset: 0 !important; /* Alternative to top/left/right/bottom */
}

.thumbnail-with-overlay:hover .thumbnail-overlay {
    background: rgba(0, 0, 0, 0.7) !important; /* Slightly darker on hover */
}

.thumbnail-overlay span {
    color: white !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
}

.thumbnail-with-overlay:hover .thumbnail-overlay span {
    transform: scale(1.1) !important;
}

/* Media queries for responsive layout */
@media (max-width: 768px) {
    .thumbnail-overlay span {
        font-size: 1rem !important;
    }

    .thumbnail-overlay {
        background: rgba(0, 0, 0, 0.5) !important; /* Slightly lighter on smaller screens */
    }

    .thumbnail-with-overlay:hover .thumbnail-overlay {
        background: rgba(0, 0, 0, 0.65) !important;
    }
}

@media (max-width: 576px) {
    .thumbnail-overlay span {
        font-size: 0.85rem !important;
    }

    .thumbnail-overlay {
        background: rgba(0, 0, 0, 0.45) !important; /* Even lighter on mobile */
    }

    .thumbnail-with-overlay:hover .thumbnail-overlay {
        background: rgba(0, 0, 0, 0.6) !important;
    }
}

/* Responsive adjustments for thumbnails */
@media (max-width: 768px) {
    .thumbs-container {
        padding: 12px;
        margin-top: 15px;
    }

    .swiper.thumbs-swiper {
        max-height: 80px; /* Reduced height for single row */
    }

    .thumbs-swiper .swiper-wrapper {
        gap: 8px !important;
    }
}

@media (max-width: 576px) {
    .thumbs-container {
        padding: 10px;
        margin-top: 12px;
    }

    .swiper.thumbs-swiper {
        max-height: 70px; /* Reduced height for single row */
    }

    .thumbs-swiper .swiper-wrapper {
        gap: 6px !important;
    }
}

.thumbs-swiper .swiper-slide {
    opacity: 0.5;
    cursor: pointer;
    height: 70px !important;
    width: calc(100% / 6 - 8px) !important; /* Divide space evenly for 6 slides */
    flex: 0 0 auto !important; /* Don't allow flex to resize */
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #1a1d23;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    margin: 0 !important; /* Remove any margins */
    aspect-ratio: 4/3; /* Maintain aspect ratio */
    padding: 0 !important; /* Remove any padding */
}

/* Ensure the thumbnail image fills the container completely */
.thumbs-swiper .swiper-slide img.thumbnail-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

@media (max-width: 768px) {
    .thumbs-swiper .swiper-slide {
        height: 60px !important;
        width: calc(100% / 4 - 6px) !important; /* Divide space evenly for 4 slides */
    }
}

@media (max-width: 576px) {
    .thumbs-swiper .swiper-slide {
        height: 50px !important;
        width: calc(100% / 3 - 4px) !important; /* Divide space evenly for 3 slides */
    }
}

/* Active thumbnail styling */
.thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    border: none;
    transform: scale(1.05);
    z-index: 2;
}

/* Elegant active border with gradient */
.thumbs-swiper .swiper-slide-thumb-active:before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 6px;
    padding: 2px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 3;
    pointer-events: none;
}

.thumbs-swiper .thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block; /* Ensure block display */
}

.thumbs-swiper .swiper-slide:hover {
    opacity: 0.9;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.thumbs-swiper .swiper-slide:hover .thumbnail-img {
    transform: scale(1.05);
}

/* Ensure the thumbnail with overlay doesn't transform on hover */
.thumbs-swiper .swiper-slide.thumbnail-with-overlay {
    overflow: hidden !important;
}

.thumbs-swiper .swiper-slide.thumbnail-with-overlay:hover {
    transform: none !important;
}

.thumbs-swiper .swiper-slide.thumbnail-with-overlay:hover .thumbnail-img {
    transform: none !important;
}

/* Pagination - Elegant Style without hover effects */
.main-swiper .swiper-pagination {
    bottom: 15px !important;
    z-index: 4; /* Increased z-index to ensure pagination is above all other elements including ambient background */
    position: absolute;
}

.main-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 0.9;
    margin: 0 5px;
    border: none; /* Ensure no borders */
    outline: none; /* Ensure no outlines */
    /* Remove transitions */
    transition: none;
}

.main-swiper .swiper-pagination-bullet-active {
    background-color: #0d6efd;
    opacity: 1;
    width: 20px;
    border-radius: 4px;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .main-swiper .swiper-pagination {
        bottom: 10px !important;
    }

    .main-swiper .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        margin: 0 4px;
    }

    .main-swiper .swiper-pagination-bullet-active {
        width: 16px;
    }
}

@media (max-width: 576px) {
    .main-swiper .swiper-pagination {
        bottom: 5px !important;
    }

    .main-swiper .swiper-pagination-bullet {
        width: 5px;
        height: 5px;
        margin: 0 3px;
    }

    .main-swiper .swiper-pagination-bullet-active {
        width: 12px;
    }
}

/* Thumbnails Grid */
.thumbnails-container {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 1rem;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    max-height: 120px;
    overflow-y: auto;
    padding: 5px;
}

.thumbnail-item {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

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

.thumbnail-item.active img {
    border-color: #0d6efd;
    transform: scale(1.05);
}

/* Scrollbar styling for thumbnails */
.thumbnails-grid::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.thumbnails-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Quick Info List Styling */
.quick-info-divider {
    position: relative;
}

.quick-info-divider:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.underlined-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* 30% opacity white */
    padding-bottom: 5px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.underlined-list li:hover {
    background-color: rgba(255, 255, 255, 0.05); /* 5% opacity white */

}

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

/* Features Accordion Styling */
.features-accordion {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.features-accordion .accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.features-accordion .accordion-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.features-accordion .accordion-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.features-accordion .accordion-button {
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center; /* Ensure vertical alignment of icon and text */
}

.features-accordion .accordion-button:not(.collapsed) {
    background: rgba(13, 110, 253, 0.05);
    color: #fff;
    box-shadow: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.features-accordion .accordion-button::after {
    filter: invert(1);
    opacity: 0.7;
    width: 18px;
    height: 18px;
    background-size: 18px;
    transition: all 0.3s ease;
    margin-left: auto;
}

.features-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(1);
    opacity: 1;
    transform: rotate(-180deg);
}

.features-accordion .accordion-button:hover {
    background: rgba(13, 110, 253, 0.08);
    color: #fff;
}

.features-accordion .accordion-body {
    padding: 5px 20px 20px;
    background: rgba(13, 110, 253, 0.02);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.features-accordion .list-unstyled {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0;
    padding: 10px 0;
}

.features-accordion .list-unstyled li {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.features-accordion .list-unstyled li:hover {
    color: #fff;
    background: rgba(13, 110, 253, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 110, 253, 0.2);
}

.features-accordion .fi,
.features-accordion .bi {
    color: #0d6efd;
    font-size: 1rem;
    opacity: 0.9;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.features-accordion .list-unstyled li:hover .fi,
.features-accordion .list-unstyled li:hover .bi {
    transform: scale(1.1);
    opacity: 1;
}

.features-accordion .accordion-button .fi,
.features-accordion .accordion-button .bi {
    font-size: 1.2rem;
    margin-right: 12px;
    width: 32px;
    height: 32px;
    min-width: 32px; /* Ensure minimum width for proper circular shape */
    min-height: 32px; /* Ensure minimum height for proper circular shape */
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: inline-flex; /* Changed to inline-flex for better alignment */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative; /* Added for better positioning */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.features-accordion .accordion-button:hover .fi,
.features-accordion .accordion-button:hover .bi,
.features-accordion .accordion-button:not(.collapsed) .fi,
.features-accordion .accordion-button:not(.collapsed) .bi {
    background: rgba(13, 110, 253, 0.2);
    transform: scale(1.1);
}

/* Enhanced Seller Card Styling */
.seller-card {
    background: linear-gradient(135deg, #272238, #1e1a29);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease, height 0.3s ease-in-out;
    position: relative;
    overflow: visible; /* Changed from hidden to allow content to expand */
    will-change: height;
}

.seller-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), transparent);
    opacity: 0.7;
    z-index: 0;
}

.seller-card .card-body {
    padding: 1.75rem 1.5rem 1rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Seller Card Header */
.seller-card-header {
    position: relative;
    z-index: 2;
}

/* Seller Avatar Container */
.seller-avatar-container {
    position: relative;
    margin-right: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2); /* Dark background to match original theme */
}

/* Seller Default Icon */
.seller-default-icon {
    width: 80px;
    height: 80px;
    font-size: 60px; /* Slightly smaller than container to fit properly */
    color: #212529; /* Dark color to match other icons in the system */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Seller Avatar Styling */
#seller-card-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

#seller-card-avatar:hover {
    box-shadow: 0 0 20px rgba(var(--bs-primary-rgb), 0.6);
    transform: scale(1.05);
    cursor: pointer;
}

/* Seller Info Container */
.seller-info-container {
    display: flex;
    flex-direction: column;
}

/* Seller Name Container */
.seller-name-container {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.7rem !important; /* Spacing between name and rating */
    flex-wrap: wrap;
}

/* Seller Label */
.seller-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-right: 0.3rem;
}

/* Seller Name Styling */
.text-light.fs-lg {
    font-size: 1.4rem !important;
    font-weight: 600;
    background: linear-gradient(90deg, #e9ecef, #b8c7ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback for browsers that don't support -webkit-text-fill-color */
    letter-spacing: 0.02em;
    line-height: 1.3;
    display: inline;
}

/* Star Rating Component */
.star-rating {
    margin-bottom: 0.5rem !important;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.5rem; /* Reduced padding for smaller container */
    border-radius: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    width: max-content; /* Ensure it fits exactly to content */
    margin-top: -0.2rem !important; /* Adjusted top margin */
}

/* Rating Label */
.rating-label {
    font-size: 0.7rem; /* Reduced by ~50% from 0.85rem */
    font-weight: 300; /* Lighter font weight */
    opacity: 0.7; /* Slightly more transparent */
    margin-right: 0.25rem; /* Slightly reduced margin */
    white-space: nowrap;
    letter-spacing: 0.02em; /* Slight letter spacing for elegance */
    padding-top: 0.5rem;
}

.star-rating-icon {
    color: rgba(255, 255, 255, 0.3);
    margin-right: 1px; /* Reduced spacing between stars */
    transition: color 0.2s ease;
    font-size: 0.85rem; /* Restored original star size */
}

/* When there's no rating, all stars will be hidden via JavaScript */

.star-rating-icon:last-of-type {
    margin-right: 3px; /* Add margin to last star before rating text */
}

.star-rating-icon.active {
    color: #ffc107; /* Bootstrap warning color for active stars */
}

.star-rating-icon.half {
    position: relative;
    overflow: hidden;
}

.star-rating-icon.half::before {
    content: '\f089'; /* fa-star-half-alt */
    position: absolute;
    left: 0;
    top: 0;
}

.rating-text {
    font-size: 0.85rem; /* Restored original size */
    opacity: 0.8;
    white-space: nowrap; /* Prevent wrapping */
}

/* Seller Card Divider */
.seller-card-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 0.5rem 0 1rem;
}

/* Seller Contact Info */
.seller-contact-info {
    position: relative;
    z-index: 2;
}

.contact-item {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-radius: 8px;
    margin-bottom: 0.3rem;
}

.contact-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 0.5rem;
    color: #fff !important;
    opacity: 1 !important;
}

.contact-item i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 24px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-item:hover i {
    transform: translateY(-2px);
    color: #0d6efd;
}

/* Profile Link Button */
.seller-card .btn-outline-light {
    border: none;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.seller-card .btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1),
        transparent);
    transition: left 0.8s ease;
    z-index: -1;
}

.seller-card .btn-outline-light:hover {
    background: rgba(13, 110, 253, 0.1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.seller-card .btn-outline-light:hover::before {
    left: 100%;
}

.seller-card .btn-outline-light i {
    transition: transform 0.3s ease;
}

.seller-card .btn-outline-light .profile-arrow {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-left: 5px;
    position: relative;
    top: -1px;
}

.seller-card .btn-outline-light:hover .bi-person-badge {
    transform: translateY(-2px);
}

.seller-card .btn-outline-light:hover .profile-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* Car Title Styling - Base styles */
.title-container {
    flex: 1;
    min-width: 0; /* Important for text-overflow to work */
    max-width: 80%;
}

.car-title-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

.compare-container {
    flex-shrink: 0;
    margin-left: 10px;
}

/* CRITICAL: Override Bootstrap flex utilities on mobile */
@media (max-width: 768px) {
    /* NUCLEAR OPTION: Force the main title row to never wrap with maximum specificity */
    .position-relative.mb-2[style] .d-flex.align-items-center.justify-content-between.mb-2 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    /* Override any Bootstrap width utilities */
    .position-relative.mb-2[style] .title-container.me-2 {
        width: auto !important;
        flex-basis: auto !important;
        flex-grow: 1 !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
        max-width: calc(100% - 100px) !important;
        overflow: hidden !important;
        display: block !important;
    }

    .position-relative.mb-2[style] .compare-container.d-flex {
        width: auto !important;
        flex-basis: auto !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        min-width: 80px !important;
        max-width: 100px !important;
        margin-left: 8px !important;
        display: flex !important;
    }

    /* Ensure h1 doesn't force line breaks */
    .position-relative.mb-2[style] .car-title-text.h2.text-light.mb-0 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 1.3rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Force compare button to stay inline */
    .position-relative.mb-2[style] #compare-button.btn.btn-primary.shadow-sm.rounded {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 0.35rem 0.7rem !important;
        font-size: 0.8rem !important;
        min-width: auto !important;
        width: auto !important;
        height: auto !important;
    }
}

/* Badge and Info Styling */
.car-badge {
    font-size: 1.1rem !important;
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.car-badge i {
    font-size: 1.2rem;
}

.car-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile Badge Styling */
.car-badge-mobile {
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.car-badge-mobile i {
    font-size: 0.9rem;
}

.mobile-badges {
    display: flex;
    align-items: center;
}

/* Compare Button Styling */
#compare-button {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    white-space: nowrap;
}

#compare-button:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

#compare-button i {
    transition: all 0.3s ease;
}

#compare-button:hover i {
    transform: scale(1.1);
}

/* Like and Share Buttons */
.btn-action {
    min-width: 42px;
    height: 42px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

/* Like Button Styling */
#like-button {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#like-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

#like-button i {
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin-right: 0.25rem;
}

#like-button:hover i {
    transform: scale(1.1);
}

#like-button.liked {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
}

#like-button.liked i {
    color: #dc3545;
}

/* Processing state for like button */
.btn-like.processing {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.btn-like.processing::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    top: 50%;
    left: 50%;
    margin-top: -6px;
    margin-left: -6px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spinner 0.6s linear infinite;
}

@keyframes btn-spinner {
    to {
        transform: rotate(360deg);
    }
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.btn-action i {
    font-size: 1.1rem;
}

.btn-action.active {
    color: #dc3545;
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* Sidebar Content Styling - Replaced sticky-top with sidebar-content */
.sidebar-content {
    position: relative;
    z-index: 1020;
    padding-top: 1.5rem;
    margin-top: -1.5rem;
}

/* Keep for backward compatibility but make it non-sticky */
.sticky-top {
    position: relative; /* Changed from sticky to relative to fix scrolling issue */
    z-index: 1020;
    padding-top: 1.5rem;
    margin-top: -1.5rem;
}

/* Remove previous sticky sidebar styles */
.sticky-sidebar {
    display: none;
}

/* Ensure proper z-index stacking */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Adjust gap between navbar and content for single car page */
.home-page {
    padding-top: 66px !important; /* Increased by 10% from 60px */
}

/* Car Info Text Styling */
.car-info-text {
    transition: all 0.3s ease;
    cursor: default;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.car-info-text:hover {
    color: #0d6efd !important;
}

.car-info-text i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-info-text:hover i {
    transform: translateY(-2px);
    color: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* CRITICAL: Force title and compare button to stay on same row - MAXIMUM SPECIFICITY */
    .position-relative.mb-2[style*="z-index"] .d-flex.align-items-center.justify-content-between.mb-2 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    /* Title container - FORCE it to stay inline */
    .position-relative.mb-2[style*="z-index"] .title-container.me-2 {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 120px) !important; /* Reserve space for compare button */
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Compare container - FORCE it to stay inline */
    .position-relative.mb-2[style*="z-index"] .compare-container.d-flex {
        flex: 0 0 auto !important;
        min-width: 100px !important;
        max-width: 120px !important;
        margin-left: 8px !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    /* Title text styling - FORCE single line */
    .position-relative.mb-2[style*="z-index"] .car-title-text {
        font-size: 1.3rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        width: 100% !important;
        line-height: 1.2 !important;
    }

    /* Compare button styling - FORCE compact size */
    .position-relative.mb-2[style*="z-index"] #compare-button {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.8rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        min-width: auto !important;
        width: auto !important;
    }

    /* CRITICAL: Mobile badges row layout with high specificity */
    .d-md-none .d-flex.align-items-center.justify-content-between.mb-3 {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    /* Left side: price and badges */
    .d-md-none .d-flex.align-items-center.flex-grow-1 {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Car price on mobile */
    #car-price-mobile {
        font-size: 1.3rem !important;
        flex-shrink: 1 !important;
        margin-right: 0.75rem !important;
    }

    /* Mobile badges */
    .mobile-badges {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }

    /* Right side: make offer button */
    .d-md-none .make-offer-section.flex-shrink-0 {
        flex: 0 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-left: 8px !important;
    }

    /* Mobile offer button styling */
    .make-offer-btn-mobile {
        white-space: nowrap !important;
        font-weight: 500 !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }

    .make-offer-btn-mobile span {
        display: inline !important;
    }

    /* Centered mobile offer button */
    .make-offer-btn-mobile-center {
        background-color: #28a745;
        border-color: #28a745;
        color: white;
        font-weight: 600;
        padding: 0.75rem 2rem;
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    }

    .make-offer-btn-mobile-center:hover {
        background-color: #218838;
        border-color: #1e7e34;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    }

    .make-offer-btn-mobile-center i {
        font-size: 1.1rem;
    }

    /* Adjust feature list to 2 columns on tablets */
    .features-accordion .list-unstyled {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reduce gap between seller card and flexible content by 50% on tablets/medium mobile */
    .seller-card.card-body.mb-4 {
        margin-bottom: 0.5rem !important; /* Reduced from 1rem (mb-4) to 0.5rem (50% reduction) */
    }
}

@media (max-width: 576px) {
    /* CRITICAL: Very small screens - MAXIMUM SPECIFICITY for single row */
    .position-relative.mb-2[style*="z-index"] .d-flex.align-items-center.justify-content-between.mb-2 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .position-relative.mb-2[style*="z-index"] .title-container.me-2 {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 80px) !important; /* Reserve space for smaller compare button */
        overflow: hidden !important;
    }

    .position-relative.mb-2[style*="z-index"] .car-title-text {
        font-size: 1.0rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.2 !important;
    }

    .position-relative.mb-2[style*="z-index"] #compare-button,
    .position-relative.mb-2[style*="z-index"] #like-button {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
        flex-shrink: 0 !important;
        min-width: auto !important;
    }

    /* Hide text on very small screens, show only icon */
    .position-relative.mb-2[style*="z-index"] .compare-text,
    .position-relative.mb-2[style*="z-index"] #like-button span {
        display: none !important;
    }

    .position-relative.mb-2[style*="z-index"] #compare-button i,
    .position-relative.mb-2[style*="z-index"] #like-button i {
        margin-right: 0 !important;
        font-size: 0.8rem !important;
    }

    .position-relative.mb-2[style*="z-index"] .compare-container.d-flex {
        flex: 0 0 auto !important;
        margin-left: 4px !important;
        min-width: 60px !important;
        max-width: 80px !important;
    }

    /* CRITICAL: Mobile badges row for very small screens */
    .d-md-none .d-flex.align-items-center.justify-content-between.mb-3 {
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .d-md-none #car-price-mobile {
        font-size: 1.1rem !important;
        flex-shrink: 1 !important;
        margin-right: 0.5rem !important;
    }

    .d-md-none .mobile-badges {
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }

    .make-offer-btn-mobile {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
    }

    /* Smaller badges on mobile */
    .car-badge-mobile {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
    }

    .car-badge-mobile i {
        font-size: 0.8rem;
    }

    /* Car price on very small mobile */
    #car-price-mobile {
        font-size: 1.2rem;
    }

    /* Features accordion adjustments for mobile */
    .features-accordion .list-unstyled {
        grid-template-columns: 1fr;
    }

    .features-accordion .accordion-body {
        padding: 5px 5px 15px 5px;
    }

    .features-accordion .list-unstyled li {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    /* Improve accordion button responsiveness on mobile */
    .features-accordion .accordion-button {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    /* Fix icon circular background on mobile */
    .features-accordion .accordion-button .bi {
        font-size: 1rem;
        width: 28px;
        height: 28px;
        margin-right: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Improved Message Input Styles */
.message-section {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: height 0.3s ease-in-out;
    overflow: visible; /* Changed from hidden to visible */
    will-change: height;
    position: relative; /* Added position relative */
    z-index: 100; /* High z-index to ensure it stays on top */
}

/* Message Input Wrapper Styles */
.message-section .message-input-wrapper {
    position: relative !important;
    overflow: visible !important;
    z-index: 101 !important;
}

#message-input {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    padding: 12px 50px 12px 16px;
    font-size: 0.95rem;
    line-height: 24px !important;
    height: auto;
    min-height: 48px;
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex !important;
    align-items: center !important;
}

#message-input:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

#message-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 24px !important;
    vertical-align: middle !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

#send-message-btn {
    position: absolute;
    right: 1px;
    bottom: 8px;
    width: 72px;
    height: 55px;
    border-radius: 8px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    border: none;
    transition: all 0.2s ease;
}

#send-message-btn:hover {
    background: var(--bs-primary);
    opacity: 0.9;
}

#send-message-btn i {
    font-size: 1.1rem;
    margin-left: 2px;
}

/* Hide scrollbar by default */
textarea#message-input::-webkit-scrollbar {
    width: 8px; /* Adjust as needed */
    opacity: 0; /* Hide by default */
    transition: opacity 0.3s ease-in-out; /* Smooth transition */
  }

  /* Show scrollbar on hover */
  textarea#message-input:hover::-webkit-scrollbar,
  textarea#message-input:focus::-webkit-scrollbar,
  textarea#message-input.show-scrollbar::-webkit-scrollbar {
    opacity: 1; /* Show on hover */
  }

  /* Scrollbar track */
  textarea#message-input::-webkit-scrollbar-track {
    background-color: #333; /* Dark background */
    border-radius: 4px; /* Rounded corners */
  }

  /* Scrollbar thumb */
  textarea#message-input::-webkit-scrollbar-thumb {
    background-color: #666; /* Darker thumb */
    border-radius: 4px; /* Rounded corners */
    border: 2px solid #333; /* Add a border to separate from the track */
  }

  /* Scrollbar thumb on hover */
  textarea#message-input::-webkit-scrollbar-thumb:hover {
    background-color: #888; /* Lighter on hover */
  }

  /* Scrollbar corner */
  textarea#message-input::-webkit-scrollbar-corner {
    background-color: #333; /* Dark background */
  }

  .position-relative {
    border-top: none;
    border-right: none;
    border-left: none;
    border-bottom: none;
  }

  textarea#message-input {
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-top: 10px !important; /* Reduced top padding from 16px to 10px */
    padding-bottom: 4px !important; /* Added 4px bottom padding */
    display: flex !important;
    align-items: flex-start !important; /* Changed to flex-start for multi-line text */
    line-height: 1.2 !important; /* Reduced line height by 75% for closer lines */
    height: 53px !important;
  }

  /* Force center placeholder */
  textarea#message-input::placeholder {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    line-height: 1 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Message suggestions specific styles */
  .message-suggestions {
    position: absolute; /* Changed from relative to absolute */
    top: 100%; /* Position below the message input */
    left: 0;
    right: 0;
    z-index: 1000; /* Increased z-index to ensure it stays on top */
    background: linear-gradient(135deg, #272238, #1e1a29); /* Match seller card background */
    border-radius: 8px;
    padding: 0;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Match seller card border */
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    opacity: 0;
    max-height: 0;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    pointer-events: none; /* Prevent interaction when hidden */
    will-change: max-height, opacity, padding, margin;
    border-width: 0;
    transform: translateY(-10px); /* Start slightly above for animation */
  }

  /* When suggestions are visible */
  .message-suggestions.visible {
    padding: 12px; /* Slightly more padding */
    margin-top: 16px !important; /* Increased top margin */
    margin-bottom: 8px !important;
    opacity: 1;
    max-height: 200px; /* Large enough to fit all suggestions */
    pointer-events: auto; /* Allow interaction when visible */
    border-width: 1px;
    transform: translateY(0); /* Move to final position */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25); /* Match seller card shadow */
  }

  /* Add elegant gradient overlay at the top like seller card */
  .message-suggestions.visible::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), transparent);
    opacity: 0.7;
    z-index: 0;
    border-radius: 8px 8px 0 0;
    pointer-events: none;
  }

  /* Improve spacing between suggestion buttons */
  .message-suggestions .suggestion-btn {
    margin: 4px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 8px;
    overflow: hidden;
  }

  /* Add hover effect to suggestion buttons - match seller card button style */
  .message-suggestions .suggestion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
    background: rgba(13, 110, 253, 0.1);
    color: #fff;
  }

  /* Add elegant gradient effect on hover - match seller card button style */
  .message-suggestions .suggestion-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1),
        transparent);
    transition: left 0.8s ease;
    z-index: -1;
  }

  .message-suggestions .suggestion-btn:hover::before {
    left: 100%;
  }

  /* Active state for suggestion buttons */
  .message-suggestions .suggestion-btn.active {
    background: rgba(13, 110, 253, 0.15);
    color: #fff;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
  }

/* Specifications Section Title Icon */
.specs-icon {
    font-size: 1.5rem;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.2);
}

.section-title {
    position: relative;
    z-index: 1;
}

.title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(13, 110, 253, 0.5), rgba(13, 110, 253, 0.1));
    position: relative;
    max-width: 100px;
}

/* Mobile optimizations for section headers */
@media (max-width: 576px) {
    .specs-icon {
        font-size: 1.2rem;
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }

    .section-title {
        font-size: 1.1rem !important;
    }

    .title-line {
        max-width: 60px;
    }

    /* Reduce spacing around section headers */
    .specs-section .d-flex.align-items-center.mb-4 {
        margin-bottom: 0.5rem !important;
    }

    /* Reduce top padding of specs section */
    .specs-section.pt-2 {
        padding-top: 0.5rem !important;
    }
}

/* Reduce gap between specifications section and features section by 60% */
.specs-section {
    margin-bottom: 0.8rem !important; /* Reduced by 60% */
}

/* Reduce the top padding of the features section header by 60% */
.pt-features {
    padding-top: 0.4rem !important; /* Reduced by 60% */
}

/* Specifications Grid Layout */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 0.5rem;
}

/* Specification Card */
.spec-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow; /* Optimize for animations */
    height: 100%; /* Ensure consistent height */
}

.spec-card:hover {
    background: rgba(13, 110, 253, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 110, 253, 0.1);
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    background-position: -200px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.spec-card:hover::before {
    opacity: 1;
    animation: spec-card-glow 1.2s ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes spec-card-glow {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

/* Specification Icon */
.spec-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(13, 110, 253, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.1);
    position: relative;
    z-index: 2; /* Ensure icon stays above the glow effect */
}

.spec-icon i {
    font-size: 14px;
    color: #0d6efd;
}

.spec-card:hover .spec-icon {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(13, 110, 253, 0.1));
}

.spec-card:hover .spec-icon i {
    transform: scale(1.1);
}

/* Specification Content */
.spec-content {
    flex: 1;
    min-width: 0; /* Allows text truncation */
    position: relative;
    z-index: 2; /* Ensure content stays above the glow effect */
}

.spec-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spec-value {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

/* Optimize long text display on mobile */
@media (max-width: 576px) {
    .spec-content {
        max-width: calc(100% - 27px); /* Account for icon width and margin */
    }

    /* Handle long values better on mobile */
    .spec-value.long-text {
        font-size: 0.65rem;
        letter-spacing: -0.3px;
    }
}

.verified-icon {
    font-size: 0.7rem;
}

.vin-value {
    font-size: 0.75rem;
    letter-spacing: -0.5px;
}

/* Responsive Adjustments for Specifications Grid */
@media (max-width: 1200px) {
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

    .spec-card {
        padding: 6px;
    }

    .spec-icon {
        width: 28px;
        height: 28px;
    }

    .spec-icon i {
        font-size: 12px;
    }

    .spec-label {
        font-size: 0.65rem;
    }

    .spec-value {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .spec-card {
        padding: 4px;
        min-height: 50px; /* Ensure consistent height */
    }

    .spec-icon {
        width: 22px;
        height: 22px;
        margin-right: 5px;
    }

    .spec-icon i {
        font-size: 10px;
    }

    .spec-label {
        font-size: 0.55rem;
        margin-bottom: 1px;
    }

    .spec-value {
        font-size: 0.7rem;
    }

    .verified-icon {
        font-size: 0.6rem;
    }

    .vin-value {
        font-size: 0.65rem;
        letter-spacing: -0.6px;
    }

    /* Mobile collapsible specifications */
    .spec-card.mobile-hidden {
        display: none;
    }

    .spec-card.mobile-visible {
        display: flex;
    }

    /* View More button styling for mobile */
    .view-more-specs-btn {
        grid-column: 1 / -1; /* Span full width */
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 8px 12px;
        color: #ffffff;
        font-size: 0.7rem;
        font-weight: 500;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 50px;
    }

    .view-more-specs-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
    }

    .view-more-specs-btn i {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .view-more-specs-btn.expanded i {
        transform: rotate(180deg);
    }
}

/* Extra small devices (phones under 400px) */
@media (max-width: 400px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }

    .spec-card {
        padding: 3px;
        min-height: 45px;
    }

    .spec-icon {
        width: 20px;
        height: 20px;
        margin-right: 4px;
    }

    .spec-icon i {
        font-size: 9px;
    }

    .spec-label {
        font-size: 0.5rem;
        margin-bottom: 0;
    }

    .spec-value {
        font-size: 0.65rem;
    }
}

/* Flexible Content List Styling */
.quick-info-divider {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.quick-info-divider:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.quick-info-divider i {
    color: #0d6efd;
    font-size: 1.1rem;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.quick-info-divider:hover {
    transform: translateY(-2px);
}

.quick-info-divider:hover i {
    transform: scale(1.1);
}

/* Responsive font size for flexible content list */
@media (max-width: 576px) {
    .quick-info-divider {
        font-size: 0.85rem;
    }

    .quick-info-divider i {
        font-size: 1rem;
    }

    .quick-info-divider:not(:last-child)::after {
        height: 14px;
        right: -10px;
    }

    /* Reduce gap between seller card and flexible content by 75% on mobile */
    .seller-card.card-body.mb-4 {
        margin-bottom: 0.25rem !important; /* Reduced from 1rem (mb-4) to 0.25rem (75% reduction) */
    }

    /* Adjust flexible content spacing on mobile */
    .d-flex.flex-wrap.border-top.border-light.fs-sm.text-light.pt-4.mt-4.pb-5.pb-md-3.justify-content-center {
        padding-top: 0.5rem !important; /* Reduced from 1.5rem (pt-4) to 0.5rem */
        margin-top: 0.5rem !important; /* Reduced from 1.5rem (mt-4) to 0.5rem */
    }

    /* Reduce space between seller card and flexible content */
    .col-md-7 > .d-flex.flex-wrap.border-top.border-light.fs-sm.text-light {
        margin-top: 0.25rem !important;
        padding-top: 0.25rem !important;
    }

    /* Target the gap directly */
    .seller-card + div,
    .seller-card ~ div.d-flex.flex-wrap.border-top,
    .accordion-light + div.d-flex.flex-wrap.border-top {
        margin-top: 0.25rem !important;
        padding-top: 0.25rem !important;
    }
}

@media (max-width: 400px) {
    .quick-info-divider {
        font-size: 0.8rem;
    }

    .quick-info-divider i {
        font-size: 0.9rem;
    }

    /* Further reduce accordion elements for very small screens */
    .features-accordion .accordion-button {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .features-accordion .accordion-button .bi {
        font-size: 0.9rem;
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }

    .features-accordion .list-unstyled li {
        font-size: 0.85rem;
        padding: 5px 8px;
    }

    .features-accordion .accordion-body {
        padding: 3px 3px 12px 3px;
    }
}
