/* ═══════════════════════════════════════════════════════════════════════════
   modal.css — vanilla modal / bottom-sheet component

   Used by /static/js/modal.js (window.PFModal).
   Prefix .pf-modal*  — does not depend on or conflict with any other CSS.
   Goal: visually match or exceed Mobiscroll's iOS popup theme so we can
   drop the .mobiscroll().popup() calls without losing polish.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───── Pre-init hide ─────────────────────────────────────────────────────
   Elements marked .pf-modal-cloak stay invisible until PFModal.create()
   wraps them. Mirrors Mobiscroll's .mbsc-cloak so the same pattern of
   `style="display:none;" class="pf-modal-cloak"` keeps working. */
.pf-modal-cloak { display: none !important; }

/* ───── Host: full-viewport overlay container ─────────────────────────── */
.pf-modal-host {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
}
.pf-modal-host.pf-open { display: flex; }

/* ───── Backdrop ──────────────────────────────────────────────────────── */
.pf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 200ms ease;
}
.pf-modal-host.pf-open .pf-modal-backdrop { opacity: 1; }

/* ───── Modal frame (shared) ─────────────────────────────────────────── */
.pf-modal {
  position: relative;
  z-index: 1;
  background: #ffffff;
  color: #222222;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  max-height: 90dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24), 0 4px 12px rgba(0, 0, 0, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ───── Center variant ───────────────────────────────────────────────── */
.pf-modal.pf-modal-center {
  width: calc(100% - 32px);
  max-width: 480px;
  border-radius: 16px;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}
.pf-modal-host.pf-open .pf-modal.pf-modal-center {
  transform: scale(1);
  opacity: 1;
}

/* ───── Sheet variant (bottom slide-up) ──────────────────────────────── */
.pf-modal-host.pf-modal-host-sheet {
  align-items: flex-end;
  justify-content: stretch;
}
.pf-modal.pf-modal-sheet {
  width: 100%;
  max-width: 100%;
  /* Let the sheet grow to the full viewport when content demands it.
     When content fits in less, the flex layout shrinks the frame to
     hug the content — so a short popup still feels like a sheet, and
     a content-heavy popup goes effectively full-screen without forcing
     the user to scroll past empty space at the top. */
  max-height: 100dvh;
  border-radius: 18px 18px 0 0;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.pf-modal-host.pf-modal-host-sheet.pf-open .pf-modal.pf-modal-sheet {
  transform: translateY(0);
}

/* Drag-handle bar (visual only — Pass 1 does not implement drag-to-close). */
.pf-modal-sheet .pf-modal-handle {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  margin: 8px auto 0;
  flex: 0 0 auto;
}

/* ───── Sheet → centred card on tablets and up ────────────────────────
   Bottom-anchored sheets are the right pattern on phones (one-thumb
   reach, downward swipe to dismiss) but on a wide screen they read as
   a giant slab welded to the viewport floor. From 600 px up we lift
   the sheet off the bottom, cap its width, round all four corners,
   and hide the drag handle — it becomes a centred floating card while
   keeping the same slide-up entrance for continuity.
   ────────────────────────────────────────────────────────────────── */
@media (min-width: 600px) {
  .pf-modal-host.pf-modal-host-sheet {
    align-items:     center;   /* vertical centre */
    justify-content: center;   /* horizontal centre — required because the
                                  base rule's `justify-content: stretch`
                                  is invalid for flex and falls back to
                                  flex-start, pinning the card to the left. */
  }
  .pf-modal.pf-modal-sheet {
    width: calc(100% - 48px);
    max-width: 600px;
    /* On desktop the sheet is auto-centred (see .pf-modal-host-sheet
       above), so we DO want a small breathing band so the centred card
       reads as a dialog, not a fullscreen takeover. */
    max-height: min(94dvh, 900px);
    border-radius: 18px;
    padding-bottom: 0;
  }
  .pf-modal-sheet .pf-modal-handle { display: none; }
}

/* ───── Header ────────────────────────────────────────────────────────── */
.pf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  flex: 0 0 auto;
}
/* Title + optional subtitle stack vertically; this wrap is the flex
   item that owns both rows and shares the header row with the close
   button. */
.pf-modal-title-wrap {
  flex: 1 1 auto;
  min-width: 0;            /* allow truncation inside flex */
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pf-modal-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-align: left;
  letter-spacing: 0.1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1c1c1e;
}
/* Subtitle / kicker — used by the restaurant sheet to show the city
   and a star rating right under the title. Small caps-ish secondary
   colour. innerHTML is allowed (see modal.js) so a ★ glyph can be
   wrapped in an accent-coloured span. */
.pf-modal-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: #6e6e75;
  line-height: 1.2;
  letter-spacing: 0.1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-modal-subtitle .pf-modal-subtitle-star {
  color: #f5a623;
  font-weight: 700;
}
.pf-modal-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: #222222;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, transform 120ms ease;
  -webkit-appearance: none;
          appearance: none;
}
.pf-modal-close:hover  { background: rgba(0, 0, 0, 0.10); }
.pf-modal-close:active { transform: scale(0.92); }

