/* CSS Variables for Consistency */
:root {
    /* Colors */
    --color-primary: #3182ce;
    --color-primary-dark: #2b6cb0;
    --color-text: #2d3748;
    --color-text-light: #4a5568;
    --color-bg: #f7fafc;
    --color-bg-light: #fff;
    --color-border: #e2e8f0;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-info: #17a2b8;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
}

/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0;
    padding: var(--space-lg);
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Header */
h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: var(--space-xl);
}

/* Search Form */
.search-form {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.search-form input[type="text"] {
    flex: 1;
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.search-form button {
    padding: var(--space-md) var(--space-xl);
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.search-form button:hover {
    background-color: var(--color-primary-dark);
}

.search-form button:active {
    transform: translateY(1px);
}

/* Filter Panel */
.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    background-color: var(--color-bg-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 200px;
    min-width: 0;
}

.filter-group select,
.filter-group input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    background-color: var(--color-bg-light);
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-group select:focus,
.filter-group input[type="number"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.filter-group label {
    font-size: 1rem;                 /* Larger font */
    font-weight: 600;                /* Slightly bolder */
    color: var(--color-text);        /* Use main text color for higher contrast */
    margin-bottom: var(--space-xs);
}

.range-filter .range-inputs {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.range-filter input[type="number"] {
    flex: 1;
    min-width: 70px;
}

.range-filter span {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* active filters */
.active-filters {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background-color: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
    color: var(--color-text);
}

.active-filters-label {
  font-weight: 300;
}

/* sort info */
.sort-info {
    margin-top: var(--space-md);
    padding: 0.5rem 1rem;
    background-color: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    user-select: none;
    max-width: fit-content;
}

.sort-label-text {
  font-weight: 300;
}



/* checkbox group*/
.checkbox-group { 
    margin-bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
}

.checkbox-group label.group-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
}

.checkbox-container { 
    max-height: 150px; 
    overflow-y: auto; 
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    background-color: var(--color-bg-light);
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-bg);
}

.checkbox-container::-webkit-scrollbar {
    width: 6px;
}

.checkbox-container::-webkit-scrollbar-track {
    background: var(--color-bg);
    border-radius: var(--radius-sm);
}

.checkbox-container::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
}

.checkbox-item { 
    display: flex; 
    align-items: center; 
    margin-bottom: var(--space-sm);
    transition: background-color 0.2s ease;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
}

.checkbox-item:hover {
    background-color: rgba(49, 130, 206, 0.05);
}

.checkbox-item:last-child {
    margin-bottom: 0;
}

.checkbox-item label { 
    margin-left: var(--space-sm);
    cursor: pointer; 
    font-size: 0.875rem;
    color: var(--color-text);
    transition: color 0.2s ease;
    user-select: none;
}

.checkbox-item input[type="checkbox"] { 
    cursor: pointer;
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
}

.checkbox-item input[type="checkbox"]:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
}

.checkbox-item:hover label {
    color: var(--color-primary);
}

/* Count badges */
.checkbox-item .count-badge {
    margin-left: auto;
    font-size: 0.75rem;
    background-color: #e2e8f0;
    color: var(--color-text-light);
    padding: 2px 6px;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .checkbox-container {
        max-height: 120px;
    }
}


/* Instructions message */
.select-instructions {
    font-size: 0.8rem;
    color: #666;
    margin-top: 3px;
    font-style: italic;
}

/* Style for apply filter button */
.apply-filter {
    margin-top: 5px;
    padding: 4px 8px;
    background-color: #4338ca;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.apply-filter:hover {
    background-color: #3730a3;
}




/* Table */
.table-container {
    overflow-x: auto;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

thead {
    background-color: #edf2f7;
    font-weight: 600;
    text-transform: capitalize;
    position: sticky;
    top: 0;
    z-index: 10;
}

th {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-size: 0.875rem;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
}

th a {
    color: var(--color-text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

th a:hover {
    color: var(--color-primary);
    background-color: var(--color-bg);
}

.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 1.5rem;
}

.sortable::after {
    content: '⇅';
    position: absolute;
    right: 0.5rem;
    opacity: 0.5;
}

.sortable.asc::after {
    content: '↑';
    opacity: 1;
}

.sortable.desc::after {
    content: '↓';
    opacity: 1;
}

.sortable:hover {
    background-color: var(--color-bg);
}

tbody tr {
    transition: background-color 0.2s;
}

tbody tr:hover {
    background-color: var(--color-bg);
}

td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
    color: var(--color-text);
    min-width: 100px;
}

/* Specific styling for ID column */
th:first-child, td:first-child {
    min-width: 80px;
    max-width: 100px;
    text-align: center;
}

/* Styling for title column with link */
td:nth-child(2) {
    min-width: 200px;
}

.title-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    margin-top: var(--space-xs);
}

.title-link:hover {
    text-decoration: underline;
}

.thumbnail {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.2s ease;
    cursor: pointer;
}

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

td a:not(.title-link) {
    color: var(--color-primary);
    text-decoration: none;
}

td a:not(.title-link):hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
    font-family: sans-serif;
}

.pagination .current {
    background-color: var(--color-primary);
    color: white;
    font-weight: bold;
    border-color: var(--color-primary);
    cursor: default;
    transform: scale(1.1); /* Slightly larger */
    box-shadow: var(--shadow-sm); /* Subtle shadow */
    transition: transform 0.2s, box-shadow 0.2s;
}

.pagination-btn {
    padding: 6px 12px;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-bg-light);
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
    min-width: 36px;
    text-align: center;
    opacity: 0.8; /* Slightly faded for non-active buttons */
}

