/* ═══════════════════════════════════════
   A เต้นท์รถมือสอง พิษณุโลก
   Style: Normal (Balanced Modern)
   Color: Red #C62828 / White / Warm Gray
   ═══════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'IBM Plex Sans Thai', 'Inter', -apple-system, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.7;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ── CSS Variables ── */
:root {
    --red: #C62828;
    --red-light: #EF5350;
    --red-dark: #8E0000;
    --dark: #1C1C1C;
    --text: #333;
    --text-light: #666;
    --gray-bg: #F5F5F5;
    --warm-bg: #FAFAFA;
    --white: #fff;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --nav-h: 70px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ NAVIGATION ═══ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 48px);
    transition: transform var(--transition);
    will-change: transform;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 64px; width: auto; }
.nav-brand span { font-weight: 700; font-size: 1rem; color: var(--red); display: none; }
@media(min-width:768px) { .nav-brand span { display: block; } }

.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
    padding: 8px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
    color: var(--text); transition: var(--transition);
}
.nav-links a:hover { background: var(--gray-bg); color: var(--red); }
.nav-links a.active { color: var(--red); font-weight: 600; }

.nav-cta {
    background: var(--red); color: #fff; padding: 10px 20px;
    border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    transition: var(--transition); display: flex; align-items: center; gap: 6px;
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; background: none; padding: 8px;
    flex-direction: column; gap: 5px;
}
.menu-toggle span {
    width: 24px; height: 2px; background: var(--dark); border-radius: 2px;
    transition: var(--transition);
}

@media(max-width:768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
        flex-direction: column; padding: 16px; gap: 4px;
        transform: translateY(-110%); transition: var(--transition);
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .nav-links.on { transform: translateY(0); }
    .nav-links a { padding: 12px 16px; font-size: 1rem; }
    .nav-cta { display: none; }
}

/* ═══ HERO ═══ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex; align-items: center; justify-content: center;
    margin-top: var(--nav-h);
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1a1a 50%, #1a1a1a 100%);
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.4; mix-blend-mode: luminosity;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.8) 100%
    );
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    padding: 0 20px; max-width: 800px;
}
.hero-logo { width: 160px; height: auto; margin: 0 auto 20px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800;
    color: #fff; line-height: 1.2; margin-bottom: 12px;
}
.hero-content h1 .accent { color: var(--red-light); }
.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.8);
    margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    background: var(--red); color: #fff; padding: 14px 32px;
    border-radius: 50px; font-weight: 600; font-size: 1rem;
    transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(198,40,40,0.3); }
.btn-secondary {
    background: rgba(255,255,255,0.15); color: #fff; padding: 14px 32px;
    border-radius: 50px; font-weight: 600; font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.3); transition: var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }

/* ═══ STATS STRIP ═══ */
.stats-strip {
    background: var(--white); padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.stats-inner {
    max-width: 900px; margin: 0 auto;
    display: flex; justify-content: center; gap: 0;
}
.stat-item {
    flex: 1; text-align: center; padding: 24px 16px;
    border-right: 1px solid rgba(0,0,0,0.06);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--red); }
.stat-label { font-size: 0.85rem; color: var(--text-light); margin-top: 2px; }
@media(max-width:480px) {
    .stat-num { font-size: 1.3rem; }
    .stat-label { font-size: 0.75rem; }
    .stat-item { padding: 16px 8px; }
}

