/**
 * RV Search Component - v1.1.7
 * Fixed: Active page highlighting more prominent
 */

:root {
    --rs-primary: #0e4552;
    --rs-towbar: #083c49;
    --rs-secondary: #2d7a7a;
    --rs-accent: #21b9a7;
    --rs-light: #f8fafb;
    --rs-border: #e2e8f0;
    --rs-text: #1a202c;
    --rs-text-muted: #64748b;
    --rs-safe: #22c55e;
    --rs-caution: #f59e0b;
    --rs-over: #ef4444;
}

/* Main Layout */
.rv-search-v1 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* =========================================
   Vehicle Banner - Compact Design
   ========================================= */
.rs-vehicle-banner {
    background: linear-gradient(135deg, var(--rs-primary) 0%, #1a5f6e 100%);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: white;
}

.rs-vehicle-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.rs-vehicle-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.rs-vehicle-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-vehicle-stats {
    font-size: 0.8rem;
    opacity: 0.9;
    white-space: nowrap;
}

.rs-stat-sep {
    opacity: 0.5;
    margin: 0 0.25rem;
}

.rs-change-vehicle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s;
}

.rs-change-vehicle:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* Mobile Vehicle Banner - Extra Compact */
@media (max-width: 991px) {
    .rs-vehicle-banner {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .rs-vehicle-icon {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .rs-vehicle-title {
        font-size: 0.8rem;
    }
    
    .rs-vehicle-stats {
        font-size: 0.7rem;
    }
    
    .rs-change-vehicle {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* =========================================
   Page Header (H1 + Description)
   ========================================= */
.rs-page-header {
    margin-bottom: 0.75rem;
}
.rs-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--rs-text);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}
.rs-page-desc {
    font-size: 0.85rem;
    color: var(--rs-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   Results Bar - Consolidated Single Row
   ========================================= */
.rs-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.rs-results-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.rs-results-count {
    font-size: 0.9rem;
    color: var(--rs-text);
    white-space: nowrap;
}

.rs-results-count strong {
    color: var(--rs-accent);
    font-weight: 700;
}

.rs-bar-sep {
    color: var(--rs-border);
    font-weight: 300;
}

.rs-active-pills {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.rs-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.375rem 0.25rem 0.5rem;
    background: var(--rs-primary);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.rs-pill-x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 3px;
    color: white;
    font-size: 0.55rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.rs-pill-x:hover {
    background: rgba(255,255,255,0.35);
}

.rs-clear-link {
    font-size: 0.75rem;
    color: var(--rs-text-muted);
    text-decoration: none;
    white-space: nowrap;
}

.rs-clear-link:hover {
    color: var(--rs-primary);
    text-decoration: underline;
}

.rs-results-right {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.rs-results-right label {
    font-size: 0.8rem;
    color: var(--rs-text-muted);
}

.rs-results-right select {
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--rs-border);
    border-radius: 5px;
    font-size: 0.8rem;
    background: white;
}

/* =========================================
   Mobile Controls
   ========================================= */
.rs-mobile-controls {
    display: none;
}

@media (max-width: 991px) {
    .rs-layout {
        grid-template-columns: 1fr;
        padding: 0 0.75rem;
    }
    
    .rs-sidebar {
        display: none;
    }
    
    .rs-results-bar {
        display: none !important;
    }
    
    .rs-page-header {
        margin-bottom: 0.5rem;
    }
    .rs-page-title {
        font-size: 1.15rem;
    }
    .rs-page-desc {
        font-size: 0.8rem;
    }
    
    .rs-mobile-controls {
        display: block;
        margin-bottom: 0.75rem;
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    
    .rs-mobile-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--rs-border);
    }
    
    .rs-mobile-count {
        font-size: 0.95rem;
        color: var(--rs-text);
    }
    
    .rs-mobile-count strong {
        color: var(--rs-accent);
        font-weight: 700;
    }
    
    .rs-btn-open-filters {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        font-weight: 600;
        background: var(--rs-primary);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
    }
    
    .rs-btn-open-filters .filter-badge {
        background: var(--rs-accent);
        color: white;
        font-size: 0.7rem;
        padding: 0.125rem 0.375rem;
        border-radius: 10px;
        font-weight: 700;
    }
    
    .rs-mobile-sort-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: #f8fafc;
    }
    
    .rs-mobile-sort-row label {
        font-size: 0.8rem;
        color: var(--rs-text-muted);
    }
    
    .rs-mobile-sort-row select {
        flex: 1;
        padding: 0.5rem 0.625rem;
        font-size: 0.85rem;
        border: 1px solid var(--rs-border);
        border-radius: 6px;
        background: white;
    }
}

/* =========================================
   Sidebar - Dark Theme
   ========================================= */
.rs-sidebar {
    position: sticky;
    top: 1rem;
}

.rs-filter-form {
    background: var(--rs-primary);
    border-radius: 12px;
    padding: 1.25rem;
    color: white;
}

.rs-filter-modal-overlay {
    display: none;
}

.rs-close-modal {
    display: none;
}

.rs-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.rs-sidebar-header h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rs-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rs-reset-link {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.rs-reset-link:hover {
    color: white;
}

/* Keyword Search Group */
.rs-keyword-group {
    margin-bottom: 1rem;
}

.rs-keyword-wrap {
    display: flex;
    gap: 0.5rem;
}

.rs-keyword-wrap input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    color: white;
}

.rs-keyword-wrap input::placeholder {
    color: rgba(255,255,255,0.6);
}

.rs-keyword-wrap input:focus {
    outline: none;
    border-color: var(--rs-accent);
}

.rs-keyword-btn {
    padding: 0.625rem 0.875rem;
    background: var(--rs-accent);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.rs-keyword-btn:hover {
    background: #1ca897;
}

/* Filter Groups */
.rs-filter-group {
    margin-bottom: 0.75rem;
}

.rs-filter-group select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.rs-filter-group select option {
    background: var(--rs-primary);
    color: white;
}

.rs-filter-group select:focus {
    outline: none;
    border-color: var(--rs-accent);
    box-shadow: 0 0 0 2px rgba(33, 185, 167, 0.2);
}

/* FIXED: Disabled dropdown - more readable text */
.rs-filter-group select:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    color: rgba(255,255,255,0.85);
    background-color: rgba(255,255,255,0.05);
}

/* Slider Groups */
.rs-slider-group .rs-filter-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rs-slider-group .rs-filter-label i {
    margin-right: 0.35rem;
}

.rs-range-display {
    color: var(--rs-accent);
    font-weight: 600;
}

/* Dual Range Slider */
.rs-dual-slider {
    position: relative;
    height: 20px;
    margin-top: 0.5rem;
}

.rs-dual-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    top: 8px;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.rs-dual-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid var(--rs-accent);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.rs-dual-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid var(--rs-accent);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.rs-slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    top: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.rs-filter-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 1rem 0;
}

.rs-filter-actions {
    display: none;
}

/* =========================================
   Mobile Filter Modal
   ========================================= */
@media (max-width: 991px) {
    .rs-sidebar.modal-open {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        background: transparent;
    }
    
    .rs-sidebar.modal-open .rs-filter-modal-overlay {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
    }
    
    .rs-sidebar.modal-open .rs-filter-form {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        overflow-y: auto;
        padding: 1rem;
        padding-bottom: 100px;
        animation: slideUp 0.25s ease;
    }
    
    @keyframes slideUp {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    
    .rs-sidebar.modal-open .rs-close-modal {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.1);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 1.1rem;
        cursor: pointer;
    }
    
    .rs-sidebar.modal-open .rs-filter-actions {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        background: var(--rs-primary);
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 10000;
    }
    
    .rs-btn-apply {
        width: 100%;
        padding: 0.875rem;
        background: var(--rs-accent);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
    }
    
    body.filter-modal-active {
        overflow: hidden;
    }
}

/* =========================================
   Card Layout — Desktop (Concept D: GVWR Anchor)
   ========================================= */
.rs-results-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid var(--rs-border);
}

/* Mobile cards hidden on desktop */
.rs-mcard { display: none; }

/* Mobile add button - base styles (parent hidden on desktop) */
.rs-mcard-add {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1.5px solid var(--rs-accent);
    background: white;
    color: var(--rs-accent);
    font-size: 0.75rem;
    flex-shrink: 0;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    text-decoration: none;
    line-height: 1;
    box-sizing: border-box;
}
.rs-mcard-add:hover,
.rs-mcard-add:active {
    background: var(--rs-accent);
    color: white;
    text-decoration: none;
}
.rs-mcard-add.active {
    border-color: var(--rs-accent);
    color: white;
    background: var(--rs-towbar);
    text-decoration: none;
}

/* Desktop card row */
.rs-card {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--rs-border);
    transition: background 0.15s;
}
.rs-card:last-of-type { border-bottom: none; }
.rs-card:hover { background: #f8fffe; }

/* GVWR left block */
.rs-card-gvwr {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    border-right: 1px solid var(--rs-border);
    background: #e8f4f2;
    flex-shrink: 0;
    gap: 0.1rem;
}
.rs-card-gvwr-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rs-primary);
    line-height: 1.1;
}
.rs-card-gvwr-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--rs-text-muted);
    letter-spacing: 0.05em;
    font-weight: 500;
}
.rs-card-gvwr i {
    font-size: 0.7rem;
    margin-top: 0.15rem;
}

