﻿* { box-sizing: border-box; }

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@500;600;700;800&display=swap');

html, body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f8fafc;
    color: #0f172a;
    overflow-x: hidden;
}

:root {
    --ma-green: #0f766e;
    --ma-green-soft: #ccfbf1;
    --ma-orange: #f97316;
    --ma-orange-soft: #ffedd5;
    --ma-ink: #0f172a;
    --ma-muted: #64748b;
    --ma-border: #ccfbf1;
}

a { color: inherit; text-decoration: none; }

.mobile-shell {
    min-height: 100vh;
    padding-bottom: 74px;
    overflow-x: hidden;
}

.content-view {
    padding: 18px;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    overflow-x: hidden;
}

.hero-mobile {
    min-height: 290px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 0 0 24px 24px;
    margin: -18px -18px 18px;
    color: #fff;
    background: linear-gradient(150deg, rgba(15, 118, 110, .95), rgba(249, 115, 22, .68)), url('/images/default-restaurant.jpg') center/cover;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--ma-orange-soft);
    color: var(--ma-orange);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-mobile .eyebrow {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

h1, h2, h3 { margin: 0; }

.hero-mobile h1 {
    margin-top: 14px;
    font-size: 34px;
    line-height: 1.02;
}

.hero-mobile p {
    margin: 12px 0 18px;
    color: rgba(255,255,255,.88);
}

.primary-action {
    width: fit-content;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--ma-green);
    color: #fff;
    font-weight: 800;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}

.quick-grid a,
.message-card,
.restaurant-card,
.menu-block,
.review-card,
.dish-result,
.restaurant-map,
.map-placeholder {
    border: 1px solid var(--ma-border);
    border-radius: 8px;
    background: #fff;
}

.quick-grid a {
    display: grid;
    gap: 8px;
    padding: 22px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.quick-grid span,
.restaurant-card span,
.dish-row span,
.dish-result span,
.detail-head p,
.map-placeholder span {
    color: #64748b;
    font-size: 13px;
}

.section-block { margin-top: 22px; }

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title a { color: var(--ma-orange); font-weight: 800; }

.page-head,
.detail-head {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.restaurant-list,
.dish-results {
    display: grid;
    gap: 10px;
}

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

.restaurant-card,
.dish-result {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.restaurant-list .restaurant-card {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 92px;
    padding: 10px 12px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.restaurant-list .restaurant-card > * {
    min-width: 0;
}

.restaurant-list .restaurant-card::after {
    content: none;
}

.restaurant-list .restaurant-card:active {
    transform: translateY(1px);
}

.card-thumb,
.dish-thumb-large {
    width: 82px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--ma-green-soft);
}

.dish-thumb-large {
    width: 76px;
    height: 64px;
}

.detail-cover {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #e0f2f1;
}

.template-search {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 13px;
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: var(--ma-muted);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.template-search strong {
    color: var(--ma-green);
}

.template-radius {
    width: fit-content;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--ma-green-soft);
    color: var(--ma-green);
    font-size: 12px;
    font-weight: 900;
}

.restaurant-template-card,
.popular-dish-card,
.menu-dish-card {
    border: 1px solid var(--ma-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .07);
}

.restaurant-template-card {
    display: grid;
    grid-template-columns: 142px 1fr;
    gap: 14px;
    padding: 12px;
    margin-bottom: 18px;
}

.template-image-wrap {
    position: relative;
    min-height: 196px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--ma-green-soft);
}

.template-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.template-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--ma-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.template-info {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.template-info-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.template-info h1 {
    font-size: 18px;
    line-height: 1.18;
}

.open-status {
    display: grid;
    gap: 3px;
    justify-items: center;
    min-width: 74px;
}

.open-status strong {
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff;
    background: #22c55e;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(34, 197, 94, .22);
}

.open-status strong.closed {
    background: var(--ma-muted);
    box-shadow: none;
}

.open-status span {
    color: var(--ma-muted);
    font-size: 11px;
    white-space: nowrap;
}

.hours-icon-button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: var(--ma-green);
    background: transparent;
    font: inherit;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.route-hours-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
}

.route-hours-row .primary-action {
    width: 100%;
}

.route-secondary-button {
    width: 100%;
    text-align: center;
}

.route-hours-row .outline-action,
.route-hours-row .favorite-action.route-secondary-button {
    width: 100%;
}

.hours-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .42);
}

.hours-dialog {
    width: min(420px, 100%);
    max-height: min(620px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid var(--ma-border);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 22px 48px rgba(15, 23, 42, .22);
}

.hours-dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hours-dialog-head button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: var(--ma-muted);
    background: transparent;
    font-size: 24px;
    line-height: 1;
}

.dialog-hours-list {
    margin-bottom: 0;
}

.route-dialog-text {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.route-dialog-actions {
    display: grid;
    gap: 10px;
}

.route-dialog-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #0f766e;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.route-dialog-actions a:nth-child(2),
.route-dialog-actions a:nth-child(3),
.route-dialog-actions a:nth-child(4) {
    background: #ffedd5;
    color: #f97316;
    border: 1px solid #fed7aa;
}

.route-dialog-actions .route-dialog-fallback {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.template-info p {
    margin: 0;
    color: var(--ma-muted);
    font-size: 12px;
}

.template-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.template-metrics span,
.popular-dish-card aside span,
.dish-actions span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--ma-green-soft);
    color: var(--ma-green);
    font-size: 11px;
    font-weight: 900;
}

.template-metrics span:first-child {
    background: var(--ma-orange-soft);
    color: var(--ma-orange);
}

.template-info .primary-action,
.template-info .favorite-action {
    width: 100%;
    text-align: center;
}

.popular-dishes-section {
    margin-bottom: 18px;
}

.popular-dish-card {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    margin-bottom: 10px;
}

