/* Shared select finish for discovery, forms and dashboard filters. */
.ui-select-btn {
    min-height: 46px; border-radius: 12px; border-color: #e4e1dd;
    padding: 11px 14px; background: #fff; font-weight: 600;
    box-shadow: 0 2px 4px rgba(35, 29, 23, .025);
}
.ui-select-label.is-placeholder { color: #595959; font-weight: 500; }
.ui-select-chevron { color: #77716b; }
.ui-select-btn:hover { border-color: #c9beb4; background: #fffdf9; }
.ui-select.is-open .ui-select-btn { border-color: #c9beb4; box-shadow: none; }
.ui-select-menu {
    box-sizing: border-box; padding: 6px; border: 1px solid #eae3dc;
    border-radius: 16px; background: #fff;
    box-shadow: 0 16px 44px -12px rgba(48, 34, 22, .22), 0 2px 6px rgba(48, 34, 22, .04);
    overscroll-behavior: contain; scrollbar-width: thin;
}
.ui-select-option {
    box-sizing: border-box; min-height: 44px; padding: 10px 12px;
    gap: 16px; border-radius: 10px; font-size: .875rem; font-weight: 500;
    line-height: 1.4; overflow-wrap: anywhere;
}
.ui-select-option.is-placeholder { color: #595959; }
.ui-select-option.is-active,
.ui-select-option.is-active:hover,
.ui-select-option.is-active.is-placeholder {
    background: #fff1e8; color: #9b3507 !important; font-weight: 600;
}
.ui-select-option.is-active::after { content: '✓'; margin-left: auto; font-weight: 700; }
.ui-select-option:hover, .ui-select-option:focus-visible { background: #f7f5f2; color: #353535; outline: none; }
.ui-select-btn:focus-visible { outline: 2px solid #ad3600; outline-offset: 3px; }
/* Pointer clicks keep the existing shape; keyboard navigation retains its indicator. */
.pub-body :focus:not(:focus-visible), .admin-body :focus:not(:focus-visible) { outline: none; }
.pub-body .fg-search-field input:focus { outline: none; }
.admin-field .ui-select.is-open .ui-select-btn { box-shadow: none; }

/* Hide only the visual scrollbar; touch, trackpad and keyboard scrolling remain. */
.fg-cats, .fg-carousel { scrollbar-width: none; -ms-overflow-style: none; }
.fg-cats::-webkit-scrollbar, .fg-carousel::-webkit-scrollbar { display: none; }
.fg-search:has(#dish-q) { grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
.pub-topbar { border-bottom-color: #eee7df; box-shadow: 0 2px 14px rgba(44, 31, 20, .035); }
.pub-topbar .pub-nav-item { border-radius: 10px; }
.pub-topbar .pub-nav-item.active { background: #fff1e8; color: #ad3600; }
.pub-city-picker { background: #fff; border: 1px solid #e8e1da; border-radius: 12px; color: #ad3600; }
.pub-city-picker .ui-select-label { color: #353535; font-weight: 600; }
.pub-city-picker .ui-select-chevron { color: #77716b; }
.discover-filters { gap: 10px; }
.discover-filters .ui-select { min-width: 0; }
@media (max-width: 780px) {
    .pub-mobile-header { background: #fffdf9; box-shadow: 0 3px 16px rgba(44,31,20,.04); padding-block: 10px; }
    .pub-mobile-top { gap: 12px; }
    .pub-mobile-actions { gap: 6px; }
    .pub-mobile-icon-btn { border-color: #eee7df; background: #fff; border-radius: 14px; }
    .pub-mobile-icon-btn:hover { background: #fff1e8; }
    .pub-city-picker-mobile { width: clamp(104px, 30vw, 136px); max-width: 136px; border-radius: 14px; background: #fff; }
    .pub-city-picker-mobile > .ico { left: 10px; color: #ad3600; }
    .pub-city-picker-mobile .ui-select-btn { padding: 0 9px 0 31px; border-radius: 14px; }
    .pub-city-picker-mobile .ui-select-label { font-size: .78rem; }
    .pub-city-picker-mobile:focus-within { background: #fff1e8; border-color: #f0a078; }
    .discover-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .discover-filters .ui-select { width: 100%; max-width: none; }
    .discover-filters .ui-select-btn { min-height: 46px; font-size: .8rem; padding-inline: 10px; }
}
@media (max-width: 350px) {
    .pub-mobile-actions { gap: 3px; }
    .pub-city-picker-mobile { width: 92px; max-width: 92px; }
    .pub-mobile-top { gap: 6px; }
}
