/* =========================
   COMPARE PAGE — same palette as index (main.css)
========================= */

:root {
    --bg-color:     #020617;
    --primary:      #2563eb;
    --primary-light:#3b82f6;
    --primary-hover:#60a5fa;
    --card:         #111827;
    --card-bg:      #111827;
    --gray:         #94a3b8;
    --text-color:   #ffffff;
    --text-muted:   #9ca3af;
}

body.light {
    --bg-color:     #f8fbff;
    --primary:      rgb(37, 99, 235);
    --primary-light:rgb(96, 165, 250);
    --primary-hover:rgb(59, 130, 246);
    --card:         #ffffff;
    --card-bg:      #ffffff;
    --gray:         #64748b;
    --text-color:   #0f172a;
    --text-muted:   #475569;
}

body.light .compare-hero {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.light .compare-overlay {
    background: rgba(255, 255, 255, 0.75);
}

body.light .compare-content p {
    color: var(--text-secondary);
}

body.light .selector-box select,
body.light .popular-compare-card,
body.light .score-block {
    background: var(--card);
    color: var(--text-primary);
    border-color: var(--card-border);
}

body.light .selector-box select {
    border: var(--card-border);
}

body.light .popular-compare-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

body.light .score-track {
    background: rgba(15, 23, 42, 0.08);
}

body.light .compare-popular-inner > p,
body.light .score-label {
    color: var(--text-secondary);
}

/* =========================
RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
html{
    scroll-behavior:smooth;
}


body{
    font-family:'Poppins',sans-serif;
    background:var(--bg-color);
    color:var(--text-color);
    overflow-x:hidden;
    line-height:1.6;
}
/* =========================
GLOBAL
========================= */

img{
    width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:inherit;
}

section{
    padding:100px 8%;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title span{
    color:var(--primary-light);
    font-size:13px;
    font-weight:600;
    letter-spacing:3px;
}

.section-title h2{
    font-size:58px;
    margin-top:20px;
    font-weight:700;
    line-height:1.2;
}

.section-title p{
    margin-top:15px;
    color:var(--gray);
}

/* Header/nav styles unified in home-global.css via .site-header */

/* =========================
HERO
========================= */

.compare-hero{
    height:100vh;
    background:url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=1600")
    center/cover no-repeat;

    display:flex;
    align-items:center;
    justify-content:center;

    position:relative;
    text-align:center;
}

.compare-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.65);
}

.compare-content{
    position:relative;
    z-index:2;
    max-width:850px;
}

.compare-content span{
    color:var(--primary-light);
    font-weight:600;
    letter-spacing:3px;
}

.compare-content h1{
    font-size:72px;
    margin:20px 0;
    line-height:1.1;
}

.compare-content p{
    color:#d1d5db;
    font-size:18px;
}

/* =========================
COMPARE CONTROLS
========================= */

.compare-controls{
    display:flex;
    gap:20px;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;

    margin-top:-70px;
    position:relative;
    z-index:10;
}

.selector-box select{
    background:var(--card);
    color:var(--text-primary);
    border:1px solid var(--card-border);
    padding:18px 24px;
    border-radius:14px;
    min-width:260px;
    font-size:15px;
    outline:none;
}

#swapBtn{
    width:60px;
    height:60px;
    border-radius:50%;
    border:none;
    background:var(--primary);
    color:white;
    font-size:22px;
    cursor:pointer;
    transition:.3s;
}

#swapBtn:hover{
    transform:rotate(180deg);
    background:var(--primary-light);
}

/* =========================
   POPULAR COMPARES
========================= */

.compare-popular{
    padding:48px 8% 24px;
    max-width:1280px;
    margin:0 auto;
}

.compare-popular-inner h2{
    font-size:28px;
    font-weight:700;
    margin-bottom:8px;
}

.compare-popular-inner > p{
    color:#94a3b8;
    font-size:14px;
    margin-bottom:24px;
}

.popular-compare-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:14px;
}

.popular-compare-card{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    text-align:left;
    padding:16px 18px;
    background:var(--card);
    border:1px solid var(--card-border);
    border-radius:14px;
    cursor:pointer;
    color:var(--text-primary);
    font-family:inherit;
    transition:border-color .3s,transform .3s,box-shadow .3s;
}

