/*
==================================================
   PUBLIC DISCOVERY SITE — Foogra-inspired layout
   Structure/spacing/components match Foogra directory themes;
   brand tokens stay Nibzo: orange #F74D00, gold, cream, Baloo 2 + Inter.
   Full-bleed hero + banner, category tiles, overlay listing cards,
   horizontal deal cards, owner CTA. Sticky header · mobile tab bar.
==================================================
*/

* { box-sizing: border-box; }

.pub-body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--color-charcoal);
    background: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* One-shot entrance right after the countdown unlocks the platform */
.pub-body.launch-enter .pub-shell {
    animation: pub-launch-rise 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes pub-launch-rise {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.985);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }
.ico { display: block; flex-shrink: 0; }

:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Admin impersonation bar — shown when viewing the site as a customer via admin "Login as" */
.pub-impersonate-bar {
    background: var(--color-charcoal-800); color: var(--color-white);
    display: flex; align-items: center; justify-content: center; gap: 1rem;
    padding: 0.6rem 1rem; font-size: 0.85rem; font-weight: 600; flex-wrap: wrap;
}
.pub-impersonate-bar strong { color: var(--color-gold); }
.pub-impersonate-bar button {
    background: var(--color-orange); color: var(--color-white); border: none;
    border-radius: var(--r-pill); padding: 0.4rem 1rem; font-size: 0.82rem;
    font-weight: 700; font-family: inherit; cursor: pointer;
}
.pub-impersonate-bar button:hover { background: var(--color-orange-hover); }

/* ==================================================
   SHELL: single main column
================================================== */
.pub-shell { display: flex; min-height: 100vh; }
.pub-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* --- Header (web): logo left · nav · actions right --- */
.pub-topbar {
    position: sticky; top: 0; z-index: 40;
    border-bottom: 1px solid var(--color-charcoal-100);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 0 var(--pub-pad);
    box-shadow: 0 1px 0 rgba(53, 53, 53, 0.04);
}
.pub-topbar-inner {
    display: flex; align-items: center; gap: 28px; height: 70px;
}
@media (min-width: 1024px) { .pub-topbar-inner { height: 78px; } }

.pub-topbar-logo { flex-shrink: 0; display: flex; align-items: center; min-height: 44px; }
.pub-topbar-logo img { height: 32px; width: auto; display: block; }
@media (min-width: 1024px) { .pub-topbar-logo img { height: 40px; } }

.pub-topbar-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pub-topbar-nav .ico { display: none; }

.pub-nav-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: var(--r-lg);
    font-weight: 600; font-size: 0.9rem; color: var(--color-charcoal-500);
    transition: color 0.15s ease-out; white-space: nowrap;
}
.pub-nav-item:hover { color: var(--color-charcoal); }
.pub-nav-item.active { color: var(--color-orange); }

.pub-topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pub-topbar-actions .pub-btn .ico { display: none; }

/* Site-wide city filter in the header */
.pub-city-picker {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 42px; padding: 0 4px 0 12px;
    background: var(--color-charcoal-50); border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-pill); color: var(--color-orange);
}
.pub-city-picker .ico { flex-shrink: 0; }
.pub-city-picker select,
.pub-city-picker .ui-select { min-width: 128px; max-width: 180px; }
.pub-city-picker .ui-select-btn {
    min-height: 38px; border: none; background: transparent; box-shadow: none;
    padding: 0 8px 0 0; font-size: 0.875rem; font-weight: 700; border-radius: var(--r-pill);
}
.pub-city-picker .ui-select.is-open .ui-select-btn { border: none; box-shadow: none; }
.pub-city-picker .ui-select-label { color: var(--color-charcoal); }
.pub-city-picker .ui-select-chevron { color: var(--color-orange); }
.pub-city-picker select:not(.ui-select-native) {
    border: none; background-color: transparent; background-position: right 4px center;
    min-height: 38px; padding: 0 28px 0 0; font-weight: 700; font-size: 0.875rem;
    color: var(--color-charcoal); cursor: pointer; box-shadow: none;
}

/* Toast notifications (replace browser alert) */
.pub-toast {
    position: fixed; bottom: 28px; left: 50%; z-index: 200;
    transform: translateX(-50%) translateY(12px);
    min-width: 200px; max-width: min(90vw, 360px);
    padding: 12px 18px; border-radius: var(--r-xl);
    background: var(--color-charcoal-800); color: var(--color-white);
    font-size: 0.875rem; font-weight: 600; text-align: center;
    box-shadow: var(--sh-float); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.pub-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 780px) {
    .pub-toast { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* Customer area + submit form shells */
.fg-form-wrap { max-width: 560px; margin: 0 auto; }
.fg-form-wrap .rp-sidebar-card h3 {
    font-family: var(--font-display); font-size: 1.15rem; text-transform: none;
    letter-spacing: -0.01em; color: var(--color-charcoal); margin: 0 0 16px;
}
.fg-form-done { text-align: center; padding: 2.5rem 1.5rem; }
.fg-form-done strong { display: block; font-size: 1.25rem; margin-bottom: 8px; }
.fg-form-done p { margin: 0 0 1.25rem; color: var(--color-charcoal-400); }

/* --- Mobile header (stacked) — hidden on web --- */
.pub-mobile-header { display: none; }

/* --- Content area --- */
.pub-content { padding: 24px var(--pub-pad) 64px; flex: 1; }
.pub-container { max-width: none; margin: 0 auto; }

/* Mobile bottom tab bar — hidden on web */
.pub-tabbar { display: none; }

/* --- Site footer --- */
.pub-footer { margin-top: 0; border-top: 1px solid var(--color-charcoal-100); background: var(--color-charcoal-800); color: rgba(255,255,255,0.7); }
.pub-footer-inner {
    display: grid; grid-template-columns: 1.4fr 0.9fr 1fr 0.9fr 1.15fr; gap: 36px;
    padding: 56px var(--pub-pad) 40px;
}
.pub-footer-brand img { height: 38px; width: auto; margin-bottom: 16px; display: block; filter: brightness(0) invert(1); }
.pub-footer-brand p { max-width: 320px; font-size: 0.875rem; line-height: 1.7; margin: 0; color: rgba(255,255,255,0.55); }
.pub-footer-tag {
    display: inline-block; margin-top: 14px !important;
    padding: 6px 12px; border-radius: var(--r-pill);
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7) !important; font-size: 0.75rem !important; font-weight: 600;
    letter-spacing: 0.02em; max-width: none !important;
}
.pub-footer-col { display: flex; flex-direction: column; gap: 4px; }
.pub-footer-col h4 { color: var(--color-white); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; font-family: var(--font-primary); }
.pub-footer-col a,
.pub-footer-logout {
    display: inline-flex; align-items: center; min-height: 36px; font-size: 0.875rem;
    color: rgba(255,255,255,0.55); transition: color 0.15s ease-out;
    background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; text-align: left;
}
.pub-footer-col a:hover,
.pub-footer-logout:hover { color: var(--color-orange); }
.pub-footer-apps-note {
    margin: 0 0 14px; font-size: 0.8rem; line-height: 1.45; color: rgba(255,255,255,0.45);
}
.pub-store-badges { display: flex; flex-direction: column; gap: 10px; }
.pub-store-badge {
    position: relative; display: inline-flex; align-items: center; gap: 12px;
    min-height: 52px; padding: 8px 16px 8px 12px; width: fit-content;
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.35); color: var(--color-white);
    cursor: default; user-select: none; opacity: 0.85;
}
.pub-store-badge.is-soon { pointer-events: none; }
.pub-store-soon {
    position: absolute; top: -8px; right: -6px; padding: 2px 8px;
    border-radius: var(--r-pill); background: var(--color-orange); color: #fff;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.pub-store-ico { flex-shrink: 0; opacity: 0.95; }
.pub-store-copy { display: flex; flex-direction: column; line-height: 1.15; gap: 2px; }
.pub-store-copy small { font-size: 0.65rem; font-weight: 500; color: rgba(255,255,255,0.65); letter-spacing: 0.02em; }
.pub-store-copy strong { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }
.pub-footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
    padding: 20px var(--pub-pad); border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.75rem; color: rgba(255,255,255,0.4);
}

/* ==================================================
   REUSABLE PIECES
================================================== */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.pub-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px;
    background: var(--color-orange); color: var(--color-white);
    border: none; border-radius: var(--r-lg);
    font-weight: 700; font-size: 0.9rem; font-family: inherit;
    cursor: pointer; white-space: nowrap;
    transition: background-color 0.15s ease-out, box-shadow 0.15s ease-out, color 0.15s ease-out, transform 0.15s ease-out;
}
.pub-btn:hover { background: var(--color-orange-hover); }
.pub-btn-ghost {
    background: transparent; color: var(--color-charcoal);
    box-shadow: inset 0 0 0 1px var(--color-charcoal-200);
}
.pub-btn-ghost:hover { background: var(--color-charcoal-50); }
.pub-btn-dark { background: var(--color-charcoal); }
.pub-btn-dark:hover { background: var(--color-charcoal-light); }
.pub-btn-light { background: var(--color-white); color: var(--color-charcoal); }
.pub-btn-light:hover { background: var(--color-charcoal-50); }
.pub-btn-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-orange) 100%);
    color: var(--color-charcoal-800);
    box-shadow: 0 6px 18px -8px rgba(247, 77, 0, 0.55);
}
.pub-btn-gold:hover { color: var(--color-white); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(247, 77, 0, 0.65); }

/* Header Earn CTA — always show label on desktop so “I can earn” is obvious */
.pub-earn-cta { position: relative; padding: 0 16px; min-height: 44px; gap: 8px; font-weight: 700; }
.pub-earn-cta .ico { display: inline-flex; }
.pub-earn-cta.is-active { background: var(--color-gold-100); color: var(--color-charcoal); }

/* Mid desktop: shorten neighbour ghost label, keep Earn text visible */
@media (max-width: 1100px) and (min-width: 781px) {
    .pub-topbar-actions .pub-btn-ghost .pub-btn-label-full { display: none; }
    .pub-topbar-actions .pub-btn-ghost .pub-btn-label-short { display: inline !important; }
}

/* Legacy section head (discover / dishes / customer) */
.pub-section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    margin: 40px 0 20px;
}
.pub-section-head:first-child { margin-top: 8px; }
.pub-section-head h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.15; font-weight: 700; margin: 0; }
.pub-viewall {
    display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
    color: var(--color-orange); font-weight: 700; font-size: 0.9rem;
    transition: color 0.15s ease-out;
}
.pub-viewall:hover { color: var(--color-orange-700); }

.pub-page-head { padding: 8px 0 8px; }
.pub-page-head h1 { font-size: clamp(1.35rem, 3.4vw, 1.875rem); line-height: 1.15; font-weight: 700; margin: 0 0 4px; }
.pub-page-head p { color: var(--color-charcoal-400); font-size: 0.875rem; margin: 0; }

/* ==================================================
   FOOGRA HOME — hero, sections, categories, deals, banner, owner
================================================== */
.fg-hero {
    position: relative; isolation: isolate; overflow: hidden;
    margin: -24px calc(-1 * var(--pub-pad)) 0;
    width: calc(100% + 2 * var(--pub-pad));
    min-height: clamp(380px, 62vh, 560px);
    display: flex; align-items: center; justify-content: center;
    background-color: var(--color-charcoal-800);
    background-size: cover; background-position: center;
    text-align: center; color: var(--color-white);
}
.fg-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, rgba(31,31,31,0.55) 0%, rgba(31,31,31,0.72) 100%);
}
.fg-hero-inner {
    position: relative; z-index: 1; width: 100%;
    max-width: 820px; padding: 64px clamp(20px, 4vw, 40px);
}
.fg-hero h1 {
    color: var(--color-white); font-size: clamp(2.1rem, 6vw, 3.6rem);
    font-weight: 700; line-height: 1.05; margin: 0 0 12px;
}
.fg-hero p {
    color: rgba(255,255,255,0.88); font-size: clamp(1rem, 2vw, 1.2rem);
    margin: 0 0 28px; line-height: 1.5;
}
.fg-hero-compact {
    min-height: clamp(280px, 42vh, 400px);
}
.fg-hero-compact .fg-hero-inner { padding: 48px clamp(20px, 4vw, 40px); }
.fg-hero-compact h1 { font-size: clamp(1.75rem, 5vw, 2.8rem); }
.fg-section-first { padding-top: 32px; }

/* Two-field search bar (keyword · location · Search) */
.fg-search {
    display: grid; grid-template-columns: 1.2fr 1fr auto;
    align-items: stretch; gap: 0;
    background: var(--color-white); border-radius: var(--r-xl);
    box-shadow: 0 12px 40px -12px rgba(0,0,0,0.35);
    overflow: hidden; text-align: left;
}
.fg-search-field {
    display: flex; align-items: center; gap: 8px;
    padding: 0 18px; min-height: 64px;
    border-right: 1px solid var(--color-charcoal-100);
}
.fg-search-field input,
.fg-search-field select {
    flex: 1; min-width: 0; border: none; outline: none; background: transparent;
    font-family: inherit; font-size: 0.95rem; color: var(--color-charcoal);
    height: 100%;
}
.fg-search-field input::placeholder,
.fg-search-field select:invalid { color: var(--color-charcoal-300); }
.fg-search-loc { position: relative; }
.fg-search-loc .ico { color: var(--color-orange); flex-shrink: 0; }
.fg-search-loc-fixed {
    gap: 8px; font-weight: 700; font-size: 0.9rem; color: var(--color-charcoal);
}
.fg-search .pub-btn {
    min-height: 64px; border-radius: 0; padding: 0 32px; font-size: 1rem;
}
@media (max-width: 720px) {
    /* Compact: keyword + Search; city comes from mobile header picker */
    .fg-search { grid-template-columns: 1fr auto; border-radius: var(--r-pill); }
    .fg-search-field { border-right: none; border-bottom: none; min-height: 48px; padding: 0 16px; }
    .fg-search-loc { display: none; }
    .fg-search .pub-btn {
        min-height: 48px; padding: 0 22px; border-radius: 0 var(--r-pill) var(--r-pill) 0;
        font-size: 0.9rem;
    }
}

