﻿/* =========================================================
   ChapResto Restaurants Directory Final
   Portal page only: user opens restaurant page to order.
   ========================================================= */

.cr-restaurants-head span {
    display: block;
    max-width: 860px;
    margin-top: .75rem;
    color: #6f665e;
    font-size: 1.03rem;
    line-height: 1.55;
    font-weight: 650;
}

.cr-restaurants-filter {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, .9fr) minmax(140px, .75fr) minmax(140px, .75fr) auto auto auto;
    align-items: center;
    gap: .65rem;
}

    .cr-restaurants-filter input,
    .cr-restaurants-filter select {
        min-height: 48px;
    }


.cr-restaurants-directory-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.15rem !important;
    align-items: stretch;
}

.cr-restaurants-clickable-card {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .cr-restaurants-clickable-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 42px rgba(45, 30, 18, .12);
        border-color: rgba(226, 98, 34, .24);
    }

    .cr-restaurants-clickable-card .cr-rest-cover {
        height: 170px;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        background-color: #efe3d3;
    }

.cr-rest-card-action {
    margin-top: .8rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #df6424;
    font-weight: 950;
    font-size: .92rem;
}

    .cr-rest-card-action i {
        transition: transform .18s ease;
    }

.cr-restaurants-clickable-card:hover .cr-rest-card-action i {
    transform: translateX(3px);
}

@media (max-width: 1280px) {
    .cr-restaurants-directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .cr-restaurants-filter {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .cr-restaurants-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .cr-restaurants-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .cr-restaurants-filter .cr-check,
        .cr-restaurants-filter .cr-btn {
            min-height: 48px;
        }
}

@media (max-width: 640px) {
    .cr-restaurants-directory-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .cr-restaurants-filter {
        grid-template-columns: 1fr !important;
        padding: 1rem;
    }

    .cr-restaurants-clickable-card .cr-rest-cover {
        height: 210px;
    }

    .cr-section-title {
        align-items: flex-start;
    }
}

/* =========================================================
   Portal final cleanup: no oversized result count badge
   ========================================================= */
.cr-result-count {
    display: none !important;
}
