/* COMPLETE FIXED VERSION - MOBILE HEADER ON DESKTOP ISSUE RESOLVED */
/* Light Orange Theme - Mobile First Approach with Forced Desktop Overrides */

/* ==============================================
   RESET AND BASE STYLES
   ============================================== */

.lorry-archive-wrapper {
    background-color: #f8f9fa;
    min-height: 100vh;
    position: relative;
    margin-left: calc(-48vw + 50%);
    margin-right: calc(-48vw + 50%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==============================================
   ARCHIVE HEADER
   ============================================== */

.archive-header {
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    padding: 40px 0 30px;
    margin-bottom: 30px;
}

.archive-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
    color: #212529;
    text-align: center;
    padding-top: 35px
}

.archive-description {
    font-size: 1.125rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.archive-description.seo-description {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left;
}

.archive-stats {
    font-size: 14px;
    opacity: 0.9;
    color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.filter-indicator {
    color: #007cba;
    font-weight: 500;
}

.results-count {
    font-weight: 600;
    color: #495057;
}

/* ==============================================
   MOBILE-FIRST LAYOUT (Default: 0-767px)
   ============================================== */

.archive-layout {
    display: block;
    position: relative;
    width: 100%;
}

/* ==============================================
   MOBILE FILTER BUTTON (Mobile Only)
   ============================================== */

/* .mobile-filter-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}
*/

.mobile-filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 152, 0, 0.5);
    background: #f57c00;
}

.filter-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 4px;
}

/* Override WoodMart theme button styles, Original style */
.mobile-filter-button {
    position: fixed !important;
    bottom: 60px !important;
    background: #767676 !important;
    color: white !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    z-index: 99 !important;
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    float: none !important;
    line-height: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    vertical-align: baseline !important;
    white-space: nowrap !important;
}

button.mobile-filter-button#mobileFilterButton:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(255, 152, 0, 0.5) !important;
    background: #f57c00 !important;
    color: white !important;
}


/* ==============================================
   MOBILE OVERLAY (Mobile Only)
   ============================================== */

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ==============================================
   SIDEBAR - MOBILE POSITIONING (Default)
   ============================================== */

.archive-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 90%;
    max-width: 350px;
    height: 100vh;
    height: 100dvh;
    background: white;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.archive-sidebar.show {
    left: 0;
}

/* ==============================================
   FILTER CONTAINER AND STYLING
   ============================================== */

