:root {
    --bg: #000000;
    --surface: #0a0a0a;
    --card: #111111;
    --text: #ffffff;
    --muted: #a3a3a3;
    --primary: #dc2626;
    --primary-strong: #b91c1c;
    --accent: #ef4444;
    --border: #262626;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-pill: 999px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, sans-serif;
    background: #000000;
    color: var(--text);
    min-height: 100vh;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 4vw;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.brand { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
    position: relative;
    z-index: 21;
    cursor: pointer;
}
.brand:hover {
    opacity: 0.8;
}
.brand:visited {
    color: inherit;
}
.brand img,
.brand .brand-text,
.brand .brand-name,
.brand .brand-tag {
    pointer-events: none;
}
.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; letter-spacing: 0.5px; }
.brand-tag { color: var(--muted); font-size: 0.85rem; }

.nav { display: flex; gap: 1.25rem; }
.nav a { color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--text); }

.actions { display: flex; gap: 0.5rem; align-items: center; }
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    color: var(--text);
}
.pill.primary { background: var(--primary); color: #ffffff; box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4); font-weight: 600; }
.pill.primary:hover { background: var(--primary-strong); box-shadow: 0 10px 30px rgba(220, 38, 38, 0.5); }
.pill.primary.large {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.5);
}
.pill.primary.large:hover {
    box-shadow: 0 15px 50px rgba(220, 38, 38, 0.6);
    transform: translateY(-2px);
}
.pill.secondary { background: #111111; border-color: #262626; }
.pill.secondary:hover { border-color: var(--primary); color: var(--primary); }
.pill.ghost { background: transparent; border-color: #262626; color: var(--muted); }
.pill.ghost:hover { border-color: var(--primary); color: var(--primary); }

/* Instagram button with gradient */
.pill.ghost[href*="instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
}

.pill.ghost[href*="instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(188, 24, 136, 0.4);
}

/* Facebook button with blue color */
.pill.ghost[href*="facebook"] {
    background: #1877f2;
    border: none;
    color: #ffffff;
    font-weight: 600;
}

.pill.ghost[href*="facebook"]:hover {
    background: #166fe5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    cursor: pointer;
}
.theme-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    z-index: 1;
}
.theme-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #262626;
    border: 1px solid var(--border);
    transition: 0.3s ease;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    pointer-events: none;
}
.theme-toggle-slider:before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.theme-toggle-icon {
    position: relative;
    font-size: 14px;
    transition: opacity 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.theme-toggle-icon:first-child {
    opacity: 1;
}
.theme-toggle-icon:last-child {
    opacity: 0;
}
.theme-toggle-input:checked + .theme-toggle-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}
.theme-toggle-input:checked + .theme-toggle-slider:before {
    transform: translateX(30px);
}
.theme-toggle-input:checked + .theme-toggle-slider .theme-toggle-icon:first-child {
    opacity: 0;
}
.theme-toggle-input:checked + .theme-toggle-slider .theme-toggle-icon:last-child {
    opacity: 1;
}
.theme-toggle:hover .theme-toggle-slider {
    border-color: var(--primary);
}

.menu-toggle { display: none; background: none; color: var(--text); border: none; font-size: 1.5rem; }

main { padding: 2rem 4vw 4rem; display: flex; flex-direction: column; gap: 2.5rem; }

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
}


