/* =========================================================
   OGLASI - LISTING + DETAIL
   Clean production version
   ========================================================= */

/* Page shell */
.vehicle-listing-page,
.vehicle-detail-page {
    padding: 34px 0 80px;
    background:
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.045), transparent 34%),
        var(--front-bg);
}

/* =========================================================
   LISTING HEADER
   ========================================================= */

.vehicle-listing-add {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}

.vehicle-listing-add:hover {
    background: #1e293b;
    border-color: #1e293b;
}

/* =========================================================
   FILTERS
   ========================================================= */

.vehicle-filter-card {
    margin-bottom: 18px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--front-border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.vehicle-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.vehicle-filter-field {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.vehicle-filter-field.is-keyword {
    grid-column: auto;
}

.vehicle-filter-field label {
    min-height: 15px;
    color: #475569;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    white-space: nowrap;
}

.vehicle-filter-field input,
.vehicle-filter-field select {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 11px;
    border: 1px solid var(--front-border);
    border-radius: 0;
    background: #f8fafc;
    color: var(--front-text);
    font-size: 13px;
    font-weight: 800;
    outline: none;
}

.vehicle-filter-field input:focus,
.vehicle-filter-field select:focus {
    background: #ffffff;
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.vehicle-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.vehicle-filter-button,
.vehicle-filter-reset {
    width: auto;
    min-width: 160px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.vehicle-filter-button {
    border: 0;
    background: #0f172a;
    color: #ffffff;
    cursor: pointer;
}

.vehicle-filter-button:hover {
    background: #1e293b;
}

.vehicle-filter-reset {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid var(--front-border);
}

.vehicle-filter-reset:hover {
    background: #f8fafc;
}

/* =========================================================
   LISTING SUMMARY
   ========================================================= */

.vehicle-listing-summary {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 18px 0;
    color: var(--front-muted);
    font-weight: 850;
}

.vehicle-listing-summary strong {
    color: #0f172a;
}

/* =========================================================
   VEHICLE LISTING CARDS
   ========================================================= */

.vehicle-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.vehicle-card {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--front-border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.vehicle-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.vehicle-card-image {
    position: relative;
    width: 100%;
    height: 225px;
    display: block;
    overflow: hidden;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none;
}

.vehicle-card-image img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover !important;
    object-position: center center !important;
    padding: 0 !important;
    background: transparent !important;
}

.vehicle-card-image > span {
    width: 100%;
    height: 225px;
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 40px;
    font-weight: 950;
    letter-spacing: -0.06em;
}



.vehicle-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px;
}

.vehicle-card-topline {
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.vehicle-card-brand {
    min-width: 0;
    overflow: hidden;
    color: #475569;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.06em;
}

.vehicle-card-location {
    flex: 0 0 auto;
    max-width: 95px;
    overflow: hidden;
    padding: 4px 7px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-card-dealer-name {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    margin: 0 0 9px;
    padding: 0 10px;
    background: linear-gradient(135deg, #fff7cc 0%, #ffffff 100%);
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-card-dealer-name::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .16);
}

.vehicle-card h2 {
    margin: 0 0 12px;
    min-height: 43px;
    font-size: 18px;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.vehicle-card h2 a {
    color: var(--front-text);
    text-decoration: none;
}

.vehicle-card h2 a:hover {
    color: #0f172a;
}

.vehicle-card-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 14px;
}

.vehicle-card-spec-grid div {
    min-height: 54px;
    display: grid;
    align-content: center;
    padding: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.vehicle-card-spec-grid small {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.vehicle-card-spec-grid strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.vehicle-card-price {
    min-width: 0;
}

.vehicle-card-price small {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.vehicle-card-price strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.vehicle-card-details {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}

.vehicle-card-details:hover {
    background: #1e293b;
    border-color: #1e293b;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.vehicle-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.vehicle-pagination a,
.vehicle-pagination span {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    background: #ffffff;
    color: var(--front-text);
    border: 1px solid var(--front-border);
    font-weight: 900;
    text-decoration: none;
}

.vehicle-pagination a:hover {
    color: #ffffff;
    background: #0f172a;
    border-color: #0f172a;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.vehicle-empty-state {
    padding: 38px;
    background: #ffffff;
    border: 1px solid var(--front-border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.vehicle-empty-state h1,
.vehicle-empty-state h2 {
    margin: 0 0 10px;
    color: var(--front-text);
    font-size: 32px;
    letter-spacing: -0.055em;
}

.vehicle-empty-state p {
    margin: 0 auto 18px;
    max-width: 520px;
    color: var(--front-muted);
    line-height: 1.65;
}

.vehicle-empty-state a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

/* =========================================================
   DETAIL PAGE
   ========================================================= */

.vehicle-detail-back {
    margin-bottom: 14px;
}

.vehicle-detail-back a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid var(--front-border);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.vehicle-detail-back a:hover {
    background: #f8fafc;
}

.vehicle-detail-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px 390px;
    gap: 18px;
    align-items: start;
}

.vehicle-detail-left {
    min-width: 0;
    display: grid;
    gap: 18px;
    align-content: start;
}

.vehicle-detail-gallery,
.vehicle-detail-facts-panel,
.vehicle-detail-sidebar,
.vehicle-detail-section {
    background: #ffffff;
    border: 1px solid var(--front-border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.vehicle-detail-gallery {
    width: 100%;
    overflow: hidden;
}

.vehicle-detail-main-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 620px;
    display: grid;
    place-items: center;
    background: #e2e8f0;
}

.vehicle-detail-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-detail-main-image span {
    color: #94a3b8;
    font-size: 52px;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.vehicle-detail-thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
    background: #f8fafc;
    border-top: 1px solid var(--front-border);
}

.vehicle-detail-thumbs a {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--front-border);
    background: #ffffff;
}

.vehicle-detail-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Middle facts panel */
.vehicle-detail-facts-panel {
    padding: 16px;
}

.vehicle-detail-facts-title {
    margin-bottom: 12px;
}

.vehicle-detail-facts-title span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.vehicle-detail-facts-title strong {
    display: block;
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.vehicle-detail-facts-grid {
    display: grid;
    gap: 8px;
}

.vehicle-fact-card {
    min-height: 66px;
    display: grid;
    align-content: center;
    padding: 11px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.vehicle-fact-card small {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vehicle-fact-card strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.25;
    text-overflow: ellipsis;
}

/* Detail sidebar */
.vehicle-detail-sidebar {
    position: sticky;
    top: 18px;
    width: 100%;
    padding: 18px;
}

.vehicle-detail-sidebar h1 {
    margin: 0 0 14px;
    color: var(--front-text);
    font-size: 31px;
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.vehicle-detail-price {
    margin: 0 0 14px;
    padding: 16px;
    background: #0f172a;
    color: #ffffff;
    font-size: 31px;
    font-weight: 950;
    letter-spacing: -0.055em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Price estimate indicator */
.vehicle-price-indicator {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--front-border);
}

.vehicle-price-indicator-bars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.vehicle-price-indicator-bars span {
    height: 7px;
    display: block;
    background: #e2e8f0;
}

.vehicle-price-indicator-bars .is-good {
    background: #22c55e;
}

.vehicle-price-indicator-bars .is-fair {
    background: #f59e0b;
}

.vehicle-price-indicator-bars .is-high {
    background: #ef4444;
}

.vehicle-price-indicator.is-good .vehicle-price-indicator-bars .is-fair,
.vehicle-price-indicator.is-good .vehicle-price-indicator-bars .is-high {
    opacity: 0.18;
}

.vehicle-price-indicator.is-fair .vehicle-price-indicator-bars .is-good,
.vehicle-price-indicator.is-fair .vehicle-price-indicator-bars .is-high {
    opacity: 0.18;
}

.vehicle-price-indicator.is-high .vehicle-price-indicator-bars .is-good,
.vehicle-price-indicator.is-high .vehicle-price-indicator-bars .is-fair {
    opacity: 0.18;
}

.vehicle-price-indicator.is-unavailable .vehicle-price-indicator-bars span {
    background: #cbd5e1;
    opacity: 0.55;
}

.vehicle-price-indicator-text {
    display: grid;
    gap: 4px;
}

.vehicle-price-indicator-text strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.vehicle-price-indicator-text small {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.45;
}

.vehicle-price-indicator-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.vehicle-price-indicator-meta span {
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
}

.vehicle-price-indicator-meta strong {
    color: #0f172a;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}

.vehicle-price-indicator.is-good {
    border-color: rgba(34, 197, 94, 0.35);
    background: #f0fdf4;
}

.vehicle-price-indicator.is-fair {
    border-color: rgba(245, 158, 11, 0.35);
    background: #fffbeb;
}

.vehicle-price-indicator.is-high {
    border-color: rgba(239, 68, 68, 0.35);
    background: #fef2f2;
}

.vehicle-price-indicator.is-unavailable {
    background: #f8fafc;
}

/* Contact card */
.vehicle-contact-card {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid var(--front-border);
}

.vehicle-contact-card h2 {
    margin: 0 0 10px;
    color: var(--front-text);
    font-size: 21px;
    letter-spacing: -0.045em;
}

.vehicle-contact-card p {
    margin: 0 0 12px;
}

.vehicle-contact-button {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #0f172a, #334155);
    color: #ffffff;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.vehicle-contact-button:hover {
    background: linear-gradient(135deg, #1e293b, #475569);
}

.vehicle-contact-link {
    display: block;
    color: #0f172a;
    font-weight: 900;
    word-break: break-word;
    text-decoration: none;
}

.vehicle-contact-link:hover {
    text-decoration: underline;
}

.vehicle-contact-card small {
    display: block;
    margin-top: 10px;
    color: var(--front-muted);
    font-weight: 850;
}

.vehicle-contact-message-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--front-border);
}

.vehicle-contact-message-form label {
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

.vehicle-contact-message-form textarea {
    width: 100%;
    min-height: 112px;
    resize: vertical;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    outline: none;
}

.vehicle-contact-message-form textarea:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.vehicle-contact-message-button,
.vehicle-contact-login-button {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: #facc15;
    color: #111827;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
}

.vehicle-contact-login-button {
    margin-top: 12px;
}

.vehicle-contact-self-note {
    display: block;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #eef2ff;
    color: #3730a3 !important;
    font-weight: 900;
}

/* Sidebar equipment */
.vehicle-side-equipment {
    margin-top: 14px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--front-border);
}

.vehicle-side-equipment h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.vehicle-side-equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.vehicle-side-equipment-grid span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
}

/* Detail content */
.vehicle-detail-content {
    width: 100%;
    display: grid;
    gap: 18px;
    margin: 22px 0 0;
}

.vehicle-detail-section {
    padding: 20px;
}

.vehicle-detail-section h2 {
    margin: 0 0 16px;
    color: var(--front-text);
    font-size: 25px;
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.vehicle-detail-section p {
    margin: 0;
    color: var(--front-muted);
    line-height: 1.75;
}

/* Description */
.vehicle-description-section {
    overflow: hidden;
}

.vehicle-description-section > span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vehicle-description-section h2 {
    margin-bottom: 14px;
}

.vehicle-description-section p {
    color: #334155;
    font-size: 15px;
    line-height: 1.8;
}

/* Spec sections */
.vehicle-spec-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.vehicle-detail-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.vehicle-detail-spec {
    min-height: 72px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--front-border);
}

.vehicle-detail-spec small {
    display: block;
    color: var(--front-muted);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.vehicle-detail-spec strong {
    display: block;
    margin-top: 7px;
    color: var(--front-text);
    font-size: 15px;
    line-height: 1.25;
}

/* Fallback for old equipment tags */
.vehicle-equipment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.vehicle-equipment-tags span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 900;
}

/* =========================================================
   GLOBAL SQUARE LOOK
   ========================================================= */

.vehicle-listing-add,
.vehicle-filter-card,
.vehicle-filter-field input,
.vehicle-filter-field select,
.vehicle-filter-button,
.vehicle-filter-reset,
.vehicle-card,
.vehicle-pagination a,
.vehicle-pagination span,
.vehicle-empty-state,
.vehicle-empty-state a,
.vehicle-detail-back a,
.vehicle-detail-gallery,
.vehicle-detail-facts-panel,
.vehicle-detail-sidebar,
.vehicle-detail-section,
.vehicle-detail-main-image,
.vehicle-detail-thumbs a,
.vehicle-fact-card,
.vehicle-detail-price,
.vehicle-contact-card,
.vehicle-contact-button,
.vehicle-contact-message-button,
.vehicle-contact-login-button,
.vehicle-contact-message-form textarea,
.vehicle-contact-self-note,
.vehicle-side-equipment,
.vehicle-side-equipment-grid span,
.vehicle-detail-spec,
.vehicle-equipment-tags span,
.vehicle-price-indicator,
.vehicle-price-indicator-bars span,
.vehicle-price-indicator-meta span {
    border-radius: 0;
}

.vehicle-card-image {
    position: relative;
}

.vehicle-card-seller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

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

@media (max-width: 1480px) {
    .vehicle-detail-layout {
        grid-template-columns: minmax(0, 1fr) 250px 360px;
    }
}

@media (max-width: 1280px) {
    .vehicle-detail-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    .vehicle-detail-facts-panel {
        grid-column: 1 / -1;
    }

    .vehicle-detail-facts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .vehicle-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vehicle-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vehicle-detail-layout {
        grid-template-columns: 1fr;
    }

    .vehicle-detail-sidebar {
        position: static;
    }

    .vehicle-detail-facts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vehicle-side-equipment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .vehicle-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vehicle-spec-sections {
        grid-template-columns: 1fr;
    }

    .vehicle-detail-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vehicle-detail-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .vehicle-listing-page,
    .vehicle-detail-page {
        padding-top: 22px;
    }


    .vehicle-listing-add {
        width: 100%;
    }

    .vehicle-filter-grid,
    .vehicle-card-grid,
    .vehicle-detail-spec-grid,
    .vehicle-side-equipment-grid,
    .vehicle-detail-facts-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .vehicle-filter-button,
    .vehicle-filter-reset {
        width: 100%;
    }

    .vehicle-detail-sidebar,
    .vehicle-detail-facts-panel {
        padding: 16px;
    }
    
    .vehicle-detail-left {
    gap: 14px;
}

    .vehicle-detail-main-image {
        aspect-ratio: 4 / 3;
        max-height: none;
    }

    .vehicle-detail-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vehicle-detail-sidebar h1 {
        font-size: 27px;
    }

    .vehicle-detail-price {
        font-size: 27px;
    }

    .vehicle-detail-section {
        padding: 16px;
    }
}
/* Gold promotion visual style */
.vehicle-card.is-frame-promotion,
.vehicle-card.is-badge-promotion,
.vehicle-card.is-pro-promotion,
.vehicle-card.is-top-promotion {
    position: relative;
}

.vehicle-card.is-frame-promotion,
.vehicle-card.is-pro-promotion {
    border-color: #facc15;
    box-shadow: 0 18px 42px rgba(250, 204, 21, 0.20);
}

.vehicle-card.is-frame-promotion::after,
.vehicle-card.is-pro-promotion::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #facc15;
    pointer-events: none;
}

.vehicle-card.is-badge-promotion,
.vehicle-card.is-top-promotion {
    border-color: #bfdbfe;
}

/* =========================================================
   VEHICLE CARD META / SAVED ADS
   ========================================================= */
.vehicle-card-date {
    margin: -4px 0 13px;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.vehicle-card-condition-badge {
    position: static;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 0;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, .12);
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .05em;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}

.vehicle-card-footer {
    gap: 9px;
}

.vehicle-save-form {
    margin: 0;
}

.vehicle-card-details.is-save,
.vehicle-save-form .vehicle-card-details {
    cursor: pointer;
    border: 1px solid #dbe5f3;
    color: #0f172a;
    background: #ffffff;
}

.vehicle-card-details.is-save:hover,
.vehicle-save-form .vehicle-card-details:hover {
    color: #fff;
    background: #0f172a;
    border-color: #0f172a;
}

.vehicle-save-detail-form {
    margin: 12px 0 0;
}

.vehicle-contact-save-button {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dbe5f3;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 950;
    cursor: pointer;
}

.vehicle-contact-save-button:hover {
    color: #fff;
    background: #0f172a;
    border-color: #0f172a;
}

/* =========================================================
   VEHICLE DETAIL - Professional contact block + compact badges
   ========================================================= */
.vehicle-card-badges {
    top: 7px;
    left: 7px;
    right: 7px;
    gap: 4px;
}

.vehicle-card-featured-badge,
.vehicle-card-badges .vehicle-card-seller-badge,
.vehicle-card-condition-badge,
.vehicle-card-seller-badge {
    min-height: 20px;
    padding: 0 7px;
    border-radius: 0;
    font-size: 9px;
    line-height: 1;
    letter-spacing: .045em;
    box-shadow: 0 6px 12px rgba(15, 23, 42, .16);
}

.vehicle-card-featured-badge {
    display: inline-flex;
    align-items: center;
    background: #facc15;
    color: #111827;
    font-style: normal;
    font-weight: 950;
    text-transform: uppercase;
}

.vehicle-detail-price {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 0;
}

.vehicle-price-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(255,255,255,.10);
    color: #facc15;
}

.vehicle-price-icon svg {
    width: 27px;
    height: 27px;
}

.vehicle-contact-card.is-pro-contact {
    display: grid;
    gap: 14px;
    padding: 18px;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, .13), transparent 34%),
        #ffffff;
    border: 1px solid #dbe5f3;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
}

.vehicle-contact-head span,
.vehicle-seller-trust-head span {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.vehicle-contact-head h2 {
    margin: 8px 0 0;
}

.vehicle-seller-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.vehicle-seller-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #0f172a;
    color: #ffffff;
    font-size: 20px;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .18);
}

.vehicle-seller-profile strong,
.vehicle-seller-profile small {
    display: block;
}

.vehicle-seller-profile strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.2;
}

.vehicle-seller-profile small {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.vehicle-contact-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.vehicle-contact-inline-form {
    margin: 0;
}

.vehicle-contact-button {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.vehicle-contact-button svg,
.vehicle-contact-save-button svg,
.vehicle-contact-info-item svg,
.vehicle-seller-medal-grid svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.vehicle-contact-button.is-call {
    background: linear-gradient(135deg, #0f172a, #334155);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .18);
}

.vehicle-contact-button.is-message {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #111827;
    box-shadow: 0 14px 28px rgba(245, 158, 11, .22);
}

.vehicle-contact-button:hover {
    transform: translateY(-1px);
}

.vehicle-contact-info-list {
    display: grid;
    gap: 9px;
}

.vehicle-contact-info-item {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    text-decoration: none;
    word-break: break-word;
}

.vehicle-contact-info-item svg {
    color: #64748b;
}

.vehicle-contact-info-item:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.vehicle-save-detail-form {
    margin: 0;
}

.vehicle-contact-save-button {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #dbe5f3;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
    transition: .16s ease;
}

.vehicle-contact-save-button:hover {
    color: #ffffff;
    background: #0f172a;
    border-color: #0f172a;
}

.vehicle-seller-trust-box {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.vehicle-seller-trust-head strong {
    display: block;
    margin-top: 7px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

.vehicle-seller-medal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.vehicle-seller-medal-grid span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 950;
    line-height: 1.25;
}

.vehicle-seller-medal-grid .is-active {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
}

.vehicle-seller-medal-grid .is-medal {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.vehicle-seller-medal-grid .is-muted {
    opacity: .72;
}

@media (max-width: 1240px) {
    .vehicle-contact-action-row,
    .vehicle-seller-medal-grid {
        grid-template-columns: 1fr;
    }
}

.vehicle-contact-action-row > *:only-child {
    grid-column: 1 / -1;
}


/* =========================================================
   VEHICLE BADGES - SQUARE FINAL OVERRIDE
   ========================================================= */
.vehicle-card-badge,
.vehicle-card-badges span,
.vehicle-card-featured-badge,
.vehicle-card-seller-badge,
.vehicle-card-condition-badge,
.vehicle-detail-badge,
.vehicle-detail-status-badge,
.vehicle-condition-badge,
.vehicle-premium-badge,
.vehicle-featured-badge,
.vehicle-seller-badge {
    border-radius: 0 !important;
}

/* =========================================================
   VEHICLE CARDS - compact badges + one-line price
   ========================================================= */
.vehicle-card-badges .vehicle-card-seller-badge,
.vehicle-card-featured-badge,
.vehicle-card-condition-badge,
.vehicle-card-seller-badge {
    border-radius: 0 !important;
}

.vehicle-card-footer {
    align-items: flex-end;
}

.vehicle-card-price {
    flex: 0 0 auto;
    min-width: 112px;
}

.vehicle-card-price strong {
    white-space: nowrap;
    font-size: 17px;
    line-height: 1;
}

.vehicle-card-details,
.vehicle-save-form .vehicle-card-details {
    flex: 0 0 auto;
}

@media (max-width: 420px) {
    .vehicle-card-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .vehicle-card-price {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .vehicle-card-details,
    .vehicle-save-form .vehicle-card-details,
    .vehicle-save-form {
        width: 100%;
    }
}

/* =========================================================
   VEHICLE CARDS - price above buttons + video support
   ========================================================= */
.vehicle-card-footer {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    align-items: stretch;
}

.vehicle-card-price {
    grid-column: 1 / -1;
    min-width: 0 !important;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: nowrap;
}

.vehicle-card-price small {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}

.vehicle-card-price strong {
    display: inline-flex;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1;
}

.vehicle-save-form,
.vehicle-card-footer .vehicle-card-details {
    width: 100%;
    min-width: 0;
}

.vehicle-card-details,
.vehicle-save-form .vehicle-card-details {
    min-height: 38px;
    padding: 0 8px;
    font-size: 11px;
}

.vehicle-card-image .vehicle-card-video,
.vehicle-card-image video.vehicle-card-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.vehicle-video-corner-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 7;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 0;
    background: rgba(15, 23, 42, 0.86);
    color: #ffffff;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vehicle-detail-main-image.has-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #020617;
}

/* =========================================================
   VEHICLE FORM - video upload
   ========================================================= */
.vehicle-video-section {
    margin-top: 18px;
}

.vehicle-existing-video-box,
.vehicle-video-preview {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.vehicle-existing-video-box video,
.vehicle-video-preview video {
    width: 100%;
    max-height: 360px;
    display: block;
    border: 1px solid #dbe5f3;
    border-radius: 16px;
    background: #020617;
}

.vehicle-video-delete-check {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 0 14px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fef2f2;
    color: #991b1b;
    font-weight: 900;
    cursor: pointer;
}

.vehicle-video-delete-check input {
    width: 16px;
    height: 16px;
    accent-color: #dc2626;
}

.vehicle-video-preview-info,
.vehicle-video-error {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 900;
}

.vehicle-video-preview-info {
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.vehicle-video-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

/* =========================================================
   VIDEO CARDS - real video display fix
   ========================================================= */
.vehicle-card-image > span.vehicle-video-corner-badge,
.dealer-vehicle-image > span.vehicle-video-corner-badge {
    width: auto !important;
    height: auto !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    place-items: initial !important;
    padding: 0 9px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: .05em !important;
}

.vehicle-detail-main-image.has-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #020617;
}

/* =========================================================
   MOBILE FILTER DRAWER
   ========================================================= */
.vehicle-mobile-filter-trigger,
.vehicle-mobile-filter-head,
.vehicle-mobile-filter-backdrop {
    display: none;
}

@media (max-width: 760px) {
    body.vehicle-filter-open {
        overflow: hidden;
    }

    .vehicle-mobile-filter-trigger {
        display: block;
        margin: 0 0 14px;
    }

    .vehicle-mobile-filter-trigger button {
        width: 100%;
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 16px;
        border: 1px solid #dbe5f3;
        border-radius: 16px;
        background: #0f172a;
        color: #ffffff;
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
        font: inherit;
        font-size: 15px;
        font-weight: 950;
        cursor: pointer;
    }

    .vehicle-mobile-filter-trigger button::before {
        content: "";
        width: 20px;
        height: 20px;
        flex: 0 0 auto;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .vehicle-mobile-filter-trigger button span {
        flex: 1 1 auto;
        text-align: left;
    }

    .vehicle-mobile-filter-trigger button strong {
        min-width: 28px;
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #facc15;
        color: #111827;
        font-size: 12px;
        font-weight: 950;
    }

    .vehicle-filter-card {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 1200;
        max-height: 86vh;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        border-radius: 22px 22px 0 0;
        background: #ffffff;
        box-shadow: 0 -24px 60px rgba(15, 23, 42, 0.28);
        transform: translateY(110%);
        transition: transform .28s ease;
    }

    .vehicle-filter-card.is-mobile-open {
        transform: translateY(0);
    }

    .vehicle-mobile-filter-head {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 18px 18px 14px;
        border-bottom: 1px solid #e2e8f0;
        background: #ffffff;
    }

    .vehicle-mobile-filter-head span,
    .vehicle-mobile-filter-head strong {
        display: block;
    }

    .vehicle-mobile-filter-head span {
        color: #92400e;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .vehicle-mobile-filter-head strong {
        margin-top: 4px;
        color: #0f172a;
        font-size: 24px;
        line-height: 1;
        font-weight: 950;
        letter-spacing: -.045em;
    }

    .vehicle-mobile-filter-head button {
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
        border: 1px solid #dbe5f3;
        border-radius: 14px;
        background: #f8fafc;
        color: #0f172a;
        font-size: 25px;
        line-height: 1;
        font-weight: 800;
        cursor: pointer;
    }

    .vehicle-filter-card .vehicle-filter-grid {
        max-height: calc(86vh - 154px);
        overflow-y: auto;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 18px;
        align-items: stretch;
    }

    .vehicle-filter-card .vehicle-filter-field input,
    .vehicle-filter-card .vehicle-filter-field select {
        height: 48px;
        font-size: 14px;
    }

    .vehicle-filter-card .vehicle-filter-actions {
        position: sticky;
        bottom: 0;
        z-index: 2;
        display: grid;
        grid-template-columns: 1fr 1.25fr;
        gap: 10px;
        margin: 0;
        padding: 14px 18px 18px;
        border-top: 1px solid #e2e8f0;
        background: #ffffff;
    }

    .vehicle-filter-card .vehicle-filter-button,
    .vehicle-filter-card .vehicle-filter-reset {
        min-width: 0;
        width: 100%;
        height: 46px;
    }

    .vehicle-mobile-filter-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1190;
        display: block;
        background: rgba(15, 23, 42, 0.48);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        opacity: 0;
        transition: opacity .24s ease;
    }

    .vehicle-mobile-filter-backdrop.is-open {
        opacity: 1;
    }

    .vehicle-mobile-filter-backdrop[hidden] {
        display: none;
    }
}

/* =========================================================
   VEHICLE FILTER - numeric inputs and disabled dependent model
   ========================================================= */
.vehicle-filter-field input[type="number"] {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--front-border, #e2e8f0);
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
    outline: none;
}

.vehicle-filter-field select:disabled {
    color: #94a3b8;
    background: #f8fafc;
    cursor: not-allowed;
}

/* =========================================================
   Finished listing notice and seller profile link
   ========================================================= */
.vehicle-finished-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    background: #f0fdf4;
    color: #166534;
}

.vehicle-finished-notice strong,
.vehicle-finished-notice span {
    display: block;
}

.vehicle-finished-notice strong {
    font-size: 15px;
    font-weight: 950;
}

.vehicle-finished-notice span {
    color: #15803d;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
}

.vehicle-seller-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin: 12px 0;
    border: 1px solid #dbe5f3;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
}

.vehicle-seller-profile-link:hover {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
}

@media (max-width: 640px) {
    .vehicle-finished-notice {
        display: block;
    }

    .vehicle-finished-notice span {
        margin-top: 6px;
        text-align: left;
    }
}

/* =========================================================
   HOTFIX v1.2.3 - seller status badge inside vehicle image
   Fix: generic .vehicle-card-image > span rule made the status
   badge huge and centered over the image.
   ========================================================= */
.vehicle-card-image > .seller-vehicle-status-badge {
    position: absolute !important;
    left: 10px !important;
    top: 10px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 8 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 9px !important;
    border-radius: 0 !important;
    background: rgba(15, 23, 42, .88) !important;
    color: #ffffff !important;
    border: 0 !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

/* v1.2.9 - image lightbox */
.vehicle-detail-main-image[data-lightbox-src],
.vehicle-detail-thumbs a[data-lightbox-src] {
    cursor: zoom-in;
}

.ap-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.92);
}

.ap-lightbox.is-open {
    display: flex;
}

.ap-lightbox img {
    max-width: min(1180px, 94vw);
    max-height: 84vh;
    object-fit: contain;
    background: #020617;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.ap-lightbox button {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
}

.ap-lightbox-close {
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    font-size: 28px;
}

.ap-lightbox-prev,
.ap-lightbox-next {
    top: 50%;
    width: 48px;
    height: 58px;
    transform: translateY(-50%);
    font-size: 30px;
}

.ap-lightbox-prev { left: 18px; }
.ap-lightbox-next { right: 18px; }

.ap-lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
}


/* Patch: consistent vehicle detail gallery dimensions */
.vehicle-detail-main-image {
    height: 620px;
    max-height: none;
    aspect-ratio: auto;
    overflow: hidden;
}

.vehicle-detail-main-image img,
.vehicle-detail-main-image.has-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.vehicle-detail-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    align-items: stretch;
}

.vehicle-detail-thumbs a {
    width: 100%;
    height: 96px;
    aspect-ratio: auto;
    display: block;
}

.vehicle-detail-thumbs img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 1480px) {
    .vehicle-detail-main-image {
        height: 560px;
    }
}

@media (max-width: 1180px) {
    .vehicle-detail-main-image {
        height: 520px;
    }
}

@media (max-width: 700px) {
    .vehicle-detail-main-image {
        height: 340px;
        aspect-ratio: auto;
    }

    .vehicle-detail-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vehicle-detail-thumbs a {
        height: 86px;
    }
}

@media (max-width: 420px) {
    .vehicle-detail-main-image {
        height: 280px;
    }
}

/* Seller verification badges */
.seller-trust-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.seller-trust-inline span {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .045em;
    line-height: 1;
}

.seller-trust-inline svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.seller-trust-inline em {
    font-style: normal;
}

.seller-trust-inline .is-email {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.seller-trust-inline .is-phone {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.seller-trust-inline .is-checked {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.vehicle-seller-medal-grid .is-verified {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.vehicle-seller-medal-grid .is-tier-gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
    color: #92400e;
}

.vehicle-seller-medal-grid .is-tier-silver {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.vehicle-seller-medal-grid .is-tier-bronze {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.vehicle-seller-medal-grid .is-tier-new {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

.seller-profile-trust-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

.seller-profile-trust-panel span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 950;
}

.seller-profile-trust-panel svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.seller-profile-trust-panel .is-active {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.seller-profile-trust-panel .is-verified {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.seller-profile-trust-panel .is-medal {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.seller-profile-trust-panel .is-muted {
    opacity: .74;
}


/* PATCH v1.0.5 - professional icon-only seller verification badges */
.seller-trust-inline.is-icon-only,
.dealer-trust-inline.is-icon-only {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.seller-trust-inline.is-icon-only span,
.dealer-trust-inline.is-icon-only span {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    line-height: 1;
}

.seller-trust-inline.is-icon-only svg,
.dealer-trust-inline.is-icon-only svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.seller-trust-inline.is-icon-only em,
.dealer-trust-inline.is-icon-only em {
    display: none !important;
}

.seller-trust-inline.is-icon-only .is-email,
.dealer-trust-inline.is-icon-only .is-email {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.seller-trust-inline.is-icon-only .is-phone,
.dealer-trust-inline.is-icon-only .is-phone {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.seller-trust-inline.is-icon-only .is-checked,
.dealer-trust-inline.is-icon-only .is-checked {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.seller-trust-inline.is-icon-only .is-medal,
.dealer-trust-inline.is-icon-only .is-medal {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.seller-trust-inline.is-icon-only .is-tier-bronze,
.dealer-trust-inline.is-icon-only .is-tier-bronze {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.seller-trust-inline.is-icon-only .is-tier-silver,
.dealer-trust-inline.is-icon-only .is-tier-silver {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.seller-trust-inline.is-icon-only .is-tier-gold,
.dealer-trust-inline.is-icon-only .is-tier-gold {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.vehicle-seller-trust-box,
.dealer-trust-box,
.seller-profile-trust-panel {
    display: none !important;
}

/* PATCH v1.0.6 - PNG seller trust icons */
.seller-trust-inline.is-icon-only,
.dealer-trust-inline.is-icon-only {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
}

.seller-trust-inline.is-icon-only span,
.dealer-trust-inline.is-icon-only span {
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
    line-height: 1;
}

.seller-trust-inline.is-icon-only .is-checked,
.dealer-trust-inline.is-icon-only .is-checked,
.seller-trust-inline.is-icon-only .is-medal,
.dealer-trust-inline.is-icon-only .is-medal {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
}

.seller-trust-inline.is-icon-only img,
.dealer-trust-inline.is-icon-only img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.seller-trust-inline.is-icon-only svg,
.dealer-trust-inline.is-icon-only svg {
    display: none !important;
}

/* =========================================================
   PATCH v1.1.2 - two-column mobile vehicle cards
   Cards stay readable by scaling internal spacing, media and text.
   ========================================================= */
@media (max-width: 700px) {
    .vehicle-card-grid,
    .home-vehicle-grid,
    .home-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .vehicle-card {
        min-width: 0;
    }

    .vehicle-card-image,
    .vehicle-card-image > span {
        height: clamp(116px, 32vw, 178px) !important;
    }

    .vehicle-card-body {
        padding: clamp(8px, 2.4vw, 12px) !important;
    }

    .vehicle-card-topline {
        min-height: 20px;
        gap: 6px;
        margin-bottom: 5px;
    }

    .vehicle-card-brand,
    .vehicle-card-location,
    .vehicle-card-dealer-name {
        font-size: clamp(9px, 2.5vw, 11px) !important;
    }

    .vehicle-card h2 {
        min-height: 36px;
        margin-bottom: 8px;
        font-size: clamp(13px, 3.4vw, 16px) !important;
        line-height: 1.18 !important;
        letter-spacing: -.035em;
    }

    .vehicle-card-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 9px;
    }

    .vehicle-card-spec-grid div {
        min-height: 48px;
        padding: 7px 6px;
    }

    .vehicle-card-spec-grid small {
        font-size: 8.5px;
    }

    .vehicle-card-spec-grid strong {
        font-size: 10.5px;
    }

    .vehicle-card-footer {
        gap: 7px !important;
    }

    .vehicle-card-price {
        gap: 7px;
    }

    .vehicle-card-price small {
        font-size: 9px;
    }

    .vehicle-card-price strong {
        font-size: clamp(13px, 3.6vw, 16px) !important;
    }

    .vehicle-card-details,
    .vehicle-save-form .vehicle-card-details {
        min-height: 34px;
        padding: 0 6px;
        font-size: 10px;
    }

    .vehicle-card-badges,
    .vehicle-card-featured-badge,
    .vehicle-card-seller-badge,
    .vehicle-card-condition-badge {
        font-size: 8.5px !important;
    }
}

@media (max-width: 360px) {
    .vehicle-card-grid,
    .home-vehicle-grid,
    .home-featured-grid {
        gap: 8px !important;
    }

    .vehicle-card-spec-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-card-footer {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   PATCH v1.1.3 - filter sorting row
   ========================================================= */
.vehicle-filter-bottom-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.vehicle-filter-bottom-row .vehicle-filter-actions {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border-top: 0;
}

.vehicle-filter-sort {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.vehicle-filter-sort > span {
    flex: 0 0 auto;
    color: #475569;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.vehicle-filter-sort-option {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.vehicle-filter-sort-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.vehicle-filter-sort-option em {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #dbe5f3;
    background: #ffffff;
    color: #0f172a;
    font-size: 12px;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.vehicle-filter-sort-option input:checked + em {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.vehicle-filter-sort-option input:focus-visible + em {
    outline: 3px solid rgba(15, 23, 42, .14);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .vehicle-filter-card .vehicle-filter-bottom-row {
        position: sticky;
        bottom: 0;
        z-index: 2;
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 0;
        padding: 13px 18px 18px;
        border-top: 1px solid #e2e8f0;
        background: #ffffff;
    }

    .vehicle-filter-card .vehicle-filter-sort {
        gap: 7px;
    }

    .vehicle-filter-card .vehicle-filter-sort > span {
        width: 100%;
        font-size: 11px;
    }

    .vehicle-filter-card .vehicle-filter-sort-option em {
        min-height: 32px;
        padding: 0 9px;
        font-size: 11px;
    }

    .vehicle-filter-card .vehicle-filter-actions {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1.25fr;
        gap: 10px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }
}

/* =========================================================
   PATCH v1.1.4 - mobile filter buttons visibility + sorting cleanup
   ========================================================= */
@media (max-width: 760px) {
    body.vehicle-filter-open .mobile-bottom-nav {
        opacity: 0;
        pointer-events: none;
        transform: translateY(calc(100% + 24px));
    }

    .vehicle-filter-card {
        z-index: 10020 !important;
        max-height: calc(100vh - 12px) !important;
        max-height: calc(100dvh - 12px) !important;
        display: flex !important;
        flex-direction: column;
        overflow: hidden !important;
    }

    .vehicle-mobile-filter-head {
        flex: 0 0 auto;
    }

    .vehicle-filter-card .vehicle-filter-grid {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .vehicle-filter-card .vehicle-filter-bottom-row {
        flex: 0 0 auto;
        position: relative !important;
        bottom: auto !important;
        z-index: 4;
        margin: 0 !important;
        padding: 13px 18px calc(18px + env(safe-area-inset-bottom)) !important;
        border-top: 1px solid #e2e8f0;
        background: #ffffff;
        box-shadow: 0 -10px 24px rgba(15, 23, 42, .08);
    }

    .vehicle-filter-card .vehicle-filter-actions {
        position: static !important;
        display: grid !important;
        grid-template-columns: 1fr 1.25fr !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .vehicle-filter-card .vehicle-filter-button,
    .vehicle-filter-card .vehicle-filter-reset {
        width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
    }

    .vehicle-mobile-filter-backdrop {
        z-index: 10010 !important;
    }
}
