/**
 * Blocket API - Main Styles
 */

/* ==========================================================================
   Latest Vehicles Grid
   ========================================================================== */

.blocket-latest-vehicles {
    margin: 40px 0;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blocket-latest-vehicles[data-columns="2"] .vehicles-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.blocket-latest-vehicles[data-columns="4"] .vehicles-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* ==========================================================================
   Vehicle Card
   ========================================================================== */

.vehicle-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.vehicle-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.vehicle-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.vehicle-image .no-image {
    color: #999;
    font-size: 14px;
}

.vehicle-details {
    padding: 20px;
}

.vehicle-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #333;
}

.vehicle-year {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.vehicle-specs .spec {
    font-size: 13px;
    color: #666;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.vehicle-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c5f2d;
    margin: 0;
}

/* ==========================================================================
   Vehicle Listing & Filters
   ========================================================================== */

.blocket-vehicle-listing {
    margin: 0px 0;
}

.vehicle-filters {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filters-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.filter-select,
.filter-group input[type="number"] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.filter-select:focus,
.filter-group input[type="number"]:focus {
    outline: none;
    border-color: #2c5f2d;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.btn-filter,
.btn-reset {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-filter {
    background: #2c5f2d;
    color: #fff;
    border: none;
}

.btn-filter:hover {
    background: #234d24;
}

.btn-reset {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.btn-reset:hover {
    background: #f5f5f5;
}

.results-header {
    margin-bottom: 30px;
}

.results-count {
    font-size: 16px;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    background: #f5f5f5;
}

.pagination .page-numbers.current {
    background: #2c5f2d;
    color: #fff;
    border-color: #2c5f2d;
}

/* ==========================================================================
   Single Vehicle Page
   ========================================================================== */

.blocket-single-vehicle {
    margin: 40px 0;
}

.vehicle-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f5f5f5;
}

.vehicle-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #333;
}

.vehicle-year {
    font-size: 24px;
    color: #666;
    font-weight: 400;
}

.vehicle-price .price {
    font-size: 28px;
    font-weight: 700;
    color: #2c5f2d;
}

.vehicle-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 968px) {
    .vehicle-content {
        grid-template-columns: 1fr;
    }
}

/* Gallery */
.vehicle-gallery {
    position: sticky;
    top: 20px;
}

.gallery-main {
    width: 100%;
    height: 400px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail.active {
    border-color: #2c5f2d;
}

.thumbnail:hover {
    border-color: #2c5f2d;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

/* Vehicle Info */
.vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #333;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #f5f5f5;
}

.specs-table th,
.specs-table td {
    padding: 12px 0;
    text-align: left;
}

.specs-table th {
    font-weight: 600;
    color: #666;
    width: 40%;
}

.specs-table td {
    color: #333;
}

.vehicle-description {
    line-height: 1.6;
    color: #666;
}

.equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.equipment-list li {
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.equipment-list li:before {
    content: "✓ ";
    color: #2c5f2d;
    font-weight: 700;
    margin-right: 6px;
}

.contact-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.btn-contact {
    display: inline-block;
    padding: 12px 30px;
    background: #2c5f2d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-top: 15px;
}

.btn-contact:hover {
    background: #234d24;
}

/* ==========================================================================
   Search Bar
   ========================================================================== */

.blocket-search-bar {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.search-form .search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.search-field select,
.search-field input[type="number"] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.search-field select:focus,
.search-field input[type="number"]:focus {
    outline: none;
    border-color: #2c5f2d;
}

.btn-search {
    padding: 10px 24px;
    background: #2c5f2d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-search:hover {
    background: #234d24;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-filter,
    .btn-reset {
        width: 100%;
    }
    
    .vehicle-title {
        font-size: 24px;
    }
    
    .vehicle-price .price {
        font-size: 22px;
    }
    
    .search-form .search-fields {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c5f2d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ==========================================================================
   Bootstrap Enhancements - PB Bilar Brand Colors
   Primary: #C9002C (Red)
   Secondary: #000000 (Black)
   ========================================================================== */

/* Sidebar Filters - Modern Design */
.filters-sidebar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filters-sidebar h3 {
    background: #f8f9fa;
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    border-radius: 8px 8px 0 0;
}

.filters-sidebar form {
    padding: 20px;
}

.filter-section {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-size: 0.9rem;
    color: #000000;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.filter-section select,
.filter-section input[type="text"],
.filter-section input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.filter-section select:focus,
.filter-section input:focus {
    border-color: #C9002C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 0, 44, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.filter-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-actions .btn-filter {
    background: #C9002C;
    color: #ffffff;
    border: none;
}

.filter-actions .btn-filter:hover {
    background: #a50024;
}

.filter-actions .btn-reset {
    background: #ffffff;
    color: #666;
    border: 1px solid #e2e8f0;
}

.filter-actions .btn-reset:hover {
    background: #f8f9fa;
    border-color: #C9002C;
    color: #C9002C;
}

.filters-sidebar .form-select,
.filters-sidebar .form-control {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 6px;
    padding: 10px 12px;
    transition: border-color 0.2s ease;
}

.filters-sidebar .form-select:focus,
.filters-sidebar .form-control:focus {
    border-color: #C9002C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 0, 44, 0.1);
}

.filters-sidebar .form-check-label {
    color: #333333;
    font-weight: 500;
}

.filters-sidebar .form-check-input {
    border: 1px solid #e2e8f0;
}

.filters-sidebar .form-check-input:checked {
    background-color: #ffffff;
    border-color: #ffffff;
}

.filters-sidebar .btn-primary {
    background: #C9002C;
    color: #ffffff;
    border: none;
    font-weight: 700;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filters-sidebar .btn-primary:hover {
    background: #a50024;
    color: #ffffff;
}

.filters-sidebar .btn-outline-secondary {
    color: #666666;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filters-sidebar .btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #C9002C;
    color: #C9002C;
}

/* Vehicle Cards - Premium Design */
.vehicle-card .card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.vehicle-card .card-img-top {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 220px;
    object-fit: cover;
}

.vehicle-card .card:hover .card-img-top {
    transform: scale(1.08);
}

.vehicle-card .card-body {
    padding: 20px;
}

.vehicle-card .vehicle-meta {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 10px;
}

.vehicle-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.3;
}

.vehicle-card .text-primary {
    color: #C9002C !important;
    font-size: 1.25rem;
    font-weight: 800;
}

.vehicle-card .text-dark {
    color: #4a5568 !important;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Results Header */
.results-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3748;
    position: relative;
    padding-bottom: 15px;
}

.results-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #C9002C, #000000);
    border-radius: 2px;
}

/* Single Vehicle Page - Premium Design */
.blocket-single-vehicle .display-5 {
    font-weight: 800;
    color: #2d3748;
    letter-spacing: -0.5px;
}

.blocket-single-vehicle .lead {
    color: #718096;
    font-weight: 500;
}

.blocket-single-vehicle .carousel-item img {
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blocket-single-vehicle .img-thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px;
}

.blocket-single-vehicle .img-thumbnail:hover {
    border-color: #C9002C;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 0, 44, 0.3);
}

.blocket-single-vehicle .card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
}

.blocket-single-vehicle .card-body {
    padding: 15px;
}

.blocket-single-vehicle .card-title {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.15rem;
    margin-bottom: 15px;
}

.blocket-single-vehicle .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(201, 0, 44, 0.05);
}

.blocket-single-vehicle .table td.fw-bold {
    color: #4a5568;
    font-weight: 600;
}

/* Price Card - Consistent with other cards */
.blocket-single-vehicle .card:first-child {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: none;
}

.blocket-single-vehicle .card:first-child .card-title {
    color: #2d3748;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.blocket-single-vehicle .card:first-child h2 {
    color: #000000 !important;
    font-weight: 800;
}

.blocket-single-vehicle .card:first-child .text-primary {
    color: var(--primary-color, #C9002C) !important;
    font-weight: 700;
}

.blocket-single-vehicle .card:first-child .btn-primary {
    background: var(--primary-color, #C9002C);
    color: #ffffff;
    border: none;
    font-weight: 700;
    padding: 14px;
    font-size: 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.blocket-single-vehicle .card:first-child .btn-primary:hover {
    background: var(--secondary-color, #000000);
}

.blocket-single-vehicle .card:first-child .btn-outline-primary {
    color: var(--primary-color, #C9002C);
    border: 2px solid var(--primary-color, #C9002C);
    background: #ffffff;
    font-weight: 600;
}

.blocket-single-vehicle .card:first-child .btn-outline-primary:hover {
    background: var(--primary-color, #C9002C);
    color: #ffffff;
}

/* Financing Calculator - Modern Style */
#financing-calculator .form-range {
    cursor: pointer;
    height: 8px;
    background: linear-gradient(90deg, #C9002C, #000000);
    border-radius: 10px;
}

#financing-calculator .form-range::-webkit-slider-thumb {
    background: #C9002C;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(201, 0, 44, 0.4);
}

#financing-calculator .form-range::-moz-range-thumb {
    background: #C9002C;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(201, 0, 44, 0.4);
}

#financing-calculator .alert-info {
    background: linear-gradient(135deg, rgba(201, 0, 44, 0.08), rgba(0, 0, 0, 0.08));
    border: 2px solid #C9002C;
    border-radius: 12px;
    padding: 12px;
}

#financing-calculator .mb-3 {
    margin-bottom: 0.75rem !important;
}

#monthly-payment {
    color: #C9002C;
    font-weight: 800;
    font-size: 1.75rem;
}

#financing-calculator .form-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

#financing-calculator .form-label span {
    color: #C9002C;
    font-weight: 700;
}

#financing-calculator .small {
    font-size: 0.825rem;
}

/* Equipment List with Icons */
.blocket-single-vehicle .list-unstyled li {
    padding: 8px 0;
    transition: all 0.3s ease;
}

.blocket-single-vehicle .list-unstyled li:hover {
    padding-left: 10px;
    color: #C9002C;
}

.blocket-single-vehicle .bi-check-circle-fill {
    color: #48bb78;
    font-size: 1.1rem;
}

/* Equipment - Show More/Less */
.equipment-container.collapsed .equipment-item:nth-child(n+9) {
    display: none;
}

.equipment-toggle-btn {
    margin-top: 15px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.equipment-toggle-btn:hover {
    transform: translateY(-1px);
}

/* FAQ Accordion - Modern Style */
.accordion-button {
    font-weight: 600;
    color: #2d3748;
    padding: 16px 20px;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(201, 0, 44, 0.08), rgba(0, 0, 0, 0.08));
    color: #C9002C;
    border-color: #C9002C;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(201, 0, 44, 0.2);
    border-color: #C9002C;
}

.accordion-item {
    border: 2px solid #e2e8f0;
    border-radius: 10px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

/* Reserve Modal - Premium */
#reserveModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#reserveModal .modal-header {
    background: linear-gradient(135deg, #C9002C, #000000);
    color: #ffffff;
    border-radius: 16px 16px 0 0;
    padding: 20px 24px;
}

#reserveModal .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}

#reserveModal .btn-close {
    filter: brightness(0) invert(1);
}

#reserveModal .form-label {
    font-weight: 600;
    color: #4a5568;
}

#reserveModal .form-control:focus {
    border-color: #C9002C;
    box-shadow: 0 0 0 3px rgba(201, 0, 44, 0.2);
}

#reserveModal .modal-footer .btn-primary {
    background: linear-gradient(135deg, #C9002C, #000000);
    border: none;
    padding: 12px 30px;
    font-weight: 700;
}

/* Sticky Sidebar */
@media (min-width: 992px) {
    .sticky-top {
        top: 20px;
    }
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .filters-sidebar {
        margin-bottom: 30px;
    }
    
    .blocket-single-vehicle .carousel-item img {
        height: 300px !important;
    }
    
    .blocket-single-vehicle .display-5 {
        font-size: 1.75rem;
    }
}

/* Cursor pointer for interactive elements */
.cursor-pointer {
    cursor: pointer;
}

/* Custom button styles - PB Bilar */
.btn-primary {
    background: #C9002C;
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #a50024;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 0, 44, 0.3);
}

.btn-outline-primary {
    color: #C9002C;
    border: 2px solid #C9002C;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: #C9002C;
    border-color: #C9002C;
    color: #ffffff;
}

/* Vehicle Grid Spacing */
.row-cols-1 > *, .row-cols-md-2 > *, .row-cols-lg-3 > * {
    margin-bottom: 2rem;
}

/* Pagination Styles - Modern & Clean */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    color: #4a5568;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin: 0;
    min-width: 40px;
    text-align: center;
}

.pagination .page-link:hover {
    background: #C9002C;
    color: #ffffff;
    border-color: #C9002C;
}

.pagination .page-item.active .page-link {
    background: #C9002C;
    border-color: #C9002C;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(201, 0, 44, 0.3);
}

.pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    border-color: #e2e8f0;
    color: #cbd5e0;
}

/* Hide excessive page numbers on mobile */
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: 36px;
    }
}