/* Body area */
.rs-card-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    min-width: 0;
}

/* Image */
.rs-card-img {
    flex-shrink: 0;
    width: 72px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
}
.rs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info area */
.rs-card-info {
    flex: 1;
    min-width: 0;
}
.rs-card-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--rs-text);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rs-card-title:hover { color: var(--rs-accent); }

/* Pills */
.rs-card-pills,
.rs-mcard-pills {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
}
.rs-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.125rem 0.45rem;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid;
}
.rs-pill i { font-size: 0.58rem; opacity: 0.7; }
.rs-pill-class { background: #eff6ff; color: #3b82f6; border-color: #dbeafe; }
.rs-pill-sleeps { background: #fef3c7; color: #d97706; border-color: #fde68a; }
.rs-pill-length { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.rs-pill-slides { background: #faf5ff; color: #9333ea; border-color: #e9d5ff; }

/* Stats block (Dry/Hitch/MPG) */
.rs-card-stats {
    display: flex;
    gap: 1.25rem;
    flex-shrink: 0;
    padding-right: 0.5rem;
}
.rs-card-stat {
    text-align: center;
    min-width: 50px;
}
.rs-stat-label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rs-text-muted);
    font-weight: 500;
    margin-bottom: 0.1rem;
}
.rs-stat-val {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--rs-text);
}

/* Actions column */
.rs-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 0.75rem;
    border-left: 1px solid var(--rs-border);
    flex-shrink: 0;
}
.rs-card-add-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    border: 1.5px solid var(--rs-accent);
    background: white;
    color: var(--rs-accent);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: inherit;
}
.rs-card-add-btn:hover {
    background: var(--rs-accent);
    color: white;
}
.rs-card-add-btn.active {
    border-color: var(--rs-accent);
    color: white;
    background: var(--rs-towbar);
}
.rs-card-add-btn.active:hover {
    background: var(--rs-primary);
    color: white;
    border-color: var(--rs-accent);
}
.rs-card-garage-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1.5px solid var(--rs-primary);
    background: white;
    color: var(--rs-primary);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rs-card-garage-btn:hover {
    background: var(--rs-primary);
    color: white;
}