.hero-copy h1 { font-size: clamp(2.1rem, 3vw, 3rem); margin: 0.4rem 0; }
.hero-copy .lead { color: var(--text); max-width: 560px; font-size: 1.6rem; font-weight: 600; margin: 0.5rem 0; }
.hero-copy .sub-lead { color: var(--muted); max-width: 560px; margin-top: 0.5rem; }
.eyebrow { letter-spacing: 1.2px; font-weight: 700; color: var(--primary); margin: 0; text-transform: uppercase; font-size: 0.85rem; }
.lead { line-height: 1.7; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1rem 0 0.5rem; }
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.badges span {
    padding: 0.625rem 1.25rem;
    background: #111111;
    border: 1px solid #262626;
    border-radius: var(--radius-pill);
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.badges span:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.section-head { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0.2rem 0; }
.muted { color: var(--muted); margin: 0; }
.featured-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.featured-section h2 {
    color: var(--text);
}

body.light-theme .featured-section h2 {
    color: #000000;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

@keyframes underline-grow {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.stats-section {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(185, 28, 28, 0.08));
    border-top: 1px solid rgba(220, 38, 38, 0.2);
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    padding: 3rem 4vw;
    margin: 2rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    border: 1px solid rgba(220, 38, 38, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 38, 38, 0.4);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}
.stat-label {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.how-it-works { display: flex; flex-direction: column; gap: 2rem; }
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.step {
    background: #111111;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.75rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.step:hover {
    transform: translateY(-3px);
    border-color: rgba(220, 38, 38, 0.4);
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}
.step h3 { margin: 0; }
.step p { margin: 0; color: var(--muted); }

.examples { display: flex; flex-direction: column; gap: 0.5rem; }

/* Larger cards for featured offers on homepage */
.examples .cards {
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.cards.list { grid-template-columns: 1fr; }

.card {
    background: #111111;
    border: 1px solid #262626;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: block;
    height: 260px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Larger cards for featured offers */
.examples .card {
    height: 480px;
}
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.card.list { grid-template-columns: 280px 1fr; grid-template-rows: auto; min-height: 200px; }

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.examples .card-image-wrapper {
    height: 480px;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    background: #0a0a0a;
    min-height: 260px;
    transition: transform 0.3s ease;
}

.examples .card img {
    min-height: 400px;
}

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

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 70%, transparent 100%);
    padding: 1.5rem 1.25rem 1.25rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Larger overlay for featured offers */
.examples .card-overlay {
    padding: 3rem 2.5rem 2.5rem;
    gap: 1.5rem;
}

.card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay-content {
    display: grid;
    gap: 0.75rem;
}

.card-body {
    padding: 1.25rem;
    display: grid;
    gap: 0.75rem;
    background: #111111;
    border-top: 1px solid #262626;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.card-body h3 {
    color: var(--text);
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}
.meta-item {
    background: #1a1a1a;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-weight: 600;
    color: #e5e5e5;
    font-size: 0.9rem;
    border: 1px solid #2a2a2a;
}
body.light-theme .meta-item {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}
.price {
    background: rgba(220, 38, 38, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}
.badge {
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(220, 38, 38, 1);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
}
.actions-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    height: 100%;
    width: 100%;
}
.card-link:hover {
    text-decoration: none;
}

.card-overlay h3 {
    color: #ffffff;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.card:hover .card-overlay h3 {
    color: var(--primary);
}

.card-overlay .meta-item {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.card-overlay .price {
    background: rgba(220, 38, 38, 0.25);
    border: 1px solid rgba(220, 38, 38, 0.5);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.card-overlay .badge {
    background: rgba(220, 38, 38, 0.95);
    border: 1px solid rgba(220, 38, 38, 1);
    color: #ffffff;
}

/* Larger text for featured offers */
.examples .card-overlay h3 {
    font-size: 1.8rem;
}

.examples .card-overlay .price {
    font-size: 1.8rem;
    padding: 0.75rem 1.5rem;
}

.examples .card-overlay .meta-item {
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
}

/* Car details page */
.car-details-container {
    padding: 2rem 4vw;
    max-width: 1400px;
    margin: 0 auto;
}

.car-details-skeleton {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.skeleton-gallery {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--surface);
    border-radius: var(--radius);
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skeleton-header {
    width: 60%;
    height: 2.5rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-text {
    width: 100%;
    height: 1rem;
    background: var(--surface);
    border-radius: var(--radius-sm);
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-text:nth-child(3) {
    width: 80%;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

body.light-theme .skeleton-gallery,
body.light-theme .skeleton-header,
body.light-theme .skeleton-text {
    background: #f5f5f5;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    margin-bottom: 2rem;
    font-weight: 500;
    transition: color 0.2s;
}
.back-link:hover {
    color: var(--primary);
}
.car-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.car-gallery {
    display: grid;
    gap: 1rem;
}
.main-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--radius);
    background: #0a0a0a;
    border: 1px solid var(--border);
}
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}
.thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    background: #0a0a0a;
}
.thumbnail:hover {
    border-color: var(--primary);
    opacity: 0.9;
}
.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
}
.main-image {
    cursor: pointer;
    transition: transform 0.2s;
}
.main-image:hover {
    transform: scale(1.02);
}
/* Lightbox styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.lightbox-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-image {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}
@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}
.lightbox-prev {
    left: -80px;
}
.lightbox-next {
    right: -80px;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    .lightbox-counter {
        bottom: 10px;
    }
}
.car-info {
    display: grid;
    gap: 2rem;
}
.car-header h1 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    color: #ffffff;
}
/* Light theme override - must come after base style */
body.light-theme .car-header h1,
body.light-theme h1.car-header,
body.light-theme .car-info .car-header h1,
body.light-theme .car-details-container .car-header h1,
body.light-theme .car-details-grid .car-header h1 {
    color: #000000 !important;
}
.car-meta-top {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.car-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}
.car-description,
.car-specs {
    background: #111111;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.car-description h2,
.car-specs h2 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    color: var(--text);
}
.description-text {
    color: var(--muted);
    line-height: 1.8;
    white-space: pre-line;
}
.description-intro {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.description-intro p {
    color: var(--text);
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
}
.description-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}
.description-section:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(220, 38, 38, 0.3);
    transform: translateY(-2px);
}
.description-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.section-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.description-section-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}
.description-section-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}
.description-section-list li {
    color: var(--muted);
    line-height: 1.7;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}
.description-section-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}
/* Info blocks container */
.info-blocks-container {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}
.info-block-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.info-block-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.info-block-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.info-block-icon {
    font-size: 1.75rem;
    line-height: 1;
}
.info-block-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}
.info-block-content {
    display: grid;
    gap: 1rem;
}
.info-block-text {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
}
.info-block-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}
.info-spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.info-spec-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}
.info-spec-value {
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
}
.info-block-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}
.info-block-list li {
    color: var(--muted);
    line-height: 1.7;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}