/* Mobile Filter Button - Fixed at bottom */
.mobile-filter-btn {
    position: fixed;
    bottom: -2px;
    right: 0px;
    z-index: 1000;
    background: #C9002C;
    color: #ffffff;
    border: none;
    border-radius: 0;
    padding: 15px 25px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(201, 0, 44, 0.4);
    transition: all 0.3s 
ease;
}

.mobile-filter-btn:hover {
    background: #a50024;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(201, 0, 44, 0.6);
}

.mobile-filter-btn i {
    margin-right: 8px;
}

@media (min-width: 992px) {
    .mobile-filter-btn {
        display: none !important;
    }
}

/* Mobile Offcanvas Filters */
.mobile-filters-offcanvas.offcanvas-bottom {
    height: 93vh !important;
    border-radius: 20px 20px 0 0 !important;
}

.mobile-filters-offcanvas .offcanvas-header {
    background: #ffffff;
    color: #000000;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 2px;
    flex-shrink: 0;
}

.mobile-filters-offcanvas .offcanvas-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.mobile-filters-offcanvas .btn-close {
    opacity: 1;
}

.mobile-filters-offcanvas .offcanvas-body {
    padding: 20px;
    padding-bottom: 50px !important;
    overflow-y: auto;
    background: #ffffff;
}

