/* ═══════════════════════════════════════════════════════════════
   GREENWAYS MARINE EXPORTS — Premium Products Section
   Redesigned | Deep Navy + Oceanic Blue + Warm Gold Theme
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ─── ROOT VARIABLES ──────────────────────────────────────────── */
:root {
    --ocean-900: #04111e;
    --ocean-800: #0a1f35;
    --ocean-700: #0e2d4f;
    --ocean-600: #144070;
    --ocean-500: #1a5494;
    --ocean-400: #2572c8;
    --ocean-300: #4d97f0;
    --ocean-200: #a4cbf9;
    --ocean-100: #dceeff;
    --ocean-50: #f0f7ff;

    --gold-600: #a07828;
    --gold-500: #c59840;
    --gold-400: #ddb85a;
    --gold-300: #e8cc80;
    --gold-100: #f8f0d8;
    --gold-50: #fdf9f0;

    --bg-page: #f4f8fd;
    --bg-white: #ffffff;
    --bg-soft: #eef4fc;
    --bg-card: #ffffff;

    --text-dark: #0c1f33;
    --text-body: #2e4a66;
    --text-muted: #6b8aaa;
    --text-faint: #9eb5cc;

    --border-soft: rgba(20, 64, 112, 0.10);
    --border-mid: rgba(20, 64, 112, 0.20);
    --border-strong: rgba(20, 64, 112, 0.35);

    --shadow-sm: 0 2px 10px rgba(10, 31, 53, 0.06);
    --shadow-md: 0 8px 28px rgba(10, 31, 53, 0.10);
    --shadow-lg: 0 20px 56px rgba(10, 31, 53, 0.14);
    --shadow-card-hover: 0 28px 64px rgba(10, 31, 53, 0.18), 0 0 0 1px rgba(37, 114, 200, 0.18);

    --radius-card: 18px;
    --radius-img: 12px;
    --radius-pill: 100px;
    --radius-sm: 8px;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── BASE RESET ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════════
   FILTER BAR
   ═══════════════════════════════════════════════════════════════ */
.lm_filter-bar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 4px 32px rgba(10, 31, 53, 0.07);
    padding: 14px 0;
    margin-bottom: 72px;
}

.lm_filter-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    row-gap: 10px;
}

.lm_filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.lm_filter-label {
    /* font-family: var(--font-body); */
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    white-space: nowrap;
    padding-right: 4px;
}

.lm_filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-soft);
    background: transparent;
    color: var(--text-muted);
    /* font-family: var(--font-body); */
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.22s var(--ease-out);
    white-space: nowrap;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.lm_filter-btn .lm_btn-count,
.lm_filter-btn .lm_filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    transition: all 0.22s;
}

.lm_filter-btn:hover {
    border-color: var(--ocean-300);
    color: var(--ocean-500);
    background: var(--ocean-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.lm_filter-btn:hover .lm_btn-count,
.lm_filter-btn:hover .lm_filter-count {
    background: var(--ocean-100);
    color: var(--ocean-500);
}

.lm_filter-btn.active {
    background: var(--ocean-800);
    border-color: var(--ocean-800);
    color: #fff;
    box-shadow: 0 4px 16px rgba(10, 31, 53, 0.28);
    transform: translateY(-1px);
}

.lm_filter-btn.active .lm_btn-count,
.lm_filter-btn.active .lm_filter-count {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.lm_filter-divider {
    width: 1px;
    height: 20px;
    background: var(--border-soft);
    margin: 0 4px;
    flex-shrink: 0;
}

/* Search input */
.lm_filter-search {
    margin-left: auto;
    position: relative;
    flex-shrink: 0;
}

.lm_filter-search input {
    padding: 8px 16px 8px 40px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-soft);
    background: var(--bg-soft);
    color: var(--text-dark);
    /* font-family: var(--font-body); */
    font-size: 13px;
    font-weight: 400;
    outline: none;
    width: 210px;
    transition: all 0.3s var(--ease-out);
}

.lm_filter-search input::placeholder {
    color: var(--text-faint);
}

.lm_filter-search input:focus {
    border-color: var(--ocean-300);
    box-shadow: 0 0 0 4px rgba(37, 114, 200, 0.10);
    width: 250px;
    background: #fff;
}

.lm_filter-search svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-faint);
    pointer-events: none;
}

