/* [amplus_vehicles_tabs] — Tab nav + flat karty */

/* Tab nav */
.amplus-vtabs { display: flex; flex-direction: column; gap: 24px; }

.amplus-vtabs-nav {
    display: flex; flex-wrap: wrap; gap: 4px;
    background: #F1F5F9; padding: 5px; border-radius: 14px;
    width: fit-content; max-width: 100%;
}

.amplus-vtabs-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border: 0; border-radius: 10px;
    background: transparent; color: #64748B;
    font: inherit; font-size: 14px; font-weight: 500;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    white-space: nowrap; flex-shrink: 0;
}
.amplus-vtabs-btn em {
    display: inline-flex; align-items: center; justify-content: center;
    font-style: normal; font-size: 11px; font-weight: 700; line-height: 1;
    min-width: 22px; height: 20px; padding: 0 6px;
    background: #E2E8F0; color: #475569; border-radius: 999px;
    transition: background .2s ease, color .2s ease;
}
.amplus-vtabs-btn:hover { background: #fff; color: #0F172A; }
.amplus-vtabs-btn.is-active { background: #fff; color: #0F172A; box-shadow: 0 1px 6px rgba(15,23,42,.1); }
.amplus-vtabs-btn.is-active em { background: var(--uicore-primary-color, var(--amplus-color-primary)); color: #fff; }

/* Grid */
.amplus-vtabs-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.amplus-vtabs-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.amplus-vtabs-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.amplus-vtabs-grid.is-loading { opacity: .4; pointer-events: none; transition: opacity .2s; }

@media (max-width: 960px) {
    .amplus-vtabs-grid, .amplus-vtabs-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
    .amplus-vtabs-grid, .amplus-vtabs-grid.cols-2, .amplus-vtabs-grid.cols-4 { grid-template-columns: 1fr; }
    .amplus-vtabs-nav { width: 100%; }
}

/* CTA */
.amplus-vtabs-footer { display: flex; justify-content: center; }
.amplus-vtabs-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 11px 24px; border: 1.5px solid #E2E8F0; border-radius: 10px;
    background: #fff; color: #0F172A;
    font: inherit; font-size: 14px; font-weight: 600;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}
.amplus-vtabs-cta:hover {
    border-color: var(--uicore-primary-color, var(--amplus-color-primary));
    color: var(--uicore-primary-color, var(--amplus-color-primary));
}

/* Modely podľa značky — navigácia (odkazy) na /modely/<značka>/ */
.amplus-modely-nav .amplus-vtabs-btn { text-decoration: none; }
.amplus-modely-nav .amplus-vtabs-btn:hover { text-decoration: none; }

/* Filter akcií — dva riadky (značka + typ) */
.amplus-akcie-filters { display: flex; flex-direction: column; gap: 12px; }
.amplus-akcie-filters .amplus-akcie-tabs { margin: 0; }

/* Flat karta */
.amplus-flat-card {
    background: #fff; border: 1px solid #E8ECF0; border-radius: 14px;
    overflow: hidden; display: flex; flex-direction: column;
    cursor: pointer; text-decoration: none; color: inherit;
}

.amplus-flat-card-media {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    background: linear-gradient(160deg, #E8EDF3 0%, #F4F6FA 100%);
}
.amplus-flat-card-media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    /* contain — fotka aj s logom AM plus v pravom hornom rohu ostane celá viditeľná */
    object-fit: contain; object-position: center;
    transition: opacity .35s ease, transform .4s ease;
}
.amplus-flat-card-media .amplus-flat-card-img--primary { z-index: 1; }
.amplus-flat-card-media .amplus-flat-card-img--hover {
    z-index: 2; opacity: 0; pointer-events: none;
}
.amplus-flat-card:hover .amplus-flat-card-img--primary { transform: scale(1.04); }
.amplus-flat-card:hover .amplus-flat-card-img--hover   { opacity: 1; transform: scale(1.04); }
.amplus-flat-card-media .amplus-flat-badge { z-index: 3; }
@media (hover: none) {
    .amplus-flat-card-media .amplus-flat-card-img--hover { display: none; }
}
.amplus-flat-card-placeholder { width: 100%; height: 100%; }

/* Badge — obrázok, len zľava */
.amplus-flat-badge {
    position: absolute; top: 12px; left: 12px;
    font-size: 12px; font-weight: 700; padding: 5px 12px;
    border-radius: 999px; background: #0F172A; color: #fff; letter-spacing: .01em;
}
.amplus-flat-badge--discount { background: #DC2626; }

/* Stavový štítok — nad nadpisom (Nové / Skladom / Ojazdené / Predvádzacie), menší než badge zľavy */
.amplus-flat-state-badge {
    align-self: flex-start;
    font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 7px;
    border-radius: 999px; letter-spacing: .02em;
}
.amplus-flat-state-badge--skladom      { background: var(--uicore-primary-color, #10B981); color: #fff; }
.amplus-flat-state-badge--nove         { background: var(--uicore-secondary-color, #7C3AED); color: #fff; }
.amplus-flat-state-badge--predvadzacie { background: #F59E0B; color: #000; }
.amplus-flat-state-badge--ojazdene     { background: #64748B; color: #fff; }
.amplus-flat-state-badge--custom       { background: #DC2626; color: #fff; }

/* Card body */
.amplus-flat-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.amplus-flat-title { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0; color: #0F172A; }

/* 3 icon specs */
.amplus-flat-specs-row {
    display: flex; gap: 0;
    border-top: 1px solid #F1F5F9; border-bottom: 1px solid #F1F5F9;
    padding: 10px 0; margin: 2px 0;
}
.amplus-flat-spec {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 5px; padding: 0 4px; text-align: center;
    border-right: 1px solid #F1F5F9;
}
.amplus-flat-spec:last-child { border-right: 0; }
.amplus-flat-spec svg { width: 22px; height: 22px; color: #94A3B8; flex-shrink: 0; }
.amplus-flat-spec span { font-size: 12px; font-weight: 500; color: #475569; line-height: 1.2; }

/* Pricing — tlačidlo "Detail vozidla" vľavo, cena vpravo (vedľa seba, rovnako ako na /vozidla/).
   Na úzkych kartách sa tlačidlo zúži a jeho text sa zalomí (ostane vedľa ceny) — cena si drží
   veľkosť. BEZ container-query / `container-type` (ten na karte odpájal šírku obsahu a v
   shrink-to-fit flex kontajneroch, napr. shortcode widget na modelovej stránke, karty kolabovali). */
.amplus-flat-pricing { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
/* Tlačidlo = KLASICKÉ CTA z kitu (žiadne prefarbenie — dedí primárny štýl ako ostatné
   tlačidlá na webe), len horizontálny padding je menší, scoped na tento zoznam vozidiel. */
.amplus-flat-pricing .elementor-button.elementor-button {
    flex: 0 1 auto; min-width: 0;
    padding-left: 20px !important;
    padding-right: 20px !important;
}
.amplus-flat-price { flex: 0 0 auto; display: flex; flex-direction: column; gap: 1px; line-height: 1.2; text-align: right; margin-left: auto; }
.amplus-flat-price-old { font-size: 18px; color: #94A3B8; text-decoration: line-through; }
.amplus-flat-price strong { font-size: 30px; font-weight: 800; color: #0F172A; }
.amplus-flat-monthly { font-size: 12px; color: #94A3B8; }

/* Do 1470px sa "Detail vozidla" presunie POD cenu (na druhý riadok) — na užších kartách sa
   vedľa ceny (30px) na jeden riadok nezmestí. Nad 1470px ostáva vedľa ceny. */
@media (max-width: 1470px) {
    .amplus-flat-pricing { flex-direction: column; align-items: stretch; gap: 10px; }
    .amplus-flat-price { order: -1; }
    .amplus-flat-pricing .elementor-button.elementor-button { width: 100%; }
}
