/* =========================================================================
   ZanteLocals Menu — Shared "Modern Dark Premium" menu design.
   Used by: restaurants list slide panel + restaurant detail menu modal.
   Class prefix: .zmenu-* (does not collide with legacy .menu-*).
   ========================================================================= */

/* ------- Tabs strip ------- */
.zmenu-tabs-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(20,22,26,0.96) 0%, rgba(17,19,23,0.92) 100%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.55rem 0;
}
.zmenu-tabs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.2rem 1rem;
    scroll-behavior: smooth;
    flex: 1;
    cursor: grab;
    user-select: none;
}
.zmenu-tabs.grabbing { cursor: grabbing; }
.zmenu-tabs::-webkit-scrollbar { display: none; }
.zmenu-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.55rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.65);
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.2;
    transition: background 0.22s, color 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.zmenu-tab:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.92);
    border-color: rgba(255,255,255,0.14);
}
.zmenu-tab.active {
    background: linear-gradient(135deg, rgba(45,139,95,0.88) 0%, rgba(30,110,75,0.92) 100%);
    color: #fff;
    border-color: rgba(106,211,156,0.42);
    box-shadow: 0 4px 16px rgba(45,139,95,0.32), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.zmenu-tab-emoji {
    font-size: 1rem;
    line-height: 1;
    transform: translateY(-0.5px);
}
.zmenu-tabs-arrow {
    flex-shrink: 0;
    width: 32px; height: 40px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.18s, background 0.18s;
}
.zmenu-tabs-arrow.visible { display: flex; }
.zmenu-tabs-arrow:hover { color: #fff; background: rgba(255,255,255,0.06); }
.zmenu-tabs-arrow svg { width: 14px; height: 14px; }

/* ------- Body ------- */
.zmenu-body {
    padding: 1.25rem 0.6rem 2rem;
    animation: zmenuFadeIn 0.32s ease-out both;
}
@keyframes zmenuFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Section header */
.zmenu-section-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0 1rem 0.85rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.zmenu-section-emoji {
    font-size: 1.55rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}
.zmenu-section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
    line-height: 1.1;
    flex: 1;
    min-width: 0;
}
.zmenu-section-count {
    font-family: 'Poppins', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(106,211,156,0.88);
    background: rgba(45,139,95,0.12);
    border: 1px solid rgba(45,139,95,0.22);
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    white-space: nowrap;
}

/* Items */
.zmenu-items { list-style: none; margin: 0; padding: 0.35rem 0 0; }
.zmenu-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.78rem 1rem;
    border-radius: 10px;
    border-left: 2px solid transparent;
    transition: background 0.22s, border-left-color 0.22s, transform 0.22s;
    opacity: 0;
    animation: zmenuItemIn 0.38s cubic-bezier(.4,0,.2,1) forwards;
}
.zmenu-item:nth-child(1)  { animation-delay: 0.03s; }
.zmenu-item:nth-child(2)  { animation-delay: 0.06s; }
.zmenu-item:nth-child(3)  { animation-delay: 0.09s; }
.zmenu-item:nth-child(4)  { animation-delay: 0.12s; }
.zmenu-item:nth-child(5)  { animation-delay: 0.15s; }
.zmenu-item:nth-child(6)  { animation-delay: 0.18s; }
.zmenu-item:nth-child(7)  { animation-delay: 0.21s; }
.zmenu-item:nth-child(8)  { animation-delay: 0.24s; }
.zmenu-item:nth-child(9)  { animation-delay: 0.27s; }
.zmenu-item:nth-child(n+10) { animation-delay: 0.30s; }
@keyframes zmenuItemIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.zmenu-item:hover {
    background: rgba(255,255,255,0.04);
    border-left-color: rgba(106,211,156,0.6);
    transform: translateX(2px);
}
.zmenu-item-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(106,211,156,0.55);
    flex-shrink: 0;
    margin-top: 0.58rem;
    box-shadow: 0 0 0 3px rgba(45,139,95,0.1);
}
.zmenu-item-text { flex: 1; min-width: 0; }
.zmenu-item-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.94);
    line-height: 1.35;
    letter-spacing: 0.005em;
    display: inline;
}
.zmenu-item-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.55;
    margin-top: 0.22rem;
}
.zmenu-item-tags {
    display: inline-flex;
    gap: 0.32rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}
.zmenu-tag {
    font-family: 'Poppins', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.16rem 0.46rem;
    border-radius: 100px;
    border: 1px solid transparent;
    line-height: 1.3;
    vertical-align: middle;
    display: inline-block;
}
.zmenu-tag.v, .zmenu-tag.veg, .zmenu-tag.vg {
    color: #6ad39c;
    background: rgba(45,139,95,0.14);
    border-color: rgba(45,139,95,0.32);
}
.zmenu-tag.gf {
    color: #e8c66a;
    background: rgba(212,175,55,0.12);
    border-color: rgba(212,175,55,0.32);
}
.zmenu-tag.n {
    color: #d4976a;
    background: rgba(212,151,106,0.12);
    border-color: rgba(212,151,106,0.32);
}
.zmenu-tag.sf, .zmenu-tag.s {
    color: #7db8ff;
    background: rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.32);
}

/* Subsection (nested under a section, e.g. sauce/protein variants) */
.zmenu-subsection { margin-top: 0.6rem; }
.zmenu-subsection-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(106,211,156,0.82);
    padding: 0.85rem 1rem 0.4rem;
}
.zmenu-subsection-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(106,211,156,0.22), transparent);
}

/* Empty / no-menu state */
.zmenu-empty {
    text-align: center;
    padding: 3.5rem 1.25rem 2rem;
    color: rgba(255,255,255,0.45);
    font-family: 'Poppins', sans-serif;
}
.zmenu-empty-emoji {
    font-size: 2.6rem;
    margin-bottom: 0.85rem;
    filter: grayscale(0.3) opacity(0.8);
}
.zmenu-empty-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: rgba(255,255,255,0.72);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}
.zmenu-empty-sub {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.42);
    line-height: 1.55;
}

/* Variant: when the menu lives inside a modal (listing page) — pin tabs to top */
.zmenu-root { display: flex; flex-direction: column; min-height: 0; }
.zmenu-root > .zmenu-tabs-wrap { flex-shrink: 0; }
.zmenu-root > .zmenu-body-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Variant: when the menu lives inside the restaurants-list slide panel
   (which already has its own 1.5rem/1.6rem padding, so zero horizontal zmenu padding) */
.menu-panel-zmenu .zmenu-body { padding: 1rem 0 2.5rem; }
.menu-panel-zmenu .zmenu-section-head { padding: 0 0.25rem 0.85rem; }
.menu-panel-zmenu .zmenu-item { padding: 0.72rem 0.5rem; }
.menu-panel-zmenu .zmenu-subsection-label { padding: 0.85rem 0.25rem 0.4rem; }
