:root {
    --primary: #ff5b16;
    --primary-dark: #e94a05;
    --primary-soft: #fff1e9;
    --text: #171717;
    --text-soft: #666666;
    --text-muted: #949494;
    --surface: #ffffff;
    --background: #f7f7f7;
    --border: #e7e7e7;
    --border-strong: #d8d8d8;
    --green: #176f43;
    --red: #b53232;
    --shadow-small: 0 5px 18px rgba(20, 20, 20, 0.06);
    --shadow-medium: 0 17px 45px rgba(20, 20, 20, 0.11);
    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 24px;
    --header-height: 72px;
    --mobile-nav-height: 68px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font-family: Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.drawer-open,
body.filter-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

[hidden] {
    display: none !important;
}

.page-container {
    width: min(100% - 48px, 1440px);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    height: var(--header-height);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    height: 100%;
    align-items: center;
}

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 11px;
    color: white;
    background: var(--primary);
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(255, 91, 22, 0.25);
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.desktop-navigation {
    display: flex;
    margin-left: 65px;
    align-items: center;
    gap: 32px;
}

.desktop-navigation a {
    position: relative;
    color: #353535;
    font-size: 14px;
    font-weight: 600;
}

.desktop-navigation a:hover,
.desktop-navigation a.is-active {
    color: var(--primary);
}

.desktop-navigation a.is-active::after {
    position: absolute;
    right: 0;
    bottom: -27px;
    left: 0;
    height: 2px;
    border-radius: 5px 5px 0 0;
    background: var(--primary);
    content: "";
}

.desktop-actions {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 9px;
}

.location-control {
    display: inline-flex;
    min-height: 44px;
    padding: 0 12px;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
}

.location-control:hover {
    background: var(--background);
}

.location-control svg:first-child {
    color: var(--primary);
}

.location-control svg:last-child {
    width: 15px;
    height: 15px;
}

.cart-button,
.mobile-cart-button {
    position: relative;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.cart-button:hover {
    background: var(--background);
}

.cart-button span,
.mobile-cart-button span {
    position: absolute;
    top: 0;
    right: -1px;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid white;
    border-radius: 20px;
    color: white;
    background: var(--primary);
    font-size: 9px;
    font-weight: 800;
}

.button {
    display: inline-flex;
    min-height: 44px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.button-primary {
    color: white;
    background: var(--primary);
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    border-color: var(--border-strong);
    background: white;
}

.mobile-menu-button,
.mobile-cart-button,
.mobile-drawer,
.mobile-filter-sheet,
.mobile-bottom-navigation,
.filter-mobile-button {
    display: none;
}

.search-hero {
    padding: 25px 0 30px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(255, 91, 22, 0.10),
            transparent 28%
        ),
        linear-gradient(180deg, #fffaf7 0%, #ffffff 100%);
}

.breadcrumb {
    display: flex;
    margin-bottom: 22px;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
}

.breadcrumb svg {
    width: 13px;
    height: 13px;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.search-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
    align-items: end;
    gap: 55px;
}

.section-label {
    display: block;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.search-hero h1 {
    max-width: 640px;
    margin: 0;
    font-size: clamp(37px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -2.7px;
}

.search-hero p {
    max-width: 570px;
    margin: 15px 0 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.65;
}

.restaurant-search {
    display: grid;
    padding: 9px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) auto;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow-medium);
}

.restaurant-search label {
    display: flex;
    min-width: 0;
    min-height: 54px;
    padding: 0 14px;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    background: var(--background);
}

.restaurant-search label svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    color: var(--text-soft);
}

.restaurant-search input,
.restaurant-search select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 12px;
}

.restaurant-search button {
    min-width: 110px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.restaurant-search button:hover {
    background: var(--primary-dark);
}

.quick-categories {
    display: flex;
    margin-top: 28px;
    padding-bottom: 2px;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
}

.quick-categories::-webkit-scrollbar {
    display: none;
}

.quick-categories button {
    min-height: 38px;
    padding: 0 15px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #454545;
    background: white;
    font-size: 11px;
    font-weight: 700;
}

.quick-categories button:hover,
.quick-categories button.is-active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.restaurants-section {
    padding: 34px 0 70px;
}

.results-toolbar {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.results-toolbar h2 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -0.8px;
}

.results-toolbar p {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 12px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-control {
    display: flex;
    min-height: 44px;
    padding: 0 12px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
}

.sort-control span {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
}

.sort-control select {
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
}

.restaurants-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.filters-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: white;
    box-shadow: var(--shadow-small);
}

.filters-header {
    display: flex;
    min-height: 60px;
    padding: 0 17px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.filters-header > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.filters-header svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.filters-header h3 {
    margin: 0;
    font-size: 15px;
}

.filters-header button {
    padding: 0;
    border: 0;
    color: var(--primary);
    background: transparent;
    font-size: 10px;
    font-weight: 800;
}

.filter-group {
    padding: 18px 17px;
    border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
    border-bottom: 0;
}

.filter-group h4 {
    margin: 0 0 13px;
    font-size: 12px;
}

.check-control {
    position: relative;
    display: flex;
    min-height: 30px;
    align-items: center;
    gap: 9px;
    color: #4f4f4f;
    font-size: 11px;
    cursor: pointer;
}

.check-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check-mark {
    display: grid;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    background: white;
}

.check-control input:checked + .check-mark {
    border-color: var(--primary);
    background: var(--primary);
}

.check-control input:checked + .check-mark::after {
    width: 7px;
    height: 4px;
    border-bottom: 2px solid white;
    border-left: 2px solid white;
    content: "";
    transform: translateY(-1px) rotate(-45deg);
}

.rating-options,
.price-options {
    display: grid;
    gap: 7px;
}

.rating-options button,
.price-options button {
    display: flex;
    min-height: 36px;
    padding: 0 10px;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #4b4b4b;
    background: white;
    font-size: 10px;
    font-weight: 700;
}

.rating-options button:hover,
.rating-options button.is-active,
.price-options button:hover,
.price-options button.is-active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.rating-options svg {
    width: 13px;
    height: 13px;
    color: var(--primary);
    fill: var(--primary);
}

.price-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-options button {
    justify-content: center;
}

.radio-options {
    display: grid;
    gap: 10px;
}

.radio-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4f4f4f;
    font-size: 10px;
    cursor: pointer;
}

.radio-options input {
    accent-color: var(--primary);
}

.restaurants-content {
    min-width: 0;
}

.active-filters {
    display: none;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filters.has-filters {
    display: flex;
}

.active-filter-tag {
    display: inline-flex;
    min-height: 31px;
    padding: 0 10px;
    align-items: center;
    gap: 6px;
    border: 1px solid #ffd2bd;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 9px;
    font-weight: 800;
}

.active-filter-tag button {
    display: grid;
    width: 17px;
    height: 17px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--primary);
    background: white;
}

.active-filter-tag button svg {
    width: 11px;
    height: 11px;
}

.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.restaurant-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: white;
    box-shadow: var(--shadow-small);
    transition: 180ms ease;
}

.restaurant-card:hover {
    border-color: #d8d8d8;
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

.restaurant-image {
    position: relative;
    display: block;
    height: 190px;
    overflow: hidden;
    background: var(--background);
}

.restaurant-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease;
}

.restaurant-card:hover .restaurant-image > img {
    transform: scale(1.035);
}

.restaurant-status,
.restaurant-offer {
    position: absolute;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    min-height: 27px;
    padding: 0 9px;
    align-items: center;
    border-radius: 999px;
    color: white;
    font-size: 10px;
    font-weight: 800;
}

.restaurant-status {
    top: 12px;
}

.restaurant-status.is-open {
    background: rgba(23, 111, 67, 0.95);
}

.restaurant-status.is-closed {
    background: rgba(74, 74, 74, 0.94);
}

.restaurant-offer {
    bottom: 11px;
    background: rgba(255, 91, 22, 0.96);
}

.favourite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: grid;
    width: 37px;
    height: 37px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-small);
}

