.lnm-ei {
    --lnm-red: #c8001a;
    --lnm-red-dark: #a80016;
    --lnm-card: #efebe6;
    --lnm-media: #ffffff;
    --lnm-text: #0a0a0a;
    --lnm-body: #3a3634;
    --lnm-muted: #9a9490;
    --lnm-border: #e0dcd6;
    --lnm-radius: 16px;
    color: var(--lnm-text);
    box-sizing: border-box;
}

.lnm-ei *,
.lnm-ei *::before,
.lnm-ei *::after {
    box-sizing: border-box;
}

.lnm-ei-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 18px;
    scrollbar-width: thin;
}

.lnm-ei-tab,
.lnm-ei-more,
.lnm-ei-quote {
    appearance: none;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.lnm-ei-tab {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #f5f2ee;
    color: var(--lnm-body);
    box-shadow: inset 0 0 0 1px var(--lnm-border);
}

.lnm-ei-tab:hover {
    transform: translateY(-1px);
}

.lnm-ei-tab.is-active {
    color: #fff;
    background: var(--lnm-red);
    box-shadow: none;
}

.lnm-ei-count {
    color: var(--lnm-muted);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.lnm-ei-filters {
    display: grid;
    grid-template-columns: minmax(160px, .9fr) minmax(160px, .9fr) minmax(160px, .9fr) minmax(220px, 1.2fr);
    gap: 10px;
    margin-bottom: 24px;
}

.lnm-ei-select,
.lnm-ei-search {
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid var(--lnm-border);
    background: #fff;
    color: var(--lnm-body);
    padding: 9px 13px;
    font: inherit;
    outline: none;
}

.lnm-ei-select:focus,
.lnm-ei-search:focus {
    border-color: var(--lnm-red);
    box-shadow: 0 0 0 2px rgba(200, 0, 26, .12);
}

.lnm-ei-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.lnm-ei-card {
    min-width: 0;
    background: var(--lnm-card);
    border: 1px solid var(--lnm-border);
    border-radius: var(--lnm-radius);
    padding: 22px 24px 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 380ms ease, transform 380ms ease, border-color 380ms ease;
}

.lnm-ei-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 72px rgba(200, 0, 26, .13);
    border-color: rgba(200, 0, 26, .18);
}

.lnm-ei-image-wrap {
    position: relative;
    background: var(--lnm-media);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 22px;
    min-height: 250px;
}

.lnm-ei-image {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 18px;
    transition: transform 500ms ease;
}

.lnm-ei-card:hover .lnm-ei-image {
    transform: scale(1.05);
}

.lnm-ei-image-placeholder {
    background: linear-gradient(135deg, #f8f6f3, #e7e1da);
}

.lnm-ei-status-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #2b7a4b;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.lnm-ei-status-badge[data-status="sold"] {
    background: var(--lnm-red);
}

.lnm-ei-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.lnm-ei-unit-title {
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--lnm-border);
}

.lnm-ei-unit-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--lnm-muted);
    margin-bottom: 3px;
}

.lnm-ei-title {
    margin: 0;
    font-size: 27px;
    line-height: 1.08;
    font-weight: 800;
    color: var(--lnm-text);
}

.lnm-ei-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
}

.lnm-ei-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 19px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--lnm-border);
    color: #6f6965;
    font-size: 11px;
    font-weight: 700;
}

.lnm-ei-specs {
    margin: 0;
    flex: 1 1 auto;
}

.lnm-ei-spec-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 0 0 9px;
    justify-content: space-between;
}

.lnm-ei-spec-row:last-child {
    margin-bottom: 0;
}

.lnm-ei-spec-key,
.lnm-ei-spec-value {
    margin: 0;
}

.lnm-ei-spec-key {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--lnm-muted);
}

.lnm-ei-spec-value {
    color: var(--lnm-body);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.lnm-ei-note {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(200, 0, 26, .06);
    color: var(--lnm-red);
    font-size: 13px;
    font-weight: 700;
}

.lnm-ei-price {
    margin-top: 18px;
    color: var(--lnm-red);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.lnm-ei-actions {
    display: flex;
    align-items: self-start;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 22px;
    flex-direction: column;
    justify-content: left;
}

.lnm-ei-actions .svc-link,
.lnm-ei-actions .btn {
    margin: 0;
    align-self: auto;
}

.lnm-ei-info-link {
    color: var(--lnm-red);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.lnm-ei-info-link:hover {
    color: var(--lnm-red-dark);
    text-decoration: underline;
}

.lnm-ei-quote,
.lnm-ei-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 7px;
    color: #fff;
    background: var(--lnm-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.lnm-ei-quote:hover,
.lnm-ei-more:hover {
    color: #fff;
    background: var(--lnm-red-dark);
}

.lnm-ei-loading {
    margin: 8px 0 16px;
    color: var(--lnm-muted);
    font-size: 14px;
}

.lnm-ei.is-loading .lnm-ei-grid {
    opacity: .55;
    pointer-events: none;
}

.lnm-ei-no-results {
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
    border: 1px dashed var(--lnm-border);
    border-radius: var(--lnm-radius);
    color: var(--lnm-muted);
}

.lnm-ei-more-wrap {
    text-align: center;
    margin-top: 24px;
}

.lnm-ei-more[disabled] {
    opacity: .5;
    cursor: wait;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

@media (max-width: 1100px) {
    .lnm-ei-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lnm-ei-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .lnm-ei-grid,
    .lnm-ei-filters {
        grid-template-columns: 1fr;
    }

    .lnm-ei-card {
        padding: 18px;
    }

    .lnm-ei-image-wrap {
        min-height: 220px;
    }

    .lnm-ei-image {
        height: 220px;
    }

    .lnm-ei-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}
