/* Breadcrumb styles */
.breadcrumb-light {
    background: #242830;
    padding: 0.75rem 1.5rem;
    margin-top: -3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* 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;
}

/* Car Card Styles for Seller Profile Page */
.col-md-3 {
    padding-top: 0.5rem;
}

/* Sticky Seller Card Container */
.sticky-seller-card {
    position: relative;
    z-index: 10;
    width: 100%;
    will-change: transform; /* Optimize for animations */
    padding: 0; /* Remove any padding */
    margin: 0; /* Remove any margin */
    box-sizing: border-box; /* Include padding and border in width */
    overflow: hidden; /* Prevent content from spilling out */
}

/* No sticky behavior for the seller card - normal scrolling */
.sticky-seller-card.is-sticky {
    position: relative; /* Normal flow positioning instead of fixed */
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    transition: none !important;
    box-shadow: none;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    pointer-events: auto !important;
}

/* Mobile-specific z-index adjustment to prevent dropdown issues */
@media (max-width: 767px) {
    /* Mobile-specific adjustments to reduce gap between breadcrumb and card */
    .breadcrumb-light {
        margin-bottom: 0;
    }

    .row.mt-2 {
        margin-top: 0 !important;
    }

    .col-md-3 {
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .sticky-seller-card {
        z-index: 5; /* Lower z-index on mobile */
        margin-top: -15px; /* Negative margin on mobile to reduce gap */
        transform: translateZ(0); /* Force GPU acceleration */
        will-change: transform; /* Hardware acceleration hint */
        backface-visibility: hidden; /* Prevent flickering */
    }

    .sticky-seller-card.is-sticky {
        position: relative !important; /* Normal flow positioning instead of fixed */
        z-index: 990; /* Lower than dropdown but still high enough for other elements */
        margin-left: 0 !important; /* Remove margin */
        margin-right: 0 !important; /* Remove margin */
        padding: 0 !important; /* Remove any padding */
        border-radius: 0 !important; /* Remove any border radius */
        box-shadow: none !important; /* No shadow needed for normal scrolling */
        transform: translateZ(0) !important; /* Force GPU acceleration */
        will-change: transform !important; /* Hardware acceleration hint */
        backface-visibility: hidden !important; /* Prevent flickering */
        -webkit-transform: translateZ(0) !important; /* For Safari */
        -webkit-backface-visibility: hidden !important; /* For Safari */
        transition: none !important; /* Disable transitions completely */
        animation: none !important; /* Disable animations */
        pointer-events: auto !important; /* Ensure the card can receive pointer events */
    }

    /* Ensure the spacer is properly sized when the card is sticky */
    .sticky-seller-card.is-sticky + #stickySellerSpacer {
        display: block !important;
        height: auto !important;
        min-height: 200px !important; /* Ensure enough space */
        visibility: hidden !important;
    }

    /* No gap needed between card and tabs container with normal scrolling */
    .sticky-seller-card.is-sticky + .col-md-9 {
        margin-top: 0 !important; /* No extra space needed for normal scrolling */
        position: relative;
        z-index: 1;
    }

    /* Remove the visual separator in the gap */
    .sticky-seller-card.is-sticky + .col-md-9::before {
        display: none; /* Hide the separator */
    }

    /* Ensure the seller badge is properly sized and positioned in sticky state */
    .sticky-seller-card.is-sticky .seller-badge {
        top: 0 !important; /* Position at the very top edge */
        left: 0 !important; /* Position at the very left edge */
        border-radius: 0 !important; /* No border radius for sticky state */
        padding: 0.25rem 0.5rem !important; /* Reduced padding */
        font-size: 0.64rem !important; /* Reduced font size by 15% */
        z-index: 1001 !important; /* Higher than the sticky card */
    }

    /* Ensure the spacer is properly sized */
    #stickySellerSpacer {
        display: none !important; /* Hide initially */
        height: auto !important; /* Auto height */
        width: 100% !important; /* Full width */
        visibility: hidden !important; /* Hide visually but keep in layout */
    }

    /* When sticky, show the spacer */
    .sticky-seller-card.is-sticky + #stickySellerSpacer {
        display: block !important; /* Show when sticky */
    }
}

/* Desktop specific sticky styles */
@media (min-width: 768px) {
    /* Basic sticky behavior for desktop */
    .sticky-seller-card {
        position: relative; /* Default position */
        height: fit-content;
        z-index: 990; /* Lower than dropdown (99999) but still high enough for other elements */
        align-self: flex-start;
        width: 100%; /* Ensure consistent width */
        transition: none !important; /* Prevent any transitions */
        transform: none !important; /* Prevent any transforms */
        box-sizing: border-box; /* Include padding and border in width */
    }

    /* Normal positioning - no sticky behavior */
    .sticky-seller-card.is-sticky {
        position: relative; /* Normal flow positioning instead of sticky */
        width: 100%; /* Ensure consistent width */
        max-width: 100%; /* Prevent expanding */
        left: auto !important; /* Prevent horizontal shifting */
        right: auto !important; /* Prevent horizontal shifting */
        transition: none !important; /* Prevent any transitions */
        transform: none !important; /* Prevent any transforms */
        animation: none !important; /* Prevent any animations */
    }

    /* Ensure badge is properly positioned on desktop */
    .sticky-seller-card .seller-badge,
    .sticky-seller-card.is-sticky .seller-badge {
        top: 0 !important; /* Position at the very top edge */
        left: 0 !important; /* Position at the very left edge */
        z-index: 30;
        border-radius: 0 0 8px 0 !important; /* Only round the bottom-right corner */
        padding: 0.3rem 0.5rem !important; /* Consistent padding */
    }
}

/* Seller Profile Sidebar Styles */
.seller-profile-sidebar {
    background: linear-gradient(145deg, #2a2837 0%, #1f1b2c 100%);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    width: 100%;
    transition: border-radius 0.2s ease;
    margin: 0 !important; /* Remove any margin */
    padding: 0 !important; /* Remove any padding */
    box-sizing: border-box; /* Include padding and border in width */
    border: 0 !important; /* Ensure no border */
}

/* Make the seller profile sidebar fill the sticky container */
.sticky-seller-card .seller-profile-sidebar {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 15px; /* Maintain border radius for desktop */
}

/* Ensure the seller profile sidebar has proper styling when sticky on mobile */
@media (max-width: 767.98px) {
    /* Adjust the seller profile sidebar for mobile view */
    .seller-profile-sidebar {
        border-radius: 15px; /* Keep border radius for non-sticky state */
        margin: 0; /* Remove any margin */
        width: 100%; /* Ensure it fills the container */
        overflow: hidden; /* Ensure nothing spills outside the card */
    }

    /* When sticky, make it edge-to-edge */
    .sticky-seller-card.is-sticky .seller-profile-sidebar {
        border-radius: 0 !important; /* Force remove border radius for edge-to-edge appearance */
        box-shadow: none; /* Remove shadow for a cleaner edge-to-edge look */
        margin: 0 !important; /* Remove any margin */
        padding: 0 !important; /* Remove any padding */
        transform: none !important; /* Prevent hover transform when sticky */
        width: 100vw !important; /* Force viewport width to ensure edge-to-edge */
        max-width: 100vw !important; /* Ensure no max-width constraints */
        overflow: hidden !important; /* Ensure nothing spills outside the card */
    }

    /* Force remove all border radius from all elements in the sticky card */
    .sticky-seller-card.is-sticky *,
    .sticky-seller-card.is-sticky .seller-profile-sidebar *,
    .sticky-seller-card.is-sticky .seller-profile-sidebar .seller-image-wrapper *,
    .sticky-seller-card.is-sticky .seller-profile-sidebar .card-body * {
        border-radius: 0 !important;
    }

    /* Ensure the card body fills the width in mobile view */
    .sticky-seller-card.is-sticky .seller-profile-sidebar .card-body {
        padding-left: 15px !important; /* Add padding to match container padding */
        padding-right: 15px !important; /* Add padding to match container padding */
        width: 100% !important; /* Ensure it fills the container */
    }
}

.seller-image-wrapper {
    position: relative;
    text-align: center;
    padding: 0;
    margin: 0; /* Ensure no margin */
    background: rgba(0, 0, 0, 0.2);
    overflow: visible !important; /* Changed from hidden to visible to prevent badge cropping - use !important to override any other styles */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    width: 100%;
    border-left: 0 !important; /* Ensure no border on the left */
    border-top: 0 !important; /* Ensure no border on the top */
}

.seller-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--seller-profile-bg);
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    opacity: 0.6;
    z-index: 0;
}