.lm_results-count {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-faint);
    white-space: nowrap;
}

.lm_results-count strong {
    font-weight: 600;
    color: var(--ocean-500);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION WRAPPER
   ═══════════════════════════════════════════════════════════════ */
.lm_products-section {
    padding: 0 0 140px;
    position: relative;
}

.lm_products-section::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(20, 64, 112, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.lm_products-section .container {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION LABEL
   ═══════════════════════════════════════════════════════════════ */
.lm_section-label {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 80px;
}

.lm_section-label::before,
.lm_section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
}

.lm_section-label-text {
    /* font-family: var(--font-body); */
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ocean-400);
    padding: 7px 20px;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-pill);
    background: var(--bg-white);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   SPECIES BLOCK  ← FIXED layout
   ═══════════════════════════════════════════════════════════════ */
.lm_species-block {
    margin-bottom: 110px;
}

.lm_species-block.hidden {
    display: none;
}

/* ─── HEADER — fixed to proper left-col / right-col layout ──── */
.lm_species-header {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 52px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border-soft);
}

.lm_species-header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    flex-shrink: 0;
}

.lm_species-num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-faint);
    letter-spacing: 0.08em;
}

.lm_species-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--border-mid), transparent);
}

.lm_species-header-right {
    flex: 1;
    min-width: 0;
}

.lm_species-title {
    /* font-family: var(--font-display); */
    font-size: clamp(36px, 5.5vw, 60px);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.lm_species-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* ── count badge ── */
.lm_species-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* font-family: var(--font-body); */
    font-size: 12px;
    font-weight: 600;
    color: var(--ocean-500);
    background: var(--ocean-50);
    border: 1px solid rgba(37, 114, 200, 0.16);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
}

.lm_species-count::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--ocean-400);
    border-radius: 50%;
}

.lm_species-desc {
    /* font-family: var(--font-body); */
    font-size: 14px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.8;
    /* max-width: 620px; */
    margin-top: 10px;
    /* push below title + count row */
}

/* ═══════════════════════════════════════════════════════════════
   CARD GRID
   ═══════════════════════════════════════════════════════════════ */
.lm_cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMAL CARD
   ═══════════════════════════════════════════════════════════════ */
.lm_animal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-card);
    overflow: visible;
    /* allow spec-preview to overflow */
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--ease-out),
        box-shadow 0.4s var(--ease-out),
        border-color 0.3s;
    box-shadow: var(--shadow-sm);
    animation: lm_fadeUp 0.55s var(--ease-out) both;
}

/* clip only the visible card body, not the hover preview */
.lm_animal-card>*:not(.lm_spec-preview) {
    border-radius: inherit;
}

.lm_animal-card.hidden {
    display: none;
}

/* Top shimmer line */
.lm_animal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--ocean-300) 40%,
            var(--gold-400) 60%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.35s;
    z-index: 3;
}

.lm_animal-card:hover::before {
    opacity: 1;
}

.lm_animal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(37, 114, 200, 0.22);
}

/* ─── SHARE BUTTON ────────────────────────────────────────────── */
.lm_share-btn:hover {
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary);
    transform: scale(1);
}

.lm_animal-card:hover .lm_share-btn {
    opacity: 1;
    transform: scale(1);
}

.lm_animal-card:hover .lm_share-btn {
    opacity: 1;
    transform: scale(1);
}

.lm_share-btn:hover {
    background: #fff;
    color: var(--ocean-500);
    border-color: var(--ocean-300);
    box-shadow: var(--shadow-sm);
}

