:root {
    --primary:      #e8312a;
    --primary-light: rgba(232,49,42,0.1);
    --bg:           #f4f4f4;
    --card:         #ffffff;
    --border:       rgba(0,0,0,0.10);
    --shadow:       0 4px 18px rgba(0,0,0,0.06);
    --text:         #111111;
    --muted:        rgba(0,0,0,0.55);
    --radius:       16px;
    --tab-h:        54px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ─── Banner Carousel ─────────────────────────────────── */
.banner-wrap {
    position: relative;
    overflow: hidden;
    background: #000;
    max-height: 380px;
}
.banner-track {
    display: flex;
    transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.banner-track img {
    min-width: 100%;
    max-height: 380px;
    object-fit: cover;
    display: block;
}
.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    border: none;
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
    z-index: 5;
}
.banner-btn:hover { background: rgba(0,0,0,.7); }
.banner-btn.prev { left: 14px; }
.banner-btn.next { right: 14px; }
.banner-dots {
    position: absolute; bottom: 12px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px;
}
.banner-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.5); border: none; cursor: pointer; padding: 0;
    transition: background .2s, transform .2s;
}
.banner-dot.active { background: #fff; transform: scale(1.25); }

/* ─── Header text ─────────────────────────────────────── */
.header-text {
    text-align: center;
    padding: 1.1rem 1.5rem .4rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ─── Family tabs ─────────────────────────────────────── */
.tabs-bar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.tabs-inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 .75rem;
    max-width: 1060px;
    margin: 0 auto;
}
.tabs-inner::-webkit-scrollbar { display: none; }
.tab-btn {
    flex-shrink: 0;
    height: var(--tab-h);
    padding: 0 1.1rem;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 500;
    border-bottom: 2.5px solid transparent;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
    display: flex; align-items: center; gap: .45rem;
}
.tab-btn:hover  { color: var(--text); }
.tab-btn.active { color: var(--primary); font-weight: 700; border-bottom-color: var(--primary); }

/* ─── Subfamily pills ─────────────────────────────────── */
.subtabs-bar {
    position: sticky; top: var(--tab-h); z-index: 40;
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,.03);
}
.subtabs-inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding: .65rem 1.25rem;
    gap: .55rem;
    max-width: 1060px; margin: 0 auto;
}
.subtabs-inner::-webkit-scrollbar { display: none; }
.sub-btn {
    flex-shrink: 0;
    padding: .42rem .95rem;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.03);
    border-radius: 30px;
    cursor: pointer;
    color: var(--muted);
    font-size: .88rem;
    white-space: nowrap;
    transition: all .2s;
}
.sub-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

/* ─── Content wrapper ─────────────────────────────────── */
.content {
    max-width: 1060px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

/* ─── Section titles ──────────────────────────────────── */
.family-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 2rem 0 1.1rem;
    display: flex; align-items: center; gap: .5rem;
}
.family-img {
    width: 100%;
    border-radius: var(--radius);
    max-height: 180px;
    object-fit: cover;
    margin-bottom: 1.1rem;
    display: block;
}
.sub-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: .7rem;
    margin: 1.4rem 0 .9rem;
}

/* ─── Dish grid ───────────────────────────────────────── */
.dish-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

/* ─── Dish card ───────────────────────────────────────── */
.dish-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow);
    transition: transform .22s, box-shadow .22s;
    animation: fadeUp .4s ease both;
}
.dish-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.11);
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dish-photo {
    width: 120px; flex-shrink: 0;
    background: #f0f0f0;
    overflow: hidden;
}
.dish-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.dish-body {
    padding: .95rem 1.1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.dish-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .35rem;
}
.dish-name  { font-weight: 800; font-size: .97rem; }
.dish-price { font-weight: 800; color: var(--primary); white-space: nowrap; }
.dish-desc  { color: var(--muted); font-size: .87rem; line-height: 1.55; flex: 1; }
.dish-allergens {
    display: flex; flex-wrap: wrap; gap: .25rem;
    padding-top: .55rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.al-tag {
    font-size: .78rem;
    background: rgba(0,0,0,.05);
    padding: .2rem .45rem;
    border-radius: 6px;
    color: var(--muted);
    display: flex; align-items: center; gap: .25rem;
}

/* ─── Allergen legend ─────────────────────────────────── */
.legend-wrap { padding: 3rem 0 3.5rem; }
.legend-details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
}
.legend-summary {
    cursor: pointer; list-style: none;
    font-weight: 600; font-size: .9rem; color: var(--muted);
    display: flex; align-items: center; gap: .5rem;
}
.legend-summary::-webkit-details-marker { display: none; }
.legend-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: .45rem;
}
.legend-item {
    display: flex; align-items: center; gap: .45rem;
    padding: .35rem .6rem;
    background: rgba(0,0,0,.05);
    border-radius: 8px;
    font-size: .82rem; color: var(--muted);
}

.maps-wrap { margin: 2rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.maps-wrap iframe { width: 100% !important; border: none; height: 350px; display: block; }

/* ─── Footer ──────────────────────────────────────────── */
footer {
    background: #e2e2e2;
    border-top: 1px solid rgba(0,0,0,.09);
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.7;
}
footer img { max-width: 120px; margin-bottom: .8rem; display: block; margin: 0 auto .8rem; }
.footer-copy {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,.07);
    font-size: .72rem;
    color: rgba(0,0,0,.28);
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ─── Quill Fonts ─────────────────────────────────────── */
.ql-font-sans-serif{font-family:sans-serif;} .ql-font-serif{font-family:serif;} .ql-font-monospace{font-family:monospace;} .ql-font-arial{font-family:Arial,Helvetica,sans-serif;} .ql-font-georgia{font-family:Georgia,serif;} .ql-font-verdana{font-family:Verdana,Geneva,sans-serif;} .ql-font-tahoma{font-family:Tahoma,Verdana,sans-serif;}
.ql-align-center{text-align:center;} .ql-align-right{text-align:right;} .ql-align-justify{text-align:justify;}

.tabs-inner, .subtabs-inner { cursor: grab; -webkit-user-select: none; user-select: none; }
.tabs-inner.grabbing, .subtabs-inner.grabbing { cursor: grabbing; }

/* ─── Back to top ─────────────────────────────────────── */
.btn-top {
    position: fixed; bottom: 2rem; right: 1.5rem;
    width: 48px; height: 48px;
    background: var(--primary);
    color: #fff;
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: all .3s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.btn-top.show { opacity: 1; visibility: visible; }
.btn-top:hover { transform: translateY(-5px); filter: brightness(1.1); }
