.autowebb-cars,
.autowebb-single-car {
    --autowebb-ink: #111827;
    --autowebb-muted: #5b6472;
    --autowebb-line: #d8dee8;
    --autowebb-surface: #ffffff;
    --autowebb-soft: #f4f7fb;
    --autowebb-accent: #c89b3c;
    --autowebb-accent-strong: #a97822;
    --autowebb-dark: #020101;
    color: var(--autowebb-ink);
}

.autowebb-car-template {
    width: 100%;
}

body.post-type-archive-autowebb_car #site-header .elementor .e-flexbox-base {
    display: flex !important;
    flex-direction: row !important;
    padding: 10px !important;
}

.autowebb-template-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.autowebb-single-title {
    margin: 0 0 22px;
}

.autowebb-single-title h1 {
    margin: 0;
    color: var(--autowebb-ink);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
}

.autowebb-featured-image {
    margin: 0;
}

.autowebb-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    max-height: 620px;
    border-radius: 8px;
    object-fit: cover;
}

.autowebb-featured-placeholder {
    display: grid;
    min-height: 430px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #1f2937, #475569 52%, #0f766e);
    color: #fff;
    font-size: 28px;
    font-weight: 900;
}

.autowebb-hero-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    align-items: stretch;
    margin: 0 0 32px;
}

.autowebb-purchase-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid var(--autowebb-line);
    border-radius: 8px;
    padding: 22px;
    background: var(--autowebb-soft);
}

