﻿/* =========================================================
   SEARCH COMPOUND
   Mục tiêu: định dạng giống trang tra cứu loài
   Chỉ chỉnh giao diện, không đụng logic
   ========================================================= */

/* ===== ROOT ===== */
.seaweed-search-page.compound-page {
    background: #f4f7f6;
    min-height: 100vh;
}

    /* Inherit the same section rhythm as Home/Search. */
    .seaweed-search-page.compound-page .search-main-section,
    .seaweed-search-page.compound-page .search-result-wrapper,
    .seaweed-search-page.compound-page .result-panel,
    .seaweed-search-page.compound-page .filter-panel {
        background-color: #fff;
    }

    .seaweed-search-page.compound-page .search-hero {
        background: linear-gradient(135deg, #0f5d51 0%, #2d998e 100%);
    }

    .seaweed-search-page.compound-page .search-hero__overlay {
        display: none;
    }

    .seaweed-search-page.compound-page .search-hero__text {
        color: #fff;
        font-size: 14px;
        line-height: 1.6;
    }

    .seaweed-search-page.compound-page .compound-search-topcard,
    .seaweed-search-page.compound-page .search-box-card {
        background: rgba(255,255,255,.98);
        border: 1px solid #d9e4df;
        box-shadow: none;
    }


    .seaweed-search-page.compound-page .filter-panel,
    .seaweed-search-page.compound-page .result-panel {
        background: #fff;
        border: 1px solid #dde7e2;
        border-radius: 28px;
        box-shadow: none;
    }

    .seaweed-search-page.compound-page .filter-panel {
        padding: 18px;
    }

    .seaweed-search-page.compound-page .result-panel {
        padding: 22px;
    }

    /* ===== HEADER PANEL ===== */
    .seaweed-search-page.compound-page .filter-panel__header,
    .seaweed-search-page.compound-page .result-toolbar {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 18px;
    }

        .seaweed-search-page.compound-page .filter-panel__header h4,
        .seaweed-search-page.compound-page .result-toolbar__left h4 {
            margin: 0;
            color: #123c31;
            font-size: 20px;
            font-weight: 800;
        }

        .seaweed-search-page.compound-page .filter-panel__header p,
        .seaweed-search-page.compound-page .result-toolbar__left p {
            margin: 8px 0 0 0;
            font-size: 14px;
            color: #70857c;
        }

    .seaweed-search-page.compound-page .btn-reset-filter {
        border-radius: 18px;
        border: 1px solid #d7e1dc;
        background: #fff;
        color: #163f33;
        font-weight: 700;
        padding: 14px 22px;
        min-width: 140px;
    }

        .seaweed-search-page.compound-page .btn-reset-filter:hover {
            background: #f2f7f5;
            color: #0f6d5a;
        }

    /* ===== SORT / VIEW ===== */
    .seaweed-search-page.compound-page .toolbar-controls {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-top: 10px;
    }

    .seaweed-search-page.compound-page .result-sort {
        min-width: 260px;
        height: 54px;
        border-radius: 18px;
        border: 1px solid #d7e1dc;
        box-shadow: none;
        font-size: 15px;
        padding-left: 16px;
    }

        .seaweed-search-page.compound-page .result-sort:focus {
            border-color: #8fb8aa;
            box-shadow: 0 0 0 4px rgba(15, 109, 90, 0.08);
        }

    .seaweed-search-page.compound-page .view-switch {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #f3f7f5;
        border: 1px solid #dde8e3;
        border-radius: 18px;
        padding: 6px;
    }

        .seaweed-search-page.compound-page .view-switch button {
            width: 46px;
            height: 46px;
            border: 0;
            border-radius: 14px;
            background: transparent;
            color: #184437;
            transition: all .15s ease;
        }

            .seaweed-search-page.compound-page .view-switch button.active {
                background: #0f6d5a;
                color: #fff;
            }

            .seaweed-search-page.compound-page .view-switch button:hover:not(.active) {
                background: #e6f0ec;
            }

    /* ===== FILTER LEFT ===== */
    .seaweed-search-page.compound-page .compound-filter-panel .compound-filter-block,
    .seaweed-search-page.compound-page .compound-filter-card {
        border: 1px solid #dfe9e4;
        border-radius: 24px;
        background: #fbfcfc;
        padding: 16px;
        margin-bottom: 18px;
    }

    .seaweed-search-page.compound-page .compound-filter-label {
        display: block;
        color: #163d32;
        font-size: 17px;
        font-weight: 800;
        margin-bottom: 12px;
    }

    .seaweed-search-page.compound-page .compound-search-input-wrap {
        position: relative;
        margin-bottom: 14px;
    }

        .seaweed-search-page.compound-page .compound-search-input-wrap i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #6a8076;
            font-size: 18px;
            z-index: 2;
        }

    .seaweed-search-page.compound-page .compound-search-input {
        height: 58px;
        width: 100%;
        border-radius: 18px;
        border: 1px solid #d4dfda;
        background: #fff;
        padding-left: 42px;
        padding-right: 14px;
        font-size: 15px;
        box-shadow: none;
    }

        .seaweed-search-page.compound-page .compound-search-input:focus {
            border-color: #8fb8aa;
            box-shadow: 0 0 0 4px rgba(15, 109, 90, 0.08);
            outline: none;
        }

    .seaweed-search-page.compound-page .compound-list-box {
        border: 1px solid #dbe6e0;
        border-radius: 18px;
        background: #fff;
        max-height: 260px;
        overflow-y: auto;
        padding: 8px;
    }

    .seaweed-search-page.compound-page .compound-list-box--compound {
        max-height: 320px;
    }

    .seaweed-search-page.compound-page .compound-list-item {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 14px;
        border: 0;
        border-radius: 14px;
        background: transparent;
        text-align: left;
        cursor: pointer;
        transition: all .15s ease;
        margin-bottom: 6px;
    }

        .seaweed-search-page.compound-page .compound-list-item:last-child {
            margin-bottom: 0;
        }

        .seaweed-search-page.compound-page .compound-list-item:hover {
            background: #f0f7f4;
        }

        .seaweed-search-page.compound-page .compound-list-item.active {
            background: #0f6d5a;
            color: #fff;
        }

    .seaweed-search-page.compound-page .compound-list-item__name {
        font-size: 14px;
        font-weight: 700;
        line-height: 1.4;
        color: inherit;
    }

    .seaweed-search-page.compound-page .compound-list-item__count {
        min-width: 40px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: #eaf1ee;
        color: #20483d;
        font-size: 13px;
        font-weight: 800;
        padding: 0 10px;
    }

    .seaweed-search-page.compound-page .compound-list-item.active .compound-list-item__count {
        background: rgba(255,255,255,0.18);
        color: #fff;
    }

    .seaweed-search-page.compound-page .compound-list-item__meta {
        display: block;
        margin-top: 6px;
        font-size: 12px;
        color: #6d8279;
        line-height: 1.45;
    }

    .seaweed-search-page.compound-page .compound-list-item.active .compound-list-item__meta {
        color: rgba(255,255,255,0.86);
    }

    .seaweed-search-page.compound-page .compound-list-empty {
        padding: 14px;
        font-size: 14px;
        color: #72877f;
    }

    /* ===== RESULT GRID ===== */
    .seaweed-search-page.compound-page .compound-result-grid,
    .seaweed-search-page.compound-page .species-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
        gap: 26px;
        margin-top: 8px;
    }

    /* ===== CARD ===== */
    .seaweed-search-page.compound-page .species-card,
    .seaweed-search-page.compound-page .compound-card {
        border-radius: 26px;
        border: 1px solid #dce7e2;
        background: #fff;
        overflow: hidden;
        box-shadow: none;
        transition: all .15s ease;
        height: 100%;
    }

        .seaweed-search-page.compound-page .species-card:hover,
        .seaweed-search-page.compound-page .compound-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 24px rgba(0,0,0,0.06);
        }

    .seaweed-search-page.compound-page .species-card__image,
    .seaweed-search-page.compound-page .compound-card__image {
        min-height: 260px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        position: relative;
        border-bottom: 1px solid #eef3f1;
    }

    .seaweed-search-page.compound-page .species-card-img,
    .seaweed-search-page.compound-page .compound-card__img {
        max-width: 100%;
        max-height: 220px;
        object-fit: contain;
    }

    .seaweed-search-page.compound-page .species-card__badge,
    .seaweed-search-page.compound-page .compound-card__badge {
        position: absolute;
        top: 18px;
        left: 18px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #1e9452;
        color: #fff;
        border-radius: 999px;
        padding: 10px 16px;
        font-size: 13px;
        font-weight: 800;
    }

    .seaweed-search-page.compound-page .species-card__body,
    .seaweed-search-page.compound-page .compound-card__body {
        padding: 22px;
    }

    .seaweed-search-page.compound-page .species-card__title h5,
    .seaweed-search-page.compound-page .compound-card__title {
        margin: 0 0 8px 0;
        color: #103b31;
        font-size: 20px;
        line-height: 1.35;
        font-weight: 800;
    }

        .seaweed-search-page.compound-page .species-card__title h5 a,
        .seaweed-search-page.compound-page .compound-card__title a {
            color: inherit;
            text-decoration: none;
        }

            .seaweed-search-page.compound-page .species-card__title h5 a:hover,
            .seaweed-search-page.compound-page .compound-card__title a:hover {
                color: #0f6d5a;
            }

    .seaweed-search-page.compound-page .species-card__title p,
    .seaweed-search-page.compound-page .compound-card__subtitle {
        margin: 0 0 16px 0;
        color: #71867e;
        font-size: 15px;
        line-height: 1.55;
        min-height: 42px;
    }

    .seaweed-search-page.compound-page .species-meta,
    .seaweed-search-page.compound-page .compound-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 16px;
        color: #2a4f43;
        font-size: 15px;
    }

        .seaweed-search-page.compound-page .species-meta div,
        .seaweed-search-page.compound-page .compound-meta div {
            line-height: 1.55;
        }

        .seaweed-search-page.compound-page .species-meta span,
        .seaweed-search-page.compound-page .compound-meta span {
            font-weight: 800;
            color: #173f34;
        }

    .seaweed-search-page.compound-page .species-stats,
    .seaweed-search-page.compound-page .compound-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

        .seaweed-search-page.compound-page .species-stats span,
        .seaweed-search-page.compound-page .compound-stats span {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 14px;
            border-radius: 999px;
            background: #eaf5ef;
            color: #16553a;
            font-size: 13px;
            font-weight: 800;
        }

    .seaweed-search-page.compound-page .species-tags,
    .seaweed-search-page.compound-page .compound-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
    }

        .seaweed-search-page.compound-page .species-tags span,
        .seaweed-search-page.compound-page .compound-tags span {
            display: inline-flex;
            align-items: center;
            padding: 8px 14px;
            border-radius: 999px;
            background: #eef3f8;
            color: #26475b;
            font-size: 13px;
            font-weight: 700;
        }

    .seaweed-search-page.compound-page .species-card__actions,
    .seaweed-search-page.compound-page .compound-card__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 18px;
    }

        .seaweed-search-page.compound-page .species-card__actions .btn,
        .seaweed-search-page.compound-page .compound-card__actions .btn {
            border-radius: 14px;
            padding: 11px 18px;
            font-weight: 700;
        }

    /* ===== TABLE MODE ===== */
    .seaweed-search-page.compound-page .compound-table-wrap {
        overflow-x: auto;
        margin-top: 10px;
    }

    .seaweed-search-page.compound-page .compound-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 12px;
    }

        .seaweed-search-page.compound-page .compound-table thead th {
            font-size: 14px;
            color: #174236;
            font-weight: 800;
            padding: 12px 14px;
            background: transparent;
            border-bottom: 1px solid #e3ece7;
            white-space: nowrap;
        }

        .seaweed-search-page.compound-page .compound-table tbody td {
            background: #fff;
            padding: 16px 14px;
            vertical-align: middle;
            border-top: 1px solid #e4ece8;
            border-bottom: 1px solid #e4ece8;
        }

            .seaweed-search-page.compound-page .compound-table tbody td:first-child {
                border-left: 1px solid #e4ece8;
                border-radius: 18px 0 0 18px;
            }

            .seaweed-search-page.compound-page .compound-table tbody td:last-child {
                border-right: 1px solid #e4ece8;
                border-radius: 0 18px 18px 0;
            }

    /* ===== PAGINATION ===== */
    .seaweed-search-page.compound-page .pagination-wrap {
        margin-top: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: wrap;
    }

    .seaweed-search-page.compound-page .pagination-info {
        font-size: 14px;
        color: #70857c;
    }

    .seaweed-search-page.compound-page .custom-pagination .page-link {
        border-radius: 12px;
        margin: 0 3px;
        border: 1px solid #d6e1dc;
        color: #174136;
    }

    .seaweed-search-page.compound-page .custom-pagination .page-item.active .page-link {
        background: #0f6d5a;
        border-color: #0f6d5a;
        color: #fff;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 1199.98px) {
    .seaweed-search-page.compound-page .compound-result-grid,
    .seaweed-search-page.compound-page .species-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 991.98px) {
    .seaweed-search-page.compound-page .search-box-row,
    .seaweed-search-page.compound-page .search-box-main,
    .seaweed-search-page.compound-page .result-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .seaweed-search-page.compound-page .btn-search-main,
    .seaweed-search-page.compound-page .btn-compound-search {
        width: 100%;
    }

    .seaweed-search-page.compound-page .toolbar-controls {
        justify-content: space-between;
        width: 100%;
    }

    .seaweed-search-page.compound-page .result-sort {
        min-width: 100%;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .seaweed-search-page.compound-page .search-hero__text {
        padding-left: 14px;
        padding-right: 14px;
    }

    .seaweed-search-page.compound-page .search-main-section {
        padding: 14px !important;
    }

    .seaweed-search-page.compound-page .compound-search-topcard,
    .seaweed-search-page.compound-page .search-box-card,
    .seaweed-search-page.compound-page .filter-panel,
    .seaweed-search-page.compound-page .result-panel {
        border-radius: 22px;
    }

    .seaweed-search-page.compound-page .compound-result-grid,
    .seaweed-search-page.compound-page .species-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .seaweed-search-page.compound-page .species-card__image,
    .seaweed-search-page.compound-page .compound-card__image {
        min-height: 220px;
    }
}
/* ===== RESULT TOOLBAR ===== */
.compound-result-panel {
    background: #fff;
    border: 1px solid #dfe9e3;
    border-radius: 28px;
    padding: 26px;
    margin-bottom: 24px;
}

.compound-result-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.compound-result-title {
    font-size: 22px;
    font-weight: 800;
    color: #0e473b;
    margin: 0 0 8px;
}

.compound-result-subtitle {
    font-size: 15px;
    color: #71867d;
}

.compound-result-toolbar__right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.compound-sort-select {
    min-width: 320px;
    height: 52px;
    border-radius: 18px;
    border: 1px solid #d9e5df;
    box-shadow: none;
    font-size: 15px;
    color: #334f45;
    padding-left: 18px;
    padding-right: 42px;
}

.compound-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #eef4f1;
    border: 1px solid #d9e5df;
    border-radius: 18px;
    padding: 8px;
}

