/* Import Urbanist font for modern badges */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@600;700&display=swap');

/* =========================
   Menu48 Container & Layout
========================= */
.menu48-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 24px 12px 36px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    font-family: 'Segoe UI', Arial, sans-serif;
  }
  
  /* =========================
     Title & Search Bar
  ========================= */
  .menu48-title {
    text-align: center;
    font-size: 2.2em;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
    position: relative;
  }
  
  .menu48-title-underline {
    display: block;
    margin: 12px auto 0;
    width: 60px;
    height: 5px;
    background: linear-gradient(90deg, #7a2c14 0%, #222 100%);
    border-radius: 3px;
    box-shadow: 0 1px 8px rgba(34, 34, 34, 0.09);
  }
  
  .menu48-searchbar {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 22px;
    display: block;
    padding: 10px 14px;
    font-size: 1.1em;
    border: 1px solid #7a7a7a;
    border-radius: 8px;
    background: #f9f9f9;
    color: #222;
  }
  
  /* =========================
     Result List & Items
  ========================= */
  .menu48-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .menu48-item {
    border-bottom: 1px solid #ddd;
    padding: 14px 0 8px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    transition: background 0.15s;
  }
  
  .menu48-main {
    flex: 1 1 auto;
    min-width: 0;
  }
  
  /* =========================
     Item Content
  ========================= */
  .menu48-titleitem {
    color: #222;
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 2px;
    display: block;
  }
  
  .menu48-desc {
    font-size: 0.97em;
    color: #555;
    font-style: italic;
    margin-bottom: 4px;
    display: block;
  }
  
  .menu48-secondary-note {
    display: block;
    font-size: 0.89em;
    color: #888;
    font-style: italic;
    margin: 2px 0 5px;
    padding-right: 7px;
  }
  
  /* =========================
     Item Details
  ========================= */
  .menu48-details {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 2px;
    font-size: 0.98em;
    color: #555;
    align-items: center;
  }
  
  .menu48-restaurant-link {
    color: #7a2c14;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
  }
  
  .menu48-restaurant-link:hover {
    color: #222;
  }
  
  .menu48-city,
  .menu48-cuisine {
    color: #7a7a7a;
  }
  
  .menu48-cuisine {
    font-style: italic;
  }
  
  .menu48-price {
    color: #7a2c14;
    font-weight: 700;
  }
  
  .menu48-dish-type {
    font-size: 0.85em;
    color: #aaa;
    font-style: italic;
    margin-left: 4px;
    letter-spacing: 0.2px;
  }
  
  .menu48-distance {
    display: block;
    font-size: 0.93em;
    color: #555;
    margin-top: 2px;
    margin-left: 2px;
  }
  
  /* =========================
     Phone & Directions
  ========================= */
  .menu48-phone-link {
    color: #222;
    font-size: 0.97em;
    font-weight: 600;
    text-decoration: underline;
    margin-top: 2px;
    display: inline-block;
    transition: color 0.2s;
  }
  
  .menu48-phone-link:hover {
    color: #7a2c14;
  }
  
  .menu48-directions {
    flex: none;
    margin-left: 10px;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .menu48-directions-link {
    color: #7a2c14;
    font-size: 0.97em;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
    transition: color 0.2s;
  }
  
  .menu48-directions-link:hover {
    color: #222;
  }

  /* Admin pagination styling */
  .menu48-admin-pagination {
    margin-top: 10px;
  }
  .menu48-admin-pagination a {
    margin-right: 4px;
    padding: 2px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #0073aa;
  }
  .menu48-admin-pagination a:hover {
    background: #f0f0f0;
    border-color: #ccd0d4;
    color: #0073aa;
  }
  .menu48-admin-pagination span {
    margin-right: 4px;
    padding: 2px 6px;
    border: 1px solid #0073aa;
    border-radius: 3px;
    background: #0073aa;
    color: #fff;
    font-weight: bold;
  }
  
  /* =========================
     Kids Menu Bar
  ========================= */
  .menu48-bluebar {
    /* Removed: no longer used */
  }
  
  /* =========================
     Dietary Flags - Handwritten Style
  ========================= */
  .menu48-flags {
    margin-top: 5px;
    margin-bottom: 2px;
  }
  
  .menu48-flag {
    font-family: 'Urbanist', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    user-select: none;
    white-space: nowrap;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    /* subtle text shadow for depth */
    text-shadow: 0 2px 6px rgba(255,255,255,0.8), 0 1px 0 rgba(0,0,0,0.3);
  }

  /* Lactose Free - Purple theme */
  .menu48-flag-lactosefree { 
    color: #8B5CF6; 
    text-shadow: 0 2px 6px #E9D5FF, 0 1px 0 #6D28D9;
  }
  
  /* Organic - Green theme */
  .menu48-flag-organic { 
    color: #349650; 
    text-shadow: 0 2px 6px #D4F0D8, 0 1px 0 #2A6A2C;
  }
  
  /* Gluten Free - Gold theme */
  .menu48-flag-glutenfree { 
    color: #D97706; 
    text-shadow: 0 2px 6px #FEF3C7, 0 1px 0 #B45309;
  }
  
  /* Dairy Free - Pink theme */
  .menu48-flag-dairyfree { 
    color: #EC4899; 
    text-shadow: 0 2px 6px #FCE7F3, 0 1px 0 #BE185D;
  }
  
  /* Vegan - Dark Green theme */
  .menu48-flag-vegan { 
    color: #059669; 
    text-shadow: 0 2px 6px #D1FAE5, 0 1px 0 #047857;
  }
  
  /* Housemade (deprecated) - Orange theme */
  .menu48-flag-housemade { 
    color: #EA580C; 
    text-shadow: 0 2px 6px #FED7AA, 0 1px 0 #C2410C;
  }

  /* Homemade - orange theme (replaces Housemade) */
  .menu48-flag-homemade { 
    color: #EA580C;
    text-shadow: 0 2px 6px #FED7AA, 0 1px 0 #C2410C;
  }
  
  /* Local Farm - Teal theme */
  .menu48-flag-localfarm { 
    color: #0D9488; 
    text-shadow: 0 2px 6px #CCFBF1, 0 1px 0 #0F766E;
  }
  
  /* Food Truck - Purplish theme */
  .menu48-flag-foodtruck { 
    color: #7C3AED; /* Deep purple */
    text-shadow: 0 2px 6px #DDD6FE, 0 1px 0 #5B21B6;
  }

  /* Food Stand - same colour as Food Truck */
  .menu48-flag-foodstand { 
    color: #7C3AED;
    text-shadow: 0 2px 6px #DDD6FE, 0 1px 0 #5B21B6;
  }

  /* Top48 - Bronze theme */
  .menu48-flag-top48 {
    color: #CD7F32; /* Bronze */
    text-shadow: 0 2px 6px #FDE2B3, 0 1px 0 #B87333;
  }

  /* Food Challenge - Teal/Bluish theme */
  .menu48-flag-foodchallenge {
    color: #0ea5e9;
    text-shadow: 0 2px 6px #BAE6FD, 0 1px 0 #0284c7;
  }

  /* Kids Menu - Blue theme */
  .menu48-flag-kids {
    color: #1e40af; /* Deep blue */
    text-shadow: 0 2px 6px #DBEAFE, 0 1px 0 #1e3a8a;
  }

  .menu48-flags-right {
    display: inline-block;
    margin-left: 8px;
  }
  
  /* =========================
     Pagination
  ========================= */
  .menu48-pagination {
    display: flex;
    justify-content: center;
    margin-top: 26px;
    gap: 4px;
    flex-wrap: wrap;
  }
  
  .menu48-pagination button {
    background: #fff;
    border: 1px solid #7a7a7a;
    color: #7a2c14;
    font-weight: 600;
    font-size: 1em;
    border-radius: 5px;
    padding: 5px 13px;
    margin: 0 2px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  
  .menu48-pagination button.active,
  .menu48-pagination button:hover {
    background: #7a2c14;
    color: #fff;
    border-color: #7a2c14;
  }
  
  /* =========================
     No Results Message
  ========================= */
  .menu48-noresults {
    text-align: center;
    color: #7a7a7a;
    font-size: 1.1em;
    margin-top: 30px;
  }
  
  /* =========================
     Responsive Design
  ========================= */
  @media (max-width: 600px) {
    .menu48-item {
      flex-direction: column;
      gap: 5px;
    }
  
    .menu48-details {
      flex-direction: column;
      gap: 2px;
      align-items: flex-start;
    }
  
    .menu48-titleitem {
      font-size: 1em;
    }
  
    .menu48-directions {
      margin-left: 0;
    }
  
    .menu48-secondary-note {
      font-size: 0.87em;
    }
    
    .menu48-flag {
      font-size: 0.85rem;
    }
  }
  