/* Profile image container for positioning the verification badge */
.profile-img-container {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.seller-profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid #fd5631; /* Changed to match badge gradient start color */
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    margin: 0; /* Reset margin as it's now on the container */
}

/* Profile verification badge styling */
.profile-verified-badge {
    position: absolute;
    top: -2px; /* Negative value to move it up and overlap with the border */
    right: 10px;
    width: 28px;
    height: 28px;
    background: transparent; /* No background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    overflow: visible; /* Allow the icon to overflow the badge container */
}

.profile-verified-badge i {
    color: #fd7e14; /* Orange color matching the verified badge in singlecar.html */
    font-size: 24px; /* Slightly larger icon */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); /* Small dark shadow to make it stand out */
    position: relative;
    top: 2px; /* Fine-tune vertical position to align with border */
}

/* Seller badge styles - matching My Pick badge */
.seller-badge {
    /* No default background color - will be set by JavaScript to match profile border */
    color: #ffffff;
    border-radius: 0 0 8px 0; /* Only round the bottom-right corner */
    padding: 0.2rem 0.3rem; /* Minimal padding */
    margin: 0 !important; /* No margin */
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 0 !important; /* Position at the very top edge */
    left: 0 !important; /* Position at the very left edge */
    z-index: 50; /* Increased z-index to ensure it's above other elements */
    width: auto;
    transform: translateX(0) !important; /* Ensure no transform is applied */
    border-left: 0 !important; /* Ensure no border on the left */
    border-top: 0 !important; /* Ensure no border on the top */
    overflow: hidden; /* Ensure shimmer effect stays within badge */
    transition: all 0.3s ease;
}

/* Verified badge styling removed - using only the profile verification badge now */

/* Default badge colors based on seller type - these will be overridden by JavaScript */
.seller-badge.business {
    background-color: #28a745 !important;
}

.seller-badge.dealership {
    background-color: #3498db !important;
}

/* Badge shimmer effect on hover */
.seller-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.seller-badge:hover::before {
    left: 100%;
}

/* Ensure text is above the shimmer effect */
.seller-badge span {
    position: relative;
    z-index: 2;
}

@media (max-width: 767.98px) {
    .seller-badge {
        padding: 0.15rem 0.25rem !important; /* Minimal padding */
        font-size: 0.64rem; /* Reduced font size by ~15% */
        top: 0 !important; /* Position at the very top edge */
        left: 0 !important; /* Position at the very left edge */
        border-radius: 0 0 8px 0; /* Only round the bottom-right corner */
        margin: 0 !important; /* No margin */
        border-left: 0 !important; /* Ensure no border on the left */
        border-top: 0 !important; /* Ensure no border on the top */
    }

    /* Icon removed from seller badge */

    .sticky-seller-card.is-sticky .seller-badge {
        top: 0 !important; /* Position at the very top edge */
        left: 0 !important; /* Position at the very left edge */
        border-radius: 0 !important; /* No border radius for sticky state */
        padding: 0.15rem 0.25rem !important; /* Minimal padding */
        margin: 0 !important; /* No margin */
        border-left: 0 !important; /* Ensure no border on the left */
        border-top: 0 !important; /* Ensure no border on the top */
    }
}

/* Seller header with name and rating on one line */
.seller-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.seller-name-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.seller-name {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
}

