/* Fogline showcase layer (theme 2.0.0): the /demo/ page. See inc/showcase.php and assets/js/showcase.js. */

/* Menu hidden = immersive: the map fills the screen; header and footer come back with "Show menu" */
body.fogline-showcase.menu-hidden .site-header,
body.fogline-showcase.menu-hidden .site-footer,
body.fogline-showcase.menu-hidden .skip-link { display: none; }
body.fogline-showcase.menu-hidden { overflow: hidden; }
body.fogline-showcase #fogline-app .app { transition: height .2s ease; }

/* Engine type in the showcase palette */
body.fogline-showcase-full #fogline-app .tab { font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
body.fogline-showcase-full #fogline-app .mhead > div > b { font-weight: 800; font-size: 1rem; letter-spacing: 0; }
body.fogline-showcase-full #fogline-app .info-hero h2,
body.fogline-showcase-full #fogline-app .dialog h2 { font-weight: 800; letter-spacing: -.01em; }

/* Panel header, laid out across the width (desktop):
     [festival logo ............................ Show Menu]
     [dates · place  DEMO ............ Built by Fogline Maps]
     [Map presented by  (logo)  Sponsor name             ]
     [  Demo location  ][  Install app  ]                     */
@media (min-width: 861px) { /* phones keep the engine's event badge instead of this header */
body.fogline-showcase-full #fogline-app .p-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 10px; align-items: center;
  padding: 16px 20px 14px;
}
body.fogline-showcase-full #fogline-app .p-head > .brand { grid-column: 1 / -1; grid-row: 1; justify-content: space-between; min-height: 52px; }
body.fogline-showcase-full #fogline-app .p-head > .brand-meta { grid-column: 1; grid-row: 2; margin: 0; }
body.fogline-showcase-full #fogline-app .p-head > .demo-badge { grid-column: 2; grid-row: 2; margin: 0; justify-self: end; white-space: nowrap; }
body.fogline-showcase-full #fogline-app .p-head > .sp-inline,
body.fogline-showcase-full #fogline-app .p-head > .sp-corner { grid-column: 1 / -1; grid-row: 3; }
body.fogline-showcase-full #fogline-app .p-head > .actions { grid-column: 1 / -1; grid-row: 4; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }

/* Sponsor: one horizontal strip instead of a stacked block */
body.fogline-showcase-full #fogline-app .p-head > .sp-inline,
body.fogline-showcase-full #fogline-app .p-head > .sp-corner {
  display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 0; max-width: none; text-align: left;
  padding: 8px 12px; border: 1px solid rgba(245, 242, 234, .12); border-radius: 12px; background: rgba(255, 255, 255, .03);
}
body.fogline-showcase-full #fogline-app .p-head .sp-lbl { white-space: normal; width: 84px; line-height: 1.25; flex: none; }
body.fogline-showcase-full #fogline-app .p-head .sp-row b { font-size: .86rem; }
}

/* Location buttons: the map's locate button does real GPS; up here it's the demo location (+ Install app) */
body.fogline-showcase-full #fogline-app #gpsBtn { display: none; }
body.fogline-showcase-full #fogline-app .p-head .actions .btn { white-space: nowrap; min-width: 0; }
body.fogline-showcase-full #fogline-app .p-head .actions .btn[hidden] { display: none; }

/* Phones: Show Menu + Contact Us in a row at the top of the sheet; gone while the header shows */
#fogline-app .fl-menu-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 8px 16px; border: 1.5px solid rgba(245, 242, 234, .35); border-radius: 999px;
  color: #F5F2EA; font-weight: 700; font-size: .85rem; background: rgba(255, 255, 255, .04);
}
#fogline-app .fl-menu-btn:hover { background: rgba(255, 255, 255, .1); }
#fogline-app .fl-menu-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
#fogline-app .fl-panel-top { display: none; align-items: center; gap: 8px; padding: 10px 14px 0; }
#fogline-app .fl-panel-contact { margin-left: auto; background: #F45B9A; color: #fff; text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: .78rem; }
#fogline-app .fl-short { display: none; }
body.fogline-showcase:not(.menu-hidden) #fogline-app .fl-menu-btn,
body.fogline-showcase:not(.menu-hidden) #fogline-app .fl-top-actions,
body.fogline-showcase:not(.menu-hidden) #fogline-app .fl-panel-top { display: none; } /* the site header has Contact Us and Hide Menu */

/* Contact Us + Show Menu, top right of the map: the same size, gap and spot as the header's Contact Us + Hide Menu
   (header bar is 76px tall and runs edge to edge on this page), so the buttons seem to stay put as the header comes and goes */