.pagination-btn:hover {
    background-color: var(--color-bg);
    color: var(--color-primary);
    opacity: 1;
}

.pagination .current {
    background-color: var(--color-primary);
    color: white;
    font-weight: bold;
    border-color: var(--color-primary);
    cursor: default;
    transform: scale(1.1); /* Slightly larger */
    box-shadow: var(--shadow-sm); /* Subtle shadow */
    transition: transform 0.2s, box-shadow 0.2s;
}

.pagination-btn:active {
    transform: translateY(1px);
}

.listing-info {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--color-text-light);
}

/* Cards and Thumbnails */
.card-thumbnail {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 16/9;
    object-fit: cover;
}

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

.listing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.listing-card {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    position: relative;
    overflow: hidden;
}

.card-header img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.listing-card:hover .card-header img {
    transform: scale(1.05);
}

.card-body {
    background-color: #f8f9fa;
    padding: 5px;
    color: var(--color-text);
    font-size: 0.875rem;
    line-height: 1.6;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.card-body .listing-title {
    color: var(--color-primary);
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-body .listing-title:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.card-body p {
    margin: 5px 0;
    color: var(--color-text-light);
}

.card-body p:first-child {
    margin-top: 0;
}

/* Specific field styling */
.card-body .price-field {
    color: var(--color-success);
    font-weight: 600;
}

.card-body .damage-field {
    color: var(--color-danger);
    font-weight: 500;
}

.card-body .status-field {
    color: var(--color-info);
    font-weight: 500;
}

.card-body .odometer-field {
    color: #6b7280;
    font-weight: 600;
    background-color: #e2e8f0;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* Hover effect for the entire card */
.listing-card:hover .card-body {
    transition: background-color 0.3s ease;
}

/* Image container and controls */
.image-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.image-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 1; /* Always visible */
    z-index: 5;
}

.image-controls button {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 18px;
    font-weight: bold;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}


.image-controls button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, transform 0.1s;
}

.image-controls button:hover {
    background: rgba(0, 0, 0, 0.9);
}

.image-controls button:active {
    transform: scale(0.95);
}

/* Modal improvements */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
}

.modal[style*="display: flex"] {
    opacity: 1;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1010;
}

.close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-image-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1010;
}

.modal-image-controls button {
    background: rgba(255, 255, 255, 0.7);
    color: black;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 18px;
    transition: background 0.2s, transform 0.1s;
}

.modal-image-controls button:hover {
    background: rgba(255, 255, 255, 0.9);
}

.modal-image-controls button:active {
    transform: scale(0.95);
}