.seller-rating-badge {
    background-color: rgba(255, 200, 0, 0.15);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.seller-rating-count {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 400;
    color: #d1d1d1;
}

.seller-stats {
    margin-top: 1rem;
    padding: 0 1rem;
}

.seller-contact-info {
    margin-top: 0.5rem; /* Reduced from 1rem to account for the divider */
    padding: 0 1rem;
    /* Removed flex layout to allow vertical stacking */
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    /* Removed flex: 1 to allow natural sizing */
}

.stat-item:last-child,
.contact-item:last-child {
    border-bottom: none;
}

.stat-item .feature-icon,
.contact-item .feature-icon {
    color: #fd5631;
    font-size: 1rem;
    width: 24px;
    text-align: center;
    margin-right: 1rem;
}

.stat-label,
.contact-label {
    flex: 1;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.desktop-only {
    display: inline;
}

.stat-content,
.contact-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.stat-value,
.contact-value {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

/* Specific style for email value in desktop view */
@media (min-width: 768px) {
    #sellerEmail {
        font-size: 0.95rem !important; /* Match other contact values */
        font-weight: 600 !important;
        text-align: right !important;
        white-space: normal !important; /* Allow wrapping if needed */
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
    }

    /* Ensure the contact item containing email has proper styling */
    .contact-item:last-child {
        display: flex !important;
        align-items: center !important;
        padding: 0.5rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* Ensure the contact content for email has proper styling */
    .contact-item:last-child .contact-content {
        flex: 1 !important;
        display: flex !important;
        justify-content: space-between !important;
    }
}

.seller-bio {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-left: 1rem;
    margin-right: 1rem;
    position: relative;
}

.seller-bio-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
}

.bio-icon {
    color: #fd5631;
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.bio-content {
    flex: 1;
    position: relative;
    max-height: 4.5em;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.bio-content.expanded {
    max-height: 300px !important; /* Use !important to override any other max-height values */
    height: auto !important; /* Ensure height is auto when expanded */
    overflow: visible !important; /* Make content visible when expanded */
}

.bio-label {
    font-weight: 600;
    margin-right: 0.3rem;
    color: #fff;
    font-size: 0.9rem;
}

.bio-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.bio-expand-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(33, 37, 41, 0.8) 30%);
    padding: 0 0.5rem;
    color: #fd5631;
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}

.bio-expand-btn:hover {
    color: #ff7e5f;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
}

/* New horizontal row layout for action buttons */
.action-buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
}

/* Vertical divider between buttons */
.action-divider,
.contact-divider,
.stats-contact-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Horizontal divider between stats and contact info */
.stats-contact-divider {
    width: calc(100% - 2rem); /* Full width minus padding */
    height: 1px;
    margin: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Icon-only buttons */
.action-buttons .btn-icon {
    background: transparent;
    border: none;
    color: #fd5631;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.action-buttons .btn-icon:hover {
    background-color: rgba(253, 86, 49, 0.1);
    transform: scale(1.05);
}

/* Desktop button styles */
@media (min-width: 768px) {
    .action-buttons {
        padding: 0 0.5rem;
    }

    .action-buttons-row {
        justify-content: center;
    }

    .action-buttons .btn-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .action-divider {
        height: 28px;
    }

    /* Ensure contact values have consistent styling in desktop view */
    .contact-value {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        text-align: right !important;
    }
}

.seller-member-since {
    font-size: 0.8rem;
    opacity: 0.7;
    padding: 0;
    text-align: center;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Verified seller status line */
.seller-verified-status {
    font-size: 0.8rem;
    opacity: 0.7; /* Faded like Member since text */
    padding: 0;
    text-align: center;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #adb5bd; /* Same color as Member since text */
}

.seller-verified-status i {
    color: #fd7e14; /* Orange color matching the profile verification badge */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    opacity: 1; /* Keep the icon fully visible */
}

/* Responsive styles for seller sidebar */
@media (max-width: 992px) {
    .seller-profile-sidebar {
        margin-bottom: 1.5rem; /* Reduced margin */
    }

    .seller-profile-img {
        width: 110px; /* Slightly reduced size */
        height: 110px; /* Slightly reduced size */
    }

    .seller-image-wrapper {
        min-height: 120px; /* Reduced by 25% from 160px */
    }
}

@media (max-width: 768px) {
    .col-md-3 {
        padding-top: 1rem;
    }

    .seller-image-wrapper {
        padding: 0;
        min-height: 155px; /* Reduced by ~10% */
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start; /* Align to the left instead of center */
        padding-left: 10px; /* Add some padding on the left */
    }

    .profile-img-container {
        margin: 3.75px 0; /* Reduced by 50% */
    }

    .seller-profile-img {
        width: 151.9px; /* Keep the same size */
        height: 151.9px; /* Keep the same size */
        margin: 0; /* Reset margin as it's now on the container */
        border: 5px solid #fd5631; /* Keep the same border */
    }

    /* Adjust profile verification badge for mobile */
    .profile-verified-badge {
        width: 24px;
        height: 24px;
        top: -2px; /* Keep the same negative value to maintain alignment with border */
        right: 8px;
    }

    .profile-verified-badge i {
        font-size: 20px; /* Slightly smaller for mobile but still visible */
        top: 2px; /* Keep the same top offset */
    }
}

@media (max-width: 768px) {
    /* Horizontal layout for mobile screens - regardless of sticky state */
    .sticky-seller-card .seller-profile-sidebar {
        display: flex;
        flex-direction: row;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
    }

    .sticky-seller-card .seller-image-wrapper {
        width: 25%; /* Keep at 25% as requested */
        flex: 0 0 25%; /* Keep at 25% as requested */
        padding: 0;
        min-height: 125px; /* Reduced by ~17% */
        height: 100%;
        display: flex;
        align-items: center; /* Changed to center vertically */
        justify-content: flex-start; /* Align to the left instead of center */
        padding-left: 10px; /* Add some padding on the left */
        background-color: #1f1b2c; /* Match card background */
        position: relative; /* Ensure position is relative for absolute positioning of children */
        overflow: visible !important; /* Allow badge to overflow if needed - use !important to override any other styles */
    }
}

@media (max-width: 768px) {
    /* Add a specific ::before style for mobile view */
    .sticky-seller-card .seller-image-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: var(--seller-profile-bg);
        background-size: cover;
        background-position: center;
        filter: blur(5px);
        opacity: 0.6;
        z-index: 0;
    }

    .sticky-seller-card .profile-img-container {
        margin: 3px 0; /* Reduced margin for sticky state */
    }

    .sticky-seller-card .seller-profile-img {
        width: 118.1px; /* Keep the same size */
        height: 118.1px; /* Keep the same size */
        margin: 0; /* Remove auto margin to align with left */
        position: relative;
        z-index: 2; /* Ensure it's above the background */
        border: 4px solid #fd5631; /* Keep the same border */
    }

    .sticky-seller-card .profile-verified-badge {
        width: 22px;
        height: 22px;
        top: -2px; /* Keep the same negative value to maintain alignment with border */
        right: 6px;
    }

    .sticky-seller-card .profile-verified-badge i {
        font-size: 18px; /* Slightly smaller in sticky state but still visible */
        top: 2px; /* Keep the same top offset */
    }

    /* Mobile-specific badge styles - already handled in the main seller-badge styles */

    .sticky-seller-card .card-body {
        width: 75%; /* Keep at 75% as requested */
        flex: 0 0 75%; /* Keep at 75% as requested */
        padding: 0.25rem 0.5rem; /* Reduced vertical padding by 50% */
    }
}

@media (max-width: 768px) {
    /* Adjust content to fit in horizontal layout */
    .sticky-seller-card .seller-header {
        align-items: flex-start;
        margin-bottom: 0.125rem; /* Reduced by 50% */
    }

    .sticky-seller-card .seller-name-rating {
        justify-content: flex-start;
        gap: 0.3rem;
    }

    .sticky-seller-card .seller-name {
        font-size: 1rem;
        margin: 0;
    }

    .sticky-seller-card .seller-rating {
        font-size: 0.8rem;
    }

    .sticky-seller-card .seller-rating-badge {
        padding: 0.15rem 0.3rem;
        font-size: 0.8rem;
    }

    .sticky-seller-card .seller-rating-count {
        font-size: 0.7rem;
    }

    .sticky-seller-card .seller-member-since {
        font-size: 0.7rem;
        margin: 0.05rem 0 0.125rem 0; /* Reduced by 50% */
        text-align: left;
    }

    .sticky-seller-card .seller-verified-status {
        font-size: 0.7rem;
        margin: 0 0 0.125rem 0;
        text-align: left;
        opacity: 0.7; /* Keep the same opacity as desktop */
        color: #adb5bd; /* Keep the same color as desktop */
    }

    .sticky-seller-card .seller-verified-status i {
        opacity: 1; /* Keep the icon fully visible */
    }

    .sticky-seller-card .seller-stats {
        margin-top: 0.25rem; /* Reduced by 50% */
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: transparent;
        border-radius: 8px;
        padding: 0.15rem 0.5rem; /* Reduced vertical padding by 50% */
    }

    .sticky-seller-card .stat-item {
        padding: 0.125rem 0.15rem; /* Reduced vertical padding by 50% */
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 0.3rem;
    }

    .sticky-seller-card .stat-item-small {
        flex: 2;
    }

    .sticky-seller-card .stat-item-large {
        flex: 8;
    }

    .sticky-seller-card .stat-divider {
        height: 20px;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.2);
        margin: 0 0.1rem;
    }

    .sticky-seller-card .feature-icon {
        font-size: 0.9rem;
        margin-right: 0;
        min-width: 14px;
        text-align: center;
    }

    .sticky-seller-card .stat-value {
        font-size: 0.75rem;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .sticky-seller-card .stat-item-small .stat-value {
        max-width: 30px;
    }

    .sticky-seller-card .stat-item-large .stat-value {
        max-width: 150px;
    }

    .sticky-seller-card .stat-content,
    .sticky-seller-card .contact-content {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    /* Contact info row styles */
    .sticky-seller-card .seller-contact-info {
        margin-top: 0.05rem; /* Reduced by 50% */
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        background-color: transparent;
        padding: 0.1rem 0.5rem; /* Reduced vertical padding by 50% */
        gap: 0.3rem;
    }

    .sticky-seller-card .contact-item {
        padding: 0.075rem 0.15rem; /* Reduced vertical padding by 50% */
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 0.3rem;
        border-bottom: none;
        flex: 1;
    }

    .sticky-seller-card .contact-item:first-child {
        flex: 0 0 40%;
    }

    .sticky-seller-card .contact-item:last-child {
        flex: 0 0 60%;
    }

    .sticky-seller-card .contact-value {
        font-size: 0.75rem;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        max-width: 120px;
        color: #fff;
    }

    /* Allow email to display fully without ellipsis */
    .sticky-seller-card #sellerEmail {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
    }

    .sticky-seller-card .contact-label {
        flex: 1;
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }

    .sticky-seller-card .contact-item .feature-icon {
        color: #fd5631;
        font-size: 0.9rem;
        margin-right: 0;
        min-width: 14px;
        text-align: center;
    }

    .desktop-only,
    .stats-contact-divider {
        display: none;
    }

    .sticky-seller-card .seller-bio {
        display: block;
        margin-top: 0.25rem; /* Reduced by 50% */
        margin-bottom: 0.25rem; /* Reduced by 50% */
        padding: 0.15rem 0; /* Reduced vertical padding by 50% */
        font-size: 0.88rem; /* Keep the same font size */
        background: transparent; /* Keep transparent background */
    }

    .sticky-seller-card .seller-bio-row {
        gap: 0.3rem; /* Smaller gap for mobile */
        padding: 0 0.5rem; /* Add some horizontal padding to the row itself */
    }

    .sticky-seller-card .bio-icon {
        font-size: 0.99rem; /* Increased font size by 10% */
    }

    .sticky-seller-card .bio-content {
        max-height: 3.5em; /* Increased to accommodate larger font size */
    }

    .sticky-seller-card .bio-content.expanded {
        max-height: 300px !important;
        height: auto !important;
        overflow: visible !important;
    }

    .sticky-seller-card .bio-label {
        font-size: 0.88rem; /* Increased font size by 10% */
    }

    .sticky-seller-card .bio-text {
        font-size: 0.825rem; /* Increased font size by 10% */
        line-height: 1.4;
    }

    .sticky-seller-card .bio-expand-btn {
        font-size: 0.8rem;
    }

    /* Action buttons removed to make the card more compact */

    /* When sticky on mobile, make sure it fills the width properly */
    .sticky-seller-card.is-sticky {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        padding: 10px;
    }

    /* Add spacing for content below the sticky card */
    .sticky-spacer {
        display: none;
        visibility: hidden;
        opacity: 0;
    }

    /* Responsive Breadcrumb Styles for Mobile Devices */
    .breadcrumb-light {
        padding: 0.75rem 0.5rem; /* Reduced horizontal padding */
        margin-top: -3rem;
        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.4rem; /* Further reduced padding between items */
    }

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

    .breadcrumb-item a {
        padding: 0.2rem 0.15rem; /* Reduced horizontal padding for links */
    }

    .breadcrumb-item.active {
        padding: 0.2rem 0.15rem; /* Reduced horizontal 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.3rem; /* Further reduced horizontal padding */
        margin-top: -2.5rem;
        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.3rem; /* Minimal padding between items */
    }

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

    .breadcrumb-item a {
        padding: 0.15rem 0.1rem; /* Minimal horizontal padding for links */
    }

    .breadcrumb-item.active {
        padding: 0.15rem 0.1rem; /* Minimal horizontal padding for active item */
    }

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

    /* Sticky card adjustments for very small screens */
    .sticky-seller-card.is-sticky {
        top: 89px !important; /* Fine-tuned position */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important; /* Add shadow to bottom */
    }

    /* Maintain the gap between sticky card and tabs container */
    .sticky-seller-card.is-sticky + .col-md-9 {
        margin-top: 200px !important; /* Keep consistent with larger mobile screens */
    }

    /* Extra enforcement of sharp corners for very small screens */
    .sticky-seller-card.is-sticky,
    .sticky-seller-card.is-sticky *,
    .sticky-seller-card.is-sticky .seller-profile-sidebar,
    .sticky-seller-card.is-sticky .seller-profile-sidebar *,
    .sticky-seller-card.is-sticky .seller-profile-sidebar .seller-image-wrapper,
    .sticky-seller-card.is-sticky .seller-profile-sidebar .card-body,
    .sticky-seller-card.is-sticky .seller-profile-sidebar .card-body * {
        border-radius: 0 !important;
    }
}

/* Car Card Styles for Seller Profile Page */
.car-card-profile {
    background: linear-gradient(145deg, #2a2837 0%, #1f1b2c 100%);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    overflow: hidden;
    margin-bottom: 1rem;
}

.car-card-profile:hover {
    transform: translateY(-5px);
}

.car-card-profile .card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/12;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background-color: #1f1b2c; /* Match card background to avoid black spaces */
}

.car-card-profile .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.car-card-profile .card-img-wrapper:hover .card-img-top {
    transform: scale(1.05);
}

.car-card-profile .card-body {
    background-color: #282534;
    padding: 0.75rem;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 992px) {
    .car-card-profile .card-body {
        padding: 1rem;
        gap: 0.6rem;
    }
}

@media (min-width: 1200px) {
    .car-card-profile .card-body {
        padding: 1.25rem;
        gap: 0.7rem;
    }
}

.car-card-profile .car-year {
    color: #fd5631;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0;
    flex-shrink: 0; /* Prevent the year from shrinking */
    background-color: rgba(253, 86, 49, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-right: 0.35rem; /* Consistent spacing */
}

@media (min-width: 992px) {
    .car-card-profile .car-year {
        font-size: 0.9rem;
    }
}

@media (min-width: 1200px) {
    .car-card-profile .car-year {
        font-size: 1rem;
    }
}

.car-card-profile .d-flex.align-items-center {
    flex-wrap: nowrap;
    gap: 0.25rem;
    width: 100%;
    overflow: hidden;
}

.car-card-profile .card-title {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0; /* Required for text-overflow to work in a flex container */
}

.car-card-profile .card-trim {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0;
    margin-left: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 576px) {
    .car-card-profile .card-title,
    .car-card-profile .card-trim {
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) {
    .car-card-profile .card-title,
    .car-card-profile .card-trim {
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .car-card-profile .card-title,
    .car-card-profile .card-trim {
        font-size: 1.1rem;
    }
}

@media (min-width: 1200px) {
    .car-card-profile .card-title,
    .car-card-profile .card-trim {
        font-size: 1.25rem;
    }
}

.car-card-profile .car-specs {
    color: #fff;
    font-size: 0.65rem;
    font-weight: 300;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

@media (min-width: 992px) {
    .car-card-profile .car-specs {
        font-size: 0.85rem;
    }
}

@media (min-width: 1200px) {
    .car-card-profile .car-specs {
        font-size: 0.95rem;
    }
}

.car-card-profile .car-price-container {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.1rem 0.25rem;
    position: relative;
}

/* Add price tag styling like in carCompare.css */
.car-card-profile .car-price-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #fd5631;
    border-radius: 2px 0 0 2px;
}

/* Special styling for wallet icon in price container */
.car-card-profile .car-price-container .feature-icon {
    margin-left: 0.3rem; /* Add some space after the red border */
}

.car-card-profile .car-price {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    padding: 0.1rem 0.3rem;
    border-radius: 6px;
    width: fit-content;
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .car-card-profile .car-price {
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    .car-card-profile .car-price {
        font-size: 1.3rem;
    }
}

.car-card-profile .features {
    padding: 0.15rem;
    border-radius: 8px;
    margin-top: 0.3rem;
    background-color: rgba(255, 255, 255, 0.03);
    width: 100%;
    overflow: hidden; /* Prevent overflow */
}

/* New feature strip layout */
.car-card-profile .feature-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.car-card-profile .feature-item {
    display: flex;
    align-items: center;
    padding: 0.2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

@media (min-width: 992px) {
    .car-card-profile .feature-item {
        font-size: 0.95rem;
        padding: 0.25rem;
    }
}

@media (min-width: 1200px) {
    .car-card-profile .feature-item {
        font-size: 1.05rem;
        padding: 0.3rem;
    }
}

.car-card-profile .feature-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 0.25rem;
}

@media (min-width: 992px) {
    .car-card-profile .feature-divider {
        height: 24px;
        margin: 0 0.3rem;
    }
}

@media (min-width: 1200px) {
    .car-card-profile .feature-divider {
        height: 28px;
        margin: 0 0.35rem;
    }
}

.car-card-profile .feature-box {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    padding: 0.4rem;
    max-width: 90px; /* Reduced for 2 cards per row on mobile */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.2s ease, background-color 0.2s ease;
    justify-content: center; /* Center content for better appearance */
    min-width: 0; /* Allow shrinking below content size */
}

.car-card-profile .feature-box:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

@media (min-width: 576px) {
    .car-card-profile .feature-box {
        max-width: 100px;
    }
}

@media (min-width: 768px) {
    .car-card-profile .feature-box {
        max-width: 110px; /* For 3 cards per row */
    }
}

@media (max-width: 768px) {
    /* Mobile styles for new feature strip */
    .car-card-profile .feature-strip {
        justify-content: space-between;
        padding: 0 0.1rem;
    }

    .car-card-profile .feature-item {
        padding: 0.1rem;
        font-size: 0.7rem;
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .car-card-profile .feature-divider {
        margin: 0 0.05rem; /* Reduced by 80% from 0.25rem */
        height: 16px;
        flex-shrink: 0;
    }

    .car-card-profile .feature-icon {
        font-size: 0.8rem;
        margin-right: 0.05rem;
    }

    .car-card-profile .feature-text {
        font-size: 0.65rem;
        min-width: 0;
    }

    /* Adjust features container */
    .car-card-profile .features {
        padding: 0.1rem 0;
    }

    /* Hide county display on mobile */
    .county-display {
        display: none;
    }
}

@media (min-width: 992px) {
    .car-card-profile .feature-box {
        max-width: 90px; /* Reduced for 4 cards per row */
    }
}

@media (min-width: 1200px) {
    .car-card-profile .feature-box {
        max-width: 120px; /* More space on extra large screens */
    }
}

.car-card-profile .feature-icon {
    color: #fd5631;
    font-size: 0.95rem;
    margin-right: 0.1rem;
}

@media (min-width: 992px) {
    .car-card-profile .feature-icon {
        font-size: 1.1rem;
        margin-right: 0.15rem;
    }
}

@media (min-width: 1200px) {
    .car-card-profile .feature-icon {
        font-size: 1.2rem;
        margin-right: 0.2rem;
    }
}

.car-card-profile .feature-text {
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (min-width: 992px) {
    .car-card-profile .feature-text {
        font-size: 0.9rem;
    }
}

@media (min-width: 1200px) {
    .car-card-profile .feature-text {
        font-size: 1rem;
    }
}

.car-card-profile .vertical-line {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 0.25rem;
    flex-shrink: 0; /* Prevent the line from shrinking */
}

.car-card-profile .row.g-0 {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0; /* Remove gap between elements */
    flex-wrap: nowrap;
    padding: 0.15rem 0;
    width: 100%; /* Ensure full width */
}

/* Specific style for the sidebar card (the first card in the layout) */
.col-md-3 .car-card-profile .card-body {
    padding: 1rem;
}

/* Responsive adjustments for all cards */
@media (max-width: 992px) {
    .car-card-profile .card-body {
        padding: 1rem 1.5rem;
    }

    .col-md-3 .car-card-profile .card-body {
        padding: 0.85rem;
    }
}

@media (max-width: 768px) {
    .car-card-profile .card-body {
        padding: 1rem 1.25rem;
    }

    .col-md-3 .car-card-profile .card-body {
        padding: 1rem;
    }

    .car-card-profile .card-title {
        font-size: 1.1rem;
    }

    .car-card-profile .car-price {
        font-size: 1.2rem;
    }

    .car-card-profile .feature-box {
        font-size: 0.9rem;
    }

    /* Reduce spacing between year and car make */
    .car-card-profile .car-year {
        margin-right: 0.15rem;
        padding: 0.1rem 0.3rem;
    }

    /* Reduce gap in the title container */
    .car-card-profile .d-flex.align-items-center {
        gap: 0.1rem;
    }

    /* Reduce spacing for card trim */
    .car-card-profile .card-trim {
        margin-left: 0.1rem;
    }
}

@media (max-width: 576px) {
    /* Keep the two cards per row layout on extra small screens */
    #sellers-listings-content .row > div,
    #sellers-listings-content .seller-listings-row > div {
        width: 50%;
        padding-left: 1px !important; /* Minimal left padding to maximize space */
        padding-right: 1px !important; /* Minimal right padding to maximize space */
    }

    /* Ensure county is hidden on very small screens too */
    .county-display {
        display: none;
    }

    /* Even more aggressive gap reduction for very small screens */
    .sticky-seller-card {
        margin-top: -20px;
    }

    /* Adjust sticky position for smaller screens */
    .sticky-seller-card.is-sticky {
        top: 89px; /* Fine-tuned position from 87px to 89px */
        left: 20px !important; /* Push 20px from the left edge to prevent cropping */
        right: -20px !important; /* Adjust right edge to maintain full width */
        width: calc(100vw - 20px) !important; /* Adjust width to account for left offset */
        max-width: calc(100vw - 20px) !important; /* Ensure no max-width constraints */
        margin-left: -15px !important; /* Compensate for container padding */
        margin-right: -15px !important; /* Compensate for container padding */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important; /* Add shadow to bottom to enhance the gap */
    }

    /* Maintain the gap between sticky card and tabs container on very small screens */
    .sticky-seller-card.is-sticky + .col-md-9 {
        margin-top: 13.2px !important; /* Increased by 10% + 20% from base gap of 10px */
        position: relative;
    }

    /* Add a subtle visual separator in the gap for very small screens */
    .sticky-seller-card.is-sticky + .col-md-9::before {
        content: '';
        position: absolute;
        top: -13.2px;
        left: 0;
        right: 0;
        height: 13.2px;
        background-color: rgba(31, 27, 44, 0.8); /* Slightly lighter than the main background */
        z-index: 5;
    }

    /* Extra enforcement of sharp corners for very small screens */
    .sticky-seller-card.is-sticky,
    .sticky-seller-card.is-sticky *,
    .sticky-seller-card.is-sticky .seller-profile-sidebar,
    .sticky-seller-card.is-sticky .seller-profile-sidebar *,
    .sticky-seller-card.is-sticky .seller-profile-sidebar .seller-image-wrapper,
    .sticky-seller-card.is-sticky .seller-profile-sidebar .card-body,
    .sticky-seller-card.is-sticky .seller-profile-sidebar .card-body * {
        border-radius: 0 !important;
    }

    /* Further optimize seller stats for very small screens */
    .sticky-seller-card .seller-stats {
        padding: 0.1rem 0.3rem; /* Reduced vertical padding by 50% */
        margin-top: 0.125rem; /* Reduced margin by 50% */
    }

    .sticky-seller-card .stat-item {
        padding: 0.075rem 0.1rem; /* Reduced vertical padding by 50% */
        gap: 0.2rem;
    }

    .sticky-seller-card .stat-item-small {
        flex: 1;
    }

    .sticky-seller-card .stat-item-large {
        flex: 4;
    }

    .sticky-seller-card .stat-divider {
        height: 16px;
        margin: 0 0.05rem;
    }

    /* Reduce seller badge size even more on very small screens */
    .seller-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.2rem !important; /* Minimal padding */
        top: 0 !important; /* Ensure it's at the top edge */
        left: 0 !important; /* Ensure it's at the left edge */
        border-radius: 0 0 8px 0; /* Only round the bottom-right corner */
        margin: 0 !important; /* No margin */
        border-left: 0 !important; /* Ensure no border on the left */
        border-top: 0 !important; /* Ensure no border on the top */
    }

    /* Icon removed from seller badge */

    /* Ensure the badge is properly positioned in sticky state */
    .sticky-seller-card.is-sticky .seller-badge {
        top: 0 !important; /* Override any other top value */
        left: 0 !important; /* Keep at left edge of the card (which is now 20px from screen edge) */
        border-radius: 0 !important; /* No border radius in sticky state */
        padding: 0.1rem 0.2rem !important; /* Minimal padding */
        margin: 0 !important; /* No margin */
        border-left: 0 !important; /* Ensure no border on the left */
        border-top: 0 !important; /* Ensure no border on the top */
    }

    /* Adjust image wrapper to 25% width and left-align profile image */
    .sticky-seller-card .seller-image-wrapper {
        min-height: 100px !important; /* Reduced by ~29% */
        width: 25% !important; /* Keep at 25% as requested */
        flex: 0 0 25% !important; /* Keep at 25% as requested */
        justify-content: flex-start !important; /* Align to the left */
        padding-left: 5px !important; /* Add some padding on the left (smaller for very small screens) */
        align-items: center !important; /* Center vertically */
    }

    .sticky-seller-card .seller-profile-img {
        width: 90px !important; /* Slightly reduced to prevent overflow on very small screens */
        height: 90px !important; /* Slightly reduced to prevent overflow on very small screens */
        border-width: 3px !important; /* Slightly reduced border for smaller image */
        margin: 0 !important; /* Remove auto margin to align with left */
    }

    /* Adjust card body to 75% width for very small screens */
    .sticky-seller-card .card-body {
        padding: 0.2rem 0.4rem !important; /* Reduced vertical padding by 50% */
        width: 75% !important; /* Keep at 75% as requested */
        flex: 0 0 75% !important; /* Keep at 75% as requested */
    }
}

    .sticky-seller-card .feature-icon {
        font-size: 0.8rem;
        min-width: 12px;
    }

    .sticky-seller-card .stat-value {
        font-size: 0.7rem;
    }

    .sticky-seller-card .stat-item-small .stat-value {
        max-width: 20px;
    }

    .sticky-seller-card .stat-item-large .stat-value {
        max-width: 100px;
    }

    /* Small screen contact info styles */
    .sticky-seller-card .seller-contact-info {
        padding: 0.05rem 0.3rem; /* Reduced vertical padding by 50% */
        margin-top: 0.025rem; /* Reduced margin by 50% */
    }

    .sticky-seller-card .contact-item-half:first-child {
        flex: 3;
    }

    .sticky-seller-card .contact-item-half:last-child {
        flex: 9;
    }

    /* Small screen bio styles */
    .sticky-seller-card .seller-bio {
        padding: 0.1rem 0; /* Reduced vertical padding by 50% */
        margin-top: 0.1rem; /* Reduced margin by 50% */
        margin-bottom: 0.15rem; /* Reduced margin by 50% */
        background: transparent; /* Keep transparent background */
        width: 100%; /* Keep full width */
    }

    /* Override any card body padding for bio section */
    .sticky-seller-card .card-body .seller-bio {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        width: calc(100% + 1rem);
    }

    .sticky-seller-card .seller-bio-row {
        gap: 0.3rem;
        width: 100%; /* Ensure full width */
        padding: 0 0.5rem; /* Add some horizontal padding to the row itself */
    }

    .sticky-seller-card .bio-icon {
        font-size: 0.88rem; /* Increased font size by 10% */
    }

    .sticky-seller-card .bio-content {
        max-height: 3.1em; /* Increased to accommodate larger font size */
    }

    .sticky-seller-card .bio-label {
        font-size: 0.77rem; /* Increased font size by 10% */
    }

    .sticky-seller-card .bio-text {
        font-size: 0.715rem; /* Increased font size by 10% */
    }

    .sticky-seller-card .contact-item {
        padding: 0.15rem 0.1rem;
        gap: 0.2rem;
    }

    .sticky-seller-card .contact-divider {
        height: 16px;
        margin: 0 0.05rem;
    }

    .sticky-seller-card .contact-value {
        font-size: 0.7rem;
        max-width: 80px;
        color: #fff;
    }

    /* Allow email to display fully on small screens */
    .sticky-seller-card #sellerEmail {
        max-width: none;
        font-size: 0.65rem;
    }

    .sticky-seller-card .contact-item .feature-icon {
        color: #fd5631;
        font-size: 0.8rem;
    }

/* Adjust the car card layout for very small screens */
@media (max-width: 575.98px) {
    .car-card-profile {
        margin-bottom: 8px;
        border-radius: 10px; /* Reduce border radius by 25% on small screens */
    }

    /* Adjust the card image wrapper */
    .car-card-profile .card-img-wrapper {
        border-radius: 10px 10px 0 0;
    }

    /* Further reduce padding for very small screens */
    .car-card-profile .card-body {
        padding: 0.4rem;
        gap: 0.25rem;
    }

    .col-md-3 .car-card-profile .card-body {
        padding: 0.4rem;
    }

    /* Further reduce font sizes */
    .car-card-profile .card-title {
        font-size: 0.75rem;
    }

    .car-card-profile .card-trim {
        font-size: 0.7rem;
        margin-left: 0.05rem;
    }

    .car-card-profile .car-price {
        font-size: 0.85rem;
    }

    /* Adjust the feature items for very small screens */
    .car-card-profile .feature-item {
        font-size: 0.5rem;
        padding: 0.05rem;
        min-width: 0;
        flex: 1;
        justify-content: center;
    }

    .car-card-profile .feature-icon {
        font-size: 0.6rem;
        margin-right: 0.05rem; /* Reduce space between icon and text */
    }

    .car-card-profile .feature-text {
        font-size: 0.5rem;
        min-width: 0;
    }

    .car-card-profile .feature-divider {
        height: 10px;
        margin: 0 0.02rem; /* Further reduced spacing */
    }

    /* Ensure feature strip is compact */
    .car-card-profile .feature-strip {
        padding: 0;
        justify-content: space-around;
        width: 100%;
    }

    /* Adjust the features section */
    .car-card-profile .features {
        padding: 0.05rem 0;
        margin-top: 0.1rem;
        text-align: center; /* Center the features */
        width: 100%;
        overflow: hidden; /* Prevent overflow */
    }

    /* Adjust the vertical line height */
    .car-card-profile .vertical-line {
        height: 10px;
        margin: 0 0.02rem; /* Further reduced by 80% */
        width: 1px;
    }

    /* Make the view button even smaller but still only visible on hover */
    .hover-view-btn {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.8rem !important;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) !important;
    }

    .card-img-wrapper:hover .hover-view-btn {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) !important;
    }

    /* Adjust the car specs */
    .car-card-profile .car-specs {
        font-size: 0.6rem;
        gap: 0.15rem;
    }

    /* Adjust the car year */
    .car-card-profile .car-year {
        font-size: 0.65rem;
        padding: 0.05rem 0.2rem;
        margin-right: 0.1rem;
    }

    /* Further reduce gap in the title container */
    .car-card-profile .d-flex.align-items-center {
        gap: 0.05rem;
    }
}

/* Seller Profile Form Card Styles */
.seller-profile-card {
    background: linear-gradient(145deg, #2a2837 0%, #1f1b2c 100%);
    border-radius: 7px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0.5rem 0.75rem;
}

.seller-profile-card .card-body {
    padding: 2rem;
}

/* Mobile-specific styles for seller profile card */
@media (max-width: 768px) {
    .seller-profile-card .card-body {
        padding: 1.5rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .seller-profile-card .card-body {
        padding: 1.2rem 0.01rem !important; /* Reduce left/right padding by 99% */
    }

    /* Target the tab content container to remove padding for extra small screens */
    .tab-content,
    #sellerProfileTabContent {
        padding-left: 0 !important; /* Remove left padding completely */
        padding-right: 0 !important; /* Remove right padding completely */
    }

    /* Target the listings content for extra small screens */
    #sellers-listings-content,
    #sellers-reviews-content {
        padding: 0.1rem 0 !important; /* Remove left/right padding completely */
    }

    /* Specific tab pane padding for seller profile on extra small screens */
    #sellers-listings.tab-pane,
    #sellers-reviews.tab-pane {
        padding: 0.1rem 0 !important; /* Remove left/right padding completely */
    }
}

/* Navigation Tabs Styles */
.nav-tabs-custom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    display: flex;
    justify-content: center; /* Center the tabs */
}

/* Reduce top padding of tabs container by 99% for mobile */
@media (max-width: 768px) {
    .nav-tabs-custom {
        margin-bottom: 0.02rem; /* Reduced by 99% from 2rem */
        justify-content: center; /* Ensure tabs are centered on mobile */
        width: 100%; /* Full width container */
    }
}

/* Maintain the same reduction for extra small screens */
@media (max-width: 576px) {
    .nav-tabs-custom {
        margin-bottom: 0.02rem; /* Reduced by 99% from 2rem */
        justify-content: center; /* Ensure tabs are centered on extra small screens */
        width: 100%; /* Full width container */
    }
}

.nav-tabs-custom .nav-link {
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 0.75rem 1.5rem;
    margin-right: 1rem;
    background: transparent;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-tabs-custom .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-tabs-custom .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: none;
}

.nav-tabs-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #fd5631;
    border-radius: 2px;
}

