/* =============================================================================
   POI Sidebar Panel + Edit POI Modal — Step 18B-4a
   ============================================================================= */

/* ── Sidebar POI panel (lives inside .sidebar, below filters) ──────────────── */
.sidebar-poi {
  border-top: 1px solid var(--border, #1e293b);
  background: var(--panel, #0f172a);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  max-height: 40vh;
  min-height: 0;
}
.sidebar-poi.collapsed { max-height: none; }

.sp-header {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.sp-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  color: var(--text, #e2e8f0);
  cursor: pointer;
  font: 700 11px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sp-toggle:hover { background: rgba(148, 163, 184, 0.08); }
.sp-caret {
  display: inline-block;
  font-size: 10px;
  color: var(--muted, #94a3b8);
  transition: transform 0.15s;
  width: 10px;
  text-align: center;
}
.sidebar-poi.collapsed .sp-caret { transform: rotate(-90deg); }
.sidebar-poi.collapsed .sp-body  { display: none; }

.sp-title { flex: 1; }
.sp-count {
  font-size: 10px;
  color: var(--muted, #94a3b8);
  background: rgba(148, 163, 184, 0.12);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.sp-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.sp-search {
  margin: 0 10px 6px;
  padding: 6px 10px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  color: #e2e8f0;
  font-size: 12px;
  font-family: inherit;
  flex-shrink: 0;
}
.sp-search:focus {
  outline: none;
  border-color: #3b82f6;
}

.sp-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 6px 8px;
  min-height: 0;
}
.sp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s;
}
.sp-row:hover { background: rgba(148, 163, 184, 0.10); }

.sp-emoji {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}
.sp-meta {
  flex: 1;
  min-width: 0;
}
.sp-name {
  font-size: 12px;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sp-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-badge {
  font-size: 10px;
  opacity: 0.85;
  flex-shrink: 0;
}
.sp-tenant {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.sp-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.1s;
  flex-shrink: 0;
}
.sp-row:hover .sp-actions { opacity: 1; }
/* Touch devices: keep actions visible always */
@media (hover: none) {
  .sp-actions { opacity: 1; }
}

.sp-act {
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1;
  border-radius: 3px;
  font-family: inherit;
}
.sp-act:hover { background: rgba(148, 163, 184, 0.20); color: #e2e8f0; }
.sp-del:hover { color: #ef4444; background: rgba(239, 68, 68, 0.15); }

.sp-empty {
  padding: 14px 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.5;
}
