/* ============================================================
   DG2 Auto Plugin Styles
   ============================================================ */

/* --- Archive layout --- */

.dg2-archive-wrap {
    padding-top: 32px;
    padding-bottom: 60px;
}

.dg2-archive-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 960px) {
    .dg2-archive-layout { grid-template-columns: 1fr; }
    .dg2-archive-sidebar { position: static !important; }
}

/* --- Sidebar panel --- */

.dg2-archive-sidebar {
    position: sticky;
    top: 90px;
}

.dg2-sidebar-panel {
    background: #fff;
    border: 1px solid var(--theme-border-color, #e8e8e8);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.dg2-sidebar-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--theme-palette-color-1, #1a1a2e);
}

.dg2-sidebar-panel__title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dg2-sidebar-reset {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 2px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}

.dg2-sidebar-reset:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.8);
}

/* Sidebar form overrides */
.dg2-archive-sidebar .dg2-auto-form {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 20px;
    margin: 0;
    box-shadow: none;
}

.dg2-archive-sidebar .dg2-auto-form__fields {
    gap: 16px;
}

.dg2-archive-sidebar .dg2-auto-btn--search {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
}

/* --- Archive bar (result count) --- */

.dg2-archive-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--theme-border-color, #eee);
}

.dg2-archive-count {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.dg2-archive-sort {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.dg2-sort-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background: #f5f7fa;
    border: 1px solid #e8eaf0;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.dg2-sort-btn:hover {
    background: #eef0f5;
    color: #333;
    border-color: #d0d4df;
    text-decoration: none;
}

.dg2-sort-btn--active {
    background: var(--theme-palette-color-1, #1a1a2e);
    color: #fff;
    border-color: transparent;
}

.dg2-sort-btn--active:hover {
    background: var(--theme-palette-color-1, #1a1a2e);
    color: #fff;
}

@media (max-width: 600px) {
    .dg2-archive-bar { flex-wrap: wrap; gap: 10px; }
    .dg2-archive-sort { gap: 4px; }
    .dg2-sort-btn { font-size: 11px; padding: 4px 10px; }
}

/* --- Car grid --- */

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

@media (max-width: 1100px) {
    .dg2-auto-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .dg2-auto-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .dg2-auto-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .dg2-auto-grid { grid-template-columns: 1fr; }
}

/* --- No results --- */

.dg2-no-results {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

.dg2-no-results__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.dg2-no-results p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* --- Card --- */

.dg2-auto-card {
    position: relative;
    border: 1px solid var(--theme-border-color, #eee);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dg2-auto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}

.dg2-auto-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 1;
    color: #fff;
    backdrop-filter: blur(4px);
}

.dg2-auto-card__badge.novo    { background: rgba(39,174,96,0.9); }
.dg2-auto-card__badge.polovno { background: rgba(230,126,34,0.9); }

.dg2-auto-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.dg2-auto-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.dg2-auto-card:hover .dg2-auto-card__image img {
    transform: scale(1.06);
}

.dg2-auto-card__no-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 40px;
}

.dg2-auto-card__no-image::after {
    content: "🚗";
}

.dg2-auto-card__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dg2-auto-card__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}

.dg2-auto-card__title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.dg2-auto-card__title a:hover {
    color: var(--theme-palette-color-2, #e67e22);
}

.dg2-auto-card__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-palette-color-2, #e67e22);
    margin-bottom: 12px;
}

.dg2-auto-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
}

.dg2-auto-card__meta span {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    background: #f5f7fa;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ============================================================
   Single vehicle page
   ============================================================ */

.dg2-single-wrap {
    max-width: 100%;
    margin: 10px auto;

}

/* Two-column layout */

.dg2-single-layout {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 52px;
}

/* Gallery column */
.dg2-single-col--gallery {
    min-width: 0;
    overflow: hidden;
    flex-basis: 60%;
}

/* Info panel */
.dg2-single-col--info {
    position: sticky;
    top: 88px;
    flex-basis: 38%;
}

@media (max-width: 860px) {
    /* Stack layout */
    .dg2-single-layout {
        flex-direction: row;
        gap: 16px;
        margin-bottom: 24px;
    }
    .dg2-single-col--info { position: static !important; flex-basis: 100%; }
    .dg2-single-col--gallery {flex-basis: 100%; }

    /* Tighten spacing */
    .dg2-single-price {
        margin-bottom: 14px;
        padding-bottom: 14px;
    }
    .dg2-single-price__amount { font-size: 24px; }
    .dg2-single-specs-box { margin-bottom: 14px; }
    .dg2-single-specs-box .dg2-auto-key-spec { padding: 5px 10px; }

    /* Buttons: call + contact side by side, PDF below */
    .dg2-single-actions .dg2-auto-buttons { flex-wrap: wrap; }
    .dg2-auto-btn--call    { flex: 1 1 calc(50% - 5px); padding: 11px 12px; font-size: 13px; }
    .dg2-auto-btn--contact { flex: 1 1 calc(50% - 5px); padding: 11px 12px; font-size: 13px; }
    .dg2-auto-btn--pdf     { flex: 1 1 100%; padding: 9px 12px; }


    /* Sections */
    .dg2-single-sections { gap: 12px; padding-top: 12px; }
    .dg2-single-section  { padding: 16px; }
}

@media (max-width: 480px) {
    .dg2-single-title { font-size: 17px; }
    .dg2-single-price__amount { font-size: 20px; }
    .dg2-single-col--info { position: static !important; flex-basis: 100%; }
    .dg2-single-col--gallery {flex-basis: 100%; }


    /* All buttons stack full-width */
    .dg2-auto-btn--call,
    .dg2-auto-btn--contact,
    .dg2-auto-btn--pdf { flex: 1 1 100%; }

}



/* Title */
.dg2-single-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 14px;
    color: #0f1523;
}

/* Price */
.dg2-single-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eef0f5;
}

.dg2-single-price__amount {
    font-size: 34px;
    font-weight: 800;
    color: var(--theme-palette-color-2, #e67e22);
    line-height: 1;
    letter-spacing: -0.5px;
}

/* Key specs box */
.dg2-single-specs-box {
    background: #f7f8fc;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.dg2-single-specs-box .dg2-auto-key-specs {
    margin: 0;
}

.dg2-single-specs-box .dg2-auto-key-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    font-size: 13px;
    border-bottom: 1px solid #edf0f7;
}

.dg2-single-specs-box .dg2-auto-key-spec:last-child {
    border-bottom: none;
}

.dg2-single-specs-box .dg2-auto-key-spec span {
    color: #666;
    font-size: 12px;
}

.dg2-single-specs-box .dg2-auto-key-spec strong {
    font-weight: 600;
    color: #0f1523;
    font-size: 13px;
    text-align: right;
}

/* Action buttons */
.dg2-single-actions .dg2-auto-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 0 0 16px;
}