/* Ensure seller profile tabs are centered on all screen sizes */
#sellerProfileTabs {
    justify-content: center !important; /* Center the tabs */
    width: 100%; /* Full width container */
}

/* Table Styles for Comparison Tabs */
.table-responsive {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.table-hover {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.9);
    border-collapse: separate;
    border-spacing: 0;
}

.table-hover thead {
    background: rgba(255, 255, 255, 0.08);
}

.table-hover th {
    padding: 1rem;
    font-weight: 600;
    color: #fd5631;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.table-hover td {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.table-hover tbody tr {
    transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.table-hover .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 4px;
}

/* Button Styles */
#backToListingBtn,
#refreshComparisonBtn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#backToListingBtn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

#backToListingBtn:hover {
    background: rgba(255, 255, 255, 0.2);
}

#refreshComparisonBtn {
    background: #fd5631;
    border: none;
    color: #fff;
}

#refreshComparisonBtn:hover {
    background: #ff6b4a;
    transform: translateY(-2px);
}

/* Alert Styles */
.alert-info {
    background: rgba(13, 202, 240, 0.1);
    border: 1px solid rgba(13, 202, 240, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Tab-specific alert styling */
.tab-pane .alert {
    position: sticky;
    top: 0;
    z-index: 5;
    border-left: 4px solid #0dcaf0;
    background: rgba(13, 202, 240, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: 6px;
    text-align: left;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.tab-pane .alert strong {
    color: #fff;
    margin-right: 0.5rem;
}

.tab-pane .alert i {
    color: #0dcaf0;
    font-size: 1.1rem;
    margin-right: 0.5rem;
    vertical-align: -1px;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Loading Spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
    color: #fd5631;
    font-size: 1.5rem;
    margin: 2rem 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tab Content Container */
.tab-pane {
    padding: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .compare-form-card .card-body {
        padding: 1.5rem;
    }

    /* Add gap between seller sidebar and tabs container */
    .col-md-9 {
        margin-top: 20px !important; /* Add a significant gap */
        position: relative;
    }

    /* Ensure the seller profile card in the tabs container has no visible top border */
    .col-md-9 .seller-profile-card {
        border-top: none !important;
    }

    /* Add spacing in the gap without visible lines */
    .col-md-9::before {
        content: '';
        position: absolute;
        top: -20px; /* Cover the entire gap */
        left: 0;
        right: 0;
        height: 20px; /* Match the gap height */
        background-color: transparent; /* Make it transparent */
        border: none; /* Remove all borders */
        z-index: 5;
    }

    /* Add styling to the seller profile card to make the gap more visible */
    .seller-profile-card {
        margin-bottom: 5px !important;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2) !important; /* Softer shadow */
        border-bottom: none !important; /* Ensure no border at the bottom */
    }

    .nav-tabs-custom .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Reduce tab pane padding on mobile */
    .tab-pane {
        padding: 0.005rem 0.01rem; /* Reduce top padding by 99% from 0.5rem */
    }

    #backToListingBtn,
    #refreshComparisonBtn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    .table-hover th,
    .table-hover td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .compare-form-card .card-body {
        padding: 1rem;
    }

    /* Further reduce tab pane padding on extra small screens */
    .tab-pane {
        padding: 0.005rem 0.01rem !important; /* Maintain 99% reduction */
    }

    /* Target the tab content container to remove padding */
    .tab-content,
    #sellerProfileTabContent {
        padding-left: 0.01rem !important; /* Reduce left padding by 99% */
        padding-right: 0.01rem !important; /* Reduce right padding by 99% */
        padding-top: 0.005rem !important; /* Reduce top padding by 99% */
    }

    /* Target the card body to remove padding */
    .seller-profile-card .card-body {
        padding-left: 0.01rem !important; /* Reduce left padding by 99% */
        padding-right: 0.01rem !important; /* Reduce right padding by 99% */
        padding-top: 0.005rem !important; /* Reduce top padding by 99% */
    }

    /* Maintain gap between seller sidebar and tabs container on very small screens */
    .col-md-9 {
        margin-top: 22px !important; /* Slightly larger gap for very small screens */
        position: relative;
    }

    /* Ensure the seller profile card in the tabs container has no visible top border */
    .col-md-9 .seller-profile-card {
        border-top: none !important;
    }

    /* Add spacing in the gap for very small screens without visible lines */
    .col-md-9::before {
        content: '';
        position: absolute;
        top: -22px; /* Cover the entire gap */
        left: 0;
        right: 0;
        height: 22px; /* Match the gap height */
        background-color: transparent; /* Make it transparent */
        border: none; /* Remove all borders */
        z-index: 5;
    }

    /* Enhance the visual separation with shadow and margin */
    .seller-profile-card {
        margin-bottom: 6px !important;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2) !important; /* Softer shadow */
        border-bottom: none !important; /* Ensure no border at the bottom */
    }

    /* Make tabs display in a row on extra small screens */
    .nav-tabs-custom {
        display: flex;
        flex-wrap: nowrap !important; /* Prevent wrapping */
        width: 100%;
        overflow-x: visible; /* Allow tabs to be fully visible */
        justify-content: center !important; /* Center the tabs */
    }

    .nav-tabs-custom .nav-item {
        flex: 0 0 auto; /* Don't grow or shrink */
        width: auto; /* Let content determine width */
        margin-right: 0.5rem; /* Add some spacing between tabs */
    }

    .nav-tabs-custom .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap; /* Prevent text wrapping */
        width: auto; /* Let content determine width */
        margin-right: 0.25rem; /* Reduce right margin */
    }

    /* Ensure the tabs are centered */
    #sellerProfileTabs {
        justify-content: center !important; /* Center the tabs */
    }

    #sellers-reviews-tab {
        margin-left: 0 !important; /* Remove any left margin */
    }

    /* Make tab icons smaller on extra small screens */
    .nav-tabs-custom .nav-link i {
        font-size: 0.8rem; /* Smaller icon */
        margin-right: 0.25rem !important; /* Reduce right margin */
    }

    .table-responsive {
        font-size: 0.8rem;
    }

    .table-hover th,
    .table-hover td {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

/* Additional seller profile-specific elements */
#sellers-listings-content,
#sellers-reviews-content {
    min-height: 200px;
}