.popular-dish-card img {
    width: 82px;
    height: 66px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--ma-green-soft);
}

.popular-dish-card div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.popular-dish-card strong {
    color: var(--ma-ink);
}

.popular-dish-card span {
    color: var(--ma-muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popular-dish-card small {
    color: var(--ma-orange);
    font-weight: 900;
}

.popular-dish-card aside {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.popular-dish-card aside strong {
    color: var(--ma-orange);
    white-space: nowrap;
}

.restaurant-card div,
.dish-result div {
    display: grid;
    gap: 5px;
}

.restaurant-list-info {
    min-width: 0;
}

.restaurant-list-info strong {
    color: var(--ma-ink);
    font-size: 16px;
    line-height: 1.18;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.restaurant-list-info span {
    color: var(--ma-muted);
    font-size: 13px;
}

.restaurant-list-info small {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    color: var(--ma-ink);
    font-size: 13px;
    font-weight: 700;
}

.restaurant-list-info small b {
    color: var(--ma-orange);
}

.restaurant-list-info small em {
    color: #22c55e;
    font-style: normal;
    font-weight: 900;
}

.restaurant-card small,
.dish-result small,
.detail-head strong {
    color: var(--ma-orange);
    font-weight: 900;
    white-space: nowrap;
}

.restaurant-map,
.map-placeholder {
    min-height: 150px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 4px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--ma-green-soft), #fff7ed);
}

.menu-block,
.review-card,
.message-card {
    padding: 14px;
    margin-bottom: 12px;
}

.message-card.bad { color: #b91c1c; background: #fef2f2; }

.dish-row {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin-top: 10px;
}

.dish-row div { display: grid; gap: 4px; min-width: 0; }
.dish-row small { color: var(--ma-orange); font-weight: 900; white-space: nowrap; }
.dish-row-content strong { color: var(--ma-ink); }
.dish-row-content span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-input {
    width: 100%;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 14px;
    font: inherit;
    margin-bottom: 16px;
    background: #fff;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 66px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 6px 10px;
    border-top: 1px solid #e5e7eb;
    background: rgba(255,255,255,.96);
}

.bottom-nav a {
    display: grid;
    place-items: center;
    gap: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.bottom-nav a.active { color: var(--ma-green); }
.bottom-nav span { font-size: 18px; }

.bottom-nav .nav-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
}

.bottom-nav .nav-icon svg {
    width: 22px;
    height: 22px;
}

.bottom-nav .nav-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav a:first-child .nav-icon path {
    fill: currentColor;
    stroke: none;
}

.restaurant-map {
    height: 260px;
    width: 100%;
    min-height: 260px;
    overflow: hidden;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--ma-green-soft), #fff7ed);
}

.leaflet-popup-content {
    margin: 10px 12px;
    line-height: 1.35;
}

.location-note {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.restaurant-card em {
    color: #0f766e;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.user-location-marker {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .18);
    border: 2px solid #2563eb;
    display: grid;
    place-items: center;
}

.user-location-marker span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .18);
}

.restaurant-map {
    position: relative;
}

.restaurant-map .leaflet-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #dbeafe;
}

.restaurant-map .leaflet-pane,
.restaurant-map .leaflet-tile,
.restaurant-map .leaflet-marker-icon,
.restaurant-map .leaflet-marker-shadow,
.restaurant-map .leaflet-tile-container,
.restaurant-map .leaflet-pane > svg,
.restaurant-map .leaflet-pane > canvas,
.restaurant-map .leaflet-zoom-box,
.restaurant-map .leaflet-image-layer,
.restaurant-map .leaflet-layer {
    position: absolute;
    left: 0;
    top: 0;
}

.restaurant-map .leaflet-tile {
    width: 256px;
    height: 256px;
    max-width: none !important;
    max-height: none !important;
}

.restaurant-map .leaflet-marker-icon,
.restaurant-map .leaflet-marker-shadow {
    display: block;
}


.restaurant-detail-head {
    padding-bottom: 6px;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.stat-pill {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fafc;
}

.stat-pill span,
.menu-heading span,
.section-title span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.stat-pill strong {
    color: #0f766e;
    font-size: 14px;
    white-space: normal;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.route-action {
    background: #0f766e;
    color: #fff;
}

.outline-action {
    width: fit-content;
    padding: 11px 14px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: var(--ma-orange);
    font-weight: 800;
    background: var(--ma-orange-soft);
}

.menu-heading,
.review-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.category-block + .category-block {
    margin-top: 12px;
}

.category-block h4 {
    margin: 14px 0 4px;
    color: var(--ma-green);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.review-heading span {
    color: #0f766e;
    font-weight: 900;
}

.review-card p {
    margin: 8px 0 0;
    color: #334155;
}

.reply-note {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f0fdfa;
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
}


.restaurant-list .restaurant-list-info small {
    color: var(--ma-ink);
    white-space: normal;
}

.restaurant-list .restaurant-list-info small b {
    color: var(--ma-orange);
}

.restaurant-list .restaurant-list-info small em {
    color: #22c55e;
}
@media (max-width: 520px) {
    .restaurant-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .restaurant-list .restaurant-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 8px;
        min-height: 86px;
        padding: 8px;
    }

    .restaurant-list .card-thumb {
        width: 72px;
        height: 66px;
    }

    .restaurant-list-info strong {
        font-size: 13px;
    }

    .restaurant-list-info span,
    .restaurant-list-info small {
        font-size: 11px;
    }
}@media (max-width: 420px) {
    .restaurant-template-card {
        grid-template-columns: 124px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .template-image-wrap {
        min-height: 184px;
    }

    .popular-dish-card {
        grid-template-columns: 74px 1fr auto;
        gap: 8px;
    }

    .popular-dish-card img {
        width: 74px;
        height: 62px;
    }

    .dish-row {
        grid-template-columns: 74px 1fr auto;
        gap: 8px;
    }

    .dish-thumb-large {
        width: 74px;
        height: 62px;
    }

    .detail-stats {
        grid-template-columns: 1fr;
    }

    .detail-actions a {
        width: 100%;
        text-align: center;
    }
}

.hours-list {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 8px;
    background: #f8fafc;
}

.hours-row.today {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
}

.hours-row strong {
    color: #0f172a;
    font-size: 14px;
}

.hours-row span {
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
    text-align: right;
}

@media (max-width: 420px) {
    .hours-row {
        align-items: flex-start;
    }
}

.search-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.search-filters label {
    display: grid;
    gap: 6px;
}

.search-filters span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.search-filters select {
    width: 100%;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 12px;
    color: #0f172a;
    font: inherit;
    background: #fff;
}

.search-summary {
    margin-top: 4px;
}

.dish-result.enhanced {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
}

.dish-result.enhanced div {
    min-width: 0;
}

.dish-result.enhanced em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

.dish-result.enhanced small {
    color: var(--ma-orange);
    font-size: 12px;
    font-weight: 900;
}

.dish-result.enhanced > strong {
    color: #0f766e;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .search-filters {
        grid-template-columns: 1fr;
    }

    .dish-result.enhanced {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .dish-result.enhanced > strong {
        white-space: normal;
    }
}


.dish-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dish-card {
    position: relative;
    display: block;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.dish-card-link {
    display: grid;
    grid-template-rows: auto auto auto auto;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.dish-card-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
}

.dish-card strong {
    min-height: 32px;
    color: var(--ma-ink);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dish-card span {
    min-height: 15px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dish-card small {
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.dish-card-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .16);
    font-size: 20px;
}

@media (max-width: 720px) {
    .dish-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.review-form {
    display: grid;
    gap: 12px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
}

.review-form h3 {
    margin: 0;
    font-size: 17px;
}

.review-form label {
    display: grid;
    gap: 6px;
}

.review-form label span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    color: #0f172a;
    font: inherit;
    background: #fff;
}

.review-form textarea {
    min-height: 92px;
    resize: vertical;
}

.review-form button {
    border: 0;
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    background: #0f766e;
    font: inherit;
    font-weight: 900;
}

.review-form button:disabled {
    opacity: .65;
}

.form-message {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.form-message.good {
    color: #0f766e;
    background: #f0fdfa;
}

.form-message.bad {
    color: #b91c1c;
    background: #fef2f2;
}

.distance-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.distance-filter label {
    display: grid;
    gap: 6px;
}

.distance-filter span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.distance-filter select,
.distance-filter input {
    width: 100%;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 12px;
    color: #0f172a;
    font: inherit;
    background: #fff;
}

.search-filters.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 560px) {
    .search-filters.three-columns {
        grid-template-columns: 1fr;
    }
}

.home-hero {
    min-height: 320px;
    background: linear-gradient(160deg, rgba(15, 118, 110, .95), rgba(20, 184, 166, .78)), url('/images/default-restaurant.jpg') center/cover;
}

.home-premium-hero {
    min-height: 340px;
    margin: 0 0 18px;
    padding: 16px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .06), rgba(15, 23, 42, .52)),
        linear-gradient(120deg, rgba(15, 118, 110, .08), rgba(249, 115, 22, .06)),
        url('/images/default-dish.jpg') center/cover;
    box-shadow: 0 18px 34px rgba(15, 23, 42, .18);
}

.home-premium-hero .eyebrow {
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--ma-orange);
    color: #fff;
}

.home-premium-hero h1 {
    max-width: 300px;
    margin-top: 12px;
    font-size: 30px;
    line-height: 1.08;
    text-shadow: 0 2px 14px rgba(15, 23, 42, .72);
}

.home-location-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 12px 0 0 !important;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ma-green) !important;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
}

.home-location-pill svg {
    width: 15px;
    height: 15px;
}

.home-location-pill path,
.home-location-pill circle {
    fill: currentColor;
}

.home-hero-subtitle {
    margin: 10px 0 14px !important;
    color: rgba(255, 255, 255, .88) !important;
    font-size: 13px;
    text-shadow: 0 2px 10px rgba(15, 23, 42, .65);
}

.account-login-gate .provider-icon-button {
    margin-inline: auto;
}

.home-dish-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 9px;
}

