.wn-food-map,
.wn-food-guide {
    --wnfm-green: #5aa043;
    --wnfm-deep: #15372d;
    --wnfm-mint: #ddf8ee;
    --wnfm-sand: #f8f2e8;
    --wnfm-line: rgba(21, 55, 45, 0.12);
    --wnfm-muted: #64736d;
    color: #10241f;
    font-family: inherit;
}

.wn-food-map[dir="rtl"],
.wn-food-guide[dir="rtl"] {
    font-family: "Cairo", inherit;
}

.wn-food-map-hero,
.wn-food-guide-hero {
    display: grid;
    gap: 1rem;
    margin: 0 auto 1rem;
    padding: clamp(1.2rem, 4vw, 2.4rem);
    max-width: 1180px;
    border: 1px solid var(--wnfm-line);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(221, 248, 238, 0.94), rgba(248, 242, 232, 0.92)),
        radial-gradient(circle at 10% 20%, rgba(90, 160, 67, 0.18), transparent 30%);
    box-shadow: 0 18px 50px rgba(21, 55, 45, 0.08);
}

.wn-food-map-kicker {
    margin: 0 0 .35rem;
    color: var(--wnfm-green);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: 0;
}

.wn-food-map h1,
.wn-food-guide h1 {
    margin: 0;
    max-width: 760px;
    color: var(--wnfm-deep);
    font-size: clamp(2rem, 6vw, 4.4rem);
    line-height: 1;
}

.wn-food-map p,
.wn-food-guide p {
    color: var(--wnfm-muted);
    line-height: 1.7;
}

.wn-food-map-search {
    display: grid;
    gap: .7rem;
    align-items: end;
}

.wn-food-map-search label {
    display: grid;
    gap: .35rem;
    font-weight: 800;
}

.wn-food-map-search input,
.wn-food-map-search select {
    min-height: 52px;
    width: 100%;
    border: 1px solid var(--wnfm-line);
    border-radius: 14px;
    background: #fff;
    color: #10241f;
    font: inherit;
    padding: .75rem 1rem;
}

.wn-food-map-view-tabs,
.wn-food-guide-actions {
    display: flex;
    gap: .55rem;
    max-width: 1180px;
    margin: 0 auto 1rem;
    overflow-x: auto;
    padding: .15rem .15rem .55rem;
    scrollbar-width: thin;
}

.wn-food-map-view-tabs button,
.wn-food-guide-actions a,
.wn-food-guide-actions button,
.wn-food-guide-contribute a {
    flex: 0 0 auto;
    min-height: 46px;
    border: 1px solid var(--wnfm-line);
    border-radius: 14px;
    background: #fff;
    color: var(--wnfm-deep);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: .75rem 1rem;
    text-decoration: none;
}

.wn-food-map-view-tabs button.is-active,
.wn-food-guide-actions a:first-child,
.wn-food-guide-contribute a {
    background: var(--wnfm-green);
    border-color: var(--wnfm-green);
    color: #fff;
}

.wn-food-map-layout {
    max-width: 1180px;
    margin: 0 auto;
}

.wn-food-map-grid,
.wn-food-map-list,
.wn-food-map-regions,
.wn-food-map-dishes {
    display: none;
}

.wn-food-map-grid.is-active,
.wn-food-map-list.is-active,
.wn-food-map-regions.is-active,
.wn-food-map-dishes.is-active {
    display: grid;
}

.wn-food-map-grid {
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    gap: .75rem;
}

.wn-food-map-list {
    gap: .8rem;
}

.wn-food-map-regions {
    gap: 1rem;
}

.wn-food-region-section {
    border: 1px solid var(--wnfm-line);
    border-radius: 18px;
    background: #fff;
    padding: 1rem;
}

.wn-food-region-section h2 {
    margin: 0 0 .8rem;
    color: var(--wnfm-deep);
}

.wn-food-region-section > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .7rem;
}

.wn-food-wilaya-card {
    display: grid;
    gap: .65rem;
    min-height: 172px;
    border: 1px solid var(--wnfm-line);
    border-radius: 18px;
    background: #fff;
    padding: .85rem;
    box-shadow: 0 10px 24px rgba(21, 55, 45, 0.06);
}