/* ───── Body ─────────────────────────────────────────────────────────── */
.pf-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 18px;
  min-height: 0;
  /* Static positioning so any absolute-positioned children inside the
     popup markup (e.g. the restaurant detail hero) anchor against the
     modal frame just like they did inside Mobiscroll's popup. */
  position: static;
}
.pf-modal-body.pf-modal-body-bleed { padding: 0; }

/* ───── Footer ────────────────────────────────────────────────────────── */
.pf-modal-footer {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  flex: 0 0 auto;
}
.pf-modal-footer .pf-modal-btn { flex: 1 1 0; }

.pf-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid #d8d8de;
  background: #ffffff;
  color: #222222;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 120ms ease;
  -webkit-appearance: none;
          appearance: none;
  touch-action: manipulation;
}
.pf-modal-btn:hover  { background: rgba(0, 0, 0, 0.04); }
.pf-modal-btn:active { transform: scale(0.97); }
.pf-modal-btn.pf-modal-btn-primary {
  background: #3478f6;
  color: #ffffff;
  border-color: #3478f6;
}
.pf-modal-btn.pf-modal-btn-primary:hover {
  background: #2966d4;
  border-color: #2966d4;
}

/* ───── Body scroll lock while any modal is open ─────────────────────── */
body.pf-modal-lock { overflow: hidden; touch-action: none; }