.home-dish-search input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    padding: 0 12px;
    color: #0f172a;
    background: rgba(255, 255, 255, .94);
    font: inherit;
    font-weight: 700;
}

.home-dish-search button {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    padding: 0 13px;
    color: #fff;
    background: var(--ma-orange);
    font: inherit;
    font-weight: 900;
}

.home-quick-chips {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-bottom: 10px;
}

.home-quick-chips button {
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    padding: 7px 10px;
    color: #fff;
    background: rgba(255, 255, 255, .15);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.home-premium-hero .hero-actions a,
.home-premium-hero .hero-actions button {
    width: 100%;
    text-align: center;
    min-height: 46px;
    box-sizing: border-box;
}

.home-premium-hero .hero-actions a,
.home-premium-hero .hero-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    font: inherit;
}

.home-premium-hero .hero-actions svg {
    width: 18px;
    height: 18px;
}

.home-premium-hero .hero-actions path,
.home-premium-hero .hero-actions circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-premium-hero .primary-action {
    padding: 13px 16px;
    border-radius: 8px;
    background: var(--ma-green);
    box-shadow: 0 10px 20px rgba(15, 118, 110, .24);
}

.home-premium-hero .secondary-action {
    padding: 12px 16px;
    border: 1px solid #fed7aa;
    color: var(--ma-orange);
    background: #fff7ed;
    box-shadow: 0 8px 18px rgba(249, 115, 22, .12);
}

.secondary-action {
    width: fit-content;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    background: rgba(255, 255, 255, .14);
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.city-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: end center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.36);
}

