#cards-container {
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 90vw;
    margin: 0 auto;
    text-align: center;
}

.card {
    width: 270px;
    height: 320px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.image {
    position: relative;
}

.image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    transition: filter 0.3s ease;
}

.card:hover .image img {
    filter: brightness(0.95);
}

.star-rating {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 12px;
    color: #FFD700;
    font-size: 14px;
    display: flex;
    gap: 2px;
}

.rest,
.food {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    margin-top: 8px;
}

.rest_name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.rating {
    font-size: 14px;
    color: white;
    background-color: #43a047;
    border-radius: 12px;
    padding: 4px 8px;
    font-weight: 500;
}

.food {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.price {
    color: #444;
    font-size: 14px;
    font-weight: bold;
}

.location {
    padding: 8px 16px 16px;
    text-align: center;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}




.sorting {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 25px;
    background-color: rgb(187, 187, 187);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sort-btn {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 25px;
    background-color: #8cecc1;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sort-btn:hover {
    background-color: #40dd97;
}

.sort-navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

#searchInput {
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 220px;
}


body {
    font-family: Arial, sans-serif;
    position: relative;
}

.filter-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: #f7f7f7;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.filter-btn:hover {
    background: #f0f0f0;
}

.active-btn {
    border: 2px solid hotpink;
    background: #fff0fa;
}