.compound-view-btn {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: #42685b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all .2s ease;
}

    .compound-view-btn.active {
        background: #0f5a45;
        color: #fff;
    }

    .compound-view-btn:hover {
        background: #dfeae5;
    }

    .compound-view-btn.active:hover {
        background: #0f5a45;
    }

/* ===== TABLE VIEW ===== */
.compound-table-card {
    background: #fff;
    border: 1px solid #dfe9e3;
    border-radius: 24px;
    overflow: hidden;
}

.compound-table-wrap {
    overflow-x: auto;
    border-radius: 24px;
}

.compound-result-table {
    min-width: 1200px;
    margin: 0;
}

    .compound-result-table thead th {
        background: #edf3ef;
        color: #123f33;
        font-weight: 800;
        font-size: 15px;
        padding: 16px 14px;
        border-bottom: 1px solid #dfe9e3;
        white-space: nowrap;
    }

    .compound-result-table tbody td {
        padding: 14px;
        vertical-align: middle;
        border-top: 1px solid #edf2ef;
        color: #1b302a;
        font-size: 15px;
    }

.compound-table-image {
    width: 68px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #dde6e1;
    background: #fff;
}

.compound-name-link {
    text-decoration: none;
    color: #103f35;
    font-weight: 700;
}

    .compound-name-link:hover {
        color: #0b6b4d;
    }