.popular-compare-card:hover{
    border-color:#3b82f6;
    transform:translateY(-3px);
    box-shadow:0 12px 32px rgba(37,99,235,0.18);
}

.popular-compare-card .popular-tag{
    font-size:11px;
    font-weight:600;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#60a5fa;
}

.popular-compare-card strong{
    font-size:13px;
    font-weight:600;
    line-height:1.3;
}

.popular-compare-card .popular-vs{
    font-size:11px;
    font-weight:800;
    color:#3b82f6;
}

/* =========================
   SCORE BARS
========================= */

.compare-scores{
    padding:40px 8% 20px;
    max-width:1280px;
    margin:0 auto;
}

.compare-scores-inner h2{
    font-size:26px;
    font-weight:700;
    margin-bottom:24px;
    text-align:center;
}

.score-bars-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.score-block{
    background:var(--card);
    border:1px solid var(--card-border);
    border-radius:16px;
    padding:20px;
}

.score-block h3{
    font-size:14px;
    font-weight:600;
    margin-bottom:16px;
    color:#93c5fd;
}

.score-row{
    margin-bottom:12px;
}

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

.score-label{
    display:block;
    font-size:12px;
    color:#94a3b8;
    margin-bottom:6px;
}

.score-track{
    height:8px;
    background:rgba(255,255,255,0.12);
    border-radius:999px;
    overflow:hidden;
}

