/* ============================================================
 * [lastminute_v2] — vlastné CSS, žiadny Bootstrap
 * Karta: rounded 16px, white bg, hover lift, mobile-first responsive
 * ============================================================ */

.lmv2-wrap {
    --lmv2-accent: #1266A3;
    --lmv2-accent-hover: #0e5285;
    --lmv2-text: #111827;
    --lmv2-text-muted: #6b7280;
    --lmv2-bg-info: #f3f4f6;
    --lmv2-radius: 16px;
    --lmv2-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --lmv2-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}
.lmv2-wrap *,
.lmv2-wrap *::before,
.lmv2-wrap *::after {
    box-sizing: inherit;
}

/* ----- FILTERS ----- */
.lmv2-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    margin: 0 0 28px;
}
.lmv2-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
}
.lmv2-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--lmv2-text-muted);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.lmv2-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
    color: var(--lmv2-text);
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 9px 36px 9px 14px;
    font-size: 14px;
    font-family: inherit;
    width: auto;
    min-width: 190px;
    max-width: 280px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}
.lmv2-filter-select:hover { border-color: #9ca3af; }
.lmv2-filter-select:focus {
    outline: none;
    border-color: var(--lmv2-accent);
    box-shadow: 0 0 0 3px rgba(18, 102, 163, 0.12);
}
.lmv2-filter-select.is-filtered {
    border-color: var(--lmv2-accent);
    background-color: #f0f7fc;
    font-weight: 500;
}

/* Sticky filter bar — len na PC (≥1024px). Top offset cez --lmv2-sticky-top pre prípad fixed hlavičky. */
@media (min-width: 1024px) {
    .lmv2-filters {
        position: sticky;
        top: var(--lmv2-sticky-top, 12px);
        z-index: 30;
        padding: 12px 16px;
        margin: 0 0 28px;
        background: rgba(255, 255, 255, 0.78);
        -webkit-backdrop-filter: saturate(180%) blur(12px);
        backdrop-filter: saturate(180%) blur(12px);
        border: 1px solid rgba(15, 23, 42, 0.07);
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    }
}

/* ----- GRID ----- */
.lmv2-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
@media (max-width: 1023px) {
    .lmv2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 639px) {
    .lmv2-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ----- CARD ----- */
.lmv2-card {
    background: #fff;
    border-radius: var(--lmv2-radius);
    box-shadow: var(--lmv2-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lmv2-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lmv2-shadow-hover);
}
.lmv2-card[hidden] { display: none; }

/* ----- CARD HERO (obrázok + badges + title overlay) ----- */
.lmv2-card-hero {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}
.lmv2-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none !important;
}
.lmv2-card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}
.lmv2-card:hover .lmv2-card-img-link img {
    transform: scale(1.04);
}

/* Title overlay — gradient bottom 2cm, biele písmo */
.lmv2-card-title-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2cm;
    display: flex;
    align-items: flex-end;
    padding: 0 18px 14px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0) 100%);
    pointer-events: none;
}
.lmv2-card-title-overlay .lmv2-title {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    text-align: left;
    letter-spacing: -0.005em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

/* ----- BADGES (overlay top-left) ----- */
.lmv2-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}
.lmv2-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    border: 2px solid #fff;
    white-space: nowrap;
}
.lmv2-badge svg { flex: none; }
.lmv2-badge-zlava {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.lmv2-badge-online {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* ----- CARD BODY ----- */
.lmv2-card-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}
.lmv2-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lmv2-text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

/* ----- INFO BOX ----- */
.lmv2-info {
    background: var(--lmv2-bg-info);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lmv2-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--lmv2-text);
}
.lmv2-info-row svg {
    color: var(--lmv2-accent);
    flex: none;
}
.lmv2-info-row strong { font-weight: 700; }

/* ----- PRICE ROW (price block left + urgency right) ----- */
.lmv2-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}
.lmv2-price-block { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; padding-right: 10px; }
.lmv2-price-old {
    font-size: 12px;
    color: var(--lmv2-text-muted);
    line-height: 1.2;
}
.lmv2-price-old s {
    color: var(--lmv2-text-muted);
    text-decoration: line-through;
}
.lmv2-price-new {
    font-size: 25px;
    font-weight: 800;
    color: var(--lmv2-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.lmv2-price-dph {
    font-size: 13px;
    color: var(--lmv2-text-muted);
    line-height: 1.2;
}
.lmv2-urgency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 14px;
    line-height: 1.25;
    flex-shrink: 1;
    min-width: 0;
    text-align: left;
}
.lmv2-urgency svg { color: #ea580c; flex: none; align-self: flex-start; margin-top: 1px; }

/* Urgentná verzia — červený bagel, biely text (Posledné voľné miesta) */
.lmv2-urgency--hot {
    background: #dc2626;
    color: #fff;
}
.lmv2-urgency--hot svg { color: #fff; }

/* ----- CTA ----- */
.lmv2-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--lmv2-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 12px;
    transition: background-color 0.15s, transform 0.1s;
    margin-top: 4px;
}
.lmv2-cta:hover {
    background: var(--lmv2-accent-hover);
    color: #fff !important;
    text-decoration: none !important;
}
.lmv2-cta:active { transform: translateY(1px); }
.lmv2-cta svg {
    transition: transform 0.2s;
}
.lmv2-cta:hover svg { transform: translateX(3px); }

/* ----- SHOW-ALL BUTTON ----- */
.lmv2-showall-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}
.lmv2-showall {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    color: var(--lmv2-accent);
    border: 1.5px solid var(--lmv2-accent);
    border-radius: 12px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}
.lmv2-showall:hover {
    background: var(--lmv2-accent);
    color: #fff;
}
.lmv2-showall[hidden] { display: none; }

/* ----- EMPTY STATES ----- */
.lmv2-empty,
.lmv2-empty-filter {
    text-align: center;
    padding: 32px 20px;
    color: var(--lmv2-text-muted);
    font-size: 15px;
    background: #f9fafb;
    border-radius: 12px;
}
.lmv2-empty a {
    color: var(--lmv2-accent);
    font-weight: 600;
}

/* ----- MOBILE TWEAKS ----- */
@media (max-width: 639px) {
    .lmv2-filters { flex-direction: column; align-items: stretch; gap: 12px; }
    .lmv2-filter-select { min-width: 0; max-width: none; width: 100%; }
    .lmv2-filter { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
    .lmv2-filter-label { justify-content: flex-start; }
    .lmv2-card-body { padding: 18px 18px 20px; }
    .lmv2-card-title-overlay .lmv2-title { font-size: 16px; }
    .lmv2-price-row { flex-wrap: wrap; }
}
