:root {
    --color-header-bg: #0f2a4a;
    --color-trusted: #1a7f4f;
    --color-text: #222;
    --color-text-muted: #666;
    --color-bg: #fff;
    --color-border: #e2e2e2;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--color-text);
    background: var(--color-bg);
}

.site-header {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    background: var(--color-header-bg);
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.45rem;
    color: #fff;
    text-decoration: none;
    line-height: 1;
}

.logo__icon { display: block; flex-shrink: 0; }

.site-header .search-bar__tagline {
    font-style: italic;
    text-align: left;
    margin: 0 0 0 1rem;
}

main { max-width: 1100px; width: 100%; margin: 0 auto; padding: 0 1.5rem 1.5rem; flex: 1 0 auto; }

.back-link {
    display: inline-block;
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: var(--color-header-bg);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover { text-decoration: underline; }

.search-bar {
    background: var(--color-header-bg);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.search-bar__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.search-bar__tagline {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin: 0 0 0.9rem;
}

.enter-city-hint {
    color: #fff;
    text-align: left;
}

.search-bar form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-bar__main {
    flex: 1;
    min-width: 180px;
    height: 38px;
    padding: 0 1rem;
    border: none;
    border-radius: 6px;
}

.search-bar__location {
    width: 130px;
    height: 38px;
    flex-shrink: 0;
    padding: 0 0.75rem;
    border: none;
    border-radius: 6px;
    color: var(--color-header-bg);
}

.search-bar__filters {
    flex-shrink: 0;
    height: 38px;
    padding: 0 1.1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: #fff;
    color: var(--color-header-bg);
}

.search-bar__submit {
    flex-shrink: 0;
    height: 38px;
    padding: 0 1.3rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: var(--color-trusted);
    color: #fff;
}

.search-bar__clear {
    flex-shrink: 0;
    height: 38px;
    padding: 0 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
}

.search-bar__expanded {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.search-bar__expanded input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    flex: 1 1 160px;
}

.search-bar__expanded input:only-child {
    max-width: 280px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.results-count { font-weight: 600; margin-right: 0.5rem; }

.results-controls { display: flex; align-items: center; gap: 1rem; }
.results-controls select { margin-left: 0.6rem; padding: 0.3rem; }

.map-toggle {
    height: 38px;
    padding: 0 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
    font-weight: 500;
}

.map-toggle--active {
    border-color: var(--color-trusted);
    background: var(--color-trusted);
    color: #fff;
}

.trusted-toggle {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.trusted-toggle__option {
    height: 38px;
    padding: 0 0.9rem;
    border: none;
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
    font-weight: 500;
}

.trusted-toggle__option:first-child {
    border-right: 1px solid var(--color-border);
}

.trusted-toggle__option--active {
    background: var(--color-trusted);
    color: #fff;
}

.results-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-border);
}

.restaurant-row__body { flex: 1 1 auto; display: flex; align-items: center; gap: 0.6rem; }

.restaurant-row__text { display: flex; flex-direction: column; justify-content: center; }

.restaurant-row__text h3 { margin: 0 0 0.2rem; font-size: 1rem; font-weight: 500; line-height: 1.2; }

.restaurant-row__cuisine { font-size: 0.85rem; color: var(--color-text-muted); margin: 0 0 0.15rem; line-height: 1.2; }

.restaurant-row__contact { font-size: 0.8rem; color: #999; margin: 0; line-height: 1.2; }

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--color-trusted);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.map-view { height: 400px; width: 100%; border-radius: 8px; margin-bottom: 1.5rem; }

.pagination { display: flex; align-items: center; gap: 1rem; justify-content: center; margin: 1.5rem 0; }

.restaurant-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
    align-items: start;
    max-width: 820px;
}

.restaurant-detail__main h1 { margin: 0.5rem 0 0.25rem; font-weight: 500; font-size: 1.2rem; }

.restaurant-detail__subline { color: var(--color-text-muted); margin: 0 0 1.2rem; display: flex; gap: 0.6rem; }

.restaurant-detail__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }

.restaurant-detail__facts li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; }

.restaurant-detail__facts svg { color: var(--color-trusted); flex-shrink: 0; }

.trust-indicators {
    background: #f6f9f7;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.25rem;
}

.trust-indicators h2 { margin-top: 0; font-size: 1.05rem; font-weight: 500; }

.trust-indicators ul { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }

.trust-indicators li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }

.verification-date { color: var(--color-text-muted); font-size: 0.8rem; margin: 0; }

.loading-indicator { display: flex; align-items: center; gap: 0.5rem; padding: 2rem 0; }