.wn-food-wilaya-card.is-wide {
    min-height: 0;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.wn-food-wilaya-card.is-compact {
    min-height: 132px;
}

.wn-food-wilaya-card button {
    display: grid;
    gap: .3rem;
    text-align: start;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.wn-food-wilaya-card strong {
    color: var(--wnfm-deep);
    font-size: 1.05rem;
    line-height: 1.25;
}

.wn-food-wilaya-card small {
    color: var(--wnfm-muted);
    line-height: 1.35;
}

.wn-food-wilaya-code {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--wnfm-mint);
    color: #067b5a;
    font-weight: 900;
}

.wn-food-wilaya-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-self: end;
}

.wn-food-wilaya-stats span,
.wn-food-guide-stats span,
.wn-food-guide-dish-card span {
    border-radius: 999px;
    background: #eef5f1;
    color: #4f625b;
    font-size: .82rem;
    font-weight: 800;
    padding: .35rem .58rem;
}

.wn-food-guide-link {
    color: var(--wnfm-green);
    font-weight: 900;
    text-decoration: none;
}

.wn-food-map-sheet {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1000;
    max-height: 78vh;
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    border: 1px solid var(--wnfm-line);
    background: #fff;
    box-shadow: 0 -18px 60px rgba(21, 55, 45, 0.22);
    padding: 1rem;
    transform: translateY(105%);
    transition: transform .22s ease;
}

.wn-food-map-sheet.is-open {
    transform: translateY(0);
}

.wn-food-map-sheet > button {
    float: inline-end;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #eef5f1;
    color: var(--wnfm-deep);
    font-size: 1.5rem;
    line-height: 1;
}

.wn-food-map-panel {
    display: grid;
    gap: .8rem;
    padding-block-start: .4rem;
}

.wn-food-map-panel h2 {
    margin: 0;
    color: var(--wnfm-deep);
}

.wn-food-map-panel-actions {
    display: grid;
    gap: .55rem;
}

.wn-food-map-panel-actions a {
    min-height: 48px;
    border-radius: 14px;
    background: var(--wnfm-green);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    text-decoration: none;
}

.wn-food-dish-chip-grid,
.wn-food-guide-dish-grid,
.wn-food-guide-restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .85rem;
}

.wn-food-dish-chip,
.wn-food-guide-dish-card {
    display: grid;
    gap: .6rem;
    border: 1px solid var(--wnfm-line);
    border-radius: 18px;
    background: #fff;
    color: var(--wnfm-deep);
    overflow: hidden;
    padding: .75rem;
    text-decoration: none;
}

.wn-food-dish-chip img,
.wn-food-guide-dish-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.wn-food-dish-chip span,
.wn-food-guide-dish-card strong {
    font-weight: 900;
}

.wn-food-guide {
    max-width: 1180px;
    margin: 0 auto;
}

.wn-food-guide-hero {
    margin-bottom: 1rem;
}

.wn-food-guide-stats,
.wn-food-commune-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.wn-food-guide-section {
    margin-bottom: 1rem;
    border: 1px solid var(--wnfm-line);
    border-radius: 20px;
    background: #fff;
    padding: clamp(1rem, 3vw, 1.4rem);
}

.wn-food-guide-section h2 {
    margin: 0 0 .75rem;
    color: var(--wnfm-deep);
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.wn-food-commune-chips a {
    border-radius: 999px;
    background: var(--wnfm-mint);
    color: #067b5a;
    font-weight: 900;
    padding: .55rem .8rem;
    text-decoration: none;
}

.wn-food-map-empty {
    border: 1px dashed var(--wnfm-line);
    border-radius: 18px;
    background: #fff;
    color: var(--wnfm-muted);
    padding: 1rem;
}

@media (min-width: 760px) {
    .wn-food-map-hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    }

    .wn-food-map-search {
        align-self: end;
    }

    .wn-food-map-sheet {
        inset-inline: auto 1.2rem;
        bottom: 1.2rem;
        width: min(390px, calc(100vw - 2.4rem));
        border-radius: 22px;
    }
}

@media (max-width: 520px) {
    .wn-food-map-hero,
    .wn-food-guide-hero {
        border-radius: 0;
        border-inline: 0;
    }

    .wn-food-map-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wn-food-wilaya-card {
        min-height: 154px;
        padding: .75rem;
    }

    .wn-food-wilaya-card.is-wide {
        grid-template-columns: 1fr;
    }
}