.info-block-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.spec-item {
    display: grid;
    gap: 0.25rem;
}
.spec-label {
    color: var(--muted);
    font-size: 0.9rem;
}
.spec-value {
    color: var(--text);
    font-weight: 600;
}
.car-contact-info {
    background: #111111;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.contact-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}
.contact-details {
    display: grid;
    gap: 0.5rem;
    flex: 1;
}
.contact-label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}
.contact-value {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
}
.phone-reveal-btn {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}
.phone-reveal-btn:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.5);
}
.phone-reveal-btn.revealed {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.6);
    cursor: default;
}
.phone-reveal-btn.revealed:hover {
    background: rgba(220, 38, 38, 0.25);
}
.phone-visible a {
    color: var(--primary);
    text-decoration: none;
}
.phone-visible a:hover {
    text-decoration: underline;
}
body.light-theme .car-contact-info {
    background: #ffffff !important;
    border-color: #e5e5e5 !important;
}
body.light-theme .contact-label {
    color: #666666;
}
body.light-theme .contact-value {
    color: #1a1a1a;
}
body.light-theme .phone-reveal-btn {
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--primary);
}
body.light-theme .phone-reveal-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
}
body.light-theme .phone-visible a {
    color: var(--primary);
}
.car-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.loading,
.error-message {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}
.error-message h2 {
    color: var(--text);
    margin-bottom: 1rem;
}

@media (max-width: 960px) {
    .car-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

.cta-wide {
    background: linear-gradient(120deg, rgba(220, 38, 38, 0.08), rgba(185, 28, 28, 0.12));
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: center;
}
.cta-wide h3 { margin: 0.3rem 0; font-size: 1.5rem; }
.cta-wide p { margin: 0.5rem 0 0; color: var(--muted); }
.cta-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.contact { display: flex; flex-direction: column; gap: 1rem; }
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}
.contact-card {
    background: #111111;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.contact-form { display: grid; gap: 0.75rem; }
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; }
.contact-form input,
.contact-form textarea {
    background: #111111;
    border: 1px solid #262626;
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
    font: inherit;
}
.contact-form button { justify-content: center; }
.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

body.light-theme .form-message.success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #16a34a;
}

body.light-theme .form-message.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #dc2626;
}

