.res-toolbar {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.res-search {
    position: relative;
}

    .res-search .bi-search {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
    }

    .res-search input {
        padding-left: 38px;
        height: 46px;
        border-radius: 999px;
        border: 1px solid #e3e6ea;
        transition: box-shadow .25s ease, border-color .25s ease;
    }

        .res-search input:focus {
            border-color: #27ae60;
            box-shadow: 0 0 0 .2rem rgba(39, 174, 96, .15);
        }

.res-chip {
    border: 1px solid #e3e6ea;
    background: #fff;
    color: #495057;
    border-radius: 999px;
    padding: .35rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s ease;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

    .res-chip:hover {
        transform: translateY(-2px);
        border-color: #27ae60;
        color: #1d8348;
    }

    .res-chip.active {
        background: linear-gradient(135deg, #1d8348, #27ae60);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 8px 20px -10px rgba(39,174,96,.6);
    }

.res-grid {
    perspective: 1200px;
    row-gap: 1.25rem;
}

.res-item {
    min-width: 0;
    padding-top: .65rem;
    padding-bottom: .65rem;
    border-radius: 1.0rem;
}

.res-card {
    color: #1b2a32;
    position: relative;
    width: 100%;
    height: 215px;
    background: #fff;
    border-radius: 1.1rem;
    margin: 0;
    border: 2px solid #d2d7db;
    box-shadow: 0 10px 24px -16px rgba(15, 23, 42, .25);
    /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45); */
    transition: .4s;
    clip-path: inset(-120px 0 0 0);
    /* overflow: hidden; */
    animation: cardIn .55s ease both;
}

.res-img-con {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    transform: translateY(-28px);
    z-index: 2;
}

.res-card-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #eef7f1;
    color: #1d8348;
    border: 1px solid rgba(39,174,96,.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 3;
    box-shadow: 0 8px 16px -10px rgba(30,132,73,.5);
}

.res-img-con img,
.res-image-fallback {
    width: 100px;
    height: 80px;
    border-radius: .7rem;
    box-shadow: 0 0 24px rgba(0,0,0,.28);
    transition: .5s;
    object-fit: cover;
    display: block;
}

.res-image-fallback {
    background: linear-gradient(135deg, #16a34a, #14b8a6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.res-card:hover {
    height: 370px;
    border-width: 2px;
    border-style: solid;
    border-color: rgba(39, 174, 96, .35);
    box-shadow: 0 24px 40px -28px rgba(30,132,73,.45);
}

    .res-card:hover .res-img-con img,
    .res-card:hover .res-image-fallback {
        transform: scale(1.1);
    }

.res-card-body {
    position: absolute;
    top: 88px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem 1rem;
}

.res-badge {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .3px;
    padding: .32rem .65rem;
    border-radius: 999px;
    text-transform: uppercase;
    background: #eef7f1;
    color: #1d8348;
    border: 1px solid rgba(39,174,96,.22);
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: .65rem;
}

.res-card h5 {
    font-weight: 700;
    font-size: 1.28rem;
    line-height: 1.25;
    margin-bottom: .45rem;
    color: #1b2a32;
}

.res-card p {
    color: #5a6772;
    font-size: .9rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .85rem;
}

.res-sector {
    font-size: .78rem;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: .6rem;
}

.res-actions {
    margin-top: auto;
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

    .res-actions .btn {
        border-radius: 999px;
    }

.res-link-host {
    font-size: .78rem;
    color: #6c757d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

    .res-link-host:hover {
        color: #1d8348;
    }

.res-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    border: 2px dashed #d6dde3;
    border-radius: 1rem;
    background: #fafbfc;
}

    .res-empty i {
        font-size: 3rem;
        color: #b6c2cc;
        margin-bottom: .75rem;
        display: block;
    }

@@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.res-grid > div:nth-child(1) .res-card {
    animation-delay: .02s;
}

.res-grid > div:nth-child(2) .res-card {
    animation-delay: .06s;
}

.res-grid > div:nth-child(3) .res-card {
    animation-delay: .10s;
}

.res-grid > div:nth-child(4) .res-card {
    animation-delay: .14s;
}

.res-grid > div:nth-child(5) .res-card {
    animation-delay: .18s;
}

.res-grid > div:nth-child(6) .res-card {
    animation-delay: .22s;
}

.res-grid > div:nth-child(7) .res-card {
    animation-delay: .26s;
}

.res-grid > div:nth-child(8) .res-card {
    animation-delay: .30s;
}

.res-grid > div:nth-child(9) .res-card {
    animation-delay: .34s;
}

.res-grid > div:nth-child(10) .res-card {
    animation-delay: .38s;
}

@@media (prefers-reduced-motion: reduce) {
    .res-card {
        animation: none !important;
        transition: none !important;
    }
}

@@media (max-width: 767px) {
    .res-card:hover {
        height: 400px;
    }
}

.cg-pagination-wrap {
    margin-top: 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.cg-pagination-meta {
    font-size: .85rem;
    color: #64748b;
    font-weight: 600;
}

.cg-pagination .page-link {
    border-radius: .75rem;
    border: 1px solid rgba(148, 163, 184, .35);
    color: #0f172a;
    font-weight: 700;
    background: #fff;
    min-width: 42px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}

.cg-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
    border-color: transparent;
    color: #fff;
}

.cg-pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background: #f8fafc;
}