/* Section shell */
.fg-section { padding: 56px 0 8px; }
.fg-section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    margin-bottom: 28px;
}
.fg-section-head h2 {
    font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.15; font-weight: 700; margin: 8px 0 6px;
}
.fg-section-head p { margin: 0; color: var(--color-charcoal-400); font-size: 0.95rem; max-width: 36rem; line-height: 1.5; }
.fg-section-head-center { flex-direction: column; align-items: center; text-align: center; }
.fg-section-head-center p { max-width: 28rem; }
.fg-accent-line {
    display: block; width: 48px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--color-orange) 0%, var(--color-gold) 55%, var(--color-charcoal-100) 55%);
}

/* Category tiles */
.fg-cats {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px;
}
.fg-cat {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 8px; padding: 28px 16px 22px;
    background: var(--color-white); border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-card); box-shadow: var(--sh-soft);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.fg-cat:hover { transform: translateY(-4px); box-shadow: var(--sh-float); }
.fg-cat.is-active {
    border-color: rgba(247, 77, 0, 0.35);
    box-shadow: 0 10px 28px -14px rgba(247, 77, 0, 0.45);
}
.fg-cat.is-active strong { color: var(--color-orange); }
.fg-cat-count {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--color-charcoal-50); color: var(--color-charcoal-400);
    font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.fg-cat-icon {
    width: 72px; height: 72px; border-radius: 50%; font-size: 2rem;
    display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.fg-cat strong { font-size: 1rem; color: var(--color-charcoal); line-height: 1.2; }
.fg-cat small { color: var(--color-charcoal-400); font-size: 0.8rem; }

/* Discover page: compact sort/rating filters side-by-side on web */
.discover-filters {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin: 0 0 20px;
}
.discover-filters > select,
.discover-filters .ui-select {
    width: auto; flex: 0 0 auto; min-width: 150px; max-width: 200px;
}
.discover-filters .ui-select-btn {
    min-height: 40px; padding: 8px 12px; font-size: 0.875rem;
}
.discover-filters .ui-select-menu { min-width: 100%; width: max-content; }
@media (max-width: 780px) {
    .discover-filters {
        flex-direction: column; align-items: stretch;
    }
    .discover-filters > select,
    .discover-filters .ui-select {
        width: 100%; max-width: none; min-width: 0;
    }
}

/* Listing grid — 5 per row × 2 rows on home; 4 per row for related */
.fg-listings {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
}
.fg-listings-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 1100px) {
    .fg-listings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .fg-listings { grid-template-columns: repeat(2, 1fr); }
    .fg-listings-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 620px) {
    .fg-listings, .fg-listings-4 { grid-template-columns: 1fr; }
}

/* Auto-scrolling listing carousel (Just Added) */
.fg-carousel {
    overflow: hidden;
    margin: 0 calc(-1 * var(--pub-pad));
    padding: 4px var(--pub-pad) 8px;
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.fg-carousel-track {
    display: flex; gap: 20px; width: max-content;
    will-change: transform;
}
.fg-carousel-track .pub-card {
    flex: 0 0 clamp(260px, 28vw, 340px);
    width: clamp(260px, 28vw, 340px);
}
.fg-carousel-track .pub-card:hover { transform: none; }
.fg-carousel-track .pub-card:hover .pub-card-img { transform: scale(1.03); }

/* Horizontal deal cards */
.fg-deals {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 860px) { .fg-deals { grid-template-columns: 1fr; } }
.fg-deal {
    position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center;
    padding: 14px; background: var(--color-white); border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-card); box-shadow: var(--sh-soft);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.fg-deal:hover { transform: translateY(-3px); box-shadow: var(--sh-float); }
.fg-deal-img {
    width: 120px; height: 110px; border-radius: var(--r-xl);
    background: var(--color-orange-light) center / cover no-repeat;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.fg-deal-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-right: 44px; }
.fg-deal-body em { font-style: italic; font-size: 0.8rem; color: var(--color-charcoal-400); }
.fg-deal-body strong { font-size: 1.1rem; line-height: 1.2; color: var(--color-charcoal); }
.fg-deal-body small { color: var(--color-charcoal-400); font-size: 0.82rem; }
.fg-deal-price { font-weight: 700; font-size: 0.9rem; color: var(--color-charcoal); margin-top: 4px; }
.fg-deal-score {
    position: absolute; top: 14px; right: 14px;
    min-width: 40px; height: 40px; padding: 0 8px;
    background: var(--color-charcoal-50); color: var(--color-charcoal);
    font-weight: 800; font-size: 0.9rem; border-radius: var(--r-lg);
    display: flex; align-items: center; justify-content: center;
}

/* Areas */
.fg-areas {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}
.fg-area {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 22px 20px; background: var(--color-white);
    border: 1px solid var(--color-charcoal-100); border-radius: var(--r-card);
    box-shadow: var(--sh-soft); transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.fg-area:hover { transform: translateY(-3px); box-shadow: var(--sh-float); }
.fg-area-ico {
    width: 44px; height: 44px; border-radius: 50%; margin-bottom: 6px;
    background: var(--color-orange-light); color: var(--color-orange);
    display: flex; align-items: center; justify-content: center;
}
.fg-area strong { font-size: 1.05rem; }
.fg-area small { color: var(--color-charcoal-400); font-size: 0.8rem; }

/* Full-bleed photo banner */
.fg-banner {
    position: relative; isolation: isolate; overflow: hidden;
    margin: 48px calc(-1 * var(--pub-pad)) 8px;
    width: calc(100% + 2 * var(--pub-pad));
    min-height: clamp(340px, 42vw, 440px); display: flex; align-items: center;
    background-color: var(--color-charcoal-800);
    background-image: var(--fg-banner-poster); background-size: cover; background-position: center;
    color: var(--color-white);
}
.fg-banner-media {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    overflow: hidden;
}
.fg-banner-video {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    transform: scale(1.04); /* soft crop so edges never flash */
}
.fg-banner::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(105deg, rgba(20,20,20,0.88) 0%, rgba(20,20,20,0.55) 48%, rgba(247,77,0,0.28) 100%),
        linear-gradient(0deg, rgba(20,20,20,0.35) 0%, transparent 45%);
}
.fg-banner-inner {
    position: relative; z-index: 2; padding: clamp(48px, 6vw, 72px) var(--pub-pad);
    max-width: 38rem;
    animation: fgBannerIn 0.7s ease-out both;
}
@keyframes fgBannerIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
.fg-banner-brand {
    display: block; text-transform: uppercase; letter-spacing: 0.18em;
    font-size: 0.75rem; font-weight: 700; color: var(--color-gold); margin-bottom: 12px;
}
.fg-banner h2 {
    color: var(--color-white); font-size: clamp(1.85rem, 4.2vw, 2.75rem);
    line-height: 1.08; margin: 0 0 14px; text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.fg-banner p {
    color: rgba(255,255,255,0.9); font-size: 1.05rem; margin: 0 0 26px; line-height: 1.55;
    max-width: 32rem;
}
.fg-banner .pub-btn {
    box-shadow: 0 12px 28px -10px rgba(247, 77, 0, 0.65);
}
@media (prefers-reduced-motion: reduce) {
    .fg-banner-video { display: none; }
    .fg-banner-inner { animation: none; }
}

/* Owner CTA */
.fg-owner {
    /* Flush into footer — kill the cream strip between owner CTA and footer */
    margin: 56px calc(-1 * var(--pub-pad)) -64px;
    width: calc(100% + 2 * var(--pub-pad));
    background: var(--color-sand); border-top: 1px solid var(--color-charcoal-100);
}
.fg-owner-inner {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
    padding: 56px var(--pub-pad);
}
.fg-owner-copy h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 12px; line-height: 1.15; }
.fg-owner-copy p { color: var(--color-charcoal-500); font-size: 1rem; line-height: 1.65; margin: 0; max-width: 36rem; }
.fg-owner-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.fg-owner-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fg-owner-points li {
    display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px;
    background: var(--color-white); border-radius: var(--r-card);
    border: 1px solid var(--color-charcoal-100); font-size: 0.9rem; color: var(--color-charcoal-500);
}
.fg-owner-points .ico { color: var(--color-orange); margin-top: 2px; }
@media (max-width: 860px) {
    .fg-owner-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px var(--pub-pad); }
}

/* ==================================================
   LEGACY HERO (discover landing) — kept compact
================================================== */
.pub-hero {
    position: relative; isolation: isolate; overflow: hidden;
    margin: 0 0 8px; border-radius: var(--r-panel);
    padding: 48px clamp(24px, 5vw, 56px);
    background: var(--color-charcoal-800);
    display: flex; align-items: center;
}
.pub-hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(43,43,43,0.72) 0%, rgba(240,78,35,0.78) 100%);
}
.pub-hero-slide { display: none; width: 100%; position: relative; }
.pub-hero-slide.active { display: flex; align-items: center; justify-content: space-between; gap: 24px; animation: heroFade 0.5s ease; }
@keyframes heroFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pub-hero-text { max-width: 60%; min-width: 0; position: relative; z-index: 2; }
.pub-hero-eyebrow {
    display: block; color: #FFD67A; font-size: 0.875rem; font-weight: 700;
    margin-bottom: 12px; letter-spacing: 0;
}
.pub-hero-text h1 {
    color: var(--color-white); font-size: clamp(1.75rem, 5vw, 2.8rem);
    font-weight: 700; line-height: 1.08; margin: 0 0 16px;
}
.pub-hero-text p { color: rgba(255, 255, 255, 0.85); font-size: 1rem; margin: 0 0 24px; line-height: 1.6; max-width: 36rem; }

.pub-hero-visual {
    position: relative; z-index: 2; flex-shrink: 0;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    display: flex; align-items: center; justify-content: center; font-size: 5rem;
}
.pub-hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.pub-hero-dot {
    width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
    background: var(--color-charcoal-200); cursor: pointer; transition: all 0.2s ease-out;
}
.pub-hero-dot.active { background: var(--color-orange); width: 22px; border-radius: var(--r-pill); }

/* Legacy category row (discover) */
.pub-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.pub-cat {
    display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon label" "icon caption";
    align-items: center; column-gap: 14px; padding: 12px 16px 12px 12px; min-width: 0;
    background: var(--color-white); border: 1px solid var(--color-charcoal-100); border-radius: var(--r-card);
    box-shadow: var(--sh-card); transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.pub-cat:hover { transform: translateY(-3px); box-shadow: var(--sh-float); }
.pub-cat-icon {
    grid-area: icon; width: 56px; height: 56px; border-radius: 50%; font-size: 1.7rem;
    display: flex; align-items: center; justify-content: center;
}
.pub-cat-label { grid-area: label; align-self: end; font-weight: 700; font-size: 0.95rem; line-height: 1.2; color: var(--color-charcoal); }
.pub-cat-caption { grid-area: caption; align-self: start; font-size: 0.75rem; color: var(--color-charcoal-400); }

/* ==================================================
   LISTING CARDS — Foogra overlay style (home + discover + saved)
================================================== */
.pub-grid {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.pub-card {
    background: transparent; border: none; border-radius: 0;
    overflow: visible; height: 100%;
    display: block;
    box-shadow: none;
    transition: transform 0.2s ease-out;
}
.pub-card:hover { transform: translateY(-4px); }

.pub-card-media {
    position: relative; overflow: hidden; border-radius: var(--r-card);
    box-shadow: var(--sh-card); height: 100%;
}
.pub-card-img {
    aspect-ratio: 4 / 3;
    background-color: var(--color-orange-light);
    background-image: linear-gradient(135deg, var(--color-orange-light), var(--color-charcoal-50));
    background-size: cover; background-position: center; background-repeat: no-repeat;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--color-orange-200);
    transition: transform 0.35s ease-out;
}
.pub-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pub-card:hover .pub-card-img { transform: scale(1.04); }

.pub-card-tag,
.pub-card-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--color-charcoal-800); color: var(--color-white);
    font-weight: 700; font-size: 0.68rem; line-height: 1;
    padding: 7px 10px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.pub-card-badge .ico { color: var(--color-gold); fill: var(--color-gold); stroke: none; width: 14px; height: 14px; }