.contact-info {
    background: #111111;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: grid;
    gap: 1.5rem;
    box-shadow: var(--shadow);
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-block h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.info-block p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-block a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.info-block a:hover {
    color: var(--primary-strong);
}

.contact-link {
    color: var(--primary) !important;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--primary-strong) !important;
}

/* Contact items with icons */
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--primary);
    opacity: 0.9;
}

.contact-item span {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item a {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--primary-strong);
}

/* Social media buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    color: #ffffff !important;
}

.social-btn span {
    color: #ffffff !important;
}

.social-btn svg {
    flex-shrink: 0;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.instagram:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(188, 24, 136, 0.4);
}

.footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 4vw 2rem;
    display: grid;
    gap: 0.6rem;
    background: #111111;
    color: var(--muted);
}
.footer .brand { margin-bottom: 0.2rem; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 960px) {
    .topbar { grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "nav nav"; }
    .brand { grid-area: brand; }
    .nav { grid-area: nav; }
    .actions { grid-area: actions; flex-wrap: wrap; justify-content: flex-end; }
    .cta-wide { grid-template-columns: 1fr; text-align: center; }
    .cta-buttons { justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .card.list { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .stat-number { font-size: 2rem; }
}

@media (max-width: 720px) {
    .topbar { grid-template-columns: auto auto; grid-template-areas: "brand menu" "nav nav" "actions actions"; }
    .nav { display: none; flex-direction: column; border-top: 1px solid var(--border); padding-top: 0.5rem; }
    .nav.open { display: flex; }
    .actions { justify-content: flex-start; }
    .menu-toggle { display: block; grid-area: menu; }
    .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
    .stats-section { padding: 2rem 4vw; }
    .stat-number { font-size: 2rem; }
}

/* Light theme styles */
body.light-theme {
    background: #ffffff !important;
    color: #000000 !important;
    --text: #000000 !important;
    --muted: #666666 !important;
    --bg: #ffffff !important;
    --surface: #f5f5f5 !important;
    --card: #ffffff !important;
    --border: #e5e5e5 !important;
}
/* Force all text to be black in light theme */
body.light-theme * {
    color: inherit;
}
/* Exclude card overlay from general light theme color inheritance */
body.light-theme .card-overlay,
body.light-theme .card-overlay * {
    color: #ffffff !important;
}
body.light-theme .badge,
body.light-theme .car-price,
body.light-theme .phone-visible a {
    color: inherit !important;
}
body.light-theme .car-details-container {
    color: #000000;
}
body.light-theme .car-details-grid {
    color: #000000;
}
body.light-theme .car-details-grid * {
    color: inherit;
}
body.light-theme .topbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e5e5e5;
}
body.light-theme .brand-name {
    color: #000000;
}
body.light-theme .nav a {
    color: #666666;
}
body.light-theme .nav a:hover {
    color: #000000;
}
body.light-theme .pill.ghost {
    border-color: #e5e5e5;
    color: #666666;
}

/* Instagram and Facebook buttons keep their colors in light theme */
body.light-theme .pill.ghost[href*="instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: none;
    color: #ffffff;
}