.city-dialog {
    width: min(420px, 100%);
    max-height: min(620px, calc(100vh - 48px));
    overflow: auto;
    border: 1px solid var(--ma-border);
    border-radius: 18px 18px 10px 10px;
    background: #f8fafc;
    padding: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.city-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.city-dialog-head span {
    display: inline-flex;
    margin-bottom: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #d9fff4;
    color: var(--ma-primary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.city-dialog-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.1;
}

.city-dialog-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.city-dialog-text {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.city-choice {
    min-height: 62px;
    padding: 12px;
    border: 1px solid var(--ma-border);
    border-radius: 8px;
    background: #fff;
    text-align: left;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.city-choice strong,
.city-choice span {
    display: block;
}

.city-choice strong {
    color: #0f172a;
    font-size: 14px;
}

.city-choice span {
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.home-stats div {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-height: 104px;
    padding: 14px 12px 12px;
    border: 1px solid var(--ma-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.home-stats em {
    color: var(--ma-green);
    font-style: normal;
    font-weight: 900;
}

.home-stat-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--ma-green-soft);
}

.home-stat-icon svg {
    width: 18px;
    height: 18px;
}

.home-stat-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-stat-icon.filled path {
    fill: currentColor;
    stroke: none;
}

.home-stats span,
.suggestion-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.home-stats span {
    text-align: center;
}

.home-stats strong {
    color: var(--ma-orange);
    font-size: 25px;
    line-height: 1;
}

.home-suggestion-list,
.dish-suggestion-list {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin-inline: -2px;
    padding: 2px 2px 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.home-suggestion-list::-webkit-scrollbar,
.dish-suggestion-list::-webkit-scrollbar {
    display: none;
}

.home-restaurant-card,
.dish-suggestion-card {
    display: grid;
    grid-template-rows: 78px auto auto;
    justify-items: center;
    align-items: start;
    gap: 6px;
    flex: 0 0 82px;
    min-width: 82px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scroll-snap-align: start;
    text-align: center;
}

.home-restaurant-card .restaurant-photo,
.dish-suggestion-card .dish-photo {
    width: 72px;
    height: 72px;
    padding: 6px;
    border-radius: 18px;
    object-fit: cover;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow: 0 10px 18px rgba(15, 23, 42, .12);
}

.home-restaurant-card strong,
.dish-suggestion-card strong {
    width: 82px;
    min-height: 28px;
    color: var(--ma-ink);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.18;
    letter-spacing: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
}

.restaurant-star-row {
    display: inline-flex;
    gap: 1px;
    align-items: center;
    justify-content: center;
    min-height: 12px;
}

.restaurant-star {
    width: 10px;
    height: 10px;
    fill: #d8dee8;
}

.restaurant-star.is-filled {
    fill: #ffb703;
}

.dish-suggestion-card span {
    width: 82px;
    color: #0f766e;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
}
@media (max-width: 420px) {
    .home-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-actions a {
        width: 100%;
        text-align: center;
    }

    .home-dish-search {
        grid-template-columns: 1fr;
    }
}

.elevated-head {
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.head-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.head-metrics span,
.quick-chips button,
.section-tabs a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #0f766e;
    background: #f0fdfa;
    font-size: 12px;
    font-weight: 900;
}

.segmented-filter select,
.segmented-filter input,
.sticky-filters select,
.search-box-wrap input {
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.map-panel {
    clear: both;
    width: 100%;
    padding: 12px;
    margin: 0 0 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
}

.map-panel-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.map-panel-title span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.map-panel .restaurant-map {
    margin-bottom: 0;
}
.touch-card {
    min-height: 72px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.touch-card:active {
    transform: scale(.99);
}

.touch-card:hover {
    border-color: #fed7aa;
    box-shadow: 0 12px 28px rgba(249, 115, 22, .12);
}


.dish-filter-panel {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.dish-filter-grid {
    display: grid;
    grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(120px, 1fr));
    gap: 10px;
    align-items: end;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
}

.dish-filter-grid::-webkit-scrollbar {
    display: none;
}

.dish-filter-grid label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.dish-filter-grid span {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
}

.dish-filter-grid select,
.dish-filter-grid input {
    width: 100%;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 11px;
    color: #0f172a;
    font: inherit;
    font-size: 13px;
    background: #fff;
}

.dish-search-control {
    position: relative;
    display: grid;
}

.dish-search-control .clear-filter {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
}

.dish-search-control input {
    padding-right: 42px;
}


.dish-filter-grid {
    align-items: stretch;
}

.dish-filter-grid label {
    grid-template-rows: 16px 42px;
    align-content: start;
}

.dish-filter-grid span {
    display: flex;
    align-items: center;
    min-height: 16px;
    line-height: 1;
}

.dish-search-control,
.dish-filter-grid select,
.dish-filter-grid input {
    height: 42px;
}

.dish-search-control .search-input {
    margin: 0;
}

.search-box-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.search-box-wrap .search-input {
    margin-bottom: 0;
}

.clear-filter {
    height: 48px;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    color: #0f766e;
    background: #f0fdfa;
    font: inherit;
    font-weight: 900;
}

.quick-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.quick-chips button {
    border: 0;
    white-space: nowrap;
    font: inherit;
}

.sticky-filters {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 10px 0;
    background: rgba(248, 250, 252, .94);
    backdrop-filter: blur(10px);
}

.empty-state {
    display: grid;
    gap: 5px;
    text-align: center;
}

.empty-state strong {
    color: #0f172a;
}

.empty-state span {
    color: #64748b;
    font-size: 13px;
}

.skeleton-list {
    display: grid;
    gap: 12px;
}

.load-more-sentinel {
    min-height: 42px;
}

.skeleton-list div {
    min-height: 74px;
    border-radius: 8px;
    background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.2s ease-in-out infinite;
}

.detail-skeleton div:first-child {
    min-height: 180px;
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.back-link {
    width: fit-content;
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
}

.section-tabs {
    position: sticky;
    top: 0;
    z-index: 18;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 4px;
    background: rgba(248, 250, 252, .94);
    backdrop-filter: blur(10px);
}

.section-tabs a {
    white-space: nowrap;
}

.scroll-section {
    scroll-margin-top: 70px;
}

.bottom-nav {
    box-shadow: 0 -10px 24px rgba(15, 23, 42, .08);
}

.bottom-nav a {
    border-radius: 8px;
}

.bottom-nav a.active {
    background: #f0fdfa;
}

@media (max-width: 420px) {
    .elevated-head {
        padding: 14px;
    }

    .search-box-wrap {
        grid-template-columns: 1fr;
    }

    .clear-filter {
        width: 100%;
    }
}

.fallback-map {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(20, 184, 166, .14)),
        radial-gradient(circle at 30% 30%, rgba(15, 118, 110, .18), transparent 32%),
        #ecfeff;
}

.fallback-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 118, 110, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 118, 110, .12) 1px, transparent 1px);
    background-size: 44px 44px;
}

.fallback-label {
    position: absolute;
    left: 12px;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 999px;
    color: #0f766e;
    background: rgba(255, 255, 255, .86);
    font-size: 12px;
    font-weight: 900;
}

.fallback-label.top {
    top: 12px;
}

.fallback-label.bottom {
    bottom: 12px;
    color: #64748b;
}

.fallback-marker {
    position: absolute;
    z-index: 3;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    background: #0f766e;
    border: 3px solid #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .2);
}

.fallback-marker b {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #fff;
}

.fallback-marker.user {
    width: 26px;
    height: 26px;
    background: #2563eb;
}

.review-line {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800;
}

.dish-side {
    display: grid;
    gap: 5px;
    width: 84px;
    justify-items: end;
    white-space: nowrap;
}

.dish-side span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--ma-green);
    background: var(--ma-green-soft);
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 420px) {
    .dish-side {
        justify-items: end;
    }
}

.section-tabs button {
    border: 0;
    white-space: nowrap;
    font: inherit;
    cursor: pointer;
}

.detail-actions button.outline-action {
    border: 1px solid #99f6e4;
    cursor: pointer;
    font: inherit;
}

.section-tabs button {
    padding: 7px 10px;
    border-radius: 999px;
    color: #0f766e;
    background: #f0fdfa;
    font-size: 12px;
    font-weight: 900;
}

.section-tabs button:active,
.section-tabs button:focus-visible {
    outline: 2px solid #99f6e4;
    outline-offset: 2px;
}


.favorite-action,
.favorite-mini,
.favorite-card button {
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: var(--ma-orange);
    background: var(--ma-orange-soft);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.favorite-action {
    width: fit-content;
    padding: 11px 14px;
}

.favorite-action.active,
.favorite-mini.active {
    color: #fff;
    background: var(--ma-orange);
    border-color: var(--ma-orange);
}

.favorite-mini {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ma-muted);
    font-size: 24px;
}

.favorite-mini.active {
    color: var(--ma-orange);
    background: transparent;
    border-color: transparent;
}

.dish-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
    align-content: center;
}

.dish-actions strong {
    color: var(--ma-orange);
    white-space: nowrap;
}

.favorite-list {
    display: grid;
    gap: 12px;
}

.favorite-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.favorite-card a {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.favorite-card span,
.favorite-card em {
    color: #64748b;
    font-size: 13px;
    font-style: normal;
}

.favorite-card button {
    padding: 9px 11px;
    white-space: nowrap;
}

.favorites-empty-action {
    margin: 8px auto 0;
}

@media (max-width: 420px) {
    .dish-actions {
        justify-items: start;
    }

    .favorite-card {
        align-items: stretch;
        flex-direction: column;
    }

    .favorite-card button {
        width: 100%;
    }
}

.bottom-nav {
    grid-template-columns: repeat(4, 1fr);
}

.dish-result-link {
    display: grid;
    gap: 5px;
    min-width: 0;
    flex: 1;
}

.dish-result.enhanced .dish-side .favorite-mini {
    margin-top: 2px;
}

.auth-head p {
    margin: 0;
    color: #64748b;
}

.auth-actions {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.sso-button {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    color: #0f172a;
    background: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.sso-button.microsoft {
    color: #fff;
    border-color: #0f766e;
    background: #0f766e;
}

.sso-button:disabled {
    opacity: .65;
    cursor: progress;
}

.auth-profile {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #fff;
}

.auth-profile img {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: cover;
}

.auth-profile div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.auth-profile span,
.auth-profile em,
.message-card p {
    color: #64748b;
    font-size: 13px;
    font-style: normal;
}

.auth-profile em {
    color: #0f766e;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-button {
    width: 100%;
    text-align: center;
}

.bottom-nav {
    grid-template-columns: repeat(5, 1fr);
}

.review-login-gate {
    display: grid;
    gap: 8px;
}

.review-login-gate span {
    color: #64748b;
    font-size: 13px;
}

.review-login-gate .outline-action {
    margin-top: 2px;
}

.review-card-with-avatar {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: flex-start;
}

.review-avatar {
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 14px;
    font-weight: 900;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    min-width: 0;
}





.account-actions {
    display: grid;
    gap: 10px;
}

.auth-card {
    display: grid;
    gap: 12px;
}

.auth-card h2,
.auth-card h3 {
    margin: 0;
    color: var(--ma-ink);
}

.auth-card h2 { font-size: 18px; }
.auth-card h3 { font-size: 14px; }

.account-form {
    display: grid;
    gap: 12px;
}

.account-form label {
    display: grid;
    gap: 6px;
}

.account-form label span {
    color: var(--ma-ink);
    font-size: 13px;
    font-weight: 900;
}

.account-form input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    color: var(--ma-ink);
    background: #fff;
    font: inherit;
}

.account-form input:focus {
    outline: 2px solid #99f6e4;
    border-color: var(--ma-primary);
}

.account-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    font: inherit;
    font-weight: 900;
}

.account-submit:disabled,
.auth-switch:disabled { opacity: .65; }

.auth-switch {
    padding: 8px;
    border: 0;
    color: var(--ma-primary);
    background: transparent;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.auth-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--ma-primary);
    background: var(--ma-green-soft);
    font-weight: 900;
}

.account-privacy {
    color: var(--ma-muted);
    font-size: 12px;
    line-height: 1.5;
}

.my-review-list {
    display: grid;
    gap: 12px;
}

.my-review-card {
    display: grid;
    gap: 10px;
}

.my-review-card .review-heading div {
    display: grid;
    gap: 3px;
}

.my-review-card small {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.review-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 2px;
}

.danger-action {
    width: fit-content;
    padding: 11px 14px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    background: #fef2f2;
    font: inherit;
    font-weight: 900;
}

.danger-action:disabled {
    opacity: .65;
}

.account-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.account-action-row .auth-button {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
}

@media (max-width: 420px) {
    .account-action-row,
    .review-actions-row a,
    .review-actions-row button {
        width: 100%;
        text-align: center;
    }

    .account-action-row button {
        width: 100%;
    }
}

.login-favorite {
    display: inline-grid;
    place-items: center;
    text-decoration: none;
}

.favorite-action.login-favorite {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.favorite-mini.login-favorite {
    background: transparent;
    border-color: transparent;
    color: var(--ma-muted);
}

.login-gate.login-template {
    position: relative;
    min-height: 100svh;
    isolation: isolate;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: clamp(18px, 3.2vh, 34px);
    overflow: hidden;
    padding: clamp(44px, 7vh, 84px) 22px 86px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 12%, rgba(15, 118, 110, .10), transparent 31%),
        linear-gradient(180deg, #fff 0%, #fbfffe 58%, #effcf9 100%);
}

.login-gate.login-template::after {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -42px;
    z-index: -1;
    height: 150px;
    border-radius: 50% 50% 0 0;
    background: #dff6f2;
    box-shadow: 0 -22px 60px rgba(15, 118, 110, .08);
}

.login-food-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    color: rgba(15, 118, 110, .12);
    font-weight: 900;
}

.food-icon,
.sparkle {
    position: absolute;
    display: grid;
    place-items: center;
    opacity: .85;
}

.food-icon {
    width: 64px;
    height: 64px;
    border: 4px solid currentColor;
    border-radius: 22px;
    font-size: 0;
    transform: rotate(-13deg);
}

.food-icon::before,
.sparkle::before {
    font-size: 34px;
    line-height: 1;
}

.food-icon.burger::before { content: "\2630"; }
.food-icon.pizza::before { content: "\25B3"; }
.food-icon.bowl::before { content: "\2323"; }
.food-icon.donut::before { content: "\25CE"; }
.sparkle::before { content: "\2726"; }

.food-icon.burger { top: 10%; left: 9%; }
.food-icon.pizza { top: 10%; right: 12%; transform: rotate(13deg); }
.food-icon.bowl { top: 24%; left: 9%; transform: rotate(-6deg); }
.food-icon.donut { top: 23%; right: 9%; border-radius: 999px; transform: rotate(8deg); }
.sparkle { font-size: 18px; color: rgba(15, 118, 110, .18); }
.sparkle-a { top: 9%; left: 70%; }
.sparkle-b { top: 20%; left: 12%; }
.sparkle-c { top: 53%; right: 12%; }

.login-brand {
    display: grid;
    justify-items: center;
    gap: 7px;
    color: var(--ma-green);
}

.login-logo {
    width: clamp(104px, 20vw, 142px);
    height: clamp(104px, 20vw, 142px);
    border-radius: 32px;
    box-shadow: 0 28px 55px rgba(15, 118, 110, .18);
}

.login-brand strong {
    color: var(--ma-green);
    font-size: clamp(34px, 7vw, 54px);
    line-height: 1;
    font-weight: 950;
}

.login-brand span {
    color: #64748b;
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 650;
}

.login-copy {
    display: grid;
    gap: 12px;
    max-width: 620px;
    color: #070b34;
}

.login-copy h1 {
    margin: 0;
    font-size: clamp(44px, 10vw, 70px);
    line-height: .98;
    font-weight: 950;
    letter-spacing: 0;
}

.login-copy p {
    margin: 0;
    color: #1f2a51;
    font-size: clamp(22px, 5vw, 34px);
    line-height: 1.32;
    font-weight: 500;
}

.login-city-art {
    width: min(92vw, 560px);
    margin-top: -2px;
}

.login-city-art svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.login-city-art .cloud,
.login-city-art .building {
    fill: #dff4f0;
}

.login-city-art .cloud-right {
    opacity: .86;
}

.login-city-art .building {
    opacity: .74;
}

.login-city-art .pin,
.login-city-art .tree {
    fill: #83d8b3;
}

.login-city-art .shop {
    fill: #a9e3d9;
}

.login-city-art .awning,
.login-city-art .door {
    fill: #0f766e;
}

.login-city-art .awning-stripe,
.login-city-art .window {
    fill: #eefdfa;
}

.login-city-art .ground {
    fill: none;
    stroke: #9bdcd2;
    stroke-width: 3;
    stroke-linecap: round;
}

.login-alert {
    width: min(100%, 560px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 22px;
    border-radius: 14px;
    font-size: clamp(16px, 3.5vw, 24px);
    font-weight: 950;
}

.login-alert.bad {
    color: #c1121f;
    background: #fff0f0;
    box-shadow: 0 16px 35px rgba(193, 18, 31, .08);
}

.login-alert.good {
    color: var(--ma-green);
    background: #ecfdf5;
}

.login-alert span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 3px solid currentColor;
    border-radius: 999px;
    font-size: 18px;
    line-height: 1;
}

.login-provider-row {
    display: flex;
    justify-content: center;
    gap: clamp(28px, 8vw, 68px);
}

.provider-icon-button {
    width: clamp(96px, 24vw, 142px);
    height: clamp(96px, 24vw, 142px);
    display: grid;
    place-items: center;
    border: 1px solid rgba(226, 232, 240, .78);
    border-radius: 28px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 55px rgba(15, 23, 42, .10);
}

.provider-icon-button svg {
    width: clamp(48px, 11vw, 72px);
    height: clamp(48px, 11vw, 72px);
}

.provider-icon-button.apple {
    color: #000;
}

.provider-icon-button.apple path {
    fill: currentColor;
}

.provider-icon-button:disabled {
    opacity: .62;
}

.login-secure {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f2a51;
    font-size: clamp(18px, 4vw, 27px);
    font-weight: 650;
}

.login-secure svg {
    width: 32px;
    height: 32px;
    fill: var(--ma-green);
}

.login-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 28px;
    color: var(--ma-green);
    font-size: clamp(18px, 4vw, 25px);
    font-weight: 950;
}

.login-footer a {
    color: inherit;
    text-decoration: none;
}

@media (min-width: 768px) {
    .content-view:has(.login-template) {
        min-height: 100svh;
        display: grid;
        place-items: center;
        padding: 24px;
        background:
            radial-gradient(circle at 20% 18%, rgba(15, 118, 110, .08), transparent 28%),
            radial-gradient(circle at 80% 78%, rgba(249, 115, 22, .08), transparent 26%),
            #f8fafc;
    }

    .login-gate.login-template {
        width: min(100%, 430px);
        min-height: min(920px, calc(100svh - 48px));
        max-height: calc(100svh - 48px);
        overflow-y: auto;
        border: 1px solid rgba(226, 232, 240, .86);
        border-radius: 42px;
        box-shadow: 0 35px 95px rgba(15, 23, 42, .18);
        scrollbar-width: thin;
    }

    .login-gate.login-template::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 216px;
        height: 34px;
        border-radius: 0 0 24px 24px;
        transform: translateX(-50%);
        background: #050505;
        z-index: 2;
    }
}