/* All details sit inside the image box */
.pub-card-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 40px 14px 14px;
    background: linear-gradient(180deg, transparent 0%, rgba(20,20,20,0.88) 55%, rgba(20,20,20,0.94) 100%);
    color: var(--color-white);
    display: flex; flex-direction: column; gap: 4px;
}
.pub-card-overlay .pub-card-title {
    color: var(--color-white); font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 700; line-height: 1.2; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pub-card-overlay .pub-card-sub {
    display: flex; align-items: center; gap: 5px; margin: 0 0 8px;
    color: rgba(255,255,255,0.85); font-size: 0.8rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pub-card-overlay .pub-card-sub .ico { color: var(--color-orange); width: 13px; height: 13px; }

.pub-card-meta-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.pub-card-status {
    display: inline-flex; align-items: center; gap: 5px; max-width: 62%;
    min-height: 28px; padding: 0 10px; border-radius: var(--r-pill);
    border: 1px solid rgba(255,255,255,0.35); color: var(--color-white);
    background: rgba(255,255,255,0.12); font-size: 0.72rem; font-weight: 600;
}
.pub-card-status span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-card-status .ico { width: 13px; height: 13px; color: var(--color-gold); flex-shrink: 0; }

.pub-card-rating {
    display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.pub-card-rating-meta {
    text-align: right; font-size: 0.65rem; line-height: 1.2;
    color: rgba(255,255,255,0.7); font-weight: 500;
}
.pub-card-rating strong {
    min-width: 34px; height: 34px; padding: 0 6px;
    background: var(--color-white); color: var(--color-charcoal);
    border-radius: 6px; font-size: 0.85rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}

/* Dish / plain cards (title below image) — keep classic white card */
.pub-card:has(.pub-card-body) {
    background: var(--color-white); border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-card); overflow: hidden; gap: 0; box-shadow: var(--sh-card);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.pub-card:has(.pub-card-body):hover { box-shadow: var(--sh-float); }
.pub-card:has(.pub-card-body) .pub-card-media { border-radius: 0; box-shadow: none; }
.pub-card:has(.pub-card-body) .pub-card-img { aspect-ratio: 4 / 3; }

/* Save button */
.pub-save-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: none; border-radius: 50%;
    background: rgba(255, 255, 255, 0.95); color: var(--color-charcoal-500);
    cursor: pointer; box-shadow: var(--sh-soft);
    transition: color 0.15s ease-out, background-color 0.15s ease-out;
}
.pub-save-btn:hover { color: var(--color-orange); }
.pub-save-btn.saved { color: var(--color-orange); }
.pub-save-btn.saved svg { fill: currentColor; }
.pub-card-media .pub-save-btn { position: absolute; top: 12px; right: 12px; z-index: 3; }

/* Dish cards on dishes page still use body below image */
.pub-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.pub-card-title {
    font-weight: 700; font-size: 1.125rem; line-height: 1.2; margin: 0;
    color: var(--color-charcoal);
}
.pub-card-sub { color: var(--color-charcoal-400); font-size: 0.875rem; margin: 4px 0 0; }
.pub-card-meta {
    display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 12px;
    font-size: 0.75rem; color: var(--color-charcoal-400); font-weight: 500;
}
.pub-card-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.pub-card-meta-item .ico { color: var(--color-charcoal-400); width: 14px; height: 14px; }
.pub-card-price { color: var(--color-charcoal); font-weight: 700; }

/* Chips */
.pub-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-chip {
    display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
    padding: 0 16px; border-radius: var(--r-pill);
    background: var(--color-white); color: var(--color-charcoal);
    font-weight: 600; font-size: 0.875rem; box-shadow: inset 0 0 0 1px var(--color-charcoal-200);
    transition: all 0.15s ease-out;
}
.pub-chip:hover { box-shadow: inset 0 0 0 1px var(--color-orange); color: var(--color-orange-hover); }
.pub-chip.active { background: var(--color-orange); color: var(--color-white); box-shadow: none; }

.pub-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--color-gold-100); color: var(--color-gold-600);
    font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill);
    text-transform: uppercase; letter-spacing: 0.03em;
}

.pub-empty {
    text-align: center; padding: 56px 16px; color: var(--color-charcoal-400);
    background: var(--color-white); border: 1px dashed var(--color-charcoal-200); border-radius: var(--r-card);
}
.pub-empty p { margin: 0 0 16px; }

/* Legacy CTA block used on other pages */
.pub-cta {
    margin-top: 56px; background: var(--color-charcoal); color: var(--color-white);
    border-radius: var(--r-panel); padding: 40px 24px;
    display: grid; gap: 32px; align-items: center;
}
@media (min-width: 640px) { .pub-cta { padding: 48px 40px; } }
@media (min-width: 1024px) { .pub-cta { grid-template-columns: 1.2fr 1fr; } }
.pub-cta h2 { font-size: clamp(1.25rem, 3.4vw, 1.875rem); line-height: 1.15; margin: 0 0 12px; color: var(--color-white); }
.pub-cta p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; line-height: 1.6; margin: 0; max-width: 32rem; }
.pub-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pub-cta .pub-btn { min-height: 48px; padding: 0 24px; }
.pub-cta .pub-btn-ghost { color: var(--color-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.pub-cta .pub-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.pub-cta-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pub-cta-points li {
    display: flex; align-items: flex-start; gap: 12px; padding: 16px;
    background: rgba(255, 255, 255, 0.1); border-radius: var(--r-card);
    font-size: 0.875rem; color: rgba(255, 255, 255, 0.85);
}
.pub-cta-points .ico { color: var(--color-gold); margin-top: 1px; }

/* ==================================================
   RESTAURANT LANDING PAGE (rl-*)
================================================== */
.rl-hero {
    position: relative; isolation: isolate; overflow: hidden; color: var(--color-white);
    border-radius: var(--r-panel); background: var(--color-charcoal-800);
    min-height: clamp(360px, 44vw, 500px); padding: 20px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.rl-hero-img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.rl-hero-empty {
    display: flex; align-items: center; justify-content: center; font-size: 6rem;
    background-image: linear-gradient(135deg, #3a3a3a, var(--color-orange));
}
.rl-hero-shade {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(31,31,31,0.40) 0%, rgba(31,31,31,0.10) 38%, rgba(31,31,31,0.88) 100%);
}
.rl-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rl-back {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
    border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: var(--color-white); font-weight: 600; font-size: 0.85rem; transition: background-color 0.15s ease-out;
}
.rl-back:hover { background: rgba(255, 255, 255, 0.3); }
.rl-hero-tools { display: flex; gap: 8px; }
.rl-hero-tools .pub-save-btn { width: 40px; height: 40px; }

.rl-hero-body { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.rl-logo {
    width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    border: 4px solid var(--color-white); background: var(--color-white); box-shadow: var(--sh-float);
}
.rl-logo-empty { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2.2rem; color: var(--color-orange); }
.rl-hero-title { flex: 1; min-width: 240px; }
.rl-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rl-pill {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 0.78rem; font-weight: 600;
}
.rl-pill-rating { background: var(--color-charcoal); }
.rl-pill-rating .ico { color: var(--color-gold); fill: var(--color-gold); stroke: none; width: 14px; height: 14px; }
.rl-pill small { opacity: 0.7; font-weight: 500; font-size: inherit; }
.rl-hero h1 { color: var(--color-white); font-size: clamp(1.75rem, 4.5vw, 3rem); line-height: 1.05; margin: 0 0 8px; }
.rl-hero-meta { display: flex; align-items: center; gap: 6px; margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.rl-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rl-act {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 20px; border-radius: var(--r-pill);
    font-weight: 700; font-size: 0.9rem; transition: background-color 0.15s ease-out;
}
.rl-act-call { background: var(--color-orange); color: var(--color-white); }
.rl-act-call:hover { background: var(--color-orange-hover); }
.rl-act-wa { background: #25D366; color: var(--color-white); }
.rl-act-wa:hover { background: #1fb457; }
.rl-act-map { background: rgba(255, 255, 255, 0.95); color: var(--color-charcoal); }
.rl-act-map:hover { background: var(--color-white); }

/* Quick facts */
.rl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.rl-stat {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-width: 0;
    background: var(--color-white); border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-card); box-shadow: var(--sh-card);
}
.rl-stat-ico {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: var(--color-orange-light); color: var(--color-orange);
    display: flex; align-items: center; justify-content: center;
}
.rl-stat strong { display: block; font-size: 0.95rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.rl-stat small { color: var(--color-charcoal-400); font-size: 0.78rem; }

/* Section tabs */
html { scroll-behavior: smooth; }
.rl-tabs {
    display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin-top: 8px;
    background: var(--color-cream); z-index: 20; scrollbar-width: none; -ms-overflow-style: none;
    border-bottom: 1px solid var(--color-charcoal-100);
    box-shadow: 0 8px 16px -12px rgba(31, 31, 31, 0.35);
}
.rl-tabs::-webkit-scrollbar { display: none; }
.rl-tabs a {
    flex-shrink: 0; padding: 9px 18px; border-radius: var(--r-pill); background: var(--color-white);
    font-weight: 600; font-size: 0.875rem; color: var(--color-charcoal-500);
    box-shadow: inset 0 0 0 1px var(--color-charcoal-200); transition: all 0.15s ease-out;
}
.rl-tabs a:hover { color: var(--color-orange-hover); box-shadow: inset 0 0 0 1px var(--color-orange); }
.rl-tabs a.active { background: var(--color-charcoal); color: var(--color-white); box-shadow: none; }
@media (min-width: 781px)  { .rl-tabs { position: sticky; top: 70px; } }
@media (min-width: 1024px) { .rl-tabs { position: sticky; top: 78px; } }
.rl-section, .rl-cat, .rl-visit-anchor { scroll-margin-top: 150px; }
.rl-visit-anchor { height: 1px; margin: 0; padding: 0; }

/* Two-column layout */
.rl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.rl-aside { position: sticky; top: 140px; display: grid; gap: 16px; }
.rl-about p { font-size: 1.05rem; line-height: 1.7; color: var(--color-charcoal-500); margin: 12px 0 0; max-width: 70ch; }

.rl-section { margin-top: 36px; }
.rl-section h2 { font-size: clamp(1.25rem, 3.4vw, 1.75rem); line-height: 1.15; margin: 0 0 18px; }
.rl-section h2 small {
    font-family: var(--font-primary); font-size: 0.8rem; font-weight: 700; color: var(--color-charcoal-400);
    background: var(--color-charcoal-50); padding: 2px 10px; border-radius: var(--r-pill); vertical-align: middle; margin-left: 6px;
}
.rl-sub { font-size: 1.05rem; margin: 24px 0 12px; display: flex; align-items: center; gap: 8px; }
.rl-sub small { font-family: var(--font-primary); font-size: 0.75rem; color: var(--color-charcoal-400); font-weight: 600; }
.rl-muted { color: var(--color-charcoal-400); font-size: 0.85rem; line-height: 1.5; margin: 0 0 12px; }

/* Signature dishes reuse .pub-card but are not links */
.rl-sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.rl-sig:hover { transform: none; border-color: var(--color-charcoal-100); box-shadow: var(--sh-card); }
.rl-sig:hover .pub-card-img { transform: none; }
.rl-sig .pub-card-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.rl-catnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }

.rl-dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.rl-dish {
    display: flex; gap: 14px; padding: 12px; min-width: 0;
    background: var(--color-white); border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-card); box-shadow: var(--sh-soft);
    transition: box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}
.rl-dish:hover { border-color: transparent; box-shadow: var(--sh-float); }
.rl-dish-img {
    width: 88px; height: 88px; flex-shrink: 0; border-radius: var(--r-xl);
    background-color: var(--color-orange-light); background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.rl-dish-body { flex: 1; min-width: 0; }
.rl-dish-name { font-family: var(--font-primary); font-size: 1rem; font-weight: 700; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rl-dish-desc {
    color: var(--color-charcoal-400); font-size: 0.85rem; line-height: 1.45; margin: 0 0 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rl-dish-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-dish-price { font-weight: 800; color: var(--color-charcoal); white-space: nowrap; align-self: flex-start; font-size: 0.95rem; }

/* Gallery: first photo is the feature */
.rl-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 12px; }
.rl-gallery a { display: block; overflow: hidden; border-radius: var(--r-xl); }
.rl-gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.rl-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease-out; }
.rl-gallery a:hover img { transform: scale(1.05); }

/* Reviews */
.rl-review-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.rl-summary {
    display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 20px;
    background: var(--color-white); border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-card); box-shadow: var(--sh-card);
}
.rl-summary-score { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rl-summary-score strong { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; }
.rl-stars { color: var(--color-gold); letter-spacing: 2px; font-size: 1rem; }
.rl-summary-score small { color: var(--color-charcoal-400); font-size: 0.78rem; margin-top: 4px; }
.rl-bars { display: grid; gap: 6px; min-width: 140px; }
.rl-bar { display: grid; grid-template-columns: 28px 1fr 20px; gap: 8px; align-items: center; font-size: 0.75rem; color: var(--color-charcoal-400); }
.rl-bar div { height: 8px; background: var(--color-charcoal-100); border-radius: var(--r-pill); overflow: hidden; }
.rl-bar i { display: block; height: 100%; background: var(--color-gold); border-radius: var(--r-pill); }
.rl-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 16px; }
.rl-review {
    background: var(--color-white); border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-card); padding: 16px; box-shadow: var(--sh-soft);
}
.rl-review-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.rl-review-head strong { display: block; font-size: 0.9rem; }
.rl-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: var(--color-orange-100); color: var(--color-orange-700);
    font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.rl-review p { margin: 0; color: var(--color-charcoal-500); font-size: 0.9rem; line-height: 1.6; }

/* Sidebar cards */
.rl-card {
    background: var(--color-white); border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-card); padding: 20px; box-shadow: var(--sh-card);
}
.rl-card h3 {
    font-family: var(--font-primary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--color-charcoal-300); font-weight: 700; margin: 0 0 14px;
}
.rl-info { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.rl-info .ico { color: var(--color-orange); margin-top: 2px; }
.rl-info small { display: block; font-size: 0.7rem; color: var(--color-charcoal-400); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 1px; }
.rl-info span, .rl-info a { font-size: 0.9rem; color: var(--color-charcoal); font-weight: 500; }
.rl-info a:hover { color: var(--color-orange-hover); }
.rl-map-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 4px;
    border-radius: var(--r-pill); font-weight: 700; font-size: 0.875rem; box-shadow: inset 0 0 0 1px var(--color-charcoal-200);
    transition: background-color 0.15s ease-out;
}
.rl-map-btn:hover { background: var(--color-charcoal-50); }
.rl-copy { display: flex; gap: 8px; }
.rl-copy input {
    flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--color-charcoal-200); border-radius: var(--r-pill);
    font-family: inherit; font-size: 0.8rem; color: var(--color-charcoal-500); background: var(--color-charcoal-50);
}
.rl-copy .pub-btn { min-height: 40px; padding: 0 18px; }

.rp-sidebar-card {
    background: var(--color-white); border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-card); padding: 20px; margin-bottom: 16px; box-shadow: var(--sh-card);
    overflow: visible;
}
.rp-sidebar-card h3 { margin: 0 0 14px; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-charcoal-300); }
.rp-tag {
    display: inline-flex; background: var(--color-charcoal-50);
    color: var(--color-charcoal-500); font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill);
}