body.light-theme .pill.ghost[href*="facebook"] {
    background: #1877f2;
    border: none;
    color: #ffffff;
}
body.light-theme .pill.secondary {
    background: #f5f5f5;
    border-color: #e5e5e5;
}
body.light-theme .muted {
    color: #666666;
}
body.light-theme .step {
    background: #ffffff;
    border: 1px solid #e5e5e5;
}
body.light-theme .card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
}
body.light-theme .card:hover {
    border-color: rgba(220, 38, 38, 0.5);
}
body.light-theme .car-info {
    color: #000000 !important;
}
body.light-theme .car-info h1,
body.light-theme .car-info h2,
body.light-theme .car-info h3,
body.light-theme .car-info p,
body.light-theme .car-info span:not(.badge):not(.phone-visible a) {
    color: #000000 !important;
}
body.light-theme .car-info .badge {
    color: #ffffff !important;
}
body.light-theme .car-info .car-price {
    color: var(--primary) !important;
}
body.light-theme .car-description,
body.light-theme .car-specs {
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    color: #000000 !important;
}
body.light-theme .car-description *,
body.light-theme .car-specs * {
    color: inherit;
}
body.light-theme .car-description .badge,
body.light-theme .car-specs .badge {
    color: #ffffff !important;
}
body.light-theme .car-description h2,
body.light-theme .car-specs h2 {
    color: #000000 !important;
}
body.light-theme .description-text {
    color: #333333 !important;
}
body.light-theme .description-intro p {
    color: #000000 !important;
}
body.light-theme .description-section {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: #e5e5e5 !important;
}
body.light-theme .description-section:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
}
body.light-theme .description-section-header {
    border-bottom-color: #e5e5e5 !important;
}
body.light-theme .description-section-header h3 {
    color: #000000 !important;
}
body.light-theme .description-section-list li {
    color: #333333 !important;
}
body.light-theme .description-section-list li::before {
    color: var(--primary) !important;
}
body.light-theme .info-block-card {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: #e5e5e5 !important;
}
body.light-theme .info-block-card:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(220, 38, 38, 0.4) !important;
}
body.light-theme .info-block-header {
    border-bottom-color: #e5e5e5 !important;
}
body.light-theme .info-block-header h3 {
    color: #000000 !important;
}
body.light-theme .info-block-text {
    color: #333333 !important;
}
body.light-theme .info-spec-item {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: #e5e5e5 !important;
}
body.light-theme .info-spec-label {
    color: #666666 !important;
}
body.light-theme .info-spec-value {
    color: #000000 !important;
}
body.light-theme .info-block-list li {
    color: #333333 !important;
}
body.light-theme .info-block-list li::before {
    color: var(--primary) !important;
}
body.light-theme .spec-label {
    color: #666666 !important;
}
body.light-theme .spec-value {
    color: #000000 !important;
}
body.light-theme .car-specs .spec-item {
    color: #000000;
}
body.light-theme .car-header h1,
body.light-theme .car-info .car-header h1,
body.light-theme .car-details-grid .car-header h1,
body.light-theme .car-details-container .car-header h1 {
    color: #000000 !important;
}
body.light-theme .car-header {
    color: #000000 !important;
}
body.light-theme .car-header h1,
body.light-theme .car-header span:not(.badge):not(.car-price),
body.light-theme .car-header div {
    color: #000000 !important;
}
body.light-theme .car-header .badge {
    color: #ffffff !important;
}
body.light-theme .car-header .car-price {
    color: var(--primary) !important;
}
body.light-theme .car-meta-top {
    color: #000000 !important;
}
body.light-theme .car-meta-top span:not(.badge) {
    color: #000000 !important;
}
body.light-theme .car-meta-top .meta-item {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}
body.light-theme .car-meta-top .badge {
    background: rgba(220, 38, 38, 0.9) !important;
    color: #ffffff !important;
}
body.light-theme .car-price {
    color: var(--primary) !important;
}
body.light-theme .back-link {
    color: #666666;
}
body.light-theme .back-link:hover {
    color: #000000;
}
body.light-theme .main-image {
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
}
body.light-theme .thumbnail {
    background: #f5f5f5;
}
body.light-theme .meta-item {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}
body.light-theme .car-meta-top .meta-item {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}
body.light-theme .car-header h1,
body.light-theme .car-info h1,
body.light-theme .car-info h2,
body.light-theme .car-info h3 {
    color: #000000 !important;
}
body.light-theme .spec-value,
body.light-theme .car-info .spec-value {
    color: #000000 !important;
}
body.light-theme .car-meta-top span:not(.badge) {
    color: #000000 !important;
}
body.light-theme .car-info .meta-item {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #000000 !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}
body.light-theme .badge {
    background: rgba(220, 38, 38, 0.9);
    color: #ffffff;
}
body.light-theme .price {
    background: rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.4);
    color: var(--primary);
}
/* Card overlay in light theme */
body.light-theme .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.75) 70%, transparent 100%) !important;
}
body.light-theme .card-overlay * {
    color: #ffffff !important;
}
body.light-theme .card-overlay h3 {
    color: #ffffff !important;
}
body.light-theme .card:hover .card-overlay h3 {
    color: var(--primary) !important;
}
body.light-theme .card-overlay .meta-item {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}
body.light-theme .card-overlay .price {
    background: rgba(220, 38, 38, 0.9) !important;
    border: 1px solid rgba(220, 38, 38, 0.6) !important;
    color: #ffffff !important;
}
body.light-theme .card-overlay .badge {
    background: rgba(220, 38, 38, 0.95) !important;
    border: 1px solid rgba(220, 38, 38, 1) !important;
    color: #ffffff !important;
}
body.light-theme .contact-card,
body.light-theme .contact-info {
    background: #ffffff;
    border: 1px solid #e5e5e5;
}