.mobile-filters-offcanvas .filters-form {
    display: block !important;
}

.mobile-filters-offcanvas .filter-section {
    display: block !important;
    margin-bottom: 1rem;
}

.mobile-filters-offcanvas .filter-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.mobile-filters-offcanvas .form-control,
.mobile-filters-offcanvas .form-select {
    display: block !important;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.mobile-filters-offcanvas .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.mobile-filters-offcanvas .offcanvas-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #000000;
}

.mobile-filters-offcanvas .btn-close {
    opacity: 1;
}

.mobile-filters-offcanvas .offcanvas-body {
    padding: 20px;
    overflow-y: auto;
    background: #ffffff;
}

.mobile-filters-offcanvas .filter-section {
    margin-bottom: 1.5rem;
}

.mobile-filters-offcanvas .filter-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
}

.mobile-filters-offcanvas .form-control,
.mobile-filters-offcanvas .form-select {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #000000;
}

/* Checkbox Styling - Fixed visibility */
.filters-sidebar .form-check-input,
.mobile-filters-offcanvas .form-check-input {
    width: 1.25em;
    height: 1.25em;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters-sidebar .form-check-input:checked,
.mobile-filters-offcanvas .form-check-input:checked {
    background-color: #C9002C;
    border-color: #C9002C;
}

.filters-sidebar .form-check-input:focus,
.mobile-filters-offcanvas .form-check-input:focus {
    border-color: #C9002C;
    box-shadow: 0 0 0 3px rgba(201, 0, 44, 0.2);
}

.filters-sidebar .form-check-label,
.mobile-filters-offcanvas .form-check-label {
    margin-left: 8px;
    cursor: pointer;
    user-select: none;
}

/* Sort Filter in Header */
.sort-filter .form-select-sm {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 32px 6px 12px;
    font-size: 0.9rem;
}

.sort-filter .form-select-sm:focus {
    border-color: #C9002C;
    box-shadow: 0 0 0 3px rgba(201, 0, 44, 0.1);
}

/* Sticky filter btn */
#mobileFilters > div.offcanvas-body > form > div.d-grid.gap-2.mb-3 > button {
    position: absolute;
    z-index: 99999 !important;
    bottom: 0;
    width: 100%;
    left: 0;
    border-radius: 0 !IMPORTANT;
    padding: 12px;
    font-weight: 700;
}


/* Hide excessive page numbers on mobile */

/* Loading Animation - Enhanced */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #C9002C;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

a {
    transition: all 0.3s ease;
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Remove custom scrollbar - use browser default */