/* ═══ SECTIONS ═══ */
section { padding: 80px clamp(16px, 4vw, 48px); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--dark);
    margin-bottom: 8px;
}
.section-header p { color: var(--text-light); font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ═══ FEATURED CARS ═══ */
.cars-section { background: var(--warm-bg); }
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px; max-width: 1200px; margin: 0 auto;
}
.car-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: var(--transition);
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.car-card-img {
    position: relative; width: 100%; height: 200px; overflow: hidden;
    background: #f0f0f0;
}
.car-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.car-card:hover .car-card-img img { transform: scale(1.05); }
.car-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--red); color: #fff; padding: 4px 12px;
    border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.car-status-sold {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800; color: #fff;
}
.car-card-body { padding: 16px; }
.car-brand { font-size: 0.8rem; color: var(--text-light); font-weight: 500; }
.car-model { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin: 2px 0 8px; }
.car-specs { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.car-spec {
    font-size: 0.78rem; color: var(--text-light);
    display: flex; align-items: center; gap: 4px;
}
.car-price-row { display: flex; align-items: center; justify-content: space-between; }
.car-price { font-size: 1.3rem; font-weight: 800; color: var(--red); }
.car-monthly { font-size: 0.75rem; color: var(--text-light); }
.car-cta {
    background: var(--red); color: #fff; padding: 8px 16px;
    border-radius: 8px; font-size: 0.85rem; font-weight: 600;
    transition: var(--transition);
}
.car-cta:hover { background: var(--red-dark); }

.cars-more {
    text-align: center; margin-top: 36px;
}

/* ═══ SERVICES ═══ */
.services-section { background: var(--white); }
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px; max-width: 1000px; margin: 0 auto;
}
.service-card {
    text-align: center; padding: 36px 24px;
    border-radius: var(--radius); background: var(--warm-bg);
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* ═══ WHY US ═══ */
.why-section { background: var(--dark); color: #fff; }
.why-section .section-header h2 { color: #fff; }
.why-section .section-header p { color: rgba(255,255,255,0.6); }
.why-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px; max-width: 1000px; margin: 0 auto;
}
.why-card {
    padding: 28px; border-radius: var(--radius);
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.1); }
.why-icon { font-size: 2rem; margin-bottom: 12px; }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.why-card p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ═══ CONTACT ═══ */
.contact-section { background: var(--warm-bg); }
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px; max-width: 1000px; margin: 0 auto;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px; background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.contact-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.contact-icon.phone { background: #E8F5E9; }
.contact-icon.email { background: #E3F2FD; }
.contact-icon.fb { background: #E8EAF6; }
.contact-icon.line { background: #E8F5E9; }
.contact-item strong { font-size: 0.85rem; color: var(--dark); }
.contact-item span { font-size: 0.8rem; color: var(--text-light); }
.contact-item a { color: var(--red); font-weight: 600; font-size: 1rem; }
.contact-item a:hover { text-decoration: underline; }
.contact-map {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); min-height: 280px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 280px; border: none; }

/* ═══ FOOTER ═══ */
footer {
    background: var(--dark); color: rgba(255,255,255,0.6);
    padding: 40px clamp(16px, 4vw, 48px); text-align: center;
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 48px; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 1rem; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.8rem; }

/* ═══ SCROLL REVEAL ═══ */
[data-r] { opacity: 0; transition: opacity 0.8s, transform 0.8s cubic-bezier(0.4,0,0.2,1); }
[data-r="up"] { transform: translateY(40px); }
[data-r="left"] { transform: translateX(-40px); }
[data-r="right"] { transform: translateX(40px); }
[data-r="scale"] { transform: scale(0.95); }
[data-r].vis { opacity: 1; transform: none; }

/* ═══ SUB-PAGES (shared) ═══ */
.page-hero {
    margin-top: var(--nav-h); padding: 60px 20px;
    background: linear-gradient(135deg, var(--dark) 0%, #2d1a1a 100%);
    text-align: center; color: #fff;
}
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1rem; }
.page-content {
    max-width: 1200px; margin: 0 auto;
    padding: 48px clamp(16px, 4vw, 48px);
}

/* ═══ SELL FORM ═══ */
.sell-form {
    max-width: 640px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--dark); }
.form-group input, .form-group textarea, .form-group select {
    padding: 12px 16px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 1rem; font-family: inherit; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(198,40,40,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ═══ FILTERS ═══ */
.filters-bar {
    display: flex; gap: 12px; flex-wrap: wrap;
    padding: 20px 0; margin-bottom: 24px;
    border-bottom: 1px solid #eee;
}
.filter-select {
    padding: 10px 16px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 0.9rem; font-family: inherit; background: #fff;
    min-width: 140px;
}
.filter-select:focus { outline: none; border-color: var(--red); }

/* ═══ SEARCH BAR ═══ */
.ai-search-bar {
    display: flex; gap: 8px; margin-bottom: 24px;
    max-width: 600px;
}
.ai-search-bar input {
    flex: 1; padding: 14px 20px; border: 2px solid #eee; border-radius: 50px;
    font-size: 1rem; font-family: inherit; transition: var(--transition);
}
.ai-search-bar input:focus {
    outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(198,40,40,0.1);
}
.ai-search-bar button {
    background: var(--red); color: #fff; padding: 14px 24px;
    border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    transition: var(--transition);
}
.ai-search-bar button:hover { background: var(--red-dark); }

/* ═══ ABOUT PAGE ═══ */
.about-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px; margin-bottom: 48px;
}
.about-text h2 { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 16px; }
.about-text p { color: var(--text-light); line-height: 1.8; margin-bottom: 12px; }
.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* ═══ LOADING SKELETON ═══ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ═══ EMPTY STATE ═══ */
.empty-state {
    text-align: center; padding: 60px 20px;
    color: var(--text-light);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }

/* ═══ CAR CARD LINK ═══ */
.car-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.car-card-cta {
    margin-top: 12px;
    padding: 10px 0;
    text-align: center;
    color: var(--red);
    font-weight: 600;
    font-size: 0.9rem;
    border-top: 1px solid #f0f0f0;
    transition: var(--transition);
}
.car-card-link:hover .car-card-cta {
    color: var(--white);
    background: var(--red);
    margin: 12px -16px -16px;
    padding: 12px 16px;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* ═══ CAR DETAIL PAGE ═══ */
.car-detail-page {
    margin-top: var(--nav-h);
    min-height: 70vh;
    padding: 40px clamp(16px, 4vw, 48px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.car-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media(max-width:768px) {
    .car-detail-container { grid-template-columns: 1fr; gap: 24px; }
}

/* Gallery */
.car-detail-gallery { position: sticky; top: calc(var(--nav-h) + 20px); }
.car-detail-main-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 12px;
}
.car-detail-main-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: 0.3s;
}
.car-detail-thumbs {
    display: flex; gap: 8px; overflow-x: auto;
    padding-bottom: 4px;
}
.thumb {
    width: 72px; height: 54px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.thumb:hover { border-color: #ccc; }
.thumb.active { border-color: var(--red); }

/* Info */
/* Info section inherits from page defaults */
.car-detail-badge { margin-bottom: 8px; }
.badge-sold-lg, .badge-reserved-lg, .badge-featured-lg {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.badge-sold-lg { background: #333; color: #fff; }
.badge-reserved-lg { background: #FFA000; color: #fff; }
.badge-featured-lg { background: #FFF3E0; color: #E65100; }

.car-detail-info h1 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}
.car-detail-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Price Box */
.car-detail-price-box {
    background: linear-gradient(135deg, #FFF5F5, #FFF);
    border: 2px solid rgba(198,40,40,0.15);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.car-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--red);
}
.car-detail-monthly {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 2px;
}

/* Specs Grid */
.car-detail-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.spec-item {
    background: var(--gray-bg);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.spec-icon { font-size: 1.2rem; }
.spec-label { font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; }
.spec-value { font-size: 0.9rem; font-weight: 600; color: var(--dark); }

/* Description */
.car-detail-desc { margin-bottom: 28px; }
.car-detail-desc h3 {
    font-size: 1rem; font-weight: 700;
    color: var(--dark); margin-bottom: 8px;
}
.car-detail-desc p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Action Buttons */
.car-detail-actions {
    display: flex; gap: 12px; flex-wrap: wrap;
}
.btn-lg {
    padding: 16px 32px !important;
    font-size: 1.05rem !important;
    flex: 1;
    justify-content: center;
    min-width: 200px;
}

/* Loading */
.car-detail-loading {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 50vh; gap: 16px;
}
.loading-spinner {
    width: 48px; height: 48px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.car-detail-loading p { color: var(--text-light); font-size: 0.9rem; }

/* Not Found */
.car-detail-notfound {
    text-align: center; padding: 80px 20px;
}
.car-detail-notfound .icon { font-size: 4rem; margin-bottom: 16px; }
.car-detail-notfound h2 { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.car-detail-notfound p { color: var(--text-light); margin-bottom: 24px; }

/* Related Cars */
.related-cars-section {
    padding: 60px clamp(16px, 4vw, 48px);
    background: var(--warm-bg);
    max-width: 1200px;
    margin: 0 auto;
}

/* ═══ SOLD OVERLAY ON CARDS ═══ */
.car-sold-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
}
.car-sold-overlay span {
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
}
.card-sold { opacity: 0.85; }
.card-sold:hover { opacity: 1; }

/* ═══ SOLD SECTION ═══ */
.sold-section-header {
    text-align: center;
    padding: 48px 0 24px;
    border-top: 2px solid #eee;
    margin-top: 48px;
}
.sold-section-header h2 {
    font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 4px;
}
.sold-section-header p {
    color: var(--text-light); font-size: 0.9rem;
}

/* ═══ COMPARE BUTTON ON CARD ═══ */
.compare-btn {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.9);
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    z-index: 5;
    backdrop-filter: blur(4px);
}
.compare-btn:hover { background: #fff; border-color: var(--red); }
.compare-btn.selected {
    background: var(--red); color: #fff;
    border-color: var(--red);
}

/* ═══ COMPARE FLOATING BAR ═══ */
.compare-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(28,28,28,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 20px;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.compare-bar-inner {
    max-width: 900px; margin: 0 auto;
    display: flex; align-items: center; gap: 16px;
}
.compare-slots { display: flex; align-items: center; gap: 8px; flex: 1; }
.compare-slot {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex; align-items: center; gap: 8px;
    min-height: 44px;
    color: #fff;
}
.slot-placeholder { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.slot-img { width: 40px; height: 30px; object-fit: cover; border-radius: 6px; }
.slot-name { font-size: 0.85rem; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-remove {
    background: rgba(255,255,255,0.2); border: none; color: #fff;
    width: 22px; height: 22px; border-radius: 50%;
    cursor: pointer; font-size: 0.7rem;
    display: flex; align-items: center; justify-content: center;
}
.slot-remove:hover { background: var(--red); }
.compare-vs {
    color: rgba(255,255,255,0.5); font-weight: 800; font-size: 0.85rem;
}
.compare-go-btn {
    white-space: nowrap; padding: 12px 24px !important;
}
.compare-go-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.compare-close-btn {
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    width: 36px; height: 36px; border-radius: 50%;
    cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
}
.compare-close-btn:hover { background: rgba(255,255,255,0.25); }

@media(max-width:768px) {
    .compare-bar-inner { flex-wrap: wrap; }
    .compare-slots { width: 100%; }
}

/* ═══ COMPARE TABLE PAGE ═══ */
.compare-header {
    display: flex; align-items: flex-start; justify-content: center;
    gap: 24px; margin-bottom: 32px; flex-wrap: wrap;
}
.compare-car {
    text-align: center; flex: 1; max-width: 350px;
}
.compare-car img {
    width: 100%; height: 200px; object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}
.compare-car h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.compare-vs-big {
    font-size: 2rem; font-weight: 800; color: var(--red);
    padding-top: 80px;
}

.compare-table {
    width: 100%; border-collapse: collapse;
    background: #fff; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
}
.compare-table td {
    padding: 14px 20px; border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}
.compare-label {
    font-weight: 600; color: var(--text-light);
    width: 25%; background: var(--gray-bg);
}
.compare-v1, .compare-v2 { width: 37.5%; }
.compare-highlight td { background: #FFF5F5 !important; }
.compare-highlight .compare-label { background: #FFEBEE !important; }
.compare-highlight .compare-v1,
.compare-highlight .compare-v2 {
    font-weight: 700; color: var(--red); font-size: 1rem;
}

@media(max-width:600px) {
    .compare-vs-big { padding-top: 20px; font-size: 1.5rem; }
    .compare-table td { padding: 10px 12px; font-size: 0.82rem; }
}

/* ═══ OPTIONS TAGS ═══ */
.options-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.option-tag {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
}

/* ═══ SOLD NOTICE ═══ */
.sold-notice {
    text-align: center;
    background: #FFF3E0;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid #FFE0B2;
}
.sold-notice p {
    font-size: 1.1rem; font-weight: 700; color: #E65100;
    margin-bottom: 16px;
}

/* ═══ COMPARE BUTTON (TEXT VERSION) ═══ */
.compare-btn-text {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    background: #F5F5F5;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
    text-align: center;
}
.compare-btn-text:hover {
    background: #FFF5F5;
    border-color: var(--red);
    color: var(--red);
}
.compare-btn-text.selected {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* ═══ INQUIRY POPUP ═══ */
.inquiry-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.inquiry-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.inquiry-box h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.inquiry-box .fg {
    display: flex; flex-direction: column; gap: 4px;
    margin-bottom: 12px;
}
.inquiry-box label {
    font-size: 0.85rem; font-weight: 600; color: #333;
}
.inquiry-box input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}
.inquiry-box input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(198,40,40,0.1);
}