body.light-theme .info-block h4 {
    color: #000000;
}

body.light-theme .info-block p {
    color: #666666;
}

body.light-theme .social-btn.facebook {
    background: #1877f2;
    color: #ffffff;
}

body.light-theme .social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

body.light-theme .contact-item svg {
    color: var(--primary);
}

body.light-theme .contact-item span {
    color: #666666;
}

body.light-theme .contact-item a {
    color: #000000;
}

body.light-theme .social-btn span {
    color: #ffffff !important;
}
body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    color: #000000;
}
body.light-theme .footer {
    background: #f9f9f9;
    border-top: 1px solid #e5e5e5;
}
body.light-theme .cta-wide {
    background: linear-gradient(120deg, rgba(220, 38, 38, 0.05), rgba(185, 28, 28, 0.08));
    border: 1px solid rgba(220, 38, 38, 0.2);
}
body.light-theme .badges span {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.light-theme .badges span:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.15);
}
body.light-theme .stats-section {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.03), rgba(185, 28, 28, 0.05));
    border-top: 1px solid rgba(220, 38, 38, 0.15);
    border-bottom: 1px solid rgba(220, 38, 38, 0.15);
}
body.light-theme .stat-item {
    background: #ffffff;
    border: 1px solid rgba(220, 38, 38, 0.2);
}
body.light-theme .stat-item:hover {
    border-color: rgba(220, 38, 38, 0.4);
}
body.light-theme .stat-number {
    color: var(--primary);
}
body.light-theme .stat-label {
    color: #666666;
}
body.light-theme .hero-copy h1 {
    color: #000000;
}
body.light-theme .hero-copy .lead {
    color: #000000;
}
body.light-theme .hero-copy .sub-lead {
    color: #333333;
}
body.light-theme .section-head h2 {
    color: #000000;
}
body.light-theme .section-head .muted {
    color: #666666;
}
body.light-theme .eyebrow {
    color: var(--primary);
}
body.light-theme .error-message h2 {
    color: #000000;
}
body.light-theme .error-message p {
    color: #666666;
}
body.light-theme .cta-wide h3 {
    color: #000000;
}
body.light-theme .cta-wide p {
    color: #666666;
}
body.light-theme .theme-toggle-slider {
    background-color: #e5e5e5;
    border-color: #d4d4d4;
}
body.light-theme .theme-toggle-slider:before {
    background-color: #ffffff;
}
body.light-theme .theme-toggle-input:checked + .theme-toggle-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}
body.light-theme .theme-toggle:hover .theme-toggle-slider {
    border-color: var(--primary);
}

/* Offers page styles */
.offers-section {
    padding: 2rem 0;
}

.section-head h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.search-filters {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

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

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

.filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
}

.filter-group input {
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 100%;
}

.filter-group select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    cursor: pointer;
}

.filter-group select:hover {
    border-color: var(--primary);
    background-color: var(--surface);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--surface);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.price-select-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-select-wrapper select {
    width: 100%;
    padding-right: 2.5rem;
}

.price-custom-input {
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
}

.price-custom-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--surface);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.input-with-clear,
.select-with-clear {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-clear input {
    padding-right: 2.5rem;
}

.select-with-clear select {
    padding-right: 2.5rem;
}

.clear-input,
.clear-select {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 2;
}

.clear-input:hover,
.clear-select:hover {
    color: var(--text);
}

.clear-input:active,
.clear-select:active {
    transform: scale(0.9);
}

.filter-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--surface);
}

.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.filter-group input::placeholder {
    color: var(--muted);
}

.filters-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1.25rem 0;
    border-bottom: 2px solid var(--border);
}

