/* =====================================
   MintRV Library PDP - CONSOLIDATED CSS
   Cleaned & Organized Version
   ===================================== */

/* ===========================================
   TABLE OF CONTENTS
   ===========================================
   1. BASE COMPONENTS
      - Breadcrumbs
      - Badges & Chips
   
   2. SPEC COMPONENTS
      - Spec Rows (shared)
      - Spec Cards
      - Spec Values & Labels
      - Spec Actions
      - Spec Shop (expandable)
   
   3. MOBILE SPEC SYSTEM
      - Mobile Spec Cards
      - Mobile Spec Grid
      - Mobile Column Headers
      - Mobile Expandable Details
   
   4. VEHICLE ICONS
   
   5. PDP GALLERY
      - Thumbnails
      - Media Box
      - Modal
   
   6. RV SPECS SUMMARY
   
   7. TOW GAUGE / CALCULATOR
      - Tow Bar & Segments
      - RV Marker
      - Tow Calculator Card
   
   8. AFFILIATE SYSTEM
      - Affiliate Slider
      - Affiliate Cards
      - Affiliate Carousel
      - Hero Affiliate
      - PDP Featured Products
   
   9. SPECS ACCORDION
   
   10. SPECS WRAPPER & SIDEBAR
       - Desktop Sidebar Navigation
       - Mobile Category Slider
       - Content Area
       - Specs Table
   
   11. BEST SELLERS
   
   12. MOTORHOME HERO STATS
   
   13. SEARCH CONTEXT
   
   14. UTILITY CLASSES
   
   15. RESPONSIVE / MOBILE OVERRIDES
   
   16. ANIMATIONS
   =========================================== */


/* ===========================================
   1. BASE COMPONENTS
   =========================================== */

/* Breadcrumbs */
.breadcrumb-item {
    font-size: .8rem;
}

/* Badges & Chips */
.badge.text-bg-light {
    padding: 0.5em 0.8em;
    font-size: 0.9rem;
    line-height: 1.2;
    border-radius: 0.375rem;
}

.badge.spec-chip,
.spec-chip {
    color: #212529;
    background-color: #f8f9fa;
    padding: .55rem .75rem;
    border-radius: .5rem;
    display: inline-block;
    border: 1px solid #e5e7eb;
    font-size: .9rem;
    line-height: 1.2;
}

.spec-chip b {
    margin-right: .35rem;
}


/* ===========================================
   2. SPEC COMPONENTS
   =========================================== */

/* Spec Rows - Shared Base */
.spec-row {
    position: relative;
    border-bottom: 1px solid #efefef;
    padding: .5rem 0;
}

@media (min-width: 768px) {
    .spec-row {
        
        align-items: center;
        gap: 1rem;
    }
    
    .spec-label-wrap {
        flex: 1;
    }
    
    .spec-card .card-body {
        padding: 1.25rem 1.5rem;
    }
}

/* Spec Labels */
.spec-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Spec Values - Base */
.spec-value {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.3;
    white-space: normal;
}

/* Spec Actions */
.spec-actions a {
    white-space: nowrap;
}

.spec-action {
    white-space: nowrap;
}

.spec-action .btn {
    min-width: 85px;
    padding: 6px 10px;
}

/* Spec Cards */
.spec-card {
    font-size: .8rem;
}

.spec-card .dl-row {
    border-bottom: 1px solid #eee;
    padding: .6rem 0;
    margin: 0;
}

.spec-card dt {
    font-weight: 600;
    color: #6c757d;
    margin: 0;
}

.spec-card dd {
    margin: 0;
    text-align: right;
}

.spec-card .card-body {
    padding: 1rem 1.25rem;
}

.card-body .text-dark {
    font-size: .8rem !important;
}

/* Spec Shop - Expandable Product Area */
.spec-shop {
    display: none;
    background: #f8f9fa;
    border-left: 3px solid #e3e3e3;
    border-right: 3px solid #e3e3e3;
    border-bottom: 3px solid #e3e3e3;
    border-radius: 0 0 .5rem .5rem;
    padding: 1rem;
    margin-top: -1px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.spec-shop.show {
    display: block;
}

.spec-shop .row {
    margin: 0;
}

.spec-shop .product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: .5rem;
    padding: .75rem;
    text-align: left;
    height: 100%;
    transition: transform 0.15s ease;
}

.spec-shop .product-card:hover {
    transform: translateY(-2px);
}

.spec-shop .product-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.spec-shop .product-price {
    font-size: 0.9rem;
    color: #333;
}

.spec-shop .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Info Tip */
.info-tip {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #9a3412;
}


/* ===========================================
   3. MOBILE SPEC SYSTEM
   =========================================== */

/* Mobile Spec Card - Base */
.mobile-spec-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: .5rem .7rem;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.mobile-spec-card.popular-spec {
    background: #fefce8;
    border-left: 3px solid #f57c00;
    border-color: #fbbf24;
}

.mobile-spec-card.expanded {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile Spec Grid */
.mobile-spec-grid {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto auto;
    gap: 8px;
    align-items: start;
}

/* Mobile Spec Row (3-Column) */
.mobile-spec-row {
    display: grid;
    grid-template-columns: 1fr 100px 50px;
    gap: 8px;
    padding: 0px;
    align-items: center;
}

/* Mobile Spec Info */
.mobile-spec-info,
.spec-info {
    min-width: 120px;
    word-break: normal;
}

.mobile-spec-name,
.spec-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 4px;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
}

