/* Presentation layer — client-agnostic. Colors and font come from
   FINDER_CONFIG.presentation.theme via CSS variables (set in present.js);
   the fallbacks here are the Studio 3 pitch-deck palette. */
#presentCard {
  position: fixed;
  top: 196px;
  right: 32px;
  width: 440px;
  max-height: calc(100vh - 228px);
  overflow: auto;
  z-index: 1200;
  box-sizing: border-box;
  padding: 32px 32px 24px;
  border-radius: 24px;
  background: var(--pc-bg, #002b3c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 20, 30, 0.35);
  color: #fff;
  font-family: var(--pc-font, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transform: translateY(8px);
}
#presentCard.in {
  opacity: 1;
  transform: none;
  transition: opacity .35s ease, transform .35s ease;
}
#presentCard .pc-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pc-eyebrow, #d0c0a7);
}
#presentCard .pc-title {
  margin: 10px 0 22px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
#presentCard .pc-items { list-style: none; margin: 0; padding: 0; }
#presentCard .pc-items li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
#presentCard .pc-num,
#presentMarkers .pm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pc-accent, #8a5535);
  color: #fff;
  font: 700 14px/30px var(--pc-font, 'Inter', -apple-system, sans-serif);
  text-align: center;
}
#presentCard .pc-head { font-size: 17px; font-weight: 600; line-height: 1.3; }
#presentCard .pc-body { margin-top: 4px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }
#presentCard .pc-foot {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, 0.40);
}

#presentMarkers { position: fixed; inset: 0; pointer-events: none; z-index: 1150; }
/* Flat numbered labels (like figure callouts), not buttons: smaller, no
   shadow, a thin white outline only so they read on navy buttons. */
#presentMarkers .pm {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  font-size: 12px;
  box-sizing: border-box;
  border: 1.5px solid #fff;
  line-height: 21px; /* 24px minus the outline */
  transition: transform .25s ease;
  animation: pm-in .3s ease both;
}
/* Ring pulse: plays a few times when the marker arrives (or on hover in the
   card), staggered by --pd, then stops. */
#presentMarkers .pm::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--pc-accent, #8a5535);
  opacity: 0;
}
#presentMarkers .pm.pulse::after { animation: pm-pulse 1.1s ease-out var(--pd, 0ms) 3; }
@keyframes pm-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pm-pulse { 0% { opacity: .8; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.9); } }

/* The card sits over the map's zoom buttons; scroll and pinch still zoom. */
.present-on .leaflet-control-zoom { display: none; }

/* Corner toggle: navy pill like the card when on, quiet white pill when off. */
#presentToggle {
  position: fixed;
  right: 32px;
  bottom: 34px;
  z-index: 1250;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--pc-bg, #002b3c);
  color: #fff;
  font: 600 12px/1 var(--pc-font, 'Inter', -apple-system, sans-serif);
  letter-spacing: .02em;
  box-shadow: 0 8px 24px rgba(0, 20, 30, 0.25);
  cursor: pointer;
  opacity: .9;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
}
#presentToggle:hover { opacity: 1; }
#presentToggle .pt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pc-eyebrow, #d0c0a7); }
#presentToggle.off { background: #fff; color: var(--pc-bg, #002b3c); border-color: #e3ded4; }
#presentToggle.off .pt-dot { background: #c4c4c4; }

@media (max-width: 899px) { #presentCard, #presentMarkers, #presentToggle { display: none; } }