.text-truncate-cell {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-detail-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    height: 42px;
    border-radius: 14px;
    background: #11a020;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: none;
}

    .btn-detail-green:hover {
        color: #fff;
        background: #0f8a1b;
    }

/* ===== CARD VIEW ===== */
.compound-card .species-card__image {
    min-height: 240px;
    background: #f8fbf9;
}

.compound-card .species-card-img {
    object-fit: contain;
    padding: 18px;
    background: #fff;
}

.compound-card .species-card__title h5 {
    min-height: 52px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .compound-result-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .compound-result-toolbar__right {
        width: 100%;
        justify-content: space-between;
    }

    .compound-sort-select {
        min-width: 100%;
        width: 100%;
    }
}

/* ===== Panel trái cho sát như hình 2 ===== */
.seaweed-search-page.compound-page .filter-panel {
    padding: 14px !important;
    border-radius: 22px !important;
}

.seaweed-search-page.compound-page .filter-panel__header {
    margin-bottom: 12px !important;
    gap: 10px !important;
}

    .seaweed-search-page.compound-page .filter-panel__header h4,
    .seaweed-search-page.compound-page .filter-panel__header h5 {
        font-size: 16px !important;
        margin: 0 !important;
    }

    .seaweed-search-page.compound-page .filter-panel__header p {
        font-size: 12px !important;
        margin-top: 4px !important;
    }