/* Compatibility Colors — Desktop */
.rs-card.compat-safe { background: rgba(34, 197, 94, 0.04); }
.rs-card.compat-caution { background: rgba(245, 158, 11, 0.04); }
.rs-card.compat-over { background: rgba(239, 68, 68, 0.04); }
.rs-card.compat-safe:hover { background: rgba(34, 197, 94, 0.08); }
.rs-card.compat-caution:hover { background: rgba(245, 158, 11, 0.08); }
.rs-card.compat-over:hover { background: rgba(239, 68, 68, 0.08); }

.rs-card-gvwr.compat-safe .rs-card-gvwr-val { color: var(--rs-safe); }
.rs-card-gvwr.compat-safe i { color: var(--rs-safe); }
.rs-card-gvwr.compat-caution .rs-card-gvwr-val { color: var(--rs-caution); }
.rs-card-gvwr.compat-caution i { color: var(--rs-caution); }
.rs-card-gvwr.compat-over .rs-card-gvwr-val { color: var(--rs-over); }
.rs-card-gvwr.compat-over i { color: var(--rs-over); }

/* Default (no vehicle) GVWR stays primary on light tint */
.rs-card-gvwr .rs-card-gvwr-val { color: var(--rs-primary); }

/* =========================================
   Mobile Cards (Concept A: Stat Bar)
   ========================================= */