/* Specific padding for seller listings content */
@media (max-width: 768px) {
    #sellers-listings-content,
    #sellers-reviews-content {
        padding: 0.1rem 0.01rem; /* Reduce left/right padding by 99% */
    }

    /* Specific tab pane padding for seller profile */
    #sellers-listings.tab-pane,
    #sellers-reviews.tab-pane {
        padding: 0.005rem 0.01rem; /* Reduce top padding by 99% from 0.5rem */
    }

    /* Target the tab content container to remove padding */
    .tab-content,
    #sellerProfileTabContent {
        padding-left: 0.01rem !important; /* Reduce left padding by 99% */
        padding-right: 0.01rem !important; /* Reduce right padding by 99% */
        padding-top: 0.005rem !important; /* Reduce top padding by 99% */
    }

    /* Target the card body to remove padding */
    .seller-profile-card .card-body {
        padding-left: 0.01rem !important; /* Reduce left padding by 99% */
        padding-right: 0.01rem !important; /* Reduce right padding by 99% */
        padding-top: 0.005rem !important; /* Reduce top padding by 99% */
    }
}

.text-center {
    text-align: center !important;
}

/* See All Reviews Section Styles */

/* Review text truncation styles */
.review-text-container {
    position: relative;
    overflow: hidden;
    height: 1.6em; /* Height for one line */
    margin-bottom: 0.25rem; /* Adjusted margin for better alignment */
    padding: 0.25rem 0; /* Added padding for better text alignment */
}