@media (max-width: 767px) {
    .content-view:has(.login-template) {
        padding: 0;
    }

    .login-gate.login-template {
        width: 100%;
        min-height: 100svh;
        border-radius: 0;
        padding-inline: max(18px, env(safe-area-inset-left));
        padding-bottom: max(86px, calc(72px + env(safe-area-inset-bottom)));
    }
}

@media (max-width: 430px) {
    .login-gate.login-template {
        gap: clamp(14px, 2.6vh, 22px);
        padding-top: clamp(28px, 5vh, 52px);
    }

    .login-logo {
        width: clamp(86px, 25vw, 112px);
        height: clamp(86px, 25vw, 112px);
        border-radius: 26px;
    }

    .login-brand strong {
        font-size: clamp(30px, 9vw, 42px);
    }

    .login-brand span {
        font-size: clamp(14px, 4vw, 18px);
    }

    .login-copy h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .login-copy p {
        font-size: clamp(18px, 6vw, 26px);
    }

    .login-city-art {
        width: min(96vw, 390px);
    }

    .provider-icon-button {
        width: clamp(82px, 27vw, 112px);
        height: clamp(82px, 27vw, 112px);
        border-radius: 24px;
    }

    .provider-icon-button svg {
        width: clamp(42px, 14vw, 58px);
        height: clamp(42px, 14vw, 58px);
    }

    .food-icon {
        width: 48px;
        height: 48px;
        border-width: 3px;
        border-radius: 18px;
    }

    .food-icon::before {
        font-size: 24px;
    }
}