.favourite-button svg {
    width: 18px;
    height: 18px;
}

.favourite-button.is-active {
    color: white;
    background: var(--primary);
}

.favourite-button.is-active svg {
    fill: currentColor;
}

.restaurant-content {
    padding: 15px;
}

.restaurant-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.restaurant-title-row h3 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.4px;
}

.restaurant-title-row p {
    margin: 0;
    color: var(--text-soft);
    font-size: 10px;
}

.restaurant-rating {
    display: inline-flex;
    min-height: 27px;
    padding: 0 7px;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    background: var(--primary-soft);
    font-size: 10px;
    font-weight: 800;
}

.restaurant-rating svg {
    width: 13px;
    height: 13px;
    color: var(--primary);
    fill: var(--primary);
}

.restaurant-location {
    display: flex;
    margin-top: 12px;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
}

.restaurant-location svg {
    width: 13px;
    height: 13px;
}

.restaurant-meta {
    display: flex;
    margin-top: 11px;
    flex-wrap: wrap;
    gap: 9px 14px;
    color: #565656;
    font-size: 9px;
    font-weight: 600;
}

.restaurant-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.restaurant-meta svg {
    width: 13px;
    height: 13px;
}

.restaurant-footer {
    display: grid;
    margin-top: 14px;
    padding-top: 12px;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border);
    font-size: 9px;
}