/* Auction timer */
.auction-timer {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.auction-timer.urgent {
    background-color: rgba(220, 53, 69, 0.8);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.image-container:hover .auction-timer {
    opacity: 1;
}

/* Badge and status indicators */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background-color: rgba(40, 167, 69, 0.15);
    color: var(--color-success);
}

.status-ended {
    background-color: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.status-featured {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

/* Image gallery indicators */
.image-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    z-index: 10;
}

/* Sort controls */
.sort-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sort-controls button {
    padding: 8px 16px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    font-size: 0.875rem;
}

.sort-controls button:hover {
    background-color: var(--color-primary-dark);
}

.sort-controls button:active {
    transform: translateY(1px);
}

.sort-controls button.active {
    background-color: var(--color-primary-dark);
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.2);
}

/* Loading indicator */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading::after {
    content: "";
    width: 30px;
    height: 30px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* View toggle buttons */
.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.view-toggle button {
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: var(--color-text);
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-toggle button.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.view-toggle button:hover:not(.active) {
    background-color: #e0e0e0;
}

.view-toggle button:active {
    transform: translateY(1px);
}

/* No results message */
.no-results {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--color-text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: var(--space-lg);
    }

    h1 {
        font-size: 1.5rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form button {
        width: 100%;
    }

    .filter-panel {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .range-filter .range-inputs {
        flex-direction: column;
        align-items: flex-start;
    }

    .range-filter input[type="number"] {
        width: 100%;
    }

    .range-filter span {
        display: none;
    }

    th, td {
        padding: var(--space-sm);
        font-size: 0.75rem;
    }

    .thumbnail {
        max-width: 80px;
        max-height: 80px;
    }

    th:first-child, td:first-child {
        min-width: 60px;
        max-width: 80px;
    }

    td:nth-child(2) {
        min-width: 150px;
    }
    
    .listing-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .modal-image-controls button {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
	.filter-group label,
    .filter-group select,
    .filter-group input[type="number"] {
        font-size: 1rem;
    }

    .image-controls button {
        padding: 8px 12px;
        font-size: 16px;
    }
	
    .listing-cards {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination-btn,
    .pagination .current {
        padding: 5px 10px;
        min-width: 32px;
    }
    
    .modal-image-controls {
        bottom: 10px;
    }
}

/* Print styles */
@media print {
    .search-form,
    .filter-panel,
    .pagination,
    .image-controls,
    .modal-image-controls,
    .close-btn,
    .sort-controls,
    .view-toggle {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .table-container {
        box-shadow: none;
        border: none;
    }
    
    thead {
        background-color: white;
        color: black;
    }
    
    tr, td, th {
        page-break-inside: avoid;
    }
    
    .listing-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #eee;
    }
}

/* Accessibility enhancement */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #1a202c;
        --color-bg-light: #2d3748;
        --color-text: #e2e8f0;
        --color-text-light: #a0aec0;
        --color-border: #4a5568;
        --color-primary: #63b3ed;
        --color-primary-dark: #4299e1;
    }
    
    .card-body {
        background-color: #2d3748;
    }
    
    thead {
        background-color: #2d3748;
    }
    
    tbody tr:hover,
    .sortable:hover {
        background-color: #2d3748;
    }
    
    .pagination-btn {
        background-color: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
	
	.pagination .current {
        background-color: var(--color-primary); /* #63b3ed in dark mode */
        border-color: var(--color-primary);
        color: var(--color-text); /* #e2e8f0 */
        box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.3); /* Glow effect */
    }
    
    .pagination-btn:hover {
        background-color: #4a5568;
    }
    
    .view-toggle button {
        background-color: #2d3748;
        border-color: #4a5568;
    }
    
    .view-toggle button:hover:not(.active) {
        background-color: #4a5568;
    }
}


.link-space {
  margin-right: 10px;
}


/* Auction Details for sold cars */
.sold-info-container {
    margin-top: 10px;
    width: 100%; /* Ensure container takes full width */
    max-height: 150px;
    overflow-y: auto;
    overflow-x: auto; /* Allow horizontal scroll if needed */
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Sold Info Table */
.sold-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
    table-layout: fixed; /* Ensures equal column widths */
    box-sizing: border-box;
}

/* Table Headers*/
.sold-info-table th{
	font-size: 9px;
    border: 1px solid #ccc;
    padding: 4px 6px;
    text-align: center;
    word-wrap: break-word;
    white-space: nowrap;
	overflow: hidden;
}
/* Table Cells */
.sold-info-table td {
    font-size: 10px;
    border: 1px solid #ccc;
    padding: 4px 6px;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
}

/* Table Header Background */
.sold-info-table th {
    background-color: #f8f8f8;
}


/* scroll-buttons */
.scroll-buttons {
	display: none;
	position: fixed;
	right: 10px;
	z-index: 1000;
}
.scroll-button {
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 20px;
	cursor: pointer;
	margin: 5px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.scroll-button:hover {
	background-color: #0056b3;
}
@media (max-width: 768px) {
	.scroll-buttons {
		display: block;
	}
}



/* sold-label */
.sold-label {
    color: red;
    font-weight: bold;
    font-size: 1.2em;
}

.sold-indicator {
    color: red;
    font-weight: bold;
    font-size: 1.2em;
    background-color: rgba(255, 0, 0, 0.1);
    padding: 5px 10px;
    border: 2px solid red;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 10px;
    text-align: center;
}

.listing-card.sold {
    opacity: 0.8;
    border-left: 5px solid red;
}

/* msrp-field */
.msrp-field {
	font-weight: bold;
	color: #2e7d32;
	background-color: rgba(46, 125, 50, 0.1);
	padding: 5px 8px;
	border-radius: 4px;
	border-left: 4px solid #4caf50;
	margin: 5px 0;
}



/* VPN Link Container */
.vpn-container {
    padding: 0 0 30px 0; /* top:0, right:0, bottom:30px, left:0 */
}




.vpn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-left: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    animation: pulse 2s infinite ease-in-out;
}

.vpn-link:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0.95;
}

.vpn-link:active {
    transform: scale(1.02) translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Logo inside VPN link */
.vpn-logo {
    width: 26px;
    height: 26px;
    background-image: url('/shopping.mania/images/amnezia.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.2s ease;
}

.vpn-link:hover .vpn-logo {
    transform: rotate(15deg) scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vpn-link {
        padding: 7px 14px;
        margin-left: 10px;
    }
    .vpn-logo {
        width: 26px;
        height: 26px;
    }
}


/* Footer Styling */
.page-footer {
    background: linear-gradient(90deg, #2c3e50 0%, #34495e 100%); /* Matches main-menu gradient */
    color: #ecf0f1; /* Light text color for contrast */
    padding: 20px 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    width: 100%; /* Ensure full width */
    clear: both; /* Clear any floating elements */
    position: relative; /* Ensure it respects document flow */
}

.page-footer .inner {
    max-width: 1200px; /* Matches header and main-menu */
    margin: 0 auto; /* Center the content */
    padding: 0 20px; /* Consistent padding */
    box-sizing: border-box; /* Prevent padding issues */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: #fff; /* Matches header text color */
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    color: #f0f0f0; /* Matches social-group text */
    font-size: 0.95em;
    margin: 0 0 10px 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ecf0f1; /* Matches main-menu links */
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: rgba(11, 217, 139, 1); /* Matches main-menu hover */
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid rgba(11, 217, 139, 0.2); /* Subtle divider */
    margin-top: 20px;
}

.footer-bottom p {
    color: #f0f0f0; /* Matches social-group text */
    font-size: 0.9em;
    margin: 0;
}

/* Ensure social icons in footer match header */
.footer-section .social-group {
    display: flex;
    gap: 10px;
    justify-content: flex-start; /* Align left in footer for consistency */
}

.footer-section .social-icon {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.footer-section .social-icon:hover {
    transform: scale(1.1); /* Matches header social icons */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 20px;
    }

    .footer-section .social-group {
        justify-content: center; /* Center social icons on mobile */
    }
}




/* Right side social icons */
.header-soc {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.header-soc a img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.header-soc a img:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-soc {
        margin-top: 15px;
        justify-content: flex-start;
    }

    .site-title {
        font-size: 18px;
    }

    .logo-img {
        width: 40px;
    }
}



