/* ============================================================
   Lovasok Kiemelt hirdetések carousel — [lovasok_featured_listings]
   ============================================================ */

.lmk-featured {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111827;
    box-sizing: border-box;
}

.lmk-featured,
.lmk-featured *,
.lmk-featured *::before,
.lmk-featured *::after {
    box-sizing: border-box;
}

/* ── Fejléc (cím + nyilak) ── */
.lmk-featured__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.lmk-featured__title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.lmk-featured__nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lmk-featured__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, opacity 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 0;
}

.lmk-featured__arrow svg {
    width: 18px;
    height: 18px;
}

.lmk-featured__arrow:hover {
    background: #1a5c3e;
    border-color: #1a5c3e;
    color: #ffffff;
}

.lmk-featured__arrow:active {
    transform: scale(0.95);
}

.lmk-featured__arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ── Carousel viewport ── */
.lmk-featured__viewport {
    position: relative;
    width: 100%;
    /* a kártyák árnyékát ne vágja le */
    margin: 0 -8px;
    padding: 0 8px;
    overflow: hidden;
}

.lmk-featured__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 20px) / 4);
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 2px 14px;
    margin: -6px -2px -14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lmk-featured__track::-webkit-scrollbar {
    display: none;
}

/* ── Kártya ── */
.lmk-featured-card {
    scroll-snap-align: start;
    min-width: 0;
    display: flex;
}

.lmk-featured-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border: 1px solid #eceae5;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lmk-featured-card__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.08);
    border-color: #e4e1d9;
    color: inherit;
    text-decoration: none;
}

.lmk-featured-card--premium .lmk-featured-card__link {
    border-color: #fbbf24;
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.08), 0 6px 18px rgba(245, 158, 11, 0.15);
}

/* ── Kép blokk ── */
.lmk-featured-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    overflow: hidden;
}

.lmk-featured-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lmk-featured-card__image--placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.lmk-featured-card__link:hover .lmk-featured-card__image {
    transform: scale(1.04);
}

/* Kiemelt / Prémium badge */
.lmk-featured-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 6px;
    letter-spacing: 0.01em;
    color: #ffffff;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.lmk-featured-card__badge--highlight {
    background: #1a5c3e;
}

.lmk-featured-card__badge--premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
}

.lmk-featured-card__badge--premium svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Kedvenc gomb */
.lmk-featured-card__fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    z-index: 2;
}

.lmk-featured-card__fav svg {
    width: 18px;
    height: 18px;
}

.lmk-featured-card__fav:hover {
    background: #ffffff;
    color: #ef4444;
    transform: scale(1.06);
}

.lmk-featured-card__fav.is-active {
    color: #ef4444;
}

.lmk-featured-card__fav.is-active svg {
    fill: currentColor;
}

/* ── Tartalom ── */
.lmk-featured-card__body {
    display: flex;
    flex-direction: column;
    padding: 14px 16px 16px;
    gap: 6px;
    flex: 1 1 auto;
}

.lmk-featured-card__titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    min-width: 0;
}

.lmk-featured-card__name {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    letter-spacing: -0.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1 1 auto;
}

.lmk-featured-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    color: #1a5c3e;
    background: #ffffff;
    border: 1px solid #1a5c3e;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.lmk-featured-card__verified svg {
    width: 11px;
    height: 11px;
    stroke-width: 2.5;
}

.lmk-featured-card__breed {
    margin: 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lmk-featured-card__meta {
    list-style: none;
    margin: 2px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.lmk-featured-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.2;
}

.lmk-featured-card__meta-item svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #9ca3af;
}

/* Ár + helyszín sor */
.lmk-featured-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}

.lmk-featured-card__price {
    font-size: 1.1875rem;
    font-weight: 700;
    color: #1a5c3e;
    line-height: 1.15;
    letter-spacing: -0.01em;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lmk-featured-card__location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.2;
    min-width: 0;
    max-width: 55%;
}

.lmk-featured-card__location svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #9ca3af;
}

.lmk-featured-card__location span,
.lmk-featured-card__location {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Footer CTA ── */
.lmk-featured__footer {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.lmk-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: #1a5c3e;
    color: #ffffff;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(26, 92, 62, 0.18);
}

.lmk-featured__cta:hover {
    background: #144d33;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26, 92, 62, 0.28);
}

/* ── Reszponzív törésekpontok ── */
@media (max-width: 1100px) {
    .lmk-featured__track {
        grid-auto-columns: calc((100% - 2 * 18px) / 3);
        gap: 18px;
    }
}

@media (max-width: 820px) {
    .lmk-featured__track {
        grid-auto-columns: calc((100% - 16px) / 2);
        gap: 16px;
    }

    .lmk-featured__title {
        font-size: 1.25rem;
    }

    .lmk-featured-card__name {
        font-size: 1rem;
    }

    .lmk-featured-card__price {
        font-size: 1.0625rem;
    }
}

@media (max-width: 560px) {
    .lmk-featured__header {
        margin-bottom: 14px;
    }

    .lmk-featured__track {
        grid-auto-columns: 82%;
        gap: 14px;
        padding: 6px 2px 12px;
    }

    .lmk-featured-card__body {
        padding: 12px 14px 14px;
    }

    .lmk-featured-card__verified {
        padding: 3px 7px;
        font-size: 0.625rem;
    }

    .lmk-featured-card__footer {
        gap: 8px;
        margin-top: 8px;
        padding-top: 8px;
    }

    .lmk-featured-card__location {
        font-size: 0.75rem;
        max-width: 55%;
    }
}

@media (max-width: 380px) {
    .lmk-featured__track {
        grid-auto-columns: 88%;
    }
}