@media (max-height: 760px) {
    .login-gate.login-template {
        gap: 12px;
        padding-top: 28px;
        padding-bottom: 64px;
    }

    .login-logo {
        width: 82px;
        height: 82px;
        border-radius: 24px;
    }

    .login-brand strong {
        font-size: 30px;
    }

    .login-brand span {
        font-size: 14px;
    }

    .login-copy {
        gap: 6px;
    }

    .login-copy h1 {
        font-size: 38px;
    }

    .login-copy p {
        font-size: 18px;
        line-height: 1.24;
    }

    .login-city-art {
        width: min(80vw, 360px);
        margin-block: -12px;
    }

    .provider-icon-button {
        width: 82px;
        height: 82px;
        border-radius: 22px;
    }

    .provider-icon-button svg {
        width: 42px;
        height: 42px;
    }

    .login-secure {
        font-size: 17px;
    }

    .login-footer {
        font-size: 18px;
    }
}

.ios-install-banner {
    position: sticky;
    top: 0;
    z-index: 1050;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto 34px;
    align-items: center;
    gap: 10px;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    border-bottom: 1px solid rgba(13, 148, 136, .18);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    backdrop-filter: blur(14px);
}

.ios-install-banner__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.ios-install-banner__text {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: #0f172a;
}

.ios-install-banner__text strong {
    font-size: 14px;
    line-height: 1.15;
    font-weight: 800;
}