.score-fill{
    height:100%;
    width:50%;
    background:linear-gradient(90deg,#2563eb,#3b82f6);
    border-radius:999px;
    transition:width .5s ease;
}

.score-fill-alt{
    background:linear-gradient(90deg,#1d4ed8,#60a5fa);
}

@media (max-width:900px){
    .score-bars-grid{
        grid-template-columns:1fr;
    }
}
/* =========================
FILTER
========================= */

.filter-dropdown{
    position:relative;
}

.filter-toggle{
    padding:15px 20px;
    border:none;
    border-radius:15px;
    background:var(--primary);
    color:white;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
}

.filter-menu{
    position:absolute;
    top:70px;
    left:0;
    background:var(--card-bg);
    width:220px;
    border-radius:15px;
    overflow:hidden;
    display:none;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 10px 30px rgba(0,0,0,0.35);
}

.filter-menu.active{
    display:block;
}

.filter-option{
    padding:15px;
    cursor:pointer;
    transition:0.3s;
}

.filter-option:hover{
    background:var(--primary);
    color:white;
}

/* =========================
COMPARE IMAGES
========================= */

.compare-images{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
}

.compare-car{
    background:var(--card);
    border-radius:24px;
    overflow:hidden;
    transition:.4s;
    border:1px solid rgba(255,255,255,0.06);
}

.compare-car:hover{
    transform:translateY(-10px);
}

.compare-car img{
    height:320px;
    object-fit:cover;
}

.compare-info{
    padding:25px;
}

.compare-info h3{
    font-size:28px;
    margin-bottom:10px;
}

.details-text{
    color:var(--primary-hover);
}

/* =========================
TABLE
========================= */

.compare-table{
    background:var(--card);
    border-radius:24px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.06);
}

.table-row{
    display:grid;
    grid-template-columns:1.2fr 1fr 1fr;
}

.table-row div{
    padding:22px;
    border-bottom:1px solid rgba(255,255,255,.07);
}

.heading{
    background:var(--primary);
    font-weight:700;
}

.best{
    color:var(--primary-hover);
    font-weight:700;
}

/* =========================
QUICK STATS
========================= */

.quick-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.quick-card{
    background:var(--card);
    padding:40px;
    border-radius:24px;
    text-align:center;
    border:1px solid rgba(255,255,255,0.06);
}

.quick-card span{
    color:var(--primary-light);
}

.quick-card h3{
    margin-top:15px;
    font-size:28px;
}
.pros-card,
.choice-box,
.specs-card,
.winner-card,
.car-page-box,
.related-card,
.faq-item{
    background:var(--card);
    border-radius:24px;
}

/* =========================
PROS CONS
========================= */

.pros-grid{
    width:90%;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.pros-card{
    background:var(--card-bg);
    padding:35px;
    border-radius:25px;
    border:1px solid rgba(255,255,255,0.06);
}

.pros-card h3{
    margin-bottom:25px;
    font-size:2rem;
}

.pros,
.cons{
    list-style:none;
}

.pros li,
.cons li{
    margin-bottom:15px;
    line-height:1.7;
}

/* =========================
BUY CHOICE
========================= */

.choice-container{
    width:90%;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.choice-box{
    background:var(--card-bg);
    padding:40px;
    border-radius:25px;
    border:1px solid rgba(255,255,255,0.06);
}

.choice-box h3{
    margin-bottom:20px;
}

/* =========================
TABLE
========================= */

.costs-table{
    width:90%;
    margin:auto;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border-radius:20px;
}

table{
    width:100%;
    border-collapse:collapse;
    background:var(--card-bg);
    border-radius:20px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.06);
}

th,
td{
    padding:20px;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,0.08);
    white-space:nowrap;
}

td:first-child{
    white-space:normal;
    text-align:left;
    font-weight:600;
}

th{
    background:var(--primary);
    color:white;
    white-space:nowrap;
}

/* =========================
SPECS
========================= */

.specs-container{
    width:90%;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:30px;
}

.specs-card{
    background:var(--card-bg);
    padding:35px;
    border-radius:25px;
    border:1px solid rgba(255,255,255,0.06);
}

.spec-item{
    display:flex;
    justify-content:space-between;
    margin-bottom:20px;
    border-bottom:1px solid rgba(255,255,255,0.08);
    padding-bottom:12px;
}

/* =========================
WINNER
========================= */

.winner-section{
    width:90%;
    margin:120px auto;
}

.winner-card{
    background:linear-gradient(135deg,var(--primary),var(--primary-light));
    padding:70px;
    border-radius:30px;
    text-align:center;
    color:white;
    box-shadow:0 20px 60px rgba(37,99,235,0.25);
}

.winner-card .hero-btn{
    display:inline-block;
    margin-top:25px;
    padding:16px 30px;
    background:white;
    color:var(--bg-color);
    border-radius:14px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.winner-card .hero-btn:hover{
    transform:translateY(-5px);
    background:#f1f5f9;
}

/* =========================
RELATED
========================= */

.related-grid{
    width:90%;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.related-card{
    background:var(--card-bg);
    border-radius:25px;
    overflow:hidden;
    text-decoration:none;
    color:var(--text-color);
    transition:0.4s;
    border:1px solid rgba(255,255,255,0.06);
}

.related-card:hover{
    transform:translateY(-10px);
}

.related-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.related-card h3{
    padding:20px;
}

/* =========================
FOOTER
========================= */

.compare-footer{
    background:var(--bg-color);
    padding-top:80px;
    border-top:1px solid rgba(255,255,255,0.06);
}

.footer-container{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:40px;
    padding:0 8%;
}

.footer-box{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.footer-box h2{
    color:var(--primary-light);
    font-size:38px;
    margin-bottom:10px;
}

.footer-box h3{
    color:white;
    margin-bottom:5px;
}

.footer-box p{
    color:var(--gray);
    line-height:1.9;
}

.footer-box a{
    color:var(--gray);
    transition:.3s;
}

.footer-box a:hover{
    color:var(--primary-hover);
}

.copyright{
    text-align:center;
    padding:30px;
    margin-top:60px;
    border-top:1px solid rgba(255,255,255,.08);
    color:#64748b;
}
/* =========================
CAR PAGE CTA
========================= */

.car-page-box{
    width:90%;
    margin:auto;
    background:var(--card-bg);
    border-radius:30px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.06);

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:center;

    padding:40px;
}

.car-page-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:24px;
}

.car-page-content span{
    color:var(--primary-light);
    font-weight:700;
    letter-spacing:2px;
}

.car-page-content h2{
    font-size:3rem;
    margin:20px 0;
}

.car-page-content p{
    color:var(--gray);
    line-height:1.8;
}

.car-page-features{
    margin-top:30px;

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.feature{
    background:rgba(255,255,255,0.05);
    padding:15px;
    border-radius:14px;
}

/* =========================
FAQ
========================= */

.faq-container{
    width:90%;
    margin:auto;

    display:flex;
    flex-direction:column;
    gap:20px;
}

.faq-item{
    background:var(--card-bg);
    padding:30px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,0.06);
}

.faq-item h3{
    margin-bottom:15px;
    font-size:1.3rem;
}

.faq-item p{
    color:var(--gray);
}

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

@media(max-width:992px){

    .compare-images,
    .quick-stats,
    .footer-container,
    .car-page-box{
        grid-template-columns:1fr;
    }

    .compare-content h1{
        font-size:50px;
    }

}

@media(max-width:900px){

    header{
        padding:20px 25px;
    }

    /* Let mobile-nav.css handle menu-btn styling */

    /* Let mobile-nav.css handle site-nav styling */
}

@media(max-width:768px){

    .compare-content h1{
        font-size:38px;
    }

    .compare-table{
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        border-radius:16px;
    }

    .page-compare .filters-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
        gap:6px;
        background:rgba(255,255,255,0.1);
        border:1px solid rgba(255,255,255,0.2);
        border-radius:12px;
        color:rgba(255,255,255,0.8);
        font-family:'Poppins',sans-serif;
        font-size:13px;
        font-weight:500;
        padding:10px 16px;
        cursor:pointer;
        transition:all 0.3s ease;
        flex-shrink:0;
        white-space:nowrap;
    }
    .page-compare .filters-toggle:hover{
        background:rgba(255,255,255,0.2);
    }
    .page-compare .filters-toggle[aria-expanded="true"]{
        background:rgba(59,130,246,0.2);
        border-color:rgba(59,130,246,0.4);
        color:#60a5fa;
    }
    .page-compare .collapsible-filters{
        max-height:0;
        overflow:hidden;
        transition:max-height 0.4s cubic-bezier(0.16,1,0.3,1),opacity 0.3s ease,padding 0.3s ease;
        opacity:0;
    }
    .page-compare .collapsible-filters.open{
        max-height:600px;
        opacity:1;
        padding-top:10px;
    }
    .page-compare .compare-search-row--filters{
        grid-template-columns:1fr;
        gap:10px;
    }
    .page-compare .compare-search-row--top{
        display:flex;
        flex-direction:row;
        gap:10px;
        align-items:flex-end;
    }
    .page-compare .compare-search-row--top .cmp-field--grow{
        flex:1;
    }
    .page-compare .table-row{
        grid-template-columns:1.2fr 1fr 1fr;
        min-width:360px;
    }
    .page-compare .table-row div{
        padding:12px 8px;
        font-size:12px;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }
    .page-compare .table-row div:first-child{
        white-space:normal;
        min-width:100px;
        overflow:visible;
        text-overflow:initial;
    }
    .page-compare .heading div{
        font-size:10px;
        letter-spacing:0.2px;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }
    .page-compare .heading div:first-child{
        white-space:normal;
        overflow:visible;
        text-overflow:initial;
        line-height:1.3;
    }

    /* Sticky first column for compare table on mobile */
    .page-compare .compare-table .table-row div:first-child {
        position: sticky;
        left: 0;
        background: var(--card);
        box-shadow: 2px 0 6px rgba(0,0,0,0.1);
        z-index: 1;
    }
    .page-compare .compare-table .table-row.heading div:first-child {
        z-index: 2;
    }

    /* Costs/Dimensions/Consumption/Depreciation tables mobile */
    .page-compare .costs-table,
    .page-compare .dimensions-table,
    .page-compare .consumption-table,
    .page-compare .depreciation-table {
        width: 100%;
        margin: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .page-compare .costs-table table,
    .page-compare .dimensions-table table,
    .page-compare .consumption-table table,
    .page-compare .depreciation-table table {
        min-width: 360px;
    }
    .page-compare .costs-table th,
    .page-compare .costs-table td,
    .page-compare .dimensions-table th,
    .page-compare .dimensions-table td,
    .page-compare .consumption-table th,
    .page-compare .consumption-table td,
    .page-compare .depreciation-table th,
    .page-compare .depreciation-table td {
        padding: 10px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
    .page-compare .costs-table td:first-child,
    .page-compare .dimensions-table td:first-child,
    .page-compare .consumption-table td:first-child,
    .page-compare .depreciation-table td:first-child {
        white-space: normal;
        min-width: 90px;
    }

    .page-compare .pros-grid{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }
    .page-compare .pros-card, .page-compare .cons-card{
        padding:14px 10px;
        border-radius:12px;
    }
    .page-compare .pros-card h3, .page-compare .cons-card h3{
        font-size:14px;
        margin-bottom:10px;
    }
    .page-compare .pros-card li, .page-compare .cons-card li{
        font-size:12px;
        line-height:1.5;
        margin-bottom:4px;
    }
    .page-compare .insights-grid{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }
    .page-compare .insight-card{
        padding:14px 10px;
        border-radius:12px;
    }
    .page-compare .insight-card .insight-icon{
        font-size:20px;
        margin-bottom:6px;
    }
    .page-compare .insight-card h3{
        font-size:13px;
        margin-bottom:6px;
    }
    .page-compare .insight-card p{
        font-size:12px;
        line-height:1.4;
    }
    .page-compare .choice-container{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }
    .page-compare .choice-box{
        padding:16px 12px;
        border-radius:12px;
    }
    .page-compare .choice-box h4{
        font-size:15px;
    }
    .page-compare .choice-box p{
        font-size:12px;
    }
    .page-compare .specs-container{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }
    .page-compare .specs-card{
        padding:16px 10px;
        border-radius:14px;
    }
    .page-compare .specs-card h3{
        font-size:14px;
        margin-bottom:12px;
        text-align:center;
    }
    .page-compare .spec-item{
        flex-direction:column;
        align-items:flex-start;
        gap:2px;
        margin-bottom:10px;
        padding-bottom:8px;
    }
    .page-compare .spec-item span{
        font-size:11px;
    }
    .page-compare .spec-item strong{
        font-size:12px;
        word-break:break-word;
    }
    .page-compare .quick-stats{
        grid-template-columns:1fr 1fr 1fr;
        gap:8px;
        padding:16px 12px;
    }
    .page-compare .quick-card{
        padding:14px 8px;
        border-radius:12px;
        text-align:center;
    }
    .page-compare .quick-card span{
        font-size:11px;
        display:block;
        margin-bottom:4px;
    }
    .page-compare .quick-card h3{
        font-size:13px;
        margin-top:0;
    }
    .page-compare .compare-images{
        grid-template-columns:1fr 1fr;
        gap:10px;
        padding:0 12px;
    }
    .page-compare .compare-car img{
        height:160px;
        border-radius:12px;
    }
    .page-compare .compare-car .compare-info h3{
        font-size:14px;
        margin-bottom:4px;
    }
    .page-compare .compare-car .details-text{
        font-size:11px;
    }
    .page-compare .popular-compare-grid{
        display:flex;
        flex-wrap:nowrap;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        scroll-snap-type:x mandatory;
        scroll-behavior:smooth;
        gap:8px;
        padding-bottom:8px;
        scrollbar-width:none;
        justify-content:flex-start;
    }
    .page-compare .popular-compare-grid::-webkit-scrollbar{
        display:none;
    }
    .page-compare .popular-compare-card{
        flex:0 0 auto;
        width:160px;
        min-width:160px;
        padding:10px 10px;
        border-radius:12px;
        font-size:11px;
        scroll-snap-align:start;
    }
    .page-compare .popular-compare-card strong{
        font-size:12px;
    }
    .page-compare .popular-compare-card .popular-vs{
        font-size:10px;
    }
    .page-compare .compare-popular-inner h2{
        font-size:20px;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }
    .page-compare .compare-popular-inner > p{
        font-size:12px;
        margin-bottom:14px;
    }

    .car-page-features{
        grid-template-columns:1fr;
    }

}

/* =========================
   PAGE COMPARE — align with index
========================= */

body.page-compare.dash-home section:not(.dash-hero):not(.compare-popular) {
    padding: 48px 5%;
}

body.page-compare.dash-home .dash-hero.compare-page-hero {
    margin-bottom: 0;
}

body.page-compare.dash-home .site-header ~ header,
body.page-compare.dash-home > header:not(.site-header) {
    display: none;
}

.compare-hero-lead {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 560px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent-light);
    margin-bottom: 10px;
}

.compare-search-panel {
    background: rgba(17, 24, 39, 0.92);
    border: var(--border-light);
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.compare-search-row {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.compare-search-row:last-of-type {
    margin-bottom: 0;
}

.compare-search-row--top {
    grid-template-columns: 1fr;
}

.compare-search-row--filters {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.compare-search-row--cars {
    grid-template-columns: 1fr auto 1fr auto;
    align-items: end;
}

.page-compare .filters-toggle {
    display: none;
}
.page-compare .collapsible-filters {
    display: block;
}

.cmp-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cmp-field span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cmp-field input,
.cmp-field select {
    background: rgba(2, 6, 23, 0.65);
    border: var(--border-subtle);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    min-width: 0;
    height: 36px;
}

.cmp-field input:focus,
.cmp-field select:focus {
    border-color: var(--accent-light);
}

.swap-btn-round {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-bottom: 2px;
    transition: transform 0.3s, background 0.3s;
}

.swap-btn-round:hover {
    transform: rotate(180deg);
    background: var(--primary-light);
}

.compare-search-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    padding: 0 4px;
}

.compare-section-block {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

body.page-compare .compare-popular {
    padding-top: 24px;
}

.buyer-insights .insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.insight-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
}

.insight-card .insight-icon {
    font-size: 22px;
    margin-bottom: 10px;
}

.insight-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.insight-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 6px;
}

.insight-card p:last-child {
    margin-bottom: 0;
}

.costs-table td.best {
    color: #4ade80;
    font-weight: 700;
}

@media (max-width: 1000px) {
    .compare-search-row--top,
    .compare-search-row--filters,
    .compare-search-row--cars {
        grid-template-columns: 1fr;
    }

    .swap-btn-round {
        margin: 0 auto;
    }

    .buyer-insights .insights-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .buyer-insights .insights-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   FEATURES SECTION
========================= */

.features-section {
    max-width: 1280px;
    margin: 0 auto;
}

.features-container {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.features-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.features-card h3 {
    margin-bottom: 25px;
    font-size: 2rem;
}

.feature-category {
    margin-bottom: 30px;
}

.feature-category h4 {
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

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

.feature-list li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* =========================
   CONSUMPTION SECTION
========================= */

.consumption-section {
    max-width: 1280px;
    margin: 0 auto;
}

.consumption-table {
    width: 90%;
    margin: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
}

.consumption-table table {
    min-width: 400px;
}

/* =========================
   DEPRECIATION SECTION
========================= */

.depreciation-section {
    max-width: 1280px;
    margin: 0 auto;
}

.depreciation-table {
    width: 90%;
    margin: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
}

.depreciation-table table {
    min-width: 400px;
}

/* =========================
   DIMENSIONS TABLE
========================= */

.dimensions-table {
    width: 90%;
    margin: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
}

.dimensions-table table {
    min-width: 400px;
}

/* =========================
   INTERIOR TECH SECTION
========================= */

.interior-tech-section {
    max-width: 1280px;
    margin: 0 auto;
}

.interior-tech-container {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.interior-tech-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.interior-tech-card h3 {
    margin-bottom: 25px;
    font-size: 2rem;
}

.interior-tech-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.interior-tech-cards .int-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.interior-tech-cards .int-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.interior-tech-cards .int-card h4 {
    font-size: 13px;
    color: var(--primary-light);
    margin-bottom: 6px;
}

.interior-tech-cards .int-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================
   FLOAT COMPARE BTN
========================= */

.float-compare-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-compare-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.float-compare-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* =========================
   FEATURES / CONSUMPTION / DEPRECIATION / INTERIOR-TECH RESPONSIVE
========================= */

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

@media (max-width: 768px) {
    .page-compare .features-card,
    .page-compare .interior-tech-card {
        padding: 20px 14px;
        border-radius: 14px;
    }

    .page-compare .features-card h3,
    .page-compare .interior-tech-card h3 {
        font-size: 16px;
        margin-bottom: 14px;
        text-align: center;
    }

    .page-compare .feature-category h4 {
        font-size: 12px;
    }

    .page-compare .feature-list li {
        font-size: 12px;
        padding: 6px 0;
    }

    .page-compare .interior-tech-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .page-compare .interior-tech-cards .int-card {
        padding: 10px;
    }

    .page-compare .interior-tech-cards .int-card img {
        height: 80px;
    }

    .page-compare .consumption-table,
    .page-compare .depreciation-table {
        width: 100%;
    }

    .page-compare .consumption-table th,
    .page-compare .consumption-table td,
    .page-compare .depreciation-table th,
    .page-compare .depreciation-table td {
        padding: 10px 6px;
        font-size: 12px;
    }

    .float-compare-btn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}