.filters-container {
    padding: 20px;
    padding-bottom: 40px;
    min-height: calc(100vh - 40px);
    box-sizing: border-box;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.filters-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clear-filters {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background: #dc3545;
    color: white;
}

.mobile-close-filters {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6c757d;
    padding: 4px;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 18px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    font-size: 13px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.1s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-inputs input {
    flex: 1;
}

.range-separator {
    color: #6c757d;
    font-weight: 500;
    font-size: 12px;
    white-space: nowrap;
}

.apply-filters {
    width: 100%;
    background: #ff9800 !important;
    color: white !important;
    border: none;
    padding: 14px 20px;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.apply-filters:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    background: #f57c00;
}

/* ==============================================
   MAIN CONTENT AREA
   ============================================== */

/*.archive-main {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    width: 100%;
}
*/

/* Lorry for Sale Box */
.lorry-for-sale-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.lorry-for-sale-box .title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    margin: 0;
    flex: 1;
    text-align: left;
}

/* ==============================================
   TOOLTIP STYLES FOR SUBMIT LORRY BUTTON
   ============================================== */

/* Base tooltip styling */
.submit-lorry-btn {
    position: relative;
    background-color: #dc3545 !important;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 2px solid #dc3545;
    border-radius: 0;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    margin-left: 20px;
    align-self: center;
    cursor: pointer;
}

.submit-lorry-btn:hover {
    background-color: white !important;
    color: #dc3545 !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Tooltip content */
.submit-lorry-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    text-transform: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

/* Tooltip arrow */
.submit-lorry-btn::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2c3e50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Show tooltip on hover */
.submit-lorry-btn:hover::before,
.submit-lorry-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Enhanced hover animation */
.submit-lorry-btn:hover::before {
    bottom: 130%;
}

.submit-lorry-btn:hover::after {
    bottom: 120%;
}

/* Mobile responsiveness for tooltip */
@media (max-width: 767px) {
    .submit-lorry-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    /* Adjust tooltip positioning for mobile */
    .submit-lorry-btn::before {
        bottom: 115%;
        font-size: 11px;
        padding: 6px 10px;
        max-width: 200px;
        white-space: normal;
        text-align: center;
    }
    
    .submit-lorry-btn::after {
        bottom: 105%;
    }
    
    .submit-lorry-btn:hover::before {
        bottom: 120%;
    }
    
    .submit-lorry-btn:hover::after {
        bottom: 110%;
    }
}

/* Accessibility: Show tooltip on focus for keyboard users */
.submit-lorry-btn:focus::before,
.submit-lorry-btn:focus::after {
    opacity: 1;
    visibility: visible;
}

.submit-lorry-btn:focus::before {
    bottom: 130%;
}

.submit-lorry-btn:focus::after {
    bottom: 120%;
}

/* Ensure tooltip doesn't interfere with layout */
.lorry-for-sale-box {
    overflow: visible;
    position: relative;
    z-index: 1;
}

/* Alternative tooltip style (comment out the above and uncomment this for a different look) */
/*
.submit-lorry-btn::before {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.submit-lorry-btn::after {
    border-top-color: #28a745;
}
*/

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .submit-lorry-btn::before,
    .submit-lorry-btn::after {
        transition: none;
    }
    
    .submit-lorry-btn:hover::before,
    .submit-lorry-btn:focus::before {
        bottom: 125%;
    }
    
    .submit-lorry-btn:hover::after,
    .submit-lorry-btn:focus::after {
        bottom: 115%;
    }
}

/* Listing Header */
.listing-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.listing-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.view-options {
    display: flex;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 3px;
    align-self: flex-start;
}

.view-toggle {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.view-toggle.active {
    background: white;
    color: #ff9800;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sort-form select {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    min-width: 160px;
    -webkit-appearance: none;
    appearance: none;
}

.sort-form select:focus {
    border-color: #ff9800;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

/* ==============================================
   VEHICLE GRID AND CARDS
   ============================================== */

.vehicles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.vehicle-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.vehicle-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.vehicle-card.sold {
    opacity: 0.85;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.image-link {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}

.no-image-placeholder i {
    font-size: 30px;
    margin-bottom: 8px;
}

/* Status badges positioning */
.status-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    z-index: 5;
}

/* Move down only when campaign badge is present */
.vehicle-card.has-campaign .status-badges {
    top: 42px; /* Below the campaign badge */
}

.sold-badge,
.condition-badge {
    position: static !important;
    padding: 4px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.sold-badge {
    background: #dc3545;
    color: white;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 6 !important;
    margin: 0;
}

.condition-badge {
    background: #ff9800;
    color: white;
}

/* Price & WhatsApp positioning - Top right area for MOBILE */
.card-top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    z-index: 10;
    max-width: 140px;
}

.card-top-price {
    background: rgba(255, 152, 0, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 80px;
    backdrop-filter: blur(5px);
}

.card-top-whatsapp {
    background: #25d366;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.card-top-whatsapp:hover {
    background: #1da851;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}

.whatsapp-svg-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

.image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Card Content */
.card-content {
    padding: 16px;
}

.card-header {
    margin-bottom: 12px;
}

.vehicle-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.vehicle-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vehicle-title a:hover {
    color: #ff9800 !important;
}

.vehicle-subtitle {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

.card-details {
    margin-bottom: 12px;
}

.detail-row {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
    overflow: hidden;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #495057;
    font-weight: 500;
    background: #f8f9fa;
    padding: 4px 8px;
}

.card-pricing {
    margin-bottom: 16px;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    width: 100% !important;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 12px;
    font-weight: 500 !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 1 !important; /* Ensures it shows first/above */
    width: 100% !important;
    display: block !important;
    line-height: 1.2 !important;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff9800;
    line-height: 1;
    margin: 0 !important;
    padding: 0 !important;
    order: 2 !important; /* Ensures it shows second/below */
    width: 100% !important;
    display: block !important;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn {
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.bbtn-primary {
    background: #ff9800;
    color: #fff !important;
}

.bbtn-primary:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-whatsapp {
    background: #25d366 !important;
    color: white !important;
}

.btn-whatsapp:hover {
    background: #1da851 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.no-results h3 {
    font-size: 20px;
    color: #495057;
    margin-bottom: 8px;
}

.no-results p {
    font-size: 14px;
    margin-bottom: 15px;
}

/* ==============================================
   MOBILE SPECIFIC OVERRIDES (Max-width: 767px)
   ============================================== */

@media (max-width: 767px) {
    .lorry-for-sale-box {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .submit-lorry-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    /* Show top-right elements on image for mobile */
    .card-top-right {
        display: flex;
        top: 8px;
        right: 8px;
        gap: 6px;
        max-width: 120px;
    }
    
    .card-top-price {
        font-size: 12px;
        padding: 5px 8px;
        min-width: 70px;
    }
    
    .card-top-whatsapp {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    /* Hide pricing and actions from content area in grid view for mobile */
    .vehicles-grid.grid-view .card-pricing,
    .vehicles-grid.grid-view .card-actions {
        display: none !important;
    }
    
    /* Keep pricing and actions in list view content area for mobile */
    .vehicles-grid.list-view .card-top-right {
        display: none;
    }
    
    .vehicles-grid.grid-view .vehicle-subtitle {
        display: none;
    }
    
    .vehicles-grid.grid-view .vehicle-title {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
    }
}

/* ==============================================
   CRITICAL: TABLET AND DESKTOP OVERRIDES
   Force desktop layout at 768px and above
   ============================================== */

@media (min-width: 768px) {
    /* FORCE DESKTOP LAYOUT */
    .lorry-archive-wrapper .archive-layout {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        gap: 30px !important;
        align-items: start !important;
    }
    
    /* FORCE SIDEBAR TO STATIC POSITION */
    .lorry-archive-wrapper .archive-sidebar {
        position: static !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #e9ecef !important;
        overflow: visible !important;
        transition: none !important;
        transform: none !important;
        z-index: auto !important;
        max-width: none !important;
    }
    
    /* COMPLETELY HIDE MOBILE ELEMENTS */
    .lorry-archive-wrapper .mobile-filter-button {
        display: none !important;
        visibility: hidden !important;
    }
    
    .lorry-archive-wrapper .mobile-overlay {
        display: none !important;
        visibility: hidden !important;
    }
    
    .lorry-archive-wrapper .mobile-close-filters {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* ADJUST CONTAINER AND CONTENT */
    .container {
        padding: 0 20px !important;
    }
    
    .archive-header {
        padding: 50px 0 35px !important;
    }
    
    .archive-title {
        font-size: 32px !important;
    }
    
    .archive-stats {
        font-size: 16px !important;
    }
    
    .filters-container {
        padding: 24px !important;
        min-height: auto !important;
    }
    
    .archive-main {
        padding: 24px !important;
    }
    
    .listing-controls {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    /* Hide top-right overlay in grid view, show content area pricing */
    .vehicles-grid.grid-view .card-top-right {
        display: none !important;
    }
    
    .vehicles-grid.grid-view .card-pricing,
    .vehicles-grid.grid-view .card-actions {
        display: flex !important;
    }
    
    .card-actions {
        flex-direction: row !important;
    }
    
    .btn {
        flex: 1 !important;
    }
}

/* ==============================================
   DESKTOP SPECIFIC (1024px and above)
   ============================================== */

@media (min-width: 1024px) {
    .lorry-archive-wrapper .archive-layout {
        grid-template-columns: 300px 1fr !important;
        gap: 40px !important;
    }
    
    .vehicles-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
    }
    
    .card-image {
        height: 220px !important;
    }
    
    .vehicle-title {
        font-size: 18px !important;
    }
    
    .vehicles-grid.grid-view .vehicle-title {
        font-size: 24px !important;
        font-weight: 700 !important;
    }
    
    /* Ensure top-right overlay is hidden in grid view for desktop */
    .vehicles-grid.grid-view .card-top-right {
        display: none !important;
    }
    
    /* Ensure pricing and actions show in content area for grid view */
    	.vehicles-grid.grid-view .card-pricing,
	.vehicles-grid.grid-view .card-actions {
        display: flex !important;
    }
}

/* ==============================================
   LIST VIEW SPECIFIC STYLES (768px+)
   ============================================== */

@media (min-width: 768px) {
    .vehicles-grid.list-view {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .vehicles-grid.list-view .vehicle-card {
        display: grid !important;
        grid-template-columns: 280px 1fr auto !important;
        gap: 0 !important;
        align-items: stretch !important;
        padding: 0 !important;
    }
    
    .vehicles-grid.list-view .card-image {
        height: 180px !important;
    }
    
    .vehicles-grid.list-view .card-content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 20px !important;
        margin: 0 !important;
    }

    /* LIST VIEW: Hide top-right overlay completely */
    .vehicles-grid.list-view .card-top-right {
        display: none !important;
    }
    
    /* LIST VIEW: Show price in right column */
    .vehicles-grid.list-view .card-pricing {
        display: flex !important;
        align-self: flex-end !important;
        padding: 20px 5px !important;
        margin: 0 !important;
        text-align: right !important;
        min-width: 180px !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
    }
    
    .vehicles-grid.list-view .current-price {
        font-size: 28px !important;
        font-weight: 800 !important;
        color: #ff9800 !important;
        white-space: nowrap !important;
    }
    
    .vehicles-grid.list-view .card-actions {
        display: flex !important;
        margin-top: auto !important;
        gap: 8px !important;
    }
    
    .vehicles-grid.list-view .vehicle-title {
        font-weight: 700 !important;
        margin-bottom: 8px !important;
        line-height: 1.2 !important;
    }
    
    .vehicles-grid.list-view .card-content {
        min-height: auto !important;
    }
    
    .vehicles-grid.list-view .card-header {
        margin-bottom: 12px !important;
    }
    
    .vehicles-grid.list-view .card-details {
        margin-bottom: 0 !important;
    }
}

/* ==============================================
   PAGINATION
   ============================================== */

.archive-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f8f9fa;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.pagination-item {
    margin: 0;
}

.pagination-item a,
.pagination-item span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-item a:hover,
.pagination-item .current {
    background: #ff9800;
    color: white;
    border-color: #ff9800;
}

/* ==============================================
   SEO FILTERS AND CONTENT
   ============================================== */

.active-seo-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
}

.active-seo-filters .filter-label {
    font-weight: 600;
    color: #856404;
    font-size: 0.95rem;
}

.seo-filter-tag {
    background: #000;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.clear-seo-filters {
    background: #dc3545;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.clear-seo-filters:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.seo-filter-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #e3f2fd;
    color: #0d47a1;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
}

.clear-seo-link {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
}

.clear-seo-link:hover {
    color: #b71c1c;
    text-decoration: underline;
}

/* ==============================================
   CONDITION BADGE COLORS
   ============================================== */

.condition-badge.condition-new {
    background: darkviolet;

}

.condition-badge.condition-used {
    background: dimgrey;

}

.condition-badge.condition-rebuilt {
    background: darkorange;

}

.condition-badge.condition-excellent {
    background: #26a69a;
    box-shadow: 0 2px 6px rgba(38, 166, 154, 0.3);
}

.condition-badge.condition-good {
    background: #42a5f5;
    box-shadow: 0 2px 6px rgba(66, 165, 245, 0.3);
}

.condition-badge.condition-fair {
    background: #ffca28;
    color: #212529;
    box-shadow: 0 2px 6px rgba(255, 202, 40, 0.3);
}

.condition-badge.condition-poor {
    background: #ab47bc;
    box-shadow: 0 2px 6px rgba(171, 71, 188, 0.3);
}

.condition-badge.condition-direct-owner {
    background: darkgreen;

}

/* ==============================================
   LOADING STATES AND ANIMATIONS
   ============================================== */

.loading-state {
    text-align: center;
    padding: 40px;
    color: #ff9800;
}

.loading-state::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff9800;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

.card-top-price,
.card-top-whatsapp {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.vehicle-card:hover .card-top-price {
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    transform: translateY(-1px);
}

.vehicle-card:hover .card-top-whatsapp {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* ==============================================
   ACCESSIBILITY AND FOCUS STATES
   ============================================== */

.mobile-filter-button:focus,
.btn:focus,
.view-toggle:focus,
.filter-group input:focus,
.filter-group select:focus,
.card-top-whatsapp:focus {
    outline: 2px solid #ff9800;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mobile-filter-button,
    .archive-sidebar,
    .vehicle-card,
    .btn,
    .card-top-whatsapp,
    .card-image img {
        transition: none;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(0deg); }
    }
    
    @keyframes slideInRight {
        from {
            opacity: 1;
            transform: translateX(0);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* ==============================================
   PRINT STYLES
   ============================================== */

@media print {
    .mobile-filter-button,
    .archive-sidebar,
    .listing-header,
    .card-top-right,
    .mobile-overlay {
        display: none !important;
    }
    
    .archive-layout {
        display: block !important;
    }
    
    .vehicle-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .archive-main {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ==============================================
   EXTRA SAFETY OVERRIDES
   Force desktop layout with highest specificity
   ============================================== */

/* Force for any potential conflicting classes */
@media (min-width: 768px) {
    body .lorry-archive-wrapper .archive-layout,
    .lorry-archive-wrapper .archive-layout,
    .archive-layout {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        gap: 30px !important;
    }
    
    body .lorry-archive-wrapper .archive-sidebar,
    .lorry-archive-wrapper .archive-sidebar,
    .archive-sidebar {
        position: static !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        transform: none !important;
        transition: none !important;
        z-index: auto !important;
    }
    
    body .lorry-archive-wrapper .mobile-filter-button,
    body .lorry-archive-wrapper .mobile-overlay,
    body .lorry-archive-wrapper .mobile-close-filters,
    .lorry-archive-wrapper .mobile-filter-button,
    .lorry-archive-wrapper .mobile-overlay,
    .lorry-archive-wrapper .mobile-close-filters,
    .mobile-filter-button,
    .mobile-overlay,
    .mobile-close-filters {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Force desktop layout for admin users (extra safety) */
.admin-bar .lorry-archive-wrapper .archive-layout {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
}

.admin-bar .lorry-archive-wrapper .archive-sidebar {
    position: static !important;
}

.admin-bar .lorry-archive-wrapper .mobile-filter-button,
.admin-bar .lorry-archive-wrapper .mobile-overlay {
    display: none !important;
}

/* ==============================================
   DEBUGGING CLASSES (Remove in production)
   ============================================== */

.debug-layout::before {
    content: "Mobile Layout";
    position: fixed;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 5px 10px;
    z-index: 10000;
    font-size: 12px;
    border-radius: 3px;
}

@media (min-width: 768px) {
    .debug-layout::before {
        content: "Desktop Layout ?";
        background: green;
    }
}

/* ==============================================
   RESPONSIVE BREAKPOINT DETAILS
   ============================================== */

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .archive-title {
        font-size: 1.75rem;
    }
    
    .archive-description {
        font-size: 0.95rem;
    }
    
    .seo-filter-tag,
    .clear-seo-filters {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .active-seo-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .card-image {
        height: 180px;
    }
}

/* ==============================================
   FINAL CRITICAL OVERRIDE
   Use this if nothing else works - Nuclear option
   ============================================== */


/* CRITICAL FIX: Force hide mobile elements on desktop */
@media screen and (min-width: 768px) {
    /* Nuclear option - highest specificity */
    html body .lorry-archive-wrapper .mobile-filter-button,
    html body .mobile-filter-button,
    .mobile-filter-button {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
    
    html body .lorry-archive-wrapper .mobile-overlay,
    html body .mobile-overlay,
    .mobile-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    html body .lorry-archive-wrapper .mobile-close-filters,
    html body .mobile-close-filters,
    .mobile-close-filters {
        display: none !important;
        visibility: hidden !important;
    }
}


/* ==============================================
   Archive Bottom SEO
	/* Full Width SEO Content Styles */
   ============================================== */

.lorry-seo-fullwidth-wrapper {
    width: 100% !important;
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    padding: 60px 0 !important;
    margin: 40px 0 0 0 !important;
    box-sizing: border-box !important;
    clear: both !important;
    overflow: visible !important;
}

/* Inner container - Centered content */
.lorry-seo-content-inner {
    max-width: 1200px !important;
    background: #f8f9fa !important;
    margin: 0 auto !important;
    padding: 80px 20px !important;
    box-sizing: border-box !important;
}

/* Detailed content styling */
.lorry-seo-detailed-text {
    background: white !important;
    padding: 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    margin-bottom: 40px !important;
    line-height: 1.7 !important;
}

.lorry-seo-detailed-text h2 {
    color: #2c3e50 !important;
    font-size: 2em !important;
    margin-bottom: 20px !important;
    border-bottom: 3px solid #3498db !important;
    padding-bottom: 10px !important;
}

.lorry-seo-detailed-text h3 {
    color: #34495e !important;
    font-size: 1.5em !important;
    margin: 30px 0 15px 0 !important;
}

.lorry-seo-detailed-text p {
    margin-bottom: 15px !important;
    color: #555 !important;
}

.lorry-seo-detailed-text ul {
    margin: 20px 0 !important;
    padding-left: 0 !important;
}

.lorry-seo-detailed-text ul li {
    list-style: none !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    position: relative !important;
    padding-left: 20px !important;
}

.lorry-seo-detailed-text ul li:before {
    content: "✓" !important;
    color: #27ae60 !important;
    font-weight: bold !important;
    position: absolute !important;
    left: 0 !important;
}

/* Related links */
.lorry-seo-related-links {
    background: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    margin-bottom: 30px !important;
}

.lorry-seo-related-links h3 {
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
    font-size: 1.5em !important;
}

.lorry-related-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 15px !important;
}

.lorry-related-item {
    display: block !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.lorry-related-item:hover {
    background: #e3f2fd !important;
    border-color: #2196f3 !important;
    transform: translateY(-2px) !important;
}

.lorry-link-title {
    display: block !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 5px !important;
}

.lorry-link-filters {
    font-size: 0.9em !important;
    color: #666 !important;
}

/* FAQ section */
.lorry-location-faq {
    background: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    margin-bottom: 30px !important;
}

.lorry-location-faq h3 {
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
    font-size: 1.5em !important;
}

.lorry-faq-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 20px !important;
}

.lorry-faq-item {
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border-left: 4px solid #3498db !important;
}

.lorry-faq-item h4 {
    color: #2c3e50 !important;
    margin-bottom: 10px !important;
    font-size: 1.1em !important;
}

.lorry-faq-item p {
    color: #555 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* CTA section */
.lorry-seo-cta {
    text-align: center !important;
}

.lorry-cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important;
}

.lorry-cta-box h3 {
    margin-bottom: 15px !important;
    font-size: 1.8em !important;
}

.lorry-cta-box p {
    margin-bottom: 25px !important;
    opacity: 0.9 !important;
}

.lorry-cta-button {
    display: inline-block !important;
    background: white !important;
    color: #667eea !important;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.lorry-cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lorry-seo-fullwidth-wrapper {
        padding: 40px 0 !important;
    }
    
    .lorry-seo-content-inner {
        padding: 0 15px !important;
    }
    
    .lorry-seo-detailed-text {
        padding: 25px !important;
    }
    
    .lorry-related-grid,
    .lorry-faq-grid {
        grid-template-columns: 1fr !important;
    }
    
    .lorry-cta-box {
        padding: 30px 20px !important;
    }
}

/* Override Elementor conflicts */
.lorry-seo-fullwidth-wrapper * {
    box-sizing: border-box !important;
}

/* Ensure no Elementor container restrictions */
.elementor-section .lorry-seo-fullwidth-wrapper,
.elementor-container .lorry-seo-fullwidth-wrapper {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding-left: calc(50vw - 50%) !important;
    padding-right: calc(50vw - 50%) !important;
}

/* ==============================================
   Additional CSS for normal price display in archive page
   UPDATED PRICE STYLING - UNIFIED COLORS
   ============================================== */
/* Remove the price hierarchy visual indicators */
.card-pricing {
    position: relative;
}

.card-pricing::before {
    display: none;
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 2px;
    background: #ddd;
}

.card-pricing:has(.current-price[data-price-type="normal"])::before {
    background: linear-gradient(to bottom, #2e7d32, #4caf50);
}

.card-pricing:has(.current-price[data-price-type="offer"])::before {
    background: linear-gradient(to bottom, #ff9800, #ffc107);
}
*/

/* Unified price colors - all prices use #ff9800 */

/* Card top price styling - unified color */
.card-top-price {
    background: rgba(255, 152, 0, 0.95) !important;
    color: white !important;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 80px;
    backdrop-filter: blur(5px);
}

/* Remove different styling for price types */
.card-top-price[data-price-type="normal"],
.card-top-price[data-price-type="offer"] {
    background: rgba(255, 152, 0, 0.95) !important;
    color: white !important;
}

/* Current price styling - unified color */
.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff9800 !important;
    line-height: 1;
}

/* Remove different colors for price types */
.current-price[data-price-type="normal"],
.current-price[data-price-type="offer"] {
    color: #ff9800 !important;
    font-weight: 700;
}

/* List view price styling - unified color */
.vehicles-grid.list-view .current-price {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #ff9800 !important;
    white-space: nowrap !important;
}

/* Update price type indicators to match unified color */
.price-type-indicator {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #ff9800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(255, 152, 0, 0.1) !important;
    border-radius: 10px;
    vertical-align: middle;
}

/* Remove different indicator colors */
.current-price[data-price-type="normal"] .price-type-indicator,
.current-price[data-price-type="offer"] .price-type-indicator {
    background: rgba(255, 152, 0, 0.1) !important;
    color: #ff9800 !important;
}

/* Update price type labels */
.price-type-label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    line-height: 1;
}

/* Enhanced card top price styling - unified */
.card-top-price {
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3) !important;
    transition: all 0.3s ease;
    background: rgba(255, 152, 0, 0.95) !important;
    color: white !important;
}

.card-top-price:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4) !important;
}

/* Vehicle card hover effects for price */
.vehicle-card:hover .card-top-price {
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4) !important;
    transform: translateY(-1px);
}

/* Simplified card pricing - remove position relative since no ::before */
.card-pricing {
    margin-bottom: 16px;
}

/* Update original price to complement the unified color */
.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 3px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .price-type-label {
        font-size: 9px;
    }
    
    .price-type-indicator {
        font-size: 9px;
        padding: 1px 4px;
        margin-left: 4px;
        color: #ff9800 !important;
        background: rgba(255, 152, 0, 0.1) !important;
    }
    
    .card-top-price {
        font-size: 12px;
        padding: 6px 10px;
        min-width: 70px;
        background: rgba(255, 152, 0, 0.95) !important;
        color: white !important;
    }
}

/* List view specific enhancements */
.list-view .current-price {
    font-size: 18px;
    margin-bottom: 8px;
    color: #ff9800 !important;
}

.list-view .price-type-indicator {
    font-size: 11px;
    padding: 3px 8px;
    color: #ff9800 !important;
    background: rgba(255, 152, 0, 0.1) !important;
}

/* Grid view specific enhancements */
.grid-view .card-top-price {
    margin-bottom: 8px;
    background: rgba(255, 152, 0, 0.95) !important;
    color: white !important;
}

/* Dark mode support - maintain unified color */
@media (prefers-color-scheme: dark) {
    .price-type-indicator {
        background: rgba(255, 152, 0, 0.2) !important;
        color: #ffcc02 !important;
    }
    
    .current-price[data-price-type="normal"] .price-type-indicator,
    .current-price[data-price-type="offer"] .price-type-indicator {
        background: rgba(255, 152, 0, 0.2) !important;
        color: #ffcc02 !important;
    }
    
    .current-price[data-price-type="normal"],
    .current-price[data-price-type="offer"] {
        color: #ffcc02 !important;
    }
}

/* 
 * Additional CSS for Taxonomy-Based Filtering
 * Add this to your archive-listing.css file
 */

/* Active Filters Display */
.active-filters-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.filter-label {
    font-weight: 600;
    color: #495057;
    margin-right: 10px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.filter-tag {
    background: #007cba;
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.filter-tag.taxonomy-filter {
    background: #28a745;
}

.filter-tag.get-filter {
    background: #6f42c1;
}

.filter-tag .remove-filter {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
    padding: 0 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    line-height: 1;
    font-size: 14px;
}

.filter-tag .remove-filter:hover {
    background: rgba(255, 255, 255, 0.4);
}

.clear-all-filters {
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.clear-all-filters:hover {
    background: #c82333;
    color: white;
}

/* Taxonomy Filter Links in Sidebar */
.taxonomy-filters-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.taxonomy-filter-group {
    margin-bottom: 20px;
}

.taxonomy-filter-group h4,
.taxonomy-filter-group strong {
    color: #495057;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.taxonomy-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.taxonomy-link {
    color: #2c3e50;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.taxonomy-link:hover {
    background: rgb(251,188,52);
    color: white;
    border-color: rgb(251,188,52);
}

.taxonomy-link small {
    color: #6c757d;
    font-size: 11px;
}

.taxonomy-link:hover small {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .active-filters-display {
        padding: 12px;
        margin: 10px 0;
    }
    
    .filter-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .filter-tag {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .taxonomy-links {
        gap: 3px;
    }
    
    .taxonomy-link {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* URL Builder Tool Styles (for admin) */
.url-builder-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.url-builder-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.url-builder-controls label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.url-builder-controls select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.generated-url-display {
    background: white;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-family: monospace;
    color: #495057;
    margin-bottom: 15px;
}

.url-actions {
    display: flex;
    gap: 10px;
}

/* Enhanced Filter Indicators */
.filter-indicator {
    color: #28a745;
    font-weight: 500;
}

.seo-filter-notice {
    background: #e7f3ff;
    color: #0056b3;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.clear-seo-link {
    color: #0056b3;
    text-decoration: underline;
    margin-left: 5px;
}

/* Improved Archive Header */
.archive-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.archive-title {
    color: #212529;
    margin-bottom: 10px;
}

.archive-description.seo-description {
    color: #6c757d;
    font-style: normal;
    margin-bottom: 15px;
}

.archive-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6c757d;
}

.results-count {
    font-weight: 600;
    color: #495057;
}

/* Dynamic URL Indicators */
.taxonomy-url-indicator {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 5px;
}

/* Form Enhancement for GET Parameters */
.filters-form .filter-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    display: block;
}

.filters-form .filter-group select,
.filters-form .filter-group input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px;
    width: 100%;
}

.filters-form .filter-group select:focus,
.filters-form .filter-group input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 186, 0.25);
    outline: none;
}

/* Apply Filters Button Enhancement */
/*.apply-filters {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.apply-filters:hover {
    background: #005a87;
}

.apply-filters i {
    margin-right: 8px;
}
*/
/* ==============================================
   STICKY BROWSE BY CATEGORY SECTION
   Add this CSS to your archive-listing.css file
   ============================================== */

/* Basic styling for the taxonomy filters section */
.taxonomy-filters-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Sticky container when active */
.taxonomy-filters-section.sticky-active {
    position: sticky;
    top: 20px;
    z-index: 100;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    padding: 20px;
    margin: 0;
    border-radius: 12px;
    animation: stickySlideIn 0.3s ease-out;
}

/* Animation for sticky activation */
@keyframes stickySlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced styling for sticky state */
.taxonomy-filters-section.sticky-active h4 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff9800;
    position: relative;
}

.taxonomy-filters-section.sticky-active h4::before {
    content: "📌";
    margin-right: 8px;
    font-size: 14px;
}

/* Improved taxonomy filter groups in sticky state */
.taxonomy-filters-section.sticky-active .taxonomy-filter-group {
    margin-bottom: 18px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.taxonomy-filters-section.sticky-active .taxonomy-filter-group strong {
    color: #2c3e50;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

/* Enhanced taxonomy links in sticky state */
.taxonomy-filters-section.sticky-active .taxonomy-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.taxonomy-filters-section.sticky-active .taxonomy-link {
    color: #495057;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid #dee2e6;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taxonomy-filters-section.sticky-active .taxonomy-link:hover {
    background: #ff9800;
    color: white;
    border-color: #ff9800;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.taxonomy-filters-section.sticky-active .taxonomy-link small {
    color: #6c757d;
    font-size: 10px;
    font-weight: 500;
}

.taxonomy-filters-section.sticky-active .taxonomy-link:hover small {
    color: rgba(255, 255, 255, 0.9);
}

/* Sticky indicator */
.taxonomy-filters-section.sticky-active::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, #ff9800, #f57c00);
    border-radius: 2px;
    animation: stickyGlow 2s ease-in-out infinite alternate;
}

@keyframes stickyGlow {
    from {
        opacity: 0.6;
    }
    to {
        opacity: 1;
    }
}

/* Compact view for sticky state */
.taxonomy-filters-section.sticky-active.compact {
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

.taxonomy-filters-section.sticky-active.compact h4 {
    font-size: 14px;
    margin-bottom: 12px;
}

.taxonomy-filters-section.sticky-active.compact .taxonomy-filter-group {
    margin-bottom: 15px;
    padding: 10px;
}

.taxonomy-filters-section.sticky-active.compact .taxonomy-links {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 4px;
}

.taxonomy-filters-section.sticky-active.compact .taxonomy-link {
    padding: 4px 8px;
    font-size: 11px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .taxonomy-filters-section.sticky-active {
        position: relative !important;
        top: auto !important;
        margin-top: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .taxonomy-filters-section.sticky-active .taxonomy-links {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 4px;
    }
    
    .taxonomy-filters-section.sticky-active .taxonomy-link {
        font-size: 10px;
        padding: 4px 6px;
    }
    
    .taxonomy-filters-section.sticky-active h4 {
        font-size: 14px;
    }
}

/* Desktop specific enhancements */
@media (min-width: 769px) {
    /* Ensure sidebar container can handle sticky content */
    .archive-sidebar {
        position: relative;
        overflow: visible;
    }
    
    .filters-container {
        position: relative;
    }
    
    /* Enhanced sticky positioning for desktop */
    .taxonomy-filters-section.sticky-active {
        position: sticky;
        top: 20px;
        z-index: 100;
        margin-top: 20px;
    }
    
    /* Scroll indicator for long sticky content */
    .taxonomy-filters-section.sticky-active::-webkit-scrollbar {
        width: 4px;
    }
    
    .taxonomy-filters-section.sticky-active::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    
    .taxonomy-filters-section.sticky-active::-webkit-scrollbar-thumb {
        background: #ff9800;
        border-radius: 2px;
    }
    
    .taxonomy-filters-section.sticky-active::-webkit-scrollbar-thumb:hover {
        background: #f57c00;
    }
}

/* Performance optimization */
.taxonomy-filters-section {
    will-change: transform;
    contain: layout style paint;
}

/* Smooth scrolling for the sticky container */
.taxonomy-filters-section.sticky-active {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.taxonomy-filters-section.sticky-active .taxonomy-link:focus {
    outline: 2px solid #ff9800;
    outline-offset: 2px;
    background: #ff9800;
    color: white;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .taxonomy-filters-section.sticky-active,
    .taxonomy-filters-section,
    .taxonomy-link {
        transition: none;
        animation: none;
    }
    
    @keyframes stickySlideIn {
        from, to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes stickyGlow {
        from, to {
            opacity: 1;
        }
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .taxonomy-filters-section.sticky-active {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .taxonomy-filters-section.sticky-active h4 {
        color: #e2e8f0;
        border-bottom-color: #ff9800;
    }
    
    .taxonomy-filters-section.sticky-active .taxonomy-filter-group {
        background: #1a202c;
        border-left-color: #ff9800;
    }
    
    .taxonomy-filters-section.sticky-active .taxonomy-link {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #2d3748;
    }
    
    .taxonomy-filters-section.sticky-active .taxonomy-link:hover {
        background: #ff9800;
        color: #1a202c;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .taxonomy-filters-section.sticky-active {
        border: 2px solid #000;
    }
    
    .taxonomy-filters-section.sticky-active .taxonomy-link {
        border: 1px solid #000;
    }
    
    .taxonomy-filters-section.sticky-active .taxonomy-link:hover {
        background: #000;
        color: #fff;
    }
}


/* ==============================================
   CATEGORY OVERVIEW PAGE STYLES
   Add this CSS to your archive-listing.css file
   ============================================== */

/* Category Overview Header */
.category-overview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.category-overview-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.category-hero {
    text-align: center;
    position: relative;
    z-index: 2;
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.category-description {
    font-size: 1.2rem;
    margin: 0 0 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sections */
.archive-content section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff9800, #f57c00);
    border-radius: 2px;
}

/* Featured Categories */
.featured-categories {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    margin-bottom: 3rem;
}

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

.featured-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9800, #f57c00);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.featured-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.featured-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-name a:hover {
    color: #ff9800;
}

.featured-badge {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.featured-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.featured-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.featured-stats .stat i {
    width: 16px;
    color: #ff9800;
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.featured-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    text-decoration: none;
    color: white;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-controls {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.25rem;
    border: 1px solid #e9ecef;
}

.view-toggle {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    color: #6c757d;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-toggle.active {
    background: white;
    color: #ff9800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-toggle:hover:not(.active) {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

/* Categories Grid */
.categories-container {
    width: 100%;
}

.categories-grid {
    display: grid;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

/* Grid View */
.categories-grid.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* List View */
.categories-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.categories-grid.list-view .category-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 1rem 1.5rem;
}

.categories-grid.list-view .category-card-header {
    margin-bottom: 0;
}

.categories-grid.list-view .category-description {
    display: none;
}

.categories-grid.list-view .category-stats {
    margin: 0;
    justify-self: center;
}

.categories-grid.list-view .category-actions {
    justify-self: end;
    margin: 0;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.category-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.category-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-name a:hover {
    color: #ff9800;
}

.category-count {
    background: #ff9800;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 1rem;
}

.category-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.category-stats {
    margin-bottom: 1.5rem;
}

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.category-stats .stat-item i {
    color: #ff9800;
    width: 14px;
    text-align: center;
}

.category-actions {
    margin-top: auto;
}

.category-actions .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.category-actions .btn:hover {
    background: #f57c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    text-decoration: none;
    color: white;
}

/* Quick Navigation */
.quick-navigation {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    text-align: center;
}

.quick-navigation h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
}

.quick-navigation h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #ff9800;
    border-radius: 1px;
}

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

.quick-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.quick-nav-card:hover {
    background: #ff9800;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    text-decoration: none;
}

.quick-nav-card i {
    font-size: 1.5rem;
    opacity: 0.8;
}

.quick-nav-card:hover i {
    opacity: 1;
}

/* No Categories */
.no-categories {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.no-categories-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-categories h3 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 1rem;
}

.no-categories p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-overview-header {
        padding: 40px 0 30px;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 200px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .categories-grid.grid-view {
        grid-template-columns: 1fr;
    }
    
    .categories-grid.list-view .category-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .categories-grid.list-view .category-stats {
        justify-self: auto;
    }
    
    .categories-grid.list-view .category-actions {
        justify-self: auto;
    }
    
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .quick-nav-card {
        padding: 1rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .quick-nav-card i {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .category-icon {
        font-size: 3rem;
    }
    
    .category-title {
        font-size: 1.75rem;
    }
    
    .quick-nav-grid {
        grid-template-columns: 1fr;
    }
    
    .view-controls {
        width: 100%;
        justify-content: center;
    }
}

/* Desktop Enhancements */
@media (min-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
    
    .quick-nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Accessibility */
.category-card:focus-within {
    outline: 2px solid #ff9800;
    outline-offset: 2px;
}

.quick-nav-card:focus {
    outline: 2px solid #ff9800;
    outline-offset: 2px;
}

/* Loading Animation */
.categories-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff9800;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .category-card,
    .featured-card,
    .quick-navigation {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .category-name a,
    .featured-name a {
        color: #e2e8f0;
    }
    
    .category-name a:hover,
    .featured-name a:hover {
        color: #ff9800;
    }
    
    .section-title {
        color: #e2e8f0;
    }
    
    .quick-nav-card {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #2d3748;
    }
}

/* ==============================================
	FB Campaign Highlight Styles
   ============================================== */
.vehicle-card.has-campaign {
    position: relative;
    box-shadow: 0 0 0 3px #ff6b35;
    background: linear-gradient(135deg, #fff 0%, #fff5f0 100%);
}

.vehicle-card.has-campaign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.05) 0%, rgba(247,147,30,0.05) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.vehicle-card.has-campaign:hover {
    box-shadow: 0 0 0 3px #ff6b35, 0 8px 30px rgba(255,107,53,0.3);
    transform: translateY(-4px);
}

/* Compact Campaign Badge - Top of Image, Single Line */
.campaign-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    z-index: 5;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(255,107,53,0.4);
    animation: campaignPulse 2s ease-in-out infinite;
}

.campaign-badge i {
    font-size: 13px;
    flex-shrink: 0;
}

.campaign-badge .badge-content {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.campaign-badge .badge-label {
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.campaign-badge .badge-shares {
    font-size: 10px;
    background: rgba(255,255,255,0.25);
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
}

/* Unlocked Campaign Badge */
.campaign-badge.unlocked {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Campaign Pulse Animation */
@keyframes campaignPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255,107,53,0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255,107,53,0.6);
        transform: scale(1.03);
    }
}

/* Campaign Card Border */
.vehicle-card.has-campaign {
    position: relative;
    box-shadow: 0 0 0 2px #ff6b35;
    animation: campaignGlow 3s ease-in-out infinite;
}

.vehicle-card.has-campaign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.03) 0%, rgba(247,147,30,0.03) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.vehicle-card.has-campaign:hover {
    box-shadow: 0 0 0 2px #ff6b35, 0 6px 20px rgba(255,107,53,0.25);
    transform: translateY(-4px);
}

@keyframes campaignGlow {
    0%, 100% {
        box-shadow: 0 0 0 2px #ff6b35, 0 4px 15px rgba(0,0,0,0.1);
    }
    50% {
        box-shadow: 0 0 0 2px #f7931e, 0 4px 20px rgba(255,107,53,0.25);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .campaign-badge {
        top: 8px;
        left: 8px;
        padding: 5px 8px;
        font-size: 10px;
        gap: 5px;
    }
    
    .campaign-badge i {
        font-size: 11px;
    }
    
    .campaign-badge .badge-label {
        font-size: 10px;
    }
    
    .campaign-badge .badge-shares {
        font-size: 9px;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .campaign-badge {
        padding: 4px 7px;
        font-size: 9px;
    }
    
    .campaign-badge i {
        font-size: 10px;
    }
    
    .campaign-badge .badge-label {
        font-size: 9px;
    }
    
    .campaign-badge .badge-shares {
        font-size: 8px;
    }
}