@media (max-width: 980px) {
    .rl-layout { grid-template-columns: 1fr; }
    .rl-aside { position: static; }
}
@media (max-width: 780px) {
    .rl-hero { padding: 12px; min-height: min(56vh, 400px); border-radius: var(--r-card); }
    .rl-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rl-stat { padding: 12px; gap: 10px; }
    .rl-stat-ico { width: 36px; height: 36px; }
    .rl-stat strong { font-size: 0.85rem; }
    .rl-hero-body { align-items: flex-start; gap: 14px; }
    .rl-hero-title { min-width: 0; width: 100%; }
    .rl-logo { width: 64px; height: 64px; }
    .rl-hero-actions { width: 100%; gap: 8px; }
    .rl-act { flex: 1 1 calc(33.33% - 8px); min-width: 0; padding: 0 8px; justify-content: center; }
    .rl-dishes { grid-template-columns: 1fr; }
    .rl-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
    .rl-review-top { grid-template-columns: 1fr; }
    .rl-summary { grid-template-columns: 1fr; justify-items: center; }
    .rl-bars { width: 100%; }
    .rl-tabs { top: 0; margin-left: calc(-1 * var(--pub-pad)); margin-right: calc(-1 * var(--pub-pad)); padding-left: var(--pub-pad); padding-right: var(--pub-pad); }
    .rl-copy { flex-direction: column; align-items: stretch; }
    .rl-copy .pub-btn { width: 100%; }
}

/* ==================================================
   FORM CONTROLS — professional web-app inputs, custom selects, tabs
================================================== */
.pub-field { margin-bottom: 14px; }
.pub-field-row { display: flex; gap: 12px; }
.pub-field-row > .pub-field { flex: 1; min-width: 0; margin-bottom: 14px; }

.rp-form label,
.pub-field > label {
    font-size: 0.78rem; font-weight: 700; color: var(--color-charcoal-500);
    display: block; margin-bottom: 6px; letter-spacing: 0.02em;
}

.rp-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
.rp-form textarea,
.rp-form select,
.pub-input {
    width: 100%; box-sizing: border-box; padding: 12px 14px; margin-bottom: 0;
    border: 1px solid var(--color-charcoal-200); border-radius: var(--r-lg);
    font-family: inherit; font-size: 0.9rem; line-height: 1.4;
    background: var(--color-white); color: var(--color-charcoal);
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.15s ease-out;
    -webkit-appearance: none; appearance: none;
}
.rp-form textarea { resize: vertical; min-height: 96px; padding-top: 12px; padding-bottom: 12px; }
.rp-form input::placeholder, .rp-form textarea::placeholder, .pub-input::placeholder { color: var(--color-charcoal-300); }
.rp-form input:hover, .rp-form textarea:hover, .pub-input:hover {
    border-color: var(--color-charcoal-300);
}
.rp-form input:focus, .rp-form textarea:focus, .pub-input:focus,
.rp-form .ui-select.is-open .ui-select-btn {
    outline: none; border-color: var(--color-orange);
    box-shadow: none;
}
/* Icon+input wrappers: never double-border with .rp-form input rules */
.rp-form .auth-field-control input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
.rp-form .auth-field-control select {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    min-height: 0;
    width: auto; flex: 1;
}
.rp-form .auth-field-control input:hover,
.rp-form .auth-field-control input:focus {
    border: none !important;
    box-shadow: none !important;
}
.rp-form .pub-field { margin-bottom: 14px; }
.rp-form .pub-field input,
.rp-form .pub-field textarea,
.rp-form .pub-field .ui-select { margin-bottom: 0; }
.rp-form > input,
.rp-form > textarea,
.rp-form > .ui-select,
.rp-form form > input,
.rp-form form > textarea,
.rp-form form > .ui-select { margin-bottom: 14px; }
.rp-form .pub-btn,
.rp-form form > .pub-btn { margin-top: 6px; width: 100%; }

.rl-write { margin: 0; padding: 22px; }
.rl-write h3 { margin: 0 0 16px; }
.rl-write form { display: flex; flex-direction: column; gap: 14px; }
.rl-write form > input,
.rl-write form > textarea,
.rl-write form > .ui-select,
.rl-write .rp-star-input { margin-bottom: 0; }
.rl-write .pub-btn { margin-top: 2px; }

