/* ════════════════════════════════════════
   DIVI ISOLATION
   Neutraliza overrides del tema/DIVI dentro
   de los contenedores del plugin.
   font-family: inherit → las fuentes de DIVI
   siguen aplicando.
════════════════════════════════════════ */
.vl-inv,
.vl-gallery,
.vl-single-layout {
    font-family: inherit;
    box-sizing: border-box;
}

/* Párrafos: DIVI agrega margin-bottom via .entry-content p */
.vl-inv p,
.vl-gallery p,
.vl-single-layout p {
    margin: 0 !important;
    padding: 0;
    line-height: inherit;
}

/* Encabezados: DIVI los sobreescribe en tamaño y peso */
.vl-inv h1, .vl-inv h2, .vl-inv h3, .vl-inv h4,
.vl-gallery h1, .vl-gallery h2, .vl-gallery h3,
.vl-single-layout h1, .vl-single-layout h2, .vl-single-layout h3 {
    margin: 0 !important;
    padding: 0;
    line-height: 1.2;
}

/* Enlaces: DIVI agrega color y text-decoration propios */
.vl-inv a,
.vl-gallery a,
.vl-single-layout a {
    text-decoration: none !important;
    color: inherit;
}

/* Imágenes: algunos temas/DIVI agregan bordes o box-shadow */
.vl-inv img,
.vl-gallery img,
.vl-single-layout img {
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    max-width: 100%;
    vertical-align: top;
}

/* Botones: DIVI .et_pb_button agrega text-transform, letter-spacing, etc. */
.vl-inv button,
.vl-gallery button,
.vl-single-layout button {
    font-family: inherit;
    text-transform: none !important;
    letter-spacing: normal !important;
    border-radius: unset;
}

/* ════════════════════════════════════════
   INVENTORY PAGE — LAYOUT
════════════════════════════════════════ */
.vl-inv { font-family: inherit; max-width: 100%; }