/* ───── Dark mode (gated by <html data-pf-theme="dark">) ─────────────── */
html[data-pf-theme="dark"] .pf-modal {
  background: #1a1a1c;
  color: #f5f5f7;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
}
html[data-pf-theme="dark"] .pf-modal-header,
html[data-pf-theme="dark"] .pf-modal-footer {
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-pf-theme="dark"] .pf-modal-close {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
}
html[data-pf-theme="dark"] .pf-modal-close:hover { background: rgba(255, 255, 255, 0.14); }
html[data-pf-theme="dark"] .pf-modal-btn {
  background: #2a2a2d;
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-pf-theme="dark"] .pf-modal-btn:hover { background: #34343a; }
html[data-pf-theme="dark"] .pf-modal-sheet .pf-modal-handle {
  background: rgba(255, 255, 255, 0.22);
}

/* ───── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pf-modal-backdrop,
  .pf-modal.pf-modal-center,
  .pf-modal.pf-modal-sheet {
    transition: none !important;
  }
}

/* ───── Phone narrow tweaks ─────────────────────────────────────────── */
@media (max-width: 380px) {
  .pf-modal.pf-modal-center { width: calc(100% - 16px); }
  .pf-modal-header { padding: 12px 14px; }
  .pf-modal-body   { padding: 12px 14px; }
  .pf-modal-footer { padding: 10px 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Welcome-page restaurant-detail sheet — legacy markup overrides

   The `#info{m.id}` popup on wellcome.html ships its own markup with
   inline styles (a 500px hero, raw <a class="mybtn"> floating on the
   photo, etc). When that markup is hosted inside our bottom sheet we
   recompose it into a compact modern card without touching the
   template — every selector below is scoped to `.pf-modal-sheet` so
   the same legacy classes used elsewhere on the page (the carousel
   cards, etc) keep their original styling.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tighter sheet header — the hero below already carries the brand, so
   the header just needs the title and the close-X. */
.pf-modal-sheet .pf-modal-header {
  padding: 10px 16px;
  border-bottom-color: rgba(0, 0, 0, 0.05);
}
.pf-modal-sheet .pf-modal-title    { font-size: 18px; }
.pf-modal-sheet .pf-modal-subtitle { font-size: 12.5px; margin-top: 1px; }

/* Hero strip: shrink the legacy 500-px fixed height to a sensible
   landscape banner; full-bleed inside the sheet (no rounded corners
   because the sheet itself already rounds the top). */
.pf-modal-sheet .my_border {
  height: 260px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  position: relative;
}
@media (min-width: 600px) {
  .pf-modal-sheet .my_border { height: 320px !important; }
}

/* Primary CTA (Anfragen / Reservieren) inside the hero — smaller and
   modern, with a softer drop shadow so the photo stays the hero. */
.pf-modal-sheet .my_border > a.mybtn {
  display: inline-flex;
  align-items: center;
  margin: 12px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  border-radius: 10px !important;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.30);
}

/* "Direct Reservieren" lives in its own wrapper div under the primary
   CTA — flatten the wrapper margin and match the CTA proportions. */
.pf-modal-sheet .my_border > div > a.mybtn {
  margin: 0 12px 12px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.30);
}

/* Restaurant logo chip top-right — smaller, softer shadow. The legacy
   markup sets the background image inline so we only override box. */
.pf-modal-sheet .my_border > .myshadow {
  top: 10px !important;
  right: 10px !important;
  height: 44px !important;
  width: 96px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  background-size: auto 28px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
}

/* Floating contact icons (menu / phone / mail / web / map) get a single
   glass pill at the bottom of the hero. The 5 individual <a> elements
   inside .btn-row become compact circular chips. */
.pf-modal-sheet .my_border .btn-row {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
          backdrop-filter:         blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  margin: 0 !important;
}
.pf-modal-sheet .my_border .btn-row > a,
.pf-modal-sheet .my_border .btn-row > a.mybtn {
  /* All !important — the legacy `.btn-row .mybtn` rule in main2.css sets
     width:52px / height:52px / border-radius:12px / display:inline-flex /
     transform:translateZ(0) scale(1) / transition:transform 120ms. We
     win on specificity (0,4,1 vs 0,2,0) but the !important guards make
     the override resilient to future cascade reshuffles AND explicitly
     neutralise the transform/transition so the chip can't sub-pixel-
     wobble on hover. */
  width:  38px  !important;
  height: 38px  !important;
  flex:   0 0 38px !important;
  margin: 0     !important;
  padding: 0    !important;
  border-radius: 50% !important;
  background: rgba(52, 120, 246, 0.95) !important;
  /* Grid + place-items:center is the most reliable centering for
     icon-font glyphs. Belt-and-braces: also set align/justify so the
     legacy inline-flex rules can't accidentally re-apply. */
  display: grid !important;
  place-items: center !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22),
              inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
  line-height: 0 !important;
  transform: none !important;
  transition: background 150ms ease, box-shadow 150ms ease !important;
}
.pf-modal-sheet .my_border .btn-row > a:hover,
.pf-modal-sheet .my_border .btn-row > a.mybtn:hover {
  /* Legacy adds transform: scale(1.3) on hover which pops chips out of
     the pill — kill it; soft hover state instead. */
  transform: none !important;
  background: rgba(52, 120, 246, 1.0) !important;
}
/* The visible glyph is painted by `i::before`, so size/colour live there. */
.pf-modal-sheet .my_border .btn-row > a i,
.pf-modal-sheet .my_border .btn-row > a.mybtn i {
  display: block !important;
  line-height: 0 !important;
  margin:  0 !important;
  padding: 0 !important;
  transform: none !important;
}
.pf-modal-sheet .my_border .btn-row > a i::before,
.pf-modal-sheet .my_border .btn-row > a.mybtn i::before {
  font-size: 18px !important;
  line-height: 1 !important;
  display: block !important;
  margin:  0 !important;
  padding: 0 !important;
  color: #fff !important;
  /* No transform — `display: grid; place-items: center` on the chip
     already centres the 18 px em-box geometrically. Flaticon's glyphs
     are drawn symmetrically inside their em-box, so a non-zero nudge
     causes visible mis-alignment. If a future Flaticon version drifts,
     re-introduce `transform: translateY(Npx)` here with the smallest
     possible N. */
}