.results-info p {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.sort-controls label {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sort-select {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sort-select:hover {
    border-color: var(--primary);
    background-color: var(--surface);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    transform: translateY(-1px);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2), 0 4px 12px rgba(220, 38, 38, 0.15);
    background-color: var(--surface);
}

.sort-select:active {
    transform: translateY(0);
}

body.light-theme .sort-select {
    background: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 12px;
    border-color: rgba(0, 0, 0, 0.12);
    color: #000000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

body.light-theme .sort-select:hover {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

body.light-theme .sort-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15), 0 4px 12px rgba(220, 38, 38, 0.2);
    background-color: #ffffff;
}

/* Stylowanie opcji w liście rozwijanej */
.sort-select option {
    background: var(--surface);
    color: var(--text);
    padding: 0.5rem;
}

body.light-theme .sort-select option {
    background: #ffffff;
    color: #000000;
}

body.light-theme .sort-select option:hover {
    background: #f5f5f5;
}

body.light-theme .sort-select option:checked {
    background: var(--primary);
    color: #ffffff;
}

.results-info #results-number {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}

.results-info #results-number {
    font-weight: 600;
    color: var(--primary);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Light theme for offers page */
body.light-theme .search-filters {
    background: #f9f9f9;
    border-color: #e5e5e5;
}

body.light-theme .filter-group input,
body.light-theme .filter-group select {
    background: #ffffff;
    border-color: #e5e5e5;
    color: #000000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

body.light-theme .price-custom-input {
    background: #ffffff;
    border-color: #e5e5e5;
    color: #000000;
}

body.light-theme .filter-group select:disabled {
    background-color: #f5f5f5;
    opacity: 0.6;
}

body.light-theme .clear-input,
body.light-theme .clear-select {
    color: #999999;
}

body.light-theme .clear-input:hover,
body.light-theme .clear-select:hover {
    color: #000000;
}

body.light-theme .filter-group select:hover {
    border-color: var(--primary);
    background-color: #f9f9f9 !important;
}

body.light-theme .filter-group input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

body.light-theme .filter-group select:focus {
    background: #ffffff !important;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

body.light-theme .price-custom-input:focus {
    background: #ffffff !important;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

body.light-theme .filter-group label {
    color: #666666;
}

body.light-theme .results-info {
    border-bottom-color: #e5e5e5;
}

body.light-theme .results-info p {
    color: #666666;
}

body.light-theme .section-head h1 {
    color: #000000;
}

body.light-theme .no-results {
    color: #666666;
}

/* Responsive for offers page */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filters-actions {
        flex-direction: column;
    }
    
    .filters-actions .pill {
        width: 100%;
        justify-content: center;
    }
    
    .section-head h1 {
        font-size: 2rem;
    }
    
    /* Responsywne karty na mobile */
    .examples .cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .examples .card {
        height: 320px;
    }
    
    .examples .card-image-wrapper {
        height: 320px;
    }
    
    .examples .card img {
        min-height: 320px;
    }
    
    .examples .card-overlay {
        padding: 2rem 1.5rem 1.5rem;
        gap: 1rem;
    }
    
    .cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card {
        height: 240px;
    }
    
    .card-image-wrapper {
        height: 240px;
    }
    
    .card img {
        min-height: 240px;
    }
    
    /* Mniejsze paddingi na mobile */
    .topbar {
        padding: 0.75rem 3vw;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .brand-name {
        font-size: 0.9rem;
    }
    
    .pill {
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .pill.primary.large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Hero section na mobile */
    .hero {
        padding: 2rem 3vw;
    }
    
    .hero-copy h1 {
        font-size: 2rem;
    }
    
    .hero-copy .lead {
        font-size: 1.2rem;
    }
    
    .hero-copy .sub-lead {
        font-size: 1rem;
    }
    
    /* Sekcje na mobile */
    section {
        padding: 2rem 3vw;
    }
    
    .section-head h2 {
        font-size: 1.8rem;
    }
}

/* Force black text in light theme for car details - highest specificity */
body.light-theme .car-details-container .car-details-grid .car-info .car-header h1,
body.light-theme .car-details-container h1,
body.light-theme .car-details-grid h1,
body.light-theme .car-info h1,
body.light-theme .car-header h1,
body.light-theme main h1,
body.light-theme #car-details-content h1 {
    color: #000000 !important;
    opacity: 1 !important;
    visibility: visible !important;
}
