> Full index: https://docs.buchungapp.com/llms.txt
> Early access. Use the API base, channel key and allowed origins supplied by Buchung before running examples.

# Storefront component craft

When building a custom booking storefront in React, Next.js or Tailwind, adopt **interaction mechanics** from polished ecommerce sites while keeping the **visual register** of travel and experience bookings.

## Mechanics from commerce, register from travel [#mechanics-from-commerce-register-from-travel]

Apparel storefronts strip cards down to a 3:4 photo, a name and a price. Experience bookings are different: a parent booking a week-long camp or a traveller booking an expedition wants warm real-world photography, a readable description, decision facts, a clear headline price and trust signals beside the booking column.

Borrow the mechanics below, and keep the warmer experience register where the two conflict.

## 1. Filter bar and mobile filter sheet [#1-filter-bar-and-mobile-filter-sheet]

A filter bar feels broken when options wrap awkwardly inside a tall box or scroll inside a cramped panel.

- **Desktop bar:** one quiet horizontal row of facet triggers (text or outline pills) with a small tabular count badge when active (`ml-1.5 px-1.5 py-0.5 text-xs tabular-nums`) and a subtle chevron.
- **Content-hugging popovers:** anchor one popover per trigger (`bottom start`, 8px gap). Size the panel to its longest label as a clean vertical list (`whitespace-nowrap`) with no unnecessary inner scroll; close on Escape, outside click or choosing a single-select option.
- **Separate active-filter strip:** display selected values in a dedicated row of removable chips (each with a clear `sr-only` remove label) plus a "Clear all" action so the trigger bar never reflows.
- **Mobile bottom or side sheet:** behind one "Filters (N)" button, open a sheet with **one single scroll area** for all facet sections and a sticky footer CTA showing the live count ("Show 14 activities").
- **Empty filter state:** if an operator has no active filter groups on a listing, hide the filter trigger completely rather than opening an empty drawer.
- **Available facet options:** render the latest options after each selection. If `optionsTruncated` is true, present the shown options without implying they are the full set. See [facet counts](/docs/developers/data-model#exact-totals-and-facet-counts).

## 2. Scroll discipline on filter and option changes [#2-scroll-discipline-on-filter-and-option-changes]

Every choice that refines the current page (clicking a filter chip, picking a month, switching a variation or stepping through a gallery) should **update the URL without jumping the scroll position**:

```ts
// Next.js App Router example
router.replace(`${pathname}?${nextParams.toString()}`, { scroll: false });
```

- Use `scroll={false}` on `<Link>` or `router.replace` for filters, period controls and option chips, and omit `#hash` fragments unless scrolling to a section is the link's explicit job.
- Clear the list cursor when a filter changes so the updated results start on the first page.
- Keep normal forward page navigation (clicking an activity card to open its detail page) scrolling cleanly to the top.

## 3. Full-bleed peeking card rows [#3-full-bleed-peeking-card-rows]

A horizontal row of collection or hero tiles looks cut off when it stops inside the page container gutter.

- Place the horizontal scroller outside the padded container (`overflow-x-auto snap-x snap-mandatory`), and apply the page gutter as padding on the inner flex track (`px-4 sm:px-6 lg:px-8`).
- Align the first tile flush with the section heading above it, keep a trailing gutter after the last tile, and choose tile widths so a partial tile **peeks past the right viewport edge** at every breakpoint to signal horizontal scrolling naturally.
- Place tile labels on a bottom gradient scrim over the image (`bg-gradient-to-t from-black/75 via-black/15 to-transparent`) with motion guarded by `motion-reduce:transition-none`.

## 4. Activity cards that align cleanly [#4-activity-cards-that-align-cleanly]

- Use a full-height flex column (`flex h-full flex-col`) and push the price + next-date footer to the bottom (`mt-auto`) so prices line up horizontally across every card in a grid row.
- Keep one primary clickable destination per card (using a stretched link overlay on the title anchor) instead of competing mini-buttons.
- **Do not clamp descriptions with a hover tooltip:** native `title` tooltips fail on touchscreens and screen readers. Either render concise descriptions in full, or provide an accessible inline "Read more" disclosure button.
- Show 12 to 24 cards per page with "Show more" / cursor pagination rather than tiny 4-item pages.

## 5. Media without clutter [#5-media-without-clutter]

- **Never put a "Video" badge over playing media:** a playing video speaks for itself; reserve badges strictly for commercial facts that change a decision ("Sold out", "Opens 1 March").
- **Ambient video:** use `autoPlay muted loop playsInline` with a `poster` image, `aria-hidden` when decorative, and fall back to the poster image under `prefers-reduced-motion: reduce`.
- **Responsive `srcset`:** pass only the entries returned by Buchung in `media.srcSet` and never alter signed URLs.

## 6. Inline contact and copy actions [#6-inline-contact-and-copy-actions]

- Render phone numbers and emails as direct `tel:` and `mailto:` links with a leading icon rather than boxing words like "Email" or "Copy" on a separate line.
- If you add a copy-to-clipboard button, sit a compact inline ghost icon button right beside the link with an explicit `aria-label` (for example `"Copy email address"`), swap the Copy icon to a Check icon for 2 seconds on click, and announce `"Copied"` in a polite `aria-live` region.
- Avoid hover-only affordances anywhere in the booking path.

