:root{
  --app-bg: #f6f7fb;
  --app-card: #ffffff;
  --app-border: rgba(0,0,0,.08);
  --ink: #111;
}

#lastUpdate{
  font-size: 0.875rem;
  color: rgba(0,0,0,0.55);
}

.bg-app{
  background: radial-gradient(1200px 500px at 20% 0%, rgba(99,102,241,.10), transparent 60%),
              radial-gradient(900px 450px at 90% 10%, rgba(16,185,129,.10), transparent 60%),
              var(--app-bg);
}

.app-nav{
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.app-badge{
  width: 36px; height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
.app-logo{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  object-fit: contain;
}

.app-title{
  letter-spacing: .2px;
}

}

.app-pill{
  border-radius: 999px;
  padding: .45rem .65rem;
}

.app-card{
  border: 1px solid var(--app-border);
  border-radius: 18px;
}

.app-btn{
  border-radius: 12px;
}

/* Denah wrapper */
.park-map{
  position: relative;
  width: 100%;
  background: #fff;
}

.park-map img{
  width: 100%;
  height: auto;
  display: block;
}

/* Slot overlay */
.slot{
  position: absolute;
  border: 2px solid rgba(0,0,0,0.78);
  border-radius: 14px;
  box-sizing: border-box;

  background: rgba(160,160,160,0.18); /* unknown */
  cursor: pointer;
  user-select: none;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 140ms ease, outline 140ms ease, background 140ms ease;
  backdrop-filter: blur(2px);
}

.slot:hover{
  outline: 3px solid rgba(13,110,253,0.55);
  transform: translateY(-1px);
}

/* warna */
.slot.free{ background: rgba(25,135,84,0.20); }
.slot.full{ background: rgba(220,53,69,0.20); }

/* label */
.slot .label{
  text-align: center;
  line-height: 1.05;
  width: 100%;
  padding: 2px 4px;
  color: #0b0f17;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.slot .label .id{
  font-weight: 900;
  font-size: clamp(10px, 1.4vw, 16px);
}
.slot .label .st{
  display: block;
  margin-top: 2px;
  font-size: clamp(9px, 1.0vw, 13px);
  font-weight: 800;
  opacity: 0.95;
  white-space: nowrap;
}

/* ✅ solusi tabrakan: slot horizontal sembunyikan status */
.slot.h .label .st{ display: none; }

/* Legend */
.legend-dot{
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.28);
  display: inline-block;
}
.legend-unknown{ background: rgba(160,160,160,0.35); }
.legend-free{ background: rgba(25,135,84,0.35); }
.legend-full{ background: rgba(220,53,69,0.35); }

/* Floating button (mobile) */
.fab-zoom{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* Zoom modal */
.zoom-shell{
  max-height: 78vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.zoom-stage{
  transform-origin: top left;
  will-change: transform;
}

/* opsional: supaya label status gak “rame” di user view */
.readonly .slot .label .st{
  display: none; /* biar clean, status lihat di legend + ringkasan */
}

/* kecilkan padding modal di mobile */
@media (max-width: 576px){
  .modal-header{ padding: .75rem .9rem; }
  .zoom-toolbar{ gap: .5rem; }
}

/* Read-only (halaman user) */
body.readonly .slot{ cursor: default; }
body.readonly .slot:hover{ outline: none; transform: none; }

/* Status pill */
.app-pill{
  border-radius: 999px;
}

.app-btn-mini{
  border-radius: 10px;
  padding: .15rem .45rem;
  line-height: 1.15;
}

/* ===== User view tweaks ===== */
.user-view .slot .label .st{
  display: none; /* user lihat status dari warna + modal */
}
.user-view .slot:hover{
  outline: 3px solid rgba(2,132,199,0.40);
  transform: translateY(-1px);
}

/* Slot recommended highlight */
.slot.recommended{
  outline: 3px solid rgba(34,197,94,0.55);
  box-shadow: 0 8px 24px rgba(34,197,94,0.18);
}

/* Modal */
.app-modal{
  border-radius: 18px;
}
.slot-pill{
  min-width: 54px;
  height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: rgba(2,132,199,0.10);
  border: 1px solid rgba(2,132,199,0.25);
}

/* Zone summary rows */
.zone-row{
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
.status-online { color: #16a34a; }
.status-offline { color: #dc2626; }