body.fogline-showcase .site-header .shell { width: calc(100% - 40px); max-width: none; }
#fogline-app .fl-top-actions { position: absolute; top: 17px; right: 20px; z-index: 7; display: flex; align-items: center; gap: 28px; }
@media (max-width: 1080px) { #fogline-app .fl-top-actions { gap: 18px; } }
#fogline-app .fl-contact {
  display: inline-flex; align-items: center; height: 42px; padding: 0 1.25rem; border-radius: 999px;
  background: #F45B9A; color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(244, 91, 154, .28);
}
#fogline-app .fl-contact:hover { background: #D63D7E; color: #fff; }
#fogline-app .fl-map-menu {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; width: 150px; padding: 0 1.1rem; border-radius: 999px;
  border: 1.5px solid #14283F; background: #F5F2EA; color: #14283F; font-weight: 700; font-size: .92rem; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(20, 40, 63, .22);
}
#fogline-app .fl-map-menu:hover { background: #fff; }
#fogline-app .fl-map-menu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

@media (min-width: 861px) { body.fl-org #fogline-app .ctrls { right: 370px; } } /* step left of the revenue tips panel */
@media (min-width: 861px) { body.fogline-showcase-full #fogline-app .card:not(.docked) { bottom: 76px; max-height: calc(100% - 160px); overflow: auto; } } /* clear of the Patron view switch */

/* Patron View | Revenue Tips | Staff & Ops View (bottom centre of the map) */
#fogline-app .fl-mode {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 7;
  display: flex; align-items: center; gap: 6px;
  background: rgba(245, 242, 234, .94); color: #14283F;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(20, 40, 63, .12); border-radius: 999px;
  padding: 6px; font-size: .86rem; font-weight: 700;
  box-shadow: 0 14px 36px rgba(20, 40, 63, .28); white-space: nowrap;
}
#fogline-app .fl-m { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 6px 16px 6px 6px; background: transparent; color: #14283F; font: inherit; cursor: pointer; transition: background .15s ease, color .15s ease; }
#fogline-app .fl-m i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 40, 63, .08); flex: none; }
#fogline-app .fl-m svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#fogline-app .fl-m:hover { background: rgba(20, 40, 63, .06); }
#fogline-app .fl-m-patron[aria-checked="true"] { background: #23C7D8; color: #14283F; }
#fogline-app .fl-m-tips[aria-checked="true"] { background: #F7AF4B; color: #14283F; }
#fogline-app .fl-m-staff[aria-checked="true"] { background: #14283F; color: #fff; }
#fogline-app .fl-m[aria-checked="true"] i { background: rgba(255, 255, 255, .28); }
#fogline-app .fl-m-staff i { color: #c98a1e; }
#fogline-app .fl-m-staff[aria-checked="true"] i { background: rgba(247, 175, 75, .18); color: #F7AF4B; }
#fogline-app .fl-short { display: none; }
/* the showcase has its own switch, so the engine's staff bar stays hidden here */
body.fogline-showcase-full #fogline-app .staff-bar { display: none; }

#fogline-app .fl-tips {
  display: none;
  position: absolute; right: 16px; top: 16px; bottom: 76px; z-index: 7;
  width: 340px; overflow: auto; overscroll-behavior: contain; touch-action: pan-y;
  background: #F5F2EA; color: #14283F;
  border: 2px solid #F7AF4B; border-radius: 18px;
  padding: 16px; box-shadow: 0 14px 36px rgba(20, 40, 63, .3);
  font-size: .86rem;
}
body.fl-org #fogline-app .fl-tips { display: block; }
@media (min-width: 861px) { body.fogline-showcase.menu-hidden #fogline-app .fl-tips { top: 90px; } } /* below the menu button */
/* Desktop: a tab on the right edge opens the tips from any view, so they're always one click away */
#fogline-app .fl-tips-tab {
  display: none; position: absolute; right: 0; top: 96px; z-index: 7;
  writing-mode: vertical-rl; transform: rotate(180deg);
  padding: 14px 8px; border: 2px solid #F7AF4B; border-right: 0; border-radius: 0 12px 12px 0;
  background: #F7AF4B; color: #14283F; font: inherit; font-weight: 800; font-size: .82rem; letter-spacing: .02em;
  cursor: pointer; box-shadow: -4px 6px 16px rgba(20, 40, 63, .25);
}
#fogline-app .fl-tips-tab:hover { background: #ffc46a; }
@media (min-width: 861px) { body.fogline-showcase-full:not(.fl-org):not(.fl-staff) #fogline-app .fl-tips-tab { display: block; } }
#fogline-app .fl-tips-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
#fogline-app .fl-tips-h b { font-size: 1rem; font-weight: 800; }
#fogline-app .fl-tips-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #14283F; }
#fogline-app .fl-tips-x:hover { background: rgba(20, 40, 63, .08); }
#fogline-app .fl-tips-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
#fogline-app .fl-tips ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#fogline-app .fl-tips li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; background: #fff; border: 1px solid rgba(20, 40, 63, .1); border-radius: 12px; padding: 10px 12px; }
#fogline-app .fl-tips li .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: #F7AF4B; color: #14283F; }
#fogline-app .fl-tips li.c-coral .n { background: #F45B9A; color: #fff; }
#fogline-app .fl-tips li.c-cyan .n { background: #23C7D8; }
#fogline-app .fl-tips li.c-navy .n { background: #14283F; color: #fff; }
#fogline-app .fl-tips li b { display: block; font-weight: 800; margin-bottom: 2px; }
#fogline-app .fl-tips li p { margin: 0 0 4px; color: #4A5B6E; line-height: 1.4; }
#fogline-app .fl-tips li p.idea { color: #9a5f12; font-weight: 700; font-size: .8rem; }
#fogline-app .fl-tips .fl-show { display: inline-block; margin-top: 4px; padding: 5px 12px; border-radius: 999px; background: #14283F; color: #fff; font-weight: 700; font-size: .78rem; text-decoration: none; }
#fogline-app .fl-tips .fl-show:hover { background: #1E3A5A; }
#fogline-app .fl-tips-cta { display: block; text-align: center; margin-top: 12px; padding: 11px; border-radius: 999px; background: #F45B9A; color: #fff; font-weight: 800; text-decoration: none; }
#fogline-app .fl-tips-cta:hover { background: #D63D7E; color: #fff; }

/* In organizer mode, the money spots on the real map light up */
@keyframes fl-pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--tier, #F7AF4B), 0 0 0 8px rgba(247, 175, 75, .35); } 50% { box-shadow: 0 0 0 4px var(--tier, #F7AF4B), 0 0 0 16px rgba(247, 175, 75, 0); } }
body.fl-org #fogline-app .mk.pin-wrap.featured .pin { animation: fl-pulse 1.6s ease-in-out infinite; }
body.fl-org #fogline-app .sp-corner,
body.fl-org #fogline-app .sp-inline { outline: 2px dashed #F7AF4B; outline-offset: 4px; border-radius: 6px; }
body.fl-org #fogline-app .tier-row { outline: 3px solid #F7AF4B; outline-offset: 2px; }
body.fl-org #fogline-app .vcard.featured,
body.fl-org #fogline-app .offer { outline: 2px dashed #F7AF4B; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { body.fl-org #fogline-app .mk.pin-wrap.featured .pin { animation: none; } }

/* Phones: the panel is a bottom sheet, so the switch goes to the top and the tips fill the map */
@media (max-width: 860px) {
  body.fogline-showcase.menu-hidden #fogline-app .fl-panel-top { display: flex; }
  #fogline-app .fl-menu-btn { padding: 6px 12px; font-size: .78rem; }
  #fogline-app .fl-top-actions { display: none !important; }
  #fogline-app .fl-mode { top: calc(70px + var(--safe-t, 0px)); bottom: auto; left: 10px; transform: none; padding: 4px; font-size: .76rem; gap: 2px; }
  #fogline-app .fl-long { display: none; }
  #fogline-app .fl-short { display: inline; }
  #fogline-app .fl-m { padding: 4px 11px 4px 4px; gap: 5px; }
  #fogline-app .fl-m i { width: 24px; height: 24px; }
  #fogline-app .fl-m svg { width: 14px; height: 14px; }
  #fogline-app .fl-tips { left: 10px; right: 10px; width: auto; top: calc(116px + var(--safe-t, 0px)); bottom: calc(var(--sheet-h, 0px) + 10px); max-height: none; }
}

/* Demo maps (not the /demo/ showcase): one small round menu button, top right of the map, while the header is hidden,
   with a "Demo only" label: the Fogline menu isn't on the event's live map */
#fogline-app .fl-burger-wrap { position: absolute; top: 14px; right: 14px; z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 5px; }
#fogline-app .fl-burger {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(20, 40, 63, .18); background: rgba(245, 242, 234, .94); color: #14283F; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
#fogline-app .fl-burger:hover { background: #fff; }
#fogline-app .fl-burger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
#fogline-app .fl-burger-note { font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: #14283F; background: rgba(247, 175, 75, .95); border-radius: 999px; padding: 2px 7px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); pointer-events: none; }
body.fogline-showcase:not(.menu-hidden) #fogline-app .fl-burger-wrap { display: none; }
/* Street maps on a computer keep a details column down the right edge: the menu button sits on the map, just left of
   it, so it never covers the column's close button */
@media (min-width: 861px) { #fogline-app.engine-maplibre .fl-burger-wrap { right: calc(var(--detail-w, 0px) + 14px); } }
@media (max-width: 860px) { #fogline-app .fl-burger-wrap { top: calc(12px + var(--safe-t, 0px)); right: 10px; align-items: flex-end; } #fogline-app .fl-burger-note { margin-right: -2px; } }
