+ {chips.map(chip => {
+ const active = statusFilter === chip.key
+ return (
+
+ )
+ })}
+
+ )
+}
+
+function EmptyState({ icon, title, text }: { icon: React.ReactNode; title: string; text: string }): React.ReactElement {
+ return (
+
+
+
+ {/* Lists rail — desktop sidebar / mobile slide-over */}
+
+
+ {/* Main column */}
+
+
+ {/* Header */}
+
+
+
+
{title}
+ {c.activeCollection?.is_owner === false && (
+ {t('collections.shared')}
+ )}
+
+
+
+ {showSelect && (
+
+ )}
+
+
+
+
+ {/* Toolbar: search + status chips */}
+
+
+
+
+ c.setSearch(e.target.value)}
+ placeholder={t('collections.search')}
+ className="w-44 sm:w-56 pl-8 pr-3 py-1.5 rounded-lg border border-edge bg-surface-input text-content text-[13px] outline-none focus:border-accent"
+ />
+
+
+
+ {/* Select-mode action bar */}
+ {c.selectMode && c.selectedIds.length > 0 && (
+
+
{t('collections.selectedCount', { count: c.selectedIds.length })}
+
+
+
+
+
+ )}
+
+ {noLists ? (
+
} title={t('collections.empty.firstTitle')} text={t('collections.empty.firstText')} />
+ ) : body}
+
+
+
+
+ {/* Mobile rail slide-over */}
+ {c.mobileRailOpen && (
+
c.setMobileRailOpen(false)}>
+
+
e.stopPropagation()}>
+ { c.setMobileRailOpen(false); c.setShowNewList(true) }}
+ onStartRename={c.handleStartRename}
+ onCommitRename={c.handleCommitRename}
+ onSetColor={c.handleSetColor}
+ onRequestDelete={c.setConfirmDeleteList}
+ onAcceptInvite={c.handleAcceptInvite}
+ onDeclineInvite={c.handleDeclineInvite}
+ t={t}
+ />
+
+
+ )}
+
+ {/* Detail panel — re-pointed PlaceInspector in collection mode. The outer
+ layer is click-through (pointer-events-none) so the grid behind stays
+ interactive; only the floating card re-enables pointer events. */}
+ {c.detailPlace && (
+
+ )}
+
+ {/* Copy to trip */}
+
+
+ {/* New list modal */}
+
c.setShowNewList(false)}
+ title={t('collections.newList')}
+ size="sm"
+ footer={
+
+
+
+
+ }
+ >
+
+
+
+ c.setNewListName(e.target.value)}
+ onKeyDown={e => { if (e.key === 'Enter' && c.newListName.trim()) c.handleCreateList() }}
+ placeholder={t('collections.listNamePlaceholder')}
+ className="w-full px-3 py-2 rounded-lg border border-edge bg-surface-input text-content text-[14px] outline-none focus:border-accent"
+ />
+
+
+
+
+ {SWATCHES.map(col => (
+
+
+
+
+
+ {/* Delete-list confirm */}
+
c.setConfirmDeleteList(null)}
+ title={t('collections.deleteList')}
+ size="sm"
+ footer={
+
+
+
+
+ }
+ >
+ {t('collections.deleteListConfirm')}
+
+
+ )
+}
diff --git a/client/src/pages/TripPlannerPage.tsx b/client/src/pages/TripPlannerPage.tsx
index c3aeac3b4..8098ac405 100644
--- a/client/src/pages/TripPlannerPage.tsx
+++ b/client/src/pages/TripPlannerPage.tsx
@@ -697,7 +697,7 @@ export default function TripPlannerPage(): React.ReactElement | null {
)}
-