.review-text {
    margin: 0;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Show only 1 line */
    line-clamp: 1; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    word-break: break-word;
    transition: all 0.3s ease;
}

.review-text.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset; /* Standard property for compatibility */
    height: auto;
    max-height: 300px;
    overflow-y: auto;
}

.review-text-container.expanded {
    height: auto;
    max-height: 300px;
    margin-bottom: 0.5rem;
}

.read-more-btn {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.25rem 0; /* Added vertical margin for better spacing */
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0; /* Reset position to normal */
    line-height: 1;
    min-width: 60px; /* Fixed width for consistency */
    max-width: 60px; /* Limit width */
    height: 28px; /* Increased height to prevent cropping */
    z-index: 5; /* Ensure button is above other elements */
}

.read-more-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.read-more-btn:active {
    transform: translateY(0);
}

.read-more-btn .bi {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    margin-left: 0.2rem;
    position: relative;
    top: 0; /* Reset vertical alignment */
}

.read-more-btn.expanded {
    background: rgba(255, 255, 255, 0.1);
    min-width: 60px; /* Keep consistent width */
    max-width: 60px;
    height: 28px; /* Keep consistent height */
    margin: 0.25rem 0; /* Match normal button margin */
    top: 0; /* Reset position to normal */
}

.read-more-btn.expanded .bi-chevron-down {
    transform: rotate(180deg);
}