.ios-install-banner__text span {
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ios-install-banner__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--ma-green, #0f766e);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.ios-install-banner__cta:hover,
.ios-install-banner__cta:focus {
    color: #fff;
    text-decoration: none;
}

.ios-install-banner__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 24px;
    line-height: 1;
}



.account-contact-link {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.account-contact-link a {
    color: var(--ma-green, #0f766e);
    font-weight: 800;
    text-decoration: none;
}



















/* Home hero template */
.content-view:has(.home-template-hero) {
    max-width: 680px;
}

.home-template-hero {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 14px 0 24px;
    padding: 30px 28px;
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, .42);
    border-radius: 24px;
    color: var(--ma-ink);
    font-family: "Nunito Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .52) 0 16%, transparent 17%),
        linear-gradient(135deg, #fff7ed 0%, #fed7aa 58%, #fdba74 100%);
    box-shadow: 0 24px 50px rgba(15, 23, 42, .10);
}

.home-template-copy {
    position: relative;
    z-index: 2;
    align-self: center;
    display: grid;
    gap: 14px;
    max-width: 560px;
    min-width: 0;
}

.home-template-hero h1 {
    display: grid;
    gap: 6px;
    max-width: 100%;
    margin: 0;
    color: #253246;
    font-size: clamp(26px, 5.2vw, 38px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: 0;
    text-shadow: 0 6px 20px rgba(15, 23, 42, .14);
    overflow-wrap: anywhere;
}

.home-template-hero h1 span {
    min-width: 0;
}

.home-template-hero h1 em {
    color: var(--ma-orange);
    font-style: normal;
}

.home-template-hero .home-location-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0 !important;
    padding: 12px 24px;
    border-radius: 999px;
    color: var(--ma-orange) !important;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 16px 30px rgba(15, 23, 42, .08);
    font-size: clamp(15px, 2.5vw, 20px);
    font-weight: 700;
}

.home-template-hero .home-location-pill svg {
    width: 24px;
    height: 24px;
    color: #ffb17c;
}

.home-template-hero .home-location-pill path,
.home-template-hero .home-location-pill circle {
    fill: currentColor;
}

.home-template-hero .home-hero-subtitle {
    margin: 0 !important;
    color: #778292 !important;
    font-size: clamp(13px, 2vw, 16px);
    font-weight: 500;
    text-shadow: none;
}

.home-template-hero .home-dish-search {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 0;
    align-items: center;
    max-width: 560px;
    min-height: 62px;
    margin: 4px 0 0;
    padding: 0 8px 0 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .10);
}

.home-template-hero .home-search-icon {
    width: 28px;
    height: 28px;
    color: #b7bec9;
}

.home-template-hero .home-search-icon circle,
.home-template-hero .home-search-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-template-hero .home-dish-search input {
    min-height: 62px;
    border: 0;
    border-radius: 0;
    padding: 0 12px;
    color: #1f2937;
    background: transparent;
    box-shadow: none;
    font-size: clamp(14px, 2.4vw, 17px);
    font-weight: 500;
}

.home-template-hero .home-dish-search input::placeholder {
    color: #9ca3af;
}

.home-template-hero .home-dish-search button {
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: var(--ma-orange);
    box-shadow: 0 12px 24px rgba(249, 115, 22, .30);
    font-size: clamp(14px, 2.4vw, 17px);
    font-weight: 700;
}

.home-template-hero .home-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    overflow: visible;
}