@media (max-width: 991px) {
    /* Hide desktop cards, show mobile cards */
    .rs-card { display: none !important; }
    .rs-mcard { display: block; }
    
    .rs-results-container {
        background: transparent;
        border: none;
        box-shadow: none;
        gap: 0.5rem;
    }
    
    .rs-mcard {
        background: white;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid var(--rs-border);
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }
    .rs-mcard-top {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.65rem 0.75rem;
        overflow: hidden;
    }
    .rs-mcard-img {
        flex-shrink: 0;
        width: 56px;
        height: 40px;
        border-radius: 6px;
        overflow: hidden;
        background: #f1f5f9;
    }
    .rs-mcard-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .rs-mcard-info {
        min-width: 0;
        overflow: hidden;
    }
    .rs-mcard-title {
        font-weight: 600;
        font-size: 0.82rem;
        color: var(--rs-text);
        text-decoration: none;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .rs-mcard-title:hover { color: var(--rs-accent); }
    .rs-mcard-pills {
        display: flex;
        gap: 0.25rem;
        margin-top: 0.2rem;
        flex-wrap: wrap;
    }
    .rs-mcard-pills .rs-pill {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }
    .rs-mcard-pills .rs-pill i { font-size: 0.5rem; }
    
    /* Stat bar */
    .rs-mcard-stats {
        display: flex;
        background: #f8fafc;
        border-top: 1px solid var(--rs-border);
    }
    .rs-mcard-stat {
        flex: 1;
        text-align: center;
        padding: 0.4rem 0.25rem;
        border-right: 1px solid var(--rs-border);
    }
    .rs-mcard-stat:last-child { border-right: none; }
    .rs-mstat-label {
        display: block;
        font-size: 0.58rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--rs-text-muted);
        font-weight: 500;
    }
    .rs-mstat-val {
        font-weight: 600;
        font-size: 0.82rem;
        color: var(--rs-text);
    }
    .rs-mstat-gvwr { color: var(--rs-accent); }
    .rs-mcard-stat i {
        font-size: 0.55rem;
        margin-left: 0.1rem;
    }
    
    /* Mobile compat colors */
    .rs-mcard.compat-safe { border-left: 3px solid var(--rs-safe); }
    .rs-mcard.compat-caution { border-left: 3px solid var(--rs-caution); }
    .rs-mcard.compat-over { border-left: 3px solid var(--rs-over); }
    .rs-mstat-gvwr.compat-safe { color: var(--rs-safe); }
    .rs-mstat-gvwr.compat-caution { color: var(--rs-caution); }
    .rs-mstat-gvwr.compat-over { color: var(--rs-over); }
}

/* =========================================
   Pagination
   ========================================= */
.rs-pagination {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.rs-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.rs-pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--rs-border);
    border-radius: 8px;
    background: white;
    color: var(--rs-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.rs-pagination .page-item .page-link:hover {
    background: var(--rs-light);
    border-color: var(--rs-accent);
}

.rs-pagination .page-item.active .page-link {
    background: #21b9a7 !important;
    border-color: #21b9a7 !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(33, 185, 167, 0.4);
}

.rs-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.rs-pagination .pagination-info {
    font-size: 0.85rem;
    color: var(--rs-text-muted);
}

/* =========================================
   Empty State
   ========================================= */
.rs-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
}

.rs-empty-icon {
    font-size: 4rem;
    color: var(--rs-border);
    margin-bottom: 1rem;
}

.rs-empty-state h3 {
    font-size: 1.25rem;
    color: var(--rs-text);
    margin-bottom: 0.5rem;
}

.rs-empty-state p {
    color: var(--rs-text-muted);
    margin-bottom: 1.5rem;
}

.rs-btn-reset {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--rs-accent);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.rs-btn-reset:hover {
    background: #1ca897;
    color: white;
}

/* =========================================
   Toast Notifications
   ========================================= */
.rs-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rs-toast {
    padding: 0.875rem 1.25rem;
    background: var(--rs-primary);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.rs-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.rs-toast.error {
    background: var(--rs-over);
}

.rs-toast i {
    margin-right: 0.5rem;
}

/* =========================================
   Text utilities
   ========================================= */
.text-center {
    text-align: center;
}
