.search-bar {
    display: flex;
    justify-content: center;
    margin: 40px auto;
    max-width: 600px;
    padding: 0 20px;
}

.search-bar input {
    flex: 1;
    height: 50px;
    padding: 0 20px;
    font-size: 1rem;
    border: 1px solid rgba(238, 102, 166, 0.3);
    border-radius: 25px 0 0 25px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 15px rgba(217, 22, 86, 0.2);
}

.search-bar button {
    width: 60px;
    height: 50px;
    border-radius: 0 25px 25px 0;
    margin-bottom: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.restaurants {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.restaurant-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    flex: 1 1 320px;
    max-width: 380px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}


.restaurant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(247, 15, 100, 0.15);
    border-color: var(--main-color);
}

.restaurant-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.restaurant-card:hover img {
    transform: scale(1.1);
}

.restaurant-info {
    padding: 25px;
    text-align: left;
}

.restaurant-info h3 {
    font-size: 1.4rem;
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--ternary-color);
    margin-bottom: 10px;
}

.restaurant-info p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.restaurant-info p i {
    color: var(--main-color);
    width: 20px;
}

.restaurant-card .rating {
    display: inline-block;
    background: var(--main-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.heading {
    text-align: center;
    font-size: 20px;
    margin-top: 15px;
    font-weight: 400;

}

.close-reserve {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    z-index: 1000;
    pointer-events: auto !important;
}

.price-tag {
    color: var(--main-color);
    font-weight: 600;
    margin: 5px 0;
}

/* Responsive Design for Dine-in Page */
@media (max-width: 768px) {
    .restaurants {
        gap: 20px;
        padding: 0 20px;
    }

    .restaurant-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .restaurant-card img {
        height: 180px;
    }

    .restaurant-info {
        padding: 20px;
    }

    .restaurant-info h3 {
        font-size: 1.2rem;
    }

    .restaurant-info p {
        font-size: 0.85rem;
    }

    .dine-in-header h2 {
        font-size: 1.5rem;
        padding: 0 20px;
    }

    .dine-in-header p {
        font-size: 0.9rem;
        padding: 0 20px;
    }

    .search-bar {
        margin: 30px 20px;
    }

    .search-bar input {
        height: 45px;
        font-size: 0.9rem;
    }

    .search-bar button {
        width: 50px;
        height: 45px;
    }

    .reserve-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }

    .reserve-form input,
    .reserve-form select,
    .reserve-form textarea {
        font-size: 0.9rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .restaurant-card img {
        height: 150px;
    }

    .restaurant-info {
        padding: 15px;
    }

    .restaurant-info h3 {
        font-size: 1.1rem;
    }

    .restaurant-info p {
        font-size: 0.8rem;
    }

    .restaurant-card .rating {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .btn-reserve-trigger {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .close-reserve {
        font-size: 24px;
        right: 15px;
        top: 10px;
    }

    .reserve-modal-content {
        padding: 15px;
    }

    .reserve-modal-content h2 {
        font-size: 1.3rem;
    }
}