.spinner {
    width: 1rem; height: 1rem; border: 2px solid var(--color-border);
    border-top-color: var(--color-header-bg); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-message { padding: 1rem; border: 1px solid #c33; background: #fee; border-radius: 6px; color: #900; }

.site-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
}

.site-footer__links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0.5rem;
}

.site-footer__links a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

.static-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 0;
}

.static-page--centered {
    text-align: center;
}

.static-page h1 {
    margin: 0 0 1rem;
}

.static-page p {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.static-page ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.static-page li {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0 0 0.5rem;
}

.static-page__hero {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.static-page__icon {
    margin: 0 auto 1.25rem;
    display: block;
}

.static-page__email {
    font-size: 1.05rem;
    margin: 1.5rem 0;
}

.static-page__email a {
    color: var(--color-trusted);
    font-weight: 500;
}

.static-page__back {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-header-bg);
    text-decoration: none;
    font-weight: 500;
}

.static-page__back:hover {
    text-decoration: underline;
}

.about-page {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.about-page__image {
    flex: 0 0 42%;
}

.about-page__image img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.about-page__content {
    flex: 1;
}

.about-page__content h1 {
    font-size: 2rem;
    margin: 0 0 1.25rem;
}

.about-page__content p {
    color: var(--color-text);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.about-page__accent {
    color: var(--color-trusted);
}

@media (max-width: 700px) {
    .about-page {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .about-page__image {
        flex: none;
    }
}

@media (max-width: 700px) {
    .search-bar form { flex-direction: column; align-items: stretch; }
    .search-bar__location { width: 100%; }
    .search-bar__main { width: 100%; min-width: 0; flex: none; height: 38px; }
    .city-typeahead { width: 100%; }
    .search-bar__expanded { flex-direction: column; }
    .search-bar__expanded input { width: 100%; max-width: none; }
    .restaurant-detail { grid-template-columns: 1fr; }

    .restaurant-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 16px;
    }

    .restaurant-row__link {
        width: 100%;
        min-width: 0;
    }

    .restaurant-row__text {
        min-width: 0;
    }

    .restaurant-row__text h3,
    .restaurant-row__cuisine,
    .restaurant-row__contact {
        white-space: normal;
        word-break: break-word;
    }

    .restaurant-row__feedback {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }

    .feedback-question {
        width: 100%;
        white-space: normal;
    }

    .restaurant-row__chevron {
        display: none;
    }

    .results-controls {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }

    .trusted-toggle {
        width: 100%;
    }

    .trusted-toggle__option {
        flex: 1;
        text-align: center;
    }

    .results-controls label,
    .map-toggle {
        width: 100%;
    }

    body {
        overflow-x: hidden;
    }

    .search-bar__main {
        -webkit-appearance: none;
        appearance: none;
    }

    .city-typeahead__suggestions {
        position: static;
        box-shadow: none;
        border-top: none;
        margin-top: -1px;
    }
}

.restaurant-row__image, .restaurant-row__image-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #eef3f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c3d6ca;
}

.restaurant-row__image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.leaflet-popup-content strong {
    color: var(--color-trusted);
}

.leaflet-popup-tip { background: #fff; }

.restaurant-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.restaurant-row__link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.restaurant-row__badge-slot {
    width: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.restaurant-row__feedback {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-question {
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.feedback-btn {
    height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    cursor: pointer;
}

.feedback-btn--yes {
    border: 1px solid #97c459;
    background: #eaf3de;
    color: #27500a;
}

.feedback-btn--no {
    border: 1px solid #f09595;
    background: #fcebeb;
    color: #791f1f;
}

.feedback-btn:disabled { opacity: 0.6; cursor: default; }

.feedback-confirmation {
    font-size: 12px;
    color: var(--color-trusted);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.restaurant-row__chevron {
    color: var(--color-trusted);
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    text-decoration: none;
}

/* ============================================================
   City location typeahead (Product Owner decision, 2026-08-06).
   Note: .search-bar__location's fixed 130px width (above) is
   deliberately overridden below - a real city name like "Staten
   Island, NY" needs more room than the old short dropdown label
   did. This is the one small, necessary width adjustment driven
   by the new content type, not a broader search bar redesign.
   ============================================================ */
.city-typeahead {
    position: relative;
    flex: 1;
}

.city-typeahead__input {
    width: 100%;
}

.city-typeahead__suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.city-typeahead__suggestion {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--color-text);
    font-size: 14px;
}

.city-typeahead__suggestion:hover {
    background: #f3f6f4;
}

.city-typeahead__badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: #f0f0f0;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

.coming-soon {
    max-width: 560px;
    margin: 3rem auto;
    text-align: center;
    padding: 2rem;
}

.coming-soon h2 {
    margin: 0 0 0.75rem;
}

.coming-soon p {
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
}
