/* === Floating Menu Dropdown === */
.menu-flyout {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    background: transparent !important;
    box-shadow: none !important;
    padding: 30px;
    z-index: 1000;
    display: none;
    transition: all 0.3s ease-in-out;
}

.menu-flyout.open {
    display: block;
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* === Flyout Inner === */
/*
.menu-flyout-inner {
    padding-top: 20px; /* Add spacing at the top *//*
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.2); /* ✅ Darker blur for better contrast */
}*/

.menu-flyout-inner {
    padding-top: 20px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.2); /* ✅ Lighter and more elegant */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
}

/*
.menu-flyout-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px 20px;
    border-radius: 20px;
    max-width: 1000px;
    margin: 0 auto;
    color: white;
    position: relative;
}
*/

.menu-flyout-overlay {
    background: rgba(255, 255, 255, 0.1); /* Was rgba(0, 0, 0, 0.5) */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 20px;
    border-radius: 20px;
    max-width: 1000px;
    margin: 0 auto;
    color: white;
    position: relative;
}

/* Fancy Close Button Like .co.uk */
.close-flyout.fancy-x {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #ff4d4f;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    width: 40px;
    height: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 100;
    transition: background 0.3s ease;
}

.close-flyout.fancy-x:hover {
    background: #e04345;
}

/* === Close Button === */
.close-menu {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* === Tab Switcher === */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 25px;
  border: none;
  background-color: #eee;
  color: #333; /* Add this line */
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.tab-btn.active {
    background-color: #39B54A;
    color: white;
}

/* === Tab Content Area === */
.tab-content {
    display: none;
    background: transparent !important; /* ✅ Removes any hidden background */
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    text-align: center;
    font-size: 1.6em;
    color: #39B54A;
    margin-bottom: 30px;
    background: transparent !important;
}

/* === Grid Layout for Submenus === */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* === Cards for Each Category === */
.menu-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    /*transition: transform 0.2s;*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    /*transform: scale(1.03);*/    
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.menu-card.full img.food-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.menu-card.full {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    padding: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    max-width: 320px;
    margin: auto;
}

.menu-card.full:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.menu-card.full h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #228B22;
    margin: 8px 0;
}

.menu-card.full p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

.menu-footer {
    text-align: center;
    margin-top: 30px;
}

.back-btn {
    padding: 10px 20px;
    background: #39B54A;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.menu-flyout {
    max-height: 90vh;
    overflow-y: auto;
}

/*
.menu-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #39B54A;
    border-bottom: 2px solid #39B54A;
    padding-bottom: 6px;
}*/


.menu-card h3 {
    position: relative;
    margin: 15px 0 10px;
    font-size: 1.2rem;
    color: #39B54A;
    text-align: center;
    z-index: 1;
}

.menu-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.menu-card li {
    font-size: 0.95em;
    color: #333;
    padding: 4px 0;
}

.menu-flyout-top {
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

.top-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.fancy-x {
    background: #ff4d4f;
    color: white;
    border: none;
    font-size: 18px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.fancy-x:hover {
    background: #d9363e;
}

.menu-flyout-top {
    position: relative;
}

.fancy-x {
    position: absolute;
    top: -20px;
    right: -20px;
}




.food-price::after {
    content: '';
    display: block;
    margin: 4px auto 0;
    width: 40%;
    height: 2px;
    background: linear-gradient(to right, #ff9800, #ffd54f);
    border-radius: 10px;
}

.food-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff9800; /* Elegant orange */
    margin-top: 6px;
    margin-bottom: 10px;
    text-align: center;
}

/*
.food-price {
    margin-top: 10px; /* Adjust this value until it aligns perfectly on both views *//*
    margin-bottom: 0;
}
*/

.price-badge {
    background: #fff0cc;
    color: #e67e22;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-card.full .food-desc {
    font-size: 0.95rem;
    color: #444;
    text-align: center;
    line-height: 1.4;
}

.price {
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    color: #ec932f;
    position: relative;
    z-index: 1;
    margin: 4px 0;
}

.menu-card h3::before,
.menu-card h3::after {
    content: "";
    position: absolute;
    top: 0; /* push line above the text */
    width: 40%;
    height: 2px;
    background: #39B54A;
    z-index: -1;
}

.menu-card h3::before {
    left: 0;
}

.menu-card h3::after {
    right: 0;
}

.menu-item-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #39B54A; /* match green */
    margin-top: 10px;
}

.line-decor {
    flex: 1;
    height: 2px;
    background-color: #39B54A;
    max-width: 50px;
}

.item-name {
    white-space: nowrap;
}





/* === Responsive Fix for Small Screens === */
@media (max-width: 768px) {
    .menu-flyout {
        width: 95%;
        top: 65%;
        padding: 10px;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }

    .menu-flyout-overlay {
        padding: 20px 10px;
    }

    .menu-grid.detailed {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .menu-card.full {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        padding: 16px;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        text-align: center;
    }

    .menu-card.full img.food-thumb {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .menu-card.full h3 {
        font-size: 1rem;
        color: #228B22;
        margin: 8px 0 4px;
    }

    .menu-card.full p {
        font-size: 0.9rem;
        color: #333;
        margin: 0;
    }

    .food-price {
      font-size: 1rem;
      margin-top: 16px; /* Increase from 12px */
      margin-bottom: 16px;
      display: inline-block;
    }
}

.menu-flyout .menu-heading {
    color: white;
}

.food-list img {
    width: 100px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 8px;
}

.menu-card.expanded {
    padding: 20px;
    transition: all 0.3s ease;
}

.food-detail-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
}

.food-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.food-list li {
    display: inline-block;
    margin: 10px;
    cursor: pointer;
    text-align: center;
    width: 140px;
}

.menu-card.expanded .food-list {
    margin-bottom: 15px;
}

.back-btn,
.menu-card button {
    background-color: #39B54A;
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 0.95em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-btn:hover,
.menu-card button:hover {
    background-color: #2e9440;
}

.menu-card.loading::after {
    content: 'Loading...';
    display: block;
    font-style: italic;
    text-align: center;
    padding: 20px;
    color: #555;
}









