/* public/css/guest-page-map.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. */
    /* ── Map container ── */
    #map { flex: 1; min-height: 0; z-index: 1; background: var(--color-white); }   /* 6.66.55: the flex column sizes the map box; nothing runs past the screen */

    /* ── Loading spinner ── */
    .map-loading {
      position: absolute; inset: 0; display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 12px;
      background: var(--color-white); z-index: 5;
      transition: opacity 0.4s;
    }
    .map-loading.hidden { opacity: 0; pointer-events: none; }
    .map-spinner {
      width: 32px; height: 32px; border: 3px solid #d0d5dd;
      border-top-color: var(--accent); border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .map-loading-text { font-size: 0.8125rem; color: var(--color-text-muted); }

    /* ── Rotate button ── */
    .rotate-float {
      position: absolute; top: 10px; right: 10px; z-index: 1000;
      padding: 8px 12px; background: white; border: 1px solid rgba(0,0,0,0.15);
      border-radius: 8px; font-size: 0.8125rem; font-weight: 500; line-height: 1.125rem;   /* 6.66.107: one 18 px line at 16 px text; the tops below add it */
      font-family: 'DM Sans', sans-serif; color: var(--color-text-heading); cursor: pointer;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 4px;
    }
    .rotate-float:active { background: #f0f0f0; }
    .rotate-float--reset { top: calc(32px + 1.125rem); }   /* 6.66.107: px = padding and gaps, rem = the Rotate line; 50 px at 16 px text */
    @media (max-width: 768px) {   /* 6.66.15 (WCAG 2.5.8): clear the 24 px filter toggle that hangs below the header */
      .rotate-float { top: 34px; }
      .rotate-float--reset { top: calc(56px + 1.125rem); }
    }

    /* ── Leaflet popup overrides ── */
    .leaflet-popup-content-wrapper { border-radius: 12px; padding: 0; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
    .leaflet-popup-content { margin: 0; min-width: 200px; }
    .poi-popup { padding: 14px 16px; }
    .poi-popup-name { font-size: 0.9375rem; font-weight: 600; color: var(--color-text-dark); margin-bottom: 4px; }
    .poi-popup-cat { font-size: 0.75rem; color: var(--accent); font-weight: 500; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
    .poi-popup-desc { font-size: 0.8125rem; color: var(--color-text-body); line-height: 1.4; }

    /* ── You Are Here marker ── */
    .yah-marker {
      width: 20px; height: 20px; background: #3b82f6; border: 3px solid white;
      border-radius: 50%; box-shadow: 0 2px 8px rgba(59,130,246,0.5);
      animation: yah-pulse 2s ease-in-out infinite;
    }
    @keyframes yah-pulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
      50% { box-shadow: 0 0 0 12px rgba(59,130,246,0); }
    }
    .yah-marker--kiosk { width: 40px; height: 40px; border-width: 4px; animation-name: yah-pulse-kiosk; } @keyframes yah-pulse-kiosk { 0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.45); } 50% { box-shadow: 0 0 0 20px rgba(59,130,246,0); } }   /* 6.66.5: kiosk and QR-handoff dot, larger than a 30px POI */

    /* ── POI marker icons ── */
    .poi-marker {
      display: flex; align-items: center; justify-content: center;
      width: 30px; height: 30px; border-radius: 50%; border: 2px solid white;
      box-shadow: 0 2px 6px rgba(0,0,0,0.25); font-size: 14px;
      transition: transform 150ms var(--ease-out, ease-out);
    }
    @media (hover: hover) and (pointer: fine) { .poi-marker:hover { transform: scale(1.2); } }   /* 6.66.87: mouse only; on a phone a tap left the marker stuck at 120% */
    .poi-svg-icon { display: block; width: 16px; height: 16px; }
    body.kiosk-mode .poi-marker .poi-svg-icon { width: 20px; height: 20px; }
    .poi-icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; vertical-align: middle; }
    .poi-icon-badge .poi-svg-icon { width: 14px; height: 14px; }
    .poi-marker.pulse-highlight { animation: marker-pulse 0.6s ease-in-out 2; }   /* 6.66.87: two pulses to 1.25 find the eye with less wobble */
    @keyframes marker-pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.25); }
    }

    /* ── Footer ── */
    .footer {
      padding: 10px 16px; text-align: center; font-size: 0.6875rem; color: var(--color-text-muted);
      background: white; border-top: 1px solid var(--color-border); flex-shrink: 0;
    }
    .footer a { color: var(--color-text-muted); }
    .powered { display: flex; align-items: center; justify-content: center; gap: 4px; }
    .map-credit { font-size: 0.6875rem; line-height: 1.4; color: var(--color-text-muted); overflow-wrap: anywhere; margin-bottom: 2px; }   /* 6.66.104 */
    .map-credit[hidden] { display: none; }

    /* ── Nearby panel ── */
    .nearby-panel {
      display: none; position: absolute; bottom: 60px; left: 10px; right: 10px;
      background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      z-index: 999; max-height: max(200px, min(12.5rem, 45vh)); overflow-y: auto;   /* 6.66.107: grows with the text, up to 45% */
    }
    .nearby-panel.show { display: block; }
    .nearby-header { padding: 10px 14px; font-size: 0.8125rem; font-weight: 600; color: var(--accent); border-bottom: 1px solid #eee; }
    .nearby-item { padding: 8px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-bottom: 1px solid var(--color-bg-surface); cursor: pointer; }
    .nearby-item:active { background: #f9f9f9; }
    .nearby-item:last-child { border-bottom: none; }
    .ni-icon { font-size: 1rem; }
    .ni-name { font-size: 0.8125rem; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
    .nearby-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 18px; color: var(--color-text-placeholder); cursor: pointer; }

    /* ── Accessibility ── */
    .skip-link { position: absolute; top: 0; transform: translateY(-100%); left: 0; background: var(--accent, var(--color-primary)); color: #fff; padding: 8px 16px; z-index: 10000; font-size: 0.875rem; font-weight: 600; text-decoration: none; border-radius: 0 0 6px 0; transition: transform 0.2s; }   /* 6.66.107: a full-height shift hides it at any text size (-40 px did not) */
    .skip-link:focus { transform: none; outline: 3px solid var(--color-warning); }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
    *:focus-visible { outline: 3px solid var(--color-warning); outline-offset: 2px; }
    .filter-chip:focus-visible, .layer-chip:focus-visible, .floor-chip:focus-visible { outline: 3px solid var(--color-warning); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(251,191,36,0.3); }
    button:focus-visible { outline: 3px solid var(--color-warning); outline-offset: 2px; }
    a:focus-visible { outline: 3px solid var(--color-warning); outline-offset: 2px; }
    input:focus-visible { outline: 3px solid var(--color-warning); outline-offset: 2px; }

