/* General Styling */
:root {
    --primary: #FFA500;
    --secondary: #000000;
    --accent: #FFFFFF;
    --subtle-accent: #4682B4;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: 'Inter', sans-serif; /* A cleaner, more modern font */
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    color: var(--secondary);
}

/* Header & Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary);
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo img {
    height: 60px;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar ul li a {
    color: var(--primary);
    text-decoration: none;
    padding: 1rem;
    display: block;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: var(--accent);
}

/* Hero Section (Home Page) */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://merebbarandrestaurant.com/img/hero-background.jpeg') no-repeat center center/cover;
    color: var(--accent);
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.btn {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #e69500;
}


/* --- NEW & IMPROVED MENU PAGE STYLES --- */

/* Filter Section */
#menu-filters {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

#menu-filters .filter-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px; /* Pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none; /* Prevents text selection on click */
}

#menu-filters .filter-label:hover {
    background-color: #f0f0f0;
}

/* Hide the actual checkbox */
#menu-filters input[type="checkbox"] {
    display: none;
}

/* Style the label when the checkbox is checked */
#menu-filters input[type="checkbox"]:checked + .filter-label {
    background-color: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    font-weight: bold;
}

/* Menu Sections & Items */
.menu-section h2 {
    font-size: 1.75rem;
    color: var(--secondary);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.menu-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.menu-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0; /* Prevents image from shrinking */
}

.menu-item-content {
    flex-grow: 1; /* Allows content to fill space */
    display: flex;
    flex-direction: column;
}

/* --- THIS IS THE FIX FOR PRICE ALIGNMENT --- */
.menu-item-header {
    display: flex;
    justify-content: space-between; /* Pushes items to opposite ends */
    align-items: flex-start; /* Aligns items to the top */
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.menu-item-header h3 {
    margin-top: 0;
    flex-grow: 1; /* Title takes up available space, pushing price to the right */
}

.menu-item-price {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary);
    white-space: nowrap; /* Prevents price from wrapping */
    padding-left: 1rem;
}
/* --- END OF FIX --- */

.dietary-icons {
    margin-left: 0.75rem;
}

.dietary-icons i {
    color: var(--subtle-accent);
    margin-left: 0.25rem;
    font-size: 0.9em;
}

.menu-item-content p {
    margin-top: 0;
    flex-grow: 1; /* Pushes special info to the bottom */
}

.special-info {
    font-style: italic;
    color: var(--primary);
    font-weight: bold;
    margin-top: auto; /* Pushes to the bottom of the content area */
}


/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--accent);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.footer-content a {
    color: var(--primary);
    text-decoration: none;
}
.social-links a {
    margin: 0 0.5rem;
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .menu-item {
        flex-direction: column;
    }
    .menu-item img {
        width: 100%;
        height: 200px; /* Taller height on mobile */
    }
}