/* Text region under the hero: tighter padding, consistent with sheet width.
   The sticky `.pf-info-cta` is excluded because it owns its own padding
   (and a safe-area inset for the bottom). */
.pf-modal-sheet .pf-modal-body > div:not(.my_border):not(.pf-info-cta) {
  padding: 12px 16px !important;
}

/* Rating button (floats right inside the text region) — pill, no chunky shadow. */
.pf-modal-sheet .pf-modal-body button.mybtn {
  margin: 0 0 8px 8px !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
  border-radius: 999px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
}

/* Cuisine / city / amenities rows — modern list with hairline dividers,
   stronger typographic hierarchy on the city row, calmer icons. */
.pf-modal-sheet .pf-modal-body .iconline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}
.pf-modal-sheet .pf-modal-body .iconline:last-of-type {
  border-bottom: none;
  padding-bottom: 6px;
}
.pf-modal-sheet .pf-modal-body .iconline:first-of-type {
  padding-top: 6px;
}
.pf-modal-sheet .pf-modal-body .iconline i {
  flex: 0 0 22px;
  width: 22px;
  text-align: center;
  font-size: 16px !important;
  color: #8a8a8e;
  opacity: 0.9;
}
.pf-modal-sheet .pf-modal-body .iconline__text {
  flex: 1 1 auto;
  font-weight: 500;
  color: #2a2a2e;
}
/* The first iconline carries the city / Lech — bump it so the location
   reads as the primary fact of the card. */
.pf-modal-sheet .pf-modal-body .iconline:first-of-type .iconline__text {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1c;
  letter-spacing: 0.1px;
}

/* Tone down the colored ".my-divider" the legacy template stamps below
   the rows — inside the sheet we already have hairlines between rows,
   so collapse the chunky divider into invisible. */
.pf-modal-sheet .pf-modal-body .my-divider {
  display: none;
}

/* Info paragraph (long restaurant description) — more comfortable line
   height, slightly larger size, and a softer near-black for less harsh
   contrast against the white sheet. */
.pf-modal-sheet .pf-modal-body p {
  font-size: 15px !important;
  line-height: 1.6;
  color: #2c2c2e;
  margin: 14px 0 0;
  letter-spacing: 0.05px;
}

/* ───── Tag chips (cuisine / amenities) ──────────────────────────────
   Comma-separated lists in restaurant detail UIs are a 2015 pattern.
   We render each tag as a small pill chip so the list is scannable
   and visually richer. The legacy `.iconline__text` wrapper becomes
   the chip row — its child <span>s become the chips themselves. */
.pf-modal-sheet .pf-modal-body .iconline--tags {
  align-items: flex-start;       /* icon at top of multi-line chip row */
  padding: 12px 0;
}
.pf-modal-sheet .pf-modal-body .iconline--tags i {
  margin-top: 4px;               /* nudge icon down to align with first chip */
}
.pf-modal-sheet .pf-modal-body .pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
}
.pf-modal-sheet .pf-modal-body .pf-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #2c2c2e;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}

/* Restaurant description paragraph inside the detail popup. The
   default `<p>` weight (400) felt a little wispy under the chip
   tags above it; 500 (medium) tightens it up just enough to read
   as proper body copy without competing with the chip badges.
   Applies to both `.pf-modal-sheet` (wellcome) and `.pf-modal-center`
   (restaurants) so the body type matches across pages. */
.pf-modal-body .pf-info-description {
  font-weight: 500;
  color: #1c1c1e;
  line-height: 1.55;
  letter-spacing: 0.1px;
  margin: 0;
}

/* Header logo — optional thumbnail rendered between the title-wrap
   and the close button when `PFModal.create({ logo: '…' })` is used.
   Lives in the header (not the body) so it acts as a proper brand
   mark for the popup. Keeps a fixed footprint so it can't push the
   title into the close button on long names. */