.vl-inv__topbar {
    display: flex; align-items: center; gap: 25px;
    padding: 16px 0 20px; border-bottom: 1px solid #edf2f7; margin-bottom: 20px;
}
.vl-inv__title { font-size: 13px; font-weight: 700; color: #2d3748; white-space: nowrap; }
.vl-inv__container__search {
  background-color: #ffffff;
  padding: 5px 5px;
  border:1px solid #cccccc;
  flex: 1; display: flex; align-items: center;
  border-radius: 8px; 
}
.vl-inv__search-form {
    width: 100%;
    flex: 1; display: flex; align-items: center;
    background: #ffffff; 
    /* border: 1px solid #f1f1f1;*/
    border-radius: 8px; padding: 0 14px; gap: 8px;
}
.vl-search__icon { color: #a0aec0; font-size: 15px; }
.vl-inv__search-form input {
    flex: 1; border: none!important; background: transparent;
    padding: 10px 0; font-size: 14px; color: #2d3748; outline: none;
    width: 100%
}
.vl-inv__body { display: flex; gap: 28px; align-items: flex-start; }
/* ════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════ */
.vl-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    border: 1px solid #CCCCCC;
    padding: 10px 15px;
    border-radius: 8px;
}
.vl-sidebar__label { font-size: 11px; font-weight: 700; color: #a0aec0; letter-spacing: 1px; margin: 0 0 12px; }

/* Accordion */
.vl-accordion { border-bottom: 1px solid #edf2f7; }
.vl-accordion__btn {
    width: 100%; background: none; border: none; outline: none;
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 0; cursor: pointer; font-size: 14px; font-weight: 500; color: #2d3748;
}
.vl-accordion__arrow { font-size: 18px; transition: transform 0.2s; display: inline-block; }
.vl-accordion--open .vl-accordion__arrow { transform: rotate(180deg); }
.vl-accordion__content { display: none; padding-bottom: 14px; }
.vl-accordion--open .vl-accordion__content { display: block; }

/* ════════════════════════════════════════
   PRICE FILTER
════════════════════════════════════════ */
.vl-price-inputs {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.vl-price-input-wrap {
    flex: 1; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 6px 10px; position: relative;
}
.vl-price-input-label {
    display: block; font-size: 10px; color: #a0aec0;
    margin-bottom: 2px; line-height: 1;
    position: absolute;
    top: 0;
    background: white;
    padding: 0 4px;
    transform: translate(0%,-50%);
}
.vl-price-input-wrap input {
    width: 100%; border: none; outline: none;
    font-size: 13px; color: #2d3748; background: transparent; padding: 0;
}
.vl-price-separator { color: #a0aec0; font-size: 14px; flex-shrink: 0; }

/* Histogram */
.vl-histogram {
    display: flex; align-items: flex-end; gap: 2px;
    height: 48px; margin-bottom: 8px;
}
.vl-histogram__bar {
    flex: 1; background: #e53e3e; border-radius: 2px 2px 0 0;
    min-height: 4px; opacity: 0.7; transition: opacity 0.2s;
}
.vl-histogram__bar:hover { opacity: 1; }

.vl-price-range-link {
    font-size: 12px; color: #e53e3e; text-decoration: none;
    display: block; margin-top: 4px;
}
.vl-price-range-link:hover { text-decoration: underline; }

/* ════════════════════════════════════════
   INLINE SEARCH (brand / model / branch)
════════════════════════════════════════ */
.vl-search-input-wrap {
    display: flex; align-items: center; gap: 8px;
    background: #f7fafc; border: 1px solid #e2e8f0;
    border-radius: 8px; padding: 6px 10px; margin-bottom: 12px;
}
.vl-search-input-icon { color: #a0aec0; font-size: 13px; }
.vl-inline-search {
    flex: 1; border: none; background: transparent;
    font-size: 13px; color: #2d3748; outline: none; padding: 0;
}
.vl-section-sublabel { font-size: 11px; color: #a0aec0; margin: 0 0 10px; }

/* ════════════════════════════════════════
   BRAND GRID (logos)
════════════════════════════════════════ */
.vl-brand-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px;
}
.vl-brand-card {
    border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 12px 8px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    cursor: pointer; transition: border-color 0.2s; min-height: 70px;
}
.vl-brand-card.active { border-color: #e53e3e; background: #fff5f5; }
.vl-brand-card:hover  { border-color: #cbd5e0; }
.vl-brand-card__logo  { max-width: 70px; max-height: 36px; object-fit: contain; }
.vl-brand-card__name-only { font-size: 12px; font-weight: 600; color: #2d3748; text-align: center; }

/* Radio list (brand/model full list) */
.vl-radio-list { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; }
.vl-radio-list label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4a5568; cursor: pointer; }
.vl-radio-list input { cursor: pointer; accent-color: #e53e3e; }
.vl-radio-count { color: #a0aec0; font-size: 11px; margin-left: auto; }

/* ════════════════════════════════════════
   INLINE CHIPS (year / transmission / model)
════════════════════════════════════════ */
/* ════════════════════════════════════════
   INLINE CHIPS (year / transmission / model)
════════════════════════════════════════ */
.vl-chips-inline,
.vl-chips-inline--wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow: hidden;
}
.vl-chip-inline {
    padding: 4px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    color: #4a5568;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.vl-chip-inline:hover  { border-color: #e53e3e; color: #e53e3e; }
.vl-chip-inline.active { background: #e53e3e; border-color: #e53e3e; color: #fff; font-weight: 600; }

/* ════════════════════════════════════════
   BODY TYPE GRID
════════════════════════════════════════ */
.vl-body-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vl-body-type-card {
    border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 10px 6px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    cursor: pointer; transition: border-color 0.2s; min-height: 70px;
}
.vl-body-type-card.active { border-color: #e53e3e; background: #fff5f5; }
.vl-body-type-card:hover  { border-color: #cbd5e0; }
.vl-body-type-card__img   { max-width: 72px; max-height: 36px; object-fit: contain; margin-bottom: 4px; }
.vl-body-type-card__icon  { font-size: 28px; margin-bottom: 4px; }
.vl-body-type-card__label { font-size: 11px; color: #4a5568; text-align: center; }

/* ════════════════════════════════════════
   COLOR GRID
════════════════════════════════════════ */
.vl-color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vl-color-card {
    border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 10px 8px; display: flex; flex-direction: column;
    align-items: center; gap: 6px; cursor: pointer; transition: border-color 0.2s;
}
.vl-color-card.active { border-color: #e53e3e; background: #fff5f5; }
.vl-color-card:hover  { border-color: #cbd5e0; }
.vl-color-card__dot   { width: 28px; height: 28px; border-radius: 50%; display: block; flex-shrink: 0; }
.vl-color-card__label { font-size: 11px; color: #4a5568; text-align: center; line-height: 1.2; }
.vl-color-extra       { display: none; }
.vl-color-extra.shown { display: flex; }

.vl-show-more-colors {
    font-size: 12px; color: #e53e3e; text-decoration: none;
    display: block; margin-top: 10px; text-align: center;
}
.vl-show-more-colors:hover { text-decoration: underline; }

/* Clear filters */
.vl-clear-filters {
    display: block; margin-top: 16px; font-size: 12px; color: #e53e3e;
    text-decoration: none; text-align: center; padding: 8px;
    border: 1px solid #fed7d7; border-radius: 8px; transition: background 0.2s;
}
.vl-clear-filters:hover { background: #fff5f5; }

/* ════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════ */
.vl-main { flex: 1; min-width: 0; }
.vl-main__header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.vl-main__counter { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4a5568; margin: 0; }
.vl-green-dot { width: 8px; height: 8px; background: #38a169; border-radius: 50%; display: inline-block; }
.vl-main__order { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #718096; }
.vl-main__order select { border: 1px solid #e2e8f0; border-radius: 20px; padding: 6px 10px; font-size: 13px; background: #fff; cursor: pointer; width: auto !important; height: auto !important;}
/* Quick chips */
.vl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.vl-chip {
    padding: 5px 14px; border: 1px solid #e2e8f0; border-radius: 20px;
    font-size: 12px; color: #4a5568; text-decoration: none;
    background: #fff; transition: all 0.15s; white-space: nowrap;
}
.vl-chip:hover { border-color: #e53e3e; color: #e53e3e; }
.vl-chip.active { background: #e53e3e; border-color: #e53e3e; color: #fff; }

/* ════════════════════════════════════════
   FILTER TOGGLE BUTTON (mobile / tablet)
════════════════════════════════════════ */
.vl-filter-btn {
    display: none;
    align-items: center; gap: 6px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    background: #fff; padding: 8px 14px;
    font-size: 13px; font-weight: 500; color: #4a5568;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: all 0.15s;
}
.vl-filter-btn:hover  { border-color: #e53e3e; color: #e53e3e; }
.vl-filter-btn.active { background: #e53e3e; border-color: #e53e3e; color: #fff; }

/* ════════════════════════════════════════
   VEHICLE GRID
════════════════════════════════════════ */
.vl-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
/* Tablet (≤ 1024px) — sidebar se colapsa, aparece botón de filtro */
@media (max-width: 1024px) {
    .vl-filter-btn { display: flex; }
    .vl-inv__body  { flex-direction: column; align-items: stretch; }
    .vl-sidebar {
        display: none;
        width: 100%;
        position: static;
        max-height: none;
        margin-bottom: 16px;
    }
    .vl-sidebar.vl-sidebar--open { display: block; }
    .vl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
    .vl-sidebar { width: 90%; }
}
/* Mobile (≤ 640px) — search cae abajo, grid 1 columna */
@media (max-width: 640px) {
    .vl-inv__topbar            { flex-wrap: wrap; gap: 12px; }
    .vl-inv__title             { order: 1; flex: 1; }
    .vl-filter-btn             { order: 2; }
    .vl-inv__container__search { order: 3; flex: 1 1 100%; }
    .vl-grid { grid-template-columns: 1fr; }
    .vl-main__header { flex-wrap: wrap; gap: 6px; }
    .vl-main__counter { flex: 1 1 100%; font-size: 12px; }
    .vl-main__order { font-size: 12px; margin-left: auto; }
    .vl-main__order select { padding: 2px 5px; font-size: 12px; max-width: 100%; }
}

/* ════════════════════════════════════════
   VEHICLE CARD
════════════════════════════════════════ */
.vl-card { border: 1px solid #edf2f7; border-radius: 8px; overflow: hidden; background: #fff; transition: box-shadow 0.2s; display: flex; flex-direction: column; }
.vl-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
.vl-card__img-link { position: relative; display: block; }
.vl-card__img { width: 100%; height: 185px; object-fit: cover; display: block; }
.vl-card__img--empty { height: 185px; background: #f7fafc; }
.vl-card__badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.badge--market { background:#f0fff4; color:#276749; border:1px solid #9ae6b4; }
.badge--promo  { background:#fff5f5; color:#c53030; border:1px solid #feb2b2; }
.badge--recent { background:#ebf8ff; color:#2b6cb0; border:1px solid #90cdf4; }
.badge--owner  { background:#fffff0; color:#744210; border:1px solid #f6e05e; }
.badge--soon   { background:#fffaf0; color:#c05621; border:1px solid #fbd38d; }
.vl-card__fav { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.9); border: none; border-radius: 50%; width: 30px; height: 30px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #a0aec0; transition: color 0.2s; }
.vl-card__fav:hover { color: #e53e3e; }
.vl-card__body { padding: 12px 14px 8px; flex: 1; }
.vl-card__name { display: block; font-size: 15px; font-weight: 700; color: #e53e3e!important; text-decoration: none; margin-bottom: 2px; line-height: 1.3; }
.vl-card__name:hover { color: #c53030; }
.vl-card__sub { font-size: 12px; margin: 0 0 10px;}
.vl-card__price-label { font-size: 11px; margin: 0; }
.vl-card__price { font-size: 22px; font-weight: 700; color: #1a202c; margin: 0 0 4px; line-height: 1.2; }
.vl-card__price-sign { font-size: 14px; vertical-align: super; }
.vl-card__price-currency { font-size: 13px; font-weight: 400; color: #718096; }
.vl-card__bonus { font-size: 12px; margin: 0; font-weight: 500; }
.vl-card__footer { padding: 8px 14px; font-size: 11px; margin-top: auto; }
.separador {height: 2px; margin-top: 5px; margin-bottom: 2px; border-bottom: 1px solid #CCCCCC;}
/* ════════════════════════════════════════
   PAGINATION
════════════════════════════════════════ */
.vl-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.vl-page-btn { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; color: #4a5568; text-decoration: none; transition: all 0.15s; }
.vl-page-btn:hover { border-color: #e53e3e; color: #e53e3e; }
.vl-page-btn.active { background: #e53e3e; border-color: #e53e3e; color: #fff; font-weight: 700; }
.vl-no-results { text-align: center; padding: 60px 20px; color: #718096; }
.vl-btn { display: inline-block; background: #e53e3e; color: #fff !important; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: background 0.2s; margin-top: 12px; }
.vl-btn:hover { background: #c53030; }

/* ════════════════════════════════════════
   SINGLE VEHICLE PAGE
════════════════════════════════════════ */
.vl-gallery { position: relative; margin-bottom: 12px; }
.vl-s-badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; }
.vl-gallery__counter { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(0,0,0,0.55); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 6px; }
.vl-gallery__main-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; display: block; }
.vl-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.vl-gallery__thumb { width: 90px!important; height: 65px!important; border-radius: 6px!important; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; flex-shrink: 0; }
.vl-gallery__thumb.active { border-color: #e53e3e; }
.vl-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vl-gallery__empty { height: 300px; background: #f7fafc; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #a0aec0; font-size: 14px; }
.vl-s-title { font-size: 22px; font-weight: 700; color: #e53e3e; line-height: 1.3; }
.vl-s-quick-info { font-size: 13px; color: #718096; margin: 0 0 16px; }
.vl-s-price { margin-bottom: 12px; }
.vl-s-price__label { font-size: 12px; color: #718096; margin: 0; }
.vl-s-price__amount { font-size: 32px; font-weight: 700; color: #1a202c; margin: 2px 0; line-height: 1.2; }
.vl-s-price__sign { font-size: 18px; vertical-align: super; }
.vl-s-price__currency { font-size: 14px; font-weight: 400; color: #718096; }
.vl-s-price__bonus { font-size: 14px; margin: 4px 0 0; }
.vl-s-delivery { font-size: 13px; color: #4a5568; margin: 0 0 16px; }
.vl-s-variants {  border-radius: 8px; padding: 4px 0; }
.vl-s-variant-row { display: flex !important; justify-content: space-between !important; align-items: center !important; padding: 10px 14px; border-bottom: 1px solid #EEEEEE; }
.vl-s-variant-row:last-child { border-bottom: none; }
.vl-s-variant-label { font-size: 12px; color: #718096; }
.vl-s-variant-value { display: flex !important; align-items: center !important; gap: 8px; }
.vl-s-variant-more { background: #ebf8ff; color: #2b6cb0; font-size: 11px; padding: 2px 8px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.vl-s-variant-more:hover { background: #bee3f8; }
.vl-s-section-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; color: #1a202c; }
.vl-s-specs__grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0; }
.vl-s-spec-item { padding: 12px 0; border-bottom: 1px solid #CCCCCC; display: flex !important; flex-direction: column !important; padding-right: 16px; }
.vl-s-spec-label { font-size: 12px; color: #718096; margin-bottom: 3px; display: block !important; }
.vl-s-spec-value { font-size: 14px; font-weight: 600; color: #2d3748; display: block !important; }
.vl-s-accordion { border-bottom: 1px solid #edf2f7; }
.vl-s-accordion__btn { width: 100%; background: none; border: none; outline: none; display: flex !important; justify-content: space-between !important; align-items: center !important; padding: 14px 0; cursor: pointer; font-size: 15px; font-weight: 500; color: #2d3748; }
.vl-s-accordion__arrow { font-size: 20px; transition: transform 0.2s; scale: 2 1; display: inline-block !important; }
.vl-s-accordion.open .vl-s-accordion__arrow { transform: rotate(180deg); }
.vl-s-accordion__list { display: none !important; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; }
.vl-s-accordion__list.open { display: flex !important; }
.vl-s-feature-tag { background: #ebf8ff; color: #2b6cb0; font-size: 12px; padding: 4px 12px; border-radius: 20px; display: inline-flex !important; align-items: center !important; }
.vl-s-similar__title { font-size: 13px; font-weight: 700; color: #2d3748; margin: 0 0 12px; }
.vl-s-similar-item { display: flex !important; gap: 12px; align-items: center !important; padding: 10px 0; border-bottom: 1px solid #edf2f7; text-decoration: none; color: inherit; transition: opacity 0.2s; }
.vl-s-similar-item:hover { opacity: 0.75; }
.vl-s-similar-img { width: 76px !important; max-width: 76px !important; height: 56px !important; object-fit: cover; border-radius: 6px; flex-shrink: 0 !important; }
.vl-s-similar-img--empty { width: 76px !important; max-width: 76px !important; height: 56px !important; background: #edf2f7; border-radius: 6px; flex-shrink: 0 !important; }
.vl-s-similar-name  { font-size: 13px; font-weight: 600; margin: 0 0 3px; }
.vl-s-similar-meta  { font-size: 11px; color: #718096; margin: 0 0 3px; }
.vl-s-similar-price { font-size: 12px; color: #e53e3e; font-weight: 600; margin: 0; }


.vl-price-input-row {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
}
.vl-price-input-sign {
    font-size: 14px!important;
    font-weight: 600;
    color: #2d3748;
    flex-shrink: 0;
}
.vl-price-input-wrap input {
    font-size: 12px!important;
    color: #2d3748;
}