/* Segmented control (submit mode tabs, etc.) */
.pub-seg {
    display: inline-flex; padding: 4px; gap: 4px; margin-bottom: 20px;
    background: var(--color-charcoal-50); border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-xl); width: 100%; box-sizing: border-box;
}
.pub-seg-btn {
    flex: 1; min-height: 44px; padding: 0 16px; border: none; border-radius: var(--r-lg);
    background: transparent; color: var(--color-charcoal-500);
    font-family: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer;
    text-decoration: none; text-align: center;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background-color 0.15s ease-out, color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.pub-seg-btn:hover { color: var(--color-charcoal); }
.pub-seg-btn.is-active {
    background: var(--color-white); color: var(--color-charcoal);
    box-shadow: var(--sh-soft);
}

hr.rp-divider,
.rp-form hr {
    border: none; border-top: 1px solid var(--color-charcoal-100); margin: 18px 0;
}

/* Custom select (replaces native open-list chrome) */
.ui-select {
    position: relative; width: 100%; margin-bottom: 0;
}
.ui-select-native {
    position: absolute !important; opacity: 0 !important; pointer-events: none !important;
    width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important;
    border: 0 !important; clip: rect(0,0,0,0) !important;
}
.ui-select-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; min-height: 46px; padding: 10px 12px 10px 14px; box-sizing: border-box;
    border: 1px solid var(--color-charcoal-200); border-radius: var(--r-lg);
    background: var(--color-white); color: var(--color-charcoal);
    font-family: inherit; font-size: 0.9rem; font-weight: 500; text-align: left;
    cursor: pointer; transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.ui-select-btn:hover { border-color: var(--color-charcoal-300); }
.ui-select.is-open .ui-select-btn {
    border-color: var(--color-orange); box-shadow: 0 0 0 3px rgba(247, 77, 0, 0.14);
}
.ui-select.is-disabled .ui-select-btn {
    opacity: 0.55; cursor: not-allowed; background: var(--color-charcoal-50);
}
.ui-select-label {
    flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ui-select-label.is-placeholder { color: var(--color-charcoal-300); font-weight: 400; }
.ui-select-chevron {
    display: flex; color: var(--color-charcoal-400); flex-shrink: 0;
    transition: transform 0.15s ease-out;
}
.ui-select.is-open .ui-select-chevron { transform: rotate(180deg); color: var(--color-orange); }

.ui-select-menu {
    margin: 0; padding: 6px; list-style: none;
    background: #FFFFFF; border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-xl);
    box-shadow: 0 12px 40px -10px rgba(53, 53, 53, 0.28), 0 4px 12px -4px rgba(53, 53, 53, 0.12);
    max-height: 260px; overflow-y: auto;
    display: none; opacity: 1;
}
.ui-select-menu.is-open { display: block; }
.ui-select-option {
    display: flex; align-items: center; min-height: 40px; padding: 8px 12px;
    border-radius: var(--r-lg); font-size: 0.9rem; font-weight: 500;
    color: var(--color-charcoal); cursor: pointer;
    transition: background-color 0.12s ease-out, color 0.12s ease-out;
}
.ui-select-option:hover { background: var(--color-orange-light); color: var(--color-orange-hover); }
.ui-select-option.is-placeholder { color: var(--color-charcoal-400); font-weight: 400; }
.ui-select-option.is-disabled {
    opacity: 0.4; cursor: default; pointer-events: none;
}
/* Active sits on solid orange — always white text (incl. empty-value "All Cities") */
.ui-select-option.is-active,
.ui-select-option.is-active:hover,
.ui-select-option.is-active.is-placeholder {
    background: var(--color-orange); color: var(--on-orange) !important; font-weight: 700;
}
.ui-select-option.is-active:hover { background: var(--color-orange-hover); }

/* Hero search: custom select sits flush inside the bar */
.fg-search-field .ui-select { width: 100%; }
.fg-search-field .ui-select-btn {
    min-height: 100%; height: 100%; border: none; border-radius: 0;
    box-shadow: none; padding-left: 0; padding-right: 4px; background: transparent;
}
.fg-search-field .ui-select.is-open .ui-select-btn {
    border: none; box-shadow: none;
}
.fg-search-field .ui-select-menu { min-width: 200px; }

/* Native fallback chevron if JS hasn't enhanced yet */
.rp-form select:not(.ui-select-native),
.admin-field select:not(.ui-select-native) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%808080' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 36px; cursor: pointer;
}

/* Star rating */
.rp-star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 6px; }
.rp-star-input input {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.rp-star-input label {
    font-size: 1.85rem; color: var(--color-charcoal-200); cursor: pointer;
    transition: color 0.15s, transform 0.15s; margin: 0; line-height: 1; padding: 2px;
}
.rp-star-input label:hover, .rp-star-input label:hover ~ label,
.rp-star-input input:checked ~ label { color: var(--color-gold); }
.rp-star-input label:hover { transform: scale(1.08); }
.rp-star-input.is-invalid label { color: #c0392b; }
.rp-star-hint { margin: 0 0 10px; font-size: 0.8125rem; color: #c0392b; font-weight: 600; }
.rl-star-half { position: relative; display: inline-block; color: var(--color-charcoal-200); }
.rl-star-half::before {
    content: '★'; position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; color: var(--color-gold);
}
.rl-review-date { display: block; font-size: 0.75rem; color: var(--color-charcoal-300); font-weight: 500; margin-top: 2px; }

/* Range / checkbox accents */
input[type="range"] {
    -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
    background: var(--color-charcoal-100); border-radius: var(--r-pill); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
    background: var(--color-orange); cursor: pointer; border: 2px solid var(--color-white);
    box-shadow: var(--sh-soft);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--color-orange); }

.pub-flash { padding: 14px 18px; border-radius: var(--r-xl); margin-bottom: 16px; font-size: 0.9rem; font-weight: 600; }
.pub-flash-success { background: var(--color-success-bg); color: var(--color-success); }
.pub-flash-error { background: var(--color-orange-light); color: var(--color-orange-hover); }

/* Status pills — customer's own review list */
.pub-status { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.pub-status-pending { background: var(--color-gold-100); color: var(--color-gold-600); }
.pub-status-approved { background: var(--color-success-bg); color: var(--color-success); }
.pub-status-rejected { background: var(--color-orange-100); color: var(--color-orange-hover); }

hr.rp-divider { border: none; border-top: 1px solid var(--color-charcoal-100); margin: 16px 0; }

/* ==================================================
   RESPONSIVE — mobile: logo + search header, bottom tab bar
================================================== */
@media (max-width: 780px) {
    .pub-topbar { display: none; }

    .pub-mobile-header {
        display: block; position: sticky; top: 0; z-index: 40;
        background: rgba(255, 253, 249, 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--color-charcoal-100); padding: 8px var(--pub-pad);
    }
    .pub-mobile-top {
        display: flex; align-items: center; justify-content: space-between;
        min-height: 48px; gap: 10px;
    }
    .pub-mobile-logo { flex-shrink: 0; display: flex; align-items: center; min-height: 44px; }
    .pub-mobile-top img { height: 30px; width: auto; display: block; }
    .pub-mobile-actions {
        display: flex; align-items: center; justify-content: flex-end;
        gap: 4px; flex-shrink: 0; margin-left: auto;
    }
    .pub-mobile-icon-btn {
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; padding: 0; margin: 0;
        border: 1px solid var(--color-charcoal-100);
        border-radius: 50%;
        background: var(--color-charcoal-50);
        color: var(--color-charcoal-500);
        cursor: pointer; text-decoration: none; flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }
    .pub-mobile-icon-btn:hover,
    .pub-mobile-icon-btn:focus-visible {
        background: var(--color-charcoal-100);
        border-color: var(--color-charcoal-200);
        color: var(--color-charcoal);
    }
    .pub-mobile-icon-btn.is-active {
        background: var(--color-orange-light);
        border-color: var(--color-orange-200);
        color: var(--color-orange);
    }
    .pub-mobile-earn-icon { color: var(--color-charcoal-500); }

    /* City picker = location icon only; tap opens the city list */
    .pub-city-picker-mobile {
        position: relative;
        width: 40px; height: 40px; max-width: 40px; min-height: 40px;
        margin: 0; padding: 0; gap: 0;
        justify-content: center;
        background: var(--color-charcoal-50);
        border: 1px solid var(--color-charcoal-100);
        border-radius: 50%;
        color: var(--color-charcoal-500);
        transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }
    .pub-city-picker-mobile > .ico {
        position: relative; z-index: 1; pointer-events: none;
    }
    .pub-city-picker-mobile .ui-select {
        position: absolute; inset: 0; width: 100%; height: 100%;
        min-width: 0; max-width: none; margin: 0; z-index: 2;
    }
    .pub-city-picker-mobile .ui-select-btn {
        position: absolute; inset: 0; width: 100%; height: 100%;
        min-height: 40px; padding: 0; margin: 0;
        border: none; background: transparent; box-shadow: none;
        border-radius: 50%;
        opacity: 0; cursor: pointer;
    }
    .pub-city-picker-mobile .ui-select-label,
    .pub-city-picker-mobile .ui-select-chevron { display: none !important; }
    .pub-city-picker-mobile .ui-select-menu {
        min-width: min(72vw, 240px); right: 0; left: auto; z-index: 60;
    }
    .pub-city-picker-mobile select:not(.ui-select-native) {
        position: absolute; inset: 0; width: 100%; height: 100%;
        min-width: 0; max-width: none; margin: 0; opacity: 0;
        cursor: pointer; z-index: 2;
    }
    .pub-city-picker-mobile:hover,
    .pub-city-picker-mobile:focus-within {
        background: var(--color-charcoal-100);
        border-color: var(--color-charcoal-200);
        color: var(--color-charcoal);
    }

    /* Collapsed by default; expands across the header when opened */
    .pub-mobile-search {
        display: none; align-items: center; gap: 8px;
        height: 44px; padding: 0 10px 0 14px; margin: 0;
        background: var(--color-white); border-radius: var(--r-pill);
        box-shadow: 0 0 0 1px var(--color-charcoal-200), var(--sh-card); color: var(--color-orange);
    }
    .pub-mobile-header.is-search-open .pub-mobile-top { display: none; }
    .pub-mobile-header.is-search-open .pub-mobile-search {
        display: flex; margin-top: 0; animation: pub-mobile-search-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .pub-mobile-search:focus-within { box-shadow: 0 0 0 1px var(--color-charcoal-200), var(--sh-card); }
    .pub-mobile-search-go {
        display: inline-flex; align-items: center; justify-content: center;
        width: 36px; height: 36px; padding: 0; margin: 0; border: none; border-radius: var(--r-pill);
        background: transparent; color: var(--color-orange); cursor: pointer; flex-shrink: 0;
    }
    .pub-mobile-search-go:hover { background: var(--color-orange-light); }
    .pub-mobile-search input {
        border: none; outline: none; background: none; flex: 1;
        font-family: inherit; font-size: 0.95rem; min-width: 0; color: var(--color-charcoal);
        /* Kill native clear / search decorations (were showing a 2nd X) */
        -webkit-appearance: none; appearance: none;
    }
    .pub-mobile-search input::-webkit-search-decoration,
    .pub-mobile-search input::-webkit-search-cancel-button,
    .pub-mobile-search input::-webkit-search-results-button,
    .pub-mobile-search input::-webkit-search-results-decoration { display: none; }
    .pub-mobile-search-close {
        display: inline-flex; align-items: center; justify-content: center;
        width: 36px; height: 36px; padding: 0; border: none; border-radius: var(--r-pill);
        background: transparent; color: var(--color-charcoal-500); cursor: pointer; flex-shrink: 0;
    }
    .pub-mobile-search-close:hover { background: var(--color-charcoal-50); color: var(--color-charcoal); }
    @keyframes pub-mobile-search-in {
        from { opacity: 0; transform: translateY(-4px); }
        to { opacity: 1; transform: none; }
    }

    .pub-content { padding: 16px var(--pub-pad) calc(88px + env(safe-area-inset-bottom, 0px)); }

    .pub-hero { padding: 40px 20px; border-radius: var(--r-card); }
    .pub-hero-slide.active { flex-direction: column; align-items: stretch; text-align: center; }
    .pub-hero-text { max-width: 100%; }
    .pub-hero-visual { display: none; }

    .fg-hero { min-height: clamp(260px, 42vh, 340px); }
    .fg-hero-compact { min-height: clamp(180px, 30vh, 240px); }
    .fg-hero-inner { padding: 28px 16px 22px; }
    .fg-hero h1 { font-size: clamp(1.55rem, 6.5vw, 2rem); }
    .fg-hero p { font-size: 0.9rem; margin-bottom: 16px; }
    .fg-section { padding: 32px 0 4px; }
    .fg-section-first { padding-top: 16px; }
    .fg-section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 20px; }
    .fg-section-head-center { align-items: center; }
    .fg-deal { grid-template-columns: 88px 1fr; gap: 12px; padding: 12px; }
    .fg-deal-img { width: 88px; height: 88px; }
    .fg-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .fg-areas { grid-template-columns: 1fr; }
    .fg-owner-actions .pub-btn { width: 100%; }
    /* Flush to footer without colliding with the mobile tab bar */
    .fg-owner { margin-bottom: 0; }

    .pub-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding: 36px var(--pub-pad) 28px; }
    .pub-footer-brand { grid-column: 1 / -1; }
    .pub-footer-apps { grid-column: 1 / -1; }
    .pub-store-badges { flex-direction: row; flex-wrap: wrap; }
    .pub-footer-bottom { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

    .pub-field-row { flex-direction: column; gap: 0; }
    .pub-account-tabs { margin-bottom: 20px; }
    .pub-seg-btn { font-size: 0.8rem; padding: 0 10px; min-height: 42px; }

    .pub-tabbar {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
        background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--color-charcoal-100);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .pub-tab {
        flex: 1; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        font-size: 0.65rem; font-weight: 600; color: var(--color-charcoal-400); transition: color 0.15s ease-out;
        -webkit-tap-highlight-color: transparent;
    }
    .pub-tab.active { color: var(--color-orange); }
    .pub-tab span { white-space: nowrap; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
    .pub-tab .ico { width: 22px; height: 22px; }
}

@media (max-width: 420px) {
    .pub-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .pub-card-body { padding: 12px; }
    .pub-card-title { font-size: 1rem; }
    .fg-cats { gap: 10px; }
    .fg-cat { padding: 20px 10px 16px; }
    .rl-act { font-size: 0.8rem; min-height: 42px; padding: 0 10px; gap: 4px; }
}


/* ==================================================
   AUTH — compact centered form (fits one viewport)
================================================== */
.auth-body {
    background:
        radial-gradient(ellipse 60% 45% at 50% 0%, rgba(247, 77, 0, 0.1), transparent 55%),
        linear-gradient(180deg, #fff8f3 0%, var(--color-cream) 48%, #f3ebe3 100%);
    overflow: hidden;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-shell {
    display: block;
    width: min(480px, calc(100% - 32px));
    height: auto;
    max-height: calc(100dvh - 24px);
    margin: 12px;
    overflow: auto;
    background: transparent;
    flex-shrink: 1;
}

.auth-form-side {
    display: flex; flex-direction: column; min-width: 0; min-height: 0;
    padding: 14px 20px 16px;
    background: rgba(255, 255, 255, 0.92);
    overflow: visible;
    border-radius: 18px;
    border: 1px solid rgba(31, 31, 31, 0.06);
}
.auth-form-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.auth-form-top img { height: 28px; width: auto; display: block; }
.auth-back {
    display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
    border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 600;
    color: var(--color-charcoal-400); background: rgba(255,255,255,0.75);
    border: 1px solid var(--color-charcoal-100);
}
.auth-back:hover { color: var(--color-charcoal); border-color: var(--color-charcoal-200); }

.auth-mobile-intro { display: none; }

.auth-form-inner {
    width: 100%; max-width: none; margin: 0; padding: 6px 0 4px;
    display: flex; flex-direction: column; justify-content: flex-start;
    align-self: stretch;
}
.auth-form-head { margin-bottom: 10px; }
.auth-kicker {
    display: inline-block; margin-bottom: 4px;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--color-orange);
}
.auth-form-head h1 {
    font-family: var(--font-display); font-size: clamp(1.45rem, 3vw, 1.75rem);
    line-height: 1.15; margin: 0 0 4px; color: var(--color-charcoal); font-weight: 700;
}
.auth-form-head p { margin: 0; color: var(--color-charcoal-400); font-size: 0.8125rem; line-height: 1.4; }

.auth-form { display: flex; flex-direction: column; gap: 8px; }
.auth-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.auth-field label {
    font-size: 0.72rem; font-weight: 700; color: var(--color-charcoal-500);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.auth-optional { font-weight: 500; color: var(--color-charcoal-300); text-transform: lowercase; letter-spacing: 0; }
.auth-field-control {
    display: flex; align-items: center; gap: 8px;
    min-height: 36px; padding: 0 10px;
    background: var(--color-white);
    border: 1px solid var(--color-charcoal-200);
    border-radius: var(--r-lg);
    transition: border-color 0.15s ease-out;
}
.auth-field-control .ico { color: var(--color-orange); flex-shrink: 0; opacity: 0.85; width: 16px; height: 16px; }
.auth-field-control input,
.auth-field-control select,
.auth-field-control textarea {
    flex: 1; min-width: 0; height: auto; border: none !important; outline: none;
    background: transparent !important; box-shadow: none !important;
    font-family: inherit; font-size: 0.875rem;
    color: var(--color-charcoal); padding: 0 !important; margin: 0 !important;
    border-radius: 0 !important; -webkit-appearance: none; appearance: none;
}
.auth-field-control select { cursor: pointer; }
.auth-field-control input::placeholder,
.auth-field-control textarea::placeholder { color: var(--color-charcoal-300); }
.auth-field-control input:-webkit-autofill,
.auth-field-control input:-webkit-autofill:hover,
.auth-field-control input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-charcoal);
    -webkit-box-shadow: 0 0 0 1000px var(--color-white) inset;
    transition: background-color 99999s ease-out;
}
.auth-field-control:hover { border-color: var(--color-charcoal-300); }
.auth-field-control:focus-within { border-color: var(--color-orange); }
.pass-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; width: 32px; height: 32px; margin-right: -4px;
    border: none; background: transparent; color: var(--color-charcoal-400);
    border-radius: 8px; cursor: pointer; padding: 0;
}
.pass-toggle:hover { color: var(--color-orange); background: rgba(247, 77, 0, 0.06); }
.pass-toggle .ico-eye-off { display: none; }
.pass-toggle.is-shown .ico-eye { display: none; }
.pass-toggle.is-shown .ico-eye-off { display: block; }
.auth-field-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}

/* OAuth / Google */
.auth-oauth { margin-bottom: 2px; }
.auth-google-btn {
    width: 100%; min-height: 38px; display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; padding: 0 14px; border-radius: var(--r-lg);
    background: var(--color-white); color: var(--color-charcoal);
    border: 1px solid var(--color-charcoal-200);
    font-family: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
    transition: border-color 0.15s ease-out, background-color 0.15s ease-out;
}
.auth-google-btn:hover { border-color: var(--color-charcoal-300); background: var(--color-charcoal-50); }
.auth-google-ico { flex-shrink: 0; display: block; }
.auth-or {
    display: flex; align-items: center; gap: 12px; margin: 2px 0 4px;
    color: var(--color-charcoal-300); font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.auth-or::before, .auth-or::after {
    content: ''; flex: 1; height: 1px; background: var(--color-charcoal-100);
}

/* Location picker — compact, no map on join */
/* Public submit form — same location library as admin (province → city → area) */
.pub-loc-picker { margin: 0 0 4px; }
.pub-loc-picker .pub-field { margin-bottom: 14px; }
.pub-loc-picker [hidden] { display: none !important; }
.loc-city-filter {
    display: none; width: 100%; margin: 0 0 8px; padding: 10px 12px;
    border: 1px solid var(--color-charcoal-100); border-radius: var(--r-lg);
    font: inherit; background: var(--color-white);
}
.loc-city-filter:focus { outline: none; border-color: var(--color-orange); }
.loc-city-filter[aria-invalid="true"] { border-color: #c0392b; }

.auth-loc-picker {
    display: flex; flex-direction: column; gap: 8px;
}
.auth-loc-picker select {
    width: 100%; box-sizing: border-box; min-height: 36px;
    padding: 0 10px; border: 1px solid var(--color-charcoal-200);
    border-radius: var(--r-lg); background: var(--color-white);
    font-family: inherit; font-size: 0.875rem; color: var(--color-charcoal);
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%808080' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px;
    cursor: pointer;
}
.auth-loc-picker select:focus { outline: none; border-color: var(--color-orange); }
.auth-loc-picker [hidden] { display: none !important; }

.auth-submit {
    width: 100%; min-height: 38px; margin-top: 2px;
    font-size: 0.875rem; border-radius: var(--r-lg);
}
.auth-field-meta {
    display: flex; justify-content: flex-end; margin: -2px 0 2px;
    font-size: 0.8125rem;
}
.auth-field-meta a { color: var(--color-orange); font-weight: 600; text-decoration: none; }
.auth-field-meta a:hover { text-decoration: underline; }
.rl-owner-reply {
    margin-top: 0.5rem; padding: 0.65rem 0.75rem; border-radius: 10px;
    background: var(--color-cream, #f7f4ef); font-size: 0.875rem; color: var(--color-charcoal-500);
}
.auth-switch {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 6px; margin-top: 8px; padding-top: 8px;
    border-top: 1px solid var(--color-charcoal-100);
    font-size: 0.8125rem; color: var(--color-charcoal-400);
}
.auth-switch a { color: var(--color-orange); font-weight: 700; }
.auth-switch a:hover { color: var(--color-orange-hover); }

@media (max-width: 900px) {
    .auth-body { overflow: auto; align-items: flex-start; }
    .auth-shell { max-height: none; overflow: visible; }
}
@media (max-width: 560px) {
    .auth-shell { width: calc(100% - 16px); margin: 8px auto; }
    .auth-form-side { padding: 12px 14px 18px; border-radius: 16px; }
    .auth-field-row { grid-template-columns: 1fr; }
    .auth-back span { display: none; }
    .auth-form-top img { height: 24px; }
}

@media (max-height: 760px) {
    .auth-form-head { margin-bottom: 8px; }
    .auth-form { gap: 6px; }
    .auth-field-control, .auth-loc-picker select { min-height: 34px; }
    .auth-google-btn, .auth-submit { min-height: 36px; }
}

/* ==================================================
   CUSTOMER AREA — one shared column (hero + tabs + content)
================================================== */
.pub-customer-section {
    padding-top: 12px !important;
    padding-bottom: 8px !important;
}
.pub-customer-shell {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pub-customer-hero {
    display: flex; align-items: center; gap: 14px;
    margin: 0;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(247, 77, 0, 0.06), rgba(255, 180, 11, 0.08) 55%, var(--color-white) 100%);
    border: 1px solid var(--color-orange-100);
    border-radius: var(--r-card);
    box-shadow: var(--sh-soft);
}
.pub-customer-avatar {
    flex-shrink: 0;
    width: 48px; height: 48px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-orange); color: var(--color-white);
    font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
    box-shadow: 0 6px 16px -8px rgba(247, 77, 0, 0.55);
}
.pub-customer-hero-text { flex: 1; min-width: 0; }
.pub-customer-hero-text .auth-kicker { margin-bottom: 2px; }
.pub-customer-hero-text h2 {
    font-size: 1.25rem; margin: 0 0 2px; letter-spacing: -0.01em; line-height: 1.2;
}
.pub-customer-hero-text p {
    margin: 0; color: var(--color-charcoal-500); font-size: 0.85rem; line-height: 1.45;
    overflow-wrap: anywhere;
}
.pub-customer-hero-meta {
    display: flex; gap: 8px; flex-shrink: 0;
}
.pub-customer-hero-meta > div {
    min-width: 64px;
    padding: 8px 10px; text-align: center;
    background: var(--color-white); border-radius: var(--r-lg);
    border: 1px solid var(--color-charcoal-100);
    display: flex; flex-direction: column;
}
.pub-customer-hero-meta strong {
    font-family: var(--font-display); font-size: 1.05rem;
    color: var(--color-charcoal); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.pub-customer-hero-meta span {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--color-charcoal-400); margin-top: 2px;
}

.pub-customer-tabs {
    width: 100%; max-width: none; margin: 0 !important;
}
.pub-customer-tabs .pub-seg-btn {
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
    flex: 1;
}

.pub-customer-wrap {
    width: 100%; max-width: none; margin: 0;
    display: flex; flex-direction: column; gap: 12px;
}
/* Profile + password side-by-side — use horizontal space, don't stack the page taller */
.pub-customer-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
}
.pub-customer-forms .rp-sidebar-card {
    margin-bottom: 0;
    display: flex; flex-direction: column; height: 100%;
}
.pub-customer-forms .rp-sidebar-card > .pub-btn {
    margin-top: auto; width: 100%;
}
.pub-customer-wrap .rp-sidebar-card {
    margin-bottom: 0;
}
.pub-customer-wrap .rp-sidebar-card h3 {
    font-family: var(--font-display); font-size: 1.1rem; text-transform: none;
    letter-spacing: -0.01em; color: var(--color-charcoal); margin: 0 0 14px;
}
.pub-customer-wrap .rp-form label { margin-top: 2px; }
.pub-customer-wrap .auth-field-control { margin-bottom: 12px; }
.pub-customer-wrap .rp-form > .auth-field-control + label,
.pub-customer-wrap .rp-form > input + label { margin-top: 4px; }
.pub-customer-logout { text-align: center; margin: 0; padding-top: 2px; }
.pub-customer-logout a,
.pub-customer-logout-btn {
    color: var(--color-charcoal-400); font-weight: 600; font-size: 0.9rem;
    background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
}
.pub-customer-logout a:hover,
.pub-customer-logout-btn:hover { color: var(--color-orange); }

.pub-customer-reviews {
    width: 100%; max-width: none; margin: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.pub-customer-review { margin-bottom: 0; }
.pub-customer-review-head {
    display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 8px;
}
.pub-customer-review-head a { font-weight: 700; color: var(--color-charcoal); font-size: 1.02rem; }
.pub-customer-review-head a:hover { color: var(--color-orange); }
.pub-customer-review .rl-stars { color: var(--color-gold); margin-bottom: 6px; letter-spacing: 1px; }
.pub-customer-review p { margin: 0; color: var(--color-charcoal-500); font-size: 0.92rem; line-height: 1.55; }
.pub-customer-review time { display: block; margin-top: 8px; color: var(--color-charcoal-400); font-size: 0.78rem; }

.pub-customer-shell .pub-empty {
    margin: 0; padding: 28px 20px;
    background: var(--color-white); border: 1px dashed var(--color-charcoal-200);
    border-radius: var(--r-card); text-align: center;
}
.pub-customer-shell .fg-listings { margin-top: 0; }
.pub-customer-shell .pub-customer-hero { background: linear-gradient(120deg, #fff0e5, #fffaf3); border-color: #f0ddca; border-radius: 20px; box-shadow: none; }
.pub-customer-shell .pub-customer-avatar { background: #ad3600; color: #fff; border-radius: 16px; }
.pub-customer-shell .rp-sidebar-card { border-color: #ebe3da; box-shadow: none; border-radius: 16px; }
.pub-customer-shell .rp-sidebar-card h3 { color: #51483f; text-transform: none; letter-spacing: 0; font-size: 1.1rem; }
.pub-customer-shell .auth-field-control { min-height: 48px; border-radius: 10px; }
.pub-customer-shell .auth-field-control input { font-size: 16px; min-height: 44px; }
.pub-customer-shell .pub-btn { min-height: 46px; border-radius: 10px; }
.pub-customer-shell .pub-customer-logout-btn { min-height: 44px; }

@media (max-width: 780px) {
    .pub-customer-forms { grid-template-columns: 1fr; }
    .pub-customer-reviews { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .pub-customer-shell { gap: 12px; }
    .pub-customer-hero { flex-wrap: wrap; padding: 14px; gap: 12px; }
    .pub-customer-hero-text h2 { font-size: 1.1rem; }
    .pub-customer-hero-meta { width: 100%; justify-content: stretch; }
    .pub-customer-hero-meta > div { min-width: 0; flex: 1; }
}

/* Legacy earn strip removed — earn is an icon in .pub-mobile-actions */

/* ==================================================
   /earn PAGE — hero, steps, tiers, FAQ, CTA
================================================== */
.earn-hero {
    position: relative; overflow: hidden;
    margin: 24px calc(-1 * var(--pub-pad)) 0;
    padding: clamp(40px, 7vw, 72px) var(--pub-pad);
    color: var(--color-white);
    background:
        linear-gradient(135deg, rgba(31,31,31,0.78) 0%, rgba(31,31,31,0.5) 45%, rgba(247,77,0,0.78) 100%),
        radial-gradient(circle at 20% 0%, rgba(255,180,11,0.4), transparent 55%),
        var(--color-charcoal-800);
    border-radius: var(--r-panel);
}
.earn-hero-inner { max-width: 780px; margin: 0 auto; }
.earn-kicker {
    display: inline-block; padding: 6px 14px;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 18px;
}
.earn-hero h1 {
    color: var(--color-white); font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; margin: 0 0 14px;
}
.earn-hero p {
    color: rgba(255,255,255,0.88); font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.55; max-width: 56ch; margin: 0 0 28px;
}
.earn-hero-stats {
    display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px;
}
.earn-hero-stats > div {
    padding: 14px 18px; border-radius: var(--r-xl);
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    min-width: 160px;
}
.earn-hero-stats strong {
    display: block; font-family: var(--font-display); font-size: 1.4rem;
    color: var(--color-white); font-variant-numeric: tabular-nums;
}
.earn-hero-stats small {
    display: block; margin-top: 2px; color: rgba(255,255,255,0.75);
    font-size: 0.78rem; font-weight: 600;
}
.earn-hero-actions {
    display: flex; flex-wrap: wrap; gap: 12px;
}
.earn-hero-actions .pub-btn-ghost {
    background: rgba(255,255,255,0.08); color: var(--color-white);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}
.earn-hero-actions .pub-btn-ghost:hover { background: rgba(255,255,255,0.18); }

.earn-steps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.earn-step {
    position: relative; padding: 24px 22px 20px;
    background: var(--color-white); border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-panel); box-shadow: var(--sh-soft);
}
.earn-step h3 { margin: 10px 0 8px; font-size: 1.1rem; }
.earn-step p { margin: 0; color: var(--color-charcoal-500); font-size: 0.9rem; line-height: 1.55; }
.earn-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--color-orange-light); color: var(--color-orange);
    font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}

.earn-tiers {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.earn-tier {
    position: relative; padding: 22px 20px 20px;
    background: var(--color-white); border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-panel); box-shadow: var(--sh-card);
    display: flex; flex-direction: column; gap: 6px;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}
.earn-tier:hover { transform: translateY(-2px); border-color: var(--color-orange-200); box-shadow: var(--sh-float); }
.earn-tier-label {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--color-orange);
}
.earn-tier-count { font-size: 0.95rem; color: var(--color-charcoal-500); }
.earn-tier-bonus {
    font-family: var(--font-display); font-size: 1.85rem; font-weight: 700;
    color: var(--color-charcoal); font-variant-numeric: tabular-nums;
}
.earn-tier p { margin: 2px 0 0; font-size: 0.85rem; color: var(--color-charcoal-400); line-height: 1.4; }
.earn-tier.earn-tier-0 { background: linear-gradient(135deg, var(--color-orange-light), var(--color-white)); }
.earn-tier.earn-tier-1 { background: linear-gradient(135deg, var(--color-gold-50), var(--color-white)); }
.earn-tier.earn-tier-2 { background: linear-gradient(135deg, var(--color-orange-100), var(--color-white)); border-color: var(--color-orange-200); }
.earn-tier.earn-tier-3 {
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    color: var(--color-white); border-color: transparent;
}
.earn-tier.earn-tier-3 .earn-tier-label,
.earn-tier.earn-tier-3 .earn-tier-count,
.earn-tier.earn-tier-3 .earn-tier-bonus { color: var(--color-white); }
.earn-tier.earn-tier-3 p { color: rgba(255,255,255,0.85); }

.earn-fineprint {
    margin: 20px auto 0; text-align: center; max-width: 640px;
    color: var(--color-charcoal-500); font-size: 0.9rem; line-height: 1.6;
}
.earn-fineprint strong { color: var(--color-charcoal); font-weight: 700; }

.earn-fit {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.earn-fit-card {
    padding: 24px 22px; background: var(--color-white);
    border: 1px solid var(--color-charcoal-100); border-radius: var(--r-panel);
    box-shadow: var(--sh-soft);
}
.earn-fit-card h3 { margin: 12px 0 8px; font-size: 1.08rem; }
.earn-fit-card p { margin: 0; color: var(--color-charcoal-500); font-size: 0.9rem; line-height: 1.55; }
.earn-fit-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--r-xl);
    background: var(--color-orange-light); color: var(--color-orange);
}

.earn-faq-list {
    max-width: 720px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 10px;
}
.earn-faq-list details {
    background: var(--color-white); border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-xl); padding: 14px 18px;
    transition: border-color 0.15s ease-out;
}
.earn-faq-list details[open] { border-color: var(--color-orange-200); box-shadow: var(--sh-soft); }
.earn-faq-list summary {
    cursor: pointer; font-weight: 700; color: var(--color-charcoal);
    list-style: none; padding-right: 24px; position: relative;
}
.earn-faq-list summary::-webkit-details-marker { display: none; }
.earn-faq-list summary::after {
    content: '+'; position: absolute; right: 0; top: -2px;
    font-size: 1.4rem; line-height: 1; color: var(--color-orange);
    font-family: var(--font-display); font-weight: 700;
    transition: transform 0.15s ease-out;
}
.earn-faq-list details[open] summary::after { content: '−'; }
.earn-faq-list p { margin: 10px 0 0; color: var(--color-charcoal-500); font-size: 0.92rem; line-height: 1.6; }

.earn-cta {
    /* Pull through .pub-content bottom padding so CTA sits flush on the footer */
    margin: 40px calc(-1 * var(--pub-pad)) -64px;
    padding: 48px var(--pub-pad);
    background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
    color: var(--color-white); text-align: center;
}
.earn-cta-inner { max-width: 680px; margin: 0 auto; }
.earn-cta h2 { color: var(--color-white); font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 10px; }
.earn-cta p { color: rgba(255,255,255,0.9); margin: 0 0 24px; font-size: 1rem; line-height: 1.5; }
.earn-cta .earn-hero-actions { justify-content: center; }
.earn-cta .pub-btn-gold {
    background: var(--color-charcoal-800); color: var(--color-white); box-shadow: none;
}
.earn-cta .pub-btn-gold:hover { background: var(--color-charcoal); }
.earn-cta .pub-btn-ghost {
    background: rgba(255,255,255,0.14); color: var(--color-white);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.earn-cta .pub-btn-ghost:hover { background: rgba(255,255,255,0.22); }

@media (max-width: 780px) {
    .earn-hero { margin-left: calc(-1 * var(--pub-pad)); margin-right: calc(-1 * var(--pub-pad)); border-radius: 0; }
    .earn-cta {
        margin-left: calc(-1 * var(--pub-pad));
        margin-right: calc(-1 * var(--pub-pad));
        margin-bottom: calc(-1 * (88px + env(safe-area-inset-bottom, 0px)));
    }
    .earn-hero-stats > div { flex: 1 1 calc(50% - 7px); min-width: 0; }
    .earn-hero-actions .pub-btn { flex: 1 1 auto; }
    .earn-cta .pub-btn { flex: 1 1 auto; }
}

/* ==================================================
   Floating feedback widget
================================================== */
.fb-widget {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.fb-launcher {
    width: 54px; height: 54px; border-radius: 50%;
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--color-orange); color: var(--on-orange, #fff);
    box-shadow: 0 12px 28px -12px rgba(247, 77, 0, 0.75);
    transition: transform 0.15s ease-out, background-color 0.15s ease-out;
}
.fb-launcher:hover { transform: translateY(-2px); background: #e04500; }
.fb-launcher:focus-visible { outline: 2px solid var(--color-charcoal); outline-offset: 3px; }
.fb-panel {
    width: min(360px, calc(100vw - 32px));
    background: var(--color-white);
    border: 1px solid var(--color-charcoal-100);
    border-radius: var(--r-panel, 16px);
    box-shadow: 0 24px 48px -20px rgba(20, 16, 12, 0.35);
    padding: 16px 16px 14px;
}
.fb-panel-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    margin-bottom: 12px;
}
.fb-panel-head h2 {
    margin: 0 0 4px; font-size: 1.05rem; line-height: 1.25; color: var(--color-charcoal);
}
.fb-panel-head p {
    margin: 0; font-size: 0.82rem; line-height: 1.45; color: var(--color-charcoal-400);
}
.fb-close {
    width: 32px; height: 32px; border: none; border-radius: 999px;
    background: var(--color-charcoal-50); color: var(--color-charcoal-500);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
}
.fb-close .ico { transform: rotate(45deg); }
.fb-close:hover { background: var(--color-charcoal-100); color: var(--color-charcoal); }
.fb-label {
    display: block; font-size: 0.78rem; font-weight: 700; color: var(--color-charcoal-500);
    margin: 0 0 6px;
}
.fb-optional { font-weight: 500; color: var(--color-charcoal-400); }
.fb-select,
.fb-input,
.fb-textarea {
    width: 100%; box-sizing: border-box;
    border: 1px solid var(--color-charcoal-100); border-radius: var(--r-lg, 10px);
    padding: 10px 12px; font: inherit; color: var(--color-charcoal);
    background: var(--color-white); margin-bottom: 12px;
}
.fb-textarea { resize: vertical; min-height: 96px; }
.fb-select:focus,
.fb-input:focus,
.fb-textarea:focus { outline: none; border-color: var(--color-orange); }
.fb-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.fb-submit { width: 100%; margin-top: 2px; }
.fb-status {
    margin: 0 0 10px; font-size: 0.85rem; line-height: 1.4;
    padding: 8px 10px; border-radius: var(--r-lg, 10px);
}
.fb-status.is-success { background: #eaf7ef; color: #1f6b3a; }
.fb-status.is-error { background: #fdeeee; color: #9b1c1c; }

@media (max-width: 860px) {
    .fb-widget {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
    }
}
@media (max-width: 480px) {
    .fb-row { grid-template-columns: 1fr; }
}

/* Discovery refinement: readable information, compact navigation and touch browsing. */
.fg-hero { min-height: clamp(320px, 46vh, 440px); }
.fg-hero-inner { max-width: 880px; padding-block: 48px; }
.fg-hero h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); line-height: 1.12; }
.fg-hero-compact { min-height: 280px; }
.fg-section-head p, .fg-cat small, .fg-area small { color: var(--color-charcoal-500); }
.fg-search { overflow: visible; }
.fg-search-field { min-width: 0; }
.fg-search-field input { width: 100%; }
.fg-search-field input::placeholder { color: var(--color-charcoal-500); }
.fg-search > .pub-btn { border-radius: 0 var(--r-xl) var(--r-xl) 0; }
.fg-search:focus-within { outline: none; }
.pub-body a:focus-visible, .pub-body button:focus-visible {
    outline: 3px solid var(--color-orange-700); outline-offset: 3px;
}
.pub-card:has(.pub-card-overlay) .pub-card-media {
    background: var(--color-white); border: 1px solid var(--color-charcoal-100);
    height: auto;
}
.pub-card:has(.pub-card-overlay) .pub-card-img { aspect-ratio: 16 / 10; }
.pub-card-overlay { position: relative; padding: 16px; background: var(--color-white); color: var(--color-charcoal); gap: 8px; }
.pub-card-overlay .pub-card-title { color: var(--color-charcoal); white-space: normal; overflow-wrap: anywhere; }
.pub-card-overlay .pub-card-sub { color: var(--color-charcoal-500); margin-bottom: 4px; }
.pub-card-overlay .pub-card-sub span { overflow: hidden; text-overflow: ellipsis; }
.pub-card-overlay .pub-card-status {
    color: var(--color-charcoal-500); border: 0; background: var(--color-charcoal-50);
    min-width: 0; padding: 4px 8px;
}
.pub-card-overlay .pub-card-status .ico { color: var(--color-charcoal-500); }
.pub-card-overlay .pub-card-rating-meta { color: var(--color-charcoal-500); font-size: 0.72rem; }
.pub-card-overlay .pub-card-rating strong { background: var(--color-orange-light); color: var(--color-orange-700); }

@media (max-width: 780px) {
    .fg-hero { min-height: 240px; }
    .fg-hero-inner, .fg-hero-compact .fg-hero-inner { padding: 28px 16px; }
    .fg-hero h1 { font-size: clamp(1.65rem, 7vw, 2.15rem); max-width: 22ch; margin-inline: auto; }
    .fg-hero p { font-size: 0.9rem; max-width: 36ch; margin-inline: auto; }
    .fg-hero-compact { min-height: 210px; }
    .fg-search { border-radius: var(--r-xl); }
    .fg-search-field input, .pub-mobile-search input { font-size: 16px; }
    .fg-search > .pub-btn { padding-inline: 18px; border-radius: 0 var(--r-xl) var(--r-xl) 0; }
    .pub-mobile-icon-btn { width: 44px; height: 44px; }
    .pub-city-picker-mobile { width: 110px; max-width: 110px; height: 44px; min-height: 44px; border-radius: 12px; }
    .pub-city-picker-mobile > .ico { position: absolute; left: 8px; width: 16px; }
    .pub-city-picker-mobile .ui-select-btn { opacity: 1; padding: 0 8px 0 28px; border-radius: 12px; min-height: 44px; }
    .pub-city-picker-mobile .ui-select-label { display: block !important; font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .fg-section { padding-top: 28px; }
    .fg-section-head { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 16px; }
    .fg-section-head > div { min-width: 0; }
    .fg-section-head h2 { font-size: 1.4rem; }
    .fg-section-head p { font-size: 0.82rem; }
    .fg-section-head-center { align-items: flex-start; text-align: left; flex-direction: column; gap: 0; }
    .pub-viewall { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; font-size: 0.8rem; }
    .fg-cats {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 96px;
        gap: 10px; overflow-x: auto; padding: 2px 0 10px; scroll-snap-type: x proximity;
    }
    .fg-cat { padding: 12px 8px; gap: 5px; box-shadow: none; scroll-snap-align: start; }
    .fg-cat-icon { width: 44px; height: 44px; font-size: 1.5rem; margin: 0 0 4px; }
    .fg-cat strong { font-size: 0.8rem; overflow-wrap: anywhere; }
    .fg-cat small { font-size: 0.72rem; }
    .fg-cat-count { display: none; }
    .fg-listings { gap: 16px; }
    .fg-banner { min-height: 0; margin-top: 28px; }
    .fg-banner-inner { padding-block: 28px; }
    .fg-banner h2 { font-size: 1.65rem; }
    .fg-banner p { font-size: 0.9rem; margin-bottom: 18px; }
    .fg-carousel { overflow-x: auto; mask-image: none; -webkit-mask-image: none; scroll-snap-type: x proximity; }
    .fg-carousel-track { will-change: auto; }
    .fg-carousel-track .pub-card { width: min(78vw, 300px); flex-basis: min(78vw, 300px); scroll-snap-align: start; }
    .fg-owner { margin-top: 32px; }
    .fg-owner-inner { padding-block: 28px; gap: 20px; }
    .fg-owner-copy p { font-size: 0.9rem; }
    .pub-tab { color: var(--color-charcoal-500); font-size: 0.7rem; }
    .pub-tab.active { background: var(--color-orange-light); color: var(--color-orange-700); }
    .fb-widget { position: fixed; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); padding: 0; background: transparent; }
    .fb-launcher { width: 44px; height: 44px; border-radius: 50%; padding: 0; }
    .fb-panel { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 150px); overflow-y: auto; }
}
@media (max-width: 350px) {
    .pub-mobile-top img { height: 25px; }
    .pub-city-picker-mobile { width: 88px; max-width: 88px; }
    .pub-mobile-actions { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .pub-body *, .pub-body *::before, .pub-body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .fg-carousel { overflow-x: auto; }
}

/* Login pages: one brand system, with a compact introduction on phones. */
/* Restaurant detail: prioritise the menu, readable prices and section navigation. */
.rl-hero { min-height: clamp(300px, 30vw, 380px); padding: 24px; border-radius: 22px; }
.rl-hero-shade { background: linear-gradient(180deg, rgba(20,20,20,.3), rgba(20,20,20,.12) 25%, rgba(20,20,20,.9)); }
.rl-hero h1 { line-height: 1.15; overflow-wrap: anywhere; }
.rl-hero-tools .pub-save-btn, .rl-back { min-width: 44px; min-height: 44px; }
.rl-act { border-radius: 12px; min-height: 46px; }
.rl-act-wa { background: #147a3c; }
.rl-act-wa:hover { background: #106530; }
.rl-stat { box-shadow: none; border-radius: 14px; }
.rl-stat small, .rl-muted, .rl-summary-score small, .rl-bar { color: #66605a; }
.rl-stat-ico { border-radius: 12px; }
.rl-tabs { gap: 6px; padding-block: 10px; }
.rl-tabs a { min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; box-shadow: none; background: transparent; }
.rl-tabs a.active { background: #fff1e8; color: #ad3600; }
.rl-layout { gap: 28px; grid-template-columns: minmax(0, 1fr) 320px; }
.rl-main, .rl-aside { min-width: 0; }
.rl-about p { font-size: .95rem; margin-top: 22px; }
.rl-menu-heading { margin-bottom: 20px; }
.rl-menu-heading h2 { margin-bottom: 8px; }
.rl-menu-heading p { margin: 0; color: #66605a; font-size: .8rem; line-height: 1.6; }
.rl-dishes { grid-template-columns: 1fr; }
.rl-dish { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; padding: 16px; box-shadow: none; border-radius: 16px; }
.rl-dish-name { line-height: 1.4; font-size: .95rem; }
.rl-dish-desc { color: #66605a; display: block; overflow: visible; }
.rl-dish-price { color: #ad3600; padding: 6px 10px; background: #fff4ed; border-radius: 8px; font-size: .9rem; }
.rl-dish-details { font-size: .8rem; color: #66605a; margin-block: 6px; }
.rl-dish-details summary { cursor: pointer; color: #ad3600; font-weight: 600; padding-block: 5px; }
.rl-dish-details p { margin: 6px 0; line-height: 1.65; overflow-wrap: anywhere; }
.rl-card { box-shadow: none; border-color: #eae3db; border-radius: 16px; }
.rl-card h3 { color: #59534e; letter-spacing: .04em; }
.rl-info > div { min-width: 0; overflow-wrap: anywhere; }
.rl-info a { display: inline-flex; align-items: center; min-height: 32px; }
.rl-map-btn { border-radius: 10px; background: #fff4ed; color: #ad3600; box-shadow: none; }
.rl-copy input, .rl-copy .pub-btn { border-radius: 10px; }
#visit, #write-review { scroll-margin-top: 150px; }
.rl-review { box-shadow: none; }
.rl-owner-reply { margin-top: 14px !important; padding: 12px; border-radius: 10px; background: #fff4ed; }
@media (max-width: 980px) { .rl-layout { grid-template-columns: 1fr; } }
@media (max-width: 780px) {
    .rl-hero { padding: 14px; min-height: 320px; gap: 50px; }
    .rl-hero-body { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; }
    .rl-logo { width: 52px; height: 52px; border-width: 3px; }
    .rl-hero-title { width: auto; }
    .rl-hero h1 { font-size: 1.6rem; }
    .rl-badges { gap: 5px; margin-bottom: 8px; }
    .rl-pill { font-size: .67rem; padding: 5px 8px; line-height: 1.4; }
    .rl-hero-meta { font-size: .8rem; }
    .rl-hero-meta .ico { flex-shrink: 0; }
    .rl-hero-actions { grid-column: 1 / -1; flex-wrap: nowrap; }
    .rl-act { font-size: .75rem; padding-inline: 6px; gap: 4px; }
    .rl-act .ico { width: 15px; }
    .rl-stats { gap: 8px; margin-top: 12px; }
    .rl-stat { padding: 11px 10px; gap: 8px; align-items: flex-start; }
    .rl-stat-ico { width: 28px; height: 28px; }
    .rl-stat-ico .ico { width: 16px; height: 16px; }
    .rl-stat strong { font-size: .8rem; line-height: 1.45; }
    .rl-stat small { font-size: .7rem; }
    .rl-tabs { position: sticky; top: 68px; z-index: 35; margin-top: 12px; }
    .rl-tabs a { font-size: .8rem; padding-inline: 14px; }
    .rl-section, .rl-cat, #visit, #write-review { scroll-margin-top: 140px; }
    .rl-section { margin-top: 28px; }
    .rl-dish { grid-template-columns: 72px minmax(0, 1fr); gap: 10px 12px; padding: 12px; }
    .rl-dish-img { width: 72px; height: 72px; grid-row: 1 / 3; }
    .rl-dish-body { grid-column: 2; }
    .rl-dish-price { grid-column: 2; justify-self: start; padding: 0; background: transparent; }
    .rl-dish-tags { margin-top: 8px; }
    .rl-summary { grid-template-columns: 78px minmax(0, 1fr); gap: 18px; padding: 18px 14px; justify-items: stretch; }
    .rl-summary-score strong { font-size: 2.5rem; }
    .rl-summary-score small { font-size: .68rem; }
    .rl-stars { font-size: .8rem; letter-spacing: 0; }
    .rl-bars { min-width: 0; }
    .rl-bar { grid-template-columns: 22px minmax(0, 1fr) 12px; gap: 5px; }
    .rl-reviews { grid-template-columns: 1fr; }
    .rl-sig-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
    .rl-copy { flex-direction: row; }
    .rl-copy .pub-btn { width: auto; }
}
.submit-page { max-width: 1120px; margin: 0 auto; padding: 16px 0 0; }
.submit-intro { padding: 32px 0 36px; max-width: 760px; }
.submit-eyebrow { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; color: #ad3600; background: #fff1e8; padding: 7px 10px; border-radius: 6px; }
.submit-intro h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; margin: 16px 0 12px; }
.submit-intro > p { font-size: 1rem; color: #66605a; line-height: 1.7; max-width: 60ch; margin: 0; }
.submit-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 40px; align-items: start; }
.submit-guide { border-radius: 22px; padding: 30px; background: #fff1e8; border: 1px solid #f5dfcf; }
.submit-guide-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: #ad3600; background: #fff; margin-bottom: 20px; }
.submit-guide h2 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 12px; }
.submit-guide p { font-size: .875rem; line-height: 1.65; color: #66564b; margin: 0; }
.submit-guide ol { list-style: none; counter-reset: submit-step; padding: 0; margin: 28px 0; display: grid; gap: 22px; }
.submit-guide li { counter-increment: submit-step; position: relative; padding-left: 40px; display: grid; gap: 5px; font-size: .85rem; }
.submit-guide li::before { content: counter(submit-step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #ad3600; font-weight: 700; }
.submit-guide li span { color: #66564b; font-size: .8rem; line-height: 1.5; }
.submit-owner { border-top: 1px solid #ecd3bf; padding-top: 22px; }
.submit-owner > strong { display: block; margin-bottom: 8px; }
.submit-owner a { display: inline-flex; align-items: center; gap: 6px; color: #ad3600; font-weight: 700; font-size: .85rem; min-height: 44px; margin-top: 8px; }
.submit-form-wrap { width: 100%; max-width: none; margin: 0; min-width: 0; }
.submit-page .pub-seg { min-height: 56px; padding: 5px; margin-bottom: 18px; background: #f3eee8; border-color: #ebe2d8; border-radius: 14px; }
.submit-page .pub-seg-btn { font-size: .85rem; border-radius: 10px; padding-inline: 10px; }
.submit-page .pub-seg-btn.is-active { color: #ad3600; }
.submit-page .rp-sidebar-card { padding: 28px; border-radius: 20px; border: 1px solid #eae3db; box-shadow: 0 8px 30px -20px rgba(73,38,12,.18); }
.submit-form-heading { margin-bottom: 22px; }
.submit-form-heading h2 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 8px; }
.submit-page .submit-form-heading h3 { font-size: 1.1rem; margin: 0 0 6px; }
.submit-form-heading h3 span { font-family: var(--font-primary); color: #77716b; font-weight: 400; font-size: .75rem; margin-left: 6px; }
.submit-form-heading p { font-size: .8rem; line-height: 1.6; color: #66605a; margin: 0; }
.submit-page .pub-field > label { text-transform: none; letter-spacing: 0; color: #353535; font-size: .82rem; margin-bottom: 7px; }
.submit-page .rp-form input:not([type="hidden"]), .submit-page .rp-form textarea { border-radius: 12px; border-color: #e5ded7; background: #fffdf9; font-size: 16px; min-height: 48px; }
.submit-page .rp-form input::placeholder, .submit-page .rp-form textarea::placeholder { color: #878079; }
.submit-page .rp-form > .pub-btn { min-height: 50px; border-radius: 12px; background: #e64700; margin-top: 8px; }
.submit-page .fg-form-done > strong { display: block; font-family: var(--font-display); font-size: 1.6rem; }
@media (max-width: 780px) {
    .submit-page { padding-top: 0; }
    .submit-intro { padding: 12px 0 24px; }
    .submit-intro h1 { font-size: 2rem; }
    .submit-intro > p { font-size: .875rem; }
    .submit-eyebrow { font-size: .6rem; letter-spacing: .06em; }
    .submit-layout { display: flex; flex-direction: column; gap: 24px; }
    .submit-guide { order: 2; padding: 22px; width: 100%; }
    .submit-guide-icon, .submit-guide ol { display: none; }
    .submit-guide h2 { font-size: 1.4rem; }
    .submit-owner { margin-top: 18px; padding-top: 18px; }
    .submit-page .rp-sidebar-card { padding: 20px 16px; border-radius: 16px; }
    .submit-page .pub-seg-btn { font-size: .75rem; line-height: 1.35; }
    .submit-form-heading h2 { font-size: 1.35rem; }
}
.auth-application .auth-field-row { gap: 14px; }
.auth-login .pub-flash { border-radius: 12px; line-height: 1.6; font-size: .875rem; }
.auth-login .auth-application .auth-field-row { min-width: 0; }
.auth-login .auth-application .auth-field label { line-height: 1.6; }
.auth-login .auth-application .auth-field label .rl-muted { font-size: .75rem; }
.auth-login .auth-loc-picker select { min-height: 48px; padding: 10px 12px; font-size: 16px; border-radius: 12px; border-color: #e5ded7; background-color: #fffdf9; }
.auth-login .auth-loc-picker input:not([type="hidden"]) { min-height: 48px; font-size: 16px; border-radius: 12px; }
.auth-application .auth-field-row:last-of-type { grid-template-columns: 1fr; }
@media (max-width: 560px) {
    .auth-application .auth-field-row { grid-template-columns: 1fr; }
}
.auth-login { overflow: auto; background: #faf6f0; padding: 32px; }
.auth-login .auth-shell {
    display: grid; grid-template-columns: 1fr 1fr; width: min(1020px, 100%);
    max-height: none; overflow: visible; margin: auto; background: #fff;
    border: 1px solid #eee4da; border-radius: 28px;
    box-shadow: 0 24px 80px -40px rgba(73, 38, 12, .28);
}
.auth-brand-panel {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
    padding: 44px; border-radius: 27px 0 0 27px; color: #fff;
    background: linear-gradient(145deg, #b43b09, #e84c06 58%, #f99719);
}
.auth-brand-panel::after {
    content: ''; position: absolute; z-index: -1; width: 340px; height: 340px;
    border: 55px solid rgba(255,255,255,.07); border-radius: 50%; bottom: -210px; right: -160px;
}
.auth-brand-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .16em; }
.auth-brand-mark { width: 68px; height: 68px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); border-radius: 20px; margin-bottom: 24px; }
.auth-brand-copy h2 { color: #fff; font-size: clamp(2rem, 3vw, 2.65rem); line-height: 1.12; margin: 0 0 16px; }
.auth-brand-copy p { font-size: 1rem; line-height: 1.65; margin: 0; max-width: 31ch; color: #fff4eb; }
.auth-brand-copy ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-brand-copy li { display: flex; align-items: center; gap: 10px; font-size: .85rem; line-height: 1.5; }
.auth-brand-copy li .ico { flex-shrink: 0; }
.auth-brand-foot { font-size: .75rem; color: #fff1e4; }
.auth-login .auth-form-side { border: 0; border-radius: 0 27px 27px 0; padding: 34px 42px 40px; justify-content: flex-start; }
.auth-login .auth-form-top img { height: 40px; }
.auth-login .auth-back { background: transparent; min-height: 44px; border: 0; color: #595959; padding-right: 0; }
.auth-login .auth-form-inner { padding: 40px 0 0; margin-block: auto; }
.auth-login .auth-form-head { margin-bottom: 26px; }
.auth-login .auth-kicker { color: #ad3600; background: #fff1e8; border-radius: 6px; padding: 5px 9px; font-size: .65rem; margin-bottom: 12px; }
.auth-login .auth-form-head h1 { font-size: 2rem; margin-bottom: 8px; }
.auth-login .auth-form-head p { color: #66605a; font-size: .875rem; line-height: 1.6; }
.auth-login .auth-form { gap: 16px; }
.auth-login .auth-field { gap: 8px; }
.auth-login .auth-field label { text-transform: none; letter-spacing: 0; font-size: .82rem; color: #353535; }
.auth-login .auth-field-control { min-height: 50px; border-radius: 12px; padding: 0 14px; border-color: #e5ded7; background: #fffdf9; }
.auth-login .auth-field-control input { min-height: 48px; font-size: 16px; }
.auth-login .auth-field-control input::placeholder { color: #878079; }
.auth-login .auth-field-control:focus-within { border-color: #db916f; }
.auth-login .pass-toggle { width: 44px; height: 44px; }
.auth-login .auth-submit { min-height: 50px; border-radius: 12px; margin-top: 4px; font-size: .95rem; background: #e64700; box-shadow: 0 6px 16px -10px #bd3b00; }
.auth-login .auth-submit:hover { background: #cd4000; }
.auth-login .auth-switch { margin-top: 24px; padding-top: 20px; font-size: .82rem; flex-wrap: wrap; gap: 6px; }
.auth-login .auth-field-meta a, .auth-login .auth-switch a { color: #ad3600; }
@media (max-width: 780px) {
    .auth-login { padding: 20px 16px; display: block; }
    .auth-login .auth-shell { display: flex; flex-direction: column; width: min(460px, 100%); margin: 0 auto; border-radius: 22px; }
    .auth-brand-panel { order: 2; padding: 24px; border-radius: 0 0 21px 21px; gap: 0; }
    .auth-brand-eyebrow, .auth-brand-mark, .auth-brand-foot, .auth-brand-copy ul { display: none; }
    .auth-brand-copy h2 { font-size: 1.45rem; margin-bottom: 8px; }
    .auth-brand-copy p { max-width: none; font-size: .85rem; line-height: 1.5; }
    .auth-login .auth-form-side { padding: 22px 24px 26px; border-radius: 21px 21px 0 0; }
    .auth-login .auth-form-top img { height: 34px; }
    .auth-login .auth-form-inner { padding-top: 24px; margin: 0; }
    .auth-login .auth-form-head { margin-bottom: 22px; }
    .auth-login .auth-form-head h1 { font-size: 1.85rem; }
    .auth-login .auth-form { gap: 14px; }
    .auth-login .auth-switch { margin-top: 20px; padding-top: 18px; }
    .auth-login .fb-widget { bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
    .auth-login .fb-panel { bottom: max(70px, env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 350px) {
    .auth-login { padding: 12px; }
    .auth-login .auth-form-side { padding-inline: 18px; }
}