.dg2-auto-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity 0.18s, transform 0.18s;
    text-align: center;
    box-sizing: border-box;
}

.dg2-auto-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    text-decoration: none;
}

.dg2-auto-btn--call {
    background: #0f1523;
    color: #fff;
    font-size: 15px;
    padding: 15px 20px;
}

.dg2-auto-btn--contact {
    background: var(--theme-palette-color-2, #e67e22);
    color: #fff;
}

.dg2-auto-btn--pdf {
    background: transparent;
    color: #999;
    border: 1px solid #dde0e8;
    font-size: 13px;
    padding: 11px 20px;
}

.dg2-auto-btn--pdf:hover {
    color: #555;
    border-color: #aaa;
    opacity: 1;
}

/* Also used on archive search form */
.dg2-auto-btn--search {
    background: var(--theme-palette-color-2, #e67e22);
    color: #fff;
    padding: 10px 28px;
    font-size: 15px;
    width: auto;
    display: inline-flex;
}

/* Ad ID */
.dg2-single-adid {
    font-size: 11px;
    color: #bbb;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

/* Contact form */
.dg2-single-contact .dg2-auto-contact-form {
    display: none;
    max-width: 560px;
    margin: 0 auto 40px;
    background: #f7f8fc;
    border-radius: 12px;
    padding: 28px;
}

/* ============================================================
   Specs sections (below fold)
   ============================================================ */

.dg2-single-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
}

.dg2-single-section {
    background: #f7f8fc;
    border-radius: 6px;
    padding: 20px;
}

/* Content inside each section: 3 columns */
.dg2-single-section .dg2-auto-specs-grid,
.dg2-single-section .dg2-auto-terms-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 32px;
}

@media (max-width: 860px) {
    .dg2-single-section .dg2-auto-specs-grid,
    .dg2-single-section .dg2-auto-terms-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dg2-single-section .dg2-auto-specs-grid,
    .dg2-single-section .dg2-auto-terms-list {
        grid-template-columns: 1fr;
    }
}

.dg2-single-section__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--theme-palette-color-2, #333);
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--theme-palette-color-3, #333);
}

