/* Platform.MapKit — styles for ClusteredMap and BottomNav. Tokens with fallbacks so the kit works
   without the mobile-kit tokens.scss; override the --mk-* variables on :root to brand it. */
:root {
  --mk-primary: #1f5fbf;
  --mk-surface: #ffffff;
  --mk-text: #101828;
  --mk-text-muted: #667085;
  --mk-border: #e4e7ec;
  --mk-shadow: 0 4px 12px rgba(16, 24, 40, 0.14);
  --mk-touch: 44px;
  --mk-nav-height: 72px;
  --mk-safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---- map ---- */
.mk-map { position: relative; width: 100%; height: 100%; min-height: 240px; background: #e9eef3; }
.mk-map .leaflet-container { width: 100%; height: 100%; font: inherit; }
.mk-cluster-wrap, .mk-pin-wrap { background: transparent; border: 0; }
.mk-cluster { position: relative; display: inline-block; cursor: pointer; }
.mk-cluster span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; }
.mk-pin { position: relative; display: inline-block; cursor: pointer; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); transition: transform .12s; }
.mk-pin-selected, .mk-pin:hover { transform: scale(1.15); }
.mk-pin-label { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); white-space: nowrap; background: var(--mk-surface); color: var(--mk-text); border: 1px solid var(--mk-border); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 600; box-shadow: var(--mk-shadow); }
.mk-map .leaflet-control-attribution { font-size: 10px; opacity: .8; }

/* ---- bottom navigation (Bayti's pill bar with a raised centre action) ---- */
.mk-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--mk-nav-height) + var(--mk-safe-bottom)); padding-bottom: var(--mk-safe-bottom); background: var(--mk-surface); border-radius: 28px 28px 0 0; box-shadow: 0 -4px 16px rgba(16, 24, 40, .12); display: flex; justify-content: space-evenly; align-items: stretch; }
.mk-nav-item { flex: 1; min-width: var(--mk-touch); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; padding: 0; color: var(--mk-text-muted); font: inherit; font-size: 11px; cursor: pointer; }
.mk-nav-item.active { color: var(--mk-primary); }
.mk-nav-item svg { width: 22px; height: 22px; }
.mk-nav-center { position: relative; }
.mk-nav-center .mk-nav-item { position: absolute; left: 50%; bottom: calc(var(--mk-safe-bottom) + 14px); transform: translateX(-50%); width: 76px; height: 76px; border-radius: 50%; background: var(--mk-primary); color: #fff; box-shadow: var(--mk-shadow); font-size: 12px; transition: filter .12s; }
.mk-nav-center .mk-nav-item svg { width: 30px; height: 30px; }
.mk-nav-center .mk-nav-item.active { filter: brightness(1.15); }
.mk-nav-spacer { height: calc(var(--mk-nav-height) + var(--mk-safe-bottom)); }

/* ---- page slide (Bayti's map ⇄ dashboard transition) ---- */
@keyframes mk-slide-out-left { to { transform: translateX(-100%); } }
@keyframes mk-slide-in-right { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mk-slide { position: absolute; inset: 0; overflow: hidden; }
.mk-slide.hidden { display: none; }
.mk-slide.out { animation: mk-slide-out-left .35s forwards; }
.mk-slide.in { animation: mk-slide-in-right .35s forwards; }