.autowebb-status-pill {
    align-self: flex-start;
    border-radius: 999px;
    padding: 6px 10px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.autowebb-panel-label,
.autowebb-panel-price,
.autowebb-finance-note {
    margin: 0;
}

.autowebb-panel-label {
    color: var(--autowebb-muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.autowebb-panel-price {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 950;
    line-height: 1;
}

.autowebb-finance-note {
    color: var(--autowebb-muted);
    font-weight: 800;
}

.autowebb-panel-facts {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
}

.autowebb-panel-facts div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--autowebb-line);
    padding-bottom: 8px;
}

.autowebb-panel-facts dt,
.autowebb-panel-facts dd {
    margin: 0;
}

.autowebb-panel-facts dt {
    color: var(--autowebb-muted);
    font-weight: 800;
}

.autowebb-panel-facts dd {
    font-weight: 900;
    text-align: right;
}

.autowebb-panel-actions {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.autowebb-trust-list {
    display: grid;
    gap: 7px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    color: var(--autowebb-muted);
    font-weight: 800;
}

.autowebb-trust-list li::before {
    content: "✓";
    margin-right: 8px;
    color: var(--autowebb-accent);
    font-weight: 900;
}

.autowebb-cars {
    position: relative;
}

.autowebb-archive-headline {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 18px;
}

.autowebb-archive-headline h1 {
    margin: 0;
    color: var(--autowebb-dark);
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1.1;
}

.autowebb-archive-headline a {
    color: var(--autowebb-accent-strong);
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.autowebb-latest-cars {
    margin: 0;
}

.autowebb-section-head {
    display: flex;
    gap: 16px;
    align-items: end;
    justify-content: space-between;
    margin: 0 0 20px;
}

.autowebb-section-head h2 {
    margin: 0;
    color: var(--autowebb-ink);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.1;
}

.autowebb-section-link {
    color: var(--autowebb-accent);
    font-weight: 900;
    text-decoration: none;
}

.autowebb-section-link:hover {
    color: var(--autowebb-accent-strong);
}

.autowebb-cars.is-loading .autowebb-results {
    opacity: .45;
    pointer-events: none;
}

.autowebb-filter {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: end;
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid var(--autowebb-line);
    border-radius: 8px;
    background: var(--autowebb-soft);
}

.autowebb-filter-archive {
    grid-template-columns: repeat(5, minmax(120px, 1fr)) 70px 70px minmax(128px, .75fr) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 24px;
    border-color: rgba(2, 1, 1, .92);
    border-radius: 8px;
    padding: 22px;
    background: #0d0d0d;
}

.autowebb-filter-intro {
    display: flex;
    grid-column: 1 / -1;
    gap: 14px;
    align-items: baseline;
    color: #fff;
}

.autowebb-filter-intro strong {
    font-size: 18px;
    font-weight: 950;
    letter-spacing: 0;
}

.autowebb-filter-intro span {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
}

.autowebb-filter label,
.autowebb-field label {
    display: grid;
    gap: 5px;
}

.autowebb-filter span {
    font-size: 13px;
    font-weight: 700;
}

.autowebb-filter-archive label {
    min-width: 0;
}

.autowebb-filter-archive label span {
    color: #c8c0aa;
    font-size: 12px;
    font-weight: 700;
}

.autowebb-filter input,
.autowebb-filter select {
    min-height: 42px;
    width: 100%;
    border: 1px solid var(--autowebb-line);
    border-radius: 6px;
    padding: 8px 10px;
    background: #fff;
}

.autowebb-filter-archive input,
.autowebb-filter-archive select {
    box-sizing: border-box;
    height: 56px;
    min-height: 56px;
    border: 0;
    border-radius: 5px;
    padding: 8px 11px;
    background: #fff !important;
    background-color: #fff !important;
    color: #020101 !important;
    font-weight: 600;
    line-height: 1.2;
}

.autowebb-filter-archive input[type="number"] {
    appearance: textfield;
    padding-right: 8px;
}

.autowebb-filter-archive label:nth-of-type(6),
.autowebb-filter-archive label:nth-of-type(7) {
    width: auto;
}

.autowebb-filter-archive input[type="number"]::-webkit-inner-spin-button,
.autowebb-filter-archive input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.autowebb-filter-archive input::placeholder {
    color: #4b5563;
    opacity: 1;
}

.autowebb-filter button,
.autowebb-filter button[type="submit"],
.autowebb-button,
.autowebb-lead-form button.autowebb-button,
.autowebb-lead-form button[type="submit"].autowebb-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 155, 60, .82) !important;
    border-radius: 6px;
    padding: 9px 14px;
    background: var(--autowebb-dark) !important;
    background-color: var(--autowebb-dark) !important;
    color: var(--autowebb-accent) !important;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(2, 1, 1, .12);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.autowebb-filter button:hover,
.autowebb-filter button[type="submit"]:hover,
.autowebb-button:hover,
.autowebb-lead-form button.autowebb-button:hover,
.autowebb-lead-form button[type="submit"].autowebb-button:hover {
    border-color: var(--autowebb-accent) !important;
    background: var(--autowebb-accent) !important;
    background-color: var(--autowebb-accent) !important;
    color: var(--autowebb-dark) !important;
    transform: translateY(-1px);
}

.autowebb-filter-archive button,
.autowebb-filter-archive button[type="submit"] {
    min-height: 56px;
    border-color: var(--autowebb-accent) !important;
    background: var(--autowebb-accent) !important;
    background-color: var(--autowebb-accent) !important;
    color: var(--autowebb-dark) !important;
    box-shadow: none;
    text-transform: uppercase;
}

.autowebb-filter-archive button:hover,
.autowebb-filter-archive button[type="submit"]:hover {
    background: #d7ad55 !important;
    background-color: #d7ad55 !important;
    color: var(--autowebb-dark) !important;
}

.autowebb-filter-archive .autowebb-filter-reset {
    color: #c8c0aa;
}

.autowebb-filter-reset {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--autowebb-muted);
    font-weight: 700;
    text-decoration: none;
}

.autowebb-car-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.autowebb-results {
    transition: opacity .18s ease;
}

.autowebb-car-card {
    overflow: hidden;
    border: 1px solid rgba(200, 155, 60, .68);
    border-radius: 8px;
    background: var(--autowebb-dark);
    box-shadow: 0 6px 18px rgba(2, 1, 1, .10);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.autowebb-car-card:hover {
    border-color: rgba(200, 155, 60, .96);
    box-shadow: 0 10px 24px rgba(2, 1, 1, .16);
    transform: translateY(-2px);
}

.autowebb-car-image {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
    background: var(--autowebb-dark);
    color: var(--autowebb-accent);
    font-weight: 900;
    line-height: 0;
    text-decoration: none;
}

.autowebb-car-image > span {
    display: grid;
    min-height: 220px;
    place-items: center;
    line-height: 1.2;
}

.autowebb-car-image img {
    display: block;
    width: 100%;
    height: 220px;
    margin: 0;
    object-fit: cover;
    transition: transform .35s ease;
    vertical-align: top;
}

.autowebb-car-card:hover .autowebb-car-image img {
    transform: scale(1.035);
}

.autowebb-badge {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    border: 1px solid rgba(200, 155, 60, .82);
    border-radius: 999px;
    padding: 8px 11px;
    background: rgba(2, 1, 1, .84);
    color: #c8c0aa;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.autowebb-car-card-body {
    padding: 16px;
    color: #fff;
}

.autowebb-car-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.2;
}

.autowebb-car-card h3 a {
    color: #fff;
    text-decoration: none;
}

.autowebb-car-card h3 a:hover {
    color: var(--autowebb-accent);
}

.autowebb-car-facts {
    margin: 0 0 14px;
    color: #c8c0aa;
    font-size: 13px;
    font-weight: 700;
}

.autowebb-car-price {
    margin: 0 0 15px;
    color: var(--autowebb-accent);
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
}

.autowebb-car-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.autowebb-car-tags span {
    border-radius: 999px;
    border: 1px solid rgba(200, 155, 60, .28);
    padding: 6px 10px;
    background: rgba(255, 255, 255, .06);
    color: #ead8ae;
    font-size: 13px;
    font-weight: 700;
}

.autowebb-car-card .autowebb-button {
    width: 100%;
    box-shadow: none;
}

.autowebb-empty {
    padding: 18px;
    border: 1px solid var(--autowebb-line);
    border-radius: 8px;
    background: var(--autowebb-soft);
}

.autowebb-single-hero {
    margin-bottom: 28px;
}

.autowebb-single-hero img,
.autowebb-single-placeholder {
    width: 100%;
    min-height: 340px;
    border-radius: 8px;
    object-fit: cover;
}

.autowebb-gallery-section {
    margin: 0 0 28px;
}

.autowebb-gallery-section h2 {
    margin: 0 0 12px;
}

.autowebb-gallery {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    margin: 0;
}

.autowebb-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 7px;
    background: var(--autowebb-soft);
}

