/* public/css/guest-page-layout.css: moved from the inline <style> of routes/venue-client.js (6.66.125) by scripts/refactor/extract-guest-page.js. Loaded by lib/guest-page-html.js in this order: layout, map, kiosk, detail, (inline), demo. */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { height: 100%; font-family: 'DM Sans', system-ui, sans-serif; background: var(--color-bg-surface); -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
    .page { height: 100dvh; display: flex; flex-direction: column; }

    .header {
      padding: 14px 16px; background: var(--accent); color: white;
      display: flex; align-items: center; gap: 10px;
      position: relative; z-index: 1000; flex-shrink: 0;
    }
    .header-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.15);
      display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .header-icon svg { width: 18px; height: 18px; fill: white; }
    .venue-name { font-size: 1rem; font-weight: 600; }
    .badge { font-size: 0.6875rem; margin-top: 1px; }   /* 6.66.14 (WCAG 1.4.3): full white; 0.8 opacity fell to 3.7:1 on some accent colors */
    .schedule-link {
      padding: 4px 10px; background: rgba(0,0,0,0.18);   /* 6.66.15 (WCAG 1.4.3): a light tint over the accent fell to 3.4:1 (Dells); a dark tint only raises contrast */
      border: 1px solid rgba(255,255,255,0.4); border-radius: 6px;
      color: white; text-decoration: none; font-size: 0.6875rem; font-weight: 600;
      white-space: nowrap; flex-shrink: 0; margin-left: auto;
      -webkit-tap-highlight-color: transparent;
    }
    .schedule-link:active { background: rgba(0,0,0,0.3); }
    .share-btn { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.15);
      border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; margin-left: auto; padding: 0; -webkit-tap-highlight-color: transparent; }
    .share-btn:active { background: rgba(255,255,255,0.3); }
    .share-btn svg { width: 18px; height: 18px; fill: white; }
    .poi-share { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; min-height: 44px; margin: 0; padding: 0 8px;
      border: 1px solid var(--color-border-mid, #8b8b8b); border-radius: 8px; background: var(--color-white, #ffffff); color: var(--accent);
      font-family: inherit; font-size: 0.75rem; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform var(--dur-press, 120ms) var(--ease-out, ease-out); }
    .poi-share:active { transform: scale(0.97); }   /* 6.66.87: a small press, not a fade (a fade reads as disabled) */
    .poi-share svg { width: 14px; height: 14px; fill: var(--accent); }
    .poi-directions { display: flex; align-items: center; gap: 4px; margin-top: 8px; padding-top: 8px;
      border-top: 1px solid #eee; color: var(--accent); font-size: 0.75rem; font-weight: 500;
      cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform var(--dur-press, 120ms) var(--ease-out, ease-out); }
    .poi-directions:active { transform: scale(0.97); }
    .poi-directions svg { width: 14px; height: 14px; fill: var(--accent); }
    .poi-directions-picker { margin-top: 8px; display: flex; gap: 6px; align-items: center; }
    .poi-directions-picker select { font-size: max(16px, 1rem); padding: 4px 6px; border-radius: 6px; border: 1px solid #ddd; }
    .poi-directions-picker button { font-size: 0.75rem; padding: 4px 10px; border-radius: 6px; border: none; background: var(--accent); color: #fff; cursor: pointer; }
    .poi-directions-result { margin-top: 8px; font-size: 0.75rem; color: var(--color-text-secondary); }
    .poi-directions-result.error { color: #C62828; }
    .share-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
      background: var(--color-text-heading); color: white; padding: 10px 20px; border-radius: 8px; font-size: 0.8125rem;
      font-family: 'DM Sans', sans-serif; z-index: 9999; opacity: 0; transform: translate(-50%, 8px); transition: opacity 150ms ease, transform 150ms ease;
      pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
    .share-toast.show { opacity: 1; transform: translateX(-50%); transition-duration: var(--dur-ui, 200ms); transition-timing-function: var(--ease-out, ease-out); }   /* 6.66.87: rises 8 px in, leaves faster than it came */

    /* ── Search bar — hidden until POIs are loaded ── */
    .search-bar {
      display: none; align-items: center; gap: 8px;
      padding: 8px 12px; background: var(--color-white); border-bottom: 1px solid #d0d5dd;
      flex-shrink: 0; z-index: 999; position: relative;
    }
    .search-bar.show { display: flex; }
    /* 6.66.14 (WCAG 3.3.2): a visible label; the placeholder alone disappears while typing */
    .search-label { flex-shrink: 0; font-size: 0.8125rem; font-weight: 600; color: var(--color-text-dark); font-family: 'DM Sans', sans-serif; }
    body.kiosk-mode .search-label { font-size: 1rem; }
    .search-input {
      flex: 1; min-width: 0; height: 2.25rem; border: 1px solid #d0d5dd; border-radius: 8px;
      padding: 0 12px 0 34px; font-size: max(16px, 1rem); font-family: 'DM Sans', sans-serif;   /* 6.66.44: 16px or more, or iPhone Safari zooms the page on tap; 6.66.107: rem grows with the text setting */
      background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 10px center no-repeat;
      outline: none;
    }
    .search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(27,58,92,0.15); }
    .search-clear { display: none; flex-shrink: 0; width: 28px; height: 28px; border: none; background: none; font-size: 18px; color: var(--color-text-placeholder); cursor: pointer; }
    .search-clear.show { display: block; }
    .search-results {
      display: none; position: absolute; top: 100%; left: 12px; right: 12px;
      background: white; border: 1px solid #d0d5dd; border-radius: 10px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.12); max-height: 260px; overflow-y: auto; z-index: 998;
    }
    .search-results.show { display: block; }
    .search-result {
      padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f0f0f0;
      display: flex; align-items: center; gap: 10px;
    }
    .search-result:last-child { border-bottom: none; }
    .search-result:hover, .search-result:active { background: var(--color-bg-surface); }
    .search-result.kb-focus { background: #e8f0fe; outline: 2px solid var(--accent); outline-offset: -2px; }
    .search-result .sr-match { background: var(--color-warning-bg-light); border-radius: 2px; padding: 0 1px; }
    .sr-icon { font-size: 1.125rem; flex-shrink: 0; }
    .sr-name { font-size: 0.875rem; font-weight: 500; color: var(--color-text-dark); overflow-wrap: anywhere; }
    .sr-desc { font-size: 0.75rem; color: var(--color-text-subtle); margin-top: 1px; overflow-wrap: anywhere; }
    .sr-none { padding: 16px; text-align: center; font-size: 0.8125rem; color: var(--color-text-placeholder); }

    /* ── Category filter chips — hidden until POIs are loaded ── */
    .filter-bar {
      display: none; gap: 6px; padding: 8px 12px; background: #f0f2f5;
      overflow-x: auto; flex-shrink: 0; -webkit-overflow-scrolling: touch;
      scrollbar-width: none; border-bottom: 1px solid #d0d5dd;
    }
    .filter-bar.show { display: flex; }

    /* ── Collapse toggle for search + filter bars ── */
    .toolbar-toggle {
      display: none; position: absolute; right: 8px; bottom: -24px;
      width: 44px; height: 24px; background: var(--accent); color: white;
      border: none; border-radius: 0 0 8px 8px; font-size: 12px; cursor: pointer;
      z-index: 1001; padding: 0; line-height: 24px; text-align: center;
      box-shadow: 0 2px 4px rgba(0,0,0,0.15); -webkit-tap-highlight-color: transparent;
    }
    .toolbar-toggle.filter-active::after {
      content: ''; position: absolute; top: -3px; right: -3px;
      width: 8px; height: 8px; border-radius: 50%;
      background: var(--color-warning, #f59e0b); border: 1.5px solid white;
    }
    @media (max-width: 768px) {
      .toolbar-toggle { display: block; }
      /* 6.66.96 (WCAG 2.5.8): the toggle hangs 24 px into the search bar at the right edge (right 8 px, 44 px wide). Keep the clear
         button and the box out from under it, so the clear button's whole 28 px target can be tapped. */
      .search-bar { padding-right: 60px; }
      .toolbar-collapsed .filter-bar.show { display: none !important; }   /* 6.66.123 (Camp 0.3.10): collapse only where the toggle shows */
      .toolbar-collapsed .header { margin-bottom: 0; }
    }
    .filter-bar::-webkit-scrollbar { display: none; }
    /* Floor selector */
    .floor-bar { display: none; padding: 6px 16px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; gap: 6px; border-bottom: 1px solid #eee; background: #fafafa; }
    .floor-bar.show { display: flex; }
    .floor-bar::-webkit-scrollbar { display: none; }
    .floor-chip { padding: 5px 14px; border-radius: 16px; border: 1.5px solid var(--color-border-subtle); background: white; font-size: 0.75rem; font-weight: 600; cursor: pointer; color: var(--color-text-body); transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform var(--dur-press, 120ms) var(--ease-out, ease-out); flex-shrink: 0; }
    .floor-chip.active { background: var(--accent, var(--color-primary)); color: white; border-color: var(--accent, var(--color-primary)); }
    .floor-select-wrap { display: none; padding: 6px 16px; background: #fafafa; border-bottom: 1px solid #eee; }
    .floor-select-wrap.show { display: block; }
    .floor-select { width: 100%; padding: 8px 12px; border: 1.5px solid var(--color-border-subtle); border-radius: 8px; font-size: max(16px, 1rem); font-weight: 600; background: white; color: var(--color-text-heading); cursor: pointer; }
    .filter-chip {
      display: flex; align-items: center; gap: 4px; padding: 5px 10px;
      border-radius: 16px; font-size: 0.75rem; font-weight: 500; white-space: nowrap;
      border: 1px solid var(--color-border-subtle); background: white; cursor: pointer;
      font-family: 'DM Sans', sans-serif; color: var(--color-text-body);
      transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform var(--dur-press, 120ms) var(--ease-out, ease-out);
    }
    .filter-chip.active { background: var(--accent); color: white; border-color: var(--accent); }
    .filter-chip:active, .layer-chip:active, .floor-chip:active { transform: scale(0.97); }   /* 6.66.87: chips are tapped often; each tap gets a small press */
    .filter-chip .chip-icon { font-size: 0.8125rem; }

    /* ── Layer switcher bar ── */
    .layer-bar { display: none; gap: 6px; padding: 8px 12px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; background: var(--color-white); border-bottom: 1px solid #d0d5dd; flex-shrink: 0; z-index: 50; }
    .layer-bar.show { display: flex; }
    .layer-bar::-webkit-scrollbar { display: none; }
    .layer-chip { display: flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 20px; border: 1.5px solid #d0d5dd; background: white; font-size: 0.8125rem; font-weight: 500; cursor: pointer; color: var(--color-text-body); transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform var(--dur-press, 120ms) var(--ease-out, ease-out); flex-shrink: 0; font-family: 'DM Sans', sans-serif; }
    .layer-chip.active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
    .layer-chip .layer-icon { font-size: 0.9375rem; }