.mobile-spec-name {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.mobile-spec-value {
    font-size: 14px;
    font-weight: 700;
    color: #1a3a45;
    line-height: 1.2;
    word-break: break-word;
}

.mobile-spec-unit {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-left: 2px;
}

/* Mobile Spec Buy */
.mobile-spec-buy {
    display: flex;
    justify-content: center;
}

.mobile-buy-btn {
    font-size: 10px !important;
    padding: 6px 8px !important;
    white-space: normal !important;
    word-wrap: break-word;
    text-align: center;
    max-width: 100%;
    min-width: 80px;
    border-radius: 6px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

/* Mobile Spec Expand */
.mobile-spec-expand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.expand-label {
    font-size: 9px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.expand-toggle-btn {
    background: #fff2cc;
    border: 2px solid #ffa42f;
    color: #ffa42f;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.expand-toggle-btn:hover,
.expand-toggle-btn:focus {
    background: #fff2cc;
    outline: none;
}

.expand-toggle-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.mobile-spec-card.expanded .expand-toggle-btn i {
    transform: rotate(180deg);
}

.mobile-spec-card.expanded .expand-toggle-btn {
    background: #fff2cc;
    color: #ffa344;
}

/* Mobile Column Headers */
.mobile-column-headers {
    display: grid;
    grid-template-columns: 1fr 100px 50px;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-header-specs,
.mobile-header-buy,
.mobile-header-more {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-header-buy,
.mobile-header-more {
    text-align: center;
}

/* Mobile Intro Section */
.specs-mobile-intro {
    padding: 16px 16px 8px;
    background: #fff;
}

.specs-mobile-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a45;
    margin: 0 0 4px 0;
}

.specs-mobile-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Mobile Tip Box */
.specs-mobile-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 10px 16px;
    margin: 12px 16px 16px;
    border-radius: 4px;
    font-size: 12px;
    color: #5a4a0e;
}

.specs-mobile-tip .tip-icon {
    font-size: 16px;
    flex-shrink: 0;
    color: #f57c00;
}

.specs-mobile-tip .tip-icon i,
.specs-mobile-tip .tip-text i {
    color: #f57c00;
}

.specs-mobile-tip .tip-text {
    line-height: 1.4;
}

.specs-mobile-tip .tip-text i {
    margin-right: 2px;
}

/* Mobile Expandable Details */
.mobile-spec-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    border-top: 0 solid #e0e0e0;
}

.mobile-spec-card.expanded .mobile-spec-details {
    max-height: 800px;
    border-top-width: 1px;
    transition: max-height 0.4s ease-in;
}

.mobile-spec-details-inner {
    padding: 16px 12px;
}

/* Why This Matters Box */
.why-this-matters {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.why-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.why-title i {
    color: #2d5f6f;
    font-size: 14px;
}

.why-text {
    font-size: 13px;
    color: #444;
    line-height: 1.55;
}

/* Guide Link Card */
.guide-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8fa 100%);
    border: 2px solid #2d5f6f;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.guide-link-card:hover,
.guide-link-card:focus {
    background: linear-gradient(135deg, #d8eef3 0%, #e5f3f8 100%);
    text-decoration: none;
}

.guide-icon {
    background: #2d5f6f;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-icon i {
    font-size: 16px;
}

.guide-content {
    flex: 1;
    min-width: 0;
}

.guide-label {
    display: block;
    font-size: 10px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.guide-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1a3a45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guide-arrow {
    color: #2d5f6f;
    flex-shrink: 0;
}

.guide-arrow i {
    font-size: 16px;
}

/* Mobile Product Card */
.mobile-product-card {
    background: #fff;
    border: 2px solid #2d5f6f;
    border-radius: 8px;
    padding: 14px;
}

.mobile-product-card .product-badge {
    display: inline-block;
    background: #2d5f6f;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.mobile-product-card .product-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a3a45;
    margin-bottom: 8px;
    line-height: 1.3;
}

.mobile-product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mobile-product-card .product-rating i {
    font-size: 12px;
}

.mobile-product-card .merchant {
    font-size: 11px;
    color: #666;
    margin-left: 6px;
}

.mobile-product-card .product-actions {
    display: flex;
    gap: 8px;
}

.mobile-product-card .product-btn-buy {
    flex: 1.5;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
}

.mobile-product-card .product-btn-shop {
    flex: 1;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
}

/* Mobile Specs Cards Container */
.mobile-specs-cards {
    padding: 1rem .2rem;
}

/* Mobile Spec Card Header */
.spec-card-header {
    margin-bottom: 0.75rem;
}

.mobile-spec-actions {
    margin-top: 0.75rem;
}


/* ===========================================
   4. VEHICLE ICONS
   =========================================== */

.vehicle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    width: 36px;
    height: 36px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
}

.vehicle-icon i {
    font-size: 1.25rem;
    color: #3b82f6;
}

/* Vehicle Type Colors */
.vehicle-card[data-type="suv"] .vehicle-icon i {
    color: #10b981;
}

.vehicle-card[data-type="truck"] .vehicle-icon i {
    color: #3b82f6;
}

.vehicle-card[data-type="hd-truck"] .vehicle-icon i {
    color: #ef4444;
}


/* ===========================================
   5. PDP GALLERY
   =========================================== */

.pdp-gallery .thumb-row img.thumb {
    cursor: pointer;
    transition: transform .2s, border-color .2s;
}

.pdp-gallery .thumb-row img.thumb:hover {
    transform: scale(1.05);
    border-color: #198754;
}

.pdp-gallery .thumb-row img.thumb.active {
    border: 2px solid #198754;
}

/* Media Box */
.media-box {
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: zoom-in;
}

.media-box img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    display: block;
}

.media-box.is-plan img {
    object-fit: contain;
    background-color: #f8f9fa;
}

.media-box:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

@media (min-width: 992px) {
    .media-box {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
}

.ratio-4x3 {
    aspect-ratio: 4 / 3;
}

.media-caption {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* RV Gallery Modal */
#rvGalleryModal,
#rvGalleryModal .modal-content {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.modal.show {
    display: block !important;
    opacity: 1 !important;
}

#rvGalleryModal .modal-body {
    background: transparent !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

#rvGalleryModal img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}


/* ===========================================
   6. RV SPECS SUMMARY
   =========================================== */

.rv-specs-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.spec-block {
    text-align: center;
    padding: 0.5rem;
    border-right: 1px solid #e5e7eb;
}

.spec-block:last-child {
    border-right: none;
}

/* Specs CTA Link */
.specs-cta {
    text-align: center;
    margin-top: 1rem;
}

.specs-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.specs-link:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    color: white;
}

.specs-link i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.specs-link:hover i {
    transform: translateY(2px);
}

/* Specs Horizontal Layout */
.specs-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.spec-item {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 0.5rem;
}


/* ===========================================
   7. TOW GAUGE / CALCULATOR
   =========================================== */

.tow-gauge {
    background: #f7f4e4;
    border: 1px solid #e9ecef;
    border-radius: .75rem;
}

.tow-bar {
    height: 44px;
    border-radius: .5rem;
    overflow: hidden;
    position: relative;
    font-size: .85rem;
    line-height: 1.2;
}

.tow-segment {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    font-weight: 600;
}

.tow-segment small {
    font-weight: 400;
    font-size: .7rem;
}

.tow-segment.suv {
    background: #c0392b;
}

.tow-segment.half-ton {
    background: #e67e22;
}

.tow-segment.threeq-ton {
    background: #27ae60;
}

.tow-segment.one-ton {
    background: #16a085;
}

/* Tow Marker */
.tow-marker {
    --marker-pos: 50%;
    position: absolute;
    left: var(--marker-pos);
    transform: translateX(-50%);
    bottom: 0;
}

.tow-marker .tow-line {
    width: 2px;
    height: 50px;
    background: #173542;
    border-radius: 2px;
}

.tow-text {
    margin-top: 4.5rem !important;
}


@media (max-width: 575px) {
    .rv-image {
        width: 75px;
    }
}



.tow-gauge .tow-text {
    margin-top: 4.5rem !important;
}

.tow-gauge .rv-image {
    width: 105px;
    height: auto;
}

/* Tow Calculator Card */
.tow-calculator-card {
        background: linear-gradient(339deg, #0a4c5f 0%, #0d596f 100%);
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    padding: 0px !important;
    margin: 0px auto 2rem;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(45, 95, 111, 0.3);
    overflow: hidden;
}

.tow-calculator-card .motorhome-hero-stats,
.tow-calculator-card .motorhome-power-section {
    margin: 50px 50px !important;
}

.tow-card-header {
    padding: 2rem 2rem 0rem;
    text-align: center;
}

.tow-card-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.tow-card-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0.5rem 0 0;
    font-weight: 400;
}

.tow-card-body {
    padding: 2rem;
}



.gvwr-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.gvwr-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gvwr-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gvwr-value {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
}

/* Tow Scale */
.tow-scale-container {
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 80px;
}

.tow-scale {
    display: flex;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scale-segment {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.scale-segment.suv {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.scale-segment.half-ton {
    background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
}

.scale-segment.three-quarter-ton {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.scale-segment.one-ton {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}

.scale-label {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}



/* RV Position Container */
.rv-position-container {
    position: absolute;
    width: 100%;
    height: 80px;
    top: 89px;
    left: 0;
}


/* Recommended Vehicles */
.recommended-vehicles {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.recommended-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #86efac;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.check-icon {
    flex-shrink: 0;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.vehicle-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.875rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: white;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-check-availability,
.btn-schedule-tour {
    display: block;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-check-availability {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #1a3a2e;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.btn-check-availability:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

.btn-schedule-tour {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-schedule-tour:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.no-data-message {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 1rem;
    padding: 2rem;
}


/* ===========================================
   8. AFFILIATE SYSTEM
   =========================================== */

/* Affiliate Slider/Products Container */
.affiliate-slider,
.affiliate-products {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.75rem 0;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

/* Affiliate Card - Consolidated */
.affiliate-card {
    flex: 0 0 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.affiliate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Affiliate Thumb */
.affiliate-thumb {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    overflow: hidden;
}

.affiliate-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease;
}

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

/* Affiliate Info */
.affiliate-info {
    flex-grow: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.affiliate-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    color: #222;
    min-height: 2.2em;
}

.affiliate-meta {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.5rem;
}

/* Buy Button */
.affiliate-info .btn-buy,
.affiliate-card .btn-buy {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #009688;
    color: #009688;
    background-color: transparent;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.affiliate-info .btn-buy:hover,
.affiliate-card .btn-buy:hover {
    background: #009688;
    color: #fff;
}

.affiliate-card .merchant-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
}

/* Affiliate List */
.affiliate-list ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: .9rem;
}

.affiliate-list li {
    margin: .25rem 0;
}

/* Hero Affiliate */
#hero-affiliate h6 {
    display: inline-block;
    padding-top: .25rem;
}

.affiliate-slider.top-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .75rem;
    overflow-x: auto;
    padding: .25rem 0;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    transform: scale(.85);
    transform-origin: top;
}

.pop-upgrades {
    text-align: center;
}

/* Affiliate Carousel */
.affiliate-carousel {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    visibility: visible !important;

    transform: translateY(10px);
    transition: all 0.4s ease-in-out;
}

.affiliate-carousel.visible {
    opacity: 1;
    transform: translateY(0);
}

.affiliate-carousel .affiliate-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.affiliate-carousel .affiliate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.affiliate-carousel .affiliate-card .card {
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.affiliate-carousel .affiliate-card .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.affiliate-carousel .slick-prev,
.affiliate-carousel .slick-next {
    background: #0b2a38;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.affiliate-carousel .slick-prev:before,
.affiliate-carousel .slick-next:before {
    color: #fff;
    font-size: 16px;
}

.affiliate-carousel .slick-slide {
    display: flex;
    justify-content: center;
}

.affiliate-carousel .slick-track {
    display: flex;
    align-items: stretch;
}

/* Affiliate Rating Stars */
.affiliate-card .text-warning {
    letter-spacing: 1px;
    color: #f5b400 !important;
    font-size: 0.95rem;
}

/* Affiliate Merchant Label */
.affiliate-card .text-muted {
    font-size: 0.85rem;
}

/* Affiliate Outline Button */
.affiliate-card .btn-outline-primary {
    border-color: #00b5ad;
    color: #00b5ad;
    font-weight: 500;
}

.affiliate-card .btn-outline-primary:hover {
    background-color: #00b5ad;
    color: #fff;
}

/* Affiliate Header */
.affiliate-header {
    text-align: left;
    padding: 0 0 0.25rem 0;
}

.affiliate-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0b2a38;
    margin-bottom: 0.25rem;
}

.affiliate-header p.affiliate-subtext {
    color: #5b6770;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.affiliate-buttons {
    background-color: #f7f5e6;
}

/* Deal Badge */
.deal-badge {
    background: #f59e0b;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Popular Badge */
.popular-badge {
    color: #f57c00;
    margin-right: 4px;
}

.popular-badge i {
    font-size: 14px;
}

.popular-tow-header{color: #fff; }
/* ===========================================
   9. SPECS ACCORDION
   =========================================== */

#specsAccordion .accordion-button:not(.collapsed) {
    color: #ffffff;
    background-color: #0b2a38;
}

#specsAccordion .accordion-item {
    margin: 5px 0px;
    border: none;
}

#specsAccordion .accordion-button {
    border-radius: 10px;
    background-color: #eeeeee;
}

#specsAccordion .btn-primary {
    background: linear-gradient(180deg, #3ca86b 0%, #2e8654 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
}

.accordion-body {
    padding: 0px !important;
    background-color: #e7f1f5;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
}

.accordion-body .card {
    --bs-card-bg: #ffffff96;
}

.accordion-body .btn-outline-info {
    --bs-btn-color: #454545 !important;
    --bs-btn-border-color: #454545 !important;
}

/* Desktop/Mobile Toggle */
@media (min-width: 768px) {
    .spec-card {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .spec-table {
        display: none;
    }
    
    .spec-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
    }
    
    .spec-card .fw-semibold {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
    
    .spec-card .text-muted {
        font-size: 0.85rem;
    }
    
    .toggle-spec-shop {
        font-size: 0.85rem;
        padding: 0.3rem 0.75rem;
    }
}

#more-specs-link a {
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: nowrap;
}


/* ===========================================
   10. SPECS WRAPPER & SIDEBAR
   =========================================== */

/* Main Wrapper */
.specs-wrapper {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    position: relative;
}

/* Desktop Sidebar Navigation */
.specs-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    height: fit-content;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.specs-sidebar-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.specs-sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.specs-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.specs-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    font-size: 0.95rem;
}

.specs-nav-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateX(4px);
}

.specs-nav-item.active {
    background: #2d5f6f;
    border-color: #2d5f6f;
    color: #ffffff;
}

.specs-nav-item.active .nav-item-icon {
    color: #10b981;
}

.specs-nav-item.active .nav-item-badge {
    background: #ffffff;
    color: #2d5f6f;
}

.nav-item-icon {
    font-size: 1.25rem;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.specs-nav-item.active .nav-item-icon {
    transform: rotate(90deg);
}

.nav-item-text {
    flex: 1;
    font-weight: 600;
}

.nav-item-badge {
    background: #e5e7eb;
    color: #6b7280;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Sidebar Tip Box */
.specs-sidebar-tip {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    border: 1px solid #fbbf24;
}

.tip-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tip-content {
    font-size: 0.875rem;
    color: #78350f;
    line-height: 1.5;
}

.tip-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* Sidebar CTA Button */
.specs-sidebar-cta {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.875rem 1rem;
    background: #10b981;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.specs-sidebar-cta:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Mobile Category Slider */
.specs-category-slider {
    margin-bottom: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1rem;
}

.category-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.slider-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.slider-arrow:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-arrow svg,
.slider-arrow i {
    width: 20px;
    height: 20px;
    font-size: 14px;
}

.category-tabs-container {
    flex: 1;
    overflow-x: auto;
    display: flex;
    gap: 0.5rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs-container::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-tab:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.category-tab.active {
    background: #2d5f6f;
    border-color: #2d5f6f;
    color: #ffffff;
}

.tab-label {
    font-weight: 600;
    font-size: 0.875rem;
}

.tab-count {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-weight: 700;
}

.category-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Content Area */
.specs-content-area {
    flex: 1;
    min-width: 0;
}

.specs-category-panel {
    display: none;
}

.specs-category-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Category Header */
.category-header {
    background: linear-gradient(135deg, #2d5f6f 0%, #1e4a56 100%);
    border-radius: 12px 12px 0 0;
    padding: 1.5rem 2rem;
    margin-bottom: 0;
}

.category-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.category-icon {
    font-size: 2rem;
}

.shop-all-btn {
    background: #10b981;
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.shop-all-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Specifications Table */
.specs-table-wrapper {
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.specs-table {
    margin: 0;
    width: 100%;
    table-layout: auto;
}

.specs-table thead th {
    background: #f9fafb;
    color: #6b7280;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}
/* Desktop Table Column Alignment */
.specs-table {
    table-layout: fixed;
    width: 100%;
}

.specs-table th.spec-col {
    width: 22%;
    text-align: left;
}

.specs-table th.value-col {
    width: 13%;
    text-align: left;
}

.specs-table th.buy-col {
    width: 25%;
    text-align: center;
}

.specs-table th.shop-col {
    width: 22%;
    text-align: center;
}

.specs-table th.top5-col {
    width: 18%;
    text-align: center;
}


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

.specs-table tbody tr:hover {
    background: #f9fafb;
}

.specs-table tbody td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.specs-table .btn-primary , .mobile-spec-buy .btn-success{
    background: #fff2cc;
    border-color: #ffa42f;
    color: #27545e;
    font-weight: bold;
}

/* Table Column Widths */
.spec-col,
.spec-name-cell {
    width: 26%;
    min-width: 190px;
}

.value-col,
.spec-value-cell {
    width: 18%;
}

.spec-value-cell > div {
    display: inline-flex;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

.spec-value-cell .spec-value {
    font-size: 0.95rem;
    flex-shrink: 0;
    min-width: 100px;
    color: #6b7280;
}

.buy-col,
.shop-col,
.top5-col {
    width: 18%;
    text-align: center;
}

.spec-actions {
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

.popular-spec {
    background: #fefce8;
}

.info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 50%;
    font-size: 0.75rem;
    cursor: help;
    margin-left: 0.5rem;
}

.action-btn {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 0.875rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


/* ===========================================
   11. BEST SELLERS
   =========================================== */

.category-best-sellers {
    background: #ffeeb9;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.best-sellers-header {
    text-align: center;
    margin-bottom: 2rem;
}

.best-sellers-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #084c5f;
    margin-bottom: 0.5rem;
}

.best-sellers-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* Affiliate Product Cards in Best Sellers */
.affiliate-product-card {
    transition: transform 0.2s ease;
}

.affiliate-product-card:hover {
    transform: translateY(-4px);
}

.affiliate-product-card .card {
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.affiliate-product-card .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
    width: 100%;
    height: 200px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    margin-bottom: 0.5rem;
}

.product-rating {
    color: #fbbf24;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.product-merchant {
    color: #6b7280;
    font-size: 0.75rem;
}


/* ===========================================
   12. MOTORHOME HERO STATS
   =========================================== */

.motorhome-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 2fr));
    gap: 24px;
    margin-bottom: 32px;
}

.motorhome-stat-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid #2d5f6f;
    text-align: center;
}

.motorhome-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.motorhome-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #718096;
    margin-bottom: 12px;
    display: block;
}

.motorhome-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #2d5f6f;
    margin-bottom: 6px;
    display: block;
}

.motorhome-stat-meta {
    font-size: 14px;
    color: #718096;
}

.motorhome-power-section {
    background: white;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.motorhome-section-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.motorhome-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.motorhome-power-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    padding: 28px;
    background: #f7fafc;
    border-radius: 10px;
    margin-bottom: 28px;
}

.motorhome-spec-item {
    text-align: center;
}

.motorhome-spec-value {
    font-size: 32px;
    font-weight: 700;
    color: #2d5f6f;
    display: block;
    margin-bottom: 6px;
}

.motorhome-spec-label {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.motorhome-range-estimator {
    background: linear-gradient(135deg, #ffeeb9 0%, #dece9a 100%);
    border-radius: 10px;
    padding: 28px;
    color: #084c5f;
}

.motorhome-range-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    opacity: 0.95;
}

.motorhome-range-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    height: 14px;
    margin-bottom: 14px;
    overflow: hidden;
}

.motorhome-range-fill {
    background: white;
    height: 100%;
    width: 75%;
    border-radius: 8px;
}

.motorhome-range-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    opacity: 0.9;
}

.motorhome-trip-calculator {
    background: white;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.motorhome-trip-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    border-bottom: 2px solid #e2e8f0;
}

.motorhome-trip-tab {
    padding: 14px 28px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.motorhome-trip-tab:hover {
    color: #2d5f6f;
}

.motorhome-trip-tab.active {
    color: #2d5f6f;
}

.motorhome-trip-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #2d5f6f;
}

.motorhome-trip-result {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    padding: 28px;
    background: #f7fafc;
    border-radius: 10px;
}

.motorhome-trip-metric {
    text-align: center;
}

.motorhome-metric-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
    font-weight: 600;
    display: block;
}

.motorhome-metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #2d5f6f;
    display: block;
}

.motorhome-disclaimer {
    margin-top: 24px;
    padding: 18px;
    background: #fffbeb;
    border-left: 4px solid #fbbf24;
    border-radius: 6px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
}

.motorhome-disclaimer strong {
    display: block;
    margin-bottom: 4px;
}


/* ===========================================
   13. SEARCH CONTEXT
   =========================================== */

.mintrv-search-context {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    margin: .5rem 0 1rem;
    background: #f7f9fb;
    border: 1px solid #e6eef5;
    border-radius: 10px;
    flex-wrap: wrap;
}

.mintrv-search-context .ctx-label {
    font-weight: 600;
    color: #2c3e50;
}

.mintrv-search-context .ctx-chips {
    display: flex;
    gap: .4rem;
    flex: 1 1 auto;
    min-width: 160px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mintrv-search-context .ctx-chip {
    display: inline-flex;
    align-items: center;
    padding: .2rem .5rem;
    border-radius: 999px;
    border: 1px solid #d5e2ee;
    background: #fff;
    font-size: .85rem;
}

.mintrv-search-context .ctx-back {
    margin-left: auto;
}


/* ===========================================
   14. PDP FEATURED PRODUCTS
   =========================================== */

#hero-affiliate {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 2rem 1.5rem !important;
    margin-bottom: 2rem;
    border: 1px solid #e0e7ed;
    box-shadow: 0 1px 3px rgba(74, 144, 164, 0.08);
}

#hero-affiliate h2.pop-upgrades {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1.5rem;
    text-align: left;
    letter-spacing: -0.02em;
    border-bottom: 2px solid #4a90a4;
    padding-bottom: 0.75rem;
    display: inline-block;
}

#hero-affiliate h2.pop-upgrades::before {
    content: '';
    display: none;
}

#hero-affiliate h2.pop-upgrades::after {
    content: 'SAVE BIG!';
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    background: #ffa333;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.75rem;
    vertical-align: middle;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pdp-featured-products {
    margin: 0 -0.5rem;
}

.pdp-featured-products > [class*='col-'] {
    padding: 0.5rem;
}

.pdp-featured-products .affiliate-card {
    background: #ffffff;
    border: 1px solid #e0e7ed;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pdp-featured-products .affiliate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(74, 144, 164, 0.12);
    border-color: #4a90a4;
}

.pdp-featured-products .affiliate-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.pdp-featured-products .affiliate-thumb {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
    overflow: hidden;
    position: relative;
    padding: 1rem;
    border-bottom: 1px solid #f0f2f5;
}

.pdp-featured-products .affiliate-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pdp-featured-products .affiliate-card:hover .affiliate-thumb img {
    transform: scale(1.04);
}

.pdp-featured-products .affiliate-info {
    padding: 1.25rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.pdp-featured-products .affiliate-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdp-featured-products .affiliate-card:hover .affiliate-title {
    color: #4a90a4;
}

.pdp-featured-products .affiliate-meta {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdp-featured-products .merchant {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pdp-featured-products .rating {
    color: #d97706;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #fef3c7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #fde68a;
}

/* Subtle Mode Alternative */
#hero-affiliate.subtle-mode {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 1.5rem 0 !important;
}

#hero-affiliate.subtle-mode h2.pop-upgrades {
    font-size: 1.25rem;
    border-bottom-width: 1px;
    color: #4a5568;
}

/* Accessibility */
.pdp-featured-products .affiliate-card:focus-within {
    outline: 2px solid #4a90a4;
    outline-offset: 2px;
}

.pdp-featured-products a:focus {
    outline: none;
}


/* ===========================================
   15. UTILITY CLASSES
   =========================================== */

.scroll-smooth {
    scroll-behavior: smooth;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* ===========================================
   16. RESPONSIVE / MOBILE OVERRIDES
   =========================================== */

/* RV Specs Summary Mobile */
@media (max-width: 768px) {
    .rv-specs-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .spec-block {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .spec-block:nth-child(odd) {
        border-right: 1px solid #e5e7eb;
    }
    
    .spec-block:nth-last-child(-n+2) {
        border-bottom: none;
    }
    
    .affiliate-card {
        flex: 0 0 180px;
    }
    
    .affiliate-slider.top-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-horizontal {
        gap: 1rem;
    }
    
    .spec-item {
        min-width: calc(50% - 0.5rem);
        flex: 0 0 calc(50% - 0.5rem);
    }
    
    .spec-value {
        font-size: 1.25rem;
    }
}

/* RV PDP Header */
@media (max-width: 768px) {
    .rv-pdp-header .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Tow Calculator Mobile */
@media (max-width: 768px) {
    .tow-calculator-card {
        border-radius: 12px;
        margin: 1rem;
    }
    
    .tow-card-title {
        font-size: 1.5rem;
    }
    
    .tow-card-body {
        padding: 1.5rem;
    }
    
    .scale-segment {
        padding: 0.5rem 0.25rem;
    }
    
    .scale-label {
        font-size: 0.75rem;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .gvwr-value {
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .vehicle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 993px) {
    .vehicle-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Motorhome Stats Mobile */
@media (max-width: 768px) {
    .motorhome-hero-stats {
        grid-template-columns: 1fr;
    }
    
    .motorhome-power-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .motorhome-trip-result {
        grid-template-columns: 1fr;
    }
    
    .motorhome-trip-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .motorhome-trip-tab {
        border-bottom: 2px solid #e2e8f0;
        text-align: left;
    }
    
    .motorhome-trip-tab.active::after {
        left: 0;
        right: auto;
        width: 4px;
        height: 100%;
        bottom: 0;
    }
}

/* Specs Wrapper Responsive */
@media (min-width: 1400px) {
    .specs-sidebar {
        width: 320px;
    }
    
    .affiliate-carousel {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 1199px) {
    .specs-wrapper {
        gap: 1.5rem;
    }
    
    .specs-sidebar {
        width: 260px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .spec-actions .btn {
        font-size: 0.8125rem;
        padding: 0.4rem 0.75rem;
    }
}

@media (min-width: 992px) and (max-width: 1299px) {
    .spec-actions {
        gap: 0.5rem !important;
    }
    
    .spec-actions .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 991px) {
    .specs-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    .specs-navigation-container {
        width: 100%;
    }
    
    .category-header {
        border-radius: 12px 12px 0 0;
    }
    
    .specs-table-wrapper {
        border-radius: 0 0 12px 12px;
    }
    
    .affiliate-carousel {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .specs-table tbody td {
        padding: 1rem;
    }
    
    .spec-value-cell > div {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .spec-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Hero Section Mobile Reorder */
@media (max-width: 991.98px) {
    #sp-top {
        padding: 0px !important;
    }
    
    #hero-ads {
        display: none !important;
    }
    
    
    #sp-component .sp-column {
        display: flex;
        flex-direction: column;
    }
    
    #hero-photos {
        order: 1;
        width: 100%;
    }
    
    #tow-gauge-wrapper {
        order: 2;
        width: 100%;
    }
    #ratings-section{
        order: 3;
        width: 100%;
    }
    #hero-ads-mobile {
        order: 4;
        width: 100%;
    }
    
    .specs-wrapper {
        order: 5;
        width: 100%;
    }
    
    #rv-faq {
        order: 6;
        width: 100%;
    }
    
    .affiliate-disclaimer,
    .info-tip {
        order: 5;
        width: 100%;
    }
    
    .adsbygoogle {
        order: 6;
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    #hero-affiliate h2.pop-upgrades {
        font-size: 1.35rem;
    }
    
    .pdp-featured-products .affiliate-thumb {
        height: 180px;
    }
}

@media (max-width: 767.98px) {
    #hero-affiliate {
        padding: 1.5rem 1rem !important;
    }
    
    #hero-affiliate h2.pop-upgrades {
        font-size: 1.2rem;
        text-align: center;
    }
    
    #hero-affiliate h2.pop-upgrades::after {
        display: block;
        margin: 0.5rem auto 0;
    }
    
    .pdp-featured-products .affiliate-thumb {
        height: 160px;
    }
    
    .pdp-featured-products .affiliate-title {
        font-size: 0.9rem;
    }
    
    .specs-category-slider {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .category-header {
        padding: 1.25rem 1rem;
    }
    
    .category-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
    
    .shop-all-btn {
        width: 100%;
    }
    
    .category-best-sellers {
        padding: 1.5rem 1rem;
    }
    
    .best-sellers-header h3 {
        font-size: 1.5rem;
    }
    
    .affiliate-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-image-wrapper {
        height: 150px;
    }
}

@media (max-width: 640px) {
    .mintrv-search-context .ctx-back {
        width: 100%;
        text-align: center;
        margin-top: .25rem;
    }
}

@media (max-width: 575.98px) {
    .pdp-featured-products {
        margin: 0 -0.25rem;
    }
    
    .pdp-featured-products > [class*='col-'] {
        padding: 0.25rem;
    }
}

@media (max-width: 480px) {
    .rv-marker-image {
        width: 120px;  /* Still visible on small screens */
    }
    
    .rv-marker-line {
        height: 100px;
    }
    .specs-wrapper {
        margin: 1rem 0;
    }
    
    .category-tab {
        padding: 0.625rem 0.875rem;
    }
    
    .tab-label {
        font-size: 0.8125rem;
    }
    
    .category-title {
        font-size: 1.125rem;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .affiliate-carousel {
        grid-template-columns: 1fr;
    }
}

/* Mobile Spec Buttons Stacking */
@media (max-width: 380px) {
    .mobile-spec-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .spec-action .btn {
        width: 100%;
    }
}

/* Mobile Column Headers / Spec Row Responsive */
@media (max-width: 359px) {
    .mobile-spec-row {
        grid-template-columns: 1fr 85px 45px;
        gap: 6px;
        padding: 12px 10px;
    }
    
    .mobile-buy-btn {
        font-size: 9px !important;
        padding: 5px 6px !important;
        min-width: 70px;
        min-height: 36px;
    }
    
    .mobile-spec-value {
        font-size: 14px;
    }
    
    .expand-toggle-btn {
        width: 32px;
        height: 32px;
    }
    
    .mobile-column-headers {
        grid-template-columns: 1fr 85px 45px;
    }
}

@media (min-width: 414px) {
    .mobile-spec-row {
        grid-template-columns: 1fr 120px 45px;
    }
    
    .mobile-column-headers {
        grid-template-columns: 1fr 110px 55px;
        margin-bottom: .5rem;
    }
    
    .mobile-buy-btn {
        font-size: 11px !important;
        min-width: 95px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .rv-marker-image {
        width: 120px;  /* Visible on mobile */
    }
    
    .rv-marker-line {
        height: 90px;
    }
    .mobile-spec-row {
        grid-template-columns: 1fr 130px 60px;
        padding: 16px;
    }
    
    .mobile-column-headers {
        grid-template-columns: 1fr 130px 60px;
        padding: 12px 16px;
    }
    
    .mobile-spec-card {
        margin: 5px;
    }
    
    .mobile-spec-value {
        font-size: 14px;
    }
    
    .mobile-buy-btn {
        font-size: 12px !important;
        padding: 8px 10px !important;
        min-width: 115px;
    }
    
    .mobile-product-card .product-actions {
        gap: 12px;
    }
}


/* ===========================================
   17. ANIMATIONS
   =========================================== */

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transition Helpers */
.mobile-spec-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.expand-toggle-btn,
.mobile-buy-btn,
.product-btn-buy,
.product-btn-shop,
.guide-link-card {
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.mobile-buy-btn:active,
.product-btn-buy:active,
.product-btn-shop:active {
    transform: scale(0.97);
}


/* ===========================================
   18. PRINT STYLES
   =========================================== */

@media print {
    .mobile-spec-expand,
    .mobile-spec-details,
    .specs-mobile-tip {
        display: none !important;
    }
    
    .mobile-spec-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===========================================
   19. RATINGS SECTION STYLES
   =========================================== */

.ratings-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 32px;
    margin-bottom: 32px;
}

.ratings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.ratings-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f4f59;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ratings-title i {
    color: #f5a623;
}

.overall-score-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #166876, #0f4f59);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    min-width: 200px;
}

.overall-score-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.overall-score-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.overall-score-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.overall-score-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.overall-score-stars {
    color: #f5a623;
    font-size: 0.8rem;
}

.weight-class-badge {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Dimension Scores Grid */
.dimension-scores {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .dimension-scores {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .dimension-scores {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dimension-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.dimension-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.dimension-icon {
    width: 48px;
    height: 48px;
    background: #e8f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.dimension-icon i {
    font-size: 1.25rem;
    color: #166876;
}

.dimension-name {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
}

.dimension-score {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f4f59;
}

.dimension-score span {
    font-size: 1rem;
    font-weight: 400;
    color: #999;
}

.dimension-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}

.dimension-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
    background: #ffc107; /* default yellow */
}

.dimension-bar-fill.bar-high {
    background: #28a745;
}

.dimension-bar-fill.bar-mid {
    background: #ffc107;
}

.dimension-bar-fill.bar-low {
    background: #dc3545;
}

/* Pros & Cons */
.pros-cons-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .pros-cons-row {
        grid-template-columns: 1fr;
    }
}

.pros-box,
.cons-box {
    border-radius: 12px;
    padding: 20px;
}

.pros-box {
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.cons-box {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.pros-cons-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros-box .pros-cons-title {
    color: #28a745;
}

.cons-box .pros-cons-title {
    color: #dc3545;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag-pro {
    background: white;
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.tag-con {
    background: white;
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.pros-cons-text {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}


/* ===========================================
   20. COLLECTIONS BANNER STYLES
   =========================================== */

.collections-banner {
    background: linear-gradient(135deg, #e8f4f6 0%, #d4edda 100%);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
}

.collections-banner-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.collections-banner-icon {
    width: 40px;
    height: 40px;
    background: #166876;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.collections-banner-label {
    font-weight: 600;
    color: #0f4f59;
}

.collections-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.collection-badge {
    background: white;
    color: #166876;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #166876;
    transition: all 0.2s ease;
}

.collection-badge:hover {
    background: #166876;
    color: white;
}

.collection-badge i:last-child {
    font-size: 0.75rem;
    opacity: 0.7;
}


/* ===========================================
   21. ABOUT SECTION STYLES
   =========================================== */

.about-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 32px;
    margin-bottom: 32px;
}

.about-header {
    margin-bottom: 20px;
}

.about-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f4f59;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-title i {
    color: #166876;
}

.about-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 24px;
}

.about-description p {
    margin-bottom: 12px;
}

/* Standard Features Grid */
.standard-features-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.features-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f4f59;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.features-section-title i {
    color: #28a745;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-column h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #166876;
    padding-bottom: 8px;
    border-bottom: 2px solid #166876;
    margin-bottom: 12px;
}

.feature-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-column li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feature-column li i {
    color: #166876;
    margin-top: 3px;
    font-size: 0.75rem;
}

/* Floorplan Highlights */
.floorplan-highlights-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.highlights-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f4f59;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.highlights-section-title i {
    color: #166876;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

.highlight-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.highlight-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #166876;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.highlight-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f4f59;
    margin: 0 0 4px 0;
}

.highlight-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}


/* ===========================================
   22. COMPARISON SECTION STYLES (TABBED)
   =========================================== */

.comparison-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 32px;
    margin-bottom: 32px;
}

.comparison-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f4f59;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comparison-title i {
    color: #166876;
}

.comparison-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.comparison-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0;
}

.comparison-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.comparison-tab:hover {
    color: #166876;
}

.comparison-tab.active {
    color: #166876;
    border-bottom-color: #166876;
    font-weight: 600;
}

.comparison-context {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.compare-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .compare-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .compare-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .compare-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .compare-cards-grid {
        grid-template-columns: 1fr;
    }
}

.compare-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: all 0.2s ease;
}

.compare-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.compare-card.current {
    border-color: #166876;
    border-width: 2px;
}

.compare-card-badge {
    background: #166876;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 12px;
    text-align: center;
}

.compare-card-image {
    height: 100px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.compare-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-card-placeholder {
    color: #ccc;
    font-size: 2rem;
}

.compare-card-body {
    padding: 12px;
}

.compare-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #0f4f59;
    line-height: 1.3;
}

.compare-card-title a {
    color: inherit;
    text-decoration: none;
}

.compare-card-title a:hover {
    color: #166876;
}

.compare-card-subtitle {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 8px;
}

.compare-card-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.compare-card-score .score-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #166876;
}

.compare-card-score .score-value.excellent {
    color: #28a745;
}

.compare-card-score .score-value.good {
    color: #166876;
}

.compare-card-score .score-value.average {
    color: #f5a623;
}

.compare-card-score .score-label {
    font-size: 0.7rem;
    color: #999;
}

.compare-card-specs {
    font-size: 0.75rem;
    color: #666;
}

.compare-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid #f0f0f0;
}

.compare-spec-row:last-child {
    border-bottom: none;
}

.compare-spec-row .spec-val {
    font-weight: 500;
    color: #333;
}

.compare-card-link {
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 0.8rem;
    color: #166876;
    text-decoration: none;
    border-top: 1px solid #e9ecef;
    transition: background 0.2s ease;
}

.compare-card-link:hover {
    background: #e8f4f6;
}


/* ===========================================
   23. SCORE EXPLANATION / HOW WE SCORED
   =========================================== */

.score-explanation-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 32px;
    margin-bottom: 32px;
}

.score-explanation-header {
    margin-bottom: 20px;
}

.score-explanation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f4f59;
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-explanation-title i {
    color: #166876;
}

.score-explanation-intro {
    background: #e8f4f6;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.score-explanation-intro p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* Dimension Breakdown Accordion */
.dimension-breakdown {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.dimension-breakdown-header {
    padding: 16px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dimension-breakdown-header:hover {
    background: #f0f0f0;
}

.dimension-breakdown-header.active {
    background: #e8f4f6;
}

.dimension-breakdown-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dimension-breakdown-icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #166876;
}

.dimension-breakdown-name {
    font-weight: 600;
    color: #0f4f59;
}

.dimension-breakdown-score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dimension-breakdown-score .score-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f4f59;
}

.dimension-breakdown-score .score-max {
    font-size: 0.9rem;
    color: #999;
    font-weight: 400;
}

.score-indicator {
    width: 80px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.score-indicator-fill {
    height: 100%;
    border-radius: 3px;
}

.bar-low {
    background: #dc3545;
}

.bar-mid {
    background: #ffc107;
}

.bar-high {
    background: #28a745;
}

.breakdown-chevron {
    transition: transform 0.2s ease;
    color: #999;
}

.dimension-breakdown-body {
    padding: 20px;
    background: white;
    display: none;
}

.dimension-breakdown-body.show {
    display: block;
}

/* Score Calculation Table */
.score-calc-table {
    width: 100%;
    font-size: 0.9rem;
}

.score-calc-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.score-calc-row:last-child {
    border-bottom: none;
}

.score-calc-row.base-score {
    color: #666;
}

.score-calc-row.positive .calc-adjustment {
    color: #28a745;
    font-weight: 600;
}

.score-calc-row.negative .calc-adjustment {
    color: #dc3545;
    font-weight: 600;
}

.score-calc-row.final-score {
    background: #e8f4f6;
    margin: 12px -20px -20px;
    padding: 12px 20px;
    font-weight: 700;
    color: #0f4f59;
}

.calc-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-label i {
    font-size: 0.8rem;
}

.calc-label .spec-value {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
    margin-left: 4px;
}

/* Methodology Note */
.methodology-note {
    background: #fff9e6;
    border: 1px solid #ffd966;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.methodology-note > i {
    color: #cc9900;
    font-size: 1.1rem;
    margin-top: 2px;
}

.methodology-note-content h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #856404;
    margin: 0 0 4px 0;
}

.methodology-note-content p {
    font-size: 0.85rem;
    color: #856404;
    margin: 0;
    line-height: 1.5;
}

.methodology-note-content a {
    color: #856404;
    font-weight: 600;
}

.methodology-note-content a:hover {
    color: #5f4803;
}


/* ===========================================
   24. RESPONSIVE ADJUSTMENTS FOR NEW SECTIONS
   =========================================== */

@media (max-width: 768px) {
    .ratings-section,
    .about-section,
    .comparison-section,
    .score-explanation-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    .ratings-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .overall-score-card {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .comparison-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-tab {
        white-space: nowrap;
        padding: 10px 16px;
    }
}

@media (max-width: 576px) {
    .dimension-breakdown-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .dimension-breakdown-score {
        width: 100%;
        justify-content: space-between;
    }
    
    .score-indicator {
        flex: 1;
        max-width: 120px;
    }
}


/* ===========================================
   25. HERO FOOTER - SPECS + SCORE + BUTTON
   =========================================== */

.hero-footer {
    margin-top: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

/* Row 1: Specs in boxes */
.hero-specs-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.hero-spec-box {
    background: white;
    border-radius: 8px;
    padding: 14px 16px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.hero-spec-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.hero-spec-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f4f59;
}

/* Row 2: Score + Button */
.hero-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-score-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-score-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #166876, #0f4f59);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.hero-score-number {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.hero-score-max {
    font-size: 0.9rem;
    opacity: 0.85;
}

.hero-score-text .hero-score-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f4f59;
}

.hero-score-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-score-stars {
    color: #f5a623;
    font-size: 0.75rem;
}

.hero-score-meta a {
    font-size: 0.8rem;
    color: #166876;
    text-decoration: none;
}

.hero-score-meta a:hover {
    text-decoration: underline;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #166876;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.hero-cta-button:hover {
    background: #0f4f59;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-specs-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-actions-row {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .hero-score-inline {
        justify-content: center;
    }
    
    .hero-cta-button {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-footer {
        padding: 16px;
    }
    
    .hero-spec-box {
        padding: 12px;
    }
    
    .hero-spec-value {
        font-size: 1.1rem;
    }
    
    .hero-cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
/* ===========================================
   7. TOW GAUGE / CALCULATOR - UPDATED v1.0.4
   With vehicle capacity display, safety meter, 
   and simplified footer
   =========================================== */



.tow-calculator-card .motorhome-hero-stats,
.tow-calculator-card .motorhome-power-section {
    margin: 50px 50px !important;
}

/* Header */
.tow-card-header {
    padding: 1.5rem 2rem 0rem;
    text-align: center;
}

.tow-card-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.tow-card-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
    font-weight: 400;
}

/* Body */
.tow-card-body {
    padding: 1.5rem 2rem;
}

/* GVWR Display */
.gvwr-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    justify-content: center;
}

.gvwr-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    flex-shrink: 0;
}

.gvwr-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gvwr-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gvwr-value {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Tow Scale Container */
.tow-scale-container {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 90px;
}

.tow-scale {
    display: flex;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Scale Segments */
.scale-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scale-segment:hover {
    filter: brightness(1.1);
}

/* Segment Colors - Fallbacks (gradients set inline from DB) */
.scale-segment.suv {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.scale-segment.half_ton {
    background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
}

.scale-segment.three_quarter {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}

.scale-segment.one_ton {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
}

.scale-label {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}


/* RV Position Marker */
.rv-position-container {
    position: absolute;
    width: 100%;
    height: 90px;
    top: 50px;
    left: 0;
}

.rv-marker {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    margin-top: -50px;
}

.rv-marker-line {
    width: 3px;
    height: 70px;
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    margin-bottom: 2px;
}

.rv-marker-image {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    background: white;
    border-radius: 4px;
    padding: 3px;
}

/* Popular Tow Vehicles Section */
.popular-tow-vehicles {
    margin-top: 60px;
}

.popular-tow-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.popular-tow-header .check-icon {
    flex-shrink: 0;
}

/* Vehicle Grid - 2x2 with capacity */
.vehicle-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.vehicle-card-enhanced {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 14px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.vehicle-card-enhanced:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.vehicle-card-enhanced .vehicle-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-card-enhanced .vehicle-capacity {
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 500;
}

/* Safety Meter Section */
.safety-meter-section {
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 14px 16px;
}

.safety-meter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.safety-meter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.safety-meter-label i {
    color: #4ade80;
}

.safety-meter-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4ade80;
}

.safety-meter-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: visible;
    position: relative;
}

.safety-meter-fill {
    height: 100%;
    width: 80%;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    border-radius: 3px;
}

.safety-meter-marker {
    position: absolute;
    top: -3px;
    left: 80%;
    width: 2px;
    height: 12px;
    background: white;
    border-radius: 1px;
}

.safety-meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Footer with Towing Guide Link */
.tow-card-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tow-footer-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tow-footer-icon {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.tow-footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.tow-footer-text strong {
    color: white;
}

.tow-footer-link {
    color: #67d4e4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.tow-footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* Scale Segment Tooltips */
.scale-segment .segment-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #333;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    text-align: left;
}

.scale-segment .segment-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: white;
}

.scale-segment:hover .segment-tooltip {
    opacity: 1;
    visibility: visible;
}

.segment-tooltip-title {
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a3a45;
}

.segment-tooltip-examples {
    color: #666;
    line-height: 1.4;
    font-size: 0.75rem;
}
.scale-range {
        font-size: 0.8rem;
    }

/* ===========================================
   RESPONSIVE ADJUSTMENTS
   =========================================== */

@media (max-width: 991px) {
    .tow-calculator-card {
        border-radius: 15px;
        margin: 1rem 0;
    }
    
    .tow-card-header {
        padding: 1.25rem 1.5rem 0;
    }
    
    .tow-card-body {
        padding: 1.25rem 1.5rem;
    }
    
    .tow-card-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 767px) {
    .tow-card-header {
        padding: 1rem 1rem 0;
    }
    
    .tow-card-body {
        padding: 1rem;
    }
    
    .tow-card-footer {
        padding: 12px 16px;
    }
    
    .tow-card-title {
        font-size: 1.2rem;
    }
    
    .tow-card-subtitle {
        font-size: 0.8rem;
    }
    
    .gvwr-display {
        padding: 0.875rem 1rem;
    }
    
    .gvwr-value {
        font-size: 1.35rem;
    }
    
    .tow-scale {
        height: 44px;
    }
    
    .scale-label {
        font-size: 0.75rem;
    }
    
    .scale-range {
        font-size: 0.8rem;
    }
    
    .rv-marker-image {
        width: 120px;
    }
    
    .vehicle-grid-enhanced {
        gap: 8px;
    }
    
    .vehicle-card-enhanced {
        padding: 10px 12px;
    }
    
    .vehicle-card-enhanced .vehicle-name {
        font-size: 0.85rem;
    }
    
    .vehicle-card-enhanced .vehicle-capacity {
        font-size: 0.7rem;
    }
    
    .popular-tow-vehicles {
        margin-top: 50px;
    }
    
    .tow-footer-text {
        font-size: 0.8rem;
    }
    
    /* Hide tooltips on mobile */
    .scale-segment .segment-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .tow-card-title {
        font-size: 1.1rem;
    }
    
    .gvwr-value {
        font-size: 1.25rem;
    }
    
    .gvwr-icon {
        width: 40px;
        height: 40px;
    }
    
    .tow-scale {
        height: 40px;
    }
    
    .scale-label {
        font-size: 0.65rem;
    }
    
    .scale-range {
        font-size: 0.8rem;
    }
    
    .rv-marker-image {
        width: 120px;
    }
    
    .rv-marker-line {
        height: 90px;
    }
    
    .rv-position-container {
        height: 80px;
    }
    
    .popular-tow-vehicles {
        margin-top: 45px;
    }
}


/* ===========================================
   LEGACY SUPPORT - Keep old classes working
   =========================================== */

/* Map old classes to new structure */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.vehicle-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: white;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Old segment class names */
.scale-segment.half-ton {
    background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
}

.scale-segment.three-quarter-ton {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}
/* ===========================================
   AMAZON ENHANCED AFFILIATE SYSTEM
   Add this section to your library.css
   (after the existing AFFILIATE SYSTEM section)
   =========================================== */

/* ============================================
   AMAZON-ENHANCED PDP FEATURED PRODUCTS
   ============================================ */
.affiliate-card-new {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
}

.affiliate-card-new:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.affiliate-card-new a {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-deal {
    background: #cc0c39;
    color: #fff;
}

.badge-bestseller {
    background: #232f3e;
    color: #f7ca00;
}

.badge-viewed {
    background: #f3f3f3;
    color: #565959;
    border: 1px solid #d5d9d9;
}

/* Product Image for new cards */
.affiliate-card-new .product-image-wrapper {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.affiliate-card-new .product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Product Info for new cards */
.affiliate-card-new .product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.affiliate-card-new .product-title {
    font-size: 13px;
    font-weight: 500;
    color: #0f1111;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

/* Rating Row */
.product-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.product-stars {
    color: #de7921;
}

.product-stars i {
    font-size: 11px;
}

.product-rating-value {
    color: #de7921;
    font-weight: 600;
}

.product-review-count {
    color: #007185;
    font-size: 11px;
}

/* Price Row - Amazon style */
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin: 4px 0;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #0f1111;
}

.product-list-price {
    font-size: 13px;
    color: #565959;
    text-decoration: line-through;
}

.product-savings {
    font-size: 12px;
    color: #cc0c39;
    font-weight: 500;
}

/* Amazon-style CTA Button */
.product-cta {
    background: linear-gradient(180deg, #f7dfa5 0%, #f0c14b 100%);
    border: 1px solid #a88734;
    border-radius: 4px;
    padding: 8px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #111;
    margin-top: auto;
    transition: background 0.15s ease;
}

.affiliate-card-new:hover .product-cta {
    background: linear-gradient(180deg, #f5d78e 0%, #eeb933 100%);
}

/* Prime Badge */
.product-prime {
    font-size: 11px;
    color: #565959;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prime-badge {
    background: #232f3e;
    color: #00a8e1;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.5px;
}

/* ============================================
   SPECS TABLE - AMAZON PRICE BUTTONS
   ============================================ */
.btn-price-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, #f7dfa5 0%, #f0c14b 100%);
    border: 1px solid #a88734;
    border-radius: 6px;
    padding: 6px 12px;
    text-decoration: none !important;
    transition: all 0.15s ease;
    min-width: 90px;
}

.btn-price-cta:hover {
    background: linear-gradient(180deg, #f5d78e 0%, #eeb933 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    text-decoration: none !important;
    color: inherit;
}

.btn-price-cta .btn-price {
    font-size: 16px;
    font-weight: 700;
    color: #0f1111;
    line-height: 1.2;
}

.btn-price-cta .btn-label {
    font-size: 11px;
    color: #565959;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ============================================
   BEST SELLERS - AMAZON ENHANCED
   ============================================ */

/* Price display in Best Sellers cards */
.affiliate-product-card .bs-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 6px 0;
}

.affiliate-product-card .bs-price {
    font-size: 16px;
    font-weight: 700;
    color: #0f1111;
}

.affiliate-product-card .bs-list-price {
    font-size: 12px;
    color: #565959;
    text-decoration: line-through;
}

.affiliate-product-card .bs-savings {
    font-size: 11px;
    color: #cc0c39;
    font-weight: 500;
    display: block;
}

.affiliate-product-card .bs-reviews {
    font-size: 11px;
    color: #007185;
    margin-left: 4px;
}

/* Prime in Best Sellers */
.affiliate-product-card .product-prime {
    font-size: 10px;
    margin-top: 4px;
}

/* Amazon-style button for Best Sellers */
.btn-amazon {
    background: linear-gradient(180deg, #f7dfa5 0%, #f0c14b 100%) !important;
    border: 1px solid #a88734 !important;
    color: #0f1111 !important;
    font-weight: 500;
    transition: all 0.15s ease;
}

.btn-amazon:hover {
    background: linear-gradient(180deg, #f5d78e 0%, #eeb933 100%) !important;
    color: #0f1111 !important;
}

/* ============================================
   RESPONSIVE - AMAZON CARDS
   ============================================ */
@media (max-width: 767px) {
    .affiliate-card-new .product-image-wrapper {
        height: 120px;
        padding: 10px;
    }
    
    .affiliate-card-new .product-info {
        padding: 10px;
    }
    
    .affiliate-card-new .product-title {
        font-size: 12px;
        min-height: 32px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .product-cta {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .btn-price-cta {
        padding: 4px 8px;
        min-width: 70px;
    }
    
    .btn-price-cta .btn-price {
        font-size: 14px;
    }
    
    .affiliate-product-card .bs-price {
        font-size: 14px;
    }
}

/* ============================================
   MOBILE PRODUCT CARD - PRICE DISPLAY
   ============================================ */
.mobile-product-card .product-price-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.mobile-product-card .price-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f1111;
}

.mobile-product-card .rating-text {
    font-size: 12px;
    color: #de7921;
    font-weight: 600;
    margin-left: 4px;
}

.mobile-product-card .review-count {
    font-size: 11px;
    color: #007185;
}

/* Save RV Button */
.mintrv-save-rv-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 4px;
    color: #10b981;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.mintrv-save-rv-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}
.mintrv-save-rv-btn.saved {
    background: #10b981;
    color: #fff;
}
.mintrv-save-rv-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}
.mintrv-save-rv-btn svg {
    width: 12px;
    height: 12px;
}/* ===========================================
   TOW CHECKER v2.0 - OPTION D VISUAL BAR
   
   ADD THIS TO library.css after the existing 
   "TOW GAUGE / CALCULATOR" section (around line 4970)
   
   ALSO UPDATE these existing classes:
   - .rv-marker-image: change width from 100px to 120px (line ~4564)
   - .rv-marker-line: change height from 80px to 100px (line ~4556)
   - .rv-position-container: change height from 70px to 90px (line ~4539)
   =========================================== */


/* ===========================================
   TOW CHECKER HEADER & SAVE BUTTON
   =========================================== */
.tow-card-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tow-card-header-left h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.tow-card-header-left p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin: 0;
}

/* Save RV Button (in tow checker card) */
.tow-calculator-card .save-rv-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tow-calculator-card .save-rv-btn:hover {
    background: rgba(255,255,255,0.25);
}

.tow-calculator-card .save-rv-btn.saved {
    background: #ec4899;
    border-color: #ec4899;
}

.tow-calculator-card .save-rv-btn .heart-icon {
    font-size: 1rem;
}


/* ===========================================
   OPTION D: VISUAL COMPARISON BAR
   =========================================== */
.comparison-container {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Comparison Header - Two columns */
.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comparison-side {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comparison-side.right {
    justify-content: flex-end;
    text-align: right;
}

.comparison-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.comparison-info {
    display: flex;
    flex-direction: column;
}

.comparison-value {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.comparison-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
}

.comparison-label a {
    color: #67e8f9;
    text-decoration: none;
    margin-left: 0.5rem;
}

.comparison-label a:hover {
    text-decoration: underline;
}


/* ===========================================
   CAPACITY BAR (Option D visual bar)
   =========================================== */
.capacity-bar-container {
    position: relative;
    margin: 1rem 0;
}

.capacity-bar {
    height: 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    overflow: visible;
    position: relative;
}

.capacity-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.capacity-bar-fill.safe { 
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%); 
}

.capacity-bar-fill.caution { 
    background: linear-gradient(90deg, #eab308 0%, #facc15 100%); 
}

.capacity-bar-fill.over { 
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%); 
}

/* 80% Safe Limit Marker */
.safe-limit-marker {
    position: absolute;
    left: 80%;
    top: -6px;
    bottom: -6px;
    width: 2px;
    background: white;
    z-index: 2;
}

.safe-limit-label {
    position: absolute;
    left: 80%;
    top: -22px;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.9);
    color: #0d596f;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* RV Position Marker on Capacity Bar (circular marker) */
.rv-bar-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 3;
    transition: left 0.5s ease;
}

.rv-bar-marker i {
    font-size: 0.7rem;
    color: #0d596f;
}

/* Capacity Bar Labels */
.capacity-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
}


/* ===========================================
   RESULT STATUS MESSAGE
   =========================================== */
.result-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.result-status.safe {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.result-status.caution {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
}

.result-status.over {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.result-status i {
    font-size: 1.1rem;
}


/* ===========================================
   VEHICLE SELECTOR FORM
   =========================================== */
.vehicle-selector-form {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.vehicle-selector-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vehicle-selector-title i {
    color: #67e8f9;
}

.vehicle-selector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.vehicle-selector-grid .form-group {
    display: flex;
    flex-direction: column;
}

.vehicle-selector-grid label {
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-selector-grid select {
    padding: 0.65rem 0.75rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.vehicle-selector-grid select:focus {
    outline: none;
    border-color: #67e8f9;
    background: rgba(255,255,255,0.15);
}

.vehicle-selector-grid select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vehicle-selector-grid select option {
    background: #1a3a47;
    color: white;
}

.btn-check-vehicle {
    padding: 0.65rem 1.25rem;
    background: #3eb489;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-check-vehicle:hover {
    background: #2d8a68;
}

.btn-check-vehicle:disabled {
    background: rgba(255,255,255,0.2);
    cursor: not-allowed;
}

.browse-all-link {
    text-align: center;
    margin-top: 1rem;
}

.browse-all-link a {
    color: #67e8f9;
    font-size: 0.85rem;
    text-decoration: none;
}

.browse-all-link a:hover {
    text-decoration: underline;
}


/* ===========================================
   RECOMMENDED VEHICLES CHIPS
   =========================================== */
.recommended-vehicles {
    margin-top: 1.5rem;
}

.recommended-vehicles-title {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommended-vehicles-title i {
    color: #4ade80;
}

.vehicle-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vehicle-chip {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.2s;
}

.vehicle-chip:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.vehicle-chip .capacity {
    color: #4ade80;
    font-weight: 600;
    font-size: 0.75rem;
}


/* ===========================================
   TIP BOX (for caution state)
   =========================================== */
.tip-box {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    gap: 0.75rem;
}

.tip-box-icon {
    color: #facc15;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tip-box-content {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    line-height: 1.5;
}

.tip-box-content strong {
    color: white;
}


/* ===========================================
   ALT ACTIONS (for over capacity state)
   =========================================== */
.alt-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1rem 0;
}

.alt-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.alt-action-btn.primary {
    background: #3eb489;
    color: white;
}

.alt-action-btn.primary:hover {
    background: #2d8a68;
}

.alt-action-btn.secondary {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.alt-action-btn.secondary:hover {
    background: rgba(255,255,255,0.25);
}


/* ===========================================
   FEATURED SECTION
   =========================================== */
.featured-section {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.featured-section-title {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.featured-vehicle {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.featured-vehicle-image {
    width: 80px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
}

.featured-vehicle-info h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.featured-vehicle-info p {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    margin: 0;
}

.featured-vehicle-info .capacity {
    color: #4ade80;
    font-weight: 600;
}


/* ===========================================
   TOW CHECKER STATES
   =========================================== */
.tow-state {
    display: none;
}

.tow-state.active {
    display: block;
}

/* No vehicle state specific */
.no-vehicle-state .gvwr-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.no-vehicle-state .gvwr-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-vehicle-state .gvwr-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    display: block;
}

.no-vehicle-state .gvwr-value {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}


/* ===========================================
   SAFETY METER (in no-vehicle state)
   =========================================== */
.safety-meter-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.safety-meter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.safety-meter-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.safety-meter-label i {
    color: #3eb489;
}

.safety-meter-value {
    color: #4ade80;
    font-weight: 700;
    font-size: 0.9rem;
}

.safety-meter-bar {
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    position: relative;
    overflow: visible;
}

.safety-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 80%, #eab308 90%, #ef4444 100%);
    border-radius: 4px;
}

.safety-meter-marker {
    position: absolute;
    top: -4px;
    width: 3px;
    height: 16px;
    background: white;
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(255,255,255,0.5);
}

.safety-meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
}


/* ===========================================
   TOW CARD FOOTER
   =========================================== */
.tow-card-footer {
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.tow-footer-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.tow-footer-icon {
    color: #67e8f9;
    margin-top: 2px;
}

.tow-footer-text a,
.tow-footer-link {
    color: #67e8f9;
    text-decoration: none;
}

.tow-footer-text a:hover,
.tow-footer-link:hover {
    text-decoration: underline;
}


/* ===========================================
   LOADING SPINNER
   =========================================== */
.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: towchecker-spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes towchecker-spin {
    to { transform: rotate(360deg); }
}


/* ===========================================
   TOW CHECKER RESPONSIVE
   =========================================== */
@media (max-width: 767px) {
    .vehicle-selector-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .vehicle-selector-grid .form-group:nth-child(5) {
        grid-column: span 2;
    }
    
    .comparison-header {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .comparison-side.right {
        justify-content: flex-start;
        text-align: left;
    }
    
    .comparison-value {
        font-size: 1.25rem;
    }
    
    .alt-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vehicle-selector-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicle-selector-grid .form-group:nth-child(5) {
        grid-column: span 1;
    }
    
    .tow-card-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .tow-calculator-card .save-rv-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ═══════════════════════════════════════════════════════════════════
   OPTION B: UNIFIED ALERT BOX STYLES
   Add these styles to library.css
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   COMPARISON ROW (Shared by all states)
   ───────────────────────────────────────────────────────────────── */
.comparison-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comp-side {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comp-side.right {
    flex-direction: row;
}

.comp-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.comp-icon.rv {
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
}

.comp-icon.vehicle {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.comp-info {
    display: flex;
    flex-direction: column;
}

.comp-info.right-align {
    text-align: right;
}

.comp-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.comp-value.safe { color: #4ade80; }
.comp-value.caution { color: #facc15; }
.comp-value.over { color: #f87171; }

.comp-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.change-link {
    color: #60a5fa;
    text-decoration: none;
}

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

/* ─────────────────────────────────────────────────────────────────
   CAPACITY BAR
   ───────────────────────────────────────────────────────────────── */
.capacity-bar-wrap {
    margin-bottom: 12px;
}

.capacity-bar {
    height: 8px;
    background: #1e3a4a;
    border-radius: 4px;
    position: relative;
    overflow: visible;
}

.capacity-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.capacity-fill.safe {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
}

.capacity-fill.caution {
    background: linear-gradient(90deg, #22c55e 0%, #facc15 80%, #facc15 100%);
}

.capacity-fill.over {
    background: linear-gradient(90deg, #22c55e 0%, #facc15 60%, #ef4444 100%);
}

.safe-marker {
    position: absolute;
    top: -4px;
    left: 80%;
    width: 2px;
    height: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1px;
}

.bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────────
   UNIFIED ALERT BOX (Option B)
   ───────────────────────────────────────────────────────────────── */
.alert-box {
    border-radius: 10px;
    padding: 14px;
    margin: 12px 0;
}

.alert-box.caution {
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.alert-box.over {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.alert-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-box.caution .alert-icon {
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
}

.alert-box.over .alert-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.alert-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.alert-box.caution .alert-title {
    color: #facc15;
}

.alert-box.over .alert-title {
    color: #f87171;
}

.alert-text {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.4;
    margin-bottom: 12px;
}

/* ─────────────────────────────────────────────────────────────────
   UPGRADE PILLS (Two buttons side by side)
   ───────────────────────────────────────────────────────────────── */
.upgrade-row {
    display: flex;
    gap: 8px;
}

.upgrade-pill {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.upgrade-pill.primary {
    background: #0d9488;
    color: white;
}

.upgrade-pill.primary:hover {
    background: #14b8a6;
    transform: translateY(-1px);
}

.upgrade-pill.secondary {
    background: #1e3a4a;
    border: 1px solid #0d9488;
    color: #5eead4;
}

.upgrade-pill.secondary:hover {
    background: #234e5e;
    transform: translateY(-1px);
}

.upgrade-pill i {
    font-size: 0.9rem;
}

/* ─────────────────────────────────────────────────────────────────
   OVER STATE UPGRADE SECTION
   ───────────────────────────────────────────────────────────────── */
#upgrade-section-over {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
}

#upgrade-section-over .featured-section-title {
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

#upgrade-section-over .featured-vehicle {
    display: flex;
    align-items: center;
    gap: 14px;
}

#upgrade-section-over .featured-vehicle-image {
    width: 50px;
    height: 50px;
    background: rgba(248, 113, 113, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#upgrade-section-over .featured-vehicle-image i {
    color: #f87171;
    font-size: 1.4rem;
}

#upgrade-section-over .featured-vehicle-info h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 4px 0;
}

#upgrade-section-over .featured-vehicle-info p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
}

#upgrade-section-over .featured-vehicle-info .capacity {
    color: #f87171;
    font-weight: 600;
}

#upgrade-section-over .upgrade-reason {
    color: #10b981 !important;
    font-size: 0.8rem !important;
}

/* ─────────────────────────────────────────────────────────────────
   MOBILE RESPONSIVE
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .comparison-row {
        gap: 8px;
    }
    
    .comp-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .comp-value {
        font-size: 1.2rem;
    }
    
    .alert-box {
        padding: 12px;
    }
    
    .alert-header {
        gap: 8px;
    }
    
    .alert-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .alert-title {
        font-size: 0.85rem;
    }
    
    .alert-text {
        font-size: 0.8rem;
    }
    
    .upgrade-row {
        flex-direction: column;
        gap: 6px;
    }
    
    .upgrade-pill {
        padding: 10px;
        font-size: 0.8rem;
    }
}