.autowebb-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.autowebb-single-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1f2937, #475569 52%, #0f766e);
    color: #fff;
    font-size: 28px;
    font-weight: 900;
}

.autowebb-single-layout {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    align-items: start;
}

.autowebb-spec-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 0 0 24px;
}

.autowebb-spec-grid div {
    border: 1px solid var(--autowebb-line);
    border-radius: 7px;
    padding: 11px 12px;
    background: var(--autowebb-soft);
}

.autowebb-spec-grid span {
    display: block;
    margin-bottom: 3px;
    color: var(--autowebb-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.autowebb-spec-grid strong {
    display: block;
    font-size: 16px;
}

.autowebb-equipment-list {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding: 0;
    list-style: none;
}

.autowebb-equipment-list li {
    border-bottom: 1px solid var(--autowebb-line);
    padding: 0 0 8px;
}

.autowebb-equipment-list li::before {
    content: "✓";
    margin-right: 8px;
    color: var(--autowebb-accent);
    font-weight: 900;
}

.autowebb-contact-panel {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 12px;
    border: 1px solid var(--autowebb-line);
    border-radius: 8px;
    padding: 18px;
    background: var(--autowebb-soft);
}

.autowebb-contact-panel h2 {
    margin: 0;
}

.autowebb-button-light {
    border: 1px solid rgba(200, 155, 60, .82) !important;
    background: #fff !important;
    background-color: #fff !important;
    color: var(--autowebb-dark) !important;
    box-shadow: none;
}

.autowebb-button-light:hover {
    border-color: var(--autowebb-accent) !important;
    background: var(--autowebb-accent) !important;
    background-color: var(--autowebb-accent) !important;
    color: var(--autowebb-dark) !important;
}

.autowebb-lead-form {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.autowebb-lead-form label {
    display: grid;
    gap: 5px;
}

.autowebb-lead-form span {
    font-size: 13px;
    font-weight: 800;
}

.autowebb-lead-form input,
.autowebb-lead-form textarea {
    width: 100%;
    border: 1px solid var(--autowebb-line);
    border-radius: 6px;
    padding: 9px 10px;
    background: #fff;
}

@media (max-width: 760px) {
    .autowebb-section-head {
        display: grid;
        align-items: start;
    }

    .autowebb-archive-headline {
        display: grid;
        align-items: start;
    }

    .autowebb-filter-archive {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .autowebb-filter-archive label:nth-of-type(6),
    .autowebb-filter-archive label:nth-of-type(7) {
        justify-self: stretch;
        width: auto;
    }

    .autowebb-filter-intro {
        display: grid;
        gap: 4px;
    }

    .autowebb-hero-grid {
        grid-template-columns: 1fr;
    }

    .autowebb-featured-image img,
    .autowebb-featured-placeholder {
        min-height: 260px;
    }

    .autowebb-single-layout {
        grid-template-columns: 1fr;
    }

    .autowebb-contact-panel {
        position: static;
    }
}