/* ─── IMAGE WRAP ──────────────────────────────────────────────── */
.lm_card-img-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: var(--bg-soft);
    flex-shrink: 0;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.lm_card-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(10, 31, 53, 0.18) 0%, transparent 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s;
}

.lm_animal-card:hover .lm_card-img-wrap::after {
    opacity: 1;
}

.lm_card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s var(--ease-out);
}

.lm_animal-card:hover .lm_card-img {
    transform: scale(1.06);
}

/* Badge */
.lm_card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    /* font-family: var(--font-body); */
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(10, 31, 53, 0.72);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ═══════════════════════════════════════════════════════════════
   SPEC HOVER PREVIEW  ← NEW
   Shows a larger product image on spec chip hover
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   SPEC HOVER PREVIEW  — FIXED
   ═══════════════════════════════════════════════════════════════ */
.lm_spec-preview {
    position: fixed;
    width: 220px;
    background: var(--bg-white);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    transition: opacity 0.22s var(--ease-out),
        transform 0.25s var(--ease-spring);
}

/* Caret points DOWN toward the chip */
.lm_spec-preview::after {
    content: '';
    position: absolute;
    bottom: -7px;
    /* hangs below the preview box */
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 7px;
    background: var(--bg-white);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    /* ▼ triangle */
    border-left: 1px solid var(--border-mid);
    border-right: 1px solid var(--border-mid);
}

.lm_spec-preview.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.lm_spec-preview-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background: var(--bg-soft);
}

.lm_spec-preview-label {
    padding: 10px 14px;
    /* font-family: var(--font-body); */
    font-size: 11px;
    font-weight: 600;
    color: var(--ocean-600);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-top: 1px solid var(--border-soft);
    background: var(--bg-soft);
}

/* ─── CARD BODY ───────────────────────────────────────────────── */
.lm_card-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.lm_card-name {
    /* font-family: var(--font-display); */
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.lm_card-short {
    /* font-family: var(--font-body); */
    font-size: 13px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── DIVIDER ─────────────────────────────────────────────────── */
.lm_card-divider {
    height: 1px;
    border: none;
    background: var(--border-soft);
    margin-bottom: 16px;
}

/* ─── META ────────────────────────────────────────────────────── */
.lm_card-meta {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 18px;
}

.lm_meta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.lm_meta-label {
    /* font-family: var(--font-body); */
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.10em;
    /* text-decoration: underline; */
    color: var(--ocean-400);
    flex-shrink: 0;
    line-height: 1.5;
}

.lm_meta-val {
    /* font-family: var(--font-body); */
    font-size: 14px;
    font-weight: 800;
    color: var(--text-body);
    /* text-transform: uppercase; */
    flex: 1;
    line-height: 1.5;
}

/* ─── CHIPS ───────────────────────────────────────────────────── */
.lm_chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
    padding-top: 4px;
}

.lm_chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    transition: transform 0.2s var(--ease-out);
    cursor: default;
}

.lm_chip:hover {
    transform: translateY(-1px);
}

/* ── spec chips — interactive, show preview on hover ── */
.lm_spec-chip {
    background: rgba(238, 244, 252, 0.9);
    color: var(--ocean-700);
    border: 1px solid rgba(37, 114, 200, 0.18);
    cursor: pointer;
    position: relative;
    transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}

.lm_spec-chip:hover {
    background: var(--ocean-100);
    color: var(--ocean-600);
    transform: translateY(-1px);
}

/* Process chip — gold */
.lm_process-chip {
    background: var(--gold-50);
    color: var(--gold-600);
    border: 1px solid rgba(197, 152, 64, 0.22);
    border-radius: 5px;
}

/* Cut chip — ocean */
.lm_cut-chip {
    background: var(--ocean-50);
    color: var(--ocean-600);
    border: 1px solid rgba(37, 114, 200, 0.18);
}

/* Slice chip */
.lm_slice-chip {
    background: rgba(253, 249, 240, 0.8);
    color: var(--gold-600);
    border: 1px solid rgba(197, 152, 64, 0.16);
}