.dg2-auto-specs-grid { display: flex; flex-direction: column; }

.dg2-auto-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f7;
    font-size: 13px;
    gap: 8px;
}

.dg2-auto-spec-item:last-child { border-bottom: none; }
.dg2-auto-spec-label { color: #888; flex-shrink: 0; }
.dg2-auto-spec-value { font-weight: 600; color: #0f1523; text-align: right; }

.dg2-auto-terms-list { display: flex; flex-direction: column; }

.dg2-auto-term-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #edf0f7;
    font-size: 13px;
    color: #333;
}

.dg2-auto-term-item:last-child { border-bottom: none; }

.dg2-auto-term-item::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--theme-palette-color-2, #e67e22);
    flex-shrink: 0;
}

/* --- Gallery (Swiper) --- */

.dg2-gallery-wrap {
    user-select: none;
}

/* Main slider */
.dg2-swiper-main {
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    aspect-ratio: 4 / 3;
}

.dg2-swiper-main .swiper-wrapper,
.dg2-swiper-main .swiper-slide {
    height: 100%;
}

.dg2-swiper-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

/* Navigation buttons */
.dg2-swiper-main .swiper-button-prev,
.dg2-swiper-main .swiper-button-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    transition: background 0.2s;
    margin-top: -21px;
}

.dg2-swiper-main .swiper-button-prev:hover,
.dg2-swiper-main .swiper-button-next:hover {
    background: rgba(0,0,0,0.75);
}

.dg2-swiper-main .swiper-button-prev::after,
.dg2-swiper-main .swiper-button-next::after {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
}

/* Fraction counter (bottom-right) */
.dg2-swiper-main .swiper-pagination-fraction {
    width: auto;
    left: auto;
    right: 14px;
    bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 3px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Thumbs strip */
.dg2-swiper-thumbs {
    margin-top: 8px;
    height: 66px;
}

.dg2-swiper-thumbs .swiper-slide {
    width: 88px !important;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.dg2-swiper-thumbs .swiper-slide-thumb-active,
.dg2-swiper-thumbs .swiper-slide:hover {
    opacity: 1;
    border-color: var(--theme-palette-color-2, #e67e22);
}

.dg2-swiper-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

@media (max-width: 860px) {
    .dg2-swiper-main { aspect-ratio: 16 / 9; }
    .dg2-swiper-thumbs { height: 56px; }
    .dg2-swiper-thumbs .swiper-slide { width: 74px !important; height: 48px; }
}

@media (max-width: 480px) {
    .dg2-swiper-main { aspect-ratio: 16 / 9; }
    .dg2-swiper-thumbs { height: 44px; }
    .dg2-swiper-thumbs .swiper-slide { width: 60px !important; height: 38px; }
}

/* --- Lightbox --- */

.dg2-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dg2-lightbox[hidden] { display: none; }

.dg2-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
}

.dg2-lightbox__stage {
    position: relative;
    z-index: 2;
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dg2-lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    transition: opacity 0.2s ease;
    user-select: none;
}

.dg2-lightbox__img.dg2-lb-loading {
    opacity: 0.2;
}

.dg2-lightbox__close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 10;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(6px);
}

.dg2-lightbox__close:hover {
    background: rgba(255,255,255,0.25);
}

.dg2-lightbox__arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(6px);
}

.dg2-lightbox__arrow:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-50%) scale(1.08);
}

.dg2-lightbox__arrow--prev { left: 18px; }
.dg2-lightbox__arrow--next { right: 18px; }

.dg2-lightbox__counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
    background: rgba(0,0,0,0.4);
    padding: 4px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .dg2-lightbox__arrow--prev { left: 8px; }
    .dg2-lightbox__arrow--next { right: 8px; }
    .dg2-lightbox__arrow { width: 40px; height: 40px; font-size: 15px; }
}


/* --- Search form --- */

.dg2-auto-form {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--theme-border-color, #e0e0e0);
}

.dg2-auto-form__fields {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.dg2-auto-form__fields--column { flex-direction: column; }
.dg2-auto-form__fields--row    { flex-direction: row; align-items: flex-end; }

.dg2-auto-form__field {
    flex: 1;
    min-width: 140px;
}

.dg2-auto-form__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-bottom: 5px;
}