/* nút làm mới */
.seaweed-search-page.compound-page .btn-reset-filter {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    min-width: 118px !important;
}

/* block nhóm chất */
.seaweed-search-page.compound-page .compound-filter-panel .compound-filter-block {
    padding: 12px !important;
    margin-bottom: 14px !important;
    border-radius: 18px !important;
}

.seaweed-search-page.compound-page .compound-filter-label {
    font-size: 14px !important;
    margin-bottom: 8px !important;
}

/* ô tìm trong panel trái */
.seaweed-search-page.compound-page .compound-search-input {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 10px !important;
    padding-left: 36px !important;
    padding-right: 10px !important;
    font-size: 13px !important;
}

.seaweed-search-page.compound-page .compound-search-input-wrap {
    margin-bottom: 8px !important;
}

    .seaweed-search-page.compound-page .compound-search-input-wrap i {
        left: 12px !important;
        font-size: 14px !important;
    }

/* list bên trái giữ nguyên kiểu nhưng gọn hơn */
.seaweed-search-page.compound-page .compound-list-box {
    border-radius: 14px !important;
    max-height: 240px !important;
    padding: 6px !important;
}

.seaweed-search-page.compound-page .compound-list-item {
    padding: 9px 10px !important;
    border-radius: 10px !important;
    margin-bottom: 4px !important;
}