/* Status — frozen */
.lm_status-chip-frozen {
    background: rgba(226, 240, 255, 0.9);
    color: var(--ocean-700);
    border: 1px solid rgba(37, 114, 200, 0.20);
}

/* Status — fresh */
.lm_status-chip-fresh {
    background: rgba(230, 250, 240, 0.9);
    color: #1a6e42;
    border: 1px solid rgba(26, 110, 66, 0.18);
}

/* ─── CARD FOOTER ─────────────────────────────────────────────── */
.lm_card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    border-top: 1px solid var(--border-soft);
    background: var(--bg-soft);
    margin-top: auto;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.lm_card-footer-label {
    /* font-family: var(--font-body); */
    font-size: 11px;
    font-weight: 500;
    color: var(--text-faint);
    letter-spacing: 0.04em;
}

.lm_card-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    /* font-family: var(--font-body); */
    font-size: 12px;
    font-weight: 600;
    color: var(--ocean-500);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: gap 0.2s, color 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.lm_card-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.22s var(--ease-spring);
}

.lm_card-cta:hover {
    color: var(--ocean-700);
}

.lm_card-cta:hover svg {
    transform: translateX(3px);
}

/* ─── NO RESULTS ──────────────────────────────────────────────── */
.lm_no-results {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-faint);
    /* font-family: var(--font-body); */
    font-size: 15px;
    display: none;
    grid-column: 1 / -1;
}

.lm_no-results.visible {
    display: block;
}

.lm_no-results-icon {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.lm_no-results-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ─── TOAST ───────────────────────────────────────────────────── */
.lm_toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ocean-800);
    color: #fff;
    /* font-family: var(--font-body); */
    font-size: 13px;
    font-weight: 500;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s var(--ease-out);
    pointer-events: none;
}

.lm_toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── ANIMATION ───────────────────────────────────────────────── */
@keyframes lm_fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lm_animal-card:nth-child(1) {
    animation-delay: 0.04s;
}

.lm_animal-card:nth-child(2) {
    animation-delay: 0.09s;
}

.lm_animal-card:nth-child(3) {
    animation-delay: 0.14s;
}

.lm_animal-card:nth-child(4) {
    animation-delay: 0.19s;
}

.lm_animal-card:nth-child(5) {
    animation-delay: 0.24s;
}

.lm_animal-card:nth-child(6) {
    animation-delay: 0.29s;
}

.lm_animal-card:nth-child(7) {
    animation-delay: 0.34s;
}

.lm_animal-card:nth-child(8) {
    animation-delay: 0.39s;
}

.lm_animal-card:nth-child(9) {
    animation-delay: 0.44s;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .lm_cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .lm_cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lm_species-title {
        font-size: clamp(30px, 5vw, 48px);
    }
}

@media (max-width: 900px) {
    .lm_filter-search {
        order: 10;
        margin-left: 0;
        flex: 1 1 100%;
    }

    .lm_filter-search input,
    .lm_filter-search input:focus {
        width: 100%;
    }

    .lm_filter-inner {
        row-gap: 10px;
    }
}

@media (max-width: 768px) {
    .lm_species-header {
        flex-direction: column;
        gap: 16px;
    }

    .lm_species-header-left {
        flex-direction: row;
        align-items: center;
    }

    .lm_species-line {
        width: 40px;
        height: 1px;
        background: linear-gradient(to right, var(--border-mid), transparent);
    }

    .lm_cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* on small screens, show preview below instead of above */
    .lm_spec-preview {
        bottom: auto;
        top: calc(100% + 12px);
    }

    .lm_spec-preview::after {
        bottom: auto;
        top: -7px;
        clip-path: polygon(50% 0, 0 100%, 100% 100%);
    }
}

@media (max-width: 540px) {
    .lm_cards-grid {
        grid-template-columns: 1fr;
    }

    .lm_filter-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .lm_species-block {
        margin-bottom: 72px;
    }
}