/* Ensure text and icon are properly aligned */
.read-more-btn .read-more-text {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}
/* Improved reaction buttons */
.reaction-btn {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 0.5rem;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.reaction-btn:hover {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Like button specific styles */
.like-btn.active {
    background-color: rgba(25, 135, 84, 0.2);
    border-color: rgba(25, 135, 84, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.like-btn.active i {
    color: #198754;
}

/* Dislike button specific styles */
.dislike-btn.active {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.dislike-btn.active i {
    color: #dc3545;
}

/* Comment button specific styles */
.comment-btn.active {
    background-color: rgba(13, 110, 253, 0.2);
    border-color: rgba(13, 110, 253, 0.5);
    color: rgba(255, 255, 255, 0.9);
}

.comment-btn.active i {
    color: #0d6efd;
}

/* Improved date display */
.review-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.review-date .date-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    display: inline-block;
}

/* Responsive date adjustments */
@media (max-width: 991.98px) {
    .review-date {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .review-date .date-text {
        max-width: 100px;
    }
}

@media (max-width: 767.98px) {
    .review-date {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
        max-width: 100%;
        width: auto;
    }

    .review-date .date-text {
        max-width: 150px; /* More space on mobile when stacked */
    }

    .review-date-container {
        width: 100%;
        margin-top: 0.5rem;
    }

    .review-header {
        flex-direction: column;
    }

    .review-item {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .review-date {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }

    .review-date .date-text {
        max-width: 120px;
    }
}

/* Add nice borders to tables in small screens */
@media (max-width: 767px) {
    .table-responsive {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Hover button styles */
.card-img-wrapper .hover-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(253, 86, 49, 0.9);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-img-wrapper .hover-view-btn i {
    font-size: 0.95rem;
}

.card-img-wrapper:hover .hover-view-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-img-wrapper .hover-view-btn:hover {
    background: rgba(253, 86, 49, 1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-img-wrapper:hover::after {
    opacity: 1;
}

/* Responsive adjustments for the cards */
@media (max-width: 992px) {
    .row-cols-lg-3 > * {
        flex: 0 0 auto;
        width: 50%;
    }

    .card-img-wrapper {
        aspect-ratio: 3/2;
    }

    .car-card-profile .card-body {
        padding: 0.85rem;
    }
}

@media (max-width: 768px) {
    /* Modified to show two cards per row on mobile */
    .row-cols-md-2 > * {
        flex: 0 0 auto;
        width: 50%; /* Changed from 100% to 50% to show two cards per row */
    }

    /* Specific fix for seller's listings cards */
    #sellers-listings-content .row > div,
    #sellers-listings-content .seller-listings-row > div {
        width: 50%; /* Ensure two cards per row in the seller's listings tab */
        padding-left: 2px; /* Reduce left padding to maximize space */
        padding-right: 2px; /* Reduce right padding to maximize space */
    }

    /* Adjust the car card layout for mobile */
    .car-card-profile {
        margin-bottom: 12px;
    }

    /* Adjust the card body padding - reduced by 80% */
    .car-card-profile .card-body {
        padding: 0.1rem;
        gap: 0.2rem;
    }

    /* Reduce the card title font size */
    .car-card-profile .card-title {
        font-size: 0.8rem;
    }

    /* Reduce the card trim font size */
    .car-card-profile .card-trim {
        font-size: 0.8rem;
    }

    /* Adjust the car price */
    .car-card-profile .car-price {
        font-size: 0.9rem;
    }

    /* Adjust the feature box */
    .car-card-profile .feature-box {
        font-size: 0.7rem;
        padding: 0.3rem;
    }

    /* Make the view button visible only on hover, just like on desktop */
    .hover-view-btn {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) !important;
        font-size: 0.8rem !important;
        padding: 0.4rem 1rem !important;
    }

    .card-img-wrapper:hover .hover-view-btn {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) !important;
    }

    /* Make the overlay visible only on hover */
    .card-img-wrapper::after {
        opacity: 0;
    }

    .card-img-wrapper:hover::after {
        opacity: 0.5;
    }

    /* Adjust the features section */
    .car-card-profile .features {
        padding: 0.1rem;
        margin-top: 0.2rem;
    }

    /* Adjust the feature icons */
    .car-card-profile .feature-icon {
        font-size: 0.8rem;
    }

    /* Adjust the feature text */
    .car-card-profile .feature-text {
        font-size: 0.65rem;
    }

    /* Adjust the vertical line */
    .car-card-profile .vertical-line {
        height: 16px;
    }
}

/* Seller Profile Card Body Styles */
#sellers-listings-content .car-card-profile .card-body,
#sellers-reviews-content .car-card-profile .card-body {
    padding: 0.5rem 0.75rem !important;
    text-align: left;
}

/* Specific styles for seller car cards */
.seller-car-card {
    transition: all 0.3s ease;
    padding-left: 6px;
    padding-right: 6px;
}

/* Reduce padding for seller car cards on mobile */
@media (max-width: 768px) {
    .seller-car-card {
        padding-left: 2px;
        padding-right: 2px;
    }
}

/* Minimal padding for seller car cards on extra small screens */
@media (max-width: 576px) {
    .seller-car-card {
        padding-left: 1px !important;
        padding-right: 1px !important;
    }
}

/* Additional mobile styles */

/* Seller listings row specific styles */
.seller-listings-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -6px;
    margin-left: -6px;
    width: 100%;
}

@media (max-width: 768px) {
    .seller-listings-row {
        margin-right: -3px;
        margin-left: -3px;
    }
}

/* Responsive adjustments for seller profile cards */
@media (max-width: 992px) {
    #sellers-listings-content .car-card-profile .card-body,
    #sellers-reviews-content .car-card-profile .card-body {
        padding: 0.5rem 0.75rem !important;
    }
}

@media (max-width: 768px) {
    #sellers-listings-content .car-card-profile .card-body,
    #sellers-reviews-content .car-card-profile .card-body {
        padding: 0.1rem !important;
    }

    /* Adjust spacing between cards */
    #sellers-listings-content .mb-4 {
        margin-bottom: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    #sellers-listings-content .car-card-profile .card-body,
    #sellers-reviews-content .car-card-profile .card-body {
        padding: 0.1rem !important;
    }

    /* Further reduce spacing between cards on very small screens */
    #sellers-listings-content .mb-4 {
        margin-bottom: 0.4rem !important;
    }

    /* Adjust car specs display for better fit */
    .car-card-profile .car-specs {
        font-size: 0.6rem;
        gap: 0.15rem;
    }
}

.seller-profile-sidebar .card-body {
    padding: 1.25rem 0.75rem;
}

/* Seller profile image hover effect removed */