.home-template-hero .home-quick-chips button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    color: #273246;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .07);
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 600;
    white-space: nowrap;
}

.home-template-hero .home-quick-chips svg {
    width: 18px;
    height: 18px;
    color: #6f5b51;
}

.home-template-hero .home-quick-chips svg path,
.home-template-hero .home-quick-chips svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


@media (max-width: 820px) {
    .content-view:has(.home-template-hero) {
        max-width: 680px;
    }

    .home-template-hero {
        min-height: 0;
        padding: 26px 22px;
        background:
            radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .48) 0 16%, transparent 17%),
            linear-gradient(135deg, #fff7ed 0%, #fed7aa 58%, #fdba74 100%);
    }

    .home-template-copy {
        max-width: 100%;
    }

    .home-template-hero .home-dish-search {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        min-height: 60px;
        padding: 0 7px 0 16px;
    }

    .home-template-hero .home-dish-search input {
        min-height: 60px;
    }

    .home-template-hero .home-dish-search button {
        grid-column: auto;
        width: auto;
        margin: 0;
        min-height: 50px;
        padding: 0 22px;
    }
}

@media (max-width: 420px) {
    .home-template-hero {
        min-height: 0;
        padding: 20px 16px;
        background:
            radial-gradient(circle at 88% 16%, rgba(255, 255, 255, .45) 0 16%, transparent 17%),
            linear-gradient(135deg, #fff7ed 0%, #fed7aa 58%, #fdba74 100%);
    }

    .home-template-hero h1 {
        font-size: 22px !important;
        line-height: 1.16;
        max-width: 100%;
    }

    .home-template-hero .home-location-pill {
        padding: 12px 18px;
        font-size: 14px !important;
    }

    .home-template-hero .home-hero-subtitle,
    .home-template-hero .home-dish-search input,
    .home-template-hero .home-dish-search button {
        font-size: 12px !important;
    }

    .home-template-hero .home-dish-search {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 24px minmax(0, 1fr) 64px;
        min-height: 48px;
        padding: 0 4px 0 10px;
        border-radius: 16px;
        box-sizing: border-box;
    }

    .home-template-hero .home-search-icon {
        width: 20px;
        height: 20px;
    }

    .home-template-hero .home-dish-search input {
        min-width: 0;
        min-height: 48px;
        padding: 0 8px;
    }

    .home-template-hero .home-dish-search button {
        min-height: 40px;
        padding: 0 6px;
        border-radius: 13px;
    }

    .home-template-hero .home-quick-chips {
        gap: 6px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        flex-wrap: initial;
    }

    .home-template-hero .home-quick-chips button {
        gap: 4px;
        justify-content: center;
        min-width: 0;
        min-height: 32px;
        padding: 0 5px;
        font-size: 9.5px;
    }

    .home-template-hero .home-quick-chips svg {
        width: 12px;
        height: 12px;
    }
}