.pf-modal-header .pf-modal-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  width: auto;
  min-width: 56px;
  max-width: 110px;
  padding: 3px 8px;
  margin-right: 4px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  overflow: hidden;
}
.pf-modal-header .pf-modal-logo img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ───── Sticky action bar at the bottom of the sheet body ───────────
   Keeps the primary "Anfragen / Reservieren" CTAs always visible
   while the user scrolls the description. Uses position: sticky
   inside the scrollable .pf-modal-body so we don't have to extend
   the PFModal API with a separate footer slot. The bar is
   edge-to-edge (the sheet body has bodyBleed:true for this popup),
   has a subtle top hairline, and inherits the sheet background. */
.pf-modal-sheet .pf-info-cta {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 12px 16px max(env(safe-area-inset-bottom), 14px);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin-top: 8px;
  z-index: 2;
}
.pf-modal-sheet .pf-info-cta .pf-cta {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 14px;
  text-decoration: none;
  line-height: 1;
  transition: transform 120ms ease, box-shadow 150ms ease, background 150ms ease;
}
.pf-modal-sheet .pf-info-cta .pf-cta:active { transform: scale(0.98); }

/* Primary (Anfragen / Reservieren) — green when bookings are direct,
   yellow when the restaurant uses the inquiry flow. Keeps parity with
   the legacy yellow/green choice but in a polished modern pill. */