.restaurant-footer > span:first-child {
    color: var(--text-muted);
}

.price-level {
    color: #555;
    font-weight: 800;
}

.restaurant-footer a {
    color: var(--primary);
    font-weight: 800;
}

.empty-results {
    display: grid;
    min-height: 430px;
    padding: 35px;
    place-items: center;
    align-content: center;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-large);
    background: var(--background);
    text-align: center;
}

.empty-results > span {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 50%;
    color: var(--primary);
    background: var(--primary-soft);
}

.empty-results h3 {
    margin: 18px 0 7px;
    font-size: 21px;
}

.empty-results p {
    max-width: 390px;
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
}

.empty-results button {
    min-height: 40px;
    margin-top: 18px;
    padding: 0 15px;
    border: 0;
    border-radius: 11px;
    color: white;
    background: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .desktop-navigation {
        margin-left: 35px;
        gap: 21px;
    }

    .location-control span {
        display: none;
    }

    .search-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

@media (max-width: 860px) {
    :root {
        --header-height: 61px;
    }

    body {
        padding-bottom:
            calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    }

    .page-container {
        width: 100%;
    }

    .header-inner {
        position: relative;
        padding: 0 16px;
        justify-content: space-between;
    }

    .desktop-navigation,
    .desktop-actions {
        display: none;
    }

    .mobile-menu-button,
    .mobile-cart-button {
        display: inline-flex;
    }

    .mobile-menu-button {
        width: 40px;
        height: 40px;
        padding: 0;
        align-items: center;
        justify-content: flex-start;
        border: 0;
        background: transparent;
    }

    .header-inner > .brand {
        position: absolute;
        left: 50%;
        gap: 7px;
        transform: translateX(-50%);
    }

    .header-inner > .brand .brand-mark {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 15px;
    }

    .header-inner > .brand .brand-name {
        font-size: 19px;
    }

    .mobile-cart-button {
        align-items: center;
        justify-content: flex-end;
    }

    .mobile-drawer {
        position: fixed;
        inset: 0;
        z-index: 120;
        display: block;
        pointer-events: none;
        visibility: hidden;
    }

    .mobile-drawer.is-open {
        pointer-events: auto;
        visibility: visible;
    }

    .drawer-overlay {
        position: absolute;
        inset: 0;
        padding: 0;
        border: 0;
        opacity: 0;
        background: rgba(0, 0, 0, 0.46);
        transition: opacity 220ms ease;
    }

    .mobile-drawer.is-open .drawer-overlay {
        opacity: 1;
    }

    .drawer-panel {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        display: flex;
        width: min(88vw, 360px);
        padding:
            calc(18px + env(safe-area-inset-top))
            18px
            calc(22px + env(safe-area-inset-bottom));
        flex-direction: column;
        background: white;
        transform: translateX(-105%);
        transition: transform 240ms ease;
    }

    .mobile-drawer.is-open .drawer-panel {
        transform: translateX(0);
    }

    .drawer-header {
        display: flex;
        padding-bottom: 18px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--border);
    }

    .drawer-close {
        display: grid;
        width: 40px;
        height: 40px;
        padding: 0;
        place-items: center;
        border: 0;
        border-radius: 12px;
        background: var(--background);
    }

    .drawer-navigation {
        display: flex;
        margin-top: 18px;
        flex-direction: column;
        gap: 5px;
    }

    .drawer-navigation a {
        display: flex;
        min-height: 48px;
        padding: 0 13px;
        align-items: center;
        gap: 13px;
        border-radius: 13px;
        color: #3d3d3d;
        font-size: 13px;
        font-weight: 700;
    }

    .drawer-navigation a.is-active {
        color: var(--primary);
        background: var(--primary-soft);
    }

    .drawer-actions {
        display: grid;
        margin-top: auto;
        gap: 9px;
    }

    .search-hero {
        padding: 17px 16px 22px;
    }

    .breadcrumb {
        margin-bottom: 16px;
        font-size: 9px;
    }

    .search-hero h1 {
        font-size: 34px;
        letter-spacing: -1.7px;
    }

    .search-hero p {
        margin-top: 11px;
        font-size: 11px;
    }

    .restaurant-search {
        margin-top: 22px;
        padding: 7px;
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .restaurant-search label {
        min-height: 52px;
    }

    .restaurant-search button {
        min-height: 47px;
    }

    .quick-categories {
        margin-top: 18px;
    }

    .restaurants-section {
        padding: 23px 16px 35px;
    }

    .results-toolbar {
        margin-bottom: 18px;
        align-items: center;
    }

    .results-toolbar h2 {
        font-size: 20px;
    }

    .results-toolbar p {
        font-size: 9px;
    }

    .toolbar-actions {
        gap: 7px;
    }

    .filter-mobile-button {
        position: relative;
        display: inline-flex;
        min-height: 42px;
        padding: 0 11px;
        align-items: center;
        gap: 6px;
        border: 1px solid var(--border);
        border-radius: 11px;
        background: white;
        font-size: 10px;
        font-weight: 800;
    }

    .filter-mobile-button svg {
        width: 16px;
        height: 16px;
    }

    .filter-mobile-button > span {
        display: none;
        min-width: 17px;
        height: 17px;
        place-items: center;
        border-radius: 50%;
        color: white;
        background: var(--primary);
        font-size: 8px;
    }

    .filter-mobile-button.has-filters > span {
        display: grid;
    }

    .sort-control {
        min-height: 42px;
        padding: 0 8px;
    }

    .sort-control span {
        display: none;
    }

    .sort-control select {
        max-width: 122px;
        font-size: 9px;
    }

    .restaurants-layout {
        display: block;
    }

    .filters-sidebar {
        display: none;
    }

    .active-filters {
        margin-bottom: 13px;
    }

    .restaurants-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .restaurant-card {
        display: grid;
        min-height: 142px;
        grid-template-columns: 128px minmax(0, 1fr);
        border-radius: 16px;
    }

    .restaurant-card:hover {
        transform: none;
    }

    .restaurant-image {
        height: 100%;
        min-height: 142px;
    }

    .restaurant-status {
        top: 8px;
        left: 8px;
        min-height: 23px;
        padding: 0 7px;
        font-size: 8px;
    }

    .restaurant-offer {
        right: 8px;
        bottom: 8px;
        left: 8px;
        min-height: 23px;
        justify-content: center;
        font-size: 8px;
    }

    .favourite-button {
        top: 7px;
        right: 7px;
        width: 31px;
        height: 31px;
    }

    .favourite-button svg {
        width: 15px;
        height: 15px;
    }

    .restaurant-content {
        padding: 12px;
    }

    .restaurant-title-row h3 {
        font-size: 14px;
    }

    .restaurant-title-row p {
        font-size: 8px;
    }

    .restaurant-rating {
        min-height: 24px;
        font-size: 8px;
    }

    .restaurant-location {
        margin-top: 8px;
        font-size: 8px;
    }

    .restaurant-meta {
        margin-top: 8px;
        gap: 6px 10px;
        font-size: 8px;
    }

    .restaurant-footer {
        margin-top: 9px;
        padding-top: 8px;
        gap: 7px;
        font-size: 8px;
    }

    .mobile-filter-sheet {
        position: fixed;
        inset: 0;
        z-index: 150;
        display: block;
        pointer-events: none;
        visibility: hidden;
    }

    .mobile-filter-sheet.is-open {
        pointer-events: auto;
        visibility: visible;
    }

    .filter-sheet-overlay {
        position: absolute;
        inset: 0;
        padding: 0;
        border: 0;
        opacity: 0;
        background: rgba(0, 0, 0, 0.48);
        transition: opacity 220ms ease;
    }

    .mobile-filter-sheet.is-open .filter-sheet-overlay {
        opacity: 1;
    }

    .filter-sheet-panel {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        max-height: 88vh;
        padding-bottom: env(safe-area-inset-bottom);
        flex-direction: column;
        border-radius: 24px 24px 0 0;
        background: white;
        transform: translateY(105%);
        transition: transform 250ms ease;
    }

    .mobile-filter-sheet.is-open .filter-sheet-panel {
        transform: translateY(0);
    }

    .filter-sheet-handle {
        width: 42px;
        height: 4px;
        margin: 10px auto 5px;
        border-radius: 999px;
        background: #d9d9d9;
    }

    .filter-sheet-header {
        display: flex;
        padding: 12px 17px 15px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--border);
    }

    .filter-sheet-header h3 {
        margin: 0;
        font-size: 17px;
    }

    .filter-sheet-header p {
        margin: 4px 0 0;
        color: var(--text-soft);
        font-size: 9px;
    }

    .filter-sheet-header button {
        display: grid;
        width: 38px;
        height: 38px;
        padding: 0;
        place-items: center;
        border: 0;
        border-radius: 12px;
        background: var(--background);
    }

    .filter-sheet-content {
        overflow-y: auto;
    }

    .filter-sheet-content .filter-group {
        padding: 17px;
    }

    .filter-sheet-content select {
        width: 100%;
        height: 43px;
        padding: 0 11px;
        border: 1px solid var(--border);
        border-radius: 11px;
        background: white;
        font-size: 11px;
    }

    .filter-sheet-footer {
        display: grid;
        padding: 13px 16px;
        grid-template-columns: 0.8fr 1.2fr;
        gap: 9px;
        border-top: 1px solid var(--border);
        background: white;
    }

    .mobile-bottom-navigation {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 90;
        display: grid;
        min-height:
            calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        padding:
            7px 4px
            calc(7px + env(safe-area-inset-bottom));
        grid-template-columns: repeat(5, minmax(0, 1fr));
        border-top: 1px solid #e5e5e5;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
        backdrop-filter: blur(18px);
    }

    .mobile-bottom-navigation > a {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        color: #858585;
        font-size: 8px;
        font-weight: 700;
    }

    .mobile-bottom-navigation > a svg {
        width: 20px;
        height: 20px;
    }

    .mobile-bottom-navigation > a.is-active {
        color: var(--primary);
    }

    .nav-icon-wrapper {
        position: relative;
        display: flex;
    }

    .nav-notification {
        position: absolute;
        top: -7px;
        right: -9px;
        display: grid;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        place-items: center;
        border: 2px solid white;
        border-radius: 20px;
        color: white;
        background: var(--primary);
        font-size: 7px;
        font-weight: 800;
    }
}

@media (max-width: 420px) {
    .results-toolbar {
        gap: 10px;
    }

    .restaurant-card {
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .restaurant-footer > span:first-child {
        display: none;
    }

    .restaurant-footer {
        grid-template-columns: auto 1fr;
    }

    .restaurant-footer a {
        text-align: right;
    }
}