.dg2-auto-form__field select,
.dg2-auto-form__field input[type="number"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
    color: #333;
    appearance: auto;
    transition: border-color 0.2s, background 0.2s;
}

.dg2-auto-form__field select:focus,
.dg2-auto-form__field input[type="number"]:focus {
    outline: none;
    border-color: var(--theme-palette-color-2, #e67e22);
    background: #fff;
}

.dg2-auto-form__field--range {
    display: flex;
    gap: 8px;
}

.dg2-auto-form__field--range input {
    flex: 1;
    min-width: 0;
}

.dg2-auto-form__field--submit {
    flex: 0 0 auto;
}

.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
    height: 39px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9fafb;
    padding-top: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 39px;
    padding-left: 12px;
    color: #333;
    font-size: 14px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 37px;
}

/* --- Pagination --- */

.dg2-auto-pagination {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eef0f5;
}

.dg2-auto-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dg2-auto-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #444;
    background: #f5f7fa;
    border: 1px solid #e8eaf0;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
    line-height: 1;
}

.dg2-auto-pagination .page-numbers:hover {
    background: #eef0f5;
    border-color: #d0d4df;
    color: #111;
    transform: translateY(-1px);
    text-decoration: none;
}

.dg2-auto-pagination .page-numbers.current {
    background: var(--theme-palette-color-1, #1a1a2e);
    color: #fff;
    border-color: transparent;
    cursor: default;
    transform: none;
}

.dg2-auto-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: #aaa;
    cursor: default;
    min-width: 24px;
}

.dg2-auto-pagination .prev.page-numbers,
.dg2-auto-pagination .next.page-numbers {
    padding: 0 14px;
    background: #fff;
    border-color: #e0e3eb;
    color: #333;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.dg2-auto-pagination .prev.page-numbers:hover,
.dg2-auto-pagination .next.page-numbers:hover {
    background: var(--theme-palette-color-2, #e67e22);
    border-color: transparent;
    color: #fff;
}

@media (max-width: 480px) {
    .dg2-auto-pagination .page-numbers { min-width: 34px; height: 34px; font-size: 12px; }
    .dg2-auto-pagination .prev.page-numbers,
    .dg2-auto-pagination .next.page-numbers { padding: 0 10px; }
}

/* ============================================================
   [dg2_front_form] shortcode
   ============================================================ */

.dg2-front-form .dg2-front-form__fields {
    display: flex;
    gap: 12px;
}

.dg2-front-form--column .dg2-front-form__fields {
    flex-direction: column;
}

.dg2-front-form--row .dg2-front-form__fields {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
}

.dg2-front-form--row .dg2-front-form__field {
    flex: 1;
    min-width: 140px;
}

.dg2-front-form__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-bottom: 5px;
}

.dg2-front-form__range-inputs {
    display: flex;
    gap: 8px;
}

.dg2-front-form__range-inputs .select2-container {
    flex: 1;
    min-width: 0;
}

.dg2-front-form__field--submit {
    flex: 0 0 auto;
}

.dg2-front-form--column .dg2-auto-btn--search {
    width: 100%;
}

@media (max-width: 600px) {
    .dg2-front-form--row .dg2-front-form__fields {
        flex-direction: column;
    }
    .dg2-front-form--row .dg2-front-form__field { min-width: 0; }
}

/* ============================================================
   [dg2_latest_cars] shortcode
   ============================================================ */

/* Carousel wrap — needs room for nav buttons */
.dg2-latest-wrap--carousel {
    position: relative;
    padding: 0 48px;
}

/* Nav buttons */
.dg2-latest-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0;
}

.dg2-latest-nav:hover {
    background: var(--theme-palette-color-2, #e67e22);
    color: #fff;
    border-color: transparent;
}

.dg2-latest-nav--prev { left: 0; }
.dg2-latest-nav--next { right: 0; }

/* Carousel slide: make card full height */
.dg2-latest-wrap--carousel .swiper-slide {
    height: auto;
}

.dg2-latest-wrap--carousel .dg2-auto-card {
    height: 100%;
}

@media (max-width: 600px) {
    .dg2-latest-wrap--carousel { padding: 0 36px; }
    .dg2-latest-nav { width: 30px; height: 30px; font-size: 12px; }
}