.seaweed-search-page.compound-page .compound-list-item__name {
    font-size: 13px !important;
}

.seaweed-search-page.compound-page .compound-list-item__count {
    min-width: 28px !important;
    height: 22px !important;
    font-size: 12px !important;
    padding: 0 7px !important;
}
/* kéo textbox tìm kiếm dài sát nút tìm kiếm */
.seaweed-search-page.compound-page .search-box-main {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.seaweed-search-page.compound-page .search-input-wrap {
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-right: 0 !important;
}

.seaweed-search-page.compound-page .search-input-lg,
.seaweed-search-page.compound-page .compound-keyword-input {
    width: 100% !important;
    max-width: none !important;
}

.seaweed-search-page.compound-page .btn-search-main,
.seaweed-search-page.compound-page .btn-compound-search {
    flex: 0 0 auto !important;
    margin-left: 0 !important;
}

.seaweed-search-page.compound-page .compound-table-image-empty {
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e5df;
    border-radius: 10px;
    background: #f4f8f6;
    color: #668177;
    font-size: 17px;
}

@media (max-width: 767.98px) {
    .seaweed-search-page.compound-page .search-box-main {
        align-items: stretch !important;
    }

    .seaweed-search-page.compound-page .search-input-wrap {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }

    .seaweed-search-page.compound-page .btn-search-main,
    .seaweed-search-page.compound-page .btn-compound-search,
    .seaweed-search-page.compound-page .btn-advanced-toggle {
        width: 100% !important;
    }
}

/* =========================================================
   LIST UI POLISH - compound search overrides
   ========================================================= */
.seaweed-search-page.compound-page .compound-result-panel {
    padding: 18px;
    border-radius: 20px;
}

.seaweed-search-page.compound-page .compound-result-toolbar--compact {
    margin-bottom: 14px;
    padding: 0;
}

@media (min-width: 768px) {
    .seaweed-search-page.compound-page .compound-result-toolbar--compact {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .seaweed-search-page.compound-page .compound-result-toolbar--compact .compound-result-toolbar__right {
        width: auto;
        margin-left: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }
}

.seaweed-search-page.compound-page .compound-result-toolbar--compact .compound-result-title {
    margin: 0 !important;
    font-size: 20px;
}

.seaweed-search-page.compound-page .compound-result-toolbar--compact .compound-sort-select {
    min-width: 260px;
    height: 42px;
    min-height: 42px;
    padding-left: 14px;
    border-radius: 12px;
    font-size: 14px;
}

.seaweed-search-page.compound-page .compound-view-toggle {
    gap: 4px;
    padding: 4px;
    border-radius: 13px;
}

.seaweed-search-page.compound-page .compound-view-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 17px;
}

.seaweed-search-page.compound-page .compound-card {
    width: 100%;
    height: 100%;
}

.seaweed-search-page.compound-page .compound-card .species-card__image {
    height: 220px;
    min-height: 220px;
}

.seaweed-search-page.compound-page .compound-card .species-card__title h5 {
    min-height: 2.7em;
}

.seaweed-search-page.compound-page .compound-card .species-meta {
    min-height: 126px;
}

.seaweed-search-page.compound-page .compound-card .species-stats {
    margin-top: 12px;
}

@media (max-width: 767.98px) {
    .seaweed-search-page.compound-page .compound-result-panel {
        padding: 14px;
    }

    .seaweed-search-page.compound-page .compound-result-toolbar--compact .compound-sort-select {
        min-width: 100%;
        width: 100%;
    }
}