.pf-modal-sheet .pf-info-cta .pf-cta-primary--inquire {
  background: linear-gradient(135deg, #f5a623, #e08e0e);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
}
.pf-modal-sheet .pf-info-cta .pf-cta-primary--inquire:hover {
  background: linear-gradient(135deg, #ffb83a, #ed9d1a);
  color: #fff;
}
.pf-modal-sheet .pf-info-cta .pf-cta-primary--reserve {
  background: linear-gradient(135deg, #43be5f, #2ea14a);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(67, 190, 95, 0.35);
}
.pf-modal-sheet .pf-info-cta .pf-cta-primary--reserve:hover {
  background: linear-gradient(135deg, #57d175, #36b056);
  color: #fff;
}
/* "Needs a date first" state — the in-platform Partnerbetrieb reserve flow
   requires a date to be chosen in the banner before live times can be
   shown. Until then the green Reservieren pill shows as a neutral white
   prompt ("Datum wählen") instead of inviting a click that can't resolve. */
.pf-modal-sheet .pf-info-cta .pf-cta-primary--reserve.is-needdate {
  background: #ffffff;
  color: #1c1c1e;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.pf-modal-sheet .pf-info-cta .pf-cta-primary--reserve.is-needdate:hover {
  background: #f4f4f4;
  color: #1c1c1e;
}

/* Secondary (Direct reservieren) — outlined neutral. */
.pf-modal-sheet .pf-info-cta .pf-cta-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: #1c1c1e;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.10);
}
.pf-modal-sheet .pf-info-cta .pf-cta-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #1c1c1e;
}

/* When the action bar is present, the description above needs a bit
   of bottom margin so its last line isn't kissing the sticky bar. */
.pf-modal-sheet .pf-modal-body:has(.pf-info-cta) > div:not(.my_border):not(.pf-info-cta):last-child {
  padding-bottom: 16px !important;
}

/* The legacy "my-divider" inside the text region is a colored bar — tone
   it down to a subtle hairline inside the sheet. */
.pf-modal-sheet .pf-modal-body .my-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 10px 0;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   PFMultiSelect — sheet-based multi-select component
   Paired with /static/js/multiselect.js. The trigger reuses the
   .input-container / .styled-input chrome so it sits flush alongside
   the date / guests / schicht inputs.
   ═══════════════════════════════════════════════════════════════════════ */

/* The original <select> is hidden but kept in the DOM so form-state
   reads (`$('#cusine').val()`) and form submission keep working. */
select.pf-ms-source {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* The visible trigger — looks identical to the other styled inputs but
   isn't actually editable. The value div carries the summary text. */
.pf-ms-trigger { cursor: pointer; }
.pf-ms-trigger .pf-ms-value {
  /* Match select.styled-input metrics exactly so the field height
     lines up with neighbouring inputs in a row. */
  padding: 20px 36px 10px 55px;
  min-height: 50px;
  line-height: normal;
  border: 1px solid transparent;
  border-radius: 25px;
  outline: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
  color: #1c1c1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  -webkit-user-select: none;
          user-select: none;
}
.pf-ms-trigger:hover .pf-ms-value {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.pf-ms-trigger:focus-visible {
  outline: 2px solid #3478f6;
  outline-offset: 2px;
  border-radius: 25px;
}

/* Chevron on the right edge — pure unicode caret, no iconfont needed. */
.pf-ms-trigger .pf-ms-chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #6e6e75;
  pointer-events: none;
  line-height: 1;
  z-index: 2;
}

/* ───── Sheet body: vertical list of checkbox rows ────────────────── */
.pf-modal .pf-ms-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.pf-modal .pf-ms-row {
  margin: 0;
  padding: 0;
}
.pf-modal .pf-ms-row-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 15px;
  color: #1c1c1e;
  font-weight: 500;
  transition: background 150ms ease;
}
.pf-modal .pf-ms-row:last-child .pf-ms-row-label {
  border-bottom: none;
}
.pf-modal .pf-ms-row-label:hover {
  background: rgba(0, 0, 0, 0.03);
}
.pf-modal .pf-ms-row-label:active {
  background: rgba(0, 0, 0, 0.06);
}

/* Hide the native checkbox visually but keep it focusable. */
.pf-modal .pf-ms-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visual checkbox — sibling span we toggle via :checked. */
.pf-modal .pf-ms-checkbox-visual {
  flex: 0 0 22px;
  width:  22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease, border-color 120ms ease;
}
/* Checkmark drawn with a pseudo-element so we don't need an icon. */
.pf-modal .pf-ms-checkbox-visual::after {
  content: '';
  width:  10px;
  height: 6px;
  border-left:   2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity 120ms ease;
}
.pf-modal .pf-ms-checkbox:checked + .pf-ms-checkbox-visual {
  background: #3478f6;
  border-color: #3478f6;
}
.pf-modal .pf-ms-checkbox:checked + .pf-ms-checkbox-visual::after {
  opacity: 1;
}
.pf-modal .pf-ms-checkbox:focus-visible + .pf-ms-checkbox-visual {
  outline: 2px solid #3478f6;
  outline-offset: 2px;
}

/* Single-select (radio) variant: round control + dot instead of tick. */
.pf-modal .pf-ms-single .pf-ms-checkbox-visual { border-radius: 50%; }
.pf-modal .pf-ms-single .pf-ms-checkbox-visual::after {
  width: 8px; height: 8px; border: 0; border-radius: 50%;
  background: #ffffff; transform: none;
}

.pf-modal .pf-ms-row-text {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Secondary per-row label (e.g. a time range) — muted, sits at the far
   right of the row. Only rendered in the sheet, never on the trigger. */
.pf-modal .pf-ms-row-sub {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 12px;
  color: #8a8a90;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* Tighten the multi-select sheet header — the title carries the field
   name, no need for the bigger 18px sizing the restaurant-info sheet
   uses. */
.pf-modal-sheet.pf-modal-sheet--ms .pf-modal-title {
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════
   .pf-segmented — vanilla iOS-style segmented control
   Used on restaurants.html for the List ↔ Map toggle. Two <button>s
   with role="tab"; aria-selected toggled in JS marks the active half.
   ═══════════════════════════════════════════════════════════════════════ */
.pf-segmented {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18),
              inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.pf-segmented > button {
  flex: 1 1 0;
  min-width: 80px;
  border: none;
  background: transparent;
  color: #1c1c1e;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.pf-segmented > button i {
  font-size: 16px;
  line-height: 1;
  color: inherit;
}
.pf-segmented > button[aria-selected="true"] {
  background: #1c1c1e;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
.pf-segmented > button:hover:not([aria-selected="true"]) {
  background: rgba(0, 0, 0, 0.05);
}
.pf-segmented > button:active { transform: scale(0.97); }
.pf-segmented > button:focus-visible {
  outline: 2px solid #3478f6;
  outline-offset: